1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for float 0.5.18. 4# 5# Report bugs to <laurent.bartholdi@gmail.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: laurent.bartholdi@gmail.com about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='float' 592PACKAGE_TARNAME='float' 593PACKAGE_VERSION='0.5.18' 594PACKAGE_STRING='float 0.5.18' 595PACKAGE_BUGREPORT='laurent.bartholdi@gmail.com' 596PACKAGE_URL='' 597 598ac_unique_file="src/float.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_default_prefix=${PWD} 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640WITH_CXSC_IS_YES_FALSE 641WITH_CXSC_IS_YES_TRUE 642CXSC_LIBS 643CXSC_LDFLAGS 644CXSC_CFLAGS 645WITH_FPLLL_IS_YES_FALSE 646WITH_FPLLL_IS_YES_TRUE 647FPLLL_LIBS 648FPLLL_LDFLAGS 649FPLLL_CFLAGS 650HAVE_CXX11 651WITH_MPC_IS_YES_FALSE 652WITH_MPC_IS_YES_TRUE 653MPC_LIBS 654MPC_LDFLAGS 655MPC_CFLAGS 656WITH_MPFI_IS_YES_FALSE 657WITH_MPFI_IS_YES_TRUE 658MPFI_LIBS 659MPFI_LDFLAGS 660MPFI_CFLAGS 661WITH_MPFR_IS_YES_FALSE 662WITH_MPFR_IS_YES_TRUE 663MPFR_LIBS 664MPFR_LDFLAGS 665MPFR_CFLAGS 666LIBM 667SYS_IS_CYGWIN_FALSE 668SYS_IS_CYGWIN_TRUE 669GAP_LIBS 670GAP_LDFLAGS 671GAP_CFLAGS 672GAP_CPPFLAGS 673GAPROOT 674GAPARCH 675CONFIGNAME 676PRTDIAG 677CXXCPP 678am__fastdepCXX_FALSE 679am__fastdepCXX_TRUE 680CXXDEPMODE 681ac_ct_CXX 682CXXFLAGS 683CXX 684CPP 685LT_SYS_LIBRARY_PATH 686OTOOL64 687OTOOL 688LIPO 689NMEDIT 690DSYMUTIL 691MANIFEST_TOOL 692RANLIB 693ac_ct_AR 694AR 695LN_S 696NM 697ac_ct_DUMPBIN 698DUMPBIN 699LD 700FGREP 701EGREP 702GREP 703SED 704am__fastdepCC_FALSE 705am__fastdepCC_TRUE 706CCDEPMODE 707am__nodep 708AMDEPBACKSLASH 709AMDEP_FALSE 710AMDEP_TRUE 711am__include 712DEPDIR 713OBJEXT 714EXEEXT 715ac_ct_CC 716CPPFLAGS 717LDFLAGS 718CFLAGS 719CC 720LIBTOOL 721OBJDUMP 722DLLTOOL 723AS 724AM_BACKSLASH 725AM_DEFAULT_VERBOSITY 726AM_DEFAULT_V 727AM_V 728am__untar 729am__tar 730AMTAR 731am__leading_dot 732SET_MAKE 733AWK 734mkdir_p 735MKDIR_P 736INSTALL_STRIP_PROGRAM 737STRIP 738install_sh 739MAKEINFO 740AUTOHEADER 741AUTOMAKE 742AUTOCONF 743ACLOCAL 744VERSION 745PACKAGE 746CYGPATH_W 747am__isrc 748INSTALL_DATA 749INSTALL_SCRIPT 750INSTALL_PROGRAM 751target_os 752target_vendor 753target_cpu 754target 755host_os 756host_vendor 757host_cpu 758host 759build_os 760build_vendor 761build_cpu 762build 763target_alias 764host_alias 765build_alias 766LIBS 767ECHO_T 768ECHO_N 769ECHO_C 770DEFS 771mandir 772localedir 773libdir 774psdir 775pdfdir 776dvidir 777htmldir 778infodir 779docdir 780oldincludedir 781includedir 782localstatedir 783sharedstatedir 784sysconfdir 785datadir 786datarootdir 787libexecdir 788sbindir 789bindir 790program_transform_name 791prefix 792exec_prefix 793PACKAGE_URL 794PACKAGE_BUGREPORT 795PACKAGE_STRING 796PACKAGE_VERSION 797PACKAGE_TARNAME 798PACKAGE_NAME 799PATH_SEPARATOR 800SHELL 801am__quote' 802ac_subst_files='' 803ac_user_opts=' 804enable_option_checking 805enable_silent_rules 806enable_static 807enable_shared 808with_pic 809enable_fast_install 810with_aix_soname 811enable_dependency_tracking 812with_gnu_ld 813with_sysroot 814enable_libtool_lock 815enable_portable_binary 816with_gcc_arch 817with_gaproot 818with_gaparch 819with_mpfr 820with_mpfr_include 821with_mpfr_lib 822with_mpfi 823with_mpfi_include 824with_mpfi_lib 825with_mpc 826with_mpc_include 827with_mpc_lib 828with_fplll 829with_fplll_include 830with_fplll_lib 831with_cxsc 832with_cxsc_include 833with_cxsc_lib 834' 835 ac_precious_vars='build_alias 836host_alias 837target_alias 838CC 839CFLAGS 840LDFLAGS 841LIBS 842CPPFLAGS 843LT_SYS_LIBRARY_PATH 844CPP 845CXX 846CXXFLAGS 847CCC 848CXXCPP 849CONFIGNAME' 850 851 852# Initialize some variables set by options. 853ac_init_help= 854ac_init_version=false 855ac_unrecognized_opts= 856ac_unrecognized_sep= 857# The variables have the same names as the options, with 858# dashes changed to underlines. 859cache_file=/dev/null 860exec_prefix=NONE 861no_create= 862no_recursion= 863prefix=NONE 864program_prefix=NONE 865program_suffix=NONE 866program_transform_name=s,x,x, 867silent= 868site= 869srcdir= 870verbose= 871x_includes=NONE 872x_libraries=NONE 873 874# Installation directory options. 875# These are left unexpanded so users can "make install exec_prefix=/foo" 876# and all the variables that are supposed to be based on exec_prefix 877# by default will actually change. 878# Use braces instead of parens because sh, perl, etc. also accept them. 879# (The list follows the same order as the GNU Coding Standards.) 880bindir='${exec_prefix}/bin' 881sbindir='${exec_prefix}/sbin' 882libexecdir='${exec_prefix}/libexec' 883datarootdir='${prefix}/share' 884datadir='${datarootdir}' 885sysconfdir='${prefix}/etc' 886sharedstatedir='${prefix}/com' 887localstatedir='${prefix}/var' 888includedir='${prefix}/include' 889oldincludedir='/usr/include' 890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 891infodir='${datarootdir}/info' 892htmldir='${docdir}' 893dvidir='${docdir}' 894pdfdir='${docdir}' 895psdir='${docdir}' 896libdir='${exec_prefix}/lib' 897localedir='${datarootdir}/locale' 898mandir='${datarootdir}/man' 899 900ac_prev= 901ac_dashdash= 902for ac_option 903do 904 # If the previous option needs an argument, assign it. 905 if test -n "$ac_prev"; then 906 eval $ac_prev=\$ac_option 907 ac_prev= 908 continue 909 fi 910 911 case $ac_option in 912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 913 *=) ac_optarg= ;; 914 *) ac_optarg=yes ;; 915 esac 916 917 # Accept the important Cygnus configure options, so we can diagnose typos. 918 919 case $ac_dashdash$ac_option in 920 --) 921 ac_dashdash=yes ;; 922 923 -bindir | --bindir | --bindi | --bind | --bin | --bi) 924 ac_prev=bindir ;; 925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 926 bindir=$ac_optarg ;; 927 928 -build | --build | --buil | --bui | --bu) 929 ac_prev=build_alias ;; 930 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 931 build_alias=$ac_optarg ;; 932 933 -cache-file | --cache-file | --cache-fil | --cache-fi \ 934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 935 ac_prev=cache_file ;; 936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 938 cache_file=$ac_optarg ;; 939 940 --config-cache | -C) 941 cache_file=config.cache ;; 942 943 -datadir | --datadir | --datadi | --datad) 944 ac_prev=datadir ;; 945 -datadir=* | --datadir=* | --datadi=* | --datad=*) 946 datadir=$ac_optarg ;; 947 948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 949 | --dataroo | --dataro | --datar) 950 ac_prev=datarootdir ;; 951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 953 datarootdir=$ac_optarg ;; 954 955 -disable-* | --disable-*) 956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 as_fn_error $? "invalid feature name: $ac_useropt" 960 ac_useropt_orig=$ac_useropt 961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 962 case $ac_user_opts in 963 *" 964"enable_$ac_useropt" 965"*) ;; 966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 967 ac_unrecognized_sep=', ';; 968 esac 969 eval enable_$ac_useropt=no ;; 970 971 -docdir | --docdir | --docdi | --doc | --do) 972 ac_prev=docdir ;; 973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 974 docdir=$ac_optarg ;; 975 976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 977 ac_prev=dvidir ;; 978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 979 dvidir=$ac_optarg ;; 980 981 -enable-* | --enable-*) 982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 983 # Reject names that are not valid shell variable names. 984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 985 as_fn_error $? "invalid feature name: $ac_useropt" 986 ac_useropt_orig=$ac_useropt 987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 988 case $ac_user_opts in 989 *" 990"enable_$ac_useropt" 991"*) ;; 992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 993 ac_unrecognized_sep=', ';; 994 esac 995 eval enable_$ac_useropt=\$ac_optarg ;; 996 997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 999 | --exec | --exe | --ex) 1000 ac_prev=exec_prefix ;; 1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1003 | --exec=* | --exe=* | --ex=*) 1004 exec_prefix=$ac_optarg ;; 1005 1006 -gas | --gas | --ga | --g) 1007 # Obsolete; use --with-gas. 1008 with_gas=yes ;; 1009 1010 -help | --help | --hel | --he | -h) 1011 ac_init_help=long ;; 1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1013 ac_init_help=recursive ;; 1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1015 ac_init_help=short ;; 1016 1017 -host | --host | --hos | --ho) 1018 ac_prev=host_alias ;; 1019 -host=* | --host=* | --hos=* | --ho=*) 1020 host_alias=$ac_optarg ;; 1021 1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1023 ac_prev=htmldir ;; 1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1025 | --ht=*) 1026 htmldir=$ac_optarg ;; 1027 1028 -includedir | --includedir | --includedi | --included | --include \ 1029 | --includ | --inclu | --incl | --inc) 1030 ac_prev=includedir ;; 1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1032 | --includ=* | --inclu=* | --incl=* | --inc=*) 1033 includedir=$ac_optarg ;; 1034 1035 -infodir | --infodir | --infodi | --infod | --info | --inf) 1036 ac_prev=infodir ;; 1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1038 infodir=$ac_optarg ;; 1039 1040 -libdir | --libdir | --libdi | --libd) 1041 ac_prev=libdir ;; 1042 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1043 libdir=$ac_optarg ;; 1044 1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1046 | --libexe | --libex | --libe) 1047 ac_prev=libexecdir ;; 1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1049 | --libexe=* | --libex=* | --libe=*) 1050 libexecdir=$ac_optarg ;; 1051 1052 -localedir | --localedir | --localedi | --localed | --locale) 1053 ac_prev=localedir ;; 1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1055 localedir=$ac_optarg ;; 1056 1057 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1058 | --localstate | --localstat | --localsta | --localst | --locals) 1059 ac_prev=localstatedir ;; 1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1062 localstatedir=$ac_optarg ;; 1063 1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1065 ac_prev=mandir ;; 1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1067 mandir=$ac_optarg ;; 1068 1069 -nfp | --nfp | --nf) 1070 # Obsolete; use --without-fp. 1071 with_fp=no ;; 1072 1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1074 | --no-cr | --no-c | -n) 1075 no_create=yes ;; 1076 1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1079 no_recursion=yes ;; 1080 1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1083 | --oldin | --oldi | --old | --ol | --o) 1084 ac_prev=oldincludedir ;; 1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1088 oldincludedir=$ac_optarg ;; 1089 1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1091 ac_prev=prefix ;; 1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1093 prefix=$ac_optarg ;; 1094 1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1096 | --program-pre | --program-pr | --program-p) 1097 ac_prev=program_prefix ;; 1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1100 program_prefix=$ac_optarg ;; 1101 1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1103 | --program-suf | --program-su | --program-s) 1104 ac_prev=program_suffix ;; 1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1107 program_suffix=$ac_optarg ;; 1108 1109 -program-transform-name | --program-transform-name \ 1110 | --program-transform-nam | --program-transform-na \ 1111 | --program-transform-n | --program-transform- \ 1112 | --program-transform | --program-transfor \ 1113 | --program-transfo | --program-transf \ 1114 | --program-trans | --program-tran \ 1115 | --progr-tra | --program-tr | --program-t) 1116 ac_prev=program_transform_name ;; 1117 -program-transform-name=* | --program-transform-name=* \ 1118 | --program-transform-nam=* | --program-transform-na=* \ 1119 | --program-transform-n=* | --program-transform-=* \ 1120 | --program-transform=* | --program-transfor=* \ 1121 | --program-transfo=* | --program-transf=* \ 1122 | --program-trans=* | --program-tran=* \ 1123 | --progr-tra=* | --program-tr=* | --program-t=*) 1124 program_transform_name=$ac_optarg ;; 1125 1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1127 ac_prev=pdfdir ;; 1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1129 pdfdir=$ac_optarg ;; 1130 1131 -psdir | --psdir | --psdi | --psd | --ps) 1132 ac_prev=psdir ;; 1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1134 psdir=$ac_optarg ;; 1135 1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1137 | -silent | --silent | --silen | --sile | --sil) 1138 silent=yes ;; 1139 1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1141 ac_prev=sbindir ;; 1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1143 | --sbi=* | --sb=*) 1144 sbindir=$ac_optarg ;; 1145 1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1148 | --sharedst | --shareds | --shared | --share | --shar \ 1149 | --sha | --sh) 1150 ac_prev=sharedstatedir ;; 1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1154 | --sha=* | --sh=*) 1155 sharedstatedir=$ac_optarg ;; 1156 1157 -site | --site | --sit) 1158 ac_prev=site ;; 1159 -site=* | --site=* | --sit=*) 1160 site=$ac_optarg ;; 1161 1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1163 ac_prev=srcdir ;; 1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1165 srcdir=$ac_optarg ;; 1166 1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1168 | --syscon | --sysco | --sysc | --sys | --sy) 1169 ac_prev=sysconfdir ;; 1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1172 sysconfdir=$ac_optarg ;; 1173 1174 -target | --target | --targe | --targ | --tar | --ta | --t) 1175 ac_prev=target_alias ;; 1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1177 target_alias=$ac_optarg ;; 1178 1179 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1180 verbose=yes ;; 1181 1182 -version | --version | --versio | --versi | --vers | -V) 1183 ac_init_version=: ;; 1184 1185 -with-* | --with-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=\$ac_optarg ;; 1200 1201 -without-* | --without-*) 1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1203 # Reject names that are not valid shell variable names. 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1205 as_fn_error $? "invalid package name: $ac_useropt" 1206 ac_useropt_orig=$ac_useropt 1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1208 case $ac_user_opts in 1209 *" 1210"with_$ac_useropt" 1211"*) ;; 1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1213 ac_unrecognized_sep=', ';; 1214 esac 1215 eval with_$ac_useropt=no ;; 1216 1217 --x) 1218 # Obsolete; use --with-x. 1219 with_x=yes ;; 1220 1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1222 | --x-incl | --x-inc | --x-in | --x-i) 1223 ac_prev=x_includes ;; 1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1226 x_includes=$ac_optarg ;; 1227 1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1230 ac_prev=x_libraries ;; 1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1233 x_libraries=$ac_optarg ;; 1234 1235 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1236Try \`$0 --help' for more information" 1237 ;; 1238 1239 *=*) 1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1241 # Reject names that are not valid shell variable names. 1242 case $ac_envvar in #( 1243 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1245 esac 1246 eval $ac_envvar=\$ac_optarg 1247 export $ac_envvar ;; 1248 1249 *) 1250 # FIXME: should be removed in autoconf 3.0. 1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1255 ;; 1256 1257 esac 1258done 1259 1260if test -n "$ac_prev"; then 1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1262 as_fn_error $? "missing argument to $ac_option" 1263fi 1264 1265if test -n "$ac_unrecognized_opts"; then 1266 case $enable_option_checking in 1267 no) ;; 1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1270 esac 1271fi 1272 1273# Check all directory arguments for consistency. 1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1275 datadir sysconfdir sharedstatedir localstatedir includedir \ 1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1277 libdir localedir mandir 1278do 1279 eval ac_val=\$$ac_var 1280 # Remove trailing slashes. 1281 case $ac_val in 1282 */ ) 1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1284 eval $ac_var=\$ac_val;; 1285 esac 1286 # Be sure to have absolute directory names. 1287 case $ac_val in 1288 [\\/$]* | ?:[\\/]* ) continue;; 1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1290 esac 1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1292done 1293 1294# There might be people who depend on the old broken behavior: `$host' 1295# used to hold the argument of --host etc. 1296# FIXME: To remove some day. 1297build=$build_alias 1298host=$host_alias 1299target=$target_alias 1300 1301# FIXME: To remove some day. 1302if test "x$host_alias" != x; then 1303 if test "x$build_alias" = x; then 1304 cross_compiling=maybe 1305 elif test "x$build_alias" != "x$host_alias"; then 1306 cross_compiling=yes 1307 fi 1308fi 1309 1310ac_tool_prefix= 1311test -n "$host_alias" && ac_tool_prefix=$host_alias- 1312 1313test "$silent" = yes && exec 6>/dev/null 1314 1315 1316ac_pwd=`pwd` && test -n "$ac_pwd" && 1317ac_ls_di=`ls -di .` && 1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1319 as_fn_error $? "working directory cannot be determined" 1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1321 as_fn_error $? "pwd does not report name of working directory" 1322 1323 1324# Find the source files, if location was not specified. 1325if test -z "$srcdir"; then 1326 ac_srcdir_defaulted=yes 1327 # Try the directory containing this script, then the parent directory. 1328 ac_confdir=`$as_dirname -- "$as_myself" || 1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1330 X"$as_myself" : 'X\(//\)[^/]' \| \ 1331 X"$as_myself" : 'X\(//\)$' \| \ 1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1333$as_echo X"$as_myself" | 1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)[^/].*/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\).*/{ 1347 s//\1/ 1348 q 1349 } 1350 s/.*/./; q'` 1351 srcdir=$ac_confdir 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 srcdir=.. 1354 fi 1355else 1356 ac_srcdir_defaulted=no 1357fi 1358if test ! -r "$srcdir/$ac_unique_file"; then 1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1361fi 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1363ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1365 pwd)` 1366# When building in place, set srcdir=. 1367if test "$ac_abs_confdir" = "$ac_pwd"; then 1368 srcdir=. 1369fi 1370# Remove unnecessary trailing slashes from srcdir. 1371# Double slashes in file names in object file debugging info 1372# mess up M-x gdb in Emacs. 1373case $srcdir in 1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1375esac 1376for ac_var in $ac_precious_vars; do 1377 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1378 eval ac_env_${ac_var}_value=\$${ac_var} 1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1381done 1382 1383# 1384# Report the --help message. 1385# 1386if test "$ac_init_help" = "long"; then 1387 # Omit some internal or obsolete options to make the list less imposing. 1388 # This message is too long to be a string in the A/UX 3.1 sh. 1389 cat <<_ACEOF 1390\`configure' configures float 0.5.18 to adapt to many kinds of systems. 1391 1392Usage: $0 [OPTION]... [VAR=VALUE]... 1393 1394To assign environment variables (e.g., CC, CFLAGS...), specify them as 1395VAR=VALUE. See below for descriptions of some of the useful variables. 1396 1397Defaults for the options are specified in brackets. 1398 1399Configuration: 1400 -h, --help display this help and exit 1401 --help=short display options specific to this package 1402 --help=recursive display the short help of all the included packages 1403 -V, --version display version information and exit 1404 -q, --quiet, --silent do not print \`checking ...' messages 1405 --cache-file=FILE cache test results in FILE [disabled] 1406 -C, --config-cache alias for \`--cache-file=config.cache' 1407 -n, --no-create do not create output files 1408 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1409 1410Installation directories: 1411 --prefix=PREFIX install architecture-independent files in PREFIX 1412 [$ac_default_prefix] 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1414 [PREFIX] 1415 1416By default, \`make install' will install all the files in 1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1418an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1419for instance \`--prefix=\$HOME'. 1420 1421For better control, use the options below. 1422 1423Fine tuning of the installation directories: 1424 --bindir=DIR user executables [EPREFIX/bin] 1425 --sbindir=DIR system admin executables [EPREFIX/sbin] 1426 --libexecdir=DIR program executables [EPREFIX/libexec] 1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1430 --libdir=DIR object code libraries [EPREFIX/lib] 1431 --includedir=DIR C header files [PREFIX/include] 1432 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1435 --infodir=DIR info documentation [DATAROOTDIR/info] 1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1437 --mandir=DIR man documentation [DATAROOTDIR/man] 1438 --docdir=DIR documentation root [DATAROOTDIR/doc/float] 1439 --htmldir=DIR html documentation [DOCDIR] 1440 --dvidir=DIR dvi documentation [DOCDIR] 1441 --pdfdir=DIR pdf documentation [DOCDIR] 1442 --psdir=DIR ps documentation [DOCDIR] 1443_ACEOF 1444 1445 cat <<\_ACEOF 1446 1447Program names: 1448 --program-prefix=PREFIX prepend PREFIX to installed program names 1449 --program-suffix=SUFFIX append SUFFIX to installed program names 1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1451 1452System types: 1453 --build=BUILD configure for building on BUILD [guessed] 1454 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1455 --target=TARGET configure for building compilers for TARGET [HOST] 1456_ACEOF 1457fi 1458 1459if test -n "$ac_init_help"; then 1460 case $ac_init_help in 1461 short | recursive ) echo "Configuration of float 0.5.18:";; 1462 esac 1463 cat <<\_ACEOF 1464 1465Optional Features: 1466 --disable-option-checking ignore unrecognized --enable/--with options 1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1469 --enable-silent-rules less verbose build output (undo: "make V=1") 1470 --disable-silent-rules verbose build output (undo: "make V=0") 1471 --enable-static[=PKGS] build static libraries [default=no] 1472 --enable-shared[=PKGS] build shared libraries [default=yes] 1473 --enable-fast-install[=PKGS] 1474 optimize for fast installation [default=yes] 1475 --enable-dependency-tracking 1476 do not reject slow dependency extractors 1477 --disable-dependency-tracking 1478 speeds up one-time build 1479 --disable-libtool-lock avoid locking (might break parallel builds) 1480 --enable-portable-binary 1481 disable compiler optimizations that would produce 1482 unportable binaries 1483 1484Optional Packages: 1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-aix-soname=aix|svr4|both 1490 shared library versioning (aka "SONAME") variant to 1491 provide on AIX, [default=aix]. 1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1493 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1494 compiler's sysroot if not specified). 1495 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, 1496 instead of guessing 1497 --with-gaproot=<path> specify root of GAP installation 1498 --with-gaparch=<path> override GAP architecture string 1499 --with-mpfr=<location> 1500 Location at which the MPFR library was installed. 1501 If the argument is omitted, the library is assumed to be reachable 1502 under the standard search path (/usr, /usr/local,...). Otherwise 1503 you must give the <path> to the directory which contains the 1504 library. 1505 --with-mpfr-include=<location> 1506 Location at which the mpfr include files were installed. 1507 --with-mpfr-lib=<location> 1508 Location at which the mpfr library files were installed. 1509 1510 --with-mpfi=<location> 1511 Location at which the MPFI library was installed. 1512 If the argument is omitted, the library is assumed to be reachable 1513 under the standard search path (/usr, /usr/local,...). Otherwise 1514 you must give the <path> to the directory which contains the 1515 library. 1516 --with-mpfi-include=<location> 1517 Location at which the mpfi include files were installed. 1518 --with-mpfi-lib=<location> 1519 Location at which the mpfi library files were installed. 1520 1521 --with-mpc=<location> 1522 Location at which the MPC library was installed. 1523 If the argument is omitted, the library is assumed to be reachable 1524 under the standard search path (/usr, /usr/local,...). Otherwise 1525 you must give the <path> to the directory which contains the 1526 library. 1527 --with-mpc-include=<location> 1528 Location at which the mpc include files were installed. 1529 --with-mpc-lib=<location> 1530 Location at which the mpc library files were installed. 1531 1532 --with-fplll=<location> 1533 Location at which the FPLLL library was installed. 1534 If the argument is omitted, the library is assumed to be reachable 1535 under the standard search path (/usr, /usr/local,...). Otherwise 1536 you must give the <path> to the directory which contains the 1537 library. 1538 --with-fplll-include=<location> 1539 Location at which the fplll include files were installed. 1540 --with-fplll-lib=<location> 1541 Location at which the fplll library files were installed. 1542 1543 --with-cxsc=<location> 1544 Location at which the CXSC library was installed. 1545 If the argument is omitted, the library is assumed to be reachable 1546 under the standard search path (/usr, /usr/local,...). Otherwise 1547 you must give the <path> to the directory which contains the 1548 library.. 1549 --with-cxsc-include=<location> 1550 Location at which the cxsc include files were installed. 1551 --with-cxsc-lib=<location> 1552 Location at which the cxsc library files were installed. 1553 1554 1555Some influential environment variables: 1556 CC C compiler command 1557 CFLAGS C compiler flags 1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1559 nonstandard directory <lib dir> 1560 LIBS libraries to pass to the linker, e.g. -l<library> 1561 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1562 you have headers in a nonstandard directory <include dir> 1563 LT_SYS_LIBRARY_PATH 1564 User-defined run-time library search path. 1565 CPP C preprocessor 1566 CXX C++ compiler command 1567 CXXFLAGS C++ compiler flags 1568 CXXCPP C++ preprocessor 1569 CONFIGNAME Set this to the CONFIGNAME of the GAP compilation against which 1570 you want to compile this package. Leave this variable empty for 1571 GAP versions < 4.5. 1572 1573Use these variables to override the choices made by `configure' or to help 1574it to find libraries and programs with nonstandard names/locations. 1575 1576Report bugs to <laurent.bartholdi@gmail.com>. 1577_ACEOF 1578ac_status=$? 1579fi 1580 1581if test "$ac_init_help" = "recursive"; then 1582 # If there are subdirs, report their specific --help. 1583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1584 test -d "$ac_dir" || 1585 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1586 continue 1587 ac_builddir=. 1588 1589case "$ac_dir" in 1590.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1591*) 1592 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1593 # A ".." for each directory in $ac_dir_suffix. 1594 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1595 case $ac_top_builddir_sub in 1596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1598 esac ;; 1599esac 1600ac_abs_top_builddir=$ac_pwd 1601ac_abs_builddir=$ac_pwd$ac_dir_suffix 1602# for backward compatibility: 1603ac_top_builddir=$ac_top_build_prefix 1604 1605case $srcdir in 1606 .) # We are building in place. 1607 ac_srcdir=. 1608 ac_top_srcdir=$ac_top_builddir_sub 1609 ac_abs_top_srcdir=$ac_pwd ;; 1610 [\\/]* | ?:[\\/]* ) # Absolute name. 1611 ac_srcdir=$srcdir$ac_dir_suffix; 1612 ac_top_srcdir=$srcdir 1613 ac_abs_top_srcdir=$srcdir ;; 1614 *) # Relative name. 1615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1616 ac_top_srcdir=$ac_top_build_prefix$srcdir 1617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1618esac 1619ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1620 1621 cd "$ac_dir" || { ac_status=$?; continue; } 1622 # Check for guested configure. 1623 if test -f "$ac_srcdir/configure.gnu"; then 1624 echo && 1625 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1626 elif test -f "$ac_srcdir/configure"; then 1627 echo && 1628 $SHELL "$ac_srcdir/configure" --help=recursive 1629 else 1630 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1631 fi || ac_status=$? 1632 cd "$ac_pwd" || { ac_status=$?; break; } 1633 done 1634fi 1635 1636test -n "$ac_init_help" && exit $ac_status 1637if $ac_init_version; then 1638 cat <<\_ACEOF 1639float configure 0.5.18 1640generated by GNU Autoconf 2.69 1641 1642Copyright (C) 2012 Free Software Foundation, Inc. 1643This configure script is free software; the Free Software Foundation 1644gives unlimited permission to copy, distribute and modify it. 1645_ACEOF 1646 exit 1647fi 1648 1649## ------------------------ ## 1650## Autoconf initialization. ## 1651## ------------------------ ## 1652 1653# ac_fn_c_try_compile LINENO 1654# -------------------------- 1655# Try to compile conftest.$ac_ext, and return whether this succeeded. 1656ac_fn_c_try_compile () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 rm -f conftest.$ac_objext 1660 if { { ac_try="$ac_compile" 1661case "(($ac_try" in 1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1663 *) ac_try_echo=$ac_try;; 1664esac 1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1666$as_echo "$ac_try_echo"; } >&5 1667 (eval "$ac_compile") 2>conftest.err 1668 ac_status=$? 1669 if test -s conftest.err; then 1670 grep -v '^ *+' conftest.err >conftest.er1 1671 cat conftest.er1 >&5 1672 mv -f conftest.er1 conftest.err 1673 fi 1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1675 test $ac_status = 0; } && { 1676 test -z "$ac_c_werror_flag" || 1677 test ! -s conftest.err 1678 } && test -s conftest.$ac_objext; then : 1679 ac_retval=0 1680else 1681 $as_echo "$as_me: failed program was:" >&5 1682sed 's/^/| /' conftest.$ac_ext >&5 1683 1684 ac_retval=1 1685fi 1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1687 as_fn_set_status $ac_retval 1688 1689} # ac_fn_c_try_compile 1690 1691# ac_fn_c_try_link LINENO 1692# ----------------------- 1693# Try to link conftest.$ac_ext, and return whether this succeeded. 1694ac_fn_c_try_link () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 rm -f conftest.$ac_objext conftest$ac_exeext 1698 if { { ac_try="$ac_link" 1699case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702esac 1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704$as_echo "$ac_try_echo"; } >&5 1705 (eval "$ac_link") 2>conftest.err 1706 ac_status=$? 1707 if test -s conftest.err; then 1708 grep -v '^ *+' conftest.err >conftest.er1 1709 cat conftest.er1 >&5 1710 mv -f conftest.er1 conftest.err 1711 fi 1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; } && { 1714 test -z "$ac_c_werror_flag" || 1715 test ! -s conftest.err 1716 } && test -s conftest$ac_exeext && { 1717 test "$cross_compiling" = yes || 1718 test -x conftest$ac_exeext 1719 }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: failed program was:" >&5 1723sed 's/^/| /' conftest.$ac_ext >&5 1724 1725 ac_retval=1 1726fi 1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1729 # interfere with the next link command; also delete a directory that is 1730 # left behind by Apple's compiler. We do this before executing the actions. 1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 as_fn_set_status $ac_retval 1734 1735} # ac_fn_c_try_link 1736 1737# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1738# ------------------------------------------------------- 1739# Tests whether HEADER exists and can be compiled using the include files in 1740# INCLUDES, setting the cache variable VAR accordingly. 1741ac_fn_c_check_header_compile () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748else 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750/* end confdefs.h. */ 1751$4 1752#include <$2> 1753_ACEOF 1754if ac_fn_c_try_compile "$LINENO"; then : 1755 eval "$3=yes" 1756else 1757 eval "$3=no" 1758fi 1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1760fi 1761eval ac_res=\$$3 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1763$as_echo "$ac_res" >&6; } 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 1766} # ac_fn_c_check_header_compile 1767 1768# ac_fn_c_try_cpp LINENO 1769# ---------------------- 1770# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1771ac_fn_c_try_cpp () 1772{ 1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1774 if { { ac_try="$ac_cpp conftest.$ac_ext" 1775case "(($ac_try" in 1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1777 *) ac_try_echo=$ac_try;; 1778esac 1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1780$as_echo "$ac_try_echo"; } >&5 1781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1782 ac_status=$? 1783 if test -s conftest.err; then 1784 grep -v '^ *+' conftest.err >conftest.er1 1785 cat conftest.er1 >&5 1786 mv -f conftest.er1 conftest.err 1787 fi 1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1789 test $ac_status = 0; } > conftest.i && { 1790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1791 test ! -s conftest.err 1792 }; then : 1793 ac_retval=0 1794else 1795 $as_echo "$as_me: failed program was:" >&5 1796sed 's/^/| /' conftest.$ac_ext >&5 1797 1798 ac_retval=1 1799fi 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1801 as_fn_set_status $ac_retval 1802 1803} # ac_fn_c_try_cpp 1804 1805# ac_fn_c_try_run LINENO 1806# ---------------------- 1807# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1808# that executables *can* be run. 1809ac_fn_c_try_run () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 if { { ac_try="$ac_link" 1813case "(($ac_try" in 1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1815 *) ac_try_echo=$ac_try;; 1816esac 1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1818$as_echo "$ac_try_echo"; } >&5 1819 (eval "$ac_link") 2>&5 1820 ac_status=$? 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1823 { { case "(($ac_try" in 1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1825 *) ac_try_echo=$ac_try;; 1826esac 1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1828$as_echo "$ac_try_echo"; } >&5 1829 (eval "$ac_try") 2>&5 1830 ac_status=$? 1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1832 test $ac_status = 0; }; }; then : 1833 ac_retval=0 1834else 1835 $as_echo "$as_me: program exited with status $ac_status" >&5 1836 $as_echo "$as_me: failed program was:" >&5 1837sed 's/^/| /' conftest.$ac_ext >&5 1838 1839 ac_retval=$ac_status 1840fi 1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 as_fn_set_status $ac_retval 1844 1845} # ac_fn_c_try_run 1846 1847# ac_fn_c_check_func LINENO FUNC VAR 1848# ---------------------------------- 1849# Tests whether FUNC exists, setting the cache variable VAR accordingly 1850ac_fn_c_check_func () 1851{ 1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1854$as_echo_n "checking for $2... " >&6; } 1855if eval \${$3+:} false; then : 1856 $as_echo_n "(cached) " >&6 1857else 1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1859/* end confdefs.h. */ 1860/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1861 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1862#define $2 innocuous_$2 1863 1864/* System header to define __stub macros and hopefully few prototypes, 1865 which can conflict with char $2 (); below. 1866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1867 <limits.h> exists even on freestanding compilers. */ 1868 1869#ifdef __STDC__ 1870# include <limits.h> 1871#else 1872# include <assert.h> 1873#endif 1874 1875#undef $2 1876 1877/* Override any GCC internal prototype to avoid an error. 1878 Use char because int might match the return type of a GCC 1879 builtin and then its argument prototype would still apply. */ 1880#ifdef __cplusplus 1881extern "C" 1882#endif 1883char $2 (); 1884/* The GNU C library defines this for functions which it implements 1885 to always fail with ENOSYS. Some functions are actually named 1886 something starting with __ and the normal name is an alias. */ 1887#if defined __stub_$2 || defined __stub___$2 1888choke me 1889#endif 1890 1891int 1892main () 1893{ 1894return $2 (); 1895 ; 1896 return 0; 1897} 1898_ACEOF 1899if ac_fn_c_try_link "$LINENO"; then : 1900 eval "$3=yes" 1901else 1902 eval "$3=no" 1903fi 1904rm -f core conftest.err conftest.$ac_objext \ 1905 conftest$ac_exeext conftest.$ac_ext 1906fi 1907eval ac_res=\$$3 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1909$as_echo "$ac_res" >&6; } 1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1911 1912} # ac_fn_c_check_func 1913 1914# ac_fn_cxx_try_compile LINENO 1915# ---------------------------- 1916# Try to compile conftest.$ac_ext, and return whether this succeeded. 1917ac_fn_cxx_try_compile () 1918{ 1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1920 rm -f conftest.$ac_objext 1921 if { { ac_try="$ac_compile" 1922case "(($ac_try" in 1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1924 *) ac_try_echo=$ac_try;; 1925esac 1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1927$as_echo "$ac_try_echo"; } >&5 1928 (eval "$ac_compile") 2>conftest.err 1929 ac_status=$? 1930 if test -s conftest.err; then 1931 grep -v '^ *+' conftest.err >conftest.er1 1932 cat conftest.er1 >&5 1933 mv -f conftest.er1 conftest.err 1934 fi 1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1936 test $ac_status = 0; } && { 1937 test -z "$ac_cxx_werror_flag" || 1938 test ! -s conftest.err 1939 } && test -s conftest.$ac_objext; then : 1940 ac_retval=0 1941else 1942 $as_echo "$as_me: failed program was:" >&5 1943sed 's/^/| /' conftest.$ac_ext >&5 1944 1945 ac_retval=1 1946fi 1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1948 as_fn_set_status $ac_retval 1949 1950} # ac_fn_cxx_try_compile 1951 1952# ac_fn_cxx_try_cpp LINENO 1953# ------------------------ 1954# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1955ac_fn_cxx_try_cpp () 1956{ 1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1958 if { { ac_try="$ac_cpp conftest.$ac_ext" 1959case "(($ac_try" in 1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1961 *) ac_try_echo=$ac_try;; 1962esac 1963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1964$as_echo "$ac_try_echo"; } >&5 1965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1966 ac_status=$? 1967 if test -s conftest.err; then 1968 grep -v '^ *+' conftest.err >conftest.er1 1969 cat conftest.er1 >&5 1970 mv -f conftest.er1 conftest.err 1971 fi 1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1973 test $ac_status = 0; } > conftest.i && { 1974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1975 test ! -s conftest.err 1976 }; then : 1977 ac_retval=0 1978else 1979 $as_echo "$as_me: failed program was:" >&5 1980sed 's/^/| /' conftest.$ac_ext >&5 1981 1982 ac_retval=1 1983fi 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1985 as_fn_set_status $ac_retval 1986 1987} # ac_fn_cxx_try_cpp 1988 1989# ac_fn_cxx_try_link LINENO 1990# ------------------------- 1991# Try to link conftest.$ac_ext, and return whether this succeeded. 1992ac_fn_cxx_try_link () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 rm -f conftest.$ac_objext conftest$ac_exeext 1996 if { { ac_try="$ac_link" 1997case "(($ac_try" in 1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1999 *) ac_try_echo=$ac_try;; 2000esac 2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2002$as_echo "$ac_try_echo"; } >&5 2003 (eval "$ac_link") 2>conftest.err 2004 ac_status=$? 2005 if test -s conftest.err; then 2006 grep -v '^ *+' conftest.err >conftest.er1 2007 cat conftest.er1 >&5 2008 mv -f conftest.er1 conftest.err 2009 fi 2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2011 test $ac_status = 0; } && { 2012 test -z "$ac_cxx_werror_flag" || 2013 test ! -s conftest.err 2014 } && test -s conftest$ac_exeext && { 2015 test "$cross_compiling" = yes || 2016 test -x conftest$ac_exeext 2017 }; then : 2018 ac_retval=0 2019else 2020 $as_echo "$as_me: failed program was:" >&5 2021sed 's/^/| /' conftest.$ac_ext >&5 2022 2023 ac_retval=1 2024fi 2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2027 # interfere with the next link command; also delete a directory that is 2028 # left behind by Apple's compiler. We do this before executing the actions. 2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 as_fn_set_status $ac_retval 2032 2033} # ac_fn_cxx_try_link 2034 2035# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2036# ------------------------------------------------------- 2037# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2038# the include files in INCLUDES and setting the cache variable VAR 2039# accordingly. 2040ac_fn_c_check_header_mongrel () 2041{ 2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2043 if eval \${$3+:} false; then : 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2045$as_echo_n "checking for $2... " >&6; } 2046if eval \${$3+:} false; then : 2047 $as_echo_n "(cached) " >&6 2048fi 2049eval ac_res=\$$3 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2051$as_echo "$ac_res" >&6; } 2052else 2053 # Is the header compilable? 2054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2055$as_echo_n "checking $2 usability... " >&6; } 2056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2057/* end confdefs.h. */ 2058$4 2059#include <$2> 2060_ACEOF 2061if ac_fn_c_try_compile "$LINENO"; then : 2062 ac_header_compiler=yes 2063else 2064 ac_header_compiler=no 2065fi 2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2068$as_echo "$ac_header_compiler" >&6; } 2069 2070# Is the header present? 2071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2072$as_echo_n "checking $2 presence... " >&6; } 2073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2074/* end confdefs.h. */ 2075#include <$2> 2076_ACEOF 2077if ac_fn_c_try_cpp "$LINENO"; then : 2078 ac_header_preproc=yes 2079else 2080 ac_header_preproc=no 2081fi 2082rm -f conftest.err conftest.i conftest.$ac_ext 2083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2084$as_echo "$ac_header_preproc" >&6; } 2085 2086# So? What about this header? 2087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2088 yes:no: ) 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2090$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2092$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2093 ;; 2094 no:yes:* ) 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2096$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2098$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2100$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2102$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2104$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2105( $as_echo "## ------------------------------------------ ## 2106## Report this to laurent.bartholdi@gmail.com ## 2107## ------------------------------------------ ##" 2108 ) | sed "s/^/$as_me: WARNING: /" >&2 2109 ;; 2110esac 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2112$as_echo_n "checking for $2... " >&6; } 2113if eval \${$3+:} false; then : 2114 $as_echo_n "(cached) " >&6 2115else 2116 eval "$3=\$ac_header_compiler" 2117fi 2118eval ac_res=\$$3 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2120$as_echo "$ac_res" >&6; } 2121fi 2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2123 2124} # ac_fn_c_check_header_mongrel 2125 2126# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2127# --------------------------------------------------------- 2128# Tests whether HEADER exists and can be compiled using the include files in 2129# INCLUDES, setting the cache variable VAR accordingly. 2130ac_fn_cxx_check_header_compile () 2131{ 2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2134$as_echo_n "checking for $2... " >&6; } 2135if eval \${$3+:} false; then : 2136 $as_echo_n "(cached) " >&6 2137else 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139/* end confdefs.h. */ 2140$4 2141#include <$2> 2142_ACEOF 2143if ac_fn_cxx_try_compile "$LINENO"; then : 2144 eval "$3=yes" 2145else 2146 eval "$3=no" 2147fi 2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2149fi 2150eval ac_res=\$$3 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2152$as_echo "$ac_res" >&6; } 2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2154 2155} # ac_fn_cxx_check_header_compile 2156 2157# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2158# --------------------------------------------------------- 2159# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2160# the include files in INCLUDES and setting the cache variable VAR 2161# accordingly. 2162ac_fn_cxx_check_header_mongrel () 2163{ 2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2165 if eval \${$3+:} false; then : 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2167$as_echo_n "checking for $2... " >&6; } 2168if eval \${$3+:} false; then : 2169 $as_echo_n "(cached) " >&6 2170fi 2171eval ac_res=\$$3 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2173$as_echo "$ac_res" >&6; } 2174else 2175 # Is the header compilable? 2176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2177$as_echo_n "checking $2 usability... " >&6; } 2178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2179/* end confdefs.h. */ 2180$4 2181#include <$2> 2182_ACEOF 2183if ac_fn_cxx_try_compile "$LINENO"; then : 2184 ac_header_compiler=yes 2185else 2186 ac_header_compiler=no 2187fi 2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2190$as_echo "$ac_header_compiler" >&6; } 2191 2192# Is the header present? 2193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2194$as_echo_n "checking $2 presence... " >&6; } 2195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2196/* end confdefs.h. */ 2197#include <$2> 2198_ACEOF 2199if ac_fn_cxx_try_cpp "$LINENO"; then : 2200 ac_header_preproc=yes 2201else 2202 ac_header_preproc=no 2203fi 2204rm -f conftest.err conftest.i conftest.$ac_ext 2205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2206$as_echo "$ac_header_preproc" >&6; } 2207 2208# So? What about this header? 2209case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2210 yes:no: ) 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2212$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2214$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2215 ;; 2216 no:yes:* ) 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2218$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2220$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2222$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2224$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2226$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2227( $as_echo "## ------------------------------------------ ## 2228## Report this to laurent.bartholdi@gmail.com ## 2229## ------------------------------------------ ##" 2230 ) | sed "s/^/$as_me: WARNING: /" >&2 2231 ;; 2232esac 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2234$as_echo_n "checking for $2... " >&6; } 2235if eval \${$3+:} false; then : 2236 $as_echo_n "(cached) " >&6 2237else 2238 eval "$3=\$ac_header_compiler" 2239fi 2240eval ac_res=\$$3 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2242$as_echo "$ac_res" >&6; } 2243fi 2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2245 2246} # ac_fn_cxx_check_header_mongrel 2247cat >config.log <<_ACEOF 2248This file contains any messages produced by compilers while 2249running configure, to aid debugging if configure makes a mistake. 2250 2251It was created by float $as_me 0.5.18, which was 2252generated by GNU Autoconf 2.69. Invocation command line was 2253 2254 $ $0 $@ 2255 2256_ACEOF 2257exec 5>>config.log 2258{ 2259cat <<_ASUNAME 2260## --------- ## 2261## Platform. ## 2262## --------- ## 2263 2264hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2265uname -m = `(uname -m) 2>/dev/null || echo unknown` 2266uname -r = `(uname -r) 2>/dev/null || echo unknown` 2267uname -s = `(uname -s) 2>/dev/null || echo unknown` 2268uname -v = `(uname -v) 2>/dev/null || echo unknown` 2269 2270/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2271/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2272 2273/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2274/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2275/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2276/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2277/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2278/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2279/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2280 2281_ASUNAME 2282 2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2284for as_dir in $PATH 2285do 2286 IFS=$as_save_IFS 2287 test -z "$as_dir" && as_dir=. 2288 $as_echo "PATH: $as_dir" 2289 done 2290IFS=$as_save_IFS 2291 2292} >&5 2293 2294cat >&5 <<_ACEOF 2295 2296 2297## ----------- ## 2298## Core tests. ## 2299## ----------- ## 2300 2301_ACEOF 2302 2303 2304# Keep a trace of the command line. 2305# Strip out --no-create and --no-recursion so they do not pile up. 2306# Strip out --silent because we don't want to record it for future runs. 2307# Also quote any args containing shell meta-characters. 2308# Make two passes to allow for proper duplicate-argument suppression. 2309ac_configure_args= 2310ac_configure_args0= 2311ac_configure_args1= 2312ac_must_keep_next=false 2313for ac_pass in 1 2 2314do 2315 for ac_arg 2316 do 2317 case $ac_arg in 2318 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2320 | -silent | --silent | --silen | --sile | --sil) 2321 continue ;; 2322 *\'*) 2323 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2324 esac 2325 case $ac_pass in 2326 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2327 2) 2328 as_fn_append ac_configure_args1 " '$ac_arg'" 2329 if test $ac_must_keep_next = true; then 2330 ac_must_keep_next=false # Got value, back to normal. 2331 else 2332 case $ac_arg in 2333 *=* | --config-cache | -C | -disable-* | --disable-* \ 2334 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2335 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2336 | -with-* | --with-* | -without-* | --without-* | --x) 2337 case "$ac_configure_args0 " in 2338 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2339 esac 2340 ;; 2341 -* ) ac_must_keep_next=true ;; 2342 esac 2343 fi 2344 as_fn_append ac_configure_args " '$ac_arg'" 2345 ;; 2346 esac 2347 done 2348done 2349{ ac_configure_args0=; unset ac_configure_args0;} 2350{ ac_configure_args1=; unset ac_configure_args1;} 2351 2352# When interrupted or exit'd, cleanup temporary files, and complete 2353# config.log. We remove comments because anyway the quotes in there 2354# would cause problems or look ugly. 2355# WARNING: Use '\'' to represent an apostrophe within the trap. 2356# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2357trap 'exit_status=$? 2358 # Save into config.log some information that might help in debugging. 2359 { 2360 echo 2361 2362 $as_echo "## ---------------- ## 2363## Cache variables. ## 2364## ---------------- ##" 2365 echo 2366 # The following way of writing the cache mishandles newlines in values, 2367( 2368 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2369 eval ac_val=\$$ac_var 2370 case $ac_val in #( 2371 *${as_nl}*) 2372 case $ac_var in #( 2373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2374$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2375 esac 2376 case $ac_var in #( 2377 _ | IFS | as_nl) ;; #( 2378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2379 *) { eval $ac_var=; unset $ac_var;} ;; 2380 esac ;; 2381 esac 2382 done 2383 (set) 2>&1 | 2384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2385 *${as_nl}ac_space=\ *) 2386 sed -n \ 2387 "s/'\''/'\''\\\\'\'''\''/g; 2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2389 ;; #( 2390 *) 2391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2392 ;; 2393 esac | 2394 sort 2395) 2396 echo 2397 2398 $as_echo "## ----------------- ## 2399## Output variables. ## 2400## ----------------- ##" 2401 echo 2402 for ac_var in $ac_subst_vars 2403 do 2404 eval ac_val=\$$ac_var 2405 case $ac_val in 2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2407 esac 2408 $as_echo "$ac_var='\''$ac_val'\''" 2409 done | sort 2410 echo 2411 2412 if test -n "$ac_subst_files"; then 2413 $as_echo "## ------------------- ## 2414## File substitutions. ## 2415## ------------------- ##" 2416 echo 2417 for ac_var in $ac_subst_files 2418 do 2419 eval ac_val=\$$ac_var 2420 case $ac_val in 2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2422 esac 2423 $as_echo "$ac_var='\''$ac_val'\''" 2424 done | sort 2425 echo 2426 fi 2427 2428 if test -s confdefs.h; then 2429 $as_echo "## ----------- ## 2430## confdefs.h. ## 2431## ----------- ##" 2432 echo 2433 cat confdefs.h 2434 echo 2435 fi 2436 test "$ac_signal" != 0 && 2437 $as_echo "$as_me: caught signal $ac_signal" 2438 $as_echo "$as_me: exit $exit_status" 2439 } >&5 2440 rm -f core *.core core.conftest.* && 2441 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2442 exit $exit_status 2443' 0 2444for ac_signal in 1 2 13 15; do 2445 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2446done 2447ac_signal=0 2448 2449# confdefs.h avoids OS command line length limits that DEFS can exceed. 2450rm -f -r conftest* confdefs.h 2451 2452$as_echo "/* confdefs.h */" > confdefs.h 2453 2454# Predefined preprocessor variables. 2455 2456cat >>confdefs.h <<_ACEOF 2457#define PACKAGE_NAME "$PACKAGE_NAME" 2458_ACEOF 2459 2460cat >>confdefs.h <<_ACEOF 2461#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2462_ACEOF 2463 2464cat >>confdefs.h <<_ACEOF 2465#define PACKAGE_VERSION "$PACKAGE_VERSION" 2466_ACEOF 2467 2468cat >>confdefs.h <<_ACEOF 2469#define PACKAGE_STRING "$PACKAGE_STRING" 2470_ACEOF 2471 2472cat >>confdefs.h <<_ACEOF 2473#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2474_ACEOF 2475 2476cat >>confdefs.h <<_ACEOF 2477#define PACKAGE_URL "$PACKAGE_URL" 2478_ACEOF 2479 2480 2481# Let the site file select an alternate cache file if it wants to. 2482# Prefer an explicitly selected file to automatically selected ones. 2483ac_site_file1=NONE 2484ac_site_file2=NONE 2485if test -n "$CONFIG_SITE"; then 2486 # We do not want a PATH search for config.site. 2487 case $CONFIG_SITE in #(( 2488 -*) ac_site_file1=./$CONFIG_SITE;; 2489 */*) ac_site_file1=$CONFIG_SITE;; 2490 *) ac_site_file1=./$CONFIG_SITE;; 2491 esac 2492elif test "x$prefix" != xNONE; then 2493 ac_site_file1=$prefix/share/config.site 2494 ac_site_file2=$prefix/etc/config.site 2495else 2496 ac_site_file1=$ac_default_prefix/share/config.site 2497 ac_site_file2=$ac_default_prefix/etc/config.site 2498fi 2499for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2500do 2501 test "x$ac_site_file" = xNONE && continue 2502 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2503 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2504$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2505 sed 's/^/| /' "$ac_site_file" >&5 2506 . "$ac_site_file" \ 2507 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2509as_fn_error $? "failed to load site script $ac_site_file 2510See \`config.log' for more details" "$LINENO" 5; } 2511 fi 2512done 2513 2514if test -r "$cache_file"; then 2515 # Some versions of bash will fail to source /dev/null (special files 2516 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2517 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2519$as_echo "$as_me: loading cache $cache_file" >&6;} 2520 case $cache_file in 2521 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2522 *) . "./$cache_file";; 2523 esac 2524 fi 2525else 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2527$as_echo "$as_me: creating cache $cache_file" >&6;} 2528 >$cache_file 2529fi 2530 2531# Check that the precious variables saved in the cache have kept the same 2532# value. 2533ac_cache_corrupted=false 2534for ac_var in $ac_precious_vars; do 2535 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2536 eval ac_new_set=\$ac_env_${ac_var}_set 2537 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2538 eval ac_new_val=\$ac_env_${ac_var}_value 2539 case $ac_old_set,$ac_new_set in 2540 set,) 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2542$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2543 ac_cache_corrupted=: ;; 2544 ,set) 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2546$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2547 ac_cache_corrupted=: ;; 2548 ,);; 2549 *) 2550 if test "x$ac_old_val" != "x$ac_new_val"; then 2551 # differences in whitespace do not lead to failure. 2552 ac_old_val_w=`echo x $ac_old_val` 2553 ac_new_val_w=`echo x $ac_new_val` 2554 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2556$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2557 ac_cache_corrupted=: 2558 else 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2560$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2561 eval $ac_var=\$ac_old_val 2562 fi 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2564$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2566$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2567 fi;; 2568 esac 2569 # Pass precious variables to config.status. 2570 if test "$ac_new_set" = set; then 2571 case $ac_new_val in 2572 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2573 *) ac_arg=$ac_var=$ac_new_val ;; 2574 esac 2575 case " $ac_configure_args " in 2576 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2577 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2578 esac 2579 fi 2580done 2581if $ac_cache_corrupted; then 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2585$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2586 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2587fi 2588## -------------------- ## 2589## Main body of script. ## 2590## -------------------- ## 2591 2592ac_ext=c 2593ac_cpp='$CPP $CPPFLAGS' 2594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2596ac_compiler_gnu=$ac_cv_c_compiler_gnu 2597 2598 2599 2600ac_aux_dir= 2601for ac_dir in build-aux "$srcdir"/build-aux; do 2602 if test -f "$ac_dir/install-sh"; then 2603 ac_aux_dir=$ac_dir 2604 ac_install_sh="$ac_aux_dir/install-sh -c" 2605 break 2606 elif test -f "$ac_dir/install.sh"; then 2607 ac_aux_dir=$ac_dir 2608 ac_install_sh="$ac_aux_dir/install.sh -c" 2609 break 2610 elif test -f "$ac_dir/shtool"; then 2611 ac_aux_dir=$ac_dir 2612 ac_install_sh="$ac_aux_dir/shtool install -c" 2613 break 2614 fi 2615done 2616if test -z "$ac_aux_dir"; then 2617 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2618fi 2619 2620# These three variables are undocumented and unsupported, 2621# and are intended to be withdrawn in a future Autoconf release. 2622# They can cause serious problems if a builder's source tree is in a directory 2623# whose full name contains unusual characters. 2624ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2625ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2626ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2627 2628 2629 2630ac_config_headers="$ac_config_headers src/floatconfig.h:config.h.in" 2631 2632# Make sure we can run config.sub. 2633$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2634 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2635 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2637$as_echo_n "checking build system type... " >&6; } 2638if ${ac_cv_build+:} false; then : 2639 $as_echo_n "(cached) " >&6 2640else 2641 ac_build_alias=$build_alias 2642test "x$ac_build_alias" = x && 2643 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2644test "x$ac_build_alias" = x && 2645 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2646ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2647 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2648 2649fi 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2651$as_echo "$ac_cv_build" >&6; } 2652case $ac_cv_build in 2653*-*-*) ;; 2654*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2655esac 2656build=$ac_cv_build 2657ac_save_IFS=$IFS; IFS='-' 2658set x $ac_cv_build 2659shift 2660build_cpu=$1 2661build_vendor=$2 2662shift; shift 2663# Remember, the first character of IFS is used to create $*, 2664# except with old shells: 2665build_os=$* 2666IFS=$ac_save_IFS 2667case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2668 2669 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2671$as_echo_n "checking host system type... " >&6; } 2672if ${ac_cv_host+:} false; then : 2673 $as_echo_n "(cached) " >&6 2674else 2675 if test "x$host_alias" = x; then 2676 ac_cv_host=$ac_cv_build 2677else 2678 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2679 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2680fi 2681 2682fi 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2684$as_echo "$ac_cv_host" >&6; } 2685case $ac_cv_host in 2686*-*-*) ;; 2687*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2688esac 2689host=$ac_cv_host 2690ac_save_IFS=$IFS; IFS='-' 2691set x $ac_cv_host 2692shift 2693host_cpu=$1 2694host_vendor=$2 2695shift; shift 2696# Remember, the first character of IFS is used to create $*, 2697# except with old shells: 2698host_os=$* 2699IFS=$ac_save_IFS 2700case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2701 2702 2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2704$as_echo_n "checking target system type... " >&6; } 2705if ${ac_cv_target+:} false; then : 2706 $as_echo_n "(cached) " >&6 2707else 2708 if test "x$target_alias" = x; then 2709 ac_cv_target=$ac_cv_host 2710else 2711 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2713fi 2714 2715fi 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2717$as_echo "$ac_cv_target" >&6; } 2718case $ac_cv_target in 2719*-*-*) ;; 2720*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2721esac 2722target=$ac_cv_target 2723ac_save_IFS=$IFS; IFS='-' 2724set x $ac_cv_target 2725shift 2726target_cpu=$1 2727target_vendor=$2 2728shift; shift 2729# Remember, the first character of IFS is used to create $*, 2730# except with old shells: 2731target_os=$* 2732IFS=$ac_save_IFS 2733case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2734 2735 2736# The aliases save the names the user supplied, while $host etc. 2737# will get canonicalized. 2738test -n "$target_alias" && 2739 test "$program_prefix$program_suffix$program_transform_name" = \ 2740 NONENONEs,x,x, && 2741 program_prefix=${target_alias}- 2742am__api_version='1.16' 2743 2744# Find a good install program. We prefer a C program (faster), 2745# so one script is as good as another. But avoid the broken or 2746# incompatible versions: 2747# SysV /etc/install, /usr/sbin/install 2748# SunOS /usr/etc/install 2749# IRIX /sbin/install 2750# AIX /bin/install 2751# AmigaOS /C/install, which installs bootblocks on floppy discs 2752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2753# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2755# OS/2's system install, which has a completely different semantic 2756# ./install, which can be erroneously created by make from ./install.sh. 2757# Reject install programs that cannot install multiple files. 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2759$as_echo_n "checking for a BSD-compatible install... " >&6; } 2760if test -z "$INSTALL"; then 2761if ${ac_cv_path_install+:} false; then : 2762 $as_echo_n "(cached) " >&6 2763else 2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 test -z "$as_dir" && as_dir=. 2769 # Account for people who put trailing slashes in PATH elements. 2770case $as_dir/ in #(( 2771 ./ | .// | /[cC]/* | \ 2772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2773 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2774 /usr/ucb/* ) ;; 2775 *) 2776 # OSF1 and SCO ODT 3.0 have their own names for install. 2777 # Don't use installbsd from OSF since it installs stuff as root 2778 # by default. 2779 for ac_prog in ginstall scoinst install; do 2780 for ac_exec_ext in '' $ac_executable_extensions; do 2781 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2782 if test $ac_prog = install && 2783 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2784 # AIX install. It has an incompatible calling convention. 2785 : 2786 elif test $ac_prog = install && 2787 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2788 # program-specific install script used by HP pwplus--don't use. 2789 : 2790 else 2791 rm -rf conftest.one conftest.two conftest.dir 2792 echo one > conftest.one 2793 echo two > conftest.two 2794 mkdir conftest.dir 2795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2796 test -s conftest.one && test -s conftest.two && 2797 test -s conftest.dir/conftest.one && 2798 test -s conftest.dir/conftest.two 2799 then 2800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2801 break 3 2802 fi 2803 fi 2804 fi 2805 done 2806 done 2807 ;; 2808esac 2809 2810 done 2811IFS=$as_save_IFS 2812 2813rm -rf conftest.one conftest.two conftest.dir 2814 2815fi 2816 if test "${ac_cv_path_install+set}" = set; then 2817 INSTALL=$ac_cv_path_install 2818 else 2819 # As a last resort, use the slow shell script. Don't cache a 2820 # value for INSTALL within a source directory, because that will 2821 # break other packages using the cache if that directory is 2822 # removed, or if the value is a relative name. 2823 INSTALL=$ac_install_sh 2824 fi 2825fi 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2827$as_echo "$INSTALL" >&6; } 2828 2829# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2830# It thinks the first close brace ends the variable substitution. 2831test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2832 2833test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2834 2835test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2836 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2838$as_echo_n "checking whether build environment is sane... " >&6; } 2839# Reject unsafe characters in $srcdir or the absolute working directory 2840# name. Accept space and tab only in the latter. 2841am_lf=' 2842' 2843case `pwd` in 2844 *[\\\"\#\$\&\'\`$am_lf]*) 2845 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2846esac 2847case $srcdir in 2848 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2849 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2850esac 2851 2852# Do 'set' in a subshell so we don't clobber the current shell's 2853# arguments. Must try -L first in case configure is actually a 2854# symlink; some systems play weird games with the mod time of symlinks 2855# (eg FreeBSD returns the mod time of the symlink's containing 2856# directory). 2857if ( 2858 am_has_slept=no 2859 for am_try in 1 2; do 2860 echo "timestamp, slept: $am_has_slept" > conftest.file 2861 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2862 if test "$*" = "X"; then 2863 # -L didn't work. 2864 set X `ls -t "$srcdir/configure" conftest.file` 2865 fi 2866 if test "$*" != "X $srcdir/configure conftest.file" \ 2867 && test "$*" != "X conftest.file $srcdir/configure"; then 2868 2869 # If neither matched, then we have a broken ls. This can happen 2870 # if, for instance, CONFIG_SHELL is bash and it inherits a 2871 # broken ls alias from the environment. This has actually 2872 # happened. Such a system could not be considered "sane". 2873 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2874 alias in your environment" "$LINENO" 5 2875 fi 2876 if test "$2" = conftest.file || test $am_try -eq 2; then 2877 break 2878 fi 2879 # Just in case. 2880 sleep 1 2881 am_has_slept=yes 2882 done 2883 test "$2" = conftest.file 2884 ) 2885then 2886 # Ok. 2887 : 2888else 2889 as_fn_error $? "newly created file is older than distributed files! 2890Check your system clock" "$LINENO" 5 2891fi 2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2893$as_echo "yes" >&6; } 2894# If we didn't sleep, we still need to ensure time stamps of config.status and 2895# generated files are strictly newer. 2896am_sleep_pid= 2897if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2898 ( sleep 1 ) & 2899 am_sleep_pid=$! 2900fi 2901 2902rm -f conftest.file 2903 2904test "$program_prefix" != NONE && 2905 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2906# Use a double $ so make ignores it. 2907test "$program_suffix" != NONE && 2908 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2909# Double any \ or $. 2910# By default was `s,x,x', remove it if useless. 2911ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2912program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2913 2914# Expand $ac_aux_dir to an absolute path. 2915am_aux_dir=`cd "$ac_aux_dir" && pwd` 2916 2917if test x"${MISSING+set}" != xset; then 2918 case $am_aux_dir in 2919 *\ * | *\ *) 2920 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2921 *) 2922 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2923 esac 2924fi 2925# Use eval to expand $SHELL 2926if eval "$MISSING --is-lightweight"; then 2927 am_missing_run="$MISSING " 2928else 2929 am_missing_run= 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2931$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2932fi 2933 2934if test x"${install_sh+set}" != xset; then 2935 case $am_aux_dir in 2936 *\ * | *\ *) 2937 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2938 *) 2939 install_sh="\${SHELL} $am_aux_dir/install-sh" 2940 esac 2941fi 2942 2943# Installed binaries are usually stripped using 'strip' when the user 2944# run "make install-strip". However 'strip' might not be the right 2945# tool to use in cross-compilation environments, therefore Automake 2946# will honor the 'STRIP' environment variable to overrule this program. 2947if test "$cross_compiling" != no; then 2948 if test -n "$ac_tool_prefix"; then 2949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2950set dummy ${ac_tool_prefix}strip; ac_word=$2 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2952$as_echo_n "checking for $ac_word... " >&6; } 2953if ${ac_cv_prog_STRIP+:} false; then : 2954 $as_echo_n "(cached) " >&6 2955else 2956 if test -n "$STRIP"; then 2957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2958else 2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2960for as_dir in $PATH 2961do 2962 IFS=$as_save_IFS 2963 test -z "$as_dir" && as_dir=. 2964 for ac_exec_ext in '' $ac_executable_extensions; do 2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2966 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2968 break 2 2969 fi 2970done 2971 done 2972IFS=$as_save_IFS 2973 2974fi 2975fi 2976STRIP=$ac_cv_prog_STRIP 2977if test -n "$STRIP"; then 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2979$as_echo "$STRIP" >&6; } 2980else 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2982$as_echo "no" >&6; } 2983fi 2984 2985 2986fi 2987if test -z "$ac_cv_prog_STRIP"; then 2988 ac_ct_STRIP=$STRIP 2989 # Extract the first word of "strip", so it can be a program name with args. 2990set dummy strip; ac_word=$2 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2992$as_echo_n "checking for $ac_word... " >&6; } 2993if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2994 $as_echo_n "(cached) " >&6 2995else 2996 if test -n "$ac_ct_STRIP"; then 2997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 test -z "$as_dir" && as_dir=. 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3006 ac_cv_prog_ac_ct_STRIP="strip" 3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 break 2 3009 fi 3010done 3011 done 3012IFS=$as_save_IFS 3013 3014fi 3015fi 3016ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3017if test -n "$ac_ct_STRIP"; then 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3019$as_echo "$ac_ct_STRIP" >&6; } 3020else 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3022$as_echo "no" >&6; } 3023fi 3024 3025 if test "x$ac_ct_STRIP" = x; then 3026 STRIP=":" 3027 else 3028 case $cross_compiling:$ac_tool_warned in 3029yes:) 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3032ac_tool_warned=yes ;; 3033esac 3034 STRIP=$ac_ct_STRIP 3035 fi 3036else 3037 STRIP="$ac_cv_prog_STRIP" 3038fi 3039 3040fi 3041INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3042 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3044$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3045if test -z "$MKDIR_P"; then 3046 if ${ac_cv_path_mkdir+:} false; then : 3047 $as_echo_n "(cached) " >&6 3048else 3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3050for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3051do 3052 IFS=$as_save_IFS 3053 test -z "$as_dir" && as_dir=. 3054 for ac_prog in mkdir gmkdir; do 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3057 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3058 'mkdir (GNU coreutils) '* | \ 3059 'mkdir (coreutils) '* | \ 3060 'mkdir (fileutils) '4.1*) 3061 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3062 break 3;; 3063 esac 3064 done 3065 done 3066 done 3067IFS=$as_save_IFS 3068 3069fi 3070 3071 test -d ./--version && rmdir ./--version 3072 if test "${ac_cv_path_mkdir+set}" = set; then 3073 MKDIR_P="$ac_cv_path_mkdir -p" 3074 else 3075 # As a last resort, use the slow shell script. Don't cache a 3076 # value for MKDIR_P within a source directory, because that will 3077 # break other packages using the cache if that directory is 3078 # removed, or if the value is a relative name. 3079 MKDIR_P="$ac_install_sh -d" 3080 fi 3081fi 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3083$as_echo "$MKDIR_P" >&6; } 3084 3085for ac_prog in gawk mawk nawk awk 3086do 3087 # Extract the first word of "$ac_prog", so it can be a program name with args. 3088set dummy $ac_prog; ac_word=$2 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3090$as_echo_n "checking for $ac_word... " >&6; } 3091if ${ac_cv_prog_AWK+:} false; then : 3092 $as_echo_n "(cached) " >&6 3093else 3094 if test -n "$AWK"; then 3095 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3096else 3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3098for as_dir in $PATH 3099do 3100 IFS=$as_save_IFS 3101 test -z "$as_dir" && as_dir=. 3102 for ac_exec_ext in '' $ac_executable_extensions; do 3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3104 ac_cv_prog_AWK="$ac_prog" 3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3106 break 2 3107 fi 3108done 3109 done 3110IFS=$as_save_IFS 3111 3112fi 3113fi 3114AWK=$ac_cv_prog_AWK 3115if test -n "$AWK"; then 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3117$as_echo "$AWK" >&6; } 3118else 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3120$as_echo "no" >&6; } 3121fi 3122 3123 3124 test -n "$AWK" && break 3125done 3126 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3128$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3129set x ${MAKE-make} 3130ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3131if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3132 $as_echo_n "(cached) " >&6 3133else 3134 cat >conftest.make <<\_ACEOF 3135SHELL = /bin/sh 3136all: 3137 @echo '@@@%%%=$(MAKE)=@@@%%%' 3138_ACEOF 3139# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3140case `${MAKE-make} -f conftest.make 2>/dev/null` in 3141 *@@@%%%=?*=@@@%%%*) 3142 eval ac_cv_prog_make_${ac_make}_set=yes;; 3143 *) 3144 eval ac_cv_prog_make_${ac_make}_set=no;; 3145esac 3146rm -f conftest.make 3147fi 3148if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3150$as_echo "yes" >&6; } 3151 SET_MAKE= 3152else 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3154$as_echo "no" >&6; } 3155 SET_MAKE="MAKE=${MAKE-make}" 3156fi 3157 3158rm -rf .tst 2>/dev/null 3159mkdir .tst 2>/dev/null 3160if test -d .tst; then 3161 am__leading_dot=. 3162else 3163 am__leading_dot=_ 3164fi 3165rmdir .tst 2>/dev/null 3166 3167# Check whether --enable-silent-rules was given. 3168if test "${enable_silent_rules+set}" = set; then : 3169 enableval=$enable_silent_rules; 3170fi 3171 3172case $enable_silent_rules in # ((( 3173 yes) AM_DEFAULT_VERBOSITY=0;; 3174 no) AM_DEFAULT_VERBOSITY=1;; 3175 *) AM_DEFAULT_VERBOSITY=1;; 3176esac 3177am_make=${MAKE-make} 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3179$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3180if ${am_cv_make_support_nested_variables+:} false; then : 3181 $as_echo_n "(cached) " >&6 3182else 3183 if $as_echo 'TRUE=$(BAR$(V)) 3184BAR0=false 3185BAR1=true 3186V=1 3187am__doit: 3188 @$(TRUE) 3189.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3190 am_cv_make_support_nested_variables=yes 3191else 3192 am_cv_make_support_nested_variables=no 3193fi 3194fi 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3196$as_echo "$am_cv_make_support_nested_variables" >&6; } 3197if test $am_cv_make_support_nested_variables = yes; then 3198 AM_V='$(V)' 3199 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3200else 3201 AM_V=$AM_DEFAULT_VERBOSITY 3202 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3203fi 3204AM_BACKSLASH='\' 3205 3206if test "`cd $srcdir && pwd`" != "`pwd`"; then 3207 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3208 # is not polluted with repeated "-I." 3209 am__isrc=' -I$(srcdir)' 3210 # test to see if srcdir already configured 3211 if test -f $srcdir/config.status; then 3212 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3213 fi 3214fi 3215 3216# test whether we have cygpath 3217if test -z "$CYGPATH_W"; then 3218 if (cygpath --version) >/dev/null 2>/dev/null; then 3219 CYGPATH_W='cygpath -w' 3220 else 3221 CYGPATH_W=echo 3222 fi 3223fi 3224 3225 3226# Define the identity of the package. 3227 PACKAGE='float' 3228 VERSION='0.5.18' 3229 3230 3231cat >>confdefs.h <<_ACEOF 3232#define PACKAGE "$PACKAGE" 3233_ACEOF 3234 3235 3236cat >>confdefs.h <<_ACEOF 3237#define VERSION "$VERSION" 3238_ACEOF 3239 3240# Some tools Automake needs. 3241 3242ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3243 3244 3245AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3246 3247 3248AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3249 3250 3251AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3252 3253 3254MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3255 3256# For better backward compatibility. To be removed once Automake 1.9.x 3257# dies out for good. For more background, see: 3258# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3259# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3260mkdir_p='$(MKDIR_P)' 3261 3262# We need awk for the "check" target (and possibly the TAP driver). The 3263# system "awk" is bad on some platforms. 3264# Always define AMTAR for backward compatibility. Yes, it's still used 3265# in the wild :-( We should find a proper way to deprecate it ... 3266AMTAR='$${TAR-tar}' 3267 3268 3269# We'll loop over all known methods to create a tar archive until one works. 3270_am_tools='gnutar pax cpio none' 3271 3272am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3273 3274 3275 3276 3277 3278 3279# POSIX will say in a future version that running "rm -f" with no argument 3280# is OK; and we want to be able to make that assumption in our Makefile 3281# recipes. So use an aggressive probe to check that the usage we want is 3282# actually supported "in the wild" to an acceptable degree. 3283# See automake bug#10828. 3284# To make any issue more visible, cause the running configure to be aborted 3285# by default if the 'rm' program in use doesn't match our expectations; the 3286# user can still override this though. 3287if rm -f && rm -fr && rm -rf; then : OK; else 3288 cat >&2 <<'END' 3289Oops! 3290 3291Your 'rm' program seems unable to run without file operands specified 3292on the command line, even when the '-f' option is present. This is contrary 3293to the behaviour of most rm programs out there, and not conforming with 3294the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3295 3296Please tell bug-automake@gnu.org about your system, including the value 3297of your $PATH and any error possibly output before this message. This 3298can help us improve future automake versions. 3299 3300END 3301 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3302 echo 'Configuration will proceed anyway, since you have set the' >&2 3303 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3304 echo >&2 3305 else 3306 cat >&2 <<'END' 3307Aborting the configuration process, to ensure you take notice of the issue. 3308 3309You can download and install GNU coreutils to get an 'rm' implementation 3310that behaves properly: <https://www.gnu.org/software/coreutils/>. 3311 3312If you want to complete the configuration process using your problematic 3313'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3314to "yes", and re-run configure. 3315 3316END 3317 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3318 fi 3319fi 3320 3321case `pwd` in 3322 *\ * | *\ *) 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3324$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3325esac 3326 3327 3328 3329macro_version='2.4.6' 3330macro_revision='2.4.6' 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344ltmain=$ac_aux_dir/ltmain.sh 3345 3346# Backslashify metacharacters that are still active within 3347# double-quoted strings. 3348sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3349 3350# Same as above, but do not quote variable references. 3351double_quote_subst='s/\(["`\\]\)/\\\1/g' 3352 3353# Sed substitution to delay expansion of an escaped shell variable in a 3354# double_quote_subst'ed string. 3355delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3356 3357# Sed substitution to delay expansion of an escaped single quote. 3358delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3359 3360# Sed substitution to avoid accidental globbing in evaled expressions 3361no_glob_subst='s/\*/\\\*/g' 3362 3363ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3364ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3365ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3366 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3368$as_echo_n "checking how to print strings... " >&6; } 3369# Test print first, because it will be a builtin if present. 3370if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3371 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3372 ECHO='print -r --' 3373elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3374 ECHO='printf %s\n' 3375else 3376 # Use this function as a fallback that always works. 3377 func_fallback_echo () 3378 { 3379 eval 'cat <<_LTECHO_EOF 3380$1 3381_LTECHO_EOF' 3382 } 3383 ECHO='func_fallback_echo' 3384fi 3385 3386# func_echo_all arg... 3387# Invoke $ECHO with all args, space-separated. 3388func_echo_all () 3389{ 3390 $ECHO "" 3391} 3392 3393case $ECHO in 3394 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3395$as_echo "printf" >&6; } ;; 3396 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3397$as_echo "print -r" >&6; } ;; 3398 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3399$as_echo "cat" >&6; } ;; 3400esac 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415DEPDIR="${am__leading_dot}deps" 3416 3417ac_config_commands="$ac_config_commands depfiles" 3418 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3420$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3421cat > confinc.mk << 'END' 3422am__doit: 3423 @echo this is the am__doit target >confinc.out 3424.PHONY: am__doit 3425END 3426am__include="#" 3427am__quote= 3428# BSD make does it like this. 3429echo '.include "confinc.mk" # ignored' > confmf.BSD 3430# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3431echo 'include confinc.mk # ignored' > confmf.GNU 3432_am_result=no 3433for s in GNU BSD; do 3434 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3435 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3436 ac_status=$? 3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3438 (exit $ac_status); } 3439 case $?:`cat confinc.out 2>/dev/null` in #( 3440 '0:this is the am__doit target') : 3441 case $s in #( 3442 BSD) : 3443 am__include='.include' am__quote='"' ;; #( 3444 *) : 3445 am__include='include' am__quote='' ;; 3446esac ;; #( 3447 *) : 3448 ;; 3449esac 3450 if test "$am__include" != "#"; then 3451 _am_result="yes ($s style)" 3452 break 3453 fi 3454done 3455rm -f confinc.* confmf.* 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3457$as_echo "${_am_result}" >&6; } 3458 3459# Check whether --enable-dependency-tracking was given. 3460if test "${enable_dependency_tracking+set}" = set; then : 3461 enableval=$enable_dependency_tracking; 3462fi 3463 3464if test "x$enable_dependency_tracking" != xno; then 3465 am_depcomp="$ac_aux_dir/depcomp" 3466 AMDEPBACKSLASH='\' 3467 am__nodep='_no' 3468fi 3469 if test "x$enable_dependency_tracking" != xno; then 3470 AMDEP_TRUE= 3471 AMDEP_FALSE='#' 3472else 3473 AMDEP_TRUE='#' 3474 AMDEP_FALSE= 3475fi 3476 3477 3478ac_ext=c 3479ac_cpp='$CPP $CPPFLAGS' 3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3482ac_compiler_gnu=$ac_cv_c_compiler_gnu 3483if test -n "$ac_tool_prefix"; then 3484 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3485set dummy ${ac_tool_prefix}gcc; ac_word=$2 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3487$as_echo_n "checking for $ac_word... " >&6; } 3488if ${ac_cv_prog_CC+:} false; then : 3489 $as_echo_n "(cached) " >&6 3490else 3491 if test -n "$CC"; then 3492 ac_cv_prog_CC="$CC" # Let the user override the test. 3493else 3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3495for as_dir in $PATH 3496do 3497 IFS=$as_save_IFS 3498 test -z "$as_dir" && as_dir=. 3499 for ac_exec_ext in '' $ac_executable_extensions; do 3500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3501 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3503 break 2 3504 fi 3505done 3506 done 3507IFS=$as_save_IFS 3508 3509fi 3510fi 3511CC=$ac_cv_prog_CC 3512if test -n "$CC"; then 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3514$as_echo "$CC" >&6; } 3515else 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3517$as_echo "no" >&6; } 3518fi 3519 3520 3521fi 3522if test -z "$ac_cv_prog_CC"; then 3523 ac_ct_CC=$CC 3524 # Extract the first word of "gcc", so it can be a program name with args. 3525set dummy gcc; ac_word=$2 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3527$as_echo_n "checking for $ac_word... " >&6; } 3528if ${ac_cv_prog_ac_ct_CC+:} false; then : 3529 $as_echo_n "(cached) " >&6 3530else 3531 if test -n "$ac_ct_CC"; then 3532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3533else 3534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3535for as_dir in $PATH 3536do 3537 IFS=$as_save_IFS 3538 test -z "$as_dir" && as_dir=. 3539 for ac_exec_ext in '' $ac_executable_extensions; do 3540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3541 ac_cv_prog_ac_ct_CC="gcc" 3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3543 break 2 3544 fi 3545done 3546 done 3547IFS=$as_save_IFS 3548 3549fi 3550fi 3551ac_ct_CC=$ac_cv_prog_ac_ct_CC 3552if test -n "$ac_ct_CC"; then 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3554$as_echo "$ac_ct_CC" >&6; } 3555else 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3557$as_echo "no" >&6; } 3558fi 3559 3560 if test "x$ac_ct_CC" = x; then 3561 CC="" 3562 else 3563 case $cross_compiling:$ac_tool_warned in 3564yes:) 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3567ac_tool_warned=yes ;; 3568esac 3569 CC=$ac_ct_CC 3570 fi 3571else 3572 CC="$ac_cv_prog_CC" 3573fi 3574 3575if test -z "$CC"; then 3576 if test -n "$ac_tool_prefix"; then 3577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3578set dummy ${ac_tool_prefix}cc; ac_word=$2 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3580$as_echo_n "checking for $ac_word... " >&6; } 3581if ${ac_cv_prog_CC+:} false; then : 3582 $as_echo_n "(cached) " >&6 3583else 3584 if test -n "$CC"; then 3585 ac_cv_prog_CC="$CC" # Let the user override the test. 3586else 3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3588for as_dir in $PATH 3589do 3590 IFS=$as_save_IFS 3591 test -z "$as_dir" && as_dir=. 3592 for ac_exec_ext in '' $ac_executable_extensions; do 3593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3594 ac_cv_prog_CC="${ac_tool_prefix}cc" 3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3596 break 2 3597 fi 3598done 3599 done 3600IFS=$as_save_IFS 3601 3602fi 3603fi 3604CC=$ac_cv_prog_CC 3605if test -n "$CC"; then 3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3607$as_echo "$CC" >&6; } 3608else 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3610$as_echo "no" >&6; } 3611fi 3612 3613 3614 fi 3615fi 3616if test -z "$CC"; then 3617 # Extract the first word of "cc", so it can be a program name with args. 3618set dummy cc; ac_word=$2 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3620$as_echo_n "checking for $ac_word... " >&6; } 3621if ${ac_cv_prog_CC+:} false; then : 3622 $as_echo_n "(cached) " >&6 3623else 3624 if test -n "$CC"; then 3625 ac_cv_prog_CC="$CC" # Let the user override the test. 3626else 3627 ac_prog_rejected=no 3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3629for as_dir in $PATH 3630do 3631 IFS=$as_save_IFS 3632 test -z "$as_dir" && as_dir=. 3633 for ac_exec_ext in '' $ac_executable_extensions; do 3634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3636 ac_prog_rejected=yes 3637 continue 3638 fi 3639 ac_cv_prog_CC="cc" 3640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3641 break 2 3642 fi 3643done 3644 done 3645IFS=$as_save_IFS 3646 3647if test $ac_prog_rejected = yes; then 3648 # We found a bogon in the path, so make sure we never use it. 3649 set dummy $ac_cv_prog_CC 3650 shift 3651 if test $# != 0; then 3652 # We chose a different compiler from the bogus one. 3653 # However, it has the same basename, so the bogon will be chosen 3654 # first if we set CC to just the basename; use the full file name. 3655 shift 3656 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3657 fi 3658fi 3659fi 3660fi 3661CC=$ac_cv_prog_CC 3662if test -n "$CC"; then 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3664$as_echo "$CC" >&6; } 3665else 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3667$as_echo "no" >&6; } 3668fi 3669 3670 3671fi 3672if test -z "$CC"; then 3673 if test -n "$ac_tool_prefix"; then 3674 for ac_prog in cl.exe 3675 do 3676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3677set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3679$as_echo_n "checking for $ac_word... " >&6; } 3680if ${ac_cv_prog_CC+:} false; then : 3681 $as_echo_n "(cached) " >&6 3682else 3683 if test -n "$CC"; then 3684 ac_cv_prog_CC="$CC" # Let the user override the test. 3685else 3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3687for as_dir in $PATH 3688do 3689 IFS=$as_save_IFS 3690 test -z "$as_dir" && as_dir=. 3691 for ac_exec_ext in '' $ac_executable_extensions; do 3692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3693 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3695 break 2 3696 fi 3697done 3698 done 3699IFS=$as_save_IFS 3700 3701fi 3702fi 3703CC=$ac_cv_prog_CC 3704if test -n "$CC"; then 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3706$as_echo "$CC" >&6; } 3707else 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3709$as_echo "no" >&6; } 3710fi 3711 3712 3713 test -n "$CC" && break 3714 done 3715fi 3716if test -z "$CC"; then 3717 ac_ct_CC=$CC 3718 for ac_prog in cl.exe 3719do 3720 # Extract the first word of "$ac_prog", so it can be a program name with args. 3721set dummy $ac_prog; ac_word=$2 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3723$as_echo_n "checking for $ac_word... " >&6; } 3724if ${ac_cv_prog_ac_ct_CC+:} false; then : 3725 $as_echo_n "(cached) " >&6 3726else 3727 if test -n "$ac_ct_CC"; then 3728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3729else 3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3731for as_dir in $PATH 3732do 3733 IFS=$as_save_IFS 3734 test -z "$as_dir" && as_dir=. 3735 for ac_exec_ext in '' $ac_executable_extensions; do 3736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3737 ac_cv_prog_ac_ct_CC="$ac_prog" 3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3739 break 2 3740 fi 3741done 3742 done 3743IFS=$as_save_IFS 3744 3745fi 3746fi 3747ac_ct_CC=$ac_cv_prog_ac_ct_CC 3748if test -n "$ac_ct_CC"; then 3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3750$as_echo "$ac_ct_CC" >&6; } 3751else 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3753$as_echo "no" >&6; } 3754fi 3755 3756 3757 test -n "$ac_ct_CC" && break 3758done 3759 3760 if test "x$ac_ct_CC" = x; then 3761 CC="" 3762 else 3763 case $cross_compiling:$ac_tool_warned in 3764yes:) 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3767ac_tool_warned=yes ;; 3768esac 3769 CC=$ac_ct_CC 3770 fi 3771fi 3772 3773fi 3774 3775 3776test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3778as_fn_error $? "no acceptable C compiler found in \$PATH 3779See \`config.log' for more details" "$LINENO" 5; } 3780 3781# Provide some information about the compiler. 3782$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3783set X $ac_compile 3784ac_compiler=$2 3785for ac_option in --version -v -V -qversion; do 3786 { { ac_try="$ac_compiler $ac_option >&5" 3787case "(($ac_try" in 3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3789 *) ac_try_echo=$ac_try;; 3790esac 3791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3792$as_echo "$ac_try_echo"; } >&5 3793 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3794 ac_status=$? 3795 if test -s conftest.err; then 3796 sed '10a\ 3797... rest of stderr output deleted ... 3798 10q' conftest.err >conftest.er1 3799 cat conftest.er1 >&5 3800 fi 3801 rm -f conftest.er1 conftest.err 3802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3803 test $ac_status = 0; } 3804done 3805 3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808 3809int 3810main () 3811{ 3812 3813 ; 3814 return 0; 3815} 3816_ACEOF 3817ac_clean_files_save=$ac_clean_files 3818ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3819# Try to create an executable without -o first, disregard a.out. 3820# It will help us diagnose broken compilers, and finding out an intuition 3821# of exeext. 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3823$as_echo_n "checking whether the C compiler works... " >&6; } 3824ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3825 3826# The possible output files: 3827ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3828 3829ac_rmfiles= 3830for ac_file in $ac_files 3831do 3832 case $ac_file in 3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3834 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3835 esac 3836done 3837rm -f $ac_rmfiles 3838 3839if { { ac_try="$ac_link_default" 3840case "(($ac_try" in 3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3842 *) ac_try_echo=$ac_try;; 3843esac 3844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3845$as_echo "$ac_try_echo"; } >&5 3846 (eval "$ac_link_default") 2>&5 3847 ac_status=$? 3848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3849 test $ac_status = 0; }; then : 3850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3851# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3852# in a Makefile. We should not override ac_cv_exeext if it was cached, 3853# so that the user can short-circuit this test for compilers unknown to 3854# Autoconf. 3855for ac_file in $ac_files '' 3856do 3857 test -f "$ac_file" || continue 3858 case $ac_file in 3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3860 ;; 3861 [ab].out ) 3862 # We found the default executable, but exeext='' is most 3863 # certainly right. 3864 break;; 3865 *.* ) 3866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3867 then :; else 3868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3869 fi 3870 # We set ac_cv_exeext here because the later test for it is not 3871 # safe: cross compilers may not add the suffix if given an `-o' 3872 # argument, so we may need to know it at that point already. 3873 # Even if this section looks crufty: it has the advantage of 3874 # actually working. 3875 break;; 3876 * ) 3877 break;; 3878 esac 3879done 3880test "$ac_cv_exeext" = no && ac_cv_exeext= 3881 3882else 3883 ac_file='' 3884fi 3885if test -z "$ac_file"; then : 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3887$as_echo "no" >&6; } 3888$as_echo "$as_me: failed program was:" >&5 3889sed 's/^/| /' conftest.$ac_ext >&5 3890 3891{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3893as_fn_error 77 "C compiler cannot create executables 3894See \`config.log' for more details" "$LINENO" 5; } 3895else 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3897$as_echo "yes" >&6; } 3898fi 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3900$as_echo_n "checking for C compiler default output file name... " >&6; } 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3902$as_echo "$ac_file" >&6; } 3903ac_exeext=$ac_cv_exeext 3904 3905rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3906ac_clean_files=$ac_clean_files_save 3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3908$as_echo_n "checking for suffix of executables... " >&6; } 3909if { { ac_try="$ac_link" 3910case "(($ac_try" in 3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912 *) ac_try_echo=$ac_try;; 3913esac 3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3915$as_echo "$ac_try_echo"; } >&5 3916 (eval "$ac_link") 2>&5 3917 ac_status=$? 3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3919 test $ac_status = 0; }; then : 3920 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3921# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3922# work properly (i.e., refer to `conftest.exe'), while it won't with 3923# `rm'. 3924for ac_file in conftest.exe conftest conftest.*; do 3925 test -f "$ac_file" || continue 3926 case $ac_file in 3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3929 break;; 3930 * ) break;; 3931 esac 3932done 3933else 3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3936as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3937See \`config.log' for more details" "$LINENO" 5; } 3938fi 3939rm -f conftest conftest$ac_cv_exeext 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3941$as_echo "$ac_cv_exeext" >&6; } 3942 3943rm -f conftest.$ac_ext 3944EXEEXT=$ac_cv_exeext 3945ac_exeext=$EXEEXT 3946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3947/* end confdefs.h. */ 3948#include <stdio.h> 3949int 3950main () 3951{ 3952FILE *f = fopen ("conftest.out", "w"); 3953 return ferror (f) || fclose (f) != 0; 3954 3955 ; 3956 return 0; 3957} 3958_ACEOF 3959ac_clean_files="$ac_clean_files conftest.out" 3960# Check that the compiler produces executables we can run. If not, either 3961# the compiler is broken, or we cross compile. 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3963$as_echo_n "checking whether we are cross compiling... " >&6; } 3964if test "$cross_compiling" != yes; then 3965 { { ac_try="$ac_link" 3966case "(($ac_try" in 3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3968 *) ac_try_echo=$ac_try;; 3969esac 3970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3971$as_echo "$ac_try_echo"; } >&5 3972 (eval "$ac_link") 2>&5 3973 ac_status=$? 3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3975 test $ac_status = 0; } 3976 if { ac_try='./conftest$ac_cv_exeext' 3977 { { case "(($ac_try" in 3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3979 *) ac_try_echo=$ac_try;; 3980esac 3981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3982$as_echo "$ac_try_echo"; } >&5 3983 (eval "$ac_try") 2>&5 3984 ac_status=$? 3985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3986 test $ac_status = 0; }; }; then 3987 cross_compiling=no 3988 else 3989 if test "$cross_compiling" = maybe; then 3990 cross_compiling=yes 3991 else 3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3994as_fn_error $? "cannot run C compiled programs. 3995If you meant to cross compile, use \`--host'. 3996See \`config.log' for more details" "$LINENO" 5; } 3997 fi 3998 fi 3999fi 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4001$as_echo "$cross_compiling" >&6; } 4002 4003rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4004ac_clean_files=$ac_clean_files_save 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4006$as_echo_n "checking for suffix of object files... " >&6; } 4007if ${ac_cv_objext+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4011/* end confdefs.h. */ 4012 4013int 4014main () 4015{ 4016 4017 ; 4018 return 0; 4019} 4020_ACEOF 4021rm -f conftest.o conftest.obj 4022if { { ac_try="$ac_compile" 4023case "(($ac_try" in 4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4025 *) ac_try_echo=$ac_try;; 4026esac 4027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4028$as_echo "$ac_try_echo"; } >&5 4029 (eval "$ac_compile") 2>&5 4030 ac_status=$? 4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4032 test $ac_status = 0; }; then : 4033 for ac_file in conftest.o conftest.obj conftest.*; do 4034 test -f "$ac_file" || continue; 4035 case $ac_file in 4036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4038 break;; 4039 esac 4040done 4041else 4042 $as_echo "$as_me: failed program was:" >&5 4043sed 's/^/| /' conftest.$ac_ext >&5 4044 4045{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4047as_fn_error $? "cannot compute suffix of object files: cannot compile 4048See \`config.log' for more details" "$LINENO" 5; } 4049fi 4050rm -f conftest.$ac_cv_objext conftest.$ac_ext 4051fi 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4053$as_echo "$ac_cv_objext" >&6; } 4054OBJEXT=$ac_cv_objext 4055ac_objext=$OBJEXT 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4057$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4058if ${ac_cv_c_compiler_gnu+:} false; then : 4059 $as_echo_n "(cached) " >&6 4060else 4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4062/* end confdefs.h. */ 4063 4064int 4065main () 4066{ 4067#ifndef __GNUC__ 4068 choke me 4069#endif 4070 4071 ; 4072 return 0; 4073} 4074_ACEOF 4075if ac_fn_c_try_compile "$LINENO"; then : 4076 ac_compiler_gnu=yes 4077else 4078 ac_compiler_gnu=no 4079fi 4080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4081ac_cv_c_compiler_gnu=$ac_compiler_gnu 4082 4083fi 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4085$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4086if test $ac_compiler_gnu = yes; then 4087 GCC=yes 4088else 4089 GCC= 4090fi 4091ac_test_CFLAGS=${CFLAGS+set} 4092ac_save_CFLAGS=$CFLAGS 4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4094$as_echo_n "checking whether $CC accepts -g... " >&6; } 4095if ${ac_cv_prog_cc_g+:} false; then : 4096 $as_echo_n "(cached) " >&6 4097else 4098 ac_save_c_werror_flag=$ac_c_werror_flag 4099 ac_c_werror_flag=yes 4100 ac_cv_prog_cc_g=no 4101 CFLAGS="-g" 4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4103/* end confdefs.h. */ 4104 4105int 4106main () 4107{ 4108 4109 ; 4110 return 0; 4111} 4112_ACEOF 4113if ac_fn_c_try_compile "$LINENO"; then : 4114 ac_cv_prog_cc_g=yes 4115else 4116 CFLAGS="" 4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118/* end confdefs.h. */ 4119 4120int 4121main () 4122{ 4123 4124 ; 4125 return 0; 4126} 4127_ACEOF 4128if ac_fn_c_try_compile "$LINENO"; then : 4129 4130else 4131 ac_c_werror_flag=$ac_save_c_werror_flag 4132 CFLAGS="-g" 4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134/* end confdefs.h. */ 4135 4136int 4137main () 4138{ 4139 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144if ac_fn_c_try_compile "$LINENO"; then : 4145 ac_cv_prog_cc_g=yes 4146fi 4147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4148fi 4149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4150fi 4151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4152 ac_c_werror_flag=$ac_save_c_werror_flag 4153fi 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4155$as_echo "$ac_cv_prog_cc_g" >&6; } 4156if test "$ac_test_CFLAGS" = set; then 4157 CFLAGS=$ac_save_CFLAGS 4158elif test $ac_cv_prog_cc_g = yes; then 4159 if test "$GCC" = yes; then 4160 CFLAGS="-g -O2" 4161 else 4162 CFLAGS="-g" 4163 fi 4164else 4165 if test "$GCC" = yes; then 4166 CFLAGS="-O2" 4167 else 4168 CFLAGS= 4169 fi 4170fi 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4172$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4173if ${ac_cv_prog_cc_c89+:} false; then : 4174 $as_echo_n "(cached) " >&6 4175else 4176 ac_cv_prog_cc_c89=no 4177ac_save_CC=$CC 4178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4179/* end confdefs.h. */ 4180#include <stdarg.h> 4181#include <stdio.h> 4182struct stat; 4183/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4184struct buf { int x; }; 4185FILE * (*rcsopen) (struct buf *, struct stat *, int); 4186static char *e (p, i) 4187 char **p; 4188 int i; 4189{ 4190 return p[i]; 4191} 4192static char *f (char * (*g) (char **, int), char **p, ...) 4193{ 4194 char *s; 4195 va_list v; 4196 va_start (v,p); 4197 s = g (p, va_arg (v,int)); 4198 va_end (v); 4199 return s; 4200} 4201 4202/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4203 function prototypes and stuff, but not '\xHH' hex character constants. 4204 These don't provoke an error unfortunately, instead are silently treated 4205 as 'x'. The following induces an error, until -std is added to get 4206 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4207 array size at least. It's necessary to write '\x00'==0 to get something 4208 that's true only with -std. */ 4209int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4210 4211/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4212 inside strings and character constants. */ 4213#define FOO(x) 'x' 4214int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4215 4216int test (int i, double x); 4217struct s1 {int (*f) (int a);}; 4218struct s2 {int (*f) (double a);}; 4219int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4220int argc; 4221char **argv; 4222int 4223main () 4224{ 4225return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4226 ; 4227 return 0; 4228} 4229_ACEOF 4230for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4231 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4232do 4233 CC="$ac_save_CC $ac_arg" 4234 if ac_fn_c_try_compile "$LINENO"; then : 4235 ac_cv_prog_cc_c89=$ac_arg 4236fi 4237rm -f core conftest.err conftest.$ac_objext 4238 test "x$ac_cv_prog_cc_c89" != "xno" && break 4239done 4240rm -f conftest.$ac_ext 4241CC=$ac_save_CC 4242 4243fi 4244# AC_CACHE_VAL 4245case "x$ac_cv_prog_cc_c89" in 4246 x) 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4248$as_echo "none needed" >&6; } ;; 4249 xno) 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4251$as_echo "unsupported" >&6; } ;; 4252 *) 4253 CC="$CC $ac_cv_prog_cc_c89" 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4255$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4256esac 4257if test "x$ac_cv_prog_cc_c89" != xno; then : 4258 4259fi 4260 4261ac_ext=c 4262ac_cpp='$CPP $CPPFLAGS' 4263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4265ac_compiler_gnu=$ac_cv_c_compiler_gnu 4266 4267ac_ext=c 4268ac_cpp='$CPP $CPPFLAGS' 4269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4271ac_compiler_gnu=$ac_cv_c_compiler_gnu 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4273$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4274if ${am_cv_prog_cc_c_o+:} false; then : 4275 $as_echo_n "(cached) " >&6 4276else 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279 4280int 4281main () 4282{ 4283 4284 ; 4285 return 0; 4286} 4287_ACEOF 4288 # Make sure it works both with $CC and with simple cc. 4289 # Following AC_PROG_CC_C_O, we do the test twice because some 4290 # compilers refuse to overwrite an existing .o file with -o, 4291 # though they will create one. 4292 am_cv_prog_cc_c_o=yes 4293 for am_i in 1 2; do 4294 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4295 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4296 ac_status=$? 4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4298 (exit $ac_status); } \ 4299 && test -f conftest2.$ac_objext; then 4300 : OK 4301 else 4302 am_cv_prog_cc_c_o=no 4303 break 4304 fi 4305 done 4306 rm -f core conftest* 4307 unset am_i 4308fi 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4310$as_echo "$am_cv_prog_cc_c_o" >&6; } 4311if test "$am_cv_prog_cc_c_o" != yes; then 4312 # Losing compiler, so override with the script. 4313 # FIXME: It is wrong to rewrite CC. 4314 # But if we don't then we get into trouble of one sort or another. 4315 # A longer-term fix would be to have automake use am__CC in this case, 4316 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4317 CC="$am_aux_dir/compile $CC" 4318fi 4319ac_ext=c 4320ac_cpp='$CPP $CPPFLAGS' 4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4323ac_compiler_gnu=$ac_cv_c_compiler_gnu 4324 4325 4326depcc="$CC" am_compiler_list= 4327 4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4329$as_echo_n "checking dependency style of $depcc... " >&6; } 4330if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4331 $as_echo_n "(cached) " >&6 4332else 4333 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4334 # We make a subdir and do the tests there. Otherwise we can end up 4335 # making bogus files that we don't know about and never remove. For 4336 # instance it was reported that on HP-UX the gcc test will end up 4337 # making a dummy file named 'D' -- because '-MD' means "put the output 4338 # in D". 4339 rm -rf conftest.dir 4340 mkdir conftest.dir 4341 # Copy depcomp to subdir because otherwise we won't find it if we're 4342 # using a relative directory. 4343 cp "$am_depcomp" conftest.dir 4344 cd conftest.dir 4345 # We will build objects and dependencies in a subdirectory because 4346 # it helps to detect inapplicable dependency modes. For instance 4347 # both Tru64's cc and ICC support -MD to output dependencies as a 4348 # side effect of compilation, but ICC will put the dependencies in 4349 # the current directory while Tru64 will put them in the object 4350 # directory. 4351 mkdir sub 4352 4353 am_cv_CC_dependencies_compiler_type=none 4354 if test "$am_compiler_list" = ""; then 4355 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4356 fi 4357 am__universal=false 4358 case " $depcc " in #( 4359 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4360 esac 4361 4362 for depmode in $am_compiler_list; do 4363 # Setup a source with many dependencies, because some compilers 4364 # like to wrap large dependency lists on column 80 (with \), and 4365 # we should not choose a depcomp mode which is confused by this. 4366 # 4367 # We need to recreate these files for each test, as the compiler may 4368 # overwrite some of them when testing with obscure command lines. 4369 # This happens at least with the AIX C compiler. 4370 : > sub/conftest.c 4371 for i in 1 2 3 4 5 6; do 4372 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4373 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4374 # Solaris 10 /bin/sh. 4375 echo '/* dummy */' > sub/conftst$i.h 4376 done 4377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4378 4379 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4380 # mode. It turns out that the SunPro C++ compiler does not properly 4381 # handle '-M -o', and we need to detect this. Also, some Intel 4382 # versions had trouble with output in subdirs. 4383 am__obj=sub/conftest.${OBJEXT-o} 4384 am__minus_obj="-o $am__obj" 4385 case $depmode in 4386 gcc) 4387 # This depmode causes a compiler race in universal mode. 4388 test "$am__universal" = false || continue 4389 ;; 4390 nosideeffect) 4391 # After this tag, mechanisms are not by side-effect, so they'll 4392 # only be used when explicitly requested. 4393 if test "x$enable_dependency_tracking" = xyes; then 4394 continue 4395 else 4396 break 4397 fi 4398 ;; 4399 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4400 # This compiler won't grok '-c -o', but also, the minuso test has 4401 # not run yet. These depmodes are late enough in the game, and 4402 # so weak that their functioning should not be impacted. 4403 am__obj=conftest.${OBJEXT-o} 4404 am__minus_obj= 4405 ;; 4406 none) break ;; 4407 esac 4408 if depmode=$depmode \ 4409 source=sub/conftest.c object=$am__obj \ 4410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4411 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4412 >/dev/null 2>conftest.err && 4413 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4415 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4417 # icc doesn't choke on unknown options, it will just issue warnings 4418 # or remarks (even with -Werror). So we grep stderr for any message 4419 # that says an option was ignored or not supported. 4420 # When given -MP, icc 7.0 and 7.1 complain thusly: 4421 # icc: Command line warning: ignoring option '-M'; no argument required 4422 # The diagnosis changed in icc 8.0: 4423 # icc: Command line remark: option '-MP' not supported 4424 if (grep 'ignoring option' conftest.err || 4425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4426 am_cv_CC_dependencies_compiler_type=$depmode 4427 break 4428 fi 4429 fi 4430 done 4431 4432 cd .. 4433 rm -rf conftest.dir 4434else 4435 am_cv_CC_dependencies_compiler_type=none 4436fi 4437 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4440$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4441CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4442 4443 if 4444 test "x$enable_dependency_tracking" != xno \ 4445 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4446 am__fastdepCC_TRUE= 4447 am__fastdepCC_FALSE='#' 4448else 4449 am__fastdepCC_TRUE='#' 4450 am__fastdepCC_FALSE= 4451fi 4452 4453 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4455$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4456if ${ac_cv_path_SED+:} false; then : 4457 $as_echo_n "(cached) " >&6 4458else 4459 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4460 for ac_i in 1 2 3 4 5 6 7; do 4461 ac_script="$ac_script$as_nl$ac_script" 4462 done 4463 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4464 { ac_script=; unset ac_script;} 4465 if test -z "$SED"; then 4466 ac_path_SED_found=false 4467 # Loop through the user's path and test for each of PROGNAME-LIST 4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469for as_dir in $PATH 4470do 4471 IFS=$as_save_IFS 4472 test -z "$as_dir" && as_dir=. 4473 for ac_prog in sed gsed; do 4474 for ac_exec_ext in '' $ac_executable_extensions; do 4475 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4476 as_fn_executable_p "$ac_path_SED" || continue 4477# Check for GNU ac_path_SED and select it if it is found. 4478 # Check for GNU $ac_path_SED 4479case `"$ac_path_SED" --version 2>&1` in 4480*GNU*) 4481 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4482*) 4483 ac_count=0 4484 $as_echo_n 0123456789 >"conftest.in" 4485 while : 4486 do 4487 cat "conftest.in" "conftest.in" >"conftest.tmp" 4488 mv "conftest.tmp" "conftest.in" 4489 cp "conftest.in" "conftest.nl" 4490 $as_echo '' >> "conftest.nl" 4491 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4493 as_fn_arith $ac_count + 1 && ac_count=$as_val 4494 if test $ac_count -gt ${ac_path_SED_max-0}; then 4495 # Best one so far, save it but keep looking for a better one 4496 ac_cv_path_SED="$ac_path_SED" 4497 ac_path_SED_max=$ac_count 4498 fi 4499 # 10*(2^10) chars as input seems more than enough 4500 test $ac_count -gt 10 && break 4501 done 4502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4503esac 4504 4505 $ac_path_SED_found && break 3 4506 done 4507 done 4508 done 4509IFS=$as_save_IFS 4510 if test -z "$ac_cv_path_SED"; then 4511 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4512 fi 4513else 4514 ac_cv_path_SED=$SED 4515fi 4516 4517fi 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4519$as_echo "$ac_cv_path_SED" >&6; } 4520 SED="$ac_cv_path_SED" 4521 rm -f conftest.sed 4522 4523test -z "$SED" && SED=sed 4524Xsed="$SED -e 1s/^X//" 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4537$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4538if ${ac_cv_path_GREP+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 if test -z "$GREP"; then 4542 ac_path_GREP_found=false 4543 # Loop through the user's path and test for each of PROGNAME-LIST 4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4545for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4546do 4547 IFS=$as_save_IFS 4548 test -z "$as_dir" && as_dir=. 4549 for ac_prog in grep ggrep; do 4550 for ac_exec_ext in '' $ac_executable_extensions; do 4551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4552 as_fn_executable_p "$ac_path_GREP" || continue 4553# Check for GNU ac_path_GREP and select it if it is found. 4554 # Check for GNU $ac_path_GREP 4555case `"$ac_path_GREP" --version 2>&1` in 4556*GNU*) 4557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4558*) 4559 ac_count=0 4560 $as_echo_n 0123456789 >"conftest.in" 4561 while : 4562 do 4563 cat "conftest.in" "conftest.in" >"conftest.tmp" 4564 mv "conftest.tmp" "conftest.in" 4565 cp "conftest.in" "conftest.nl" 4566 $as_echo 'GREP' >> "conftest.nl" 4567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4569 as_fn_arith $ac_count + 1 && ac_count=$as_val 4570 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4571 # Best one so far, save it but keep looking for a better one 4572 ac_cv_path_GREP="$ac_path_GREP" 4573 ac_path_GREP_max=$ac_count 4574 fi 4575 # 10*(2^10) chars as input seems more than enough 4576 test $ac_count -gt 10 && break 4577 done 4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4579esac 4580 4581 $ac_path_GREP_found && break 3 4582 done 4583 done 4584 done 4585IFS=$as_save_IFS 4586 if test -z "$ac_cv_path_GREP"; then 4587 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4588 fi 4589else 4590 ac_cv_path_GREP=$GREP 4591fi 4592 4593fi 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4595$as_echo "$ac_cv_path_GREP" >&6; } 4596 GREP="$ac_cv_path_GREP" 4597 4598 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4600$as_echo_n "checking for egrep... " >&6; } 4601if ${ac_cv_path_EGREP+:} false; then : 4602 $as_echo_n "(cached) " >&6 4603else 4604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4605 then ac_cv_path_EGREP="$GREP -E" 4606 else 4607 if test -z "$EGREP"; then 4608 ac_path_EGREP_found=false 4609 # Loop through the user's path and test for each of PROGNAME-LIST 4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4612do 4613 IFS=$as_save_IFS 4614 test -z "$as_dir" && as_dir=. 4615 for ac_prog in egrep; do 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4618 as_fn_executable_p "$ac_path_EGREP" || continue 4619# Check for GNU ac_path_EGREP and select it if it is found. 4620 # Check for GNU $ac_path_EGREP 4621case `"$ac_path_EGREP" --version 2>&1` in 4622*GNU*) 4623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4624*) 4625 ac_count=0 4626 $as_echo_n 0123456789 >"conftest.in" 4627 while : 4628 do 4629 cat "conftest.in" "conftest.in" >"conftest.tmp" 4630 mv "conftest.tmp" "conftest.in" 4631 cp "conftest.in" "conftest.nl" 4632 $as_echo 'EGREP' >> "conftest.nl" 4633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4635 as_fn_arith $ac_count + 1 && ac_count=$as_val 4636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4637 # Best one so far, save it but keep looking for a better one 4638 ac_cv_path_EGREP="$ac_path_EGREP" 4639 ac_path_EGREP_max=$ac_count 4640 fi 4641 # 10*(2^10) chars as input seems more than enough 4642 test $ac_count -gt 10 && break 4643 done 4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4645esac 4646 4647 $ac_path_EGREP_found && break 3 4648 done 4649 done 4650 done 4651IFS=$as_save_IFS 4652 if test -z "$ac_cv_path_EGREP"; then 4653 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4654 fi 4655else 4656 ac_cv_path_EGREP=$EGREP 4657fi 4658 4659 fi 4660fi 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4662$as_echo "$ac_cv_path_EGREP" >&6; } 4663 EGREP="$ac_cv_path_EGREP" 4664 4665 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4667$as_echo_n "checking for fgrep... " >&6; } 4668if ${ac_cv_path_FGREP+:} false; then : 4669 $as_echo_n "(cached) " >&6 4670else 4671 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4672 then ac_cv_path_FGREP="$GREP -F" 4673 else 4674 if test -z "$FGREP"; then 4675 ac_path_FGREP_found=false 4676 # Loop through the user's path and test for each of PROGNAME-LIST 4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4678for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4679do 4680 IFS=$as_save_IFS 4681 test -z "$as_dir" && as_dir=. 4682 for ac_prog in fgrep; do 4683 for ac_exec_ext in '' $ac_executable_extensions; do 4684 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4685 as_fn_executable_p "$ac_path_FGREP" || continue 4686# Check for GNU ac_path_FGREP and select it if it is found. 4687 # Check for GNU $ac_path_FGREP 4688case `"$ac_path_FGREP" --version 2>&1` in 4689*GNU*) 4690 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4691*) 4692 ac_count=0 4693 $as_echo_n 0123456789 >"conftest.in" 4694 while : 4695 do 4696 cat "conftest.in" "conftest.in" >"conftest.tmp" 4697 mv "conftest.tmp" "conftest.in" 4698 cp "conftest.in" "conftest.nl" 4699 $as_echo 'FGREP' >> "conftest.nl" 4700 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4702 as_fn_arith $ac_count + 1 && ac_count=$as_val 4703 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4704 # Best one so far, save it but keep looking for a better one 4705 ac_cv_path_FGREP="$ac_path_FGREP" 4706 ac_path_FGREP_max=$ac_count 4707 fi 4708 # 10*(2^10) chars as input seems more than enough 4709 test $ac_count -gt 10 && break 4710 done 4711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4712esac 4713 4714 $ac_path_FGREP_found && break 3 4715 done 4716 done 4717 done 4718IFS=$as_save_IFS 4719 if test -z "$ac_cv_path_FGREP"; then 4720 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4721 fi 4722else 4723 ac_cv_path_FGREP=$FGREP 4724fi 4725 4726 fi 4727fi 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4729$as_echo "$ac_cv_path_FGREP" >&6; } 4730 FGREP="$ac_cv_path_FGREP" 4731 4732 4733test -z "$GREP" && GREP=grep 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753# Check whether --with-gnu-ld was given. 4754if test "${with_gnu_ld+set}" = set; then : 4755 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4756else 4757 with_gnu_ld=no 4758fi 4759 4760ac_prog=ld 4761if test yes = "$GCC"; then 4762 # Check if gcc -print-prog-name=ld gives a path. 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4764$as_echo_n "checking for ld used by $CC... " >&6; } 4765 case $host in 4766 *-*-mingw*) 4767 # gcc leaves a trailing carriage return, which upsets mingw 4768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4769 *) 4770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4771 esac 4772 case $ac_prog in 4773 # Accept absolute paths. 4774 [\\/]* | ?:[\\/]*) 4775 re_direlt='/[^/][^/]*/\.\./' 4776 # Canonicalize the pathname of ld 4777 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4778 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4779 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4780 done 4781 test -z "$LD" && LD=$ac_prog 4782 ;; 4783 "") 4784 # If it fails, then pretend we aren't using GCC. 4785 ac_prog=ld 4786 ;; 4787 *) 4788 # If it is relative, then search for the first ld in PATH. 4789 with_gnu_ld=unknown 4790 ;; 4791 esac 4792elif test yes = "$with_gnu_ld"; then 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4794$as_echo_n "checking for GNU ld... " >&6; } 4795else 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4797$as_echo_n "checking for non-GNU ld... " >&6; } 4798fi 4799if ${lt_cv_path_LD+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 if test -z "$LD"; then 4803 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4804 for ac_dir in $PATH; do 4805 IFS=$lt_save_ifs 4806 test -z "$ac_dir" && ac_dir=. 4807 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4808 lt_cv_path_LD=$ac_dir/$ac_prog 4809 # Check to see if the program is GNU ld. I'd rather use --version, 4810 # but apparently some variants of GNU ld only accept -v. 4811 # Break only if it was the GNU/non-GNU ld that we prefer. 4812 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4813 *GNU* | *'with BFD'*) 4814 test no != "$with_gnu_ld" && break 4815 ;; 4816 *) 4817 test yes != "$with_gnu_ld" && break 4818 ;; 4819 esac 4820 fi 4821 done 4822 IFS=$lt_save_ifs 4823else 4824 lt_cv_path_LD=$LD # Let the user override the test with a path. 4825fi 4826fi 4827 4828LD=$lt_cv_path_LD 4829if test -n "$LD"; then 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4831$as_echo "$LD" >&6; } 4832else 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4834$as_echo "no" >&6; } 4835fi 4836test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4838$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4839if ${lt_cv_prog_gnu_ld+:} false; then : 4840 $as_echo_n "(cached) " >&6 4841else 4842 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4843case `$LD -v 2>&1 </dev/null` in 4844*GNU* | *'with BFD'*) 4845 lt_cv_prog_gnu_ld=yes 4846 ;; 4847*) 4848 lt_cv_prog_gnu_ld=no 4849 ;; 4850esac 4851fi 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4853$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4854with_gnu_ld=$lt_cv_prog_gnu_ld 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4865$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4866if ${lt_cv_path_NM+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868else 4869 if test -n "$NM"; then 4870 # Let the user override the test. 4871 lt_cv_path_NM=$NM 4872else 4873 lt_nm_to_check=${ac_tool_prefix}nm 4874 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4875 lt_nm_to_check="$lt_nm_to_check nm" 4876 fi 4877 for lt_tmp_nm in $lt_nm_to_check; do 4878 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4879 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4880 IFS=$lt_save_ifs 4881 test -z "$ac_dir" && ac_dir=. 4882 tmp_nm=$ac_dir/$lt_tmp_nm 4883 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4884 # Check to see if the nm accepts a BSD-compat flag. 4885 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4886 # nm: unknown option "B" ignored 4887 # Tru64's nm complains that /dev/null is an invalid object file 4888 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4889 case $build_os in 4890 mingw*) lt_bad_file=conftest.nm/nofile ;; 4891 *) lt_bad_file=/dev/null ;; 4892 esac 4893 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4894 *$lt_bad_file* | *'Invalid file or object type'*) 4895 lt_cv_path_NM="$tmp_nm -B" 4896 break 2 4897 ;; 4898 *) 4899 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4900 */dev/null*) 4901 lt_cv_path_NM="$tmp_nm -p" 4902 break 2 4903 ;; 4904 *) 4905 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4906 continue # so that we can try to find one that supports BSD flags 4907 ;; 4908 esac 4909 ;; 4910 esac 4911 fi 4912 done 4913 IFS=$lt_save_ifs 4914 done 4915 : ${lt_cv_path_NM=no} 4916fi 4917fi 4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4919$as_echo "$lt_cv_path_NM" >&6; } 4920if test no != "$lt_cv_path_NM"; then 4921 NM=$lt_cv_path_NM 4922else 4923 # Didn't find any BSD compatible name lister, look for dumpbin. 4924 if test -n "$DUMPBIN"; then : 4925 # Let the user override the test. 4926 else 4927 if test -n "$ac_tool_prefix"; then 4928 for ac_prog in dumpbin "link -dump" 4929 do 4930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4931set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4933$as_echo_n "checking for $ac_word... " >&6; } 4934if ${ac_cv_prog_DUMPBIN+:} false; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 if test -n "$DUMPBIN"; then 4938 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4939else 4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4941for as_dir in $PATH 4942do 4943 IFS=$as_save_IFS 4944 test -z "$as_dir" && as_dir=. 4945 for ac_exec_ext in '' $ac_executable_extensions; do 4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4947 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4949 break 2 4950 fi 4951done 4952 done 4953IFS=$as_save_IFS 4954 4955fi 4956fi 4957DUMPBIN=$ac_cv_prog_DUMPBIN 4958if test -n "$DUMPBIN"; then 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4960$as_echo "$DUMPBIN" >&6; } 4961else 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4963$as_echo "no" >&6; } 4964fi 4965 4966 4967 test -n "$DUMPBIN" && break 4968 done 4969fi 4970if test -z "$DUMPBIN"; then 4971 ac_ct_DUMPBIN=$DUMPBIN 4972 for ac_prog in dumpbin "link -dump" 4973do 4974 # Extract the first word of "$ac_prog", so it can be a program name with args. 4975set dummy $ac_prog; ac_word=$2 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4977$as_echo_n "checking for $ac_word... " >&6; } 4978if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4979 $as_echo_n "(cached) " >&6 4980else 4981 if test -n "$ac_ct_DUMPBIN"; then 4982 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4983else 4984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4985for as_dir in $PATH 4986do 4987 IFS=$as_save_IFS 4988 test -z "$as_dir" && as_dir=. 4989 for ac_exec_ext in '' $ac_executable_extensions; do 4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4991 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4993 break 2 4994 fi 4995done 4996 done 4997IFS=$as_save_IFS 4998 4999fi 5000fi 5001ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5002if test -n "$ac_ct_DUMPBIN"; then 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5004$as_echo "$ac_ct_DUMPBIN" >&6; } 5005else 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5007$as_echo "no" >&6; } 5008fi 5009 5010 5011 test -n "$ac_ct_DUMPBIN" && break 5012done 5013 5014 if test "x$ac_ct_DUMPBIN" = x; then 5015 DUMPBIN=":" 5016 else 5017 case $cross_compiling:$ac_tool_warned in 5018yes:) 5019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5021ac_tool_warned=yes ;; 5022esac 5023 DUMPBIN=$ac_ct_DUMPBIN 5024 fi 5025fi 5026 5027 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5028 *COFF*) 5029 DUMPBIN="$DUMPBIN -symbols -headers" 5030 ;; 5031 *) 5032 DUMPBIN=: 5033 ;; 5034 esac 5035 fi 5036 5037 if test : != "$DUMPBIN"; then 5038 NM=$DUMPBIN 5039 fi 5040fi 5041test -z "$NM" && NM=nm 5042 5043 5044 5045 5046 5047 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5049$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5050if ${lt_cv_nm_interface+:} false; then : 5051 $as_echo_n "(cached) " >&6 5052else 5053 lt_cv_nm_interface="BSD nm" 5054 echo "int some_variable = 0;" > conftest.$ac_ext 5055 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5056 (eval "$ac_compile" 2>conftest.err) 5057 cat conftest.err >&5 5058 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5059 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5060 cat conftest.err >&5 5061 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5062 cat conftest.out >&5 5063 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5064 lt_cv_nm_interface="MS dumpbin" 5065 fi 5066 rm -f conftest* 5067fi 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5069$as_echo "$lt_cv_nm_interface" >&6; } 5070 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5072$as_echo_n "checking whether ln -s works... " >&6; } 5073LN_S=$as_ln_s 5074if test "$LN_S" = "ln -s"; then 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5076$as_echo "yes" >&6; } 5077else 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5079$as_echo "no, using $LN_S" >&6; } 5080fi 5081 5082# find the maximum length of command line arguments 5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5084$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5085if ${lt_cv_sys_max_cmd_len+:} false; then : 5086 $as_echo_n "(cached) " >&6 5087else 5088 i=0 5089 teststring=ABCD 5090 5091 case $build_os in 5092 msdosdjgpp*) 5093 # On DJGPP, this test can blow up pretty badly due to problems in libc 5094 # (any single argument exceeding 2000 bytes causes a buffer overrun 5095 # during glob expansion). Even if it were fixed, the result of this 5096 # check would be larger than it should be. 5097 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5098 ;; 5099 5100 gnu*) 5101 # Under GNU Hurd, this test is not required because there is 5102 # no limit to the length of command line arguments. 5103 # Libtool will interpret -1 as no limit whatsoever 5104 lt_cv_sys_max_cmd_len=-1; 5105 ;; 5106 5107 cygwin* | mingw* | cegcc*) 5108 # On Win9x/ME, this test blows up -- it succeeds, but takes 5109 # about 5 minutes as the teststring grows exponentially. 5110 # Worse, since 9x/ME are not pre-emptively multitasking, 5111 # you end up with a "frozen" computer, even though with patience 5112 # the test eventually succeeds (with a max line length of 256k). 5113 # Instead, let's just punt: use the minimum linelength reported by 5114 # all of the supported platforms: 8192 (on NT/2K/XP). 5115 lt_cv_sys_max_cmd_len=8192; 5116 ;; 5117 5118 mint*) 5119 # On MiNT this can take a long time and run out of memory. 5120 lt_cv_sys_max_cmd_len=8192; 5121 ;; 5122 5123 amigaos*) 5124 # On AmigaOS with pdksh, this test takes hours, literally. 5125 # So we just punt and use a minimum line length of 8192. 5126 lt_cv_sys_max_cmd_len=8192; 5127 ;; 5128 5129 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5130 # This has been around since 386BSD, at least. Likely further. 5131 if test -x /sbin/sysctl; then 5132 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5133 elif test -x /usr/sbin/sysctl; then 5134 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5135 else 5136 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5137 fi 5138 # And add a safety zone 5139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5141 ;; 5142 5143 interix*) 5144 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5145 lt_cv_sys_max_cmd_len=196608 5146 ;; 5147 5148 os2*) 5149 # The test takes a long time on OS/2. 5150 lt_cv_sys_max_cmd_len=8192 5151 ;; 5152 5153 osf*) 5154 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5155 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5156 # nice to cause kernel panics so lets avoid the loop below. 5157 # First set a reasonable default. 5158 lt_cv_sys_max_cmd_len=16384 5159 # 5160 if test -x /sbin/sysconfig; then 5161 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5162 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5163 esac 5164 fi 5165 ;; 5166 sco3.2v5*) 5167 lt_cv_sys_max_cmd_len=102400 5168 ;; 5169 sysv5* | sco5v6* | sysv4.2uw2*) 5170 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5171 if test -n "$kargmax"; then 5172 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5173 else 5174 lt_cv_sys_max_cmd_len=32768 5175 fi 5176 ;; 5177 *) 5178 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5179 if test -n "$lt_cv_sys_max_cmd_len" && \ 5180 test undefined != "$lt_cv_sys_max_cmd_len"; then 5181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5183 else 5184 # Make teststring a little bigger before we do anything with it. 5185 # a 1K string should be a reasonable start. 5186 for i in 1 2 3 4 5 6 7 8; do 5187 teststring=$teststring$teststring 5188 done 5189 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5190 # If test is not a shell built-in, we'll probably end up computing a 5191 # maximum length that is only half of the actual maximum length, but 5192 # we can't tell. 5193 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5194 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5195 test 17 != "$i" # 1/2 MB should be enough 5196 do 5197 i=`expr $i + 1` 5198 teststring=$teststring$teststring 5199 done 5200 # Only check the string length outside the loop. 5201 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5202 teststring= 5203 # Add a significant safety factor because C++ compilers can tack on 5204 # massive amounts of additional arguments before passing them to the 5205 # linker. It appears as though 1/2 is a usable value. 5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5207 fi 5208 ;; 5209 esac 5210 5211fi 5212 5213if test -n "$lt_cv_sys_max_cmd_len"; then 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5215$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5216else 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5218$as_echo "none" >&6; } 5219fi 5220max_cmd_len=$lt_cv_sys_max_cmd_len 5221 5222 5223 5224 5225 5226 5227: ${CP="cp -f"} 5228: ${MV="mv -f"} 5229: ${RM="rm -f"} 5230 5231if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5232 lt_unset=unset 5233else 5234 lt_unset=false 5235fi 5236 5237 5238 5239 5240 5241# test EBCDIC or ASCII 5242case `echo X|tr X '\101'` in 5243 A) # ASCII based system 5244 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5245 lt_SP2NL='tr \040 \012' 5246 lt_NL2SP='tr \015\012 \040\040' 5247 ;; 5248 *) # EBCDIC based system 5249 lt_SP2NL='tr \100 \n' 5250 lt_NL2SP='tr \r\n \100\100' 5251 ;; 5252esac 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5263$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5264if ${lt_cv_to_host_file_cmd+:} false; then : 5265 $as_echo_n "(cached) " >&6 5266else 5267 case $host in 5268 *-*-mingw* ) 5269 case $build in 5270 *-*-mingw* ) # actually msys 5271 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5272 ;; 5273 *-*-cygwin* ) 5274 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5275 ;; 5276 * ) # otherwise, assume *nix 5277 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5278 ;; 5279 esac 5280 ;; 5281 *-*-cygwin* ) 5282 case $build in 5283 *-*-mingw* ) # actually msys 5284 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5285 ;; 5286 *-*-cygwin* ) 5287 lt_cv_to_host_file_cmd=func_convert_file_noop 5288 ;; 5289 * ) # otherwise, assume *nix 5290 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5291 ;; 5292 esac 5293 ;; 5294 * ) # unhandled hosts (and "normal" native builds) 5295 lt_cv_to_host_file_cmd=func_convert_file_noop 5296 ;; 5297esac 5298 5299fi 5300 5301to_host_file_cmd=$lt_cv_to_host_file_cmd 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5303$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5304 5305 5306 5307 5308 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5310$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5311if ${lt_cv_to_tool_file_cmd+:} false; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 #assume ordinary cross tools, or native build. 5315lt_cv_to_tool_file_cmd=func_convert_file_noop 5316case $host in 5317 *-*-mingw* ) 5318 case $build in 5319 *-*-mingw* ) # actually msys 5320 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5321 ;; 5322 esac 5323 ;; 5324esac 5325 5326fi 5327 5328to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5330$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5331 5332 5333 5334 5335 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5337$as_echo_n "checking for $LD option to reload object files... " >&6; } 5338if ${lt_cv_ld_reload_flag+:} false; then : 5339 $as_echo_n "(cached) " >&6 5340else 5341 lt_cv_ld_reload_flag='-r' 5342fi 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5344$as_echo "$lt_cv_ld_reload_flag" >&6; } 5345reload_flag=$lt_cv_ld_reload_flag 5346case $reload_flag in 5347"" | " "*) ;; 5348*) reload_flag=" $reload_flag" ;; 5349esac 5350reload_cmds='$LD$reload_flag -o $output$reload_objs' 5351case $host_os in 5352 cygwin* | mingw* | pw32* | cegcc*) 5353 if test yes != "$GCC"; then 5354 reload_cmds=false 5355 fi 5356 ;; 5357 darwin*) 5358 if test yes = "$GCC"; then 5359 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5360 else 5361 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5362 fi 5363 ;; 5364esac 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374if test -n "$ac_tool_prefix"; then 5375 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5376set dummy ${ac_tool_prefix}objdump; ac_word=$2 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5378$as_echo_n "checking for $ac_word... " >&6; } 5379if ${ac_cv_prog_OBJDUMP+:} false; then : 5380 $as_echo_n "(cached) " >&6 5381else 5382 if test -n "$OBJDUMP"; then 5383 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5384else 5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5386for as_dir in $PATH 5387do 5388 IFS=$as_save_IFS 5389 test -z "$as_dir" && as_dir=. 5390 for ac_exec_ext in '' $ac_executable_extensions; do 5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5392 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5394 break 2 5395 fi 5396done 5397 done 5398IFS=$as_save_IFS 5399 5400fi 5401fi 5402OBJDUMP=$ac_cv_prog_OBJDUMP 5403if test -n "$OBJDUMP"; then 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5405$as_echo "$OBJDUMP" >&6; } 5406else 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5408$as_echo "no" >&6; } 5409fi 5410 5411 5412fi 5413if test -z "$ac_cv_prog_OBJDUMP"; then 5414 ac_ct_OBJDUMP=$OBJDUMP 5415 # Extract the first word of "objdump", so it can be a program name with args. 5416set dummy objdump; ac_word=$2 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5418$as_echo_n "checking for $ac_word... " >&6; } 5419if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5420 $as_echo_n "(cached) " >&6 5421else 5422 if test -n "$ac_ct_OBJDUMP"; then 5423 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5424else 5425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5426for as_dir in $PATH 5427do 5428 IFS=$as_save_IFS 5429 test -z "$as_dir" && as_dir=. 5430 for ac_exec_ext in '' $ac_executable_extensions; do 5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5432 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5434 break 2 5435 fi 5436done 5437 done 5438IFS=$as_save_IFS 5439 5440fi 5441fi 5442ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5443if test -n "$ac_ct_OBJDUMP"; then 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5445$as_echo "$ac_ct_OBJDUMP" >&6; } 5446else 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5448$as_echo "no" >&6; } 5449fi 5450 5451 if test "x$ac_ct_OBJDUMP" = x; then 5452 OBJDUMP="false" 5453 else 5454 case $cross_compiling:$ac_tool_warned in 5455yes:) 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5458ac_tool_warned=yes ;; 5459esac 5460 OBJDUMP=$ac_ct_OBJDUMP 5461 fi 5462else 5463 OBJDUMP="$ac_cv_prog_OBJDUMP" 5464fi 5465 5466test -z "$OBJDUMP" && OBJDUMP=objdump 5467 5468 5469 5470 5471 5472 5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5474$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5475if ${lt_cv_deplibs_check_method+:} false; then : 5476 $as_echo_n "(cached) " >&6 5477else 5478 lt_cv_file_magic_cmd='$MAGIC_CMD' 5479lt_cv_file_magic_test_file= 5480lt_cv_deplibs_check_method='unknown' 5481# Need to set the preceding variable on all platforms that support 5482# interlibrary dependencies. 5483# 'none' -- dependencies not supported. 5484# 'unknown' -- same as none, but documents that we really don't know. 5485# 'pass_all' -- all dependencies passed with no checks. 5486# 'test_compile' -- check by making test program. 5487# 'file_magic [[regex]]' -- check by looking for files in library path 5488# that responds to the $file_magic_cmd with a given extended regex. 5489# If you have 'file' or equivalent on your system and you're not sure 5490# whether 'pass_all' will *always* work, you probably want this one. 5491 5492case $host_os in 5493aix[4-9]*) 5494 lt_cv_deplibs_check_method=pass_all 5495 ;; 5496 5497beos*) 5498 lt_cv_deplibs_check_method=pass_all 5499 ;; 5500 5501bsdi[45]*) 5502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5503 lt_cv_file_magic_cmd='/usr/bin/file -L' 5504 lt_cv_file_magic_test_file=/shlib/libc.so 5505 ;; 5506 5507cygwin*) 5508 # func_win32_libid is a shell function defined in ltmain.sh 5509 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5510 lt_cv_file_magic_cmd='func_win32_libid' 5511 ;; 5512 5513mingw* | pw32*) 5514 # Base MSYS/MinGW do not provide the 'file' command needed by 5515 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5516 # unless we find 'file', for example because we are cross-compiling. 5517 if ( file / ) >/dev/null 2>&1; then 5518 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5519 lt_cv_file_magic_cmd='func_win32_libid' 5520 else 5521 # Keep this pattern in sync with the one in func_win32_libid. 5522 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5523 lt_cv_file_magic_cmd='$OBJDUMP -f' 5524 fi 5525 ;; 5526 5527cegcc*) 5528 # use the weaker test based on 'objdump'. See mingw*. 5529 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5530 lt_cv_file_magic_cmd='$OBJDUMP -f' 5531 ;; 5532 5533darwin* | rhapsody*) 5534 lt_cv_deplibs_check_method=pass_all 5535 ;; 5536 5537freebsd* | dragonfly*) 5538 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5539 case $host_cpu in 5540 i*86 ) 5541 # Not sure whether the presence of OpenBSD here was a mistake. 5542 # Let's accept both of them until this is cleared up. 5543 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5544 lt_cv_file_magic_cmd=/usr/bin/file 5545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5546 ;; 5547 esac 5548 else 5549 lt_cv_deplibs_check_method=pass_all 5550 fi 5551 ;; 5552 5553haiku*) 5554 lt_cv_deplibs_check_method=pass_all 5555 ;; 5556 5557hpux10.20* | hpux11*) 5558 lt_cv_file_magic_cmd=/usr/bin/file 5559 case $host_cpu in 5560 ia64*) 5561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5562 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5563 ;; 5564 hppa*64*) 5565 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5566 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5567 ;; 5568 *) 5569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5570 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5571 ;; 5572 esac 5573 ;; 5574 5575interix[3-9]*) 5576 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5578 ;; 5579 5580irix5* | irix6* | nonstopux*) 5581 case $LD in 5582 *-32|*"-32 ") libmagic=32-bit;; 5583 *-n32|*"-n32 ") libmagic=N32;; 5584 *-64|*"-64 ") libmagic=64-bit;; 5585 *) libmagic=never-match;; 5586 esac 5587 lt_cv_deplibs_check_method=pass_all 5588 ;; 5589 5590# This must be glibc/ELF. 5591linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5592 lt_cv_deplibs_check_method=pass_all 5593 ;; 5594 5595netbsd*) 5596 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5598 else 5599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5600 fi 5601 ;; 5602 5603newos6*) 5604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5605 lt_cv_file_magic_cmd=/usr/bin/file 5606 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5607 ;; 5608 5609*nto* | *qnx*) 5610 lt_cv_deplibs_check_method=pass_all 5611 ;; 5612 5613openbsd* | bitrig*) 5614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5616 else 5617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5618 fi 5619 ;; 5620 5621osf3* | osf4* | osf5*) 5622 lt_cv_deplibs_check_method=pass_all 5623 ;; 5624 5625rdos*) 5626 lt_cv_deplibs_check_method=pass_all 5627 ;; 5628 5629solaris*) 5630 lt_cv_deplibs_check_method=pass_all 5631 ;; 5632 5633sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5634 lt_cv_deplibs_check_method=pass_all 5635 ;; 5636 5637sysv4 | sysv4.3*) 5638 case $host_vendor in 5639 motorola) 5640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 5641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5642 ;; 5643 ncr) 5644 lt_cv_deplibs_check_method=pass_all 5645 ;; 5646 sequent) 5647 lt_cv_file_magic_cmd='/bin/file' 5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5649 ;; 5650 sni) 5651 lt_cv_file_magic_cmd='/bin/file' 5652 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5653 lt_cv_file_magic_test_file=/lib/libc.so 5654 ;; 5655 siemens) 5656 lt_cv_deplibs_check_method=pass_all 5657 ;; 5658 pc) 5659 lt_cv_deplibs_check_method=pass_all 5660 ;; 5661 esac 5662 ;; 5663 5664tpf*) 5665 lt_cv_deplibs_check_method=pass_all 5666 ;; 5667os2*) 5668 lt_cv_deplibs_check_method=pass_all 5669 ;; 5670esac 5671 5672fi 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5674$as_echo "$lt_cv_deplibs_check_method" >&6; } 5675 5676file_magic_glob= 5677want_nocaseglob=no 5678if test "$build" = "$host"; then 5679 case $host_os in 5680 mingw* | pw32*) 5681 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5682 want_nocaseglob=yes 5683 else 5684 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5685 fi 5686 ;; 5687 esac 5688fi 5689 5690file_magic_cmd=$lt_cv_file_magic_cmd 5691deplibs_check_method=$lt_cv_deplibs_check_method 5692test -z "$deplibs_check_method" && deplibs_check_method=unknown 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715if test -n "$ac_tool_prefix"; then 5716 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5717set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5719$as_echo_n "checking for $ac_word... " >&6; } 5720if ${ac_cv_prog_DLLTOOL+:} false; then : 5721 $as_echo_n "(cached) " >&6 5722else 5723 if test -n "$DLLTOOL"; then 5724 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5725else 5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5727for as_dir in $PATH 5728do 5729 IFS=$as_save_IFS 5730 test -z "$as_dir" && as_dir=. 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5733 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5735 break 2 5736 fi 5737done 5738 done 5739IFS=$as_save_IFS 5740 5741fi 5742fi 5743DLLTOOL=$ac_cv_prog_DLLTOOL 5744if test -n "$DLLTOOL"; then 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5746$as_echo "$DLLTOOL" >&6; } 5747else 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5749$as_echo "no" >&6; } 5750fi 5751 5752 5753fi 5754if test -z "$ac_cv_prog_DLLTOOL"; then 5755 ac_ct_DLLTOOL=$DLLTOOL 5756 # Extract the first word of "dlltool", so it can be a program name with args. 5757set dummy dlltool; ac_word=$2 5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5759$as_echo_n "checking for $ac_word... " >&6; } 5760if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5761 $as_echo_n "(cached) " >&6 5762else 5763 if test -n "$ac_ct_DLLTOOL"; then 5764 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5765else 5766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5767for as_dir in $PATH 5768do 5769 IFS=$as_save_IFS 5770 test -z "$as_dir" && as_dir=. 5771 for ac_exec_ext in '' $ac_executable_extensions; do 5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5773 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5775 break 2 5776 fi 5777done 5778 done 5779IFS=$as_save_IFS 5780 5781fi 5782fi 5783ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5784if test -n "$ac_ct_DLLTOOL"; then 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5786$as_echo "$ac_ct_DLLTOOL" >&6; } 5787else 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5789$as_echo "no" >&6; } 5790fi 5791 5792 if test "x$ac_ct_DLLTOOL" = x; then 5793 DLLTOOL="false" 5794 else 5795 case $cross_compiling:$ac_tool_warned in 5796yes:) 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5799ac_tool_warned=yes ;; 5800esac 5801 DLLTOOL=$ac_ct_DLLTOOL 5802 fi 5803else 5804 DLLTOOL="$ac_cv_prog_DLLTOOL" 5805fi 5806 5807test -z "$DLLTOOL" && DLLTOOL=dlltool 5808 5809 5810 5811 5812 5813 5814 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5816$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5817if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5818 $as_echo_n "(cached) " >&6 5819else 5820 lt_cv_sharedlib_from_linklib_cmd='unknown' 5821 5822case $host_os in 5823cygwin* | mingw* | pw32* | cegcc*) 5824 # two different shell functions defined in ltmain.sh; 5825 # decide which one to use based on capabilities of $DLLTOOL 5826 case `$DLLTOOL --help 2>&1` in 5827 *--identify-strict*) 5828 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5829 ;; 5830 *) 5831 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5832 ;; 5833 esac 5834 ;; 5835*) 5836 # fallback: assume linklib IS sharedlib 5837 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5838 ;; 5839esac 5840 5841fi 5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5843$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5844sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5845test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5846 5847 5848 5849 5850 5851 5852 5853 5854if test -n "$ac_tool_prefix"; then 5855 for ac_prog in ar 5856 do 5857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5858set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5860$as_echo_n "checking for $ac_word... " >&6; } 5861if ${ac_cv_prog_AR+:} false; then : 5862 $as_echo_n "(cached) " >&6 5863else 5864 if test -n "$AR"; then 5865 ac_cv_prog_AR="$AR" # Let the user override the test. 5866else 5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5868for as_dir in $PATH 5869do 5870 IFS=$as_save_IFS 5871 test -z "$as_dir" && as_dir=. 5872 for ac_exec_ext in '' $ac_executable_extensions; do 5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5874 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5876 break 2 5877 fi 5878done 5879 done 5880IFS=$as_save_IFS 5881 5882fi 5883fi 5884AR=$ac_cv_prog_AR 5885if test -n "$AR"; then 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5887$as_echo "$AR" >&6; } 5888else 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5890$as_echo "no" >&6; } 5891fi 5892 5893 5894 test -n "$AR" && break 5895 done 5896fi 5897if test -z "$AR"; then 5898 ac_ct_AR=$AR 5899 for ac_prog in ar 5900do 5901 # Extract the first word of "$ac_prog", so it can be a program name with args. 5902set dummy $ac_prog; ac_word=$2 5903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5904$as_echo_n "checking for $ac_word... " >&6; } 5905if ${ac_cv_prog_ac_ct_AR+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 if test -n "$ac_ct_AR"; then 5909 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5910else 5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5912for as_dir in $PATH 5913do 5914 IFS=$as_save_IFS 5915 test -z "$as_dir" && as_dir=. 5916 for ac_exec_ext in '' $ac_executable_extensions; do 5917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5918 ac_cv_prog_ac_ct_AR="$ac_prog" 5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5920 break 2 5921 fi 5922done 5923 done 5924IFS=$as_save_IFS 5925 5926fi 5927fi 5928ac_ct_AR=$ac_cv_prog_ac_ct_AR 5929if test -n "$ac_ct_AR"; then 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5931$as_echo "$ac_ct_AR" >&6; } 5932else 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5934$as_echo "no" >&6; } 5935fi 5936 5937 5938 test -n "$ac_ct_AR" && break 5939done 5940 5941 if test "x$ac_ct_AR" = x; then 5942 AR="false" 5943 else 5944 case $cross_compiling:$ac_tool_warned in 5945yes:) 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5948ac_tool_warned=yes ;; 5949esac 5950 AR=$ac_ct_AR 5951 fi 5952fi 5953 5954: ${AR=ar} 5955: ${AR_FLAGS=cru} 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5968$as_echo_n "checking for archiver @FILE support... " >&6; } 5969if ${lt_cv_ar_at_file+:} false; then : 5970 $as_echo_n "(cached) " >&6 5971else 5972 lt_cv_ar_at_file=no 5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5974/* end confdefs.h. */ 5975 5976int 5977main () 5978{ 5979 5980 ; 5981 return 0; 5982} 5983_ACEOF 5984if ac_fn_c_try_compile "$LINENO"; then : 5985 echo conftest.$ac_objext > conftest.lst 5986 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5988 (eval $lt_ar_try) 2>&5 5989 ac_status=$? 5990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5991 test $ac_status = 0; } 5992 if test 0 -eq "$ac_status"; then 5993 # Ensure the archiver fails upon bogus file names. 5994 rm -f conftest.$ac_objext libconftest.a 5995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5996 (eval $lt_ar_try) 2>&5 5997 ac_status=$? 5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5999 test $ac_status = 0; } 6000 if test 0 -ne "$ac_status"; then 6001 lt_cv_ar_at_file=@ 6002 fi 6003 fi 6004 rm -f conftest.* libconftest.a 6005 6006fi 6007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6008 6009fi 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6011$as_echo "$lt_cv_ar_at_file" >&6; } 6012 6013if test no = "$lt_cv_ar_at_file"; then 6014 archiver_list_spec= 6015else 6016 archiver_list_spec=$lt_cv_ar_at_file 6017fi 6018 6019 6020 6021 6022 6023 6024 6025if test -n "$ac_tool_prefix"; then 6026 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6027set dummy ${ac_tool_prefix}strip; ac_word=$2 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6029$as_echo_n "checking for $ac_word... " >&6; } 6030if ${ac_cv_prog_STRIP+:} false; then : 6031 $as_echo_n "(cached) " >&6 6032else 6033 if test -n "$STRIP"; then 6034 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6035else 6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6037for as_dir in $PATH 6038do 6039 IFS=$as_save_IFS 6040 test -z "$as_dir" && as_dir=. 6041 for ac_exec_ext in '' $ac_executable_extensions; do 6042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6043 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6045 break 2 6046 fi 6047done 6048 done 6049IFS=$as_save_IFS 6050 6051fi 6052fi 6053STRIP=$ac_cv_prog_STRIP 6054if test -n "$STRIP"; then 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6056$as_echo "$STRIP" >&6; } 6057else 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6059$as_echo "no" >&6; } 6060fi 6061 6062 6063fi 6064if test -z "$ac_cv_prog_STRIP"; then 6065 ac_ct_STRIP=$STRIP 6066 # Extract the first word of "strip", so it can be a program name with args. 6067set dummy strip; ac_word=$2 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6069$as_echo_n "checking for $ac_word... " >&6; } 6070if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6071 $as_echo_n "(cached) " >&6 6072else 6073 if test -n "$ac_ct_STRIP"; then 6074 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6075else 6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6077for as_dir in $PATH 6078do 6079 IFS=$as_save_IFS 6080 test -z "$as_dir" && as_dir=. 6081 for ac_exec_ext in '' $ac_executable_extensions; do 6082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6083 ac_cv_prog_ac_ct_STRIP="strip" 6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6085 break 2 6086 fi 6087done 6088 done 6089IFS=$as_save_IFS 6090 6091fi 6092fi 6093ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6094if test -n "$ac_ct_STRIP"; then 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6096$as_echo "$ac_ct_STRIP" >&6; } 6097else 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6099$as_echo "no" >&6; } 6100fi 6101 6102 if test "x$ac_ct_STRIP" = x; then 6103 STRIP=":" 6104 else 6105 case $cross_compiling:$ac_tool_warned in 6106yes:) 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6109ac_tool_warned=yes ;; 6110esac 6111 STRIP=$ac_ct_STRIP 6112 fi 6113else 6114 STRIP="$ac_cv_prog_STRIP" 6115fi 6116 6117test -z "$STRIP" && STRIP=: 6118 6119 6120 6121 6122 6123 6124if test -n "$ac_tool_prefix"; then 6125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6126set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6128$as_echo_n "checking for $ac_word... " >&6; } 6129if ${ac_cv_prog_RANLIB+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 if test -n "$RANLIB"; then 6133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6134else 6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6136for as_dir in $PATH 6137do 6138 IFS=$as_save_IFS 6139 test -z "$as_dir" && as_dir=. 6140 for ac_exec_ext in '' $ac_executable_extensions; do 6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6144 break 2 6145 fi 6146done 6147 done 6148IFS=$as_save_IFS 6149 6150fi 6151fi 6152RANLIB=$ac_cv_prog_RANLIB 6153if test -n "$RANLIB"; then 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6155$as_echo "$RANLIB" >&6; } 6156else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158$as_echo "no" >&6; } 6159fi 6160 6161 6162fi 6163if test -z "$ac_cv_prog_RANLIB"; then 6164 ac_ct_RANLIB=$RANLIB 6165 # Extract the first word of "ranlib", so it can be a program name with args. 6166set dummy ranlib; ac_word=$2 6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6168$as_echo_n "checking for $ac_word... " >&6; } 6169if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6170 $as_echo_n "(cached) " >&6 6171else 6172 if test -n "$ac_ct_RANLIB"; then 6173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6174else 6175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6176for as_dir in $PATH 6177do 6178 IFS=$as_save_IFS 6179 test -z "$as_dir" && as_dir=. 6180 for ac_exec_ext in '' $ac_executable_extensions; do 6181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6182 ac_cv_prog_ac_ct_RANLIB="ranlib" 6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6184 break 2 6185 fi 6186done 6187 done 6188IFS=$as_save_IFS 6189 6190fi 6191fi 6192ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6193if test -n "$ac_ct_RANLIB"; then 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6195$as_echo "$ac_ct_RANLIB" >&6; } 6196else 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6198$as_echo "no" >&6; } 6199fi 6200 6201 if test "x$ac_ct_RANLIB" = x; then 6202 RANLIB=":" 6203 else 6204 case $cross_compiling:$ac_tool_warned in 6205yes:) 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6208ac_tool_warned=yes ;; 6209esac 6210 RANLIB=$ac_ct_RANLIB 6211 fi 6212else 6213 RANLIB="$ac_cv_prog_RANLIB" 6214fi 6215 6216test -z "$RANLIB" && RANLIB=: 6217 6218 6219 6220 6221 6222 6223# Determine commands to create old-style static archives. 6224old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6225old_postinstall_cmds='chmod 644 $oldlib' 6226old_postuninstall_cmds= 6227 6228if test -n "$RANLIB"; then 6229 case $host_os in 6230 bitrig* | openbsd*) 6231 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6232 ;; 6233 *) 6234 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6235 ;; 6236 esac 6237 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6238fi 6239 6240case $host_os in 6241 darwin*) 6242 lock_old_archive_extraction=yes ;; 6243 *) 6244 lock_old_archive_extraction=no ;; 6245esac 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285# If no C compiler was specified, use CC. 6286LTCC=${LTCC-"$CC"} 6287 6288# If no C compiler flags were specified, use CFLAGS. 6289LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6290 6291# Allow CC to be a program name with arguments. 6292compiler=$CC 6293 6294 6295# Check for command to grab the raw symbol name followed by C symbol from nm. 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6297$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6298if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6299 $as_echo_n "(cached) " >&6 6300else 6301 6302# These are sane defaults that work on at least a few old systems. 6303# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6304 6305# Character class describing NM global symbol codes. 6306symcode='[BCDEGRST]' 6307 6308# Regexp to match symbols that can be accessed directly from C. 6309sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6310 6311# Define system-specific variables. 6312case $host_os in 6313aix*) 6314 symcode='[BCDT]' 6315 ;; 6316cygwin* | mingw* | pw32* | cegcc*) 6317 symcode='[ABCDGISTW]' 6318 ;; 6319hpux*) 6320 if test ia64 = "$host_cpu"; then 6321 symcode='[ABCDEGRST]' 6322 fi 6323 ;; 6324irix* | nonstopux*) 6325 symcode='[BCDEGRST]' 6326 ;; 6327osf*) 6328 symcode='[BCDEGQRST]' 6329 ;; 6330solaris*) 6331 symcode='[BDRT]' 6332 ;; 6333sco3.2v5*) 6334 symcode='[DT]' 6335 ;; 6336sysv4.2uw2*) 6337 symcode='[DT]' 6338 ;; 6339sysv5* | sco5v6* | unixware* | OpenUNIX*) 6340 symcode='[ABDT]' 6341 ;; 6342sysv4) 6343 symcode='[DFNSTU]' 6344 ;; 6345esac 6346 6347# If we're using GNU nm, then use its standard symbol codes. 6348case `$NM -V 2>&1` in 6349*GNU* | *'with BFD'*) 6350 symcode='[ABCDGIRSTW]' ;; 6351esac 6352 6353if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6354 # Gets list of data symbols to import. 6355 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6356 # Adjust the below global symbol transforms to fixup imported variables. 6357 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6358 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6359 lt_c_name_lib_hook="\ 6360 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6361 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6362else 6363 # Disable hooks by default. 6364 lt_cv_sys_global_symbol_to_import= 6365 lt_cdecl_hook= 6366 lt_c_name_hook= 6367 lt_c_name_lib_hook= 6368fi 6369 6370# Transform an extracted symbol line into a proper C declaration. 6371# Some systems (esp. on ia64) link data and code symbols differently, 6372# so use this general approach. 6373lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6374$lt_cdecl_hook\ 6375" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6376" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6377 6378# Transform an extracted symbol line into symbol name and symbol address 6379lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6380$lt_c_name_hook\ 6381" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6382" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6383 6384# Transform an extracted symbol line into symbol name with lib prefix and 6385# symbol address. 6386lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6387$lt_c_name_lib_hook\ 6388" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6389" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6390" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6391 6392# Handle CRLF in mingw tool chain 6393opt_cr= 6394case $build_os in 6395mingw*) 6396 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6397 ;; 6398esac 6399 6400# Try without a prefix underscore, then with it. 6401for ac_symprfx in "" "_"; do 6402 6403 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6404 symxfrm="\\1 $ac_symprfx\\2 \\2" 6405 6406 # Write the raw and C identifiers. 6407 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6408 # Fake it for dumpbin and say T for any non-static function, 6409 # D for any global variable and I for any imported variable. 6410 # Also find C++ and __fastcall symbols from MSVC++, 6411 # which start with @ or ?. 6412 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6413" {last_section=section; section=\$ 3};"\ 6414" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6415" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6416" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6417" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6418" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6419" \$ 0!~/External *\|/{next};"\ 6420" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6421" {if(hide[section]) next};"\ 6422" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6423" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6424" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6425" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6426" ' prfx=^$ac_symprfx" 6427 else 6428 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6429 fi 6430 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6431 6432 # Check to see that the pipe works correctly. 6433 pipe_works=no 6434 6435 rm -f conftest* 6436 cat > conftest.$ac_ext <<_LT_EOF 6437#ifdef __cplusplus 6438extern "C" { 6439#endif 6440char nm_test_var; 6441void nm_test_func(void); 6442void nm_test_func(void){} 6443#ifdef __cplusplus 6444} 6445#endif 6446int main(){nm_test_var='a';nm_test_func();return(0);} 6447_LT_EOF 6448 6449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6450 (eval $ac_compile) 2>&5 6451 ac_status=$? 6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6453 test $ac_status = 0; }; then 6454 # Now try to grab the symbols. 6455 nlist=conftest.nm 6456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6457 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6458 ac_status=$? 6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6460 test $ac_status = 0; } && test -s "$nlist"; then 6461 # Try sorting and uniquifying the output. 6462 if sort "$nlist" | uniq > "$nlist"T; then 6463 mv -f "$nlist"T "$nlist" 6464 else 6465 rm -f "$nlist"T 6466 fi 6467 6468 # Make sure that we snagged all the symbols we need. 6469 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6470 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6471 cat <<_LT_EOF > conftest.$ac_ext 6472/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6473#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6474/* DATA imports from DLLs on WIN32 can't be const, because runtime 6475 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6476# define LT_DLSYM_CONST 6477#elif defined __osf__ 6478/* This system does not cope well with relocations in const data. */ 6479# define LT_DLSYM_CONST 6480#else 6481# define LT_DLSYM_CONST const 6482#endif 6483 6484#ifdef __cplusplus 6485extern "C" { 6486#endif 6487 6488_LT_EOF 6489 # Now generate the symbol file. 6490 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6491 6492 cat <<_LT_EOF >> conftest.$ac_ext 6493 6494/* The mapping between symbol names and symbols. */ 6495LT_DLSYM_CONST struct { 6496 const char *name; 6497 void *address; 6498} 6499lt__PROGRAM__LTX_preloaded_symbols[] = 6500{ 6501 { "@PROGRAM@", (void *) 0 }, 6502_LT_EOF 6503 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6504 cat <<\_LT_EOF >> conftest.$ac_ext 6505 {0, (void *) 0} 6506}; 6507 6508/* This works around a problem in FreeBSD linker */ 6509#ifdef FREEBSD_WORKAROUND 6510static const void *lt_preloaded_setup() { 6511 return lt__PROGRAM__LTX_preloaded_symbols; 6512} 6513#endif 6514 6515#ifdef __cplusplus 6516} 6517#endif 6518_LT_EOF 6519 # Now try linking the two files. 6520 mv conftest.$ac_objext conftstm.$ac_objext 6521 lt_globsym_save_LIBS=$LIBS 6522 lt_globsym_save_CFLAGS=$CFLAGS 6523 LIBS=conftstm.$ac_objext 6524 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6526 (eval $ac_link) 2>&5 6527 ac_status=$? 6528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6529 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6530 pipe_works=yes 6531 fi 6532 LIBS=$lt_globsym_save_LIBS 6533 CFLAGS=$lt_globsym_save_CFLAGS 6534 else 6535 echo "cannot find nm_test_func in $nlist" >&5 6536 fi 6537 else 6538 echo "cannot find nm_test_var in $nlist" >&5 6539 fi 6540 else 6541 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6542 fi 6543 else 6544 echo "$progname: failed program was:" >&5 6545 cat conftest.$ac_ext >&5 6546 fi 6547 rm -rf conftest* conftst* 6548 6549 # Do not use the global_symbol_pipe unless it works. 6550 if test yes = "$pipe_works"; then 6551 break 6552 else 6553 lt_cv_sys_global_symbol_pipe= 6554 fi 6555done 6556 6557fi 6558 6559if test -z "$lt_cv_sys_global_symbol_pipe"; then 6560 lt_cv_sys_global_symbol_to_cdecl= 6561fi 6562if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6564$as_echo "failed" >&6; } 6565else 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6567$as_echo "ok" >&6; } 6568fi 6569 6570# Response file support. 6571if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6572 nm_file_list_spec='@' 6573elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6574 nm_file_list_spec='@' 6575fi 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6614$as_echo_n "checking for sysroot... " >&6; } 6615 6616# Check whether --with-sysroot was given. 6617if test "${with_sysroot+set}" = set; then : 6618 withval=$with_sysroot; 6619else 6620 with_sysroot=no 6621fi 6622 6623 6624lt_sysroot= 6625case $with_sysroot in #( 6626 yes) 6627 if test yes = "$GCC"; then 6628 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6629 fi 6630 ;; #( 6631 /*) 6632 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6633 ;; #( 6634 no|'') 6635 ;; #( 6636 *) 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6638$as_echo "$with_sysroot" >&6; } 6639 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6640 ;; 6641esac 6642 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6644$as_echo "${lt_sysroot:-no}" >&6; } 6645 6646 6647 6648 6649 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6651$as_echo_n "checking for a working dd... " >&6; } 6652if ${ac_cv_path_lt_DD+:} false; then : 6653 $as_echo_n "(cached) " >&6 6654else 6655 printf 0123456789abcdef0123456789abcdef >conftest.i 6656cat conftest.i conftest.i >conftest2.i 6657: ${lt_DD:=$DD} 6658if test -z "$lt_DD"; then 6659 ac_path_lt_DD_found=false 6660 # Loop through the user's path and test for each of PROGNAME-LIST 6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6662for as_dir in $PATH 6663do 6664 IFS=$as_save_IFS 6665 test -z "$as_dir" && as_dir=. 6666 for ac_prog in dd; do 6667 for ac_exec_ext in '' $ac_executable_extensions; do 6668 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6669 as_fn_executable_p "$ac_path_lt_DD" || continue 6670if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6671 cmp -s conftest.i conftest.out \ 6672 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6673fi 6674 $ac_path_lt_DD_found && break 3 6675 done 6676 done 6677 done 6678IFS=$as_save_IFS 6679 if test -z "$ac_cv_path_lt_DD"; then 6680 : 6681 fi 6682else 6683 ac_cv_path_lt_DD=$lt_DD 6684fi 6685 6686rm -f conftest.i conftest2.i conftest.out 6687fi 6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6689$as_echo "$ac_cv_path_lt_DD" >&6; } 6690 6691 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6693$as_echo_n "checking how to truncate binary pipes... " >&6; } 6694if ${lt_cv_truncate_bin+:} false; then : 6695 $as_echo_n "(cached) " >&6 6696else 6697 printf 0123456789abcdef0123456789abcdef >conftest.i 6698cat conftest.i conftest.i >conftest2.i 6699lt_cv_truncate_bin= 6700if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6701 cmp -s conftest.i conftest.out \ 6702 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6703fi 6704rm -f conftest.i conftest2.i conftest.out 6705test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6706fi 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6708$as_echo "$lt_cv_truncate_bin" >&6; } 6709 6710 6711 6712 6713 6714 6715 6716# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6717func_cc_basename () 6718{ 6719 for cc_temp in $*""; do 6720 case $cc_temp in 6721 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6722 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6723 \-*) ;; 6724 *) break;; 6725 esac 6726 done 6727 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6728} 6729 6730# Check whether --enable-libtool-lock was given. 6731if test "${enable_libtool_lock+set}" = set; then : 6732 enableval=$enable_libtool_lock; 6733fi 6734 6735test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6736 6737# Some flags need to be propagated to the compiler or linker for good 6738# libtool support. 6739case $host in 6740ia64-*-hpux*) 6741 # Find out what ABI is being produced by ac_compile, and set mode 6742 # options accordingly. 6743 echo 'int i;' > conftest.$ac_ext 6744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6745 (eval $ac_compile) 2>&5 6746 ac_status=$? 6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6748 test $ac_status = 0; }; then 6749 case `/usr/bin/file conftest.$ac_objext` in 6750 *ELF-32*) 6751 HPUX_IA64_MODE=32 6752 ;; 6753 *ELF-64*) 6754 HPUX_IA64_MODE=64 6755 ;; 6756 esac 6757 fi 6758 rm -rf conftest* 6759 ;; 6760*-*-irix6*) 6761 # Find out what ABI is being produced by ac_compile, and set linker 6762 # options accordingly. 6763 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6765 (eval $ac_compile) 2>&5 6766 ac_status=$? 6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6768 test $ac_status = 0; }; then 6769 if test yes = "$lt_cv_prog_gnu_ld"; then 6770 case `/usr/bin/file conftest.$ac_objext` in 6771 *32-bit*) 6772 LD="${LD-ld} -melf32bsmip" 6773 ;; 6774 *N32*) 6775 LD="${LD-ld} -melf32bmipn32" 6776 ;; 6777 *64-bit*) 6778 LD="${LD-ld} -melf64bmip" 6779 ;; 6780 esac 6781 else 6782 case `/usr/bin/file conftest.$ac_objext` in 6783 *32-bit*) 6784 LD="${LD-ld} -32" 6785 ;; 6786 *N32*) 6787 LD="${LD-ld} -n32" 6788 ;; 6789 *64-bit*) 6790 LD="${LD-ld} -64" 6791 ;; 6792 esac 6793 fi 6794 fi 6795 rm -rf conftest* 6796 ;; 6797 6798mips64*-*linux*) 6799 # Find out what ABI is being produced by ac_compile, and set linker 6800 # options accordingly. 6801 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6803 (eval $ac_compile) 2>&5 6804 ac_status=$? 6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6806 test $ac_status = 0; }; then 6807 emul=elf 6808 case `/usr/bin/file conftest.$ac_objext` in 6809 *32-bit*) 6810 emul="${emul}32" 6811 ;; 6812 *64-bit*) 6813 emul="${emul}64" 6814 ;; 6815 esac 6816 case `/usr/bin/file conftest.$ac_objext` in 6817 *MSB*) 6818 emul="${emul}btsmip" 6819 ;; 6820 *LSB*) 6821 emul="${emul}ltsmip" 6822 ;; 6823 esac 6824 case `/usr/bin/file conftest.$ac_objext` in 6825 *N32*) 6826 emul="${emul}n32" 6827 ;; 6828 esac 6829 LD="${LD-ld} -m $emul" 6830 fi 6831 rm -rf conftest* 6832 ;; 6833 6834x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6835s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6836 # Find out what ABI is being produced by ac_compile, and set linker 6837 # options accordingly. Note that the listed cases only cover the 6838 # situations where additional linker options are needed (such as when 6839 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6840 # vice versa); the common cases where no linker options are needed do 6841 # not appear in the list. 6842 echo 'int i;' > conftest.$ac_ext 6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6844 (eval $ac_compile) 2>&5 6845 ac_status=$? 6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6847 test $ac_status = 0; }; then 6848 case `/usr/bin/file conftest.o` in 6849 *32-bit*) 6850 case $host in 6851 x86_64-*kfreebsd*-gnu) 6852 LD="${LD-ld} -m elf_i386_fbsd" 6853 ;; 6854 x86_64-*linux*) 6855 case `/usr/bin/file conftest.o` in 6856 *x86-64*) 6857 LD="${LD-ld} -m elf32_x86_64" 6858 ;; 6859 *) 6860 LD="${LD-ld} -m elf_i386" 6861 ;; 6862 esac 6863 ;; 6864 powerpc64le-*linux*) 6865 LD="${LD-ld} -m elf32lppclinux" 6866 ;; 6867 powerpc64-*linux*) 6868 LD="${LD-ld} -m elf32ppclinux" 6869 ;; 6870 s390x-*linux*) 6871 LD="${LD-ld} -m elf_s390" 6872 ;; 6873 sparc64-*linux*) 6874 LD="${LD-ld} -m elf32_sparc" 6875 ;; 6876 esac 6877 ;; 6878 *64-bit*) 6879 case $host in 6880 x86_64-*kfreebsd*-gnu) 6881 LD="${LD-ld} -m elf_x86_64_fbsd" 6882 ;; 6883 x86_64-*linux*) 6884 LD="${LD-ld} -m elf_x86_64" 6885 ;; 6886 powerpcle-*linux*) 6887 LD="${LD-ld} -m elf64lppc" 6888 ;; 6889 powerpc-*linux*) 6890 LD="${LD-ld} -m elf64ppc" 6891 ;; 6892 s390*-*linux*|s390*-*tpf*) 6893 LD="${LD-ld} -m elf64_s390" 6894 ;; 6895 sparc*-*linux*) 6896 LD="${LD-ld} -m elf64_sparc" 6897 ;; 6898 esac 6899 ;; 6900 esac 6901 fi 6902 rm -rf conftest* 6903 ;; 6904 6905*-*-sco3.2v5*) 6906 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6907 SAVE_CFLAGS=$CFLAGS 6908 CFLAGS="$CFLAGS -belf" 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6910$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6911if ${lt_cv_cc_needs_belf+:} false; then : 6912 $as_echo_n "(cached) " >&6 6913else 6914 ac_ext=c 6915ac_cpp='$CPP $CPPFLAGS' 6916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6918ac_compiler_gnu=$ac_cv_c_compiler_gnu 6919 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921/* end confdefs.h. */ 6922 6923int 6924main () 6925{ 6926 6927 ; 6928 return 0; 6929} 6930_ACEOF 6931if ac_fn_c_try_link "$LINENO"; then : 6932 lt_cv_cc_needs_belf=yes 6933else 6934 lt_cv_cc_needs_belf=no 6935fi 6936rm -f core conftest.err conftest.$ac_objext \ 6937 conftest$ac_exeext conftest.$ac_ext 6938 ac_ext=c 6939ac_cpp='$CPP $CPPFLAGS' 6940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6942ac_compiler_gnu=$ac_cv_c_compiler_gnu 6943 6944fi 6945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6946$as_echo "$lt_cv_cc_needs_belf" >&6; } 6947 if test yes != "$lt_cv_cc_needs_belf"; then 6948 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6949 CFLAGS=$SAVE_CFLAGS 6950 fi 6951 ;; 6952*-*solaris*) 6953 # Find out what ABI is being produced by ac_compile, and set linker 6954 # options accordingly. 6955 echo 'int i;' > conftest.$ac_ext 6956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6957 (eval $ac_compile) 2>&5 6958 ac_status=$? 6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6960 test $ac_status = 0; }; then 6961 case `/usr/bin/file conftest.o` in 6962 *64-bit*) 6963 case $lt_cv_prog_gnu_ld in 6964 yes*) 6965 case $host in 6966 i?86-*-solaris*|x86_64-*-solaris*) 6967 LD="${LD-ld} -m elf_x86_64" 6968 ;; 6969 sparc*-*-solaris*) 6970 LD="${LD-ld} -m elf64_sparc" 6971 ;; 6972 esac 6973 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6974 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6975 LD=${LD-ld}_sol2 6976 fi 6977 ;; 6978 *) 6979 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6980 LD="${LD-ld} -64" 6981 fi 6982 ;; 6983 esac 6984 ;; 6985 esac 6986 fi 6987 rm -rf conftest* 6988 ;; 6989esac 6990 6991need_locks=$enable_libtool_lock 6992 6993if test -n "$ac_tool_prefix"; then 6994 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6995set dummy ${ac_tool_prefix}mt; ac_word=$2 6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6997$as_echo_n "checking for $ac_word... " >&6; } 6998if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6999 $as_echo_n "(cached) " >&6 7000else 7001 if test -n "$MANIFEST_TOOL"; then 7002 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7003else 7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7005for as_dir in $PATH 7006do 7007 IFS=$as_save_IFS 7008 test -z "$as_dir" && as_dir=. 7009 for ac_exec_ext in '' $ac_executable_extensions; do 7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7011 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7013 break 2 7014 fi 7015done 7016 done 7017IFS=$as_save_IFS 7018 7019fi 7020fi 7021MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7022if test -n "$MANIFEST_TOOL"; then 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7024$as_echo "$MANIFEST_TOOL" >&6; } 7025else 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7027$as_echo "no" >&6; } 7028fi 7029 7030 7031fi 7032if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7033 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7034 # Extract the first word of "mt", so it can be a program name with args. 7035set dummy mt; ac_word=$2 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7037$as_echo_n "checking for $ac_word... " >&6; } 7038if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7039 $as_echo_n "(cached) " >&6 7040else 7041 if test -n "$ac_ct_MANIFEST_TOOL"; then 7042 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7043else 7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7045for as_dir in $PATH 7046do 7047 IFS=$as_save_IFS 7048 test -z "$as_dir" && as_dir=. 7049 for ac_exec_ext in '' $ac_executable_extensions; do 7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7051 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7053 break 2 7054 fi 7055done 7056 done 7057IFS=$as_save_IFS 7058 7059fi 7060fi 7061ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7062if test -n "$ac_ct_MANIFEST_TOOL"; then 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7064$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7065else 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7067$as_echo "no" >&6; } 7068fi 7069 7070 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7071 MANIFEST_TOOL=":" 7072 else 7073 case $cross_compiling:$ac_tool_warned in 7074yes:) 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7077ac_tool_warned=yes ;; 7078esac 7079 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7080 fi 7081else 7082 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7083fi 7084 7085test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7087$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7088if ${lt_cv_path_mainfest_tool+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 lt_cv_path_mainfest_tool=no 7092 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7093 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7094 cat conftest.err >&5 7095 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7096 lt_cv_path_mainfest_tool=yes 7097 fi 7098 rm -f conftest* 7099fi 7100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7101$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7102if test yes != "$lt_cv_path_mainfest_tool"; then 7103 MANIFEST_TOOL=: 7104fi 7105 7106 7107 7108 7109 7110 7111 case $host_os in 7112 rhapsody* | darwin*) 7113 if test -n "$ac_tool_prefix"; then 7114 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7115set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7117$as_echo_n "checking for $ac_word... " >&6; } 7118if ${ac_cv_prog_DSYMUTIL+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120else 7121 if test -n "$DSYMUTIL"; then 7122 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7123else 7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7125for as_dir in $PATH 7126do 7127 IFS=$as_save_IFS 7128 test -z "$as_dir" && as_dir=. 7129 for ac_exec_ext in '' $ac_executable_extensions; do 7130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7131 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7133 break 2 7134 fi 7135done 7136 done 7137IFS=$as_save_IFS 7138 7139fi 7140fi 7141DSYMUTIL=$ac_cv_prog_DSYMUTIL 7142if test -n "$DSYMUTIL"; then 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7144$as_echo "$DSYMUTIL" >&6; } 7145else 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7147$as_echo "no" >&6; } 7148fi 7149 7150 7151fi 7152if test -z "$ac_cv_prog_DSYMUTIL"; then 7153 ac_ct_DSYMUTIL=$DSYMUTIL 7154 # Extract the first word of "dsymutil", so it can be a program name with args. 7155set dummy dsymutil; ac_word=$2 7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7157$as_echo_n "checking for $ac_word... " >&6; } 7158if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160else 7161 if test -n "$ac_ct_DSYMUTIL"; then 7162 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7163else 7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7165for as_dir in $PATH 7166do 7167 IFS=$as_save_IFS 7168 test -z "$as_dir" && as_dir=. 7169 for ac_exec_ext in '' $ac_executable_extensions; do 7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7171 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7173 break 2 7174 fi 7175done 7176 done 7177IFS=$as_save_IFS 7178 7179fi 7180fi 7181ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7182if test -n "$ac_ct_DSYMUTIL"; then 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7184$as_echo "$ac_ct_DSYMUTIL" >&6; } 7185else 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7187$as_echo "no" >&6; } 7188fi 7189 7190 if test "x$ac_ct_DSYMUTIL" = x; then 7191 DSYMUTIL=":" 7192 else 7193 case $cross_compiling:$ac_tool_warned in 7194yes:) 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7197ac_tool_warned=yes ;; 7198esac 7199 DSYMUTIL=$ac_ct_DSYMUTIL 7200 fi 7201else 7202 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7203fi 7204 7205 if test -n "$ac_tool_prefix"; then 7206 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7207set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7209$as_echo_n "checking for $ac_word... " >&6; } 7210if ${ac_cv_prog_NMEDIT+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 if test -n "$NMEDIT"; then 7214 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7215else 7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7217for as_dir in $PATH 7218do 7219 IFS=$as_save_IFS 7220 test -z "$as_dir" && as_dir=. 7221 for ac_exec_ext in '' $ac_executable_extensions; do 7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7223 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7225 break 2 7226 fi 7227done 7228 done 7229IFS=$as_save_IFS 7230 7231fi 7232fi 7233NMEDIT=$ac_cv_prog_NMEDIT 7234if test -n "$NMEDIT"; then 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7236$as_echo "$NMEDIT" >&6; } 7237else 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7239$as_echo "no" >&6; } 7240fi 7241 7242 7243fi 7244if test -z "$ac_cv_prog_NMEDIT"; then 7245 ac_ct_NMEDIT=$NMEDIT 7246 # Extract the first word of "nmedit", so it can be a program name with args. 7247set dummy nmedit; ac_word=$2 7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7249$as_echo_n "checking for $ac_word... " >&6; } 7250if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 if test -n "$ac_ct_NMEDIT"; then 7254 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7255else 7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7257for as_dir in $PATH 7258do 7259 IFS=$as_save_IFS 7260 test -z "$as_dir" && as_dir=. 7261 for ac_exec_ext in '' $ac_executable_extensions; do 7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7263 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7265 break 2 7266 fi 7267done 7268 done 7269IFS=$as_save_IFS 7270 7271fi 7272fi 7273ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7274if test -n "$ac_ct_NMEDIT"; then 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7276$as_echo "$ac_ct_NMEDIT" >&6; } 7277else 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7279$as_echo "no" >&6; } 7280fi 7281 7282 if test "x$ac_ct_NMEDIT" = x; then 7283 NMEDIT=":" 7284 else 7285 case $cross_compiling:$ac_tool_warned in 7286yes:) 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7289ac_tool_warned=yes ;; 7290esac 7291 NMEDIT=$ac_ct_NMEDIT 7292 fi 7293else 7294 NMEDIT="$ac_cv_prog_NMEDIT" 7295fi 7296 7297 if test -n "$ac_tool_prefix"; then 7298 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7299set dummy ${ac_tool_prefix}lipo; ac_word=$2 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7301$as_echo_n "checking for $ac_word... " >&6; } 7302if ${ac_cv_prog_LIPO+:} false; then : 7303 $as_echo_n "(cached) " >&6 7304else 7305 if test -n "$LIPO"; then 7306 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7307else 7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7309for as_dir in $PATH 7310do 7311 IFS=$as_save_IFS 7312 test -z "$as_dir" && as_dir=. 7313 for ac_exec_ext in '' $ac_executable_extensions; do 7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7315 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7317 break 2 7318 fi 7319done 7320 done 7321IFS=$as_save_IFS 7322 7323fi 7324fi 7325LIPO=$ac_cv_prog_LIPO 7326if test -n "$LIPO"; then 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7328$as_echo "$LIPO" >&6; } 7329else 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7331$as_echo "no" >&6; } 7332fi 7333 7334 7335fi 7336if test -z "$ac_cv_prog_LIPO"; then 7337 ac_ct_LIPO=$LIPO 7338 # Extract the first word of "lipo", so it can be a program name with args. 7339set dummy lipo; ac_word=$2 7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7341$as_echo_n "checking for $ac_word... " >&6; } 7342if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 if test -n "$ac_ct_LIPO"; then 7346 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7347else 7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7349for as_dir in $PATH 7350do 7351 IFS=$as_save_IFS 7352 test -z "$as_dir" && as_dir=. 7353 for ac_exec_ext in '' $ac_executable_extensions; do 7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7355 ac_cv_prog_ac_ct_LIPO="lipo" 7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7357 break 2 7358 fi 7359done 7360 done 7361IFS=$as_save_IFS 7362 7363fi 7364fi 7365ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7366if test -n "$ac_ct_LIPO"; then 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7368$as_echo "$ac_ct_LIPO" >&6; } 7369else 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7371$as_echo "no" >&6; } 7372fi 7373 7374 if test "x$ac_ct_LIPO" = x; then 7375 LIPO=":" 7376 else 7377 case $cross_compiling:$ac_tool_warned in 7378yes:) 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7381ac_tool_warned=yes ;; 7382esac 7383 LIPO=$ac_ct_LIPO 7384 fi 7385else 7386 LIPO="$ac_cv_prog_LIPO" 7387fi 7388 7389 if test -n "$ac_tool_prefix"; then 7390 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7391set dummy ${ac_tool_prefix}otool; ac_word=$2 7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7393$as_echo_n "checking for $ac_word... " >&6; } 7394if ${ac_cv_prog_OTOOL+:} false; then : 7395 $as_echo_n "(cached) " >&6 7396else 7397 if test -n "$OTOOL"; then 7398 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7399else 7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7401for as_dir in $PATH 7402do 7403 IFS=$as_save_IFS 7404 test -z "$as_dir" && as_dir=. 7405 for ac_exec_ext in '' $ac_executable_extensions; do 7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7407 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7409 break 2 7410 fi 7411done 7412 done 7413IFS=$as_save_IFS 7414 7415fi 7416fi 7417OTOOL=$ac_cv_prog_OTOOL 7418if test -n "$OTOOL"; then 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7420$as_echo "$OTOOL" >&6; } 7421else 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7423$as_echo "no" >&6; } 7424fi 7425 7426 7427fi 7428if test -z "$ac_cv_prog_OTOOL"; then 7429 ac_ct_OTOOL=$OTOOL 7430 # Extract the first word of "otool", so it can be a program name with args. 7431set dummy otool; ac_word=$2 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7433$as_echo_n "checking for $ac_word... " >&6; } 7434if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7435 $as_echo_n "(cached) " >&6 7436else 7437 if test -n "$ac_ct_OTOOL"; then 7438 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7439else 7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7441for as_dir in $PATH 7442do 7443 IFS=$as_save_IFS 7444 test -z "$as_dir" && as_dir=. 7445 for ac_exec_ext in '' $ac_executable_extensions; do 7446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7447 ac_cv_prog_ac_ct_OTOOL="otool" 7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7449 break 2 7450 fi 7451done 7452 done 7453IFS=$as_save_IFS 7454 7455fi 7456fi 7457ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7458if test -n "$ac_ct_OTOOL"; then 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7460$as_echo "$ac_ct_OTOOL" >&6; } 7461else 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7463$as_echo "no" >&6; } 7464fi 7465 7466 if test "x$ac_ct_OTOOL" = x; then 7467 OTOOL=":" 7468 else 7469 case $cross_compiling:$ac_tool_warned in 7470yes:) 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7473ac_tool_warned=yes ;; 7474esac 7475 OTOOL=$ac_ct_OTOOL 7476 fi 7477else 7478 OTOOL="$ac_cv_prog_OTOOL" 7479fi 7480 7481 if test -n "$ac_tool_prefix"; then 7482 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7483set dummy ${ac_tool_prefix}otool64; ac_word=$2 7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7485$as_echo_n "checking for $ac_word... " >&6; } 7486if ${ac_cv_prog_OTOOL64+:} false; then : 7487 $as_echo_n "(cached) " >&6 7488else 7489 if test -n "$OTOOL64"; then 7490 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7491else 7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7493for as_dir in $PATH 7494do 7495 IFS=$as_save_IFS 7496 test -z "$as_dir" && as_dir=. 7497 for ac_exec_ext in '' $ac_executable_extensions; do 7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7499 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7501 break 2 7502 fi 7503done 7504 done 7505IFS=$as_save_IFS 7506 7507fi 7508fi 7509OTOOL64=$ac_cv_prog_OTOOL64 7510if test -n "$OTOOL64"; then 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7512$as_echo "$OTOOL64" >&6; } 7513else 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7515$as_echo "no" >&6; } 7516fi 7517 7518 7519fi 7520if test -z "$ac_cv_prog_OTOOL64"; then 7521 ac_ct_OTOOL64=$OTOOL64 7522 # Extract the first word of "otool64", so it can be a program name with args. 7523set dummy otool64; ac_word=$2 7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7525$as_echo_n "checking for $ac_word... " >&6; } 7526if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7527 $as_echo_n "(cached) " >&6 7528else 7529 if test -n "$ac_ct_OTOOL64"; then 7530 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7531else 7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7533for as_dir in $PATH 7534do 7535 IFS=$as_save_IFS 7536 test -z "$as_dir" && as_dir=. 7537 for ac_exec_ext in '' $ac_executable_extensions; do 7538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7539 ac_cv_prog_ac_ct_OTOOL64="otool64" 7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7541 break 2 7542 fi 7543done 7544 done 7545IFS=$as_save_IFS 7546 7547fi 7548fi 7549ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7550if test -n "$ac_ct_OTOOL64"; then 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7552$as_echo "$ac_ct_OTOOL64" >&6; } 7553else 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7555$as_echo "no" >&6; } 7556fi 7557 7558 if test "x$ac_ct_OTOOL64" = x; then 7559 OTOOL64=":" 7560 else 7561 case $cross_compiling:$ac_tool_warned in 7562yes:) 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7565ac_tool_warned=yes ;; 7566esac 7567 OTOOL64=$ac_ct_OTOOL64 7568 fi 7569else 7570 OTOOL64="$ac_cv_prog_OTOOL64" 7571fi 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7600$as_echo_n "checking for -single_module linker flag... " >&6; } 7601if ${lt_cv_apple_cc_single_mod+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 lt_cv_apple_cc_single_mod=no 7605 if test -z "$LT_MULTI_MODULE"; then 7606 # By default we will add the -single_module flag. You can override 7607 # by either setting the environment variable LT_MULTI_MODULE 7608 # non-empty at configure time, or by adding -multi_module to the 7609 # link flags. 7610 rm -rf libconftest.dylib* 7611 echo "int foo(void){return 1;}" > conftest.c 7612 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7613-dynamiclib -Wl,-single_module conftest.c" >&5 7614 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7615 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7616 _lt_result=$? 7617 # If there is a non-empty error log, and "single_module" 7618 # appears in it, assume the flag caused a linker warning 7619 if test -s conftest.err && $GREP single_module conftest.err; then 7620 cat conftest.err >&5 7621 # Otherwise, if the output was created with a 0 exit code from 7622 # the compiler, it worked. 7623 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7624 lt_cv_apple_cc_single_mod=yes 7625 else 7626 cat conftest.err >&5 7627 fi 7628 rm -rf libconftest.dylib* 7629 rm -f conftest.* 7630 fi 7631fi 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7633$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7634 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7636$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7637if ${lt_cv_ld_exported_symbols_list+:} false; then : 7638 $as_echo_n "(cached) " >&6 7639else 7640 lt_cv_ld_exported_symbols_list=no 7641 save_LDFLAGS=$LDFLAGS 7642 echo "_main" > conftest.sym 7643 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646 7647int 7648main () 7649{ 7650 7651 ; 7652 return 0; 7653} 7654_ACEOF 7655if ac_fn_c_try_link "$LINENO"; then : 7656 lt_cv_ld_exported_symbols_list=yes 7657else 7658 lt_cv_ld_exported_symbols_list=no 7659fi 7660rm -f core conftest.err conftest.$ac_objext \ 7661 conftest$ac_exeext conftest.$ac_ext 7662 LDFLAGS=$save_LDFLAGS 7663 7664fi 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7666$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7667 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7669$as_echo_n "checking for -force_load linker flag... " >&6; } 7670if ${lt_cv_ld_force_load+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672else 7673 lt_cv_ld_force_load=no 7674 cat > conftest.c << _LT_EOF 7675int forced_loaded() { return 2;} 7676_LT_EOF 7677 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7678 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7679 echo "$AR cru libconftest.a conftest.o" >&5 7680 $AR cru libconftest.a conftest.o 2>&5 7681 echo "$RANLIB libconftest.a" >&5 7682 $RANLIB libconftest.a 2>&5 7683 cat > conftest.c << _LT_EOF 7684int main() { return 0;} 7685_LT_EOF 7686 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7687 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7688 _lt_result=$? 7689 if test -s conftest.err && $GREP force_load conftest.err; then 7690 cat conftest.err >&5 7691 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7692 lt_cv_ld_force_load=yes 7693 else 7694 cat conftest.err >&5 7695 fi 7696 rm -f conftest.err libconftest.a conftest conftest.c 7697 rm -rf conftest.dSYM 7698 7699fi 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7701$as_echo "$lt_cv_ld_force_load" >&6; } 7702 case $host_os in 7703 rhapsody* | darwin1.[012]) 7704 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7705 darwin1.*) 7706 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7707 darwin*) # darwin 5.x on 7708 # if running on 10.5 or later, the deployment target defaults 7709 # to the OS version, if on x86, and 10.4, the deployment 7710 # target defaults to 10.4. Don't you love it? 7711 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7712 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7713 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7714 10.[012][,.]*) 7715 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7716 10.*) 7717 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7718 esac 7719 ;; 7720 esac 7721 if test yes = "$lt_cv_apple_cc_single_mod"; then 7722 _lt_dar_single_mod='$single_module' 7723 fi 7724 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7725 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7726 else 7727 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7728 fi 7729 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7730 _lt_dsymutil='~$DSYMUTIL $lib || :' 7731 else 7732 _lt_dsymutil= 7733 fi 7734 ;; 7735 esac 7736 7737# func_munge_path_list VARIABLE PATH 7738# ----------------------------------- 7739# VARIABLE is name of variable containing _space_ separated list of 7740# directories to be munged by the contents of PATH, which is string 7741# having a format: 7742# "DIR[:DIR]:" 7743# string "DIR[ DIR]" will be prepended to VARIABLE 7744# ":DIR[:DIR]" 7745# string "DIR[ DIR]" will be appended to VARIABLE 7746# "DIRP[:DIRP]::[DIRA:]DIRA" 7747# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7748# "DIRA[ DIRA]" will be appended to VARIABLE 7749# "DIR[:DIR]" 7750# VARIABLE will be replaced by "DIR[ DIR]" 7751func_munge_path_list () 7752{ 7753 case x$2 in 7754 x) 7755 ;; 7756 *:) 7757 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7758 ;; 7759 x:*) 7760 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7761 ;; 7762 *::*) 7763 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7764 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7765 ;; 7766 *) 7767 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7768 ;; 7769 esac 7770} 7771 7772ac_ext=c 7773ac_cpp='$CPP $CPPFLAGS' 7774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7776ac_compiler_gnu=$ac_cv_c_compiler_gnu 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7778$as_echo_n "checking how to run the C preprocessor... " >&6; } 7779# On Suns, sometimes $CPP names a directory. 7780if test -n "$CPP" && test -d "$CPP"; then 7781 CPP= 7782fi 7783if test -z "$CPP"; then 7784 if ${ac_cv_prog_CPP+:} false; then : 7785 $as_echo_n "(cached) " >&6 7786else 7787 # Double quotes because CPP needs to be expanded 7788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7789 do 7790 ac_preproc_ok=false 7791for ac_c_preproc_warn_flag in '' yes 7792do 7793 # Use a header file that comes with gcc, so configuring glibc 7794 # with a fresh cross-compiler works. 7795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7796 # <limits.h> exists even on freestanding compilers. 7797 # On the NeXT, cc -E runs the code through the compiler's parser, 7798 # not just through cpp. "Syntax error" is here to catch this case. 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800/* end confdefs.h. */ 7801#ifdef __STDC__ 7802# include <limits.h> 7803#else 7804# include <assert.h> 7805#endif 7806 Syntax error 7807_ACEOF 7808if ac_fn_c_try_cpp "$LINENO"; then : 7809 7810else 7811 # Broken: fails on valid input. 7812continue 7813fi 7814rm -f conftest.err conftest.i conftest.$ac_ext 7815 7816 # OK, works on sane cases. Now check whether nonexistent headers 7817 # can be detected and how. 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820#include <ac_nonexistent.h> 7821_ACEOF 7822if ac_fn_c_try_cpp "$LINENO"; then : 7823 # Broken: success on invalid input. 7824continue 7825else 7826 # Passes both tests. 7827ac_preproc_ok=: 7828break 7829fi 7830rm -f conftest.err conftest.i conftest.$ac_ext 7831 7832done 7833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7834rm -f conftest.i conftest.err conftest.$ac_ext 7835if $ac_preproc_ok; then : 7836 break 7837fi 7838 7839 done 7840 ac_cv_prog_CPP=$CPP 7841 7842fi 7843 CPP=$ac_cv_prog_CPP 7844else 7845 ac_cv_prog_CPP=$CPP 7846fi 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7848$as_echo "$CPP" >&6; } 7849ac_preproc_ok=false 7850for ac_c_preproc_warn_flag in '' yes 7851do 7852 # Use a header file that comes with gcc, so configuring glibc 7853 # with a fresh cross-compiler works. 7854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7855 # <limits.h> exists even on freestanding compilers. 7856 # On the NeXT, cc -E runs the code through the compiler's parser, 7857 # not just through cpp. "Syntax error" is here to catch this case. 7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7859/* end confdefs.h. */ 7860#ifdef __STDC__ 7861# include <limits.h> 7862#else 7863# include <assert.h> 7864#endif 7865 Syntax error 7866_ACEOF 7867if ac_fn_c_try_cpp "$LINENO"; then : 7868 7869else 7870 # Broken: fails on valid input. 7871continue 7872fi 7873rm -f conftest.err conftest.i conftest.$ac_ext 7874 7875 # OK, works on sane cases. Now check whether nonexistent headers 7876 # can be detected and how. 7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879#include <ac_nonexistent.h> 7880_ACEOF 7881if ac_fn_c_try_cpp "$LINENO"; then : 7882 # Broken: success on invalid input. 7883continue 7884else 7885 # Passes both tests. 7886ac_preproc_ok=: 7887break 7888fi 7889rm -f conftest.err conftest.i conftest.$ac_ext 7890 7891done 7892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7893rm -f conftest.i conftest.err conftest.$ac_ext 7894if $ac_preproc_ok; then : 7895 7896else 7897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7899as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7900See \`config.log' for more details" "$LINENO" 5; } 7901fi 7902 7903ac_ext=c 7904ac_cpp='$CPP $CPPFLAGS' 7905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7907ac_compiler_gnu=$ac_cv_c_compiler_gnu 7908 7909 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7911$as_echo_n "checking for ANSI C header files... " >&6; } 7912if ${ac_cv_header_stdc+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7916/* end confdefs.h. */ 7917#include <stdlib.h> 7918#include <stdarg.h> 7919#include <string.h> 7920#include <float.h> 7921 7922int 7923main () 7924{ 7925 7926 ; 7927 return 0; 7928} 7929_ACEOF 7930if ac_fn_c_try_compile "$LINENO"; then : 7931 ac_cv_header_stdc=yes 7932else 7933 ac_cv_header_stdc=no 7934fi 7935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7936 7937if test $ac_cv_header_stdc = yes; then 7938 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940/* end confdefs.h. */ 7941#include <string.h> 7942 7943_ACEOF 7944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7945 $EGREP "memchr" >/dev/null 2>&1; then : 7946 7947else 7948 ac_cv_header_stdc=no 7949fi 7950rm -f conftest* 7951 7952fi 7953 7954if test $ac_cv_header_stdc = yes; then 7955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7957/* end confdefs.h. */ 7958#include <stdlib.h> 7959 7960_ACEOF 7961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7962 $EGREP "free" >/dev/null 2>&1; then : 7963 7964else 7965 ac_cv_header_stdc=no 7966fi 7967rm -f conftest* 7968 7969fi 7970 7971if test $ac_cv_header_stdc = yes; then 7972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7973 if test "$cross_compiling" = yes; then : 7974 : 7975else 7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7977/* end confdefs.h. */ 7978#include <ctype.h> 7979#include <stdlib.h> 7980#if ((' ' & 0x0FF) == 0x020) 7981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7983#else 7984# define ISLOWER(c) \ 7985 (('a' <= (c) && (c) <= 'i') \ 7986 || ('j' <= (c) && (c) <= 'r') \ 7987 || ('s' <= (c) && (c) <= 'z')) 7988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7989#endif 7990 7991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7992int 7993main () 7994{ 7995 int i; 7996 for (i = 0; i < 256; i++) 7997 if (XOR (islower (i), ISLOWER (i)) 7998 || toupper (i) != TOUPPER (i)) 7999 return 2; 8000 return 0; 8001} 8002_ACEOF 8003if ac_fn_c_try_run "$LINENO"; then : 8004 8005else 8006 ac_cv_header_stdc=no 8007fi 8008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8009 conftest.$ac_objext conftest.beam conftest.$ac_ext 8010fi 8011 8012fi 8013fi 8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8015$as_echo "$ac_cv_header_stdc" >&6; } 8016if test $ac_cv_header_stdc = yes; then 8017 8018$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8019 8020fi 8021 8022# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8023for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8024 inttypes.h stdint.h unistd.h 8025do : 8026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8027ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8028" 8029if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8030 cat >>confdefs.h <<_ACEOF 8031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8032_ACEOF 8033 8034fi 8035 8036done 8037 8038 8039for ac_header in dlfcn.h 8040do : 8041 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8042" 8043if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8044 cat >>confdefs.h <<_ACEOF 8045#define HAVE_DLFCN_H 1 8046_ACEOF 8047 8048fi 8049 8050done 8051 8052 8053 8054 8055 8056# Set options 8057# Check whether --enable-static was given. 8058if test "${enable_static+set}" = set; then : 8059 enableval=$enable_static; p=${PACKAGE-default} 8060 case $enableval in 8061 yes) enable_static=yes ;; 8062 no) enable_static=no ;; 8063 *) 8064 enable_static=no 8065 # Look at the argument we got. We use all the common list separators. 8066 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8067 for pkg in $enableval; do 8068 IFS=$lt_save_ifs 8069 if test "X$pkg" = "X$p"; then 8070 enable_static=yes 8071 fi 8072 done 8073 IFS=$lt_save_ifs 8074 ;; 8075 esac 8076else 8077 enable_static=no 8078fi 8079 8080 8081 8082 8083 8084 8085 8086enable_dlopen=yes 8087enable_win32_dll=yes 8088 8089case $host in 8090*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8091 if test -n "$ac_tool_prefix"; then 8092 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8093set dummy ${ac_tool_prefix}as; ac_word=$2 8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8095$as_echo_n "checking for $ac_word... " >&6; } 8096if ${ac_cv_prog_AS+:} false; then : 8097 $as_echo_n "(cached) " >&6 8098else 8099 if test -n "$AS"; then 8100 ac_cv_prog_AS="$AS" # Let the user override the test. 8101else 8102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8103for as_dir in $PATH 8104do 8105 IFS=$as_save_IFS 8106 test -z "$as_dir" && as_dir=. 8107 for ac_exec_ext in '' $ac_executable_extensions; do 8108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8109 ac_cv_prog_AS="${ac_tool_prefix}as" 8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8111 break 2 8112 fi 8113done 8114 done 8115IFS=$as_save_IFS 8116 8117fi 8118fi 8119AS=$ac_cv_prog_AS 8120if test -n "$AS"; then 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8122$as_echo "$AS" >&6; } 8123else 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8125$as_echo "no" >&6; } 8126fi 8127 8128 8129fi 8130if test -z "$ac_cv_prog_AS"; then 8131 ac_ct_AS=$AS 8132 # Extract the first word of "as", so it can be a program name with args. 8133set dummy as; ac_word=$2 8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8135$as_echo_n "checking for $ac_word... " >&6; } 8136if ${ac_cv_prog_ac_ct_AS+:} false; then : 8137 $as_echo_n "(cached) " >&6 8138else 8139 if test -n "$ac_ct_AS"; then 8140 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8141else 8142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8143for as_dir in $PATH 8144do 8145 IFS=$as_save_IFS 8146 test -z "$as_dir" && as_dir=. 8147 for ac_exec_ext in '' $ac_executable_extensions; do 8148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8149 ac_cv_prog_ac_ct_AS="as" 8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8151 break 2 8152 fi 8153done 8154 done 8155IFS=$as_save_IFS 8156 8157fi 8158fi 8159ac_ct_AS=$ac_cv_prog_ac_ct_AS 8160if test -n "$ac_ct_AS"; then 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8162$as_echo "$ac_ct_AS" >&6; } 8163else 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8165$as_echo "no" >&6; } 8166fi 8167 8168 if test "x$ac_ct_AS" = x; then 8169 AS="false" 8170 else 8171 case $cross_compiling:$ac_tool_warned in 8172yes:) 8173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8175ac_tool_warned=yes ;; 8176esac 8177 AS=$ac_ct_AS 8178 fi 8179else 8180 AS="$ac_cv_prog_AS" 8181fi 8182 8183 if test -n "$ac_tool_prefix"; then 8184 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8185set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8187$as_echo_n "checking for $ac_word... " >&6; } 8188if ${ac_cv_prog_DLLTOOL+:} false; then : 8189 $as_echo_n "(cached) " >&6 8190else 8191 if test -n "$DLLTOOL"; then 8192 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8193else 8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8195for as_dir in $PATH 8196do 8197 IFS=$as_save_IFS 8198 test -z "$as_dir" && as_dir=. 8199 for ac_exec_ext in '' $ac_executable_extensions; do 8200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8201 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8203 break 2 8204 fi 8205done 8206 done 8207IFS=$as_save_IFS 8208 8209fi 8210fi 8211DLLTOOL=$ac_cv_prog_DLLTOOL 8212if test -n "$DLLTOOL"; then 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8214$as_echo "$DLLTOOL" >&6; } 8215else 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8217$as_echo "no" >&6; } 8218fi 8219 8220 8221fi 8222if test -z "$ac_cv_prog_DLLTOOL"; then 8223 ac_ct_DLLTOOL=$DLLTOOL 8224 # Extract the first word of "dlltool", so it can be a program name with args. 8225set dummy dlltool; ac_word=$2 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8227$as_echo_n "checking for $ac_word... " >&6; } 8228if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8229 $as_echo_n "(cached) " >&6 8230else 8231 if test -n "$ac_ct_DLLTOOL"; then 8232 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8233else 8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8235for as_dir in $PATH 8236do 8237 IFS=$as_save_IFS 8238 test -z "$as_dir" && as_dir=. 8239 for ac_exec_ext in '' $ac_executable_extensions; do 8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8241 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8243 break 2 8244 fi 8245done 8246 done 8247IFS=$as_save_IFS 8248 8249fi 8250fi 8251ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8252if test -n "$ac_ct_DLLTOOL"; then 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8254$as_echo "$ac_ct_DLLTOOL" >&6; } 8255else 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8257$as_echo "no" >&6; } 8258fi 8259 8260 if test "x$ac_ct_DLLTOOL" = x; then 8261 DLLTOOL="false" 8262 else 8263 case $cross_compiling:$ac_tool_warned in 8264yes:) 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8267ac_tool_warned=yes ;; 8268esac 8269 DLLTOOL=$ac_ct_DLLTOOL 8270 fi 8271else 8272 DLLTOOL="$ac_cv_prog_DLLTOOL" 8273fi 8274 8275 if test -n "$ac_tool_prefix"; then 8276 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8277set dummy ${ac_tool_prefix}objdump; ac_word=$2 8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8279$as_echo_n "checking for $ac_word... " >&6; } 8280if ${ac_cv_prog_OBJDUMP+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 if test -n "$OBJDUMP"; then 8284 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8285else 8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8287for as_dir in $PATH 8288do 8289 IFS=$as_save_IFS 8290 test -z "$as_dir" && as_dir=. 8291 for ac_exec_ext in '' $ac_executable_extensions; do 8292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8293 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8295 break 2 8296 fi 8297done 8298 done 8299IFS=$as_save_IFS 8300 8301fi 8302fi 8303OBJDUMP=$ac_cv_prog_OBJDUMP 8304if test -n "$OBJDUMP"; then 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8306$as_echo "$OBJDUMP" >&6; } 8307else 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8309$as_echo "no" >&6; } 8310fi 8311 8312 8313fi 8314if test -z "$ac_cv_prog_OBJDUMP"; then 8315 ac_ct_OBJDUMP=$OBJDUMP 8316 # Extract the first word of "objdump", so it can be a program name with args. 8317set dummy objdump; ac_word=$2 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8319$as_echo_n "checking for $ac_word... " >&6; } 8320if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8321 $as_echo_n "(cached) " >&6 8322else 8323 if test -n "$ac_ct_OBJDUMP"; then 8324 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8325else 8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8327for as_dir in $PATH 8328do 8329 IFS=$as_save_IFS 8330 test -z "$as_dir" && as_dir=. 8331 for ac_exec_ext in '' $ac_executable_extensions; do 8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8333 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8335 break 2 8336 fi 8337done 8338 done 8339IFS=$as_save_IFS 8340 8341fi 8342fi 8343ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8344if test -n "$ac_ct_OBJDUMP"; then 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8346$as_echo "$ac_ct_OBJDUMP" >&6; } 8347else 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8349$as_echo "no" >&6; } 8350fi 8351 8352 if test "x$ac_ct_OBJDUMP" = x; then 8353 OBJDUMP="false" 8354 else 8355 case $cross_compiling:$ac_tool_warned in 8356yes:) 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8359ac_tool_warned=yes ;; 8360esac 8361 OBJDUMP=$ac_ct_OBJDUMP 8362 fi 8363else 8364 OBJDUMP="$ac_cv_prog_OBJDUMP" 8365fi 8366 8367 ;; 8368esac 8369 8370test -z "$AS" && AS=as 8371 8372 8373 8374 8375 8376test -z "$DLLTOOL" && DLLTOOL=dlltool 8377 8378 8379 8380 8381 8382test -z "$OBJDUMP" && OBJDUMP=objdump 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 # Check whether --enable-shared was given. 8393if test "${enable_shared+set}" = set; then : 8394 enableval=$enable_shared; p=${PACKAGE-default} 8395 case $enableval in 8396 yes) enable_shared=yes ;; 8397 no) enable_shared=no ;; 8398 *) 8399 enable_shared=no 8400 # Look at the argument we got. We use all the common list separators. 8401 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8402 for pkg in $enableval; do 8403 IFS=$lt_save_ifs 8404 if test "X$pkg" = "X$p"; then 8405 enable_shared=yes 8406 fi 8407 done 8408 IFS=$lt_save_ifs 8409 ;; 8410 esac 8411else 8412 enable_shared=yes 8413fi 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425# Check whether --with-pic was given. 8426if test "${with_pic+set}" = set; then : 8427 withval=$with_pic; lt_p=${PACKAGE-default} 8428 case $withval in 8429 yes|no) pic_mode=$withval ;; 8430 *) 8431 pic_mode=default 8432 # Look at the argument we got. We use all the common list separators. 8433 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8434 for lt_pkg in $withval; do 8435 IFS=$lt_save_ifs 8436 if test "X$lt_pkg" = "X$lt_p"; then 8437 pic_mode=yes 8438 fi 8439 done 8440 IFS=$lt_save_ifs 8441 ;; 8442 esac 8443else 8444 pic_mode=default 8445fi 8446 8447 8448 8449 8450 8451 8452 8453 8454 # Check whether --enable-fast-install was given. 8455if test "${enable_fast_install+set}" = set; then : 8456 enableval=$enable_fast_install; p=${PACKAGE-default} 8457 case $enableval in 8458 yes) enable_fast_install=yes ;; 8459 no) enable_fast_install=no ;; 8460 *) 8461 enable_fast_install=no 8462 # Look at the argument we got. We use all the common list separators. 8463 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8464 for pkg in $enableval; do 8465 IFS=$lt_save_ifs 8466 if test "X$pkg" = "X$p"; then 8467 enable_fast_install=yes 8468 fi 8469 done 8470 IFS=$lt_save_ifs 8471 ;; 8472 esac 8473else 8474 enable_fast_install=yes 8475fi 8476 8477 8478 8479 8480 8481 8482 8483 8484 shared_archive_member_spec= 8485case $host,$enable_shared in 8486power*-*-aix[5-9]*,yes) 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8488$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8489 8490# Check whether --with-aix-soname was given. 8491if test "${with_aix_soname+set}" = set; then : 8492 withval=$with_aix_soname; case $withval in 8493 aix|svr4|both) 8494 ;; 8495 *) 8496 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8497 ;; 8498 esac 8499 lt_cv_with_aix_soname=$with_aix_soname 8500else 8501 if ${lt_cv_with_aix_soname+:} false; then : 8502 $as_echo_n "(cached) " >&6 8503else 8504 lt_cv_with_aix_soname=aix 8505fi 8506 8507 with_aix_soname=$lt_cv_with_aix_soname 8508fi 8509 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8511$as_echo "$with_aix_soname" >&6; } 8512 if test aix != "$with_aix_soname"; then 8513 # For the AIX way of multilib, we name the shared archive member 8514 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8515 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8516 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8517 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8518 if test 64 = "${OBJECT_MODE-32}"; then 8519 shared_archive_member_spec=shr_64 8520 else 8521 shared_archive_member_spec=shr 8522 fi 8523 fi 8524 ;; 8525*) 8526 with_aix_soname=aix 8527 ;; 8528esac 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539# This can be used to rebuild libtool when needed 8540LIBTOOL_DEPS=$ltmain 8541 8542# Always use our own libtool. 8543LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574test -z "$LN_S" && LN_S="ln -s" 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589if test -n "${ZSH_VERSION+set}"; then 8590 setopt NO_GLOB_SUBST 8591fi 8592 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8594$as_echo_n "checking for objdir... " >&6; } 8595if ${lt_cv_objdir+:} false; then : 8596 $as_echo_n "(cached) " >&6 8597else 8598 rm -f .libs 2>/dev/null 8599mkdir .libs 2>/dev/null 8600if test -d .libs; then 8601 lt_cv_objdir=.libs 8602else 8603 # MS-DOS does not allow filenames that begin with a dot. 8604 lt_cv_objdir=_libs 8605fi 8606rmdir .libs 2>/dev/null 8607fi 8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8609$as_echo "$lt_cv_objdir" >&6; } 8610objdir=$lt_cv_objdir 8611 8612 8613 8614 8615 8616cat >>confdefs.h <<_ACEOF 8617#define LT_OBJDIR "$lt_cv_objdir/" 8618_ACEOF 8619 8620 8621 8622 8623case $host_os in 8624aix3*) 8625 # AIX sometimes has problems with the GCC collect2 program. For some 8626 # reason, if we set the COLLECT_NAMES environment variable, the problems 8627 # vanish in a puff of smoke. 8628 if test set != "${COLLECT_NAMES+set}"; then 8629 COLLECT_NAMES= 8630 export COLLECT_NAMES 8631 fi 8632 ;; 8633esac 8634 8635# Global variables: 8636ofile=libtool 8637can_build_shared=yes 8638 8639# All known linkers require a '.a' archive for static linking (except MSVC, 8640# which needs '.lib'). 8641libext=a 8642 8643with_gnu_ld=$lt_cv_prog_gnu_ld 8644 8645old_CC=$CC 8646old_CFLAGS=$CFLAGS 8647 8648# Set sane defaults for various variables 8649test -z "$CC" && CC=cc 8650test -z "$LTCC" && LTCC=$CC 8651test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8652test -z "$LD" && LD=ld 8653test -z "$ac_objext" && ac_objext=o 8654 8655func_cc_basename $compiler 8656cc_basename=$func_cc_basename_result 8657 8658 8659# Only perform the check for file, if the check method requires it 8660test -z "$MAGIC_CMD" && MAGIC_CMD=file 8661case $deplibs_check_method in 8662file_magic*) 8663 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8665$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8666if ${lt_cv_path_MAGIC_CMD+:} false; then : 8667 $as_echo_n "(cached) " >&6 8668else 8669 case $MAGIC_CMD in 8670[\\/*] | ?:[\\/]*) 8671 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8672 ;; 8673*) 8674 lt_save_MAGIC_CMD=$MAGIC_CMD 8675 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8676 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8677 for ac_dir in $ac_dummy; do 8678 IFS=$lt_save_ifs 8679 test -z "$ac_dir" && ac_dir=. 8680 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8681 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8682 if test -n "$file_magic_test_file"; then 8683 case $deplibs_check_method in 8684 "file_magic "*) 8685 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8686 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8687 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8688 $EGREP "$file_magic_regex" > /dev/null; then 8689 : 8690 else 8691 cat <<_LT_EOF 1>&2 8692 8693*** Warning: the command libtool uses to detect shared libraries, 8694*** $file_magic_cmd, produces output that libtool cannot recognize. 8695*** The result is that libtool may fail to recognize shared libraries 8696*** as such. This will affect the creation of libtool libraries that 8697*** depend on shared libraries, but programs linked with such libtool 8698*** libraries will work regardless of this problem. Nevertheless, you 8699*** may want to report the problem to your system manager and/or to 8700*** bug-libtool@gnu.org 8701 8702_LT_EOF 8703 fi ;; 8704 esac 8705 fi 8706 break 8707 fi 8708 done 8709 IFS=$lt_save_ifs 8710 MAGIC_CMD=$lt_save_MAGIC_CMD 8711 ;; 8712esac 8713fi 8714 8715MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8716if test -n "$MAGIC_CMD"; then 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8718$as_echo "$MAGIC_CMD" >&6; } 8719else 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8721$as_echo "no" >&6; } 8722fi 8723 8724 8725 8726 8727 8728if test -z "$lt_cv_path_MAGIC_CMD"; then 8729 if test -n "$ac_tool_prefix"; then 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8731$as_echo_n "checking for file... " >&6; } 8732if ${lt_cv_path_MAGIC_CMD+:} false; then : 8733 $as_echo_n "(cached) " >&6 8734else 8735 case $MAGIC_CMD in 8736[\\/*] | ?:[\\/]*) 8737 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8738 ;; 8739*) 8740 lt_save_MAGIC_CMD=$MAGIC_CMD 8741 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8742 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8743 for ac_dir in $ac_dummy; do 8744 IFS=$lt_save_ifs 8745 test -z "$ac_dir" && ac_dir=. 8746 if test -f "$ac_dir/file"; then 8747 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8748 if test -n "$file_magic_test_file"; then 8749 case $deplibs_check_method in 8750 "file_magic "*) 8751 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8752 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8753 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8754 $EGREP "$file_magic_regex" > /dev/null; then 8755 : 8756 else 8757 cat <<_LT_EOF 1>&2 8758 8759*** Warning: the command libtool uses to detect shared libraries, 8760*** $file_magic_cmd, produces output that libtool cannot recognize. 8761*** The result is that libtool may fail to recognize shared libraries 8762*** as such. This will affect the creation of libtool libraries that 8763*** depend on shared libraries, but programs linked with such libtool 8764*** libraries will work regardless of this problem. Nevertheless, you 8765*** may want to report the problem to your system manager and/or to 8766*** bug-libtool@gnu.org 8767 8768_LT_EOF 8769 fi ;; 8770 esac 8771 fi 8772 break 8773 fi 8774 done 8775 IFS=$lt_save_ifs 8776 MAGIC_CMD=$lt_save_MAGIC_CMD 8777 ;; 8778esac 8779fi 8780 8781MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8782if test -n "$MAGIC_CMD"; then 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8784$as_echo "$MAGIC_CMD" >&6; } 8785else 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8787$as_echo "no" >&6; } 8788fi 8789 8790 8791 else 8792 MAGIC_CMD=: 8793 fi 8794fi 8795 8796 fi 8797 ;; 8798esac 8799 8800# Use C for the default configuration in the libtool script 8801 8802lt_save_CC=$CC 8803ac_ext=c 8804ac_cpp='$CPP $CPPFLAGS' 8805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8807ac_compiler_gnu=$ac_cv_c_compiler_gnu 8808 8809 8810# Source file extension for C test sources. 8811ac_ext=c 8812 8813# Object file extension for compiled C test sources. 8814objext=o 8815objext=$objext 8816 8817# Code to be used in simple compile tests 8818lt_simple_compile_test_code="int some_variable = 0;" 8819 8820# Code to be used in simple link tests 8821lt_simple_link_test_code='int main(){return(0);}' 8822 8823 8824 8825 8826 8827 8828 8829# If no C compiler was specified, use CC. 8830LTCC=${LTCC-"$CC"} 8831 8832# If no C compiler flags were specified, use CFLAGS. 8833LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8834 8835# Allow CC to be a program name with arguments. 8836compiler=$CC 8837 8838# Save the default compiler, since it gets overwritten when the other 8839# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8840compiler_DEFAULT=$CC 8841 8842# save warnings/boilerplate of simple test code 8843ac_outfile=conftest.$ac_objext 8844echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8845eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8846_lt_compiler_boilerplate=`cat conftest.err` 8847$RM conftest* 8848 8849ac_outfile=conftest.$ac_objext 8850echo "$lt_simple_link_test_code" >conftest.$ac_ext 8851eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8852_lt_linker_boilerplate=`cat conftest.err` 8853$RM -r conftest* 8854 8855 8856## CAVEAT EMPTOR: 8857## There is no encapsulation within the following macros, do not change 8858## the running order or otherwise move them around unless you know exactly 8859## what you are doing... 8860if test -n "$compiler"; then 8861 8862lt_prog_compiler_no_builtin_flag= 8863 8864if test yes = "$GCC"; then 8865 case $cc_basename in 8866 nvcc*) 8867 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8868 *) 8869 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8870 esac 8871 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8873$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8874if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8875 $as_echo_n "(cached) " >&6 8876else 8877 lt_cv_prog_compiler_rtti_exceptions=no 8878 ac_outfile=conftest.$ac_objext 8879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8880 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8881 # Insert the option either (1) after the last *FLAGS variable, or 8882 # (2) before a word containing "conftest.", or (3) at the end. 8883 # Note that $ac_compile itself does not contain backslashes and begins 8884 # with a dollar sign (not a hyphen), so the echo should work correctly. 8885 # The option is referenced via a variable to avoid confusing sed. 8886 lt_compile=`echo "$ac_compile" | $SED \ 8887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8889 -e 's:$: $lt_compiler_flag:'` 8890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8891 (eval "$lt_compile" 2>conftest.err) 8892 ac_status=$? 8893 cat conftest.err >&5 8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8895 if (exit $ac_status) && test -s "$ac_outfile"; then 8896 # The compiler can only warn and ignore the option if not recognized 8897 # So say no if there are warnings other than the usual output. 8898 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8900 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8901 lt_cv_prog_compiler_rtti_exceptions=yes 8902 fi 8903 fi 8904 $RM conftest* 8905 8906fi 8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8908$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8909 8910if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8911 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8912else 8913 : 8914fi 8915 8916fi 8917 8918 8919 8920 8921 8922 8923 lt_prog_compiler_wl= 8924lt_prog_compiler_pic= 8925lt_prog_compiler_static= 8926 8927 8928 if test yes = "$GCC"; then 8929 lt_prog_compiler_wl='-Wl,' 8930 lt_prog_compiler_static='-static' 8931 8932 case $host_os in 8933 aix*) 8934 # All AIX code is PIC. 8935 if test ia64 = "$host_cpu"; then 8936 # AIX 5 now supports IA64 processor 8937 lt_prog_compiler_static='-Bstatic' 8938 fi 8939 lt_prog_compiler_pic='-fPIC' 8940 ;; 8941 8942 amigaos*) 8943 case $host_cpu in 8944 powerpc) 8945 # see comment about AmigaOS4 .so support 8946 lt_prog_compiler_pic='-fPIC' 8947 ;; 8948 m68k) 8949 # FIXME: we need at least 68020 code to build shared libraries, but 8950 # adding the '-m68020' flag to GCC prevents building anything better, 8951 # like '-m68040'. 8952 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8953 ;; 8954 esac 8955 ;; 8956 8957 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8958 # PIC is the default for these OSes. 8959 ;; 8960 8961 mingw* | cygwin* | pw32* | os2* | cegcc*) 8962 # This hack is so that the source file can tell whether it is being 8963 # built for inclusion in a dll (and should export symbols for example). 8964 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8965 # (--disable-auto-import) libraries 8966 lt_prog_compiler_pic='-DDLL_EXPORT' 8967 case $host_os in 8968 os2*) 8969 lt_prog_compiler_static='$wl-static' 8970 ;; 8971 esac 8972 ;; 8973 8974 darwin* | rhapsody*) 8975 # PIC is the default on this platform 8976 # Common symbols not allowed in MH_DYLIB files 8977 lt_prog_compiler_pic='-fno-common' 8978 ;; 8979 8980 haiku*) 8981 # PIC is the default for Haiku. 8982 # The "-static" flag exists, but is broken. 8983 lt_prog_compiler_static= 8984 ;; 8985 8986 hpux*) 8987 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8988 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8989 # sets the default TLS model and affects inlining. 8990 case $host_cpu in 8991 hppa*64*) 8992 # +Z the default 8993 ;; 8994 *) 8995 lt_prog_compiler_pic='-fPIC' 8996 ;; 8997 esac 8998 ;; 8999 9000 interix[3-9]*) 9001 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9002 # Instead, we relocate shared libraries at runtime. 9003 ;; 9004 9005 msdosdjgpp*) 9006 # Just because we use GCC doesn't mean we suddenly get shared libraries 9007 # on systems that don't support them. 9008 lt_prog_compiler_can_build_shared=no 9009 enable_shared=no 9010 ;; 9011 9012 *nto* | *qnx*) 9013 # QNX uses GNU C++, but need to define -shared option too, otherwise 9014 # it will coredump. 9015 lt_prog_compiler_pic='-fPIC -shared' 9016 ;; 9017 9018 sysv4*MP*) 9019 if test -d /usr/nec; then 9020 lt_prog_compiler_pic=-Kconform_pic 9021 fi 9022 ;; 9023 9024 *) 9025 lt_prog_compiler_pic='-fPIC' 9026 ;; 9027 esac 9028 9029 case $cc_basename in 9030 nvcc*) # Cuda Compiler Driver 2.2 9031 lt_prog_compiler_wl='-Xlinker ' 9032 if test -n "$lt_prog_compiler_pic"; then 9033 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9034 fi 9035 ;; 9036 esac 9037 else 9038 # PORTME Check for flag to pass linker flags through the system compiler. 9039 case $host_os in 9040 aix*) 9041 lt_prog_compiler_wl='-Wl,' 9042 if test ia64 = "$host_cpu"; then 9043 # AIX 5 now supports IA64 processor 9044 lt_prog_compiler_static='-Bstatic' 9045 else 9046 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9047 fi 9048 ;; 9049 9050 darwin* | rhapsody*) 9051 # PIC is the default on this platform 9052 # Common symbols not allowed in MH_DYLIB files 9053 lt_prog_compiler_pic='-fno-common' 9054 case $cc_basename in 9055 nagfor*) 9056 # NAG Fortran compiler 9057 lt_prog_compiler_wl='-Wl,-Wl,,' 9058 lt_prog_compiler_pic='-PIC' 9059 lt_prog_compiler_static='-Bstatic' 9060 ;; 9061 esac 9062 ;; 9063 9064 mingw* | cygwin* | pw32* | os2* | cegcc*) 9065 # This hack is so that the source file can tell whether it is being 9066 # built for inclusion in a dll (and should export symbols for example). 9067 lt_prog_compiler_pic='-DDLL_EXPORT' 9068 case $host_os in 9069 os2*) 9070 lt_prog_compiler_static='$wl-static' 9071 ;; 9072 esac 9073 ;; 9074 9075 hpux9* | hpux10* | hpux11*) 9076 lt_prog_compiler_wl='-Wl,' 9077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9078 # not for PA HP-UX. 9079 case $host_cpu in 9080 hppa*64*|ia64*) 9081 # +Z the default 9082 ;; 9083 *) 9084 lt_prog_compiler_pic='+Z' 9085 ;; 9086 esac 9087 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9088 lt_prog_compiler_static='$wl-a ${wl}archive' 9089 ;; 9090 9091 irix5* | irix6* | nonstopux*) 9092 lt_prog_compiler_wl='-Wl,' 9093 # PIC (with -KPIC) is the default. 9094 lt_prog_compiler_static='-non_shared' 9095 ;; 9096 9097 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9098 case $cc_basename in 9099 # old Intel for x86_64, which still supported -KPIC. 9100 ecc*) 9101 lt_prog_compiler_wl='-Wl,' 9102 lt_prog_compiler_pic='-KPIC' 9103 lt_prog_compiler_static='-static' 9104 ;; 9105 # icc used to be incompatible with GCC. 9106 # ICC 10 doesn't accept -KPIC any more. 9107 icc* | ifort*) 9108 lt_prog_compiler_wl='-Wl,' 9109 lt_prog_compiler_pic='-fPIC' 9110 lt_prog_compiler_static='-static' 9111 ;; 9112 # Lahey Fortran 8.1. 9113 lf95*) 9114 lt_prog_compiler_wl='-Wl,' 9115 lt_prog_compiler_pic='--shared' 9116 lt_prog_compiler_static='--static' 9117 ;; 9118 nagfor*) 9119 # NAG Fortran compiler 9120 lt_prog_compiler_wl='-Wl,-Wl,,' 9121 lt_prog_compiler_pic='-PIC' 9122 lt_prog_compiler_static='-Bstatic' 9123 ;; 9124 tcc*) 9125 # Fabrice Bellard et al's Tiny C Compiler 9126 lt_prog_compiler_wl='-Wl,' 9127 lt_prog_compiler_pic='-fPIC' 9128 lt_prog_compiler_static='-static' 9129 ;; 9130 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9131 # Portland Group compilers (*not* the Pentium gcc compiler, 9132 # which looks to be a dead project) 9133 lt_prog_compiler_wl='-Wl,' 9134 lt_prog_compiler_pic='-fpic' 9135 lt_prog_compiler_static='-Bstatic' 9136 ;; 9137 ccc*) 9138 lt_prog_compiler_wl='-Wl,' 9139 # All Alpha code is PIC. 9140 lt_prog_compiler_static='-non_shared' 9141 ;; 9142 xl* | bgxl* | bgf* | mpixl*) 9143 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9144 lt_prog_compiler_wl='-Wl,' 9145 lt_prog_compiler_pic='-qpic' 9146 lt_prog_compiler_static='-qstaticlink' 9147 ;; 9148 *) 9149 case `$CC -V 2>&1 | sed 5q` in 9150 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9151 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9152 lt_prog_compiler_pic='-KPIC' 9153 lt_prog_compiler_static='-Bstatic' 9154 lt_prog_compiler_wl='' 9155 ;; 9156 *Sun\ F* | *Sun*Fortran*) 9157 lt_prog_compiler_pic='-KPIC' 9158 lt_prog_compiler_static='-Bstatic' 9159 lt_prog_compiler_wl='-Qoption ld ' 9160 ;; 9161 *Sun\ C*) 9162 # Sun C 5.9 9163 lt_prog_compiler_pic='-KPIC' 9164 lt_prog_compiler_static='-Bstatic' 9165 lt_prog_compiler_wl='-Wl,' 9166 ;; 9167 *Intel*\ [CF]*Compiler*) 9168 lt_prog_compiler_wl='-Wl,' 9169 lt_prog_compiler_pic='-fPIC' 9170 lt_prog_compiler_static='-static' 9171 ;; 9172 *Portland\ Group*) 9173 lt_prog_compiler_wl='-Wl,' 9174 lt_prog_compiler_pic='-fpic' 9175 lt_prog_compiler_static='-Bstatic' 9176 ;; 9177 esac 9178 ;; 9179 esac 9180 ;; 9181 9182 newsos6) 9183 lt_prog_compiler_pic='-KPIC' 9184 lt_prog_compiler_static='-Bstatic' 9185 ;; 9186 9187 *nto* | *qnx*) 9188 # QNX uses GNU C++, but need to define -shared option too, otherwise 9189 # it will coredump. 9190 lt_prog_compiler_pic='-fPIC -shared' 9191 ;; 9192 9193 osf3* | osf4* | osf5*) 9194 lt_prog_compiler_wl='-Wl,' 9195 # All OSF/1 code is PIC. 9196 lt_prog_compiler_static='-non_shared' 9197 ;; 9198 9199 rdos*) 9200 lt_prog_compiler_static='-non_shared' 9201 ;; 9202 9203 solaris*) 9204 lt_prog_compiler_pic='-KPIC' 9205 lt_prog_compiler_static='-Bstatic' 9206 case $cc_basename in 9207 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9208 lt_prog_compiler_wl='-Qoption ld ';; 9209 *) 9210 lt_prog_compiler_wl='-Wl,';; 9211 esac 9212 ;; 9213 9214 sunos4*) 9215 lt_prog_compiler_wl='-Qoption ld ' 9216 lt_prog_compiler_pic='-PIC' 9217 lt_prog_compiler_static='-Bstatic' 9218 ;; 9219 9220 sysv4 | sysv4.2uw2* | sysv4.3*) 9221 lt_prog_compiler_wl='-Wl,' 9222 lt_prog_compiler_pic='-KPIC' 9223 lt_prog_compiler_static='-Bstatic' 9224 ;; 9225 9226 sysv4*MP*) 9227 if test -d /usr/nec; then 9228 lt_prog_compiler_pic='-Kconform_pic' 9229 lt_prog_compiler_static='-Bstatic' 9230 fi 9231 ;; 9232 9233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9234 lt_prog_compiler_wl='-Wl,' 9235 lt_prog_compiler_pic='-KPIC' 9236 lt_prog_compiler_static='-Bstatic' 9237 ;; 9238 9239 unicos*) 9240 lt_prog_compiler_wl='-Wl,' 9241 lt_prog_compiler_can_build_shared=no 9242 ;; 9243 9244 uts4*) 9245 lt_prog_compiler_pic='-pic' 9246 lt_prog_compiler_static='-Bstatic' 9247 ;; 9248 9249 *) 9250 lt_prog_compiler_can_build_shared=no 9251 ;; 9252 esac 9253 fi 9254 9255case $host_os in 9256 # For platforms that do not support PIC, -DPIC is meaningless: 9257 *djgpp*) 9258 lt_prog_compiler_pic= 9259 ;; 9260 *) 9261 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9262 ;; 9263esac 9264 9265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9266$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9267if ${lt_cv_prog_compiler_pic+:} false; then : 9268 $as_echo_n "(cached) " >&6 9269else 9270 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9271fi 9272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9273$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9274lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9275 9276# 9277# Check to make sure the PIC flag actually works. 9278# 9279if test -n "$lt_prog_compiler_pic"; then 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9281$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9282if ${lt_cv_prog_compiler_pic_works+:} false; then : 9283 $as_echo_n "(cached) " >&6 9284else 9285 lt_cv_prog_compiler_pic_works=no 9286 ac_outfile=conftest.$ac_objext 9287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9288 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9289 # Insert the option either (1) after the last *FLAGS variable, or 9290 # (2) before a word containing "conftest.", or (3) at the end. 9291 # Note that $ac_compile itself does not contain backslashes and begins 9292 # with a dollar sign (not a hyphen), so the echo should work correctly. 9293 # The option is referenced via a variable to avoid confusing sed. 9294 lt_compile=`echo "$ac_compile" | $SED \ 9295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9297 -e 's:$: $lt_compiler_flag:'` 9298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9299 (eval "$lt_compile" 2>conftest.err) 9300 ac_status=$? 9301 cat conftest.err >&5 9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9303 if (exit $ac_status) && test -s "$ac_outfile"; then 9304 # The compiler can only warn and ignore the option if not recognized 9305 # So say no if there are warnings other than the usual output. 9306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9308 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9309 lt_cv_prog_compiler_pic_works=yes 9310 fi 9311 fi 9312 $RM conftest* 9313 9314fi 9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9316$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9317 9318if test yes = "$lt_cv_prog_compiler_pic_works"; then 9319 case $lt_prog_compiler_pic in 9320 "" | " "*) ;; 9321 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9322 esac 9323else 9324 lt_prog_compiler_pic= 9325 lt_prog_compiler_can_build_shared=no 9326fi 9327 9328fi 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340# 9341# Check to make sure the static flag actually works. 9342# 9343wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9345$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9346if ${lt_cv_prog_compiler_static_works+:} false; then : 9347 $as_echo_n "(cached) " >&6 9348else 9349 lt_cv_prog_compiler_static_works=no 9350 save_LDFLAGS=$LDFLAGS 9351 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9352 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9353 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9354 # The linker can only warn and ignore the option if not recognized 9355 # So say no if there are warnings 9356 if test -s conftest.err; then 9357 # Append any errors to the config.log. 9358 cat conftest.err 1>&5 9359 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9361 if diff conftest.exp conftest.er2 >/dev/null; then 9362 lt_cv_prog_compiler_static_works=yes 9363 fi 9364 else 9365 lt_cv_prog_compiler_static_works=yes 9366 fi 9367 fi 9368 $RM -r conftest* 9369 LDFLAGS=$save_LDFLAGS 9370 9371fi 9372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9373$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9374 9375if test yes = "$lt_cv_prog_compiler_static_works"; then 9376 : 9377else 9378 lt_prog_compiler_static= 9379fi 9380 9381 9382 9383 9384 9385 9386 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9388$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9389if ${lt_cv_prog_compiler_c_o+:} false; then : 9390 $as_echo_n "(cached) " >&6 9391else 9392 lt_cv_prog_compiler_c_o=no 9393 $RM -r conftest 2>/dev/null 9394 mkdir conftest 9395 cd conftest 9396 mkdir out 9397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9398 9399 lt_compiler_flag="-o out/conftest2.$ac_objext" 9400 # Insert the option either (1) after the last *FLAGS variable, or 9401 # (2) before a word containing "conftest.", or (3) at the end. 9402 # Note that $ac_compile itself does not contain backslashes and begins 9403 # with a dollar sign (not a hyphen), so the echo should work correctly. 9404 lt_compile=`echo "$ac_compile" | $SED \ 9405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9407 -e 's:$: $lt_compiler_flag:'` 9408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9409 (eval "$lt_compile" 2>out/conftest.err) 9410 ac_status=$? 9411 cat out/conftest.err >&5 9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9413 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9414 then 9415 # The compiler can only warn and ignore the option if not recognized 9416 # So say no if there are warnings 9417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9418 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9419 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9420 lt_cv_prog_compiler_c_o=yes 9421 fi 9422 fi 9423 chmod u+w . 2>&5 9424 $RM conftest* 9425 # SGI C++ compiler will create directory out/ii_files/ for 9426 # template instantiation 9427 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9428 $RM out/* && rmdir out 9429 cd .. 9430 $RM -r conftest 9431 $RM conftest* 9432 9433fi 9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9435$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9436 9437 9438 9439 9440 9441 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9443$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9444if ${lt_cv_prog_compiler_c_o+:} false; then : 9445 $as_echo_n "(cached) " >&6 9446else 9447 lt_cv_prog_compiler_c_o=no 9448 $RM -r conftest 2>/dev/null 9449 mkdir conftest 9450 cd conftest 9451 mkdir out 9452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9453 9454 lt_compiler_flag="-o out/conftest2.$ac_objext" 9455 # Insert the option either (1) after the last *FLAGS variable, or 9456 # (2) before a word containing "conftest.", or (3) at the end. 9457 # Note that $ac_compile itself does not contain backslashes and begins 9458 # with a dollar sign (not a hyphen), so the echo should work correctly. 9459 lt_compile=`echo "$ac_compile" | $SED \ 9460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9462 -e 's:$: $lt_compiler_flag:'` 9463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9464 (eval "$lt_compile" 2>out/conftest.err) 9465 ac_status=$? 9466 cat out/conftest.err >&5 9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9468 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9469 then 9470 # The compiler can only warn and ignore the option if not recognized 9471 # So say no if there are warnings 9472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9475 lt_cv_prog_compiler_c_o=yes 9476 fi 9477 fi 9478 chmod u+w . 2>&5 9479 $RM conftest* 9480 # SGI C++ compiler will create directory out/ii_files/ for 9481 # template instantiation 9482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9483 $RM out/* && rmdir out 9484 cd .. 9485 $RM -r conftest 9486 $RM conftest* 9487 9488fi 9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9490$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9491 9492 9493 9494 9495hard_links=nottested 9496if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9497 # do not overwrite the value of need_locks provided by the user 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9499$as_echo_n "checking if we can lock with hard links... " >&6; } 9500 hard_links=yes 9501 $RM conftest* 9502 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9503 touch conftest.a 9504 ln conftest.a conftest.b 2>&5 || hard_links=no 9505 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9507$as_echo "$hard_links" >&6; } 9508 if test no = "$hard_links"; then 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9510$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9511 need_locks=warn 9512 fi 9513else 9514 need_locks=no 9515fi 9516 9517 9518 9519 9520 9521 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9523$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9524 9525 runpath_var= 9526 allow_undefined_flag= 9527 always_export_symbols=no 9528 archive_cmds= 9529 archive_expsym_cmds= 9530 compiler_needs_object=no 9531 enable_shared_with_static_runtimes=no 9532 export_dynamic_flag_spec= 9533 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9534 hardcode_automatic=no 9535 hardcode_direct=no 9536 hardcode_direct_absolute=no 9537 hardcode_libdir_flag_spec= 9538 hardcode_libdir_separator= 9539 hardcode_minus_L=no 9540 hardcode_shlibpath_var=unsupported 9541 inherit_rpath=no 9542 link_all_deplibs=unknown 9543 module_cmds= 9544 module_expsym_cmds= 9545 old_archive_from_new_cmds= 9546 old_archive_from_expsyms_cmds= 9547 thread_safe_flag_spec= 9548 whole_archive_flag_spec= 9549 # include_expsyms should be a list of space-separated symbols to be *always* 9550 # included in the symbol list 9551 include_expsyms= 9552 # exclude_expsyms can be an extended regexp of symbols to exclude 9553 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9554 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9555 # as well as any symbol that contains 'd'. 9556 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9557 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9558 # platforms (ab)use it in PIC code, but their linkers get confused if 9559 # the symbol is explicitly referenced. Since portable code cannot 9560 # rely on this symbol name, it's probably fine to never include it in 9561 # preloaded symbol tables. 9562 # Exclude shared library initialization/finalization symbols. 9563 extract_expsyms_cmds= 9564 9565 case $host_os in 9566 cygwin* | mingw* | pw32* | cegcc*) 9567 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9568 # When not using gcc, we currently assume that we are using 9569 # Microsoft Visual C++. 9570 if test yes != "$GCC"; then 9571 with_gnu_ld=no 9572 fi 9573 ;; 9574 interix*) 9575 # we just hope/assume this is gcc and not c89 (= MSVC++) 9576 with_gnu_ld=yes 9577 ;; 9578 openbsd* | bitrig*) 9579 with_gnu_ld=no 9580 ;; 9581 esac 9582 9583 ld_shlibs=yes 9584 9585 # On some targets, GNU ld is compatible enough with the native linker 9586 # that we're better off using the native interface for both. 9587 lt_use_gnu_ld_interface=no 9588 if test yes = "$with_gnu_ld"; then 9589 case $host_os in 9590 aix*) 9591 # The AIX port of GNU ld has always aspired to compatibility 9592 # with the native linker. However, as the warning in the GNU ld 9593 # block says, versions before 2.19.5* couldn't really create working 9594 # shared libraries, regardless of the interface used. 9595 case `$LD -v 2>&1` in 9596 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9597 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9598 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9599 *) 9600 lt_use_gnu_ld_interface=yes 9601 ;; 9602 esac 9603 ;; 9604 *) 9605 lt_use_gnu_ld_interface=yes 9606 ;; 9607 esac 9608 fi 9609 9610 if test yes = "$lt_use_gnu_ld_interface"; then 9611 # If archive_cmds runs LD, not CC, wlarc should be empty 9612 wlarc='$wl' 9613 9614 # Set some defaults for GNU ld with shared library support. These 9615 # are reset later if shared libraries are not supported. Putting them 9616 # here allows them to be overridden if necessary. 9617 runpath_var=LD_RUN_PATH 9618 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9619 export_dynamic_flag_spec='$wl--export-dynamic' 9620 # ancient GNU ld didn't support --whole-archive et. al. 9621 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9622 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9623 else 9624 whole_archive_flag_spec= 9625 fi 9626 supports_anon_versioning=no 9627 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9628 *GNU\ gold*) supports_anon_versioning=yes ;; 9629 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9630 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9631 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9632 *\ 2.11.*) ;; # other 2.11 versions 9633 *) supports_anon_versioning=yes ;; 9634 esac 9635 9636 # See if GNU ld supports shared libraries. 9637 case $host_os in 9638 aix[3-9]*) 9639 # On AIX/PPC, the GNU linker is very broken 9640 if test ia64 != "$host_cpu"; then 9641 ld_shlibs=no 9642 cat <<_LT_EOF 1>&2 9643 9644*** Warning: the GNU linker, at least up to release 2.19, is reported 9645*** to be unable to reliably create shared libraries on AIX. 9646*** Therefore, libtool is disabling shared libraries support. If you 9647*** really care for shared libraries, you may want to install binutils 9648*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9649*** You will then need to restart the configuration process. 9650 9651_LT_EOF 9652 fi 9653 ;; 9654 9655 amigaos*) 9656 case $host_cpu in 9657 powerpc) 9658 # see comment about AmigaOS4 .so support 9659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9660 archive_expsym_cmds='' 9661 ;; 9662 m68k) 9663 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9664 hardcode_libdir_flag_spec='-L$libdir' 9665 hardcode_minus_L=yes 9666 ;; 9667 esac 9668 ;; 9669 9670 beos*) 9671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9672 allow_undefined_flag=unsupported 9673 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9674 # support --undefined. This deserves some investigation. FIXME 9675 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9676 else 9677 ld_shlibs=no 9678 fi 9679 ;; 9680 9681 cygwin* | mingw* | pw32* | cegcc*) 9682 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9683 # as there is no search path for DLLs. 9684 hardcode_libdir_flag_spec='-L$libdir' 9685 export_dynamic_flag_spec='$wl--export-all-symbols' 9686 allow_undefined_flag=unsupported 9687 always_export_symbols=no 9688 enable_shared_with_static_runtimes=yes 9689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9690 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9691 9692 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9694 # If the export-symbols file already is a .def file, use it as 9695 # is; otherwise, prepend EXPORTS... 9696 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9697 cp $export_symbols $output_objdir/$soname.def; 9698 else 9699 echo EXPORTS > $output_objdir/$soname.def; 9700 cat $export_symbols >> $output_objdir/$soname.def; 9701 fi~ 9702 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9703 else 9704 ld_shlibs=no 9705 fi 9706 ;; 9707 9708 haiku*) 9709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9710 link_all_deplibs=yes 9711 ;; 9712 9713 os2*) 9714 hardcode_libdir_flag_spec='-L$libdir' 9715 hardcode_minus_L=yes 9716 allow_undefined_flag=unsupported 9717 shrext_cmds=.dll 9718 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9719 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9720 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9721 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9722 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9723 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9724 emximp -o $lib $output_objdir/$libname.def' 9725 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9726 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9727 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9728 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9729 prefix_cmds="$SED"~ 9730 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9731 prefix_cmds="$prefix_cmds -e 1d"; 9732 fi~ 9733 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9734 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9735 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9736 emximp -o $lib $output_objdir/$libname.def' 9737 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9738 enable_shared_with_static_runtimes=yes 9739 ;; 9740 9741 interix[3-9]*) 9742 hardcode_direct=no 9743 hardcode_shlibpath_var=no 9744 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9745 export_dynamic_flag_spec='$wl-E' 9746 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9747 # Instead, shared libraries are loaded at an image base (0x10000000 by 9748 # default) and relocated if they conflict, which is a slow very memory 9749 # consuming and fragmenting process. To avoid this, we pick a random, 9750 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9751 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9752 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9753 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9754 ;; 9755 9756 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9757 tmp_diet=no 9758 if test linux-dietlibc = "$host_os"; then 9759 case $cc_basename in 9760 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9761 esac 9762 fi 9763 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9764 && test no = "$tmp_diet" 9765 then 9766 tmp_addflag=' $pic_flag' 9767 tmp_sharedflag='-shared' 9768 case $cc_basename,$host_cpu in 9769 pgcc*) # Portland Group C compiler 9770 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9771 tmp_addflag=' $pic_flag' 9772 ;; 9773 pgf77* | pgf90* | pgf95* | pgfortran*) 9774 # Portland Group f77 and f90 compilers 9775 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9776 tmp_addflag=' $pic_flag -Mnomain' ;; 9777 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9778 tmp_addflag=' -i_dynamic' ;; 9779 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9780 tmp_addflag=' -i_dynamic -nofor_main' ;; 9781 ifc* | ifort*) # Intel Fortran compiler 9782 tmp_addflag=' -nofor_main' ;; 9783 lf95*) # Lahey Fortran 8.1 9784 whole_archive_flag_spec= 9785 tmp_sharedflag='--shared' ;; 9786 nagfor*) # NAGFOR 5.3 9787 tmp_sharedflag='-Wl,-shared' ;; 9788 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9789 tmp_sharedflag='-qmkshrobj' 9790 tmp_addflag= ;; 9791 nvcc*) # Cuda Compiler Driver 2.2 9792 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9793 compiler_needs_object=yes 9794 ;; 9795 esac 9796 case `$CC -V 2>&1 | sed 5q` in 9797 *Sun\ C*) # Sun C 5.9 9798 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9799 compiler_needs_object=yes 9800 tmp_sharedflag='-G' ;; 9801 *Sun\ F*) # Sun Fortran 8.3 9802 tmp_sharedflag='-G' ;; 9803 esac 9804 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9805 9806 if test yes = "$supports_anon_versioning"; then 9807 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9809 echo "local: *; };" >> $output_objdir/$libname.ver~ 9810 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9811 fi 9812 9813 case $cc_basename in 9814 tcc*) 9815 export_dynamic_flag_spec='-rdynamic' 9816 ;; 9817 xlf* | bgf* | bgxlf* | mpixlf*) 9818 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9819 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9820 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9821 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9822 if test yes = "$supports_anon_versioning"; then 9823 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9825 echo "local: *; };" >> $output_objdir/$libname.ver~ 9826 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9827 fi 9828 ;; 9829 esac 9830 else 9831 ld_shlibs=no 9832 fi 9833 ;; 9834 9835 netbsd*) 9836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9837 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9838 wlarc= 9839 else 9840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9841 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9842 fi 9843 ;; 9844 9845 solaris*) 9846 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9847 ld_shlibs=no 9848 cat <<_LT_EOF 1>&2 9849 9850*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9851*** create shared libraries on Solaris systems. Therefore, libtool 9852*** is disabling shared libraries support. We urge you to upgrade GNU 9853*** binutils to release 2.9.1 or newer. Another option is to modify 9854*** your PATH or compiler configuration so that the native linker is 9855*** used, and then restart. 9856 9857_LT_EOF 9858 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9859 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9860 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9861 else 9862 ld_shlibs=no 9863 fi 9864 ;; 9865 9866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9867 case `$LD -v 2>&1` in 9868 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9869 ld_shlibs=no 9870 cat <<_LT_EOF 1>&2 9871 9872*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9873*** reliably create shared libraries on SCO systems. Therefore, libtool 9874*** is disabling shared libraries support. We urge you to upgrade GNU 9875*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9876*** your PATH or compiler configuration so that the native linker is 9877*** used, and then restart. 9878 9879_LT_EOF 9880 ;; 9881 *) 9882 # For security reasons, it is highly recommended that you always 9883 # use absolute paths for naming shared libraries, and exclude the 9884 # DT_RUNPATH tag from executables and libraries. But doing so 9885 # requires that you compile everything twice, which is a pain. 9886 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9887 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9889 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9890 else 9891 ld_shlibs=no 9892 fi 9893 ;; 9894 esac 9895 ;; 9896 9897 sunos4*) 9898 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9899 wlarc= 9900 hardcode_direct=yes 9901 hardcode_shlibpath_var=no 9902 ;; 9903 9904 *) 9905 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9907 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9908 else 9909 ld_shlibs=no 9910 fi 9911 ;; 9912 esac 9913 9914 if test no = "$ld_shlibs"; then 9915 runpath_var= 9916 hardcode_libdir_flag_spec= 9917 export_dynamic_flag_spec= 9918 whole_archive_flag_spec= 9919 fi 9920 else 9921 # PORTME fill in a description of your system's linker (not GNU ld) 9922 case $host_os in 9923 aix3*) 9924 allow_undefined_flag=unsupported 9925 always_export_symbols=yes 9926 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9927 # Note: this linker hardcodes the directories in LIBPATH if there 9928 # are no directories specified by -L. 9929 hardcode_minus_L=yes 9930 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9931 # Neither direct hardcoding nor static linking is supported with a 9932 # broken collect2. 9933 hardcode_direct=unsupported 9934 fi 9935 ;; 9936 9937 aix[4-9]*) 9938 if test ia64 = "$host_cpu"; then 9939 # On IA64, the linker does run time linking by default, so we don't 9940 # have to do anything special. 9941 aix_use_runtimelinking=no 9942 exp_sym_flag='-Bexport' 9943 no_entry_flag= 9944 else 9945 # If we're using GNU nm, then we don't want the "-C" option. 9946 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9947 # Without the "-l" option, or with the "-B" option, AIX nm treats 9948 # weak defined symbols like other global defined symbols, whereas 9949 # GNU nm marks them as "W". 9950 # While the 'weak' keyword is ignored in the Export File, we need 9951 # it in the Import File for the 'aix-soname' feature, so we have 9952 # to replace the "-B" option with "-P" for AIX nm. 9953 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9954 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9955 else 9956 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9957 fi 9958 aix_use_runtimelinking=no 9959 9960 # Test if we are trying to use run time linking or normal 9961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9962 # have runtime linking enabled, and use it for executables. 9963 # For shared libraries, we enable/disable runtime linking 9964 # depending on the kind of the shared library created - 9965 # when "with_aix_soname,aix_use_runtimelinking" is: 9966 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9967 # "aix,yes" lib.so shared, rtl:yes, for executables 9968 # lib.a static archive 9969 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9970 # lib.a(lib.so.V) shared, rtl:no, for executables 9971 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9972 # lib.a(lib.so.V) shared, rtl:no 9973 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9974 # lib.a static archive 9975 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9976 for ld_flag in $LDFLAGS; do 9977 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9978 aix_use_runtimelinking=yes 9979 break 9980 fi 9981 done 9982 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9983 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9984 # so we don't have lib.a shared libs to link our executables. 9985 # We have to force runtime linking in this case. 9986 aix_use_runtimelinking=yes 9987 LDFLAGS="$LDFLAGS -Wl,-brtl" 9988 fi 9989 ;; 9990 esac 9991 9992 exp_sym_flag='-bexport' 9993 no_entry_flag='-bnoentry' 9994 fi 9995 9996 # When large executables or shared objects are built, AIX ld can 9997 # have problems creating the table of contents. If linking a library 9998 # or program results in "error TOC overflow" add -mminimal-toc to 9999 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10000 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10001 10002 archive_cmds='' 10003 hardcode_direct=yes 10004 hardcode_direct_absolute=yes 10005 hardcode_libdir_separator=':' 10006 link_all_deplibs=yes 10007 file_list_spec='$wl-f,' 10008 case $with_aix_soname,$aix_use_runtimelinking in 10009 aix,*) ;; # traditional, no import file 10010 svr4,* | *,yes) # use import file 10011 # The Import File defines what to hardcode. 10012 hardcode_direct=no 10013 hardcode_direct_absolute=no 10014 ;; 10015 esac 10016 10017 if test yes = "$GCC"; then 10018 case $host_os in aix4.[012]|aix4.[012].*) 10019 # We only want to do this on AIX 4.2 and lower, the check 10020 # below for broken collect2 doesn't work under 4.3+ 10021 collect2name=`$CC -print-prog-name=collect2` 10022 if test -f "$collect2name" && 10023 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10024 then 10025 # We have reworked collect2 10026 : 10027 else 10028 # We have old collect2 10029 hardcode_direct=unsupported 10030 # It fails to find uninstalled libraries when the uninstalled 10031 # path is not listed in the libpath. Setting hardcode_minus_L 10032 # to unsupported forces relinking 10033 hardcode_minus_L=yes 10034 hardcode_libdir_flag_spec='-L$libdir' 10035 hardcode_libdir_separator= 10036 fi 10037 ;; 10038 esac 10039 shared_flag='-shared' 10040 if test yes = "$aix_use_runtimelinking"; then 10041 shared_flag="$shared_flag "'$wl-G' 10042 fi 10043 # Need to ensure runtime linking is disabled for the traditional 10044 # shared library, or the linker may eventually find shared libraries 10045 # /with/ Import File - we do not want to mix them. 10046 shared_flag_aix='-shared' 10047 shared_flag_svr4='-shared $wl-G' 10048 else 10049 # not using gcc 10050 if test ia64 = "$host_cpu"; then 10051 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10052 # chokes on -Wl,-G. The following line is correct: 10053 shared_flag='-G' 10054 else 10055 if test yes = "$aix_use_runtimelinking"; then 10056 shared_flag='$wl-G' 10057 else 10058 shared_flag='$wl-bM:SRE' 10059 fi 10060 shared_flag_aix='$wl-bM:SRE' 10061 shared_flag_svr4='$wl-G' 10062 fi 10063 fi 10064 10065 export_dynamic_flag_spec='$wl-bexpall' 10066 # It seems that -bexpall does not export symbols beginning with 10067 # underscore (_), so it is better to generate a list of symbols to export. 10068 always_export_symbols=yes 10069 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10070 # Warning - without using the other runtime loading flags (-brtl), 10071 # -berok will link without error, but may produce a broken library. 10072 allow_undefined_flag='-berok' 10073 # Determine the default libpath from the value encoded in an 10074 # empty executable. 10075 if test set = "${lt_cv_aix_libpath+set}"; then 10076 aix_libpath=$lt_cv_aix_libpath 10077else 10078 if ${lt_cv_aix_libpath_+:} false; then : 10079 $as_echo_n "(cached) " >&6 10080else 10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10082/* end confdefs.h. */ 10083 10084int 10085main () 10086{ 10087 10088 ; 10089 return 0; 10090} 10091_ACEOF 10092if ac_fn_c_try_link "$LINENO"; then : 10093 10094 lt_aix_libpath_sed=' 10095 /Import File Strings/,/^$/ { 10096 /^0/ { 10097 s/^0 *\([^ ]*\) *$/\1/ 10098 p 10099 } 10100 }' 10101 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10102 # Check for a 64-bit object if we didn't find anything. 10103 if test -z "$lt_cv_aix_libpath_"; then 10104 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10105 fi 10106fi 10107rm -f core conftest.err conftest.$ac_objext \ 10108 conftest$ac_exeext conftest.$ac_ext 10109 if test -z "$lt_cv_aix_libpath_"; then 10110 lt_cv_aix_libpath_=/usr/lib:/lib 10111 fi 10112 10113fi 10114 10115 aix_libpath=$lt_cv_aix_libpath_ 10116fi 10117 10118 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10119 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10120 else 10121 if test ia64 = "$host_cpu"; then 10122 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10123 allow_undefined_flag="-z nodefs" 10124 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 10125 else 10126 # Determine the default libpath from the value encoded in an 10127 # empty executable. 10128 if test set = "${lt_cv_aix_libpath+set}"; then 10129 aix_libpath=$lt_cv_aix_libpath 10130else 10131 if ${lt_cv_aix_libpath_+:} false; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10135/* end confdefs.h. */ 10136 10137int 10138main () 10139{ 10140 10141 ; 10142 return 0; 10143} 10144_ACEOF 10145if ac_fn_c_try_link "$LINENO"; then : 10146 10147 lt_aix_libpath_sed=' 10148 /Import File Strings/,/^$/ { 10149 /^0/ { 10150 s/^0 *\([^ ]*\) *$/\1/ 10151 p 10152 } 10153 }' 10154 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10155 # Check for a 64-bit object if we didn't find anything. 10156 if test -z "$lt_cv_aix_libpath_"; then 10157 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10158 fi 10159fi 10160rm -f core conftest.err conftest.$ac_objext \ 10161 conftest$ac_exeext conftest.$ac_ext 10162 if test -z "$lt_cv_aix_libpath_"; then 10163 lt_cv_aix_libpath_=/usr/lib:/lib 10164 fi 10165 10166fi 10167 10168 aix_libpath=$lt_cv_aix_libpath_ 10169fi 10170 10171 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10172 # Warning - without using the other run time loading flags, 10173 # -berok will link without error, but may produce a broken library. 10174 no_undefined_flag=' $wl-bernotok' 10175 allow_undefined_flag=' $wl-berok' 10176 if test yes = "$with_gnu_ld"; then 10177 # We only use this code for GNU lds that support --whole-archive. 10178 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10179 else 10180 # Exported symbols can be pulled into shared objects from archives 10181 whole_archive_flag_spec='$convenience' 10182 fi 10183 archive_cmds_need_lc=yes 10184 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10185 # -brtl affects multiple linker settings, -berok does not and is overridden later 10186 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10187 if test svr4 != "$with_aix_soname"; then 10188 # This is similar to how AIX traditionally builds its shared libraries. 10189 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10190 fi 10191 if test aix != "$with_aix_soname"; then 10192 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10193 else 10194 # used by -dlpreopen to get the symbols 10195 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10196 fi 10197 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10198 fi 10199 fi 10200 ;; 10201 10202 amigaos*) 10203 case $host_cpu in 10204 powerpc) 10205 # see comment about AmigaOS4 .so support 10206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10207 archive_expsym_cmds='' 10208 ;; 10209 m68k) 10210 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10211 hardcode_libdir_flag_spec='-L$libdir' 10212 hardcode_minus_L=yes 10213 ;; 10214 esac 10215 ;; 10216 10217 bsdi[45]*) 10218 export_dynamic_flag_spec=-rdynamic 10219 ;; 10220 10221 cygwin* | mingw* | pw32* | cegcc*) 10222 # When not using gcc, we currently assume that we are using 10223 # Microsoft Visual C++. 10224 # hardcode_libdir_flag_spec is actually meaningless, as there is 10225 # no search path for DLLs. 10226 case $cc_basename in 10227 cl*) 10228 # Native MSVC 10229 hardcode_libdir_flag_spec=' ' 10230 allow_undefined_flag=unsupported 10231 always_export_symbols=yes 10232 file_list_spec='@' 10233 # Tell ltmain to make .lib files, not .a files. 10234 libext=lib 10235 # Tell ltmain to make .dll files, not .so files. 10236 shrext_cmds=.dll 10237 # FIXME: Setting linknames here is a bad hack. 10238 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10239 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10240 cp "$export_symbols" "$output_objdir/$soname.def"; 10241 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10242 else 10243 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10244 fi~ 10245 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10246 linknames=' 10247 # The linker will not automatically build a static lib if we build a DLL. 10248 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10249 enable_shared_with_static_runtimes=yes 10250 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10252 # Don't use ranlib 10253 old_postinstall_cmds='chmod 644 $oldlib' 10254 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10255 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10256 case $lt_outputfile in 10257 *.exe|*.EXE) ;; 10258 *) 10259 lt_outputfile=$lt_outputfile.exe 10260 lt_tool_outputfile=$lt_tool_outputfile.exe 10261 ;; 10262 esac~ 10263 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10264 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10265 $RM "$lt_outputfile.manifest"; 10266 fi' 10267 ;; 10268 *) 10269 # Assume MSVC wrapper 10270 hardcode_libdir_flag_spec=' ' 10271 allow_undefined_flag=unsupported 10272 # Tell ltmain to make .lib files, not .a files. 10273 libext=lib 10274 # Tell ltmain to make .dll files, not .so files. 10275 shrext_cmds=.dll 10276 # FIXME: Setting linknames here is a bad hack. 10277 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10278 # The linker will automatically build a .lib file if we build a DLL. 10279 old_archive_from_new_cmds='true' 10280 # FIXME: Should let the user specify the lib program. 10281 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10282 enable_shared_with_static_runtimes=yes 10283 ;; 10284 esac 10285 ;; 10286 10287 darwin* | rhapsody*) 10288 10289 10290 archive_cmds_need_lc=no 10291 hardcode_direct=no 10292 hardcode_automatic=yes 10293 hardcode_shlibpath_var=unsupported 10294 if test yes = "$lt_cv_ld_force_load"; then 10295 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10296 10297 else 10298 whole_archive_flag_spec='' 10299 fi 10300 link_all_deplibs=yes 10301 allow_undefined_flag=$_lt_dar_allow_undefined 10302 case $cc_basename in 10303 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10304 *) _lt_dar_can_shared=$GCC ;; 10305 esac 10306 if test yes = "$_lt_dar_can_shared"; then 10307 output_verbose_link_cmd=func_echo_all 10308 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10309 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10310 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 10311 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 10312 10313 else 10314 ld_shlibs=no 10315 fi 10316 10317 ;; 10318 10319 dgux*) 10320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10321 hardcode_libdir_flag_spec='-L$libdir' 10322 hardcode_shlibpath_var=no 10323 ;; 10324 10325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10326 # support. Future versions do this automatically, but an explicit c++rt0.o 10327 # does not break anything, and helps significantly (at the cost of a little 10328 # extra space). 10329 freebsd2.2*) 10330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10331 hardcode_libdir_flag_spec='-R$libdir' 10332 hardcode_direct=yes 10333 hardcode_shlibpath_var=no 10334 ;; 10335 10336 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10337 freebsd2.*) 10338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10339 hardcode_direct=yes 10340 hardcode_minus_L=yes 10341 hardcode_shlibpath_var=no 10342 ;; 10343 10344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10345 freebsd* | dragonfly*) 10346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10347 hardcode_libdir_flag_spec='-R$libdir' 10348 hardcode_direct=yes 10349 hardcode_shlibpath_var=no 10350 ;; 10351 10352 hpux9*) 10353 if test yes = "$GCC"; then 10354 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10355 else 10356 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10357 fi 10358 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10359 hardcode_libdir_separator=: 10360 hardcode_direct=yes 10361 10362 # hardcode_minus_L: Not really in the search PATH, 10363 # but as the default location of the library. 10364 hardcode_minus_L=yes 10365 export_dynamic_flag_spec='$wl-E' 10366 ;; 10367 10368 hpux10*) 10369 if test yes,no = "$GCC,$with_gnu_ld"; then 10370 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10371 else 10372 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10373 fi 10374 if test no = "$with_gnu_ld"; then 10375 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10376 hardcode_libdir_separator=: 10377 hardcode_direct=yes 10378 hardcode_direct_absolute=yes 10379 export_dynamic_flag_spec='$wl-E' 10380 # hardcode_minus_L: Not really in the search PATH, 10381 # but as the default location of the library. 10382 hardcode_minus_L=yes 10383 fi 10384 ;; 10385 10386 hpux11*) 10387 if test yes,no = "$GCC,$with_gnu_ld"; then 10388 case $host_cpu in 10389 hppa*64*) 10390 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10391 ;; 10392 ia64*) 10393 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10394 ;; 10395 *) 10396 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10397 ;; 10398 esac 10399 else 10400 case $host_cpu in 10401 hppa*64*) 10402 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10403 ;; 10404 ia64*) 10405 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10406 ;; 10407 *) 10408 10409 # Older versions of the 11.00 compiler do not understand -b yet 10410 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10412$as_echo_n "checking if $CC understands -b... " >&6; } 10413if ${lt_cv_prog_compiler__b+:} false; then : 10414 $as_echo_n "(cached) " >&6 10415else 10416 lt_cv_prog_compiler__b=no 10417 save_LDFLAGS=$LDFLAGS 10418 LDFLAGS="$LDFLAGS -b" 10419 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10420 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10421 # The linker can only warn and ignore the option if not recognized 10422 # So say no if there are warnings 10423 if test -s conftest.err; then 10424 # Append any errors to the config.log. 10425 cat conftest.err 1>&5 10426 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10428 if diff conftest.exp conftest.er2 >/dev/null; then 10429 lt_cv_prog_compiler__b=yes 10430 fi 10431 else 10432 lt_cv_prog_compiler__b=yes 10433 fi 10434 fi 10435 $RM -r conftest* 10436 LDFLAGS=$save_LDFLAGS 10437 10438fi 10439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10440$as_echo "$lt_cv_prog_compiler__b" >&6; } 10441 10442if test yes = "$lt_cv_prog_compiler__b"; then 10443 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10444else 10445 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10446fi 10447 10448 ;; 10449 esac 10450 fi 10451 if test no = "$with_gnu_ld"; then 10452 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10453 hardcode_libdir_separator=: 10454 10455 case $host_cpu in 10456 hppa*64*|ia64*) 10457 hardcode_direct=no 10458 hardcode_shlibpath_var=no 10459 ;; 10460 *) 10461 hardcode_direct=yes 10462 hardcode_direct_absolute=yes 10463 export_dynamic_flag_spec='$wl-E' 10464 10465 # hardcode_minus_L: Not really in the search PATH, 10466 # but as the default location of the library. 10467 hardcode_minus_L=yes 10468 ;; 10469 esac 10470 fi 10471 ;; 10472 10473 irix5* | irix6* | nonstopux*) 10474 if test yes = "$GCC"; then 10475 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10476 # Try to use the -exported_symbol ld option, if it does not 10477 # work, assume that -exports_file does not work either and 10478 # implicitly export all symbols. 10479 # This should be the same for all languages, so no per-tag cache variable. 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10481$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10482if ${lt_cv_irix_exported_symbol+:} false; then : 10483 $as_echo_n "(cached) " >&6 10484else 10485 save_LDFLAGS=$LDFLAGS 10486 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10488/* end confdefs.h. */ 10489int foo (void) { return 0; } 10490_ACEOF 10491if ac_fn_c_try_link "$LINENO"; then : 10492 lt_cv_irix_exported_symbol=yes 10493else 10494 lt_cv_irix_exported_symbol=no 10495fi 10496rm -f core conftest.err conftest.$ac_objext \ 10497 conftest$ac_exeext conftest.$ac_ext 10498 LDFLAGS=$save_LDFLAGS 10499fi 10500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10501$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10502 if test yes = "$lt_cv_irix_exported_symbol"; then 10503 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10504 fi 10505 else 10506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10507 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 10508 fi 10509 archive_cmds_need_lc='no' 10510 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10511 hardcode_libdir_separator=: 10512 inherit_rpath=yes 10513 link_all_deplibs=yes 10514 ;; 10515 10516 linux*) 10517 case $cc_basename in 10518 tcc*) 10519 # Fabrice Bellard et al's Tiny C Compiler 10520 ld_shlibs=yes 10521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10522 ;; 10523 esac 10524 ;; 10525 10526 netbsd*) 10527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10529 else 10530 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10531 fi 10532 hardcode_libdir_flag_spec='-R$libdir' 10533 hardcode_direct=yes 10534 hardcode_shlibpath_var=no 10535 ;; 10536 10537 newsos6) 10538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10539 hardcode_direct=yes 10540 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10541 hardcode_libdir_separator=: 10542 hardcode_shlibpath_var=no 10543 ;; 10544 10545 *nto* | *qnx*) 10546 ;; 10547 10548 openbsd* | bitrig*) 10549 if test -f /usr/libexec/ld.so; then 10550 hardcode_direct=yes 10551 hardcode_shlibpath_var=no 10552 hardcode_direct_absolute=yes 10553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10555 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10556 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10557 export_dynamic_flag_spec='$wl-E' 10558 else 10559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10560 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10561 fi 10562 else 10563 ld_shlibs=no 10564 fi 10565 ;; 10566 10567 os2*) 10568 hardcode_libdir_flag_spec='-L$libdir' 10569 hardcode_minus_L=yes 10570 allow_undefined_flag=unsupported 10571 shrext_cmds=.dll 10572 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10573 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10574 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10575 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10576 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10577 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10578 emximp -o $lib $output_objdir/$libname.def' 10579 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10580 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10581 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10582 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10583 prefix_cmds="$SED"~ 10584 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10585 prefix_cmds="$prefix_cmds -e 1d"; 10586 fi~ 10587 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10588 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10589 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10590 emximp -o $lib $output_objdir/$libname.def' 10591 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10592 enable_shared_with_static_runtimes=yes 10593 ;; 10594 10595 osf3*) 10596 if test yes = "$GCC"; then 10597 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10598 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10599 else 10600 allow_undefined_flag=' -expect_unresolved \*' 10601 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10602 fi 10603 archive_cmds_need_lc='no' 10604 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10605 hardcode_libdir_separator=: 10606 ;; 10607 10608 osf4* | osf5*) # as osf3* with the addition of -msym flag 10609 if test yes = "$GCC"; then 10610 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10611 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10612 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10613 else 10614 allow_undefined_flag=' -expect_unresolved \*' 10615 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10616 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10617 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10618 10619 # Both c and cxx compiler support -rpath directly 10620 hardcode_libdir_flag_spec='-rpath $libdir' 10621 fi 10622 archive_cmds_need_lc='no' 10623 hardcode_libdir_separator=: 10624 ;; 10625 10626 solaris*) 10627 no_undefined_flag=' -z defs' 10628 if test yes = "$GCC"; then 10629 wlarc='$wl' 10630 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10631 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10632 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10633 else 10634 case `$CC -V 2>&1` in 10635 *"Compilers 5.0"*) 10636 wlarc='' 10637 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10639 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10640 ;; 10641 *) 10642 wlarc='$wl' 10643 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10645 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10646 ;; 10647 esac 10648 fi 10649 hardcode_libdir_flag_spec='-R$libdir' 10650 hardcode_shlibpath_var=no 10651 case $host_os in 10652 solaris2.[0-5] | solaris2.[0-5].*) ;; 10653 *) 10654 # The compiler driver will combine and reorder linker options, 10655 # but understands '-z linker_flag'. GCC discards it without '$wl', 10656 # but is careful enough not to reorder. 10657 # Supported since Solaris 2.6 (maybe 2.5.1?) 10658 if test yes = "$GCC"; then 10659 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10660 else 10661 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10662 fi 10663 ;; 10664 esac 10665 link_all_deplibs=yes 10666 ;; 10667 10668 sunos4*) 10669 if test sequent = "$host_vendor"; then 10670 # Use $CC to link under sequent, because it throws in some extra .o 10671 # files that make .init and .fini sections work. 10672 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10673 else 10674 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10675 fi 10676 hardcode_libdir_flag_spec='-L$libdir' 10677 hardcode_direct=yes 10678 hardcode_minus_L=yes 10679 hardcode_shlibpath_var=no 10680 ;; 10681 10682 sysv4) 10683 case $host_vendor in 10684 sni) 10685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10686 hardcode_direct=yes # is this really true??? 10687 ;; 10688 siemens) 10689 ## LD is ld it makes a PLAMLIB 10690 ## CC just makes a GrossModule. 10691 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10692 reload_cmds='$CC -r -o $output$reload_objs' 10693 hardcode_direct=no 10694 ;; 10695 motorola) 10696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10697 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10698 ;; 10699 esac 10700 runpath_var='LD_RUN_PATH' 10701 hardcode_shlibpath_var=no 10702 ;; 10703 10704 sysv4.3*) 10705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10706 hardcode_shlibpath_var=no 10707 export_dynamic_flag_spec='-Bexport' 10708 ;; 10709 10710 sysv4*MP*) 10711 if test -d /usr/nec; then 10712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10713 hardcode_shlibpath_var=no 10714 runpath_var=LD_RUN_PATH 10715 hardcode_runpath_var=yes 10716 ld_shlibs=yes 10717 fi 10718 ;; 10719 10720 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10721 no_undefined_flag='$wl-z,text' 10722 archive_cmds_need_lc=no 10723 hardcode_shlibpath_var=no 10724 runpath_var='LD_RUN_PATH' 10725 10726 if test yes = "$GCC"; then 10727 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10728 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10729 else 10730 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10731 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10732 fi 10733 ;; 10734 10735 sysv5* | sco3.2v5* | sco5v6*) 10736 # Note: We CANNOT use -z defs as we might desire, because we do not 10737 # link with -lc, and that would cause any symbols used from libc to 10738 # always be unresolved, which means just about no library would 10739 # ever link correctly. If we're not using GNU ld we use -z text 10740 # though, which does catch some bad symbols but isn't as heavy-handed 10741 # as -z defs. 10742 no_undefined_flag='$wl-z,text' 10743 allow_undefined_flag='$wl-z,nodefs' 10744 archive_cmds_need_lc=no 10745 hardcode_shlibpath_var=no 10746 hardcode_libdir_flag_spec='$wl-R,$libdir' 10747 hardcode_libdir_separator=':' 10748 link_all_deplibs=yes 10749 export_dynamic_flag_spec='$wl-Bexport' 10750 runpath_var='LD_RUN_PATH' 10751 10752 if test yes = "$GCC"; then 10753 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10754 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10755 else 10756 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10757 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10758 fi 10759 ;; 10760 10761 uts4*) 10762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10763 hardcode_libdir_flag_spec='-L$libdir' 10764 hardcode_shlibpath_var=no 10765 ;; 10766 10767 *) 10768 ld_shlibs=no 10769 ;; 10770 esac 10771 10772 if test sni = "$host_vendor"; then 10773 case $host in 10774 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10775 export_dynamic_flag_spec='$wl-Blargedynsym' 10776 ;; 10777 esac 10778 fi 10779 fi 10780 10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10782$as_echo "$ld_shlibs" >&6; } 10783test no = "$ld_shlibs" && can_build_shared=no 10784 10785with_gnu_ld=$with_gnu_ld 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801# 10802# Do we need to explicitly link libc? 10803# 10804case "x$archive_cmds_need_lc" in 10805x|xyes) 10806 # Assume -lc should be added 10807 archive_cmds_need_lc=yes 10808 10809 if test yes,yes = "$GCC,$enable_shared"; then 10810 case $archive_cmds in 10811 *'~'*) 10812 # FIXME: we may have to deal with multi-command sequences. 10813 ;; 10814 '$CC '*) 10815 # Test whether the compiler implicitly links with -lc since on some 10816 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10817 # to ld, don't add -lc before -lgcc. 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10819$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10820if ${lt_cv_archive_cmds_need_lc+:} false; then : 10821 $as_echo_n "(cached) " >&6 10822else 10823 $RM conftest* 10824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10825 10826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10827 (eval $ac_compile) 2>&5 10828 ac_status=$? 10829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10830 test $ac_status = 0; } 2>conftest.err; then 10831 soname=conftest 10832 lib=conftest 10833 libobjs=conftest.$ac_objext 10834 deplibs= 10835 wl=$lt_prog_compiler_wl 10836 pic_flag=$lt_prog_compiler_pic 10837 compiler_flags=-v 10838 linker_flags=-v 10839 verstring= 10840 output_objdir=. 10841 libname=conftest 10842 lt_save_allow_undefined_flag=$allow_undefined_flag 10843 allow_undefined_flag= 10844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10845 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10846 ac_status=$? 10847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10848 test $ac_status = 0; } 10849 then 10850 lt_cv_archive_cmds_need_lc=no 10851 else 10852 lt_cv_archive_cmds_need_lc=yes 10853 fi 10854 allow_undefined_flag=$lt_save_allow_undefined_flag 10855 else 10856 cat conftest.err 1>&5 10857 fi 10858 $RM conftest* 10859 10860fi 10861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10862$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10863 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10864 ;; 10865 esac 10866 fi 10867 ;; 10868esac 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11022$as_echo_n "checking dynamic linker characteristics... " >&6; } 11023 11024if test yes = "$GCC"; then 11025 case $host_os in 11026 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11027 *) lt_awk_arg='/^libraries:/' ;; 11028 esac 11029 case $host_os in 11030 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11031 *) lt_sed_strip_eq='s|=/|/|g' ;; 11032 esac 11033 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11034 case $lt_search_path_spec in 11035 *\;*) 11036 # if the path contains ";" then we assume it to be the separator 11037 # otherwise default to the standard path separator (i.e. ":") - it is 11038 # assumed that no part of a normal pathname contains ";" but that should 11039 # okay in the real world where ";" in dirpaths is itself problematic. 11040 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11041 ;; 11042 *) 11043 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11044 ;; 11045 esac 11046 # Ok, now we have the path, separated by spaces, we can step through it 11047 # and add multilib dir if necessary... 11048 lt_tmp_lt_search_path_spec= 11049 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11050 # ...but if some path component already ends with the multilib dir we assume 11051 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11052 case "$lt_multi_os_dir; $lt_search_path_spec " in 11053 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11054 lt_multi_os_dir= 11055 ;; 11056 esac 11057 for lt_sys_path in $lt_search_path_spec; do 11058 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11060 elif test -n "$lt_multi_os_dir"; then 11061 test -d "$lt_sys_path" && \ 11062 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11063 fi 11064 done 11065 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11066BEGIN {RS = " "; FS = "/|\n";} { 11067 lt_foo = ""; 11068 lt_count = 0; 11069 for (lt_i = NF; lt_i > 0; lt_i--) { 11070 if ($lt_i != "" && $lt_i != ".") { 11071 if ($lt_i == "..") { 11072 lt_count++; 11073 } else { 11074 if (lt_count == 0) { 11075 lt_foo = "/" $lt_i lt_foo; 11076 } else { 11077 lt_count--; 11078 } 11079 } 11080 } 11081 } 11082 if (lt_foo != "") { lt_freq[lt_foo]++; } 11083 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11084}'` 11085 # AWK program above erroneously prepends '/' to C:/dos/paths 11086 # for these hosts. 11087 case $host_os in 11088 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11089 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11090 esac 11091 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11092else 11093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11094fi 11095library_names_spec= 11096libname_spec='lib$name' 11097soname_spec= 11098shrext_cmds=.so 11099postinstall_cmds= 11100postuninstall_cmds= 11101finish_cmds= 11102finish_eval= 11103shlibpath_var= 11104shlibpath_overrides_runpath=unknown 11105version_type=none 11106dynamic_linker="$host_os ld.so" 11107sys_lib_dlsearch_path_spec="/lib /usr/lib" 11108need_lib_prefix=unknown 11109hardcode_into_libs=no 11110 11111# when you set need_version to no, make sure it does not cause -set_version 11112# flags to be left without arguments 11113need_version=unknown 11114 11115 11116 11117case $host_os in 11118aix3*) 11119 version_type=linux # correct to gnu/linux during the next big refactor 11120 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11121 shlibpath_var=LIBPATH 11122 11123 # AIX 3 has no versioning support, so we append a major version to the name. 11124 soname_spec='$libname$release$shared_ext$major' 11125 ;; 11126 11127aix[4-9]*) 11128 version_type=linux # correct to gnu/linux during the next big refactor 11129 need_lib_prefix=no 11130 need_version=no 11131 hardcode_into_libs=yes 11132 if test ia64 = "$host_cpu"; then 11133 # AIX 5 supports IA64 11134 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11135 shlibpath_var=LD_LIBRARY_PATH 11136 else 11137 # With GCC up to 2.95.x, collect2 would create an import file 11138 # for dependence libraries. The import file would start with 11139 # the line '#! .'. This would cause the generated library to 11140 # depend on '.', always an invalid library. This was fixed in 11141 # development snapshots of GCC prior to 3.0. 11142 case $host_os in 11143 aix4 | aix4.[01] | aix4.[01].*) 11144 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11145 echo ' yes ' 11146 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11147 : 11148 else 11149 can_build_shared=no 11150 fi 11151 ;; 11152 esac 11153 # Using Import Files as archive members, it is possible to support 11154 # filename-based versioning of shared library archives on AIX. While 11155 # this would work for both with and without runtime linking, it will 11156 # prevent static linking of such archives. So we do filename-based 11157 # shared library versioning with .so extension only, which is used 11158 # when both runtime linking and shared linking is enabled. 11159 # Unfortunately, runtime linking may impact performance, so we do 11160 # not want this to be the default eventually. Also, we use the 11161 # versioned .so libs for executables only if there is the -brtl 11162 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11163 # To allow for filename-based versioning support, we need to create 11164 # libNAME.so.V as an archive file, containing: 11165 # *) an Import File, referring to the versioned filename of the 11166 # archive as well as the shared archive member, telling the 11167 # bitwidth (32 or 64) of that shared object, and providing the 11168 # list of exported symbols of that shared object, eventually 11169 # decorated with the 'weak' keyword 11170 # *) the shared object with the F_LOADONLY flag set, to really avoid 11171 # it being seen by the linker. 11172 # At run time we better use the real file rather than another symlink, 11173 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11174 11175 case $with_aix_soname,$aix_use_runtimelinking in 11176 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11177 # soname into executable. Probably we can add versioning support to 11178 # collect2, so additional links can be useful in future. 11179 aix,yes) # traditional libtool 11180 dynamic_linker='AIX unversionable lib.so' 11181 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11182 # instead of lib<name>.a to let people know that these are not 11183 # typical AIX shared libraries. 11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11185 ;; 11186 aix,no) # traditional AIX only 11187 dynamic_linker='AIX lib.a(lib.so.V)' 11188 # We preserve .a as extension for shared libraries through AIX4.2 11189 # and later when we are not doing run time linking. 11190 library_names_spec='$libname$release.a $libname.a' 11191 soname_spec='$libname$release$shared_ext$major' 11192 ;; 11193 svr4,*) # full svr4 only 11194 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11195 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11196 # We do not specify a path in Import Files, so LIBPATH fires. 11197 shlibpath_overrides_runpath=yes 11198 ;; 11199 *,yes) # both, prefer svr4 11200 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11201 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11202 # unpreferred sharedlib libNAME.a needs extra handling 11203 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11204 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11205 # We do not specify a path in Import Files, so LIBPATH fires. 11206 shlibpath_overrides_runpath=yes 11207 ;; 11208 *,no) # both, prefer aix 11209 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11210 library_names_spec='$libname$release.a $libname.a' 11211 soname_spec='$libname$release$shared_ext$major' 11212 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11213 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11214 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11215 ;; 11216 esac 11217 shlibpath_var=LIBPATH 11218 fi 11219 ;; 11220 11221amigaos*) 11222 case $host_cpu in 11223 powerpc) 11224 # Since July 2007 AmigaOS4 officially supports .so libraries. 11225 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11227 ;; 11228 m68k) 11229 library_names_spec='$libname.ixlibrary $libname.a' 11230 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11231 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11232 ;; 11233 esac 11234 ;; 11235 11236beos*) 11237 library_names_spec='$libname$shared_ext' 11238 dynamic_linker="$host_os ld.so" 11239 shlibpath_var=LIBRARY_PATH 11240 ;; 11241 11242bsdi[45]*) 11243 version_type=linux # correct to gnu/linux during the next big refactor 11244 need_version=no 11245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11246 soname_spec='$libname$release$shared_ext$major' 11247 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11248 shlibpath_var=LD_LIBRARY_PATH 11249 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11250 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11251 # the default ld.so.conf also contains /usr/contrib/lib and 11252 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11253 # libtool to hard-code these into programs 11254 ;; 11255 11256cygwin* | mingw* | pw32* | cegcc*) 11257 version_type=windows 11258 shrext_cmds=.dll 11259 need_version=no 11260 need_lib_prefix=no 11261 11262 case $GCC,$cc_basename in 11263 yes,*) 11264 # gcc 11265 library_names_spec='$libname.dll.a' 11266 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11267 postinstall_cmds='base_file=`basename \$file`~ 11268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11269 dldir=$destdir/`dirname \$dlpath`~ 11270 test -d \$dldir || mkdir -p \$dldir~ 11271 $install_prog $dir/$dlname \$dldir/$dlname~ 11272 chmod a+x \$dldir/$dlname~ 11273 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11274 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11275 fi' 11276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11277 dlpath=$dir/\$dldll~ 11278 $RM \$dlpath' 11279 shlibpath_overrides_runpath=yes 11280 11281 case $host_os in 11282 cygwin*) 11283 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11284 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11285 11286 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11287 ;; 11288 mingw* | cegcc*) 11289 # MinGW DLLs use traditional 'lib' prefix 11290 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11291 ;; 11292 pw32*) 11293 # pw32 DLLs use 'pw' prefix rather than 'lib' 11294 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11295 ;; 11296 esac 11297 dynamic_linker='Win32 ld.exe' 11298 ;; 11299 11300 *,cl*) 11301 # Native MSVC 11302 libname_spec='$name' 11303 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11304 library_names_spec='$libname.dll.lib' 11305 11306 case $build_os in 11307 mingw*) 11308 sys_lib_search_path_spec= 11309 lt_save_ifs=$IFS 11310 IFS=';' 11311 for lt_path in $LIB 11312 do 11313 IFS=$lt_save_ifs 11314 # Let DOS variable expansion print the short 8.3 style file name. 11315 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11316 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11317 done 11318 IFS=$lt_save_ifs 11319 # Convert to MSYS style. 11320 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11321 ;; 11322 cygwin*) 11323 # Convert to unix form, then to dos form, then back to unix form 11324 # but this time dos style (no spaces!) so that the unix form looks 11325 # like /cygdrive/c/PROGRA~1:/cygdr... 11326 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11327 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11328 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11329 ;; 11330 *) 11331 sys_lib_search_path_spec=$LIB 11332 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11333 # It is most probably a Windows format PATH. 11334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11335 else 11336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11337 fi 11338 # FIXME: find the short name or the path components, as spaces are 11339 # common. (e.g. "Program Files" -> "PROGRA~1") 11340 ;; 11341 esac 11342 11343 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11344 postinstall_cmds='base_file=`basename \$file`~ 11345 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11346 dldir=$destdir/`dirname \$dlpath`~ 11347 test -d \$dldir || mkdir -p \$dldir~ 11348 $install_prog $dir/$dlname \$dldir/$dlname' 11349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11350 dlpath=$dir/\$dldll~ 11351 $RM \$dlpath' 11352 shlibpath_overrides_runpath=yes 11353 dynamic_linker='Win32 link.exe' 11354 ;; 11355 11356 *) 11357 # Assume MSVC wrapper 11358 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11359 dynamic_linker='Win32 ld.exe' 11360 ;; 11361 esac 11362 # FIXME: first we should search . and the directory the executable is in 11363 shlibpath_var=PATH 11364 ;; 11365 11366darwin* | rhapsody*) 11367 dynamic_linker="$host_os dyld" 11368 version_type=darwin 11369 need_lib_prefix=no 11370 need_version=no 11371 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11372 soname_spec='$libname$release$major$shared_ext' 11373 shlibpath_overrides_runpath=yes 11374 shlibpath_var=DYLD_LIBRARY_PATH 11375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11376 11377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11378 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11379 ;; 11380 11381dgux*) 11382 version_type=linux # correct to gnu/linux during the next big refactor 11383 need_lib_prefix=no 11384 need_version=no 11385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11386 soname_spec='$libname$release$shared_ext$major' 11387 shlibpath_var=LD_LIBRARY_PATH 11388 ;; 11389 11390freebsd* | dragonfly*) 11391 # DragonFly does not have aout. When/if they implement a new 11392 # versioning mechanism, adjust this. 11393 if test -x /usr/bin/objformat; then 11394 objformat=`/usr/bin/objformat` 11395 else 11396 case $host_os in 11397 freebsd[23].*) objformat=aout ;; 11398 *) objformat=elf ;; 11399 esac 11400 fi 11401 version_type=freebsd-$objformat 11402 case $version_type in 11403 freebsd-elf*) 11404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11405 soname_spec='$libname$release$shared_ext$major' 11406 need_version=no 11407 need_lib_prefix=no 11408 ;; 11409 freebsd-*) 11410 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11411 need_version=yes 11412 ;; 11413 esac 11414 shlibpath_var=LD_LIBRARY_PATH 11415 case $host_os in 11416 freebsd2.*) 11417 shlibpath_overrides_runpath=yes 11418 ;; 11419 freebsd3.[01]* | freebsdelf3.[01]*) 11420 shlibpath_overrides_runpath=yes 11421 hardcode_into_libs=yes 11422 ;; 11423 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11424 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11425 shlibpath_overrides_runpath=no 11426 hardcode_into_libs=yes 11427 ;; 11428 *) # from 4.6 on, and DragonFly 11429 shlibpath_overrides_runpath=yes 11430 hardcode_into_libs=yes 11431 ;; 11432 esac 11433 ;; 11434 11435haiku*) 11436 version_type=linux # correct to gnu/linux during the next big refactor 11437 need_lib_prefix=no 11438 need_version=no 11439 dynamic_linker="$host_os runtime_loader" 11440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11441 soname_spec='$libname$release$shared_ext$major' 11442 shlibpath_var=LIBRARY_PATH 11443 shlibpath_overrides_runpath=no 11444 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11445 hardcode_into_libs=yes 11446 ;; 11447 11448hpux9* | hpux10* | hpux11*) 11449 # Give a soname corresponding to the major version so that dld.sl refuses to 11450 # link against other versions. 11451 version_type=sunos 11452 need_lib_prefix=no 11453 need_version=no 11454 case $host_cpu in 11455 ia64*) 11456 shrext_cmds='.so' 11457 hardcode_into_libs=yes 11458 dynamic_linker="$host_os dld.so" 11459 shlibpath_var=LD_LIBRARY_PATH 11460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11462 soname_spec='$libname$release$shared_ext$major' 11463 if test 32 = "$HPUX_IA64_MODE"; then 11464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11465 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11466 else 11467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11468 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11469 fi 11470 ;; 11471 hppa*64*) 11472 shrext_cmds='.sl' 11473 hardcode_into_libs=yes 11474 dynamic_linker="$host_os dld.sl" 11475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11478 soname_spec='$libname$release$shared_ext$major' 11479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11481 ;; 11482 *) 11483 shrext_cmds='.sl' 11484 dynamic_linker="$host_os dld.sl" 11485 shlibpath_var=SHLIB_PATH 11486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11488 soname_spec='$libname$release$shared_ext$major' 11489 ;; 11490 esac 11491 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11492 postinstall_cmds='chmod 555 $lib' 11493 # or fails outright, so override atomically: 11494 install_override_mode=555 11495 ;; 11496 11497interix[3-9]*) 11498 version_type=linux # correct to gnu/linux during the next big refactor 11499 need_lib_prefix=no 11500 need_version=no 11501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11502 soname_spec='$libname$release$shared_ext$major' 11503 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11504 shlibpath_var=LD_LIBRARY_PATH 11505 shlibpath_overrides_runpath=no 11506 hardcode_into_libs=yes 11507 ;; 11508 11509irix5* | irix6* | nonstopux*) 11510 case $host_os in 11511 nonstopux*) version_type=nonstopux ;; 11512 *) 11513 if test yes = "$lt_cv_prog_gnu_ld"; then 11514 version_type=linux # correct to gnu/linux during the next big refactor 11515 else 11516 version_type=irix 11517 fi ;; 11518 esac 11519 need_lib_prefix=no 11520 need_version=no 11521 soname_spec='$libname$release$shared_ext$major' 11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11523 case $host_os in 11524 irix5* | nonstopux*) 11525 libsuff= shlibsuff= 11526 ;; 11527 *) 11528 case $LD in # libtool.m4 will add one of these switches to LD 11529 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11530 libsuff= shlibsuff= libmagic=32-bit;; 11531 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11532 libsuff=32 shlibsuff=N32 libmagic=N32;; 11533 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11534 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11535 *) libsuff= shlibsuff= libmagic=never-match;; 11536 esac 11537 ;; 11538 esac 11539 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11540 shlibpath_overrides_runpath=no 11541 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11542 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11543 hardcode_into_libs=yes 11544 ;; 11545 11546# No shared lib support for Linux oldld, aout, or coff. 11547linux*oldld* | linux*aout* | linux*coff*) 11548 dynamic_linker=no 11549 ;; 11550 11551linux*android*) 11552 version_type=none # Android doesn't support versioned libraries. 11553 need_lib_prefix=no 11554 need_version=no 11555 library_names_spec='$libname$release$shared_ext' 11556 soname_spec='$libname$release$shared_ext' 11557 finish_cmds= 11558 shlibpath_var=LD_LIBRARY_PATH 11559 shlibpath_overrides_runpath=yes 11560 11561 # This implies no fast_install, which is unacceptable. 11562 # Some rework will be needed to allow for fast_install 11563 # before this can be enabled. 11564 hardcode_into_libs=yes 11565 11566 dynamic_linker='Android linker' 11567 # Don't embed -rpath directories since the linker doesn't support them. 11568 hardcode_libdir_flag_spec='-L$libdir' 11569 ;; 11570 11571# This must be glibc/ELF. 11572linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11573 version_type=linux # correct to gnu/linux during the next big refactor 11574 need_lib_prefix=no 11575 need_version=no 11576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11577 soname_spec='$libname$release$shared_ext$major' 11578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11579 shlibpath_var=LD_LIBRARY_PATH 11580 shlibpath_overrides_runpath=no 11581 11582 # Some binutils ld are patched to set DT_RUNPATH 11583 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11584 $as_echo_n "(cached) " >&6 11585else 11586 lt_cv_shlibpath_overrides_runpath=no 11587 save_LDFLAGS=$LDFLAGS 11588 save_libdir=$libdir 11589 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11590 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11592/* end confdefs.h. */ 11593 11594int 11595main () 11596{ 11597 11598 ; 11599 return 0; 11600} 11601_ACEOF 11602if ac_fn_c_try_link "$LINENO"; then : 11603 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11604 lt_cv_shlibpath_overrides_runpath=yes 11605fi 11606fi 11607rm -f core conftest.err conftest.$ac_objext \ 11608 conftest$ac_exeext conftest.$ac_ext 11609 LDFLAGS=$save_LDFLAGS 11610 libdir=$save_libdir 11611 11612fi 11613 11614 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11615 11616 # This implies no fast_install, which is unacceptable. 11617 # Some rework will be needed to allow for fast_install 11618 # before this can be enabled. 11619 hardcode_into_libs=yes 11620 11621 # Ideally, we could use ldconfig to report *all* directores which are 11622 # searched for libraries, however this is still not possible. Aside from not 11623 # being certain /sbin/ldconfig is available, command 11624 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11625 # even though it is searched at run-time. Try to do the best guess by 11626 # appending ld.so.conf contents (and includes) to the search path. 11627 if test -f /etc/ld.so.conf; then 11628 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11629 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11630 fi 11631 11632 # We used to test for /lib/ld.so.1 and disable shared libraries on 11633 # powerpc, because MkLinux only supported shared libraries with the 11634 # GNU dynamic linker. Since this was broken with cross compilers, 11635 # most powerpc-linux boxes support dynamic linking these days and 11636 # people can always --disable-shared, the test was removed, and we 11637 # assume the GNU/Linux dynamic linker is in use. 11638 dynamic_linker='GNU/Linux ld.so' 11639 ;; 11640 11641netbsd*) 11642 version_type=sunos 11643 need_lib_prefix=no 11644 need_version=no 11645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11648 dynamic_linker='NetBSD (a.out) ld.so' 11649 else 11650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11651 soname_spec='$libname$release$shared_ext$major' 11652 dynamic_linker='NetBSD ld.elf_so' 11653 fi 11654 shlibpath_var=LD_LIBRARY_PATH 11655 shlibpath_overrides_runpath=yes 11656 hardcode_into_libs=yes 11657 ;; 11658 11659newsos6) 11660 version_type=linux # correct to gnu/linux during the next big refactor 11661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11662 shlibpath_var=LD_LIBRARY_PATH 11663 shlibpath_overrides_runpath=yes 11664 ;; 11665 11666*nto* | *qnx*) 11667 version_type=qnx 11668 need_lib_prefix=no 11669 need_version=no 11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11671 soname_spec='$libname$release$shared_ext$major' 11672 shlibpath_var=LD_LIBRARY_PATH 11673 shlibpath_overrides_runpath=no 11674 hardcode_into_libs=yes 11675 dynamic_linker='ldqnx.so' 11676 ;; 11677 11678openbsd* | bitrig*) 11679 version_type=sunos 11680 sys_lib_dlsearch_path_spec=/usr/lib 11681 need_lib_prefix=no 11682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11683 need_version=no 11684 else 11685 need_version=yes 11686 fi 11687 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11689 shlibpath_var=LD_LIBRARY_PATH 11690 shlibpath_overrides_runpath=yes 11691 ;; 11692 11693os2*) 11694 libname_spec='$name' 11695 version_type=windows 11696 shrext_cmds=.dll 11697 need_version=no 11698 need_lib_prefix=no 11699 # OS/2 can only load a DLL with a base name of 8 characters or less. 11700 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11701 v=$($ECHO $release$versuffix | tr -d .-); 11702 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11703 $ECHO $n$v`$shared_ext' 11704 library_names_spec='${libname}_dll.$libext' 11705 dynamic_linker='OS/2 ld.exe' 11706 shlibpath_var=BEGINLIBPATH 11707 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11709 postinstall_cmds='base_file=`basename \$file`~ 11710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11711 dldir=$destdir/`dirname \$dlpath`~ 11712 test -d \$dldir || mkdir -p \$dldir~ 11713 $install_prog $dir/$dlname \$dldir/$dlname~ 11714 chmod a+x \$dldir/$dlname~ 11715 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11716 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11717 fi' 11718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11719 dlpath=$dir/\$dldll~ 11720 $RM \$dlpath' 11721 ;; 11722 11723osf3* | osf4* | osf5*) 11724 version_type=osf 11725 need_lib_prefix=no 11726 need_version=no 11727 soname_spec='$libname$release$shared_ext$major' 11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11729 shlibpath_var=LD_LIBRARY_PATH 11730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11732 ;; 11733 11734rdos*) 11735 dynamic_linker=no 11736 ;; 11737 11738solaris*) 11739 version_type=linux # correct to gnu/linux during the next big refactor 11740 need_lib_prefix=no 11741 need_version=no 11742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11743 soname_spec='$libname$release$shared_ext$major' 11744 shlibpath_var=LD_LIBRARY_PATH 11745 shlibpath_overrides_runpath=yes 11746 hardcode_into_libs=yes 11747 # ldd complains unless libraries are executable 11748 postinstall_cmds='chmod +x $lib' 11749 ;; 11750 11751sunos4*) 11752 version_type=sunos 11753 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11755 shlibpath_var=LD_LIBRARY_PATH 11756 shlibpath_overrides_runpath=yes 11757 if test yes = "$with_gnu_ld"; then 11758 need_lib_prefix=no 11759 fi 11760 need_version=yes 11761 ;; 11762 11763sysv4 | sysv4.3*) 11764 version_type=linux # correct to gnu/linux during the next big refactor 11765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11766 soname_spec='$libname$release$shared_ext$major' 11767 shlibpath_var=LD_LIBRARY_PATH 11768 case $host_vendor in 11769 sni) 11770 shlibpath_overrides_runpath=no 11771 need_lib_prefix=no 11772 runpath_var=LD_RUN_PATH 11773 ;; 11774 siemens) 11775 need_lib_prefix=no 11776 ;; 11777 motorola) 11778 need_lib_prefix=no 11779 need_version=no 11780 shlibpath_overrides_runpath=no 11781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11782 ;; 11783 esac 11784 ;; 11785 11786sysv4*MP*) 11787 if test -d /usr/nec; then 11788 version_type=linux # correct to gnu/linux during the next big refactor 11789 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11790 soname_spec='$libname$shared_ext.$major' 11791 shlibpath_var=LD_LIBRARY_PATH 11792 fi 11793 ;; 11794 11795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11796 version_type=sco 11797 need_lib_prefix=no 11798 need_version=no 11799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11800 soname_spec='$libname$release$shared_ext$major' 11801 shlibpath_var=LD_LIBRARY_PATH 11802 shlibpath_overrides_runpath=yes 11803 hardcode_into_libs=yes 11804 if test yes = "$with_gnu_ld"; then 11805 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11806 else 11807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11808 case $host_os in 11809 sco3.2v5*) 11810 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11811 ;; 11812 esac 11813 fi 11814 sys_lib_dlsearch_path_spec='/usr/lib' 11815 ;; 11816 11817tpf*) 11818 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11819 version_type=linux # correct to gnu/linux during the next big refactor 11820 need_lib_prefix=no 11821 need_version=no 11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11823 shlibpath_var=LD_LIBRARY_PATH 11824 shlibpath_overrides_runpath=no 11825 hardcode_into_libs=yes 11826 ;; 11827 11828uts4*) 11829 version_type=linux # correct to gnu/linux during the next big refactor 11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11831 soname_spec='$libname$release$shared_ext$major' 11832 shlibpath_var=LD_LIBRARY_PATH 11833 ;; 11834 11835*) 11836 dynamic_linker=no 11837 ;; 11838esac 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11840$as_echo "$dynamic_linker" >&6; } 11841test no = "$dynamic_linker" && can_build_shared=no 11842 11843variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11844if test yes = "$GCC"; then 11845 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11846fi 11847 11848if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11849 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11850fi 11851 11852if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11853 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11854fi 11855 11856# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11857configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11858 11859# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11860func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11861 11862# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11863configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11962$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11963hardcode_action= 11964if test -n "$hardcode_libdir_flag_spec" || 11965 test -n "$runpath_var" || 11966 test yes = "$hardcode_automatic"; then 11967 11968 # We can hardcode non-existent directories. 11969 if test no != "$hardcode_direct" && 11970 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11971 # have to relink, otherwise we might link with an installed library 11972 # when we should be linking with a yet-to-be-installed one 11973 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11974 test no != "$hardcode_minus_L"; then 11975 # Linking always hardcodes the temporary library directory. 11976 hardcode_action=relink 11977 else 11978 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11979 hardcode_action=immediate 11980 fi 11981else 11982 # We cannot hardcode anything, or else we can only hardcode existing 11983 # directories. 11984 hardcode_action=unsupported 11985fi 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11987$as_echo "$hardcode_action" >&6; } 11988 11989if test relink = "$hardcode_action" || 11990 test yes = "$inherit_rpath"; then 11991 # Fast installation is not supported 11992 enable_fast_install=no 11993elif test yes = "$shlibpath_overrides_runpath" || 11994 test no = "$enable_shared"; then 11995 # Fast installation is not necessary 11996 enable_fast_install=needless 11997fi 11998 11999 12000 12001 12002 12003 12004 if test yes != "$enable_dlopen"; then 12005 enable_dlopen=unknown 12006 enable_dlopen_self=unknown 12007 enable_dlopen_self_static=unknown 12008else 12009 lt_cv_dlopen=no 12010 lt_cv_dlopen_libs= 12011 12012 case $host_os in 12013 beos*) 12014 lt_cv_dlopen=load_add_on 12015 lt_cv_dlopen_libs= 12016 lt_cv_dlopen_self=yes 12017 ;; 12018 12019 mingw* | pw32* | cegcc*) 12020 lt_cv_dlopen=LoadLibrary 12021 lt_cv_dlopen_libs= 12022 ;; 12023 12024 cygwin*) 12025 lt_cv_dlopen=dlopen 12026 lt_cv_dlopen_libs= 12027 ;; 12028 12029 darwin*) 12030 # if libdl is installed we need to link against it 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12032$as_echo_n "checking for dlopen in -ldl... " >&6; } 12033if ${ac_cv_lib_dl_dlopen+:} false; then : 12034 $as_echo_n "(cached) " >&6 12035else 12036 ac_check_lib_save_LIBS=$LIBS 12037LIBS="-ldl $LIBS" 12038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12039/* end confdefs.h. */ 12040 12041/* Override any GCC internal prototype to avoid an error. 12042 Use char because int might match the return type of a GCC 12043 builtin and then its argument prototype would still apply. */ 12044#ifdef __cplusplus 12045extern "C" 12046#endif 12047char dlopen (); 12048int 12049main () 12050{ 12051return dlopen (); 12052 ; 12053 return 0; 12054} 12055_ACEOF 12056if ac_fn_c_try_link "$LINENO"; then : 12057 ac_cv_lib_dl_dlopen=yes 12058else 12059 ac_cv_lib_dl_dlopen=no 12060fi 12061rm -f core conftest.err conftest.$ac_objext \ 12062 conftest$ac_exeext conftest.$ac_ext 12063LIBS=$ac_check_lib_save_LIBS 12064fi 12065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12066$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12067if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12068 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12069else 12070 12071 lt_cv_dlopen=dyld 12072 lt_cv_dlopen_libs= 12073 lt_cv_dlopen_self=yes 12074 12075fi 12076 12077 ;; 12078 12079 tpf*) 12080 # Don't try to run any link tests for TPF. We know it's impossible 12081 # because TPF is a cross-compiler, and we know how we open DSOs. 12082 lt_cv_dlopen=dlopen 12083 lt_cv_dlopen_libs= 12084 lt_cv_dlopen_self=no 12085 ;; 12086 12087 *) 12088 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12089if test "x$ac_cv_func_shl_load" = xyes; then : 12090 lt_cv_dlopen=shl_load 12091else 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12093$as_echo_n "checking for shl_load in -ldld... " >&6; } 12094if ${ac_cv_lib_dld_shl_load+:} false; then : 12095 $as_echo_n "(cached) " >&6 12096else 12097 ac_check_lib_save_LIBS=$LIBS 12098LIBS="-ldld $LIBS" 12099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12100/* end confdefs.h. */ 12101 12102/* Override any GCC internal prototype to avoid an error. 12103 Use char because int might match the return type of a GCC 12104 builtin and then its argument prototype would still apply. */ 12105#ifdef __cplusplus 12106extern "C" 12107#endif 12108char shl_load (); 12109int 12110main () 12111{ 12112return shl_load (); 12113 ; 12114 return 0; 12115} 12116_ACEOF 12117if ac_fn_c_try_link "$LINENO"; then : 12118 ac_cv_lib_dld_shl_load=yes 12119else 12120 ac_cv_lib_dld_shl_load=no 12121fi 12122rm -f core conftest.err conftest.$ac_objext \ 12123 conftest$ac_exeext conftest.$ac_ext 12124LIBS=$ac_check_lib_save_LIBS 12125fi 12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12127$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12128if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12129 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12130else 12131 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12132if test "x$ac_cv_func_dlopen" = xyes; then : 12133 lt_cv_dlopen=dlopen 12134else 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12136$as_echo_n "checking for dlopen in -ldl... " >&6; } 12137if ${ac_cv_lib_dl_dlopen+:} false; then : 12138 $as_echo_n "(cached) " >&6 12139else 12140 ac_check_lib_save_LIBS=$LIBS 12141LIBS="-ldl $LIBS" 12142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12143/* end confdefs.h. */ 12144 12145/* Override any GCC internal prototype to avoid an error. 12146 Use char because int might match the return type of a GCC 12147 builtin and then its argument prototype would still apply. */ 12148#ifdef __cplusplus 12149extern "C" 12150#endif 12151char dlopen (); 12152int 12153main () 12154{ 12155return dlopen (); 12156 ; 12157 return 0; 12158} 12159_ACEOF 12160if ac_fn_c_try_link "$LINENO"; then : 12161 ac_cv_lib_dl_dlopen=yes 12162else 12163 ac_cv_lib_dl_dlopen=no 12164fi 12165rm -f core conftest.err conftest.$ac_objext \ 12166 conftest$ac_exeext conftest.$ac_ext 12167LIBS=$ac_check_lib_save_LIBS 12168fi 12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12170$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12171if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12172 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12173else 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12175$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12176if ${ac_cv_lib_svld_dlopen+:} false; then : 12177 $as_echo_n "(cached) " >&6 12178else 12179 ac_check_lib_save_LIBS=$LIBS 12180LIBS="-lsvld $LIBS" 12181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12182/* end confdefs.h. */ 12183 12184/* Override any GCC internal prototype to avoid an error. 12185 Use char because int might match the return type of a GCC 12186 builtin and then its argument prototype would still apply. */ 12187#ifdef __cplusplus 12188extern "C" 12189#endif 12190char dlopen (); 12191int 12192main () 12193{ 12194return dlopen (); 12195 ; 12196 return 0; 12197} 12198_ACEOF 12199if ac_fn_c_try_link "$LINENO"; then : 12200 ac_cv_lib_svld_dlopen=yes 12201else 12202 ac_cv_lib_svld_dlopen=no 12203fi 12204rm -f core conftest.err conftest.$ac_objext \ 12205 conftest$ac_exeext conftest.$ac_ext 12206LIBS=$ac_check_lib_save_LIBS 12207fi 12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12209$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12210if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12211 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12212else 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12214$as_echo_n "checking for dld_link in -ldld... " >&6; } 12215if ${ac_cv_lib_dld_dld_link+:} false; then : 12216 $as_echo_n "(cached) " >&6 12217else 12218 ac_check_lib_save_LIBS=$LIBS 12219LIBS="-ldld $LIBS" 12220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12221/* end confdefs.h. */ 12222 12223/* Override any GCC internal prototype to avoid an error. 12224 Use char because int might match the return type of a GCC 12225 builtin and then its argument prototype would still apply. */ 12226#ifdef __cplusplus 12227extern "C" 12228#endif 12229char dld_link (); 12230int 12231main () 12232{ 12233return dld_link (); 12234 ; 12235 return 0; 12236} 12237_ACEOF 12238if ac_fn_c_try_link "$LINENO"; then : 12239 ac_cv_lib_dld_dld_link=yes 12240else 12241 ac_cv_lib_dld_dld_link=no 12242fi 12243rm -f core conftest.err conftest.$ac_objext \ 12244 conftest$ac_exeext conftest.$ac_ext 12245LIBS=$ac_check_lib_save_LIBS 12246fi 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12248$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12249if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12250 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12251fi 12252 12253 12254fi 12255 12256 12257fi 12258 12259 12260fi 12261 12262 12263fi 12264 12265 12266fi 12267 12268 ;; 12269 esac 12270 12271 if test no = "$lt_cv_dlopen"; then 12272 enable_dlopen=no 12273 else 12274 enable_dlopen=yes 12275 fi 12276 12277 case $lt_cv_dlopen in 12278 dlopen) 12279 save_CPPFLAGS=$CPPFLAGS 12280 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12281 12282 save_LDFLAGS=$LDFLAGS 12283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12284 12285 save_LIBS=$LIBS 12286 LIBS="$lt_cv_dlopen_libs $LIBS" 12287 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12289$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12290if ${lt_cv_dlopen_self+:} false; then : 12291 $as_echo_n "(cached) " >&6 12292else 12293 if test yes = "$cross_compiling"; then : 12294 lt_cv_dlopen_self=cross 12295else 12296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12297 lt_status=$lt_dlunknown 12298 cat > conftest.$ac_ext <<_LT_EOF 12299#line $LINENO "configure" 12300#include "confdefs.h" 12301 12302#if HAVE_DLFCN_H 12303#include <dlfcn.h> 12304#endif 12305 12306#include <stdio.h> 12307 12308#ifdef RTLD_GLOBAL 12309# define LT_DLGLOBAL RTLD_GLOBAL 12310#else 12311# ifdef DL_GLOBAL 12312# define LT_DLGLOBAL DL_GLOBAL 12313# else 12314# define LT_DLGLOBAL 0 12315# endif 12316#endif 12317 12318/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12319 find out it does not work in some platform. */ 12320#ifndef LT_DLLAZY_OR_NOW 12321# ifdef RTLD_LAZY 12322# define LT_DLLAZY_OR_NOW RTLD_LAZY 12323# else 12324# ifdef DL_LAZY 12325# define LT_DLLAZY_OR_NOW DL_LAZY 12326# else 12327# ifdef RTLD_NOW 12328# define LT_DLLAZY_OR_NOW RTLD_NOW 12329# else 12330# ifdef DL_NOW 12331# define LT_DLLAZY_OR_NOW DL_NOW 12332# else 12333# define LT_DLLAZY_OR_NOW 0 12334# endif 12335# endif 12336# endif 12337# endif 12338#endif 12339 12340/* When -fvisibility=hidden is used, assume the code has been annotated 12341 correspondingly for the symbols needed. */ 12342#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12343int fnord () __attribute__((visibility("default"))); 12344#endif 12345 12346int fnord () { return 42; } 12347int main () 12348{ 12349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12350 int status = $lt_dlunknown; 12351 12352 if (self) 12353 { 12354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12355 else 12356 { 12357 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12358 else puts (dlerror ()); 12359 } 12360 /* dlclose (self); */ 12361 } 12362 else 12363 puts (dlerror ()); 12364 12365 return status; 12366} 12367_LT_EOF 12368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12369 (eval $ac_link) 2>&5 12370 ac_status=$? 12371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12372 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12373 (./conftest; exit; ) >&5 2>/dev/null 12374 lt_status=$? 12375 case x$lt_status in 12376 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12377 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12378 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12379 esac 12380 else : 12381 # compilation failed 12382 lt_cv_dlopen_self=no 12383 fi 12384fi 12385rm -fr conftest* 12386 12387 12388fi 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12390$as_echo "$lt_cv_dlopen_self" >&6; } 12391 12392 if test yes = "$lt_cv_dlopen_self"; then 12393 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12395$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12396if ${lt_cv_dlopen_self_static+:} false; then : 12397 $as_echo_n "(cached) " >&6 12398else 12399 if test yes = "$cross_compiling"; then : 12400 lt_cv_dlopen_self_static=cross 12401else 12402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12403 lt_status=$lt_dlunknown 12404 cat > conftest.$ac_ext <<_LT_EOF 12405#line $LINENO "configure" 12406#include "confdefs.h" 12407 12408#if HAVE_DLFCN_H 12409#include <dlfcn.h> 12410#endif 12411 12412#include <stdio.h> 12413 12414#ifdef RTLD_GLOBAL 12415# define LT_DLGLOBAL RTLD_GLOBAL 12416#else 12417# ifdef DL_GLOBAL 12418# define LT_DLGLOBAL DL_GLOBAL 12419# else 12420# define LT_DLGLOBAL 0 12421# endif 12422#endif 12423 12424/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12425 find out it does not work in some platform. */ 12426#ifndef LT_DLLAZY_OR_NOW 12427# ifdef RTLD_LAZY 12428# define LT_DLLAZY_OR_NOW RTLD_LAZY 12429# else 12430# ifdef DL_LAZY 12431# define LT_DLLAZY_OR_NOW DL_LAZY 12432# else 12433# ifdef RTLD_NOW 12434# define LT_DLLAZY_OR_NOW RTLD_NOW 12435# else 12436# ifdef DL_NOW 12437# define LT_DLLAZY_OR_NOW DL_NOW 12438# else 12439# define LT_DLLAZY_OR_NOW 0 12440# endif 12441# endif 12442# endif 12443# endif 12444#endif 12445 12446/* When -fvisibility=hidden is used, assume the code has been annotated 12447 correspondingly for the symbols needed. */ 12448#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12449int fnord () __attribute__((visibility("default"))); 12450#endif 12451 12452int fnord () { return 42; } 12453int main () 12454{ 12455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12456 int status = $lt_dlunknown; 12457 12458 if (self) 12459 { 12460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12461 else 12462 { 12463 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12464 else puts (dlerror ()); 12465 } 12466 /* dlclose (self); */ 12467 } 12468 else 12469 puts (dlerror ()); 12470 12471 return status; 12472} 12473_LT_EOF 12474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12475 (eval $ac_link) 2>&5 12476 ac_status=$? 12477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12478 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12479 (./conftest; exit; ) >&5 2>/dev/null 12480 lt_status=$? 12481 case x$lt_status in 12482 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12483 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12484 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12485 esac 12486 else : 12487 # compilation failed 12488 lt_cv_dlopen_self_static=no 12489 fi 12490fi 12491rm -fr conftest* 12492 12493 12494fi 12495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12496$as_echo "$lt_cv_dlopen_self_static" >&6; } 12497 fi 12498 12499 CPPFLAGS=$save_CPPFLAGS 12500 LDFLAGS=$save_LDFLAGS 12501 LIBS=$save_LIBS 12502 ;; 12503 esac 12504 12505 case $lt_cv_dlopen_self in 12506 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12507 *) enable_dlopen_self=unknown ;; 12508 esac 12509 12510 case $lt_cv_dlopen_self_static in 12511 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12512 *) enable_dlopen_self_static=unknown ;; 12513 esac 12514fi 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532striplib= 12533old_striplib= 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12535$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12536if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12537 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12538 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12540$as_echo "yes" >&6; } 12541else 12542# FIXME - insert some real tests, host_os isn't really good enough 12543 case $host_os in 12544 darwin*) 12545 if test -n "$STRIP"; then 12546 striplib="$STRIP -x" 12547 old_striplib="$STRIP -S" 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12549$as_echo "yes" >&6; } 12550 else 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12552$as_echo "no" >&6; } 12553 fi 12554 ;; 12555 *) 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12557$as_echo "no" >&6; } 12558 ;; 12559 esac 12560fi 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 # Report what library types will actually be built 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12575$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12577$as_echo "$can_build_shared" >&6; } 12578 12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12580$as_echo_n "checking whether to build shared libraries... " >&6; } 12581 test no = "$can_build_shared" && enable_shared=no 12582 12583 # On AIX, shared libraries and static libraries use the same namespace, and 12584 # are all built from PIC. 12585 case $host_os in 12586 aix3*) 12587 test yes = "$enable_shared" && enable_static=no 12588 if test -n "$RANLIB"; then 12589 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12590 postinstall_cmds='$RANLIB $lib' 12591 fi 12592 ;; 12593 12594 aix[4-9]*) 12595 if test ia64 != "$host_cpu"; then 12596 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12597 yes,aix,yes) ;; # shared object as lib.so file only 12598 yes,svr4,*) ;; # shared object as lib.so archive member only 12599 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12600 esac 12601 fi 12602 ;; 12603 esac 12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12605$as_echo "$enable_shared" >&6; } 12606 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12608$as_echo_n "checking whether to build static libraries... " >&6; } 12609 # Make sure either enable_shared or enable_static is yes. 12610 test yes = "$enable_shared" || enable_static=yes 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12612$as_echo "$enable_static" >&6; } 12613 12614 12615 12616 12617fi 12618ac_ext=c 12619ac_cpp='$CPP $CPPFLAGS' 12620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12622ac_compiler_gnu=$ac_cv_c_compiler_gnu 12623 12624CC=$lt_save_CC 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 ac_config_commands="$ac_config_commands libtool" 12641 12642 12643 12644 12645# Only expand once: 12646 12647 12648 12649 12650 12651# Checks for programs. 12652ac_ext=c 12653ac_cpp='$CPP $CPPFLAGS' 12654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12656ac_compiler_gnu=$ac_cv_c_compiler_gnu 12657if test -n "$ac_tool_prefix"; then 12658 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12659set dummy ${ac_tool_prefix}gcc; ac_word=$2 12660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12661$as_echo_n "checking for $ac_word... " >&6; } 12662if ${ac_cv_prog_CC+:} false; then : 12663 $as_echo_n "(cached) " >&6 12664else 12665 if test -n "$CC"; then 12666 ac_cv_prog_CC="$CC" # Let the user override the test. 12667else 12668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12669for as_dir in $PATH 12670do 12671 IFS=$as_save_IFS 12672 test -z "$as_dir" && as_dir=. 12673 for ac_exec_ext in '' $ac_executable_extensions; do 12674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12675 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12677 break 2 12678 fi 12679done 12680 done 12681IFS=$as_save_IFS 12682 12683fi 12684fi 12685CC=$ac_cv_prog_CC 12686if test -n "$CC"; then 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12688$as_echo "$CC" >&6; } 12689else 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12691$as_echo "no" >&6; } 12692fi 12693 12694 12695fi 12696if test -z "$ac_cv_prog_CC"; then 12697 ac_ct_CC=$CC 12698 # Extract the first word of "gcc", so it can be a program name with args. 12699set dummy gcc; ac_word=$2 12700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12701$as_echo_n "checking for $ac_word... " >&6; } 12702if ${ac_cv_prog_ac_ct_CC+:} false; then : 12703 $as_echo_n "(cached) " >&6 12704else 12705 if test -n "$ac_ct_CC"; then 12706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12707else 12708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12709for as_dir in $PATH 12710do 12711 IFS=$as_save_IFS 12712 test -z "$as_dir" && as_dir=. 12713 for ac_exec_ext in '' $ac_executable_extensions; do 12714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12715 ac_cv_prog_ac_ct_CC="gcc" 12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12717 break 2 12718 fi 12719done 12720 done 12721IFS=$as_save_IFS 12722 12723fi 12724fi 12725ac_ct_CC=$ac_cv_prog_ac_ct_CC 12726if test -n "$ac_ct_CC"; then 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12728$as_echo "$ac_ct_CC" >&6; } 12729else 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12731$as_echo "no" >&6; } 12732fi 12733 12734 if test "x$ac_ct_CC" = x; then 12735 CC="" 12736 else 12737 case $cross_compiling:$ac_tool_warned in 12738yes:) 12739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12741ac_tool_warned=yes ;; 12742esac 12743 CC=$ac_ct_CC 12744 fi 12745else 12746 CC="$ac_cv_prog_CC" 12747fi 12748 12749if test -z "$CC"; then 12750 if test -n "$ac_tool_prefix"; then 12751 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12752set dummy ${ac_tool_prefix}cc; ac_word=$2 12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12754$as_echo_n "checking for $ac_word... " >&6; } 12755if ${ac_cv_prog_CC+:} false; then : 12756 $as_echo_n "(cached) " >&6 12757else 12758 if test -n "$CC"; then 12759 ac_cv_prog_CC="$CC" # Let the user override the test. 12760else 12761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12762for as_dir in $PATH 12763do 12764 IFS=$as_save_IFS 12765 test -z "$as_dir" && as_dir=. 12766 for ac_exec_ext in '' $ac_executable_extensions; do 12767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12768 ac_cv_prog_CC="${ac_tool_prefix}cc" 12769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12770 break 2 12771 fi 12772done 12773 done 12774IFS=$as_save_IFS 12775 12776fi 12777fi 12778CC=$ac_cv_prog_CC 12779if test -n "$CC"; then 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12781$as_echo "$CC" >&6; } 12782else 12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12784$as_echo "no" >&6; } 12785fi 12786 12787 12788 fi 12789fi 12790if test -z "$CC"; then 12791 # Extract the first word of "cc", so it can be a program name with args. 12792set dummy cc; ac_word=$2 12793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12794$as_echo_n "checking for $ac_word... " >&6; } 12795if ${ac_cv_prog_CC+:} false; then : 12796 $as_echo_n "(cached) " >&6 12797else 12798 if test -n "$CC"; then 12799 ac_cv_prog_CC="$CC" # Let the user override the test. 12800else 12801 ac_prog_rejected=no 12802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12803for as_dir in $PATH 12804do 12805 IFS=$as_save_IFS 12806 test -z "$as_dir" && as_dir=. 12807 for ac_exec_ext in '' $ac_executable_extensions; do 12808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12809 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12810 ac_prog_rejected=yes 12811 continue 12812 fi 12813 ac_cv_prog_CC="cc" 12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12815 break 2 12816 fi 12817done 12818 done 12819IFS=$as_save_IFS 12820 12821if test $ac_prog_rejected = yes; then 12822 # We found a bogon in the path, so make sure we never use it. 12823 set dummy $ac_cv_prog_CC 12824 shift 12825 if test $# != 0; then 12826 # We chose a different compiler from the bogus one. 12827 # However, it has the same basename, so the bogon will be chosen 12828 # first if we set CC to just the basename; use the full file name. 12829 shift 12830 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12831 fi 12832fi 12833fi 12834fi 12835CC=$ac_cv_prog_CC 12836if test -n "$CC"; then 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12838$as_echo "$CC" >&6; } 12839else 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12841$as_echo "no" >&6; } 12842fi 12843 12844 12845fi 12846if test -z "$CC"; then 12847 if test -n "$ac_tool_prefix"; then 12848 for ac_prog in cl.exe 12849 do 12850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12851set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12853$as_echo_n "checking for $ac_word... " >&6; } 12854if ${ac_cv_prog_CC+:} false; then : 12855 $as_echo_n "(cached) " >&6 12856else 12857 if test -n "$CC"; then 12858 ac_cv_prog_CC="$CC" # Let the user override the test. 12859else 12860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12861for as_dir in $PATH 12862do 12863 IFS=$as_save_IFS 12864 test -z "$as_dir" && as_dir=. 12865 for ac_exec_ext in '' $ac_executable_extensions; do 12866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12869 break 2 12870 fi 12871done 12872 done 12873IFS=$as_save_IFS 12874 12875fi 12876fi 12877CC=$ac_cv_prog_CC 12878if test -n "$CC"; then 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12880$as_echo "$CC" >&6; } 12881else 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12883$as_echo "no" >&6; } 12884fi 12885 12886 12887 test -n "$CC" && break 12888 done 12889fi 12890if test -z "$CC"; then 12891 ac_ct_CC=$CC 12892 for ac_prog in cl.exe 12893do 12894 # Extract the first word of "$ac_prog", so it can be a program name with args. 12895set dummy $ac_prog; ac_word=$2 12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12897$as_echo_n "checking for $ac_word... " >&6; } 12898if ${ac_cv_prog_ac_ct_CC+:} false; then : 12899 $as_echo_n "(cached) " >&6 12900else 12901 if test -n "$ac_ct_CC"; then 12902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12903else 12904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12905for as_dir in $PATH 12906do 12907 IFS=$as_save_IFS 12908 test -z "$as_dir" && as_dir=. 12909 for ac_exec_ext in '' $ac_executable_extensions; do 12910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12911 ac_cv_prog_ac_ct_CC="$ac_prog" 12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12913 break 2 12914 fi 12915done 12916 done 12917IFS=$as_save_IFS 12918 12919fi 12920fi 12921ac_ct_CC=$ac_cv_prog_ac_ct_CC 12922if test -n "$ac_ct_CC"; then 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12924$as_echo "$ac_ct_CC" >&6; } 12925else 12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12927$as_echo "no" >&6; } 12928fi 12929 12930 12931 test -n "$ac_ct_CC" && break 12932done 12933 12934 if test "x$ac_ct_CC" = x; then 12935 CC="" 12936 else 12937 case $cross_compiling:$ac_tool_warned in 12938yes:) 12939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12941ac_tool_warned=yes ;; 12942esac 12943 CC=$ac_ct_CC 12944 fi 12945fi 12946 12947fi 12948 12949 12950test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12951$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12952as_fn_error $? "no acceptable C compiler found in \$PATH 12953See \`config.log' for more details" "$LINENO" 5; } 12954 12955# Provide some information about the compiler. 12956$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12957set X $ac_compile 12958ac_compiler=$2 12959for ac_option in --version -v -V -qversion; do 12960 { { ac_try="$ac_compiler $ac_option >&5" 12961case "(($ac_try" in 12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12963 *) ac_try_echo=$ac_try;; 12964esac 12965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12966$as_echo "$ac_try_echo"; } >&5 12967 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12968 ac_status=$? 12969 if test -s conftest.err; then 12970 sed '10a\ 12971... rest of stderr output deleted ... 12972 10q' conftest.err >conftest.er1 12973 cat conftest.er1 >&5 12974 fi 12975 rm -f conftest.er1 conftest.err 12976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12977 test $ac_status = 0; } 12978done 12979 12980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12981$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12982if ${ac_cv_c_compiler_gnu+:} false; then : 12983 $as_echo_n "(cached) " >&6 12984else 12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12986/* end confdefs.h. */ 12987 12988int 12989main () 12990{ 12991#ifndef __GNUC__ 12992 choke me 12993#endif 12994 12995 ; 12996 return 0; 12997} 12998_ACEOF 12999if ac_fn_c_try_compile "$LINENO"; then : 13000 ac_compiler_gnu=yes 13001else 13002 ac_compiler_gnu=no 13003fi 13004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13005ac_cv_c_compiler_gnu=$ac_compiler_gnu 13006 13007fi 13008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13009$as_echo "$ac_cv_c_compiler_gnu" >&6; } 13010if test $ac_compiler_gnu = yes; then 13011 GCC=yes 13012else 13013 GCC= 13014fi 13015ac_test_CFLAGS=${CFLAGS+set} 13016ac_save_CFLAGS=$CFLAGS 13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13018$as_echo_n "checking whether $CC accepts -g... " >&6; } 13019if ${ac_cv_prog_cc_g+:} false; then : 13020 $as_echo_n "(cached) " >&6 13021else 13022 ac_save_c_werror_flag=$ac_c_werror_flag 13023 ac_c_werror_flag=yes 13024 ac_cv_prog_cc_g=no 13025 CFLAGS="-g" 13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13027/* end confdefs.h. */ 13028 13029int 13030main () 13031{ 13032 13033 ; 13034 return 0; 13035} 13036_ACEOF 13037if ac_fn_c_try_compile "$LINENO"; then : 13038 ac_cv_prog_cc_g=yes 13039else 13040 CFLAGS="" 13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13042/* end confdefs.h. */ 13043 13044int 13045main () 13046{ 13047 13048 ; 13049 return 0; 13050} 13051_ACEOF 13052if ac_fn_c_try_compile "$LINENO"; then : 13053 13054else 13055 ac_c_werror_flag=$ac_save_c_werror_flag 13056 CFLAGS="-g" 13057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13058/* end confdefs.h. */ 13059 13060int 13061main () 13062{ 13063 13064 ; 13065 return 0; 13066} 13067_ACEOF 13068if ac_fn_c_try_compile "$LINENO"; then : 13069 ac_cv_prog_cc_g=yes 13070fi 13071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13072fi 13073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13074fi 13075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13076 ac_c_werror_flag=$ac_save_c_werror_flag 13077fi 13078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13079$as_echo "$ac_cv_prog_cc_g" >&6; } 13080if test "$ac_test_CFLAGS" = set; then 13081 CFLAGS=$ac_save_CFLAGS 13082elif test $ac_cv_prog_cc_g = yes; then 13083 if test "$GCC" = yes; then 13084 CFLAGS="-g -O2" 13085 else 13086 CFLAGS="-g" 13087 fi 13088else 13089 if test "$GCC" = yes; then 13090 CFLAGS="-O2" 13091 else 13092 CFLAGS= 13093 fi 13094fi 13095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 13096$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 13097if ${ac_cv_prog_cc_c89+:} false; then : 13098 $as_echo_n "(cached) " >&6 13099else 13100 ac_cv_prog_cc_c89=no 13101ac_save_CC=$CC 13102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13103/* end confdefs.h. */ 13104#include <stdarg.h> 13105#include <stdio.h> 13106struct stat; 13107/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13108struct buf { int x; }; 13109FILE * (*rcsopen) (struct buf *, struct stat *, int); 13110static char *e (p, i) 13111 char **p; 13112 int i; 13113{ 13114 return p[i]; 13115} 13116static char *f (char * (*g) (char **, int), char **p, ...) 13117{ 13118 char *s; 13119 va_list v; 13120 va_start (v,p); 13121 s = g (p, va_arg (v,int)); 13122 va_end (v); 13123 return s; 13124} 13125 13126/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 13127 function prototypes and stuff, but not '\xHH' hex character constants. 13128 These don't provoke an error unfortunately, instead are silently treated 13129 as 'x'. The following induces an error, until -std is added to get 13130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13131 array size at least. It's necessary to write '\x00'==0 to get something 13132 that's true only with -std. */ 13133int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13134 13135/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13136 inside strings and character constants. */ 13137#define FOO(x) 'x' 13138int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13139 13140int test (int i, double x); 13141struct s1 {int (*f) (int a);}; 13142struct s2 {int (*f) (double a);}; 13143int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13144int argc; 13145char **argv; 13146int 13147main () 13148{ 13149return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13150 ; 13151 return 0; 13152} 13153_ACEOF 13154for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13155 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13156do 13157 CC="$ac_save_CC $ac_arg" 13158 if ac_fn_c_try_compile "$LINENO"; then : 13159 ac_cv_prog_cc_c89=$ac_arg 13160fi 13161rm -f core conftest.err conftest.$ac_objext 13162 test "x$ac_cv_prog_cc_c89" != "xno" && break 13163done 13164rm -f conftest.$ac_ext 13165CC=$ac_save_CC 13166 13167fi 13168# AC_CACHE_VAL 13169case "x$ac_cv_prog_cc_c89" in 13170 x) 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13172$as_echo "none needed" >&6; } ;; 13173 xno) 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13175$as_echo "unsupported" >&6; } ;; 13176 *) 13177 CC="$CC $ac_cv_prog_cc_c89" 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13179$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13180esac 13181if test "x$ac_cv_prog_cc_c89" != xno; then : 13182 13183fi 13184 13185ac_ext=c 13186ac_cpp='$CPP $CPPFLAGS' 13187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13189ac_compiler_gnu=$ac_cv_c_compiler_gnu 13190 13191ac_ext=c 13192ac_cpp='$CPP $CPPFLAGS' 13193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13195ac_compiler_gnu=$ac_cv_c_compiler_gnu 13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13197$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13198if ${am_cv_prog_cc_c_o+:} false; then : 13199 $as_echo_n "(cached) " >&6 13200else 13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13202/* end confdefs.h. */ 13203 13204int 13205main () 13206{ 13207 13208 ; 13209 return 0; 13210} 13211_ACEOF 13212 # Make sure it works both with $CC and with simple cc. 13213 # Following AC_PROG_CC_C_O, we do the test twice because some 13214 # compilers refuse to overwrite an existing .o file with -o, 13215 # though they will create one. 13216 am_cv_prog_cc_c_o=yes 13217 for am_i in 1 2; do 13218 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13219 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13220 ac_status=$? 13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13222 (exit $ac_status); } \ 13223 && test -f conftest2.$ac_objext; then 13224 : OK 13225 else 13226 am_cv_prog_cc_c_o=no 13227 break 13228 fi 13229 done 13230 rm -f core conftest* 13231 unset am_i 13232fi 13233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13234$as_echo "$am_cv_prog_cc_c_o" >&6; } 13235if test "$am_cv_prog_cc_c_o" != yes; then 13236 # Losing compiler, so override with the script. 13237 # FIXME: It is wrong to rewrite CC. 13238 # But if we don't then we get into trouble of one sort or another. 13239 # A longer-term fix would be to have automake use am__CC in this case, 13240 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13241 CC="$am_aux_dir/compile $CC" 13242fi 13243ac_ext=c 13244ac_cpp='$CPP $CPPFLAGS' 13245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13247ac_compiler_gnu=$ac_cv_c_compiler_gnu 13248 13249 13250depcc="$CC" am_compiler_list= 13251 13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13253$as_echo_n "checking dependency style of $depcc... " >&6; } 13254if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13255 $as_echo_n "(cached) " >&6 13256else 13257 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13258 # We make a subdir and do the tests there. Otherwise we can end up 13259 # making bogus files that we don't know about and never remove. For 13260 # instance it was reported that on HP-UX the gcc test will end up 13261 # making a dummy file named 'D' -- because '-MD' means "put the output 13262 # in D". 13263 rm -rf conftest.dir 13264 mkdir conftest.dir 13265 # Copy depcomp to subdir because otherwise we won't find it if we're 13266 # using a relative directory. 13267 cp "$am_depcomp" conftest.dir 13268 cd conftest.dir 13269 # We will build objects and dependencies in a subdirectory because 13270 # it helps to detect inapplicable dependency modes. For instance 13271 # both Tru64's cc and ICC support -MD to output dependencies as a 13272 # side effect of compilation, but ICC will put the dependencies in 13273 # the current directory while Tru64 will put them in the object 13274 # directory. 13275 mkdir sub 13276 13277 am_cv_CC_dependencies_compiler_type=none 13278 if test "$am_compiler_list" = ""; then 13279 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13280 fi 13281 am__universal=false 13282 case " $depcc " in #( 13283 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13284 esac 13285 13286 for depmode in $am_compiler_list; do 13287 # Setup a source with many dependencies, because some compilers 13288 # like to wrap large dependency lists on column 80 (with \), and 13289 # we should not choose a depcomp mode which is confused by this. 13290 # 13291 # We need to recreate these files for each test, as the compiler may 13292 # overwrite some of them when testing with obscure command lines. 13293 # This happens at least with the AIX C compiler. 13294 : > sub/conftest.c 13295 for i in 1 2 3 4 5 6; do 13296 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13297 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13298 # Solaris 10 /bin/sh. 13299 echo '/* dummy */' > sub/conftst$i.h 13300 done 13301 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13302 13303 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13304 # mode. It turns out that the SunPro C++ compiler does not properly 13305 # handle '-M -o', and we need to detect this. Also, some Intel 13306 # versions had trouble with output in subdirs. 13307 am__obj=sub/conftest.${OBJEXT-o} 13308 am__minus_obj="-o $am__obj" 13309 case $depmode in 13310 gcc) 13311 # This depmode causes a compiler race in universal mode. 13312 test "$am__universal" = false || continue 13313 ;; 13314 nosideeffect) 13315 # After this tag, mechanisms are not by side-effect, so they'll 13316 # only be used when explicitly requested. 13317 if test "x$enable_dependency_tracking" = xyes; then 13318 continue 13319 else 13320 break 13321 fi 13322 ;; 13323 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13324 # This compiler won't grok '-c -o', but also, the minuso test has 13325 # not run yet. These depmodes are late enough in the game, and 13326 # so weak that their functioning should not be impacted. 13327 am__obj=conftest.${OBJEXT-o} 13328 am__minus_obj= 13329 ;; 13330 none) break ;; 13331 esac 13332 if depmode=$depmode \ 13333 source=sub/conftest.c object=$am__obj \ 13334 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13335 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13336 >/dev/null 2>conftest.err && 13337 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13338 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13339 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13340 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13341 # icc doesn't choke on unknown options, it will just issue warnings 13342 # or remarks (even with -Werror). So we grep stderr for any message 13343 # that says an option was ignored or not supported. 13344 # When given -MP, icc 7.0 and 7.1 complain thusly: 13345 # icc: Command line warning: ignoring option '-M'; no argument required 13346 # The diagnosis changed in icc 8.0: 13347 # icc: Command line remark: option '-MP' not supported 13348 if (grep 'ignoring option' conftest.err || 13349 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13350 am_cv_CC_dependencies_compiler_type=$depmode 13351 break 13352 fi 13353 fi 13354 done 13355 13356 cd .. 13357 rm -rf conftest.dir 13358else 13359 am_cv_CC_dependencies_compiler_type=none 13360fi 13361 13362fi 13363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13364$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13365CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13366 13367 if 13368 test "x$enable_dependency_tracking" != xno \ 13369 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13370 am__fastdepCC_TRUE= 13371 am__fastdepCC_FALSE='#' 13372else 13373 am__fastdepCC_TRUE='#' 13374 am__fastdepCC_FALSE= 13375fi 13376 13377 13378ac_ext=cpp 13379ac_cpp='$CXXCPP $CPPFLAGS' 13380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13383if test -z "$CXX"; then 13384 if test -n "$CCC"; then 13385 CXX=$CCC 13386 else 13387 if test -n "$ac_tool_prefix"; then 13388 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13389 do 13390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13391set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13393$as_echo_n "checking for $ac_word... " >&6; } 13394if ${ac_cv_prog_CXX+:} false; then : 13395 $as_echo_n "(cached) " >&6 13396else 13397 if test -n "$CXX"; then 13398 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13399else 13400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13401for as_dir in $PATH 13402do 13403 IFS=$as_save_IFS 13404 test -z "$as_dir" && as_dir=. 13405 for ac_exec_ext in '' $ac_executable_extensions; do 13406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13407 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13409 break 2 13410 fi 13411done 13412 done 13413IFS=$as_save_IFS 13414 13415fi 13416fi 13417CXX=$ac_cv_prog_CXX 13418if test -n "$CXX"; then 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13420$as_echo "$CXX" >&6; } 13421else 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13423$as_echo "no" >&6; } 13424fi 13425 13426 13427 test -n "$CXX" && break 13428 done 13429fi 13430if test -z "$CXX"; then 13431 ac_ct_CXX=$CXX 13432 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13433do 13434 # Extract the first word of "$ac_prog", so it can be a program name with args. 13435set dummy $ac_prog; ac_word=$2 13436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13437$as_echo_n "checking for $ac_word... " >&6; } 13438if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13439 $as_echo_n "(cached) " >&6 13440else 13441 if test -n "$ac_ct_CXX"; then 13442 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13443else 13444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13445for as_dir in $PATH 13446do 13447 IFS=$as_save_IFS 13448 test -z "$as_dir" && as_dir=. 13449 for ac_exec_ext in '' $ac_executable_extensions; do 13450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13451 ac_cv_prog_ac_ct_CXX="$ac_prog" 13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13453 break 2 13454 fi 13455done 13456 done 13457IFS=$as_save_IFS 13458 13459fi 13460fi 13461ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13462if test -n "$ac_ct_CXX"; then 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13464$as_echo "$ac_ct_CXX" >&6; } 13465else 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13467$as_echo "no" >&6; } 13468fi 13469 13470 13471 test -n "$ac_ct_CXX" && break 13472done 13473 13474 if test "x$ac_ct_CXX" = x; then 13475 CXX="g++" 13476 else 13477 case $cross_compiling:$ac_tool_warned in 13478yes:) 13479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13481ac_tool_warned=yes ;; 13482esac 13483 CXX=$ac_ct_CXX 13484 fi 13485fi 13486 13487 fi 13488fi 13489# Provide some information about the compiler. 13490$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13491set X $ac_compile 13492ac_compiler=$2 13493for ac_option in --version -v -V -qversion; do 13494 { { ac_try="$ac_compiler $ac_option >&5" 13495case "(($ac_try" in 13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13497 *) ac_try_echo=$ac_try;; 13498esac 13499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13500$as_echo "$ac_try_echo"; } >&5 13501 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13502 ac_status=$? 13503 if test -s conftest.err; then 13504 sed '10a\ 13505... rest of stderr output deleted ... 13506 10q' conftest.err >conftest.er1 13507 cat conftest.er1 >&5 13508 fi 13509 rm -f conftest.er1 conftest.err 13510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13511 test $ac_status = 0; } 13512done 13513 13514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13515$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13516if ${ac_cv_cxx_compiler_gnu+:} false; then : 13517 $as_echo_n "(cached) " >&6 13518else 13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13520/* end confdefs.h. */ 13521 13522int 13523main () 13524{ 13525#ifndef __GNUC__ 13526 choke me 13527#endif 13528 13529 ; 13530 return 0; 13531} 13532_ACEOF 13533if ac_fn_cxx_try_compile "$LINENO"; then : 13534 ac_compiler_gnu=yes 13535else 13536 ac_compiler_gnu=no 13537fi 13538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13539ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13540 13541fi 13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13543$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13544if test $ac_compiler_gnu = yes; then 13545 GXX=yes 13546else 13547 GXX= 13548fi 13549ac_test_CXXFLAGS=${CXXFLAGS+set} 13550ac_save_CXXFLAGS=$CXXFLAGS 13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13552$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13553if ${ac_cv_prog_cxx_g+:} false; then : 13554 $as_echo_n "(cached) " >&6 13555else 13556 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13557 ac_cxx_werror_flag=yes 13558 ac_cv_prog_cxx_g=no 13559 CXXFLAGS="-g" 13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13561/* end confdefs.h. */ 13562 13563int 13564main () 13565{ 13566 13567 ; 13568 return 0; 13569} 13570_ACEOF 13571if ac_fn_cxx_try_compile "$LINENO"; then : 13572 ac_cv_prog_cxx_g=yes 13573else 13574 CXXFLAGS="" 13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13576/* end confdefs.h. */ 13577 13578int 13579main () 13580{ 13581 13582 ; 13583 return 0; 13584} 13585_ACEOF 13586if ac_fn_cxx_try_compile "$LINENO"; then : 13587 13588else 13589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13590 CXXFLAGS="-g" 13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13592/* end confdefs.h. */ 13593 13594int 13595main () 13596{ 13597 13598 ; 13599 return 0; 13600} 13601_ACEOF 13602if ac_fn_cxx_try_compile "$LINENO"; then : 13603 ac_cv_prog_cxx_g=yes 13604fi 13605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13606fi 13607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13608fi 13609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13610 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13611fi 13612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13613$as_echo "$ac_cv_prog_cxx_g" >&6; } 13614if test "$ac_test_CXXFLAGS" = set; then 13615 CXXFLAGS=$ac_save_CXXFLAGS 13616elif test $ac_cv_prog_cxx_g = yes; then 13617 if test "$GXX" = yes; then 13618 CXXFLAGS="-g -O2" 13619 else 13620 CXXFLAGS="-g" 13621 fi 13622else 13623 if test "$GXX" = yes; then 13624 CXXFLAGS="-O2" 13625 else 13626 CXXFLAGS= 13627 fi 13628fi 13629ac_ext=c 13630ac_cpp='$CPP $CPPFLAGS' 13631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13633ac_compiler_gnu=$ac_cv_c_compiler_gnu 13634 13635depcc="$CXX" am_compiler_list= 13636 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13638$as_echo_n "checking dependency style of $depcc... " >&6; } 13639if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13640 $as_echo_n "(cached) " >&6 13641else 13642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13643 # We make a subdir and do the tests there. Otherwise we can end up 13644 # making bogus files that we don't know about and never remove. For 13645 # instance it was reported that on HP-UX the gcc test will end up 13646 # making a dummy file named 'D' -- because '-MD' means "put the output 13647 # in D". 13648 rm -rf conftest.dir 13649 mkdir conftest.dir 13650 # Copy depcomp to subdir because otherwise we won't find it if we're 13651 # using a relative directory. 13652 cp "$am_depcomp" conftest.dir 13653 cd conftest.dir 13654 # We will build objects and dependencies in a subdirectory because 13655 # it helps to detect inapplicable dependency modes. For instance 13656 # both Tru64's cc and ICC support -MD to output dependencies as a 13657 # side effect of compilation, but ICC will put the dependencies in 13658 # the current directory while Tru64 will put them in the object 13659 # directory. 13660 mkdir sub 13661 13662 am_cv_CXX_dependencies_compiler_type=none 13663 if test "$am_compiler_list" = ""; then 13664 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13665 fi 13666 am__universal=false 13667 case " $depcc " in #( 13668 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13669 esac 13670 13671 for depmode in $am_compiler_list; do 13672 # Setup a source with many dependencies, because some compilers 13673 # like to wrap large dependency lists on column 80 (with \), and 13674 # we should not choose a depcomp mode which is confused by this. 13675 # 13676 # We need to recreate these files for each test, as the compiler may 13677 # overwrite some of them when testing with obscure command lines. 13678 # This happens at least with the AIX C compiler. 13679 : > sub/conftest.c 13680 for i in 1 2 3 4 5 6; do 13681 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13682 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13683 # Solaris 10 /bin/sh. 13684 echo '/* dummy */' > sub/conftst$i.h 13685 done 13686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13687 13688 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13689 # mode. It turns out that the SunPro C++ compiler does not properly 13690 # handle '-M -o', and we need to detect this. Also, some Intel 13691 # versions had trouble with output in subdirs. 13692 am__obj=sub/conftest.${OBJEXT-o} 13693 am__minus_obj="-o $am__obj" 13694 case $depmode in 13695 gcc) 13696 # This depmode causes a compiler race in universal mode. 13697 test "$am__universal" = false || continue 13698 ;; 13699 nosideeffect) 13700 # After this tag, mechanisms are not by side-effect, so they'll 13701 # only be used when explicitly requested. 13702 if test "x$enable_dependency_tracking" = xyes; then 13703 continue 13704 else 13705 break 13706 fi 13707 ;; 13708 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13709 # This compiler won't grok '-c -o', but also, the minuso test has 13710 # not run yet. These depmodes are late enough in the game, and 13711 # so weak that their functioning should not be impacted. 13712 am__obj=conftest.${OBJEXT-o} 13713 am__minus_obj= 13714 ;; 13715 none) break ;; 13716 esac 13717 if depmode=$depmode \ 13718 source=sub/conftest.c object=$am__obj \ 13719 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13720 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13721 >/dev/null 2>conftest.err && 13722 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13723 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13724 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13725 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13726 # icc doesn't choke on unknown options, it will just issue warnings 13727 # or remarks (even with -Werror). So we grep stderr for any message 13728 # that says an option was ignored or not supported. 13729 # When given -MP, icc 7.0 and 7.1 complain thusly: 13730 # icc: Command line warning: ignoring option '-M'; no argument required 13731 # The diagnosis changed in icc 8.0: 13732 # icc: Command line remark: option '-MP' not supported 13733 if (grep 'ignoring option' conftest.err || 13734 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13735 am_cv_CXX_dependencies_compiler_type=$depmode 13736 break 13737 fi 13738 fi 13739 done 13740 13741 cd .. 13742 rm -rf conftest.dir 13743else 13744 am_cv_CXX_dependencies_compiler_type=none 13745fi 13746 13747fi 13748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13749$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13750CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13751 13752 if 13753 test "x$enable_dependency_tracking" != xno \ 13754 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13755 am__fastdepCXX_TRUE= 13756 am__fastdepCXX_FALSE='#' 13757else 13758 am__fastdepCXX_TRUE='#' 13759 am__fastdepCXX_FALSE= 13760fi 13761 13762 13763 13764 13765func_stripname_cnf () 13766{ 13767 case $2 in 13768 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13769 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13770 esac 13771} # func_stripname_cnf 13772 13773 if test -n "$CXX" && ( test no != "$CXX" && 13774 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13775 (test g++ != "$CXX"))); then 13776 ac_ext=cpp 13777ac_cpp='$CXXCPP $CPPFLAGS' 13778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13782$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13783if test -z "$CXXCPP"; then 13784 if ${ac_cv_prog_CXXCPP+:} false; then : 13785 $as_echo_n "(cached) " >&6 13786else 13787 # Double quotes because CXXCPP needs to be expanded 13788 for CXXCPP in "$CXX -E" "/lib/cpp" 13789 do 13790 ac_preproc_ok=false 13791for ac_cxx_preproc_warn_flag in '' yes 13792do 13793 # Use a header file that comes with gcc, so configuring glibc 13794 # with a fresh cross-compiler works. 13795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13796 # <limits.h> exists even on freestanding compilers. 13797 # On the NeXT, cc -E runs the code through the compiler's parser, 13798 # not just through cpp. "Syntax error" is here to catch this case. 13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13800/* end confdefs.h. */ 13801#ifdef __STDC__ 13802# include <limits.h> 13803#else 13804# include <assert.h> 13805#endif 13806 Syntax error 13807_ACEOF 13808if ac_fn_cxx_try_cpp "$LINENO"; then : 13809 13810else 13811 # Broken: fails on valid input. 13812continue 13813fi 13814rm -f conftest.err conftest.i conftest.$ac_ext 13815 13816 # OK, works on sane cases. Now check whether nonexistent headers 13817 # can be detected and how. 13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13819/* end confdefs.h. */ 13820#include <ac_nonexistent.h> 13821_ACEOF 13822if ac_fn_cxx_try_cpp "$LINENO"; then : 13823 # Broken: success on invalid input. 13824continue 13825else 13826 # Passes both tests. 13827ac_preproc_ok=: 13828break 13829fi 13830rm -f conftest.err conftest.i conftest.$ac_ext 13831 13832done 13833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13834rm -f conftest.i conftest.err conftest.$ac_ext 13835if $ac_preproc_ok; then : 13836 break 13837fi 13838 13839 done 13840 ac_cv_prog_CXXCPP=$CXXCPP 13841 13842fi 13843 CXXCPP=$ac_cv_prog_CXXCPP 13844else 13845 ac_cv_prog_CXXCPP=$CXXCPP 13846fi 13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13848$as_echo "$CXXCPP" >&6; } 13849ac_preproc_ok=false 13850for ac_cxx_preproc_warn_flag in '' yes 13851do 13852 # Use a header file that comes with gcc, so configuring glibc 13853 # with a fresh cross-compiler works. 13854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13855 # <limits.h> exists even on freestanding compilers. 13856 # On the NeXT, cc -E runs the code through the compiler's parser, 13857 # not just through cpp. "Syntax error" is here to catch this case. 13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13859/* end confdefs.h. */ 13860#ifdef __STDC__ 13861# include <limits.h> 13862#else 13863# include <assert.h> 13864#endif 13865 Syntax error 13866_ACEOF 13867if ac_fn_cxx_try_cpp "$LINENO"; then : 13868 13869else 13870 # Broken: fails on valid input. 13871continue 13872fi 13873rm -f conftest.err conftest.i conftest.$ac_ext 13874 13875 # OK, works on sane cases. Now check whether nonexistent headers 13876 # can be detected and how. 13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13878/* end confdefs.h. */ 13879#include <ac_nonexistent.h> 13880_ACEOF 13881if ac_fn_cxx_try_cpp "$LINENO"; then : 13882 # Broken: success on invalid input. 13883continue 13884else 13885 # Passes both tests. 13886ac_preproc_ok=: 13887break 13888fi 13889rm -f conftest.err conftest.i conftest.$ac_ext 13890 13891done 13892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13893rm -f conftest.i conftest.err conftest.$ac_ext 13894if $ac_preproc_ok; then : 13895 13896else 13897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13899as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13900See \`config.log' for more details" "$LINENO" 5; } 13901fi 13902 13903ac_ext=c 13904ac_cpp='$CPP $CPPFLAGS' 13905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13907ac_compiler_gnu=$ac_cv_c_compiler_gnu 13908 13909else 13910 _lt_caught_CXX_error=yes 13911fi 13912 13913ac_ext=cpp 13914ac_cpp='$CXXCPP $CPPFLAGS' 13915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13918 13919archive_cmds_need_lc_CXX=no 13920allow_undefined_flag_CXX= 13921always_export_symbols_CXX=no 13922archive_expsym_cmds_CXX= 13923compiler_needs_object_CXX=no 13924export_dynamic_flag_spec_CXX= 13925hardcode_direct_CXX=no 13926hardcode_direct_absolute_CXX=no 13927hardcode_libdir_flag_spec_CXX= 13928hardcode_libdir_separator_CXX= 13929hardcode_minus_L_CXX=no 13930hardcode_shlibpath_var_CXX=unsupported 13931hardcode_automatic_CXX=no 13932inherit_rpath_CXX=no 13933module_cmds_CXX= 13934module_expsym_cmds_CXX= 13935link_all_deplibs_CXX=unknown 13936old_archive_cmds_CXX=$old_archive_cmds 13937reload_flag_CXX=$reload_flag 13938reload_cmds_CXX=$reload_cmds 13939no_undefined_flag_CXX= 13940whole_archive_flag_spec_CXX= 13941enable_shared_with_static_runtimes_CXX=no 13942 13943# Source file extension for C++ test sources. 13944ac_ext=cpp 13945 13946# Object file extension for compiled C++ test sources. 13947objext=o 13948objext_CXX=$objext 13949 13950# No sense in running all these tests if we already determined that 13951# the CXX compiler isn't working. Some variables (like enable_shared) 13952# are currently assumed to apply to all compilers on this platform, 13953# and will be corrupted by setting them based on a non-working compiler. 13954if test yes != "$_lt_caught_CXX_error"; then 13955 # Code to be used in simple compile tests 13956 lt_simple_compile_test_code="int some_variable = 0;" 13957 13958 # Code to be used in simple link tests 13959 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13960 13961 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13962 13963 13964 13965 13966 13967 13968# If no C compiler was specified, use CC. 13969LTCC=${LTCC-"$CC"} 13970 13971# If no C compiler flags were specified, use CFLAGS. 13972LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13973 13974# Allow CC to be a program name with arguments. 13975compiler=$CC 13976 13977 13978 # save warnings/boilerplate of simple test code 13979 ac_outfile=conftest.$ac_objext 13980echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13981eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13982_lt_compiler_boilerplate=`cat conftest.err` 13983$RM conftest* 13984 13985 ac_outfile=conftest.$ac_objext 13986echo "$lt_simple_link_test_code" >conftest.$ac_ext 13987eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13988_lt_linker_boilerplate=`cat conftest.err` 13989$RM -r conftest* 13990 13991 13992 # Allow CC to be a program name with arguments. 13993 lt_save_CC=$CC 13994 lt_save_CFLAGS=$CFLAGS 13995 lt_save_LD=$LD 13996 lt_save_GCC=$GCC 13997 GCC=$GXX 13998 lt_save_with_gnu_ld=$with_gnu_ld 13999 lt_save_path_LD=$lt_cv_path_LD 14000 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14001 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14002 else 14003 $as_unset lt_cv_prog_gnu_ld 14004 fi 14005 if test -n "${lt_cv_path_LDCXX+set}"; then 14006 lt_cv_path_LD=$lt_cv_path_LDCXX 14007 else 14008 $as_unset lt_cv_path_LD 14009 fi 14010 test -z "${LDCXX+set}" || LD=$LDCXX 14011 CC=${CXX-"c++"} 14012 CFLAGS=$CXXFLAGS 14013 compiler=$CC 14014 compiler_CXX=$CC 14015 func_cc_basename $compiler 14016cc_basename=$func_cc_basename_result 14017 14018 14019 if test -n "$compiler"; then 14020 # We don't want -fno-exception when compiling C++ code, so set the 14021 # no_builtin_flag separately 14022 if test yes = "$GXX"; then 14023 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14024 else 14025 lt_prog_compiler_no_builtin_flag_CXX= 14026 fi 14027 14028 if test yes = "$GXX"; then 14029 # Set up default GNU C++ configuration 14030 14031 14032 14033# Check whether --with-gnu-ld was given. 14034if test "${with_gnu_ld+set}" = set; then : 14035 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14036else 14037 with_gnu_ld=no 14038fi 14039 14040ac_prog=ld 14041if test yes = "$GCC"; then 14042 # Check if gcc -print-prog-name=ld gives a path. 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14044$as_echo_n "checking for ld used by $CC... " >&6; } 14045 case $host in 14046 *-*-mingw*) 14047 # gcc leaves a trailing carriage return, which upsets mingw 14048 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14049 *) 14050 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14051 esac 14052 case $ac_prog in 14053 # Accept absolute paths. 14054 [\\/]* | ?:[\\/]*) 14055 re_direlt='/[^/][^/]*/\.\./' 14056 # Canonicalize the pathname of ld 14057 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14058 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14059 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14060 done 14061 test -z "$LD" && LD=$ac_prog 14062 ;; 14063 "") 14064 # If it fails, then pretend we aren't using GCC. 14065 ac_prog=ld 14066 ;; 14067 *) 14068 # If it is relative, then search for the first ld in PATH. 14069 with_gnu_ld=unknown 14070 ;; 14071 esac 14072elif test yes = "$with_gnu_ld"; then 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14074$as_echo_n "checking for GNU ld... " >&6; } 14075else 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14077$as_echo_n "checking for non-GNU ld... " >&6; } 14078fi 14079if ${lt_cv_path_LD+:} false; then : 14080 $as_echo_n "(cached) " >&6 14081else 14082 if test -z "$LD"; then 14083 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14084 for ac_dir in $PATH; do 14085 IFS=$lt_save_ifs 14086 test -z "$ac_dir" && ac_dir=. 14087 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14088 lt_cv_path_LD=$ac_dir/$ac_prog 14089 # Check to see if the program is GNU ld. I'd rather use --version, 14090 # but apparently some variants of GNU ld only accept -v. 14091 # Break only if it was the GNU/non-GNU ld that we prefer. 14092 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14093 *GNU* | *'with BFD'*) 14094 test no != "$with_gnu_ld" && break 14095 ;; 14096 *) 14097 test yes != "$with_gnu_ld" && break 14098 ;; 14099 esac 14100 fi 14101 done 14102 IFS=$lt_save_ifs 14103else 14104 lt_cv_path_LD=$LD # Let the user override the test with a path. 14105fi 14106fi 14107 14108LD=$lt_cv_path_LD 14109if test -n "$LD"; then 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14111$as_echo "$LD" >&6; } 14112else 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14114$as_echo "no" >&6; } 14115fi 14116test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14118$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14119if ${lt_cv_prog_gnu_ld+:} false; then : 14120 $as_echo_n "(cached) " >&6 14121else 14122 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14123case `$LD -v 2>&1 </dev/null` in 14124*GNU* | *'with BFD'*) 14125 lt_cv_prog_gnu_ld=yes 14126 ;; 14127*) 14128 lt_cv_prog_gnu_ld=no 14129 ;; 14130esac 14131fi 14132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14133$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14134with_gnu_ld=$lt_cv_prog_gnu_ld 14135 14136 14137 14138 14139 14140 14141 14142 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14143 # archiving commands below assume that GNU ld is being used. 14144 if test yes = "$with_gnu_ld"; then 14145 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14146 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14147 14148 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14149 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14150 14151 # If archive_cmds runs LD, not CC, wlarc should be empty 14152 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14153 # investigate it a little bit more. (MM) 14154 wlarc='$wl' 14155 14156 # ancient GNU ld didn't support --whole-archive et. al. 14157 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14158 $GREP 'no-whole-archive' > /dev/null; then 14159 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14160 else 14161 whole_archive_flag_spec_CXX= 14162 fi 14163 else 14164 with_gnu_ld=no 14165 wlarc= 14166 14167 # A generic and very simple default shared library creation 14168 # command for GNU C++ for the case where it uses the native 14169 # linker, instead of GNU ld. If possible, this setting should 14170 # overridden to take advantage of the native linker features on 14171 # the platform it is being used on. 14172 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14173 fi 14174 14175 # Commands to make compiler produce verbose output that lists 14176 # what "hidden" libraries, object files and flags are used when 14177 # linking a shared library. 14178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14179 14180 else 14181 GXX=no 14182 with_gnu_ld=no 14183 wlarc= 14184 fi 14185 14186 # PORTME: fill in a description of your system's C++ link characteristics 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14188$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14189 ld_shlibs_CXX=yes 14190 case $host_os in 14191 aix3*) 14192 # FIXME: insert proper C++ library support 14193 ld_shlibs_CXX=no 14194 ;; 14195 aix[4-9]*) 14196 if test ia64 = "$host_cpu"; then 14197 # On IA64, the linker does run time linking by default, so we don't 14198 # have to do anything special. 14199 aix_use_runtimelinking=no 14200 exp_sym_flag='-Bexport' 14201 no_entry_flag= 14202 else 14203 aix_use_runtimelinking=no 14204 14205 # Test if we are trying to use run time linking or normal 14206 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14207 # have runtime linking enabled, and use it for executables. 14208 # For shared libraries, we enable/disable runtime linking 14209 # depending on the kind of the shared library created - 14210 # when "with_aix_soname,aix_use_runtimelinking" is: 14211 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14212 # "aix,yes" lib.so shared, rtl:yes, for executables 14213 # lib.a static archive 14214 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14215 # lib.a(lib.so.V) shared, rtl:no, for executables 14216 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14217 # lib.a(lib.so.V) shared, rtl:no 14218 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14219 # lib.a static archive 14220 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14221 for ld_flag in $LDFLAGS; do 14222 case $ld_flag in 14223 *-brtl*) 14224 aix_use_runtimelinking=yes 14225 break 14226 ;; 14227 esac 14228 done 14229 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14230 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14231 # so we don't have lib.a shared libs to link our executables. 14232 # We have to force runtime linking in this case. 14233 aix_use_runtimelinking=yes 14234 LDFLAGS="$LDFLAGS -Wl,-brtl" 14235 fi 14236 ;; 14237 esac 14238 14239 exp_sym_flag='-bexport' 14240 no_entry_flag='-bnoentry' 14241 fi 14242 14243 # When large executables or shared objects are built, AIX ld can 14244 # have problems creating the table of contents. If linking a library 14245 # or program results in "error TOC overflow" add -mminimal-toc to 14246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14248 14249 archive_cmds_CXX='' 14250 hardcode_direct_CXX=yes 14251 hardcode_direct_absolute_CXX=yes 14252 hardcode_libdir_separator_CXX=':' 14253 link_all_deplibs_CXX=yes 14254 file_list_spec_CXX='$wl-f,' 14255 case $with_aix_soname,$aix_use_runtimelinking in 14256 aix,*) ;; # no import file 14257 svr4,* | *,yes) # use import file 14258 # The Import File defines what to hardcode. 14259 hardcode_direct_CXX=no 14260 hardcode_direct_absolute_CXX=no 14261 ;; 14262 esac 14263 14264 if test yes = "$GXX"; then 14265 case $host_os in aix4.[012]|aix4.[012].*) 14266 # We only want to do this on AIX 4.2 and lower, the check 14267 # below for broken collect2 doesn't work under 4.3+ 14268 collect2name=`$CC -print-prog-name=collect2` 14269 if test -f "$collect2name" && 14270 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14271 then 14272 # We have reworked collect2 14273 : 14274 else 14275 # We have old collect2 14276 hardcode_direct_CXX=unsupported 14277 # It fails to find uninstalled libraries when the uninstalled 14278 # path is not listed in the libpath. Setting hardcode_minus_L 14279 # to unsupported forces relinking 14280 hardcode_minus_L_CXX=yes 14281 hardcode_libdir_flag_spec_CXX='-L$libdir' 14282 hardcode_libdir_separator_CXX= 14283 fi 14284 esac 14285 shared_flag='-shared' 14286 if test yes = "$aix_use_runtimelinking"; then 14287 shared_flag=$shared_flag' $wl-G' 14288 fi 14289 # Need to ensure runtime linking is disabled for the traditional 14290 # shared library, or the linker may eventually find shared libraries 14291 # /with/ Import File - we do not want to mix them. 14292 shared_flag_aix='-shared' 14293 shared_flag_svr4='-shared $wl-G' 14294 else 14295 # not using gcc 14296 if test ia64 = "$host_cpu"; then 14297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14298 # chokes on -Wl,-G. The following line is correct: 14299 shared_flag='-G' 14300 else 14301 if test yes = "$aix_use_runtimelinking"; then 14302 shared_flag='$wl-G' 14303 else 14304 shared_flag='$wl-bM:SRE' 14305 fi 14306 shared_flag_aix='$wl-bM:SRE' 14307 shared_flag_svr4='$wl-G' 14308 fi 14309 fi 14310 14311 export_dynamic_flag_spec_CXX='$wl-bexpall' 14312 # It seems that -bexpall does not export symbols beginning with 14313 # underscore (_), so it is better to generate a list of symbols to 14314 # export. 14315 always_export_symbols_CXX=yes 14316 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14317 # Warning - without using the other runtime loading flags (-brtl), 14318 # -berok will link without error, but may produce a broken library. 14319 # The "-G" linker flag allows undefined symbols. 14320 no_undefined_flag_CXX='-bernotok' 14321 # Determine the default libpath from the value encoded in an empty 14322 # executable. 14323 if test set = "${lt_cv_aix_libpath+set}"; then 14324 aix_libpath=$lt_cv_aix_libpath 14325else 14326 if ${lt_cv_aix_libpath__CXX+:} false; then : 14327 $as_echo_n "(cached) " >&6 14328else 14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14330/* end confdefs.h. */ 14331 14332int 14333main () 14334{ 14335 14336 ; 14337 return 0; 14338} 14339_ACEOF 14340if ac_fn_cxx_try_link "$LINENO"; then : 14341 14342 lt_aix_libpath_sed=' 14343 /Import File Strings/,/^$/ { 14344 /^0/ { 14345 s/^0 *\([^ ]*\) *$/\1/ 14346 p 14347 } 14348 }' 14349 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14350 # Check for a 64-bit object if we didn't find anything. 14351 if test -z "$lt_cv_aix_libpath__CXX"; then 14352 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14353 fi 14354fi 14355rm -f core conftest.err conftest.$ac_objext \ 14356 conftest$ac_exeext conftest.$ac_ext 14357 if test -z "$lt_cv_aix_libpath__CXX"; then 14358 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14359 fi 14360 14361fi 14362 14363 aix_libpath=$lt_cv_aix_libpath__CXX 14364fi 14365 14366 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14367 14368 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14369 else 14370 if test ia64 = "$host_cpu"; then 14371 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14372 allow_undefined_flag_CXX="-z nodefs" 14373 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 14374 else 14375 # Determine the default libpath from the value encoded in an 14376 # empty executable. 14377 if test set = "${lt_cv_aix_libpath+set}"; then 14378 aix_libpath=$lt_cv_aix_libpath 14379else 14380 if ${lt_cv_aix_libpath__CXX+:} false; then : 14381 $as_echo_n "(cached) " >&6 14382else 14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14384/* end confdefs.h. */ 14385 14386int 14387main () 14388{ 14389 14390 ; 14391 return 0; 14392} 14393_ACEOF 14394if ac_fn_cxx_try_link "$LINENO"; then : 14395 14396 lt_aix_libpath_sed=' 14397 /Import File Strings/,/^$/ { 14398 /^0/ { 14399 s/^0 *\([^ ]*\) *$/\1/ 14400 p 14401 } 14402 }' 14403 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14404 # Check for a 64-bit object if we didn't find anything. 14405 if test -z "$lt_cv_aix_libpath__CXX"; then 14406 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14407 fi 14408fi 14409rm -f core conftest.err conftest.$ac_objext \ 14410 conftest$ac_exeext conftest.$ac_ext 14411 if test -z "$lt_cv_aix_libpath__CXX"; then 14412 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14413 fi 14414 14415fi 14416 14417 aix_libpath=$lt_cv_aix_libpath__CXX 14418fi 14419 14420 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14421 # Warning - without using the other run time loading flags, 14422 # -berok will link without error, but may produce a broken library. 14423 no_undefined_flag_CXX=' $wl-bernotok' 14424 allow_undefined_flag_CXX=' $wl-berok' 14425 if test yes = "$with_gnu_ld"; then 14426 # We only use this code for GNU lds that support --whole-archive. 14427 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14428 else 14429 # Exported symbols can be pulled into shared objects from archives 14430 whole_archive_flag_spec_CXX='$convenience' 14431 fi 14432 archive_cmds_need_lc_CXX=yes 14433 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14434 # -brtl affects multiple linker settings, -berok does not and is overridden later 14435 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14436 if test svr4 != "$with_aix_soname"; then 14437 # This is similar to how AIX traditionally builds its shared 14438 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14439 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14440 fi 14441 if test aix != "$with_aix_soname"; then 14442 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14443 else 14444 # used by -dlpreopen to get the symbols 14445 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14446 fi 14447 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14448 fi 14449 fi 14450 ;; 14451 14452 beos*) 14453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14454 allow_undefined_flag_CXX=unsupported 14455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14456 # support --undefined. This deserves some investigation. FIXME 14457 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14458 else 14459 ld_shlibs_CXX=no 14460 fi 14461 ;; 14462 14463 chorus*) 14464 case $cc_basename in 14465 *) 14466 # FIXME: insert proper C++ library support 14467 ld_shlibs_CXX=no 14468 ;; 14469 esac 14470 ;; 14471 14472 cygwin* | mingw* | pw32* | cegcc*) 14473 case $GXX,$cc_basename in 14474 ,cl* | no,cl*) 14475 # Native MSVC 14476 # hardcode_libdir_flag_spec is actually meaningless, as there is 14477 # no search path for DLLs. 14478 hardcode_libdir_flag_spec_CXX=' ' 14479 allow_undefined_flag_CXX=unsupported 14480 always_export_symbols_CXX=yes 14481 file_list_spec_CXX='@' 14482 # Tell ltmain to make .lib files, not .a files. 14483 libext=lib 14484 # Tell ltmain to make .dll files, not .so files. 14485 shrext_cmds=.dll 14486 # FIXME: Setting linknames here is a bad hack. 14487 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14488 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14489 cp "$export_symbols" "$output_objdir/$soname.def"; 14490 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14491 else 14492 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14493 fi~ 14494 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14495 linknames=' 14496 # The linker will not automatically build a static lib if we build a DLL. 14497 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14498 enable_shared_with_static_runtimes_CXX=yes 14499 # Don't use ranlib 14500 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14501 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14502 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14503 case $lt_outputfile in 14504 *.exe|*.EXE) ;; 14505 *) 14506 lt_outputfile=$lt_outputfile.exe 14507 lt_tool_outputfile=$lt_tool_outputfile.exe 14508 ;; 14509 esac~ 14510 func_to_tool_file "$lt_outputfile"~ 14511 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14512 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14513 $RM "$lt_outputfile.manifest"; 14514 fi' 14515 ;; 14516 *) 14517 # g++ 14518 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14519 # as there is no search path for DLLs. 14520 hardcode_libdir_flag_spec_CXX='-L$libdir' 14521 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14522 allow_undefined_flag_CXX=unsupported 14523 always_export_symbols_CXX=no 14524 enable_shared_with_static_runtimes_CXX=yes 14525 14526 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14527 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14528 # If the export-symbols file already is a .def file, use it as 14529 # is; otherwise, prepend EXPORTS... 14530 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14531 cp $export_symbols $output_objdir/$soname.def; 14532 else 14533 echo EXPORTS > $output_objdir/$soname.def; 14534 cat $export_symbols >> $output_objdir/$soname.def; 14535 fi~ 14536 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14537 else 14538 ld_shlibs_CXX=no 14539 fi 14540 ;; 14541 esac 14542 ;; 14543 darwin* | rhapsody*) 14544 14545 14546 archive_cmds_need_lc_CXX=no 14547 hardcode_direct_CXX=no 14548 hardcode_automatic_CXX=yes 14549 hardcode_shlibpath_var_CXX=unsupported 14550 if test yes = "$lt_cv_ld_force_load"; then 14551 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14552 14553 else 14554 whole_archive_flag_spec_CXX='' 14555 fi 14556 link_all_deplibs_CXX=yes 14557 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14558 case $cc_basename in 14559 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14560 *) _lt_dar_can_shared=$GCC ;; 14561 esac 14562 if test yes = "$_lt_dar_can_shared"; then 14563 output_verbose_link_cmd=func_echo_all 14564 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14565 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14566 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 14567 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 14568 if test yes != "$lt_cv_apple_cc_single_mod"; then 14569 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 14570 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 14571 fi 14572 14573 else 14574 ld_shlibs_CXX=no 14575 fi 14576 14577 ;; 14578 14579 os2*) 14580 hardcode_libdir_flag_spec_CXX='-L$libdir' 14581 hardcode_minus_L_CXX=yes 14582 allow_undefined_flag_CXX=unsupported 14583 shrext_cmds=.dll 14584 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14585 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14586 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14587 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14588 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14589 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14590 emximp -o $lib $output_objdir/$libname.def' 14591 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14592 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14593 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14594 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14595 prefix_cmds="$SED"~ 14596 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14597 prefix_cmds="$prefix_cmds -e 1d"; 14598 fi~ 14599 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14600 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14601 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14602 emximp -o $lib $output_objdir/$libname.def' 14603 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14604 enable_shared_with_static_runtimes_CXX=yes 14605 ;; 14606 14607 dgux*) 14608 case $cc_basename in 14609 ec++*) 14610 # FIXME: insert proper C++ library support 14611 ld_shlibs_CXX=no 14612 ;; 14613 ghcx*) 14614 # Green Hills C++ Compiler 14615 # FIXME: insert proper C++ library support 14616 ld_shlibs_CXX=no 14617 ;; 14618 *) 14619 # FIXME: insert proper C++ library support 14620 ld_shlibs_CXX=no 14621 ;; 14622 esac 14623 ;; 14624 14625 freebsd2.*) 14626 # C++ shared libraries reported to be fairly broken before 14627 # switch to ELF 14628 ld_shlibs_CXX=no 14629 ;; 14630 14631 freebsd-elf*) 14632 archive_cmds_need_lc_CXX=no 14633 ;; 14634 14635 freebsd* | dragonfly*) 14636 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14637 # conventions 14638 ld_shlibs_CXX=yes 14639 ;; 14640 14641 haiku*) 14642 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14643 link_all_deplibs_CXX=yes 14644 ;; 14645 14646 hpux9*) 14647 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14648 hardcode_libdir_separator_CXX=: 14649 export_dynamic_flag_spec_CXX='$wl-E' 14650 hardcode_direct_CXX=yes 14651 hardcode_minus_L_CXX=yes # Not in the search PATH, 14652 # but as the default 14653 # location of the library. 14654 14655 case $cc_basename in 14656 CC*) 14657 # FIXME: insert proper C++ library support 14658 ld_shlibs_CXX=no 14659 ;; 14660 aCC*) 14661 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14662 # Commands to make compiler produce verbose output that lists 14663 # what "hidden" libraries, object files and flags are used when 14664 # linking a shared library. 14665 # 14666 # There doesn't appear to be a way to prevent this compiler from 14667 # explicitly linking system object files so we need to strip them 14668 # from the output so that they don't get included in the library 14669 # dependencies. 14670 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14671 ;; 14672 *) 14673 if test yes = "$GXX"; then 14674 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14675 else 14676 # FIXME: insert proper C++ library support 14677 ld_shlibs_CXX=no 14678 fi 14679 ;; 14680 esac 14681 ;; 14682 14683 hpux10*|hpux11*) 14684 if test no = "$with_gnu_ld"; then 14685 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14686 hardcode_libdir_separator_CXX=: 14687 14688 case $host_cpu in 14689 hppa*64*|ia64*) 14690 ;; 14691 *) 14692 export_dynamic_flag_spec_CXX='$wl-E' 14693 ;; 14694 esac 14695 fi 14696 case $host_cpu in 14697 hppa*64*|ia64*) 14698 hardcode_direct_CXX=no 14699 hardcode_shlibpath_var_CXX=no 14700 ;; 14701 *) 14702 hardcode_direct_CXX=yes 14703 hardcode_direct_absolute_CXX=yes 14704 hardcode_minus_L_CXX=yes # Not in the search PATH, 14705 # but as the default 14706 # location of the library. 14707 ;; 14708 esac 14709 14710 case $cc_basename in 14711 CC*) 14712 # FIXME: insert proper C++ library support 14713 ld_shlibs_CXX=no 14714 ;; 14715 aCC*) 14716 case $host_cpu in 14717 hppa*64*) 14718 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14719 ;; 14720 ia64*) 14721 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14722 ;; 14723 *) 14724 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14725 ;; 14726 esac 14727 # Commands to make compiler produce verbose output that lists 14728 # what "hidden" libraries, object files and flags are used when 14729 # linking a shared library. 14730 # 14731 # There doesn't appear to be a way to prevent this compiler from 14732 # explicitly linking system object files so we need to strip them 14733 # from the output so that they don't get included in the library 14734 # dependencies. 14735 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14736 ;; 14737 *) 14738 if test yes = "$GXX"; then 14739 if test no = "$with_gnu_ld"; then 14740 case $host_cpu in 14741 hppa*64*) 14742 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14743 ;; 14744 ia64*) 14745 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14746 ;; 14747 *) 14748 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14749 ;; 14750 esac 14751 fi 14752 else 14753 # FIXME: insert proper C++ library support 14754 ld_shlibs_CXX=no 14755 fi 14756 ;; 14757 esac 14758 ;; 14759 14760 interix[3-9]*) 14761 hardcode_direct_CXX=no 14762 hardcode_shlibpath_var_CXX=no 14763 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14764 export_dynamic_flag_spec_CXX='$wl-E' 14765 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14766 # Instead, shared libraries are loaded at an image base (0x10000000 by 14767 # default) and relocated if they conflict, which is a slow very memory 14768 # consuming and fragmenting process. To avoid this, we pick a random, 14769 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14770 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14771 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14772 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14773 ;; 14774 irix5* | irix6*) 14775 case $cc_basename in 14776 CC*) 14777 # SGI C++ 14778 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14779 14780 # Archives containing C++ object files must be created using 14781 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14782 # necessary to make sure instantiated templates are included 14783 # in the archive. 14784 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14785 ;; 14786 *) 14787 if test yes = "$GXX"; then 14788 if test no = "$with_gnu_ld"; then 14789 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14790 else 14791 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 14792 fi 14793 fi 14794 link_all_deplibs_CXX=yes 14795 ;; 14796 esac 14797 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14798 hardcode_libdir_separator_CXX=: 14799 inherit_rpath_CXX=yes 14800 ;; 14801 14802 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14803 case $cc_basename in 14804 KCC*) 14805 # Kuck and Associates, Inc. (KAI) C++ Compiler 14806 14807 # KCC will only create a shared library if the output file 14808 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14809 # to its proper name (with version) after linking. 14810 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14811 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 14812 # Commands to make compiler produce verbose output that lists 14813 # what "hidden" libraries, object files and flags are used when 14814 # linking a shared library. 14815 # 14816 # There doesn't appear to be a way to prevent this compiler from 14817 # explicitly linking system object files so we need to strip them 14818 # from the output so that they don't get included in the library 14819 # dependencies. 14820 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14821 14822 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14823 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14824 14825 # Archives containing C++ object files must be created using 14826 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14827 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14828 ;; 14829 icpc* | ecpc* ) 14830 # Intel C++ 14831 with_gnu_ld=yes 14832 # version 8.0 and above of icpc choke on multiply defined symbols 14833 # if we add $predep_objects and $postdep_objects, however 7.1 and 14834 # earlier do not add the objects themselves. 14835 case `$CC -V 2>&1` in 14836 *"Version 7."*) 14837 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14838 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14839 ;; 14840 *) # Version 8.0 or newer 14841 tmp_idyn= 14842 case $host_cpu in 14843 ia64*) tmp_idyn=' -i_dynamic';; 14844 esac 14845 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14846 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14847 ;; 14848 esac 14849 archive_cmds_need_lc_CXX=no 14850 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14851 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14852 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14853 ;; 14854 pgCC* | pgcpp*) 14855 # Portland Group C++ compiler 14856 case `$CC -V` in 14857 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14858 prelink_cmds_CXX='tpldir=Template.dir~ 14859 rm -rf $tpldir~ 14860 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14861 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14862 old_archive_cmds_CXX='tpldir=Template.dir~ 14863 rm -rf $tpldir~ 14864 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14865 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14866 $RANLIB $oldlib' 14867 archive_cmds_CXX='tpldir=Template.dir~ 14868 rm -rf $tpldir~ 14869 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14870 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14871 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14872 rm -rf $tpldir~ 14873 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14874 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14875 ;; 14876 *) # Version 6 and above use weak symbols 14877 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14878 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14879 ;; 14880 esac 14881 14882 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14883 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14884 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 14885 ;; 14886 cxx*) 14887 # Compaq C++ 14888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14889 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 14890 14891 runpath_var=LD_RUN_PATH 14892 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14893 hardcode_libdir_separator_CXX=: 14894 14895 # Commands to make compiler produce verbose output that lists 14896 # what "hidden" libraries, object files and flags are used when 14897 # linking a shared library. 14898 # 14899 # There doesn't appear to be a way to prevent this compiler from 14900 # explicitly linking system object files so we need to strip them 14901 # from the output so that they don't get included in the library 14902 # dependencies. 14903 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14904 ;; 14905 xl* | mpixl* | bgxl*) 14906 # IBM XL 8.0 on PPC, with GNU ld 14907 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14908 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14909 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14910 if test yes = "$supports_anon_versioning"; then 14911 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14913 echo "local: *; };" >> $output_objdir/$libname.ver~ 14914 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14915 fi 14916 ;; 14917 *) 14918 case `$CC -V 2>&1 | sed 5q` in 14919 *Sun\ C*) 14920 # Sun C++ 5.9 14921 no_undefined_flag_CXX=' -zdefs' 14922 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14923 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 14924 hardcode_libdir_flag_spec_CXX='-R$libdir' 14925 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 14926 compiler_needs_object_CXX=yes 14927 14928 # Not sure whether something based on 14929 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14930 # would be better. 14931 output_verbose_link_cmd='func_echo_all' 14932 14933 # Archives containing C++ object files must be created using 14934 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14935 # necessary to make sure instantiated templates are included 14936 # in the archive. 14937 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14938 ;; 14939 esac 14940 ;; 14941 esac 14942 ;; 14943 14944 lynxos*) 14945 # FIXME: insert proper C++ library support 14946 ld_shlibs_CXX=no 14947 ;; 14948 14949 m88k*) 14950 # FIXME: insert proper C++ library support 14951 ld_shlibs_CXX=no 14952 ;; 14953 14954 mvs*) 14955 case $cc_basename in 14956 cxx*) 14957 # FIXME: insert proper C++ library support 14958 ld_shlibs_CXX=no 14959 ;; 14960 *) 14961 # FIXME: insert proper C++ library support 14962 ld_shlibs_CXX=no 14963 ;; 14964 esac 14965 ;; 14966 14967 netbsd*) 14968 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14969 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14970 wlarc= 14971 hardcode_libdir_flag_spec_CXX='-R$libdir' 14972 hardcode_direct_CXX=yes 14973 hardcode_shlibpath_var_CXX=no 14974 fi 14975 # Workaround some broken pre-1.5 toolchains 14976 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14977 ;; 14978 14979 *nto* | *qnx*) 14980 ld_shlibs_CXX=yes 14981 ;; 14982 14983 openbsd* | bitrig*) 14984 if test -f /usr/libexec/ld.so; then 14985 hardcode_direct_CXX=yes 14986 hardcode_shlibpath_var_CXX=no 14987 hardcode_direct_absolute_CXX=yes 14988 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14989 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14991 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14992 export_dynamic_flag_spec_CXX='$wl-E' 14993 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14994 fi 14995 output_verbose_link_cmd=func_echo_all 14996 else 14997 ld_shlibs_CXX=no 14998 fi 14999 ;; 15000 15001 osf3* | osf4* | osf5*) 15002 case $cc_basename in 15003 KCC*) 15004 # Kuck and Associates, Inc. (KAI) C++ Compiler 15005 15006 # KCC will only create a shared library if the output file 15007 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15008 # to its proper name (with version) after linking. 15009 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 15010 15011 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15012 hardcode_libdir_separator_CXX=: 15013 15014 # Archives containing C++ object files must be created using 15015 # the KAI C++ compiler. 15016 case $host in 15017 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15018 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15019 esac 15020 ;; 15021 RCC*) 15022 # Rational C++ 2.4.1 15023 # FIXME: insert proper C++ library support 15024 ld_shlibs_CXX=no 15025 ;; 15026 cxx*) 15027 case $host in 15028 osf3*) 15029 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15030 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 15031 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15032 ;; 15033 *) 15034 allow_undefined_flag_CXX=' -expect_unresolved \*' 15035 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 15036 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15037 echo "-hidden">> $lib.exp~ 15038 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 15039 $RM $lib.exp' 15040 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15041 ;; 15042 esac 15043 15044 hardcode_libdir_separator_CXX=: 15045 15046 # Commands to make compiler produce verbose output that lists 15047 # what "hidden" libraries, object files and flags are used when 15048 # linking a shared library. 15049 # 15050 # There doesn't appear to be a way to prevent this compiler from 15051 # explicitly linking system object files so we need to strip them 15052 # from the output so that they don't get included in the library 15053 # dependencies. 15054 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15055 ;; 15056 *) 15057 if test yes,no = "$GXX,$with_gnu_ld"; then 15058 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15059 case $host in 15060 osf3*) 15061 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 15062 ;; 15063 *) 15064 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 15065 ;; 15066 esac 15067 15068 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15069 hardcode_libdir_separator_CXX=: 15070 15071 # Commands to make compiler produce verbose output that lists 15072 # what "hidden" libraries, object files and flags are used when 15073 # linking a shared library. 15074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15075 15076 else 15077 # FIXME: insert proper C++ library support 15078 ld_shlibs_CXX=no 15079 fi 15080 ;; 15081 esac 15082 ;; 15083 15084 psos*) 15085 # FIXME: insert proper C++ library support 15086 ld_shlibs_CXX=no 15087 ;; 15088 15089 sunos4*) 15090 case $cc_basename in 15091 CC*) 15092 # Sun C++ 4.x 15093 # FIXME: insert proper C++ library support 15094 ld_shlibs_CXX=no 15095 ;; 15096 lcc*) 15097 # Lucid 15098 # FIXME: insert proper C++ library support 15099 ld_shlibs_CXX=no 15100 ;; 15101 *) 15102 # FIXME: insert proper C++ library support 15103 ld_shlibs_CXX=no 15104 ;; 15105 esac 15106 ;; 15107 15108 solaris*) 15109 case $cc_basename in 15110 CC* | sunCC*) 15111 # Sun C++ 4.2, 5.x and Centerline C++ 15112 archive_cmds_need_lc_CXX=yes 15113 no_undefined_flag_CXX=' -zdefs' 15114 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15115 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15116 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15117 15118 hardcode_libdir_flag_spec_CXX='-R$libdir' 15119 hardcode_shlibpath_var_CXX=no 15120 case $host_os in 15121 solaris2.[0-5] | solaris2.[0-5].*) ;; 15122 *) 15123 # The compiler driver will combine and reorder linker options, 15124 # but understands '-z linker_flag'. 15125 # Supported since Solaris 2.6 (maybe 2.5.1?) 15126 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15127 ;; 15128 esac 15129 link_all_deplibs_CXX=yes 15130 15131 output_verbose_link_cmd='func_echo_all' 15132 15133 # Archives containing C++ object files must be created using 15134 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15135 # necessary to make sure instantiated templates are included 15136 # in the archive. 15137 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15138 ;; 15139 gcx*) 15140 # Green Hills C++ Compiler 15141 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15142 15143 # The C++ compiler must be used to create the archive. 15144 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15145 ;; 15146 *) 15147 # GNU C++ compiler with Solaris linker 15148 if test yes,no = "$GXX,$with_gnu_ld"; then 15149 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15150 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15151 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15152 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15153 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15154 15155 # Commands to make compiler produce verbose output that lists 15156 # what "hidden" libraries, object files and flags are used when 15157 # linking a shared library. 15158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15159 else 15160 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15161 # platform. 15162 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15163 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15164 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15165 15166 # Commands to make compiler produce verbose output that lists 15167 # what "hidden" libraries, object files and flags are used when 15168 # linking a shared library. 15169 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15170 fi 15171 15172 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15173 case $host_os in 15174 solaris2.[0-5] | solaris2.[0-5].*) ;; 15175 *) 15176 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15177 ;; 15178 esac 15179 fi 15180 ;; 15181 esac 15182 ;; 15183 15184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15185 no_undefined_flag_CXX='$wl-z,text' 15186 archive_cmds_need_lc_CXX=no 15187 hardcode_shlibpath_var_CXX=no 15188 runpath_var='LD_RUN_PATH' 15189 15190 case $cc_basename in 15191 CC*) 15192 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15193 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15194 ;; 15195 *) 15196 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15197 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15198 ;; 15199 esac 15200 ;; 15201 15202 sysv5* | sco3.2v5* | sco5v6*) 15203 # Note: We CANNOT use -z defs as we might desire, because we do not 15204 # link with -lc, and that would cause any symbols used from libc to 15205 # always be unresolved, which means just about no library would 15206 # ever link correctly. If we're not using GNU ld we use -z text 15207 # though, which does catch some bad symbols but isn't as heavy-handed 15208 # as -z defs. 15209 no_undefined_flag_CXX='$wl-z,text' 15210 allow_undefined_flag_CXX='$wl-z,nodefs' 15211 archive_cmds_need_lc_CXX=no 15212 hardcode_shlibpath_var_CXX=no 15213 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15214 hardcode_libdir_separator_CXX=':' 15215 link_all_deplibs_CXX=yes 15216 export_dynamic_flag_spec_CXX='$wl-Bexport' 15217 runpath_var='LD_RUN_PATH' 15218 15219 case $cc_basename in 15220 CC*) 15221 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15222 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15223 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15224 '"$old_archive_cmds_CXX" 15225 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15226 '"$reload_cmds_CXX" 15227 ;; 15228 *) 15229 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15230 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15231 ;; 15232 esac 15233 ;; 15234 15235 tandem*) 15236 case $cc_basename in 15237 NCC*) 15238 # NonStop-UX NCC 3.20 15239 # FIXME: insert proper C++ library support 15240 ld_shlibs_CXX=no 15241 ;; 15242 *) 15243 # FIXME: insert proper C++ library support 15244 ld_shlibs_CXX=no 15245 ;; 15246 esac 15247 ;; 15248 15249 vxworks*) 15250 # FIXME: insert proper C++ library support 15251 ld_shlibs_CXX=no 15252 ;; 15253 15254 *) 15255 # FIXME: insert proper C++ library support 15256 ld_shlibs_CXX=no 15257 ;; 15258 esac 15259 15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15261$as_echo "$ld_shlibs_CXX" >&6; } 15262 test no = "$ld_shlibs_CXX" && can_build_shared=no 15263 15264 GCC_CXX=$GXX 15265 LD_CXX=$LD 15266 15267 ## CAVEAT EMPTOR: 15268 ## There is no encapsulation within the following macros, do not change 15269 ## the running order or otherwise move them around unless you know exactly 15270 ## what you are doing... 15271 # Dependencies to place before and after the object being linked: 15272predep_objects_CXX= 15273postdep_objects_CXX= 15274predeps_CXX= 15275postdeps_CXX= 15276compiler_lib_search_path_CXX= 15277 15278cat > conftest.$ac_ext <<_LT_EOF 15279class Foo 15280{ 15281public: 15282 Foo (void) { a = 0; } 15283private: 15284 int a; 15285}; 15286_LT_EOF 15287 15288 15289_lt_libdeps_save_CFLAGS=$CFLAGS 15290case "$CC $CFLAGS " in #( 15291*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15292*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15293*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15294esac 15295 15296if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15297 (eval $ac_compile) 2>&5 15298 ac_status=$? 15299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15300 test $ac_status = 0; }; then 15301 # Parse the compiler output and extract the necessary 15302 # objects, libraries and library flags. 15303 15304 # Sentinel used to keep track of whether or not we are before 15305 # the conftest object file. 15306 pre_test_object_deps_done=no 15307 15308 for p in `eval "$output_verbose_link_cmd"`; do 15309 case $prev$p in 15310 15311 -L* | -R* | -l*) 15312 # Some compilers place space between "-{L,R}" and the path. 15313 # Remove the space. 15314 if test x-L = "$p" || 15315 test x-R = "$p"; then 15316 prev=$p 15317 continue 15318 fi 15319 15320 # Expand the sysroot to ease extracting the directories later. 15321 if test -z "$prev"; then 15322 case $p in 15323 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15324 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15325 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15326 esac 15327 fi 15328 case $p in 15329 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15330 esac 15331 if test no = "$pre_test_object_deps_done"; then 15332 case $prev in 15333 -L | -R) 15334 # Internal compiler library paths should come after those 15335 # provided the user. The postdeps already come after the 15336 # user supplied libs so there is no need to process them. 15337 if test -z "$compiler_lib_search_path_CXX"; then 15338 compiler_lib_search_path_CXX=$prev$p 15339 else 15340 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15341 fi 15342 ;; 15343 # The "-l" case would never come before the object being 15344 # linked, so don't bother handling this case. 15345 esac 15346 else 15347 if test -z "$postdeps_CXX"; then 15348 postdeps_CXX=$prev$p 15349 else 15350 postdeps_CXX="${postdeps_CXX} $prev$p" 15351 fi 15352 fi 15353 prev= 15354 ;; 15355 15356 *.lto.$objext) ;; # Ignore GCC LTO objects 15357 *.$objext) 15358 # This assumes that the test object file only shows up 15359 # once in the compiler output. 15360 if test "$p" = "conftest.$objext"; then 15361 pre_test_object_deps_done=yes 15362 continue 15363 fi 15364 15365 if test no = "$pre_test_object_deps_done"; then 15366 if test -z "$predep_objects_CXX"; then 15367 predep_objects_CXX=$p 15368 else 15369 predep_objects_CXX="$predep_objects_CXX $p" 15370 fi 15371 else 15372 if test -z "$postdep_objects_CXX"; then 15373 postdep_objects_CXX=$p 15374 else 15375 postdep_objects_CXX="$postdep_objects_CXX $p" 15376 fi 15377 fi 15378 ;; 15379 15380 *) ;; # Ignore the rest. 15381 15382 esac 15383 done 15384 15385 # Clean up. 15386 rm -f a.out a.exe 15387else 15388 echo "libtool.m4: error: problem compiling CXX test program" 15389fi 15390 15391$RM -f confest.$objext 15392CFLAGS=$_lt_libdeps_save_CFLAGS 15393 15394# PORTME: override above test on systems where it is broken 15395case $host_os in 15396interix[3-9]*) 15397 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15398 # hack all around it, let's just trust "g++" to DTRT. 15399 predep_objects_CXX= 15400 postdep_objects_CXX= 15401 postdeps_CXX= 15402 ;; 15403esac 15404 15405 15406case " $postdeps_CXX " in 15407*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15408esac 15409 compiler_lib_search_dirs_CXX= 15410if test -n "${compiler_lib_search_path_CXX}"; then 15411 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15412fi 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 lt_prog_compiler_wl_CXX= 15445lt_prog_compiler_pic_CXX= 15446lt_prog_compiler_static_CXX= 15447 15448 15449 # C++ specific cases for pic, static, wl, etc. 15450 if test yes = "$GXX"; then 15451 lt_prog_compiler_wl_CXX='-Wl,' 15452 lt_prog_compiler_static_CXX='-static' 15453 15454 case $host_os in 15455 aix*) 15456 # All AIX code is PIC. 15457 if test ia64 = "$host_cpu"; then 15458 # AIX 5 now supports IA64 processor 15459 lt_prog_compiler_static_CXX='-Bstatic' 15460 fi 15461 lt_prog_compiler_pic_CXX='-fPIC' 15462 ;; 15463 15464 amigaos*) 15465 case $host_cpu in 15466 powerpc) 15467 # see comment about AmigaOS4 .so support 15468 lt_prog_compiler_pic_CXX='-fPIC' 15469 ;; 15470 m68k) 15471 # FIXME: we need at least 68020 code to build shared libraries, but 15472 # adding the '-m68020' flag to GCC prevents building anything better, 15473 # like '-m68040'. 15474 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15475 ;; 15476 esac 15477 ;; 15478 15479 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15480 # PIC is the default for these OSes. 15481 ;; 15482 mingw* | cygwin* | os2* | pw32* | cegcc*) 15483 # This hack is so that the source file can tell whether it is being 15484 # built for inclusion in a dll (and should export symbols for example). 15485 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15486 # (--disable-auto-import) libraries 15487 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15488 case $host_os in 15489 os2*) 15490 lt_prog_compiler_static_CXX='$wl-static' 15491 ;; 15492 esac 15493 ;; 15494 darwin* | rhapsody*) 15495 # PIC is the default on this platform 15496 # Common symbols not allowed in MH_DYLIB files 15497 lt_prog_compiler_pic_CXX='-fno-common' 15498 ;; 15499 *djgpp*) 15500 # DJGPP does not support shared libraries at all 15501 lt_prog_compiler_pic_CXX= 15502 ;; 15503 haiku*) 15504 # PIC is the default for Haiku. 15505 # The "-static" flag exists, but is broken. 15506 lt_prog_compiler_static_CXX= 15507 ;; 15508 interix[3-9]*) 15509 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15510 # Instead, we relocate shared libraries at runtime. 15511 ;; 15512 sysv4*MP*) 15513 if test -d /usr/nec; then 15514 lt_prog_compiler_pic_CXX=-Kconform_pic 15515 fi 15516 ;; 15517 hpux*) 15518 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15519 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15520 # sets the default TLS model and affects inlining. 15521 case $host_cpu in 15522 hppa*64*) 15523 ;; 15524 *) 15525 lt_prog_compiler_pic_CXX='-fPIC' 15526 ;; 15527 esac 15528 ;; 15529 *qnx* | *nto*) 15530 # QNX uses GNU C++, but need to define -shared option too, otherwise 15531 # it will coredump. 15532 lt_prog_compiler_pic_CXX='-fPIC -shared' 15533 ;; 15534 *) 15535 lt_prog_compiler_pic_CXX='-fPIC' 15536 ;; 15537 esac 15538 else 15539 case $host_os in 15540 aix[4-9]*) 15541 # All AIX code is PIC. 15542 if test ia64 = "$host_cpu"; then 15543 # AIX 5 now supports IA64 processor 15544 lt_prog_compiler_static_CXX='-Bstatic' 15545 else 15546 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15547 fi 15548 ;; 15549 chorus*) 15550 case $cc_basename in 15551 cxch68*) 15552 # Green Hills C++ Compiler 15553 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15554 ;; 15555 esac 15556 ;; 15557 mingw* | cygwin* | os2* | pw32* | cegcc*) 15558 # This hack is so that the source file can tell whether it is being 15559 # built for inclusion in a dll (and should export symbols for example). 15560 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15561 ;; 15562 dgux*) 15563 case $cc_basename in 15564 ec++*) 15565 lt_prog_compiler_pic_CXX='-KPIC' 15566 ;; 15567 ghcx*) 15568 # Green Hills C++ Compiler 15569 lt_prog_compiler_pic_CXX='-pic' 15570 ;; 15571 *) 15572 ;; 15573 esac 15574 ;; 15575 freebsd* | dragonfly*) 15576 # FreeBSD uses GNU C++ 15577 ;; 15578 hpux9* | hpux10* | hpux11*) 15579 case $cc_basename in 15580 CC*) 15581 lt_prog_compiler_wl_CXX='-Wl,' 15582 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15583 if test ia64 != "$host_cpu"; then 15584 lt_prog_compiler_pic_CXX='+Z' 15585 fi 15586 ;; 15587 aCC*) 15588 lt_prog_compiler_wl_CXX='-Wl,' 15589 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15590 case $host_cpu in 15591 hppa*64*|ia64*) 15592 # +Z the default 15593 ;; 15594 *) 15595 lt_prog_compiler_pic_CXX='+Z' 15596 ;; 15597 esac 15598 ;; 15599 *) 15600 ;; 15601 esac 15602 ;; 15603 interix*) 15604 # This is c89, which is MS Visual C++ (no shared libs) 15605 # Anyone wants to do a port? 15606 ;; 15607 irix5* | irix6* | nonstopux*) 15608 case $cc_basename in 15609 CC*) 15610 lt_prog_compiler_wl_CXX='-Wl,' 15611 lt_prog_compiler_static_CXX='-non_shared' 15612 # CC pic flag -KPIC is the default. 15613 ;; 15614 *) 15615 ;; 15616 esac 15617 ;; 15618 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15619 case $cc_basename in 15620 KCC*) 15621 # KAI C++ Compiler 15622 lt_prog_compiler_wl_CXX='--backend -Wl,' 15623 lt_prog_compiler_pic_CXX='-fPIC' 15624 ;; 15625 ecpc* ) 15626 # old Intel C++ for x86_64, which still supported -KPIC. 15627 lt_prog_compiler_wl_CXX='-Wl,' 15628 lt_prog_compiler_pic_CXX='-KPIC' 15629 lt_prog_compiler_static_CXX='-static' 15630 ;; 15631 icpc* ) 15632 # Intel C++, used to be incompatible with GCC. 15633 # ICC 10 doesn't accept -KPIC any more. 15634 lt_prog_compiler_wl_CXX='-Wl,' 15635 lt_prog_compiler_pic_CXX='-fPIC' 15636 lt_prog_compiler_static_CXX='-static' 15637 ;; 15638 pgCC* | pgcpp*) 15639 # Portland Group C++ compiler 15640 lt_prog_compiler_wl_CXX='-Wl,' 15641 lt_prog_compiler_pic_CXX='-fpic' 15642 lt_prog_compiler_static_CXX='-Bstatic' 15643 ;; 15644 cxx*) 15645 # Compaq C++ 15646 # Make sure the PIC flag is empty. It appears that all Alpha 15647 # Linux and Compaq Tru64 Unix objects are PIC. 15648 lt_prog_compiler_pic_CXX= 15649 lt_prog_compiler_static_CXX='-non_shared' 15650 ;; 15651 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15652 # IBM XL 8.0, 9.0 on PPC and BlueGene 15653 lt_prog_compiler_wl_CXX='-Wl,' 15654 lt_prog_compiler_pic_CXX='-qpic' 15655 lt_prog_compiler_static_CXX='-qstaticlink' 15656 ;; 15657 *) 15658 case `$CC -V 2>&1 | sed 5q` in 15659 *Sun\ C*) 15660 # Sun C++ 5.9 15661 lt_prog_compiler_pic_CXX='-KPIC' 15662 lt_prog_compiler_static_CXX='-Bstatic' 15663 lt_prog_compiler_wl_CXX='-Qoption ld ' 15664 ;; 15665 esac 15666 ;; 15667 esac 15668 ;; 15669 lynxos*) 15670 ;; 15671 m88k*) 15672 ;; 15673 mvs*) 15674 case $cc_basename in 15675 cxx*) 15676 lt_prog_compiler_pic_CXX='-W c,exportall' 15677 ;; 15678 *) 15679 ;; 15680 esac 15681 ;; 15682 netbsd*) 15683 ;; 15684 *qnx* | *nto*) 15685 # QNX uses GNU C++, but need to define -shared option too, otherwise 15686 # it will coredump. 15687 lt_prog_compiler_pic_CXX='-fPIC -shared' 15688 ;; 15689 osf3* | osf4* | osf5*) 15690 case $cc_basename in 15691 KCC*) 15692 lt_prog_compiler_wl_CXX='--backend -Wl,' 15693 ;; 15694 RCC*) 15695 # Rational C++ 2.4.1 15696 lt_prog_compiler_pic_CXX='-pic' 15697 ;; 15698 cxx*) 15699 # Digital/Compaq C++ 15700 lt_prog_compiler_wl_CXX='-Wl,' 15701 # Make sure the PIC flag is empty. It appears that all Alpha 15702 # Linux and Compaq Tru64 Unix objects are PIC. 15703 lt_prog_compiler_pic_CXX= 15704 lt_prog_compiler_static_CXX='-non_shared' 15705 ;; 15706 *) 15707 ;; 15708 esac 15709 ;; 15710 psos*) 15711 ;; 15712 solaris*) 15713 case $cc_basename in 15714 CC* | sunCC*) 15715 # Sun C++ 4.2, 5.x and Centerline C++ 15716 lt_prog_compiler_pic_CXX='-KPIC' 15717 lt_prog_compiler_static_CXX='-Bstatic' 15718 lt_prog_compiler_wl_CXX='-Qoption ld ' 15719 ;; 15720 gcx*) 15721 # Green Hills C++ Compiler 15722 lt_prog_compiler_pic_CXX='-PIC' 15723 ;; 15724 *) 15725 ;; 15726 esac 15727 ;; 15728 sunos4*) 15729 case $cc_basename in 15730 CC*) 15731 # Sun C++ 4.x 15732 lt_prog_compiler_pic_CXX='-pic' 15733 lt_prog_compiler_static_CXX='-Bstatic' 15734 ;; 15735 lcc*) 15736 # Lucid 15737 lt_prog_compiler_pic_CXX='-pic' 15738 ;; 15739 *) 15740 ;; 15741 esac 15742 ;; 15743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15744 case $cc_basename in 15745 CC*) 15746 lt_prog_compiler_wl_CXX='-Wl,' 15747 lt_prog_compiler_pic_CXX='-KPIC' 15748 lt_prog_compiler_static_CXX='-Bstatic' 15749 ;; 15750 esac 15751 ;; 15752 tandem*) 15753 case $cc_basename in 15754 NCC*) 15755 # NonStop-UX NCC 3.20 15756 lt_prog_compiler_pic_CXX='-KPIC' 15757 ;; 15758 *) 15759 ;; 15760 esac 15761 ;; 15762 vxworks*) 15763 ;; 15764 *) 15765 lt_prog_compiler_can_build_shared_CXX=no 15766 ;; 15767 esac 15768 fi 15769 15770case $host_os in 15771 # For platforms that do not support PIC, -DPIC is meaningless: 15772 *djgpp*) 15773 lt_prog_compiler_pic_CXX= 15774 ;; 15775 *) 15776 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15777 ;; 15778esac 15779 15780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15781$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15782if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15783 $as_echo_n "(cached) " >&6 15784else 15785 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15786fi 15787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15788$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15789lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15790 15791# 15792# Check to make sure the PIC flag actually works. 15793# 15794if test -n "$lt_prog_compiler_pic_CXX"; then 15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15796$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15797if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15798 $as_echo_n "(cached) " >&6 15799else 15800 lt_cv_prog_compiler_pic_works_CXX=no 15801 ac_outfile=conftest.$ac_objext 15802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15803 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15804 # Insert the option either (1) after the last *FLAGS variable, or 15805 # (2) before a word containing "conftest.", or (3) at the end. 15806 # Note that $ac_compile itself does not contain backslashes and begins 15807 # with a dollar sign (not a hyphen), so the echo should work correctly. 15808 # The option is referenced via a variable to avoid confusing sed. 15809 lt_compile=`echo "$ac_compile" | $SED \ 15810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15812 -e 's:$: $lt_compiler_flag:'` 15813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15814 (eval "$lt_compile" 2>conftest.err) 15815 ac_status=$? 15816 cat conftest.err >&5 15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15818 if (exit $ac_status) && test -s "$ac_outfile"; then 15819 # The compiler can only warn and ignore the option if not recognized 15820 # So say no if there are warnings other than the usual output. 15821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15824 lt_cv_prog_compiler_pic_works_CXX=yes 15825 fi 15826 fi 15827 $RM conftest* 15828 15829fi 15830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15831$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15832 15833if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15834 case $lt_prog_compiler_pic_CXX in 15835 "" | " "*) ;; 15836 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15837 esac 15838else 15839 lt_prog_compiler_pic_CXX= 15840 lt_prog_compiler_can_build_shared_CXX=no 15841fi 15842 15843fi 15844 15845 15846 15847 15848 15849# 15850# Check to make sure the static flag actually works. 15851# 15852wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15854$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15855if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15856 $as_echo_n "(cached) " >&6 15857else 15858 lt_cv_prog_compiler_static_works_CXX=no 15859 save_LDFLAGS=$LDFLAGS 15860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15861 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15863 # The linker can only warn and ignore the option if not recognized 15864 # So say no if there are warnings 15865 if test -s conftest.err; then 15866 # Append any errors to the config.log. 15867 cat conftest.err 1>&5 15868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15870 if diff conftest.exp conftest.er2 >/dev/null; then 15871 lt_cv_prog_compiler_static_works_CXX=yes 15872 fi 15873 else 15874 lt_cv_prog_compiler_static_works_CXX=yes 15875 fi 15876 fi 15877 $RM -r conftest* 15878 LDFLAGS=$save_LDFLAGS 15879 15880fi 15881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15882$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15883 15884if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15885 : 15886else 15887 lt_prog_compiler_static_CXX= 15888fi 15889 15890 15891 15892 15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15894$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15895if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15896 $as_echo_n "(cached) " >&6 15897else 15898 lt_cv_prog_compiler_c_o_CXX=no 15899 $RM -r conftest 2>/dev/null 15900 mkdir conftest 15901 cd conftest 15902 mkdir out 15903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15904 15905 lt_compiler_flag="-o out/conftest2.$ac_objext" 15906 # Insert the option either (1) after the last *FLAGS variable, or 15907 # (2) before a word containing "conftest.", or (3) at the end. 15908 # Note that $ac_compile itself does not contain backslashes and begins 15909 # with a dollar sign (not a hyphen), so the echo should work correctly. 15910 lt_compile=`echo "$ac_compile" | $SED \ 15911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15913 -e 's:$: $lt_compiler_flag:'` 15914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15915 (eval "$lt_compile" 2>out/conftest.err) 15916 ac_status=$? 15917 cat out/conftest.err >&5 15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15919 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15920 then 15921 # The compiler can only warn and ignore the option if not recognized 15922 # So say no if there are warnings 15923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15926 lt_cv_prog_compiler_c_o_CXX=yes 15927 fi 15928 fi 15929 chmod u+w . 2>&5 15930 $RM conftest* 15931 # SGI C++ compiler will create directory out/ii_files/ for 15932 # template instantiation 15933 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15934 $RM out/* && rmdir out 15935 cd .. 15936 $RM -r conftest 15937 $RM conftest* 15938 15939fi 15940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15941$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15942 15943 15944 15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15946$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15947if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15948 $as_echo_n "(cached) " >&6 15949else 15950 lt_cv_prog_compiler_c_o_CXX=no 15951 $RM -r conftest 2>/dev/null 15952 mkdir conftest 15953 cd conftest 15954 mkdir out 15955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15956 15957 lt_compiler_flag="-o out/conftest2.$ac_objext" 15958 # Insert the option either (1) after the last *FLAGS variable, or 15959 # (2) before a word containing "conftest.", or (3) at the end. 15960 # Note that $ac_compile itself does not contain backslashes and begins 15961 # with a dollar sign (not a hyphen), so the echo should work correctly. 15962 lt_compile=`echo "$ac_compile" | $SED \ 15963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15965 -e 's:$: $lt_compiler_flag:'` 15966 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15967 (eval "$lt_compile" 2>out/conftest.err) 15968 ac_status=$? 15969 cat out/conftest.err >&5 15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15971 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15972 then 15973 # The compiler can only warn and ignore the option if not recognized 15974 # So say no if there are warnings 15975 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15976 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15977 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15978 lt_cv_prog_compiler_c_o_CXX=yes 15979 fi 15980 fi 15981 chmod u+w . 2>&5 15982 $RM conftest* 15983 # SGI C++ compiler will create directory out/ii_files/ for 15984 # template instantiation 15985 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15986 $RM out/* && rmdir out 15987 cd .. 15988 $RM -r conftest 15989 $RM conftest* 15990 15991fi 15992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15993$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15994 15995 15996 15997 15998hard_links=nottested 15999if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16000 # do not overwrite the value of need_locks provided by the user 16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16002$as_echo_n "checking if we can lock with hard links... " >&6; } 16003 hard_links=yes 16004 $RM conftest* 16005 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16006 touch conftest.a 16007 ln conftest.a conftest.b 2>&5 || hard_links=no 16008 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16010$as_echo "$hard_links" >&6; } 16011 if test no = "$hard_links"; then 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16013$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16014 need_locks=warn 16015 fi 16016else 16017 need_locks=no 16018fi 16019 16020 16021 16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16023$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16024 16025 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16026 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16027 case $host_os in 16028 aix[4-9]*) 16029 # If we're using GNU nm, then we don't want the "-C" option. 16030 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16031 # Without the "-l" option, or with the "-B" option, AIX nm treats 16032 # weak defined symbols like other global defined symbols, whereas 16033 # GNU nm marks them as "W". 16034 # While the 'weak' keyword is ignored in the Export File, we need 16035 # it in the Import File for the 'aix-soname' feature, so we have 16036 # to replace the "-B" option with "-P" for AIX nm. 16037 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16038 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16039 else 16040 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16041 fi 16042 ;; 16043 pw32*) 16044 export_symbols_cmds_CXX=$ltdll_cmds 16045 ;; 16046 cygwin* | mingw* | cegcc*) 16047 case $cc_basename in 16048 cl*) 16049 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16050 ;; 16051 *) 16052 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 16053 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16054 ;; 16055 esac 16056 ;; 16057 *) 16058 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16059 ;; 16060 esac 16061 16062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16063$as_echo "$ld_shlibs_CXX" >&6; } 16064test no = "$ld_shlibs_CXX" && can_build_shared=no 16065 16066with_gnu_ld_CXX=$with_gnu_ld 16067 16068 16069 16070 16071 16072 16073# 16074# Do we need to explicitly link libc? 16075# 16076case "x$archive_cmds_need_lc_CXX" in 16077x|xyes) 16078 # Assume -lc should be added 16079 archive_cmds_need_lc_CXX=yes 16080 16081 if test yes,yes = "$GCC,$enable_shared"; then 16082 case $archive_cmds_CXX in 16083 *'~'*) 16084 # FIXME: we may have to deal with multi-command sequences. 16085 ;; 16086 '$CC '*) 16087 # Test whether the compiler implicitly links with -lc since on some 16088 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16089 # to ld, don't add -lc before -lgcc. 16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16091$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16092if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16093 $as_echo_n "(cached) " >&6 16094else 16095 $RM conftest* 16096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16097 16098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16099 (eval $ac_compile) 2>&5 16100 ac_status=$? 16101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16102 test $ac_status = 0; } 2>conftest.err; then 16103 soname=conftest 16104 lib=conftest 16105 libobjs=conftest.$ac_objext 16106 deplibs= 16107 wl=$lt_prog_compiler_wl_CXX 16108 pic_flag=$lt_prog_compiler_pic_CXX 16109 compiler_flags=-v 16110 linker_flags=-v 16111 verstring= 16112 output_objdir=. 16113 libname=conftest 16114 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16115 allow_undefined_flag_CXX= 16116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16117 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16118 ac_status=$? 16119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16120 test $ac_status = 0; } 16121 then 16122 lt_cv_archive_cmds_need_lc_CXX=no 16123 else 16124 lt_cv_archive_cmds_need_lc_CXX=yes 16125 fi 16126 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16127 else 16128 cat conftest.err 1>&5 16129 fi 16130 $RM conftest* 16131 16132fi 16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16134$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16135 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16136 ;; 16137 esac 16138 fi 16139 ;; 16140esac 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16204$as_echo_n "checking dynamic linker characteristics... " >&6; } 16205 16206library_names_spec= 16207libname_spec='lib$name' 16208soname_spec= 16209shrext_cmds=.so 16210postinstall_cmds= 16211postuninstall_cmds= 16212finish_cmds= 16213finish_eval= 16214shlibpath_var= 16215shlibpath_overrides_runpath=unknown 16216version_type=none 16217dynamic_linker="$host_os ld.so" 16218sys_lib_dlsearch_path_spec="/lib /usr/lib" 16219need_lib_prefix=unknown 16220hardcode_into_libs=no 16221 16222# when you set need_version to no, make sure it does not cause -set_version 16223# flags to be left without arguments 16224need_version=unknown 16225 16226 16227 16228case $host_os in 16229aix3*) 16230 version_type=linux # correct to gnu/linux during the next big refactor 16231 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16232 shlibpath_var=LIBPATH 16233 16234 # AIX 3 has no versioning support, so we append a major version to the name. 16235 soname_spec='$libname$release$shared_ext$major' 16236 ;; 16237 16238aix[4-9]*) 16239 version_type=linux # correct to gnu/linux during the next big refactor 16240 need_lib_prefix=no 16241 need_version=no 16242 hardcode_into_libs=yes 16243 if test ia64 = "$host_cpu"; then 16244 # AIX 5 supports IA64 16245 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16246 shlibpath_var=LD_LIBRARY_PATH 16247 else 16248 # With GCC up to 2.95.x, collect2 would create an import file 16249 # for dependence libraries. The import file would start with 16250 # the line '#! .'. This would cause the generated library to 16251 # depend on '.', always an invalid library. This was fixed in 16252 # development snapshots of GCC prior to 3.0. 16253 case $host_os in 16254 aix4 | aix4.[01] | aix4.[01].*) 16255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16256 echo ' yes ' 16257 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16258 : 16259 else 16260 can_build_shared=no 16261 fi 16262 ;; 16263 esac 16264 # Using Import Files as archive members, it is possible to support 16265 # filename-based versioning of shared library archives on AIX. While 16266 # this would work for both with and without runtime linking, it will 16267 # prevent static linking of such archives. So we do filename-based 16268 # shared library versioning with .so extension only, which is used 16269 # when both runtime linking and shared linking is enabled. 16270 # Unfortunately, runtime linking may impact performance, so we do 16271 # not want this to be the default eventually. Also, we use the 16272 # versioned .so libs for executables only if there is the -brtl 16273 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16274 # To allow for filename-based versioning support, we need to create 16275 # libNAME.so.V as an archive file, containing: 16276 # *) an Import File, referring to the versioned filename of the 16277 # archive as well as the shared archive member, telling the 16278 # bitwidth (32 or 64) of that shared object, and providing the 16279 # list of exported symbols of that shared object, eventually 16280 # decorated with the 'weak' keyword 16281 # *) the shared object with the F_LOADONLY flag set, to really avoid 16282 # it being seen by the linker. 16283 # At run time we better use the real file rather than another symlink, 16284 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16285 16286 case $with_aix_soname,$aix_use_runtimelinking in 16287 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16288 # soname into executable. Probably we can add versioning support to 16289 # collect2, so additional links can be useful in future. 16290 aix,yes) # traditional libtool 16291 dynamic_linker='AIX unversionable lib.so' 16292 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16293 # instead of lib<name>.a to let people know that these are not 16294 # typical AIX shared libraries. 16295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16296 ;; 16297 aix,no) # traditional AIX only 16298 dynamic_linker='AIX lib.a(lib.so.V)' 16299 # We preserve .a as extension for shared libraries through AIX4.2 16300 # and later when we are not doing run time linking. 16301 library_names_spec='$libname$release.a $libname.a' 16302 soname_spec='$libname$release$shared_ext$major' 16303 ;; 16304 svr4,*) # full svr4 only 16305 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16306 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16307 # We do not specify a path in Import Files, so LIBPATH fires. 16308 shlibpath_overrides_runpath=yes 16309 ;; 16310 *,yes) # both, prefer svr4 16311 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16312 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16313 # unpreferred sharedlib libNAME.a needs extra handling 16314 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16315 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16316 # We do not specify a path in Import Files, so LIBPATH fires. 16317 shlibpath_overrides_runpath=yes 16318 ;; 16319 *,no) # both, prefer aix 16320 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16321 library_names_spec='$libname$release.a $libname.a' 16322 soname_spec='$libname$release$shared_ext$major' 16323 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16324 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16325 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16326 ;; 16327 esac 16328 shlibpath_var=LIBPATH 16329 fi 16330 ;; 16331 16332amigaos*) 16333 case $host_cpu in 16334 powerpc) 16335 # Since July 2007 AmigaOS4 officially supports .so libraries. 16336 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16338 ;; 16339 m68k) 16340 library_names_spec='$libname.ixlibrary $libname.a' 16341 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16342 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16343 ;; 16344 esac 16345 ;; 16346 16347beos*) 16348 library_names_spec='$libname$shared_ext' 16349 dynamic_linker="$host_os ld.so" 16350 shlibpath_var=LIBRARY_PATH 16351 ;; 16352 16353bsdi[45]*) 16354 version_type=linux # correct to gnu/linux during the next big refactor 16355 need_version=no 16356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16357 soname_spec='$libname$release$shared_ext$major' 16358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16359 shlibpath_var=LD_LIBRARY_PATH 16360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16362 # the default ld.so.conf also contains /usr/contrib/lib and 16363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16364 # libtool to hard-code these into programs 16365 ;; 16366 16367cygwin* | mingw* | pw32* | cegcc*) 16368 version_type=windows 16369 shrext_cmds=.dll 16370 need_version=no 16371 need_lib_prefix=no 16372 16373 case $GCC,$cc_basename in 16374 yes,*) 16375 # gcc 16376 library_names_spec='$libname.dll.a' 16377 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16378 postinstall_cmds='base_file=`basename \$file`~ 16379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16380 dldir=$destdir/`dirname \$dlpath`~ 16381 test -d \$dldir || mkdir -p \$dldir~ 16382 $install_prog $dir/$dlname \$dldir/$dlname~ 16383 chmod a+x \$dldir/$dlname~ 16384 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16385 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16386 fi' 16387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16388 dlpath=$dir/\$dldll~ 16389 $RM \$dlpath' 16390 shlibpath_overrides_runpath=yes 16391 16392 case $host_os in 16393 cygwin*) 16394 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16395 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16396 16397 ;; 16398 mingw* | cegcc*) 16399 # MinGW DLLs use traditional 'lib' prefix 16400 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16401 ;; 16402 pw32*) 16403 # pw32 DLLs use 'pw' prefix rather than 'lib' 16404 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16405 ;; 16406 esac 16407 dynamic_linker='Win32 ld.exe' 16408 ;; 16409 16410 *,cl*) 16411 # Native MSVC 16412 libname_spec='$name' 16413 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16414 library_names_spec='$libname.dll.lib' 16415 16416 case $build_os in 16417 mingw*) 16418 sys_lib_search_path_spec= 16419 lt_save_ifs=$IFS 16420 IFS=';' 16421 for lt_path in $LIB 16422 do 16423 IFS=$lt_save_ifs 16424 # Let DOS variable expansion print the short 8.3 style file name. 16425 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16426 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16427 done 16428 IFS=$lt_save_ifs 16429 # Convert to MSYS style. 16430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16431 ;; 16432 cygwin*) 16433 # Convert to unix form, then to dos form, then back to unix form 16434 # but this time dos style (no spaces!) so that the unix form looks 16435 # like /cygdrive/c/PROGRA~1:/cygdr... 16436 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16437 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16438 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16439 ;; 16440 *) 16441 sys_lib_search_path_spec=$LIB 16442 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16443 # It is most probably a Windows format PATH. 16444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16445 else 16446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16447 fi 16448 # FIXME: find the short name or the path components, as spaces are 16449 # common. (e.g. "Program Files" -> "PROGRA~1") 16450 ;; 16451 esac 16452 16453 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16454 postinstall_cmds='base_file=`basename \$file`~ 16455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16456 dldir=$destdir/`dirname \$dlpath`~ 16457 test -d \$dldir || mkdir -p \$dldir~ 16458 $install_prog $dir/$dlname \$dldir/$dlname' 16459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16460 dlpath=$dir/\$dldll~ 16461 $RM \$dlpath' 16462 shlibpath_overrides_runpath=yes 16463 dynamic_linker='Win32 link.exe' 16464 ;; 16465 16466 *) 16467 # Assume MSVC wrapper 16468 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16469 dynamic_linker='Win32 ld.exe' 16470 ;; 16471 esac 16472 # FIXME: first we should search . and the directory the executable is in 16473 shlibpath_var=PATH 16474 ;; 16475 16476darwin* | rhapsody*) 16477 dynamic_linker="$host_os dyld" 16478 version_type=darwin 16479 need_lib_prefix=no 16480 need_version=no 16481 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16482 soname_spec='$libname$release$major$shared_ext' 16483 shlibpath_overrides_runpath=yes 16484 shlibpath_var=DYLD_LIBRARY_PATH 16485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16486 16487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16488 ;; 16489 16490dgux*) 16491 version_type=linux # correct to gnu/linux during the next big refactor 16492 need_lib_prefix=no 16493 need_version=no 16494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16495 soname_spec='$libname$release$shared_ext$major' 16496 shlibpath_var=LD_LIBRARY_PATH 16497 ;; 16498 16499freebsd* | dragonfly*) 16500 # DragonFly does not have aout. When/if they implement a new 16501 # versioning mechanism, adjust this. 16502 if test -x /usr/bin/objformat; then 16503 objformat=`/usr/bin/objformat` 16504 else 16505 case $host_os in 16506 freebsd[23].*) objformat=aout ;; 16507 *) objformat=elf ;; 16508 esac 16509 fi 16510 version_type=freebsd-$objformat 16511 case $version_type in 16512 freebsd-elf*) 16513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16514 soname_spec='$libname$release$shared_ext$major' 16515 need_version=no 16516 need_lib_prefix=no 16517 ;; 16518 freebsd-*) 16519 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16520 need_version=yes 16521 ;; 16522 esac 16523 shlibpath_var=LD_LIBRARY_PATH 16524 case $host_os in 16525 freebsd2.*) 16526 shlibpath_overrides_runpath=yes 16527 ;; 16528 freebsd3.[01]* | freebsdelf3.[01]*) 16529 shlibpath_overrides_runpath=yes 16530 hardcode_into_libs=yes 16531 ;; 16532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16534 shlibpath_overrides_runpath=no 16535 hardcode_into_libs=yes 16536 ;; 16537 *) # from 4.6 on, and DragonFly 16538 shlibpath_overrides_runpath=yes 16539 hardcode_into_libs=yes 16540 ;; 16541 esac 16542 ;; 16543 16544haiku*) 16545 version_type=linux # correct to gnu/linux during the next big refactor 16546 need_lib_prefix=no 16547 need_version=no 16548 dynamic_linker="$host_os runtime_loader" 16549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16550 soname_spec='$libname$release$shared_ext$major' 16551 shlibpath_var=LIBRARY_PATH 16552 shlibpath_overrides_runpath=no 16553 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16554 hardcode_into_libs=yes 16555 ;; 16556 16557hpux9* | hpux10* | hpux11*) 16558 # Give a soname corresponding to the major version so that dld.sl refuses to 16559 # link against other versions. 16560 version_type=sunos 16561 need_lib_prefix=no 16562 need_version=no 16563 case $host_cpu in 16564 ia64*) 16565 shrext_cmds='.so' 16566 hardcode_into_libs=yes 16567 dynamic_linker="$host_os dld.so" 16568 shlibpath_var=LD_LIBRARY_PATH 16569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16571 soname_spec='$libname$release$shared_ext$major' 16572 if test 32 = "$HPUX_IA64_MODE"; then 16573 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16574 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16575 else 16576 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16577 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16578 fi 16579 ;; 16580 hppa*64*) 16581 shrext_cmds='.sl' 16582 hardcode_into_libs=yes 16583 dynamic_linker="$host_os dld.sl" 16584 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16587 soname_spec='$libname$release$shared_ext$major' 16588 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16590 ;; 16591 *) 16592 shrext_cmds='.sl' 16593 dynamic_linker="$host_os dld.sl" 16594 shlibpath_var=SHLIB_PATH 16595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16597 soname_spec='$libname$release$shared_ext$major' 16598 ;; 16599 esac 16600 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16601 postinstall_cmds='chmod 555 $lib' 16602 # or fails outright, so override atomically: 16603 install_override_mode=555 16604 ;; 16605 16606interix[3-9]*) 16607 version_type=linux # correct to gnu/linux during the next big refactor 16608 need_lib_prefix=no 16609 need_version=no 16610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16611 soname_spec='$libname$release$shared_ext$major' 16612 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16613 shlibpath_var=LD_LIBRARY_PATH 16614 shlibpath_overrides_runpath=no 16615 hardcode_into_libs=yes 16616 ;; 16617 16618irix5* | irix6* | nonstopux*) 16619 case $host_os in 16620 nonstopux*) version_type=nonstopux ;; 16621 *) 16622 if test yes = "$lt_cv_prog_gnu_ld"; then 16623 version_type=linux # correct to gnu/linux during the next big refactor 16624 else 16625 version_type=irix 16626 fi ;; 16627 esac 16628 need_lib_prefix=no 16629 need_version=no 16630 soname_spec='$libname$release$shared_ext$major' 16631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16632 case $host_os in 16633 irix5* | nonstopux*) 16634 libsuff= shlibsuff= 16635 ;; 16636 *) 16637 case $LD in # libtool.m4 will add one of these switches to LD 16638 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16639 libsuff= shlibsuff= libmagic=32-bit;; 16640 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16641 libsuff=32 shlibsuff=N32 libmagic=N32;; 16642 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16643 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16644 *) libsuff= shlibsuff= libmagic=never-match;; 16645 esac 16646 ;; 16647 esac 16648 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16649 shlibpath_overrides_runpath=no 16650 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16651 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16652 hardcode_into_libs=yes 16653 ;; 16654 16655# No shared lib support for Linux oldld, aout, or coff. 16656linux*oldld* | linux*aout* | linux*coff*) 16657 dynamic_linker=no 16658 ;; 16659 16660linux*android*) 16661 version_type=none # Android doesn't support versioned libraries. 16662 need_lib_prefix=no 16663 need_version=no 16664 library_names_spec='$libname$release$shared_ext' 16665 soname_spec='$libname$release$shared_ext' 16666 finish_cmds= 16667 shlibpath_var=LD_LIBRARY_PATH 16668 shlibpath_overrides_runpath=yes 16669 16670 # This implies no fast_install, which is unacceptable. 16671 # Some rework will be needed to allow for fast_install 16672 # before this can be enabled. 16673 hardcode_into_libs=yes 16674 16675 dynamic_linker='Android linker' 16676 # Don't embed -rpath directories since the linker doesn't support them. 16677 hardcode_libdir_flag_spec_CXX='-L$libdir' 16678 ;; 16679 16680# This must be glibc/ELF. 16681linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16682 version_type=linux # correct to gnu/linux during the next big refactor 16683 need_lib_prefix=no 16684 need_version=no 16685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16686 soname_spec='$libname$release$shared_ext$major' 16687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16688 shlibpath_var=LD_LIBRARY_PATH 16689 shlibpath_overrides_runpath=no 16690 16691 # Some binutils ld are patched to set DT_RUNPATH 16692 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16693 $as_echo_n "(cached) " >&6 16694else 16695 lt_cv_shlibpath_overrides_runpath=no 16696 save_LDFLAGS=$LDFLAGS 16697 save_libdir=$libdir 16698 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16699 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16701/* end confdefs.h. */ 16702 16703int 16704main () 16705{ 16706 16707 ; 16708 return 0; 16709} 16710_ACEOF 16711if ac_fn_cxx_try_link "$LINENO"; then : 16712 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16713 lt_cv_shlibpath_overrides_runpath=yes 16714fi 16715fi 16716rm -f core conftest.err conftest.$ac_objext \ 16717 conftest$ac_exeext conftest.$ac_ext 16718 LDFLAGS=$save_LDFLAGS 16719 libdir=$save_libdir 16720 16721fi 16722 16723 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16724 16725 # This implies no fast_install, which is unacceptable. 16726 # Some rework will be needed to allow for fast_install 16727 # before this can be enabled. 16728 hardcode_into_libs=yes 16729 16730 # Ideally, we could use ldconfig to report *all* directores which are 16731 # searched for libraries, however this is still not possible. Aside from not 16732 # being certain /sbin/ldconfig is available, command 16733 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16734 # even though it is searched at run-time. Try to do the best guess by 16735 # appending ld.so.conf contents (and includes) to the search path. 16736 if test -f /etc/ld.so.conf; then 16737 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 16738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16739 fi 16740 16741 # We used to test for /lib/ld.so.1 and disable shared libraries on 16742 # powerpc, because MkLinux only supported shared libraries with the 16743 # GNU dynamic linker. Since this was broken with cross compilers, 16744 # most powerpc-linux boxes support dynamic linking these days and 16745 # people can always --disable-shared, the test was removed, and we 16746 # assume the GNU/Linux dynamic linker is in use. 16747 dynamic_linker='GNU/Linux ld.so' 16748 ;; 16749 16750netbsd*) 16751 version_type=sunos 16752 need_lib_prefix=no 16753 need_version=no 16754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16755 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16757 dynamic_linker='NetBSD (a.out) ld.so' 16758 else 16759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16760 soname_spec='$libname$release$shared_ext$major' 16761 dynamic_linker='NetBSD ld.elf_so' 16762 fi 16763 shlibpath_var=LD_LIBRARY_PATH 16764 shlibpath_overrides_runpath=yes 16765 hardcode_into_libs=yes 16766 ;; 16767 16768newsos6) 16769 version_type=linux # correct to gnu/linux during the next big refactor 16770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16771 shlibpath_var=LD_LIBRARY_PATH 16772 shlibpath_overrides_runpath=yes 16773 ;; 16774 16775*nto* | *qnx*) 16776 version_type=qnx 16777 need_lib_prefix=no 16778 need_version=no 16779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16780 soname_spec='$libname$release$shared_ext$major' 16781 shlibpath_var=LD_LIBRARY_PATH 16782 shlibpath_overrides_runpath=no 16783 hardcode_into_libs=yes 16784 dynamic_linker='ldqnx.so' 16785 ;; 16786 16787openbsd* | bitrig*) 16788 version_type=sunos 16789 sys_lib_dlsearch_path_spec=/usr/lib 16790 need_lib_prefix=no 16791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16792 need_version=no 16793 else 16794 need_version=yes 16795 fi 16796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16798 shlibpath_var=LD_LIBRARY_PATH 16799 shlibpath_overrides_runpath=yes 16800 ;; 16801 16802os2*) 16803 libname_spec='$name' 16804 version_type=windows 16805 shrext_cmds=.dll 16806 need_version=no 16807 need_lib_prefix=no 16808 # OS/2 can only load a DLL with a base name of 8 characters or less. 16809 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16810 v=$($ECHO $release$versuffix | tr -d .-); 16811 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16812 $ECHO $n$v`$shared_ext' 16813 library_names_spec='${libname}_dll.$libext' 16814 dynamic_linker='OS/2 ld.exe' 16815 shlibpath_var=BEGINLIBPATH 16816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16818 postinstall_cmds='base_file=`basename \$file`~ 16819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16820 dldir=$destdir/`dirname \$dlpath`~ 16821 test -d \$dldir || mkdir -p \$dldir~ 16822 $install_prog $dir/$dlname \$dldir/$dlname~ 16823 chmod a+x \$dldir/$dlname~ 16824 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16825 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16826 fi' 16827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16828 dlpath=$dir/\$dldll~ 16829 $RM \$dlpath' 16830 ;; 16831 16832osf3* | osf4* | osf5*) 16833 version_type=osf 16834 need_lib_prefix=no 16835 need_version=no 16836 soname_spec='$libname$release$shared_ext$major' 16837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16838 shlibpath_var=LD_LIBRARY_PATH 16839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16840 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16841 ;; 16842 16843rdos*) 16844 dynamic_linker=no 16845 ;; 16846 16847solaris*) 16848 version_type=linux # correct to gnu/linux during the next big refactor 16849 need_lib_prefix=no 16850 need_version=no 16851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16852 soname_spec='$libname$release$shared_ext$major' 16853 shlibpath_var=LD_LIBRARY_PATH 16854 shlibpath_overrides_runpath=yes 16855 hardcode_into_libs=yes 16856 # ldd complains unless libraries are executable 16857 postinstall_cmds='chmod +x $lib' 16858 ;; 16859 16860sunos4*) 16861 version_type=sunos 16862 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16864 shlibpath_var=LD_LIBRARY_PATH 16865 shlibpath_overrides_runpath=yes 16866 if test yes = "$with_gnu_ld"; then 16867 need_lib_prefix=no 16868 fi 16869 need_version=yes 16870 ;; 16871 16872sysv4 | sysv4.3*) 16873 version_type=linux # correct to gnu/linux during the next big refactor 16874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16875 soname_spec='$libname$release$shared_ext$major' 16876 shlibpath_var=LD_LIBRARY_PATH 16877 case $host_vendor in 16878 sni) 16879 shlibpath_overrides_runpath=no 16880 need_lib_prefix=no 16881 runpath_var=LD_RUN_PATH 16882 ;; 16883 siemens) 16884 need_lib_prefix=no 16885 ;; 16886 motorola) 16887 need_lib_prefix=no 16888 need_version=no 16889 shlibpath_overrides_runpath=no 16890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16891 ;; 16892 esac 16893 ;; 16894 16895sysv4*MP*) 16896 if test -d /usr/nec; then 16897 version_type=linux # correct to gnu/linux during the next big refactor 16898 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16899 soname_spec='$libname$shared_ext.$major' 16900 shlibpath_var=LD_LIBRARY_PATH 16901 fi 16902 ;; 16903 16904sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16905 version_type=sco 16906 need_lib_prefix=no 16907 need_version=no 16908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16909 soname_spec='$libname$release$shared_ext$major' 16910 shlibpath_var=LD_LIBRARY_PATH 16911 shlibpath_overrides_runpath=yes 16912 hardcode_into_libs=yes 16913 if test yes = "$with_gnu_ld"; then 16914 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16915 else 16916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16917 case $host_os in 16918 sco3.2v5*) 16919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16920 ;; 16921 esac 16922 fi 16923 sys_lib_dlsearch_path_spec='/usr/lib' 16924 ;; 16925 16926tpf*) 16927 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16928 version_type=linux # correct to gnu/linux during the next big refactor 16929 need_lib_prefix=no 16930 need_version=no 16931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16932 shlibpath_var=LD_LIBRARY_PATH 16933 shlibpath_overrides_runpath=no 16934 hardcode_into_libs=yes 16935 ;; 16936 16937uts4*) 16938 version_type=linux # correct to gnu/linux during the next big refactor 16939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16940 soname_spec='$libname$release$shared_ext$major' 16941 shlibpath_var=LD_LIBRARY_PATH 16942 ;; 16943 16944*) 16945 dynamic_linker=no 16946 ;; 16947esac 16948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16949$as_echo "$dynamic_linker" >&6; } 16950test no = "$dynamic_linker" && can_build_shared=no 16951 16952variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16953if test yes = "$GCC"; then 16954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16955fi 16956 16957if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16958 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16959fi 16960 16961if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16962 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16963fi 16964 16965# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16966configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16967 16968# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16969func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16970 16971# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16972configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17014$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17015hardcode_action_CXX= 17016if test -n "$hardcode_libdir_flag_spec_CXX" || 17017 test -n "$runpath_var_CXX" || 17018 test yes = "$hardcode_automatic_CXX"; then 17019 17020 # We can hardcode non-existent directories. 17021 if test no != "$hardcode_direct_CXX" && 17022 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17023 # have to relink, otherwise we might link with an installed library 17024 # when we should be linking with a yet-to-be-installed one 17025 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17026 test no != "$hardcode_minus_L_CXX"; then 17027 # Linking always hardcodes the temporary library directory. 17028 hardcode_action_CXX=relink 17029 else 17030 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17031 hardcode_action_CXX=immediate 17032 fi 17033else 17034 # We cannot hardcode anything, or else we can only hardcode existing 17035 # directories. 17036 hardcode_action_CXX=unsupported 17037fi 17038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17039$as_echo "$hardcode_action_CXX" >&6; } 17040 17041if test relink = "$hardcode_action_CXX" || 17042 test yes = "$inherit_rpath_CXX"; then 17043 # Fast installation is not supported 17044 enable_fast_install=no 17045elif test yes = "$shlibpath_overrides_runpath" || 17046 test no = "$enable_shared"; then 17047 # Fast installation is not necessary 17048 enable_fast_install=needless 17049fi 17050 17051 17052 17053 17054 17055 17056 17057 fi # test -n "$compiler" 17058 17059 CC=$lt_save_CC 17060 CFLAGS=$lt_save_CFLAGS 17061 LDCXX=$LD 17062 LD=$lt_save_LD 17063 GCC=$lt_save_GCC 17064 with_gnu_ld=$lt_save_with_gnu_ld 17065 lt_cv_path_LDCXX=$lt_cv_path_LD 17066 lt_cv_path_LD=$lt_save_path_LD 17067 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17068 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17069fi # test yes != "$_lt_caught_CXX_error" 17070 17071ac_ext=c 17072ac_cpp='$CPP $CPPFLAGS' 17073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17075ac_compiler_gnu=$ac_cv_c_compiler_gnu 17076 17077 17078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 17079$as_echo_n "checking for C compiler vendor... " >&6; } 17080if ${ax_cv_c_compiler_vendor+:} false; then : 17081 $as_echo_n "(cached) " >&6 17082else 17083 # note: don't check for gcc first since some other compilers define __GNUC__ 17084 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 17085 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 17086 pathscale: __PATHCC__,__PATHSCALE__ 17087 clang: __clang__ 17088 fujitsu: __FUJITSU 17089 gnu: __GNUC__ 17090 sun: __SUNPRO_C,__SUNPRO_CC 17091 hp: __HP_cc,__HP_aCC 17092 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 17093 borland: __BORLANDC__,__TURBOC__ 17094 comeau: __COMO__ 17095 cray: _CRAYC 17096 kai: __KCC 17097 lcc: __LCC__ 17098 sgi: __sgi,sgi 17099 microsoft: _MSC_VER 17100 metrowerks: __MWERKS__ 17101 watcom: __WATCOMC__ 17102 portland: __PGI 17103 unknown: UNKNOWN" 17104 for ventest in $vendors; do 17105 case $ventest in 17106 *:) vendor=$ventest; continue ;; 17107 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 17108 esac 17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17110/* end confdefs.h. */ 17111 17112int 17113main () 17114{ 17115 17116 #if !($vencpp) 17117 thisisanerror; 17118 #endif 17119 17120 ; 17121 return 0; 17122} 17123_ACEOF 17124if ac_fn_c_try_compile "$LINENO"; then : 17125 break 17126fi 17127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17128 done 17129 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 17130 17131fi 17132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 17133$as_echo "$ax_cv_c_compiler_vendor" >&6; } 17134 17135 17136 17137 17138 17139 17140# Check whether --enable-portable-binary was given. 17141if test "${enable_portable_binary+set}" = set; then : 17142 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval 17143else 17144 acx_maxopt_portable=no 17145fi 17146 17147 17148# Try to determine "good" native compiler flags if none specified via CFLAGS 17149if test "$ac_test_CFLAGS" != "set"; then 17150 CFLAGS="" 17151 case $ax_cv_c_compiler_vendor in 17152 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" 17153 if test "x$acx_maxopt_portable" = xno; then 17154 CFLAGS="$CFLAGS -arch host" 17155 fi;; 17156 17157 sun) CFLAGS="-native -fast -xO5 -dalign" 17158 if test "x$acx_maxopt_portable" = xyes; then 17159 CFLAGS="$CFLAGS -xarch=generic" 17160 fi;; 17161 17162 hp) CFLAGS="+Oall +Optrs_ansi +DSnative" 17163 if test "x$acx_maxopt_portable" = xyes; then 17164 CFLAGS="$CFLAGS +DAportable" 17165 fi;; 17166 17167 ibm) if test "x$acx_maxopt_portable" = xno; then 17168 xlc_opt="-qarch=auto -qtune=auto" 17169 else 17170 xlc_opt="-qtune=auto" 17171 fi 17172 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh` 17173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5 17174$as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; } 17175if eval \${$as_CACHEVAR+:} false; then : 17176 $as_echo_n "(cached) " >&6 17177else 17178 17179 ax_check_save_flags=$CFLAGS 17180 CFLAGS="$CFLAGS $xlc_opt" 17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17182/* end confdefs.h. */ 17183 17184int 17185main () 17186{ 17187 17188 ; 17189 return 0; 17190} 17191_ACEOF 17192if ac_fn_c_try_compile "$LINENO"; then : 17193 eval "$as_CACHEVAR=yes" 17194else 17195 eval "$as_CACHEVAR=no" 17196fi 17197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17198 CFLAGS=$ax_check_save_flags 17199fi 17200eval ac_res=\$$as_CACHEVAR 17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17202$as_echo "$ac_res" >&6; } 17203if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : 17204 CFLAGS="-O3 -qansialias -w $xlc_opt" 17205else 17206 CFLAGS="-O3 -qansialias -w" 17207 echo "******************************************************" 17208 echo "* You seem to have the IBM C compiler. It is *" 17209 echo "* recommended for best performance that you use: *" 17210 echo "* *" 17211 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *" 17212 echo "* ^^^ ^^^ *" 17213 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *" 17214 echo "* CPU you have. (Set the CFLAGS environment var. *" 17215 echo "* and re-run configure.) For more info, man cc. *" 17216 echo "******************************************************" 17217fi 17218 17219 ;; 17220 17221 intel) CFLAGS="-O3 -ansi_alias" 17222 if test "x$acx_maxopt_portable" = xno; then 17223 icc_archflag=unknown 17224 icc_flags="" 17225 case $host_cpu in 17226 i686*|x86_64*) 17227 # icc accepts gcc assembly syntax, so these should work: 17228 17229ac_ext=c 17230ac_cpp='$CPP $CPPFLAGS' 17231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17233ac_compiler_gnu=$ac_cv_c_compiler_gnu 17234 17235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 17236$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 17237if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 17238 $as_echo_n "(cached) " >&6 17239else 17240 if test "$cross_compiling" = yes; then : 17241 ax_cv_gcc_x86_cpuid_0=unknown 17242else 17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244/* end confdefs.h. */ 17245#include <stdio.h> 17246int 17247main () 17248{ 17249 17250 int op = 0, eax, ebx, ecx, edx; 17251 FILE *f; 17252 __asm__("cpuid" 17253 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 17254 : "a" (op)); 17255 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 17256 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 17257 fclose(f); 17258 return 0; 17259 17260 ; 17261 return 0; 17262} 17263_ACEOF 17264if ac_fn_c_try_run "$LINENO"; then : 17265 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 17266else 17267 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 17268fi 17269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17270 conftest.$ac_objext conftest.beam conftest.$ac_ext 17271fi 17272 17273fi 17274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 17275$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 17276ac_ext=c 17277ac_cpp='$CPP $CPPFLAGS' 17278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17280ac_compiler_gnu=$ac_cv_c_compiler_gnu 17281 17282 17283 17284ac_ext=c 17285ac_cpp='$CPP $CPPFLAGS' 17286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17288ac_compiler_gnu=$ac_cv_c_compiler_gnu 17289 17290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 17291$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 17292if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 17293 $as_echo_n "(cached) " >&6 17294else 17295 if test "$cross_compiling" = yes; then : 17296 ax_cv_gcc_x86_cpuid_1=unknown 17297else 17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17299/* end confdefs.h. */ 17300#include <stdio.h> 17301int 17302main () 17303{ 17304 17305 int op = 1, eax, ebx, ecx, edx; 17306 FILE *f; 17307 __asm__("cpuid" 17308 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 17309 : "a" (op)); 17310 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 17311 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 17312 fclose(f); 17313 return 0; 17314 17315 ; 17316 return 0; 17317} 17318_ACEOF 17319if ac_fn_c_try_run "$LINENO"; then : 17320 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 17321else 17322 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 17323fi 17324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17325 conftest.$ac_objext conftest.beam conftest.$ac_ext 17326fi 17327 17328fi 17329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 17330$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 17331ac_ext=c 17332ac_cpp='$CPP $CPPFLAGS' 17333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17335ac_compiler_gnu=$ac_cv_c_compiler_gnu 17336 17337 17338 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG 17339 *:756e6547:*:*) # Intel 17340 case $ax_cv_gcc_x86_cpuid_1 in 17341 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";; 17342 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";; 17343 *f??:*:*:*) icc_flags="-xN -xW -xK";; 17344 esac ;; 17345 esac ;; 17346 esac 17347 if test "x$icc_flags" != x; then 17348 for flag in $icc_flags; do 17349 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 17350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 17351$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 17352if eval \${$as_CACHEVAR+:} false; then : 17353 $as_echo_n "(cached) " >&6 17354else 17355 17356 ax_check_save_flags=$CFLAGS 17357 CFLAGS="$CFLAGS $flag" 17358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17359/* end confdefs.h. */ 17360 17361int 17362main () 17363{ 17364 17365 ; 17366 return 0; 17367} 17368_ACEOF 17369if ac_fn_c_try_compile "$LINENO"; then : 17370 eval "$as_CACHEVAR=yes" 17371else 17372 eval "$as_CACHEVAR=no" 17373fi 17374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17375 CFLAGS=$ax_check_save_flags 17376fi 17377eval ac_res=\$$as_CACHEVAR 17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17379$as_echo "$ac_res" >&6; } 17380if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : 17381 icc_archflag=$flag; break 17382else 17383 : 17384fi 17385 17386 done 17387 fi 17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5 17389$as_echo_n "checking for icc architecture flag... " >&6; } 17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5 17391$as_echo "$icc_archflag" >&6; } 17392 if test "x$icc_archflag" != xunknown; then 17393 CFLAGS="$CFLAGS $icc_archflag" 17394 fi 17395 fi 17396 ;; 17397 17398 gnu) 17399 # default optimization flags for gcc on all systems 17400 CFLAGS="-O3 -fomit-frame-pointer" 17401 17402 # -malign-double for x86 systems 17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 17404$as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } 17405if ${ax_cv_check_cflags___malign_double+:} false; then : 17406 $as_echo_n "(cached) " >&6 17407else 17408 17409 ax_check_save_flags=$CFLAGS 17410 CFLAGS="$CFLAGS -malign-double" 17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17412/* end confdefs.h. */ 17413 17414int 17415main () 17416{ 17417 17418 ; 17419 return 0; 17420} 17421_ACEOF 17422if ac_fn_c_try_compile "$LINENO"; then : 17423 ax_cv_check_cflags___malign_double=yes 17424else 17425 ax_cv_check_cflags___malign_double=no 17426fi 17427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17428 CFLAGS=$ax_check_save_flags 17429fi 17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5 17431$as_echo "$ax_cv_check_cflags___malign_double" >&6; } 17432if test x"$ax_cv_check_cflags___malign_double" = xyes; then : 17433 CFLAGS="$CFLAGS -malign-double" 17434else 17435 : 17436fi 17437 17438 17439 # -fstrict-aliasing for gcc-2.95+ 17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5 17441$as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; } 17442if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then : 17443 $as_echo_n "(cached) " >&6 17444else 17445 17446 ax_check_save_flags=$CFLAGS 17447 CFLAGS="$CFLAGS -fstrict-aliasing" 17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17449/* end confdefs.h. */ 17450 17451int 17452main () 17453{ 17454 17455 ; 17456 return 0; 17457} 17458_ACEOF 17459if ac_fn_c_try_compile "$LINENO"; then : 17460 ax_cv_check_cflags___fstrict_aliasing=yes 17461else 17462 ax_cv_check_cflags___fstrict_aliasing=no 17463fi 17464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17465 CFLAGS=$ax_check_save_flags 17466fi 17467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5 17468$as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; } 17469if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then : 17470 CFLAGS="$CFLAGS -fstrict-aliasing" 17471else 17472 : 17473fi 17474 17475 17476 # note that we enable "unsafe" fp optimization with other compilers, too 17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5 17478$as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; } 17479if ${ax_cv_check_cflags___ffast_math+:} false; then : 17480 $as_echo_n "(cached) " >&6 17481else 17482 17483 ax_check_save_flags=$CFLAGS 17484 CFLAGS="$CFLAGS -ffast-math" 17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17486/* end confdefs.h. */ 17487 17488int 17489main () 17490{ 17491 17492 ; 17493 return 0; 17494} 17495_ACEOF 17496if ac_fn_c_try_compile "$LINENO"; then : 17497 ax_cv_check_cflags___ffast_math=yes 17498else 17499 ax_cv_check_cflags___ffast_math=no 17500fi 17501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17502 CFLAGS=$ax_check_save_flags 17503fi 17504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5 17505$as_echo "$ax_cv_check_cflags___ffast_math" >&6; } 17506if test x"$ax_cv_check_cflags___ffast_math" = xyes; then : 17507 CFLAGS="$CFLAGS -ffast-math" 17508else 17509 : 17510fi 17511 17512 17513 17514 17515 17516 17517 17518# Check whether --with-gcc-arch was given. 17519if test "${with_gcc_arch+set}" = set; then : 17520 withval=$with_gcc_arch; ax_gcc_arch=$withval 17521else 17522 ax_gcc_arch=yes 17523fi 17524 17525 17526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 17527$as_echo_n "checking for gcc architecture flag... " >&6; } 17528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17529$as_echo "" >&6; } 17530if ${ax_cv_gcc_archflag+:} false; then : 17531 $as_echo_n "(cached) " >&6 17532else 17533 17534ax_cv_gcc_archflag="unknown" 17535 17536if test "$GCC" = yes; then 17537 17538if test "x$ax_gcc_arch" = xyes; then 17539ax_gcc_arch="" 17540if test "$cross_compiling" = no; then 17541case $host_cpu in 17542 i[3456]86*|x86_64*|amd64*) # use cpuid codes 17543 17544ac_ext=c 17545ac_cpp='$CPP $CPPFLAGS' 17546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17548ac_compiler_gnu=$ac_cv_c_compiler_gnu 17549 17550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 17551$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 17552if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 17553 $as_echo_n "(cached) " >&6 17554else 17555 if test "$cross_compiling" = yes; then : 17556 ax_cv_gcc_x86_cpuid_0=unknown 17557else 17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17559/* end confdefs.h. */ 17560#include <stdio.h> 17561int 17562main () 17563{ 17564 17565 int op = 0, eax, ebx, ecx, edx; 17566 FILE *f; 17567 __asm__("cpuid" 17568 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 17569 : "a" (op)); 17570 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 17571 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 17572 fclose(f); 17573 return 0; 17574 17575 ; 17576 return 0; 17577} 17578_ACEOF 17579if ac_fn_c_try_run "$LINENO"; then : 17580 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 17581else 17582 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 17583fi 17584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17585 conftest.$ac_objext conftest.beam conftest.$ac_ext 17586fi 17587 17588fi 17589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 17590$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 17591ac_ext=c 17592ac_cpp='$CPP $CPPFLAGS' 17593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17595ac_compiler_gnu=$ac_cv_c_compiler_gnu 17596 17597 17598 17599ac_ext=c 17600ac_cpp='$CPP $CPPFLAGS' 17601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17603ac_compiler_gnu=$ac_cv_c_compiler_gnu 17604 17605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 17606$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 17607if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 17608 $as_echo_n "(cached) " >&6 17609else 17610 if test "$cross_compiling" = yes; then : 17611 ax_cv_gcc_x86_cpuid_1=unknown 17612else 17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17614/* end confdefs.h. */ 17615#include <stdio.h> 17616int 17617main () 17618{ 17619 17620 int op = 1, eax, ebx, ecx, edx; 17621 FILE *f; 17622 __asm__("cpuid" 17623 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 17624 : "a" (op)); 17625 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 17626 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 17627 fclose(f); 17628 return 0; 17629 17630 ; 17631 return 0; 17632} 17633_ACEOF 17634if ac_fn_c_try_run "$LINENO"; then : 17635 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 17636else 17637 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 17638fi 17639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17640 conftest.$ac_objext conftest.beam conftest.$ac_ext 17641fi 17642 17643fi 17644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 17645$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 17646ac_ext=c 17647ac_cpp='$CPP $CPPFLAGS' 17648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17650ac_compiler_gnu=$ac_cv_c_compiler_gnu 17651 17652 17653 case $ax_cv_gcc_x86_cpuid_0 in 17654 *:756e6547:*:*) # Intel 17655 case $ax_cv_gcc_x86_cpuid_1 in 17656 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; 17657 *5??:*:*:*) ax_gcc_arch=pentium ;; 17658 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;; 17659 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;; 17660 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;; 17661 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 17662 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;; 17663 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 17664 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 17665 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 17666 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; 17667 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 17668 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;; 17669 *6??:*:*:*) ax_gcc_arch=pentiumpro ;; 17670 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*) 17671 case $host_cpu in 17672 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;; 17673 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;; 17674 esac ;; 17675 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";; 17676 esac ;; 17677 *:68747541:*:*) # AMD 17678 case $ax_cv_gcc_x86_cpuid_1 in 17679 *5[67]?:*:*:*) ax_gcc_arch=k6 ;; 17680 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; 17681 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; 17682 *60?:*:*:*) ax_gcc_arch=k7 ;; 17683 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; 17684 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; 17685 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;; 17686 *6[68a]?:*:*:*) 17687 17688ac_ext=c 17689ac_cpp='$CPP $CPPFLAGS' 17690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17692ac_compiler_gnu=$ac_cv_c_compiler_gnu 17693 17694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5 17695$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; } 17696if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then : 17697 $as_echo_n "(cached) " >&6 17698else 17699 if test "$cross_compiling" = yes; then : 17700 ax_cv_gcc_x86_cpuid_0x80000006=unknown 17701else 17702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17703/* end confdefs.h. */ 17704#include <stdio.h> 17705int 17706main () 17707{ 17708 17709 int op = 0x80000006, eax, ebx, ecx, edx; 17710 FILE *f; 17711 __asm__("cpuid" 17712 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 17713 : "a" (op)); 17714 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 17715 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 17716 fclose(f); 17717 return 0; 17718 17719 ; 17720 return 0; 17721} 17722_ACEOF 17723if ac_fn_c_try_run "$LINENO"; then : 17724 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid 17725else 17726 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid 17727fi 17728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17729 conftest.$ac_objext conftest.beam conftest.$ac_ext 17730fi 17731 17732fi 17733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5 17734$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; } 17735ac_ext=c 17736ac_cpp='$CPP $CPPFLAGS' 17737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17739ac_compiler_gnu=$ac_cv_c_compiler_gnu 17740 17741 # L2 cache size 17742 case $ax_cv_gcc_x86_cpuid_0x80000006 in 17743 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256 17744 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; 17745 *) ax_gcc_arch="athlon-4 athlon k7" ;; 17746 esac ;; 17747 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 17748 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 17749 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;; 17750 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; 17751 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;; 17752 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;; 17753 *f??:*:*:*) ax_gcc_arch="k8" ;; 17754 esac ;; 17755 *:746e6543:*:*) # IDT 17756 case $ax_cv_gcc_x86_cpuid_1 in 17757 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; 17758 *58?:*:*:*) ax_gcc_arch=winchip2 ;; 17759 *6[78]?:*:*:*) ax_gcc_arch=c3 ;; 17760 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;; 17761 esac ;; 17762 esac 17763 if test x"$ax_gcc_arch" = x; then # fallback 17764 case $host_cpu in 17765 i586*) ax_gcc_arch=pentium ;; 17766 i686*) ax_gcc_arch=pentiumpro ;; 17767 esac 17768 fi 17769 ;; 17770 17771 sparc*) 17772 # Extract the first word of "prtdiag", so it can be a program name with args. 17773set dummy prtdiag; ac_word=$2 17774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17775$as_echo_n "checking for $ac_word... " >&6; } 17776if ${ac_cv_path_PRTDIAG+:} false; then : 17777 $as_echo_n "(cached) " >&6 17778else 17779 case $PRTDIAG in 17780 [\\/]* | ?:[\\/]*) 17781 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. 17782 ;; 17783 *) 17784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17785as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" 17786for as_dir in $as_dummy 17787do 17788 IFS=$as_save_IFS 17789 test -z "$as_dir" && as_dir=. 17790 for ac_exec_ext in '' $ac_executable_extensions; do 17791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17792 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" 17793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17794 break 2 17795 fi 17796done 17797 done 17798IFS=$as_save_IFS 17799 17800 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" 17801 ;; 17802esac 17803fi 17804PRTDIAG=$ac_cv_path_PRTDIAG 17805if test -n "$PRTDIAG"; then 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 17807$as_echo "$PRTDIAG" >&6; } 17808else 17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17810$as_echo "no" >&6; } 17811fi 17812 17813 17814 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null` 17815 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters` 17816 case $cputype in 17817 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; 17818 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; 17819 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; 17820 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; 17821 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; 17822 *cypress*) ax_gcc_arch=cypress ;; 17823 esac ;; 17824 17825 alphaev5) ax_gcc_arch=ev5 ;; 17826 alphaev56) ax_gcc_arch=ev56 ;; 17827 alphapca56) ax_gcc_arch="pca56 ev56" ;; 17828 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; 17829 alphaev6) ax_gcc_arch=ev6 ;; 17830 alphaev67) ax_gcc_arch=ev67 ;; 17831 alphaev68) ax_gcc_arch="ev68 ev67" ;; 17832 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; 17833 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; 17834 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; 17835 17836 powerpc*) 17837 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | $SED 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null` 17838 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'` 17839 case $cputype in 17840 *750*) ax_gcc_arch="750 G3" ;; 17841 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; 17842 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; 17843 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; 17844 *970*) ax_gcc_arch="970 G5 power4";; 17845 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; 17846 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 17847 603ev|8240) ax_gcc_arch="$cputype 603e 603";; 17848 *) ax_gcc_arch=$cputype ;; 17849 esac 17850 ax_gcc_arch="$ax_gcc_arch powerpc" 17851 ;; 17852esac 17853fi # not cross-compiling 17854fi # guess arch 17855 17856if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then 17857for arch in $ax_gcc_arch; do 17858 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code 17859 flags="-mtune=$arch" 17860 # -mcpu=$arch and m$arch generate nonportable code on every arch except 17861 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. 17862 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac 17863 else 17864 flags="-march=$arch -mcpu=$arch -m$arch" 17865 fi 17866 for flag in $flags; do 17867 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 17868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 17869$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 17870if eval \${$as_CACHEVAR+:} false; then : 17871 $as_echo_n "(cached) " >&6 17872else 17873 17874 ax_check_save_flags=$CFLAGS 17875 CFLAGS="$CFLAGS $flag" 17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17877/* end confdefs.h. */ 17878 17879int 17880main () 17881{ 17882 17883 ; 17884 return 0; 17885} 17886_ACEOF 17887if ac_fn_c_try_compile "$LINENO"; then : 17888 eval "$as_CACHEVAR=yes" 17889else 17890 eval "$as_CACHEVAR=no" 17891fi 17892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17893 CFLAGS=$ax_check_save_flags 17894fi 17895eval ac_res=\$$as_CACHEVAR 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17897$as_echo "$ac_res" >&6; } 17898if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : 17899 ax_cv_gcc_archflag=$flag; break 17900else 17901 : 17902fi 17903 17904 done 17905 test "x$ax_cv_gcc_archflag" = xunknown || break 17906done 17907fi 17908 17909fi # $GCC=yes 17910 17911fi 17912 17913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 17914$as_echo_n "checking for gcc architecture flag... " >&6; } 17915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 17916$as_echo "$ax_cv_gcc_archflag" >&6; } 17917if test "x$ax_cv_gcc_archflag" = xunknown; then 17918 : 17919else 17920 CFLAGS="$CFLAGS $ax_cv_gcc_archflag" 17921fi 17922 17923 ;; 17924 esac 17925 17926 if test -z "$CFLAGS"; then 17927 echo "" 17928 echo "********************************************************" 17929 echo "* WARNING: Don't know the best CFLAGS for this system *" 17930 echo "* Use ./configure CFLAGS=... to specify your own flags *" 17931 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" 17932 echo "********************************************************" 17933 echo "" 17934 CFLAGS="-O3" 17935 fi 17936 17937 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh` 17938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5 17939$as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; } 17940if eval \${$as_CACHEVAR+:} false; then : 17941 $as_echo_n "(cached) " >&6 17942else 17943 17944 ax_check_save_flags=$CFLAGS 17945 CFLAGS="$CFLAGS $CFLAGS" 17946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17947/* end confdefs.h. */ 17948 17949int 17950main () 17951{ 17952 17953 ; 17954 return 0; 17955} 17956_ACEOF 17957if ac_fn_c_try_compile "$LINENO"; then : 17958 eval "$as_CACHEVAR=yes" 17959else 17960 eval "$as_CACHEVAR=no" 17961fi 17962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17963 CFLAGS=$ax_check_save_flags 17964fi 17965eval ac_res=\$$as_CACHEVAR 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17967$as_echo "$ac_res" >&6; } 17968if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : 17969 : 17970else 17971 17972 echo "" 17973 echo "********************************************************" 17974 echo "* WARNING: The guessed CFLAGS don't seem to work with *" 17975 echo "* your compiler. *" 17976 echo "* Use ./configure CFLAGS=... to specify your own flags *" 17977 echo "********************************************************" 17978 echo "" 17979 CFLAGS="" 17980 17981fi 17982 17983 17984fi 17985 17986 17987# Checks for header files. 17988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 17989$as_echo_n "checking for ANSI C header files... " >&6; } 17990if ${ac_cv_header_stdc+:} false; then : 17991 $as_echo_n "(cached) " >&6 17992else 17993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17994/* end confdefs.h. */ 17995#include <stdlib.h> 17996#include <stdarg.h> 17997#include <string.h> 17998#include <float.h> 17999 18000int 18001main () 18002{ 18003 18004 ; 18005 return 0; 18006} 18007_ACEOF 18008if ac_fn_c_try_compile "$LINENO"; then : 18009 ac_cv_header_stdc=yes 18010else 18011 ac_cv_header_stdc=no 18012fi 18013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18014 18015if test $ac_cv_header_stdc = yes; then 18016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18018/* end confdefs.h. */ 18019#include <string.h> 18020 18021_ACEOF 18022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18023 $EGREP "memchr" >/dev/null 2>&1; then : 18024 18025else 18026 ac_cv_header_stdc=no 18027fi 18028rm -f conftest* 18029 18030fi 18031 18032if test $ac_cv_header_stdc = yes; then 18033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18035/* end confdefs.h. */ 18036#include <stdlib.h> 18037 18038_ACEOF 18039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18040 $EGREP "free" >/dev/null 2>&1; then : 18041 18042else 18043 ac_cv_header_stdc=no 18044fi 18045rm -f conftest* 18046 18047fi 18048 18049if test $ac_cv_header_stdc = yes; then 18050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18051 if test "$cross_compiling" = yes; then : 18052 : 18053else 18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18055/* end confdefs.h. */ 18056#include <ctype.h> 18057#include <stdlib.h> 18058#if ((' ' & 0x0FF) == 0x020) 18059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18061#else 18062# define ISLOWER(c) \ 18063 (('a' <= (c) && (c) <= 'i') \ 18064 || ('j' <= (c) && (c) <= 'r') \ 18065 || ('s' <= (c) && (c) <= 'z')) 18066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18067#endif 18068 18069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18070int 18071main () 18072{ 18073 int i; 18074 for (i = 0; i < 256; i++) 18075 if (XOR (islower (i), ISLOWER (i)) 18076 || toupper (i) != TOUPPER (i)) 18077 return 2; 18078 return 0; 18079} 18080_ACEOF 18081if ac_fn_c_try_run "$LINENO"; then : 18082 18083else 18084 ac_cv_header_stdc=no 18085fi 18086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18087 conftest.$ac_objext conftest.beam conftest.$ac_ext 18088fi 18089 18090fi 18091fi 18092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 18093$as_echo "$ac_cv_header_stdc" >&6; } 18094if test $ac_cv_header_stdc = yes; then 18095 18096$as_echo "#define STDC_HEADERS 1" >>confdefs.h 18097 18098fi 18099 18100for ac_header in float.h stdlib.h 18101do : 18102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18103ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18104if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18105 cat >>confdefs.h <<_ACEOF 18106#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18107_ACEOF 18108 18109fi 18110 18111done 18112 18113 18114# Checks for typedefs, structures, and compiler characteristics. 18115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 18116$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 18117if ${ac_cv_c_const+:} false; then : 18118 $as_echo_n "(cached) " >&6 18119else 18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18121/* end confdefs.h. */ 18122 18123int 18124main () 18125{ 18126 18127#ifndef __cplusplus 18128 /* Ultrix mips cc rejects this sort of thing. */ 18129 typedef int charset[2]; 18130 const charset cs = { 0, 0 }; 18131 /* SunOS 4.1.1 cc rejects this. */ 18132 char const *const *pcpcc; 18133 char **ppc; 18134 /* NEC SVR4.0.2 mips cc rejects this. */ 18135 struct point {int x, y;}; 18136 static struct point const zero = {0,0}; 18137 /* AIX XL C 1.02.0.0 rejects this. 18138 It does not let you subtract one const X* pointer from another in 18139 an arm of an if-expression whose if-part is not a constant 18140 expression */ 18141 const char *g = "string"; 18142 pcpcc = &g + (g ? g-g : 0); 18143 /* HPUX 7.0 cc rejects these. */ 18144 ++pcpcc; 18145 ppc = (char**) pcpcc; 18146 pcpcc = (char const *const *) ppc; 18147 { /* SCO 3.2v4 cc rejects this sort of thing. */ 18148 char tx; 18149 char *t = &tx; 18150 char const *s = 0 ? (char *) 0 : (char const *) 0; 18151 18152 *t++ = 0; 18153 if (s) return 0; 18154 } 18155 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18156 int x[] = {25, 17}; 18157 const int *foo = &x[0]; 18158 ++foo; 18159 } 18160 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18161 typedef const int *iptr; 18162 iptr p = 0; 18163 ++p; 18164 } 18165 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 18166 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18167 struct s { int j; const int *ap[3]; } bx; 18168 struct s *b = &bx; b->j = 5; 18169 } 18170 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18171 const int foo = 10; 18172 if (!foo) return 0; 18173 } 18174 return !cs[0] && !zero.x; 18175#endif 18176 18177 ; 18178 return 0; 18179} 18180_ACEOF 18181if ac_fn_c_try_compile "$LINENO"; then : 18182 ac_cv_c_const=yes 18183else 18184 ac_cv_c_const=no 18185fi 18186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18187fi 18188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 18189$as_echo "$ac_cv_c_const" >&6; } 18190if test $ac_cv_c_const = no; then 18191 18192$as_echo "#define const /**/" >>confdefs.h 18193 18194fi 18195 18196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 18197$as_echo_n "checking for inline... " >&6; } 18198if ${ac_cv_c_inline+:} false; then : 18199 $as_echo_n "(cached) " >&6 18200else 18201 ac_cv_c_inline=no 18202for ac_kw in inline __inline__ __inline; do 18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18204/* end confdefs.h. */ 18205#ifndef __cplusplus 18206typedef int foo_t; 18207static $ac_kw foo_t static_foo () {return 0; } 18208$ac_kw foo_t foo () {return 0; } 18209#endif 18210 18211_ACEOF 18212if ac_fn_c_try_compile "$LINENO"; then : 18213 ac_cv_c_inline=$ac_kw 18214fi 18215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18216 test "$ac_cv_c_inline" != no && break 18217done 18218 18219fi 18220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 18221$as_echo "$ac_cv_c_inline" >&6; } 18222 18223case $ac_cv_c_inline in 18224 inline | yes) ;; 18225 *) 18226 case $ac_cv_c_inline in 18227 no) ac_val=;; 18228 *) ac_val=$ac_cv_c_inline;; 18229 esac 18230 cat >>confdefs.h <<_ACEOF 18231#ifndef __cplusplus 18232#define inline $ac_val 18233#endif 18234_ACEOF 18235 ;; 18236esac 18237 18238 18239# Locates GAP 18240 18241 ac_ext=c 18242ac_cpp='$CPP $CPPFLAGS' 18243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18245ac_compiler_gnu=$ac_cv_c_compiler_gnu 18246 18247 18248 # Make sure CDPATH is portably set to a sensible value 18249 CDPATH=${ZSH_VERSION+.}: 18250 18251 GAP_CPPFLAGS="" 18252 18253 #Allow the user to specify a configname: 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFIGNAME" >&5 18255$as_echo_n "checking for CONFIGNAME... " >&6; } 18256 18257 if test "x$CONFIGNAME" = "x"; then 18258 SYSINFO="sysinfo.gap" 18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 18260$as_echo "none" >&6; } 18261 else 18262 SYSINFO="sysinfo.gap-$CONFIGNAME" 18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIGNAME" >&5 18264$as_echo "$CONFIGNAME" >&6; } 18265 fi 18266 18267 ###################################### 18268 # Find the GAP root directory by 18269 # checking for the sysinfo.gap file 18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP root directory" >&5 18271$as_echo_n "checking for GAP root directory... " >&6; } 18272 DEFAULT_GAPROOTS="../.." 18273 18274 #Allow the user to specify the location of GAP 18275 # 18276 18277# Check whether --with-gaproot was given. 18278if test "${with_gaproot+set}" = set; then : 18279 withval=$with_gaproot; DEFAULT_GAPROOTS="$withval" 18280fi 18281 18282 18283 havesysinfo=0 18284 # Otherwise try likely directories 18285 for GAPROOT in ${DEFAULT_GAPROOTS} 18286 do 18287 # Convert the path to absolute 18288 GAPROOT=`cd $GAPROOT > /dev/null 2>&1 && pwd` 18289 if test -e ${GAPROOT}/${SYSINFO}; then 18290 havesysinfo=1 18291 break 18292 fi 18293 done 18294 18295 if test "x$havesysinfo" = "x1"; then 18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GAPROOT}" >&5 18297$as_echo "${GAPROOT}" >&6; } 18298 else 18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 18300$as_echo "Not found" >&6; } 18301 18302 echo "" 18303 echo "********************************************************************" 18304 echo " ERROR" 18305 echo "" 18306 echo " Cannot find your GAP installation. Please specify the location of" 18307 echo " GAP's root directory using --with-gaproot=<path>" 18308 echo "" 18309 echo " The GAP root directory (as far as this package is concerned) is" 18310 echo " the one containing the file sysinfo.gap and the subdirectories " 18311 echo " src/ and bin/." 18312 echo "********************************************************************" 18313 echo "" 18314 18315 as_fn_error $? "Unable to find GAP root directory" "$LINENO" 5 18316 fi 18317 18318 ##################################### 18319 # Now find the architecture 18320 18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP architecture" >&5 18322$as_echo_n "checking for GAP architecture... " >&6; } 18323 GAPARCH="Unknown" 18324 . $GAPROOT/$SYSINFO 18325 if test "x$GAParch" != "x"; then 18326 GAPARCH=$GAParch 18327 fi 18328 18329 18330# Check whether --with-gaparch was given. 18331if test "${with_gaparch+set}" = set; then : 18332 withval=$with_gaparch; GAPARCH=$withval 18333fi 18334 18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GAPARCH}" >&5 18336$as_echo "${GAPARCH}" >&6; } 18337 18338 if test "x$GAPARCH" = "xUnknown" -o ! -d $GAPROOT/bin/$GAPARCH ; then 18339 echo "" 18340 echo "********************************************************************" 18341 echo " ERROR" 18342 echo "" 18343 echo " Found a GAP installation at $GAPROOT but could not find" 18344 echo " information about GAP's architecture in the" 18345 echo " file ${GAPROOT}/${SYSINFO} or did not find the directory" 18346 echo " ${GAPROOT}/bin/${GAPARCH}." 18347 echo " This file and directory should be present: please check your" 18348 echo " GAP installation." 18349 echo "********************************************************************" 18350 echo "" 18351 18352 as_fn_error $? "Unable to find plausible GAParch information." "$LINENO" 5 18353 fi 18354 18355 18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP >= 4.9" >&5 18357$as_echo_n "checking for GAP >= 4.9... " >&6; } 18358 # test if this GAP >= 4.9 18359 if test "x$GAP_CPPFLAGS" != x; then 18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18361$as_echo "yes" >&6; } 18362 else 18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18364$as_echo "no" >&6; } 18365 ##################################### 18366 # Now check for the GAP header files 18367 18368 bad=0 18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP include files" >&5 18370$as_echo_n "checking for GAP include files... " >&6; } 18371 if test -r $GAPROOT/src/compiled.h; then 18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/src/compiled.h" >&5 18373$as_echo "$GAPROOT/src/compiled.h" >&6; } 18374 else 18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 18376$as_echo "Not found" >&6; } 18377 bad=1 18378 fi 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP config.h" >&5 18380$as_echo_n "checking for GAP config.h... " >&6; } 18381 if test -r $GAPROOT/bin/$GAPARCH/config.h; then 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/bin/$GAPARCH/config.h" >&5 18383$as_echo "$GAPROOT/bin/$GAPARCH/config.h" >&6; } 18384 else 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 18386$as_echo "Not found" >&6; } 18387 bad=1 18388 fi 18389 18390 if test "x$bad" = "x1"; then 18391 echo "" 18392 echo "********************************************************************" 18393 echo " ERROR" 18394 echo "" 18395 echo " Failed to find the GAP source header files in src/ and" 18396 echo " GAP's config.h in the architecture dependend directory" 18397 echo "" 18398 echo " The kernel build process expects to find the normal GAP " 18399 echo " root directory structure as it is after building GAP itself, and" 18400 echo " in particular the files" 18401 echo " <gaproot>/sysinfo.gap" 18402 echo " <gaproot>/src/<includes>" 18403 echo " and <gaproot>/bin/<architecture>/bin/config.h." 18404 echo " Please make sure that your GAP root directory structure" 18405 echo " conforms to this layout, or give the correct GAP root using" 18406 echo " --with-gaproot=<path>" 18407 echo "********************************************************************" 18408 echo "" 18409 as_fn_error $? "Unable to find GAP include files in /src subdirectory" "$LINENO" 5 18410 fi 18411 18412 ARCHPATH=$GAPROOT/bin/$GAPARCH 18413 GAP_CPPFLAGS="-I$GAPROOT -iquote $GAPROOT/src -I$ARCHPATH" 18414 18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP's gmp.h location" >&5 18416$as_echo_n "checking for GAP's gmp.h location... " >&6; } 18417 if test -r "$ARCHPATH/extern/gmp/include/gmp.h"; then 18418 GAP_CPPFLAGS="$GAP_CPPFLAGS -I$ARCHPATH/extern/gmp/include" 18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCHPATH/extern/gmp/include/gmp.h" >&5 18420$as_echo "$ARCHPATH/extern/gmp/include/gmp.h" >&6; } 18421 else 18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, GAP was compiled without its own GMP" >&5 18423$as_echo "not found, GAP was compiled without its own GMP" >&6; } 18424 fi 18425 fi 18426 18427 18428 18429 18430 18431 18432 18433 18434 ac_ext=c 18435ac_cpp='$CPP $CPPFLAGS' 18436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18438ac_compiler_gnu=$ac_cv_c_compiler_gnu 18439 18440 18441 18442 18443 18444case $host_os in 18445 *cygwin* ) CYGWIN=yes;; 18446 * ) CYGWIN=no;; 18447esac 18448 18449 if test "$CYGWIN" = "yes"; then 18450 SYS_IS_CYGWIN_TRUE= 18451 SYS_IS_CYGWIN_FALSE='#' 18452else 18453 SYS_IS_CYGWIN_TRUE='#' 18454 SYS_IS_CYGWIN_FALSE= 18455fi 18456 18457if test "$CYGWIN" = "yes"; then 18458 18459$as_echo "#define SYS_IS_CYGWIN32 1" >>confdefs.h 18460 18461else 18462 18463$as_echo "#define SYS_IS_CYGWIN32 0" >>confdefs.h 18464 18465fi 18466 18467 18468case "$host" in 18469 *-darwin* ) 18470 18471$as_echo "#define SYS_IS_DARWIN 1" >>confdefs.h 18472 18473 ;; 18474 * ) 18475 18476$as_echo "#define SYS_IS_DARWIN 0" >>confdefs.h 18477 18478 ;; 18479esac 18480 18481 18482LIBM= 18483case $host in 18484*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 18485 # These system don't have libm, or don't need it 18486 ;; 18487*-ncr-sysv4.3*) 18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 18489$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 18490if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 18491 $as_echo_n "(cached) " >&6 18492else 18493 ac_check_lib_save_LIBS=$LIBS 18494LIBS="-lmw $LIBS" 18495cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18496/* end confdefs.h. */ 18497 18498/* Override any GCC internal prototype to avoid an error. 18499 Use char because int might match the return type of a GCC 18500 builtin and then its argument prototype would still apply. */ 18501#ifdef __cplusplus 18502extern "C" 18503#endif 18504char _mwvalidcheckl (); 18505int 18506main () 18507{ 18508return _mwvalidcheckl (); 18509 ; 18510 return 0; 18511} 18512_ACEOF 18513if ac_fn_c_try_link "$LINENO"; then : 18514 ac_cv_lib_mw__mwvalidcheckl=yes 18515else 18516 ac_cv_lib_mw__mwvalidcheckl=no 18517fi 18518rm -f core conftest.err conftest.$ac_objext \ 18519 conftest$ac_exeext conftest.$ac_ext 18520LIBS=$ac_check_lib_save_LIBS 18521fi 18522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 18523$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 18524if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 18525 LIBM=-lmw 18526fi 18527 18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 18529$as_echo_n "checking for cos in -lm... " >&6; } 18530if ${ac_cv_lib_m_cos+:} false; then : 18531 $as_echo_n "(cached) " >&6 18532else 18533 ac_check_lib_save_LIBS=$LIBS 18534LIBS="-lm $LIBS" 18535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18536/* end confdefs.h. */ 18537 18538/* Override any GCC internal prototype to avoid an error. 18539 Use char because int might match the return type of a GCC 18540 builtin and then its argument prototype would still apply. */ 18541#ifdef __cplusplus 18542extern "C" 18543#endif 18544char cos (); 18545int 18546main () 18547{ 18548return cos (); 18549 ; 18550 return 0; 18551} 18552_ACEOF 18553if ac_fn_c_try_link "$LINENO"; then : 18554 ac_cv_lib_m_cos=yes 18555else 18556 ac_cv_lib_m_cos=no 18557fi 18558rm -f core conftest.err conftest.$ac_objext \ 18559 conftest$ac_exeext conftest.$ac_ext 18560LIBS=$ac_check_lib_save_LIBS 18561fi 18562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 18563$as_echo "$ac_cv_lib_m_cos" >&6; } 18564if test "x$ac_cv_lib_m_cos" = xyes; then : 18565 LIBM="$LIBM -lm" 18566fi 18567 18568 ;; 18569*) 18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 18571$as_echo_n "checking for cos in -lm... " >&6; } 18572if ${ac_cv_lib_m_cos+:} false; then : 18573 $as_echo_n "(cached) " >&6 18574else 18575 ac_check_lib_save_LIBS=$LIBS 18576LIBS="-lm $LIBS" 18577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18578/* end confdefs.h. */ 18579 18580/* Override any GCC internal prototype to avoid an error. 18581 Use char because int might match the return type of a GCC 18582 builtin and then its argument prototype would still apply. */ 18583#ifdef __cplusplus 18584extern "C" 18585#endif 18586char cos (); 18587int 18588main () 18589{ 18590return cos (); 18591 ; 18592 return 0; 18593} 18594_ACEOF 18595if ac_fn_c_try_link "$LINENO"; then : 18596 ac_cv_lib_m_cos=yes 18597else 18598 ac_cv_lib_m_cos=no 18599fi 18600rm -f core conftest.err conftest.$ac_objext \ 18601 conftest$ac_exeext conftest.$ac_ext 18602LIBS=$ac_check_lib_save_LIBS 18603fi 18604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 18605$as_echo "$ac_cv_lib_m_cos" >&6; } 18606if test "x$ac_cv_lib_m_cos" = xyes; then : 18607 LIBM=-lm 18608fi 18609 18610 ;; 18611esac 18612 18613 18614 18615temp_LIBS="$LIBS" 18616temp_CPPFLAGS="$CPPFLAGS" 18617temp_LDFLAGS="$LDFLAGS" 18618MPFR=unknown 18619MPFR_WITH="" 18620MPFR_DEPEND="" 18621 18622 18623# Check whether --with-mpfr was given. 18624if test "${with_mpfr+set}" = set; then : 18625 withval=$with_mpfr; if test "$withval" = no; then 18626 MPFR=no 18627 elif test "$withval" = yes; then 18628 MPFR=yes 18629 else 18630 MPFR_WITH="$MPFR_WITH --with-mpfr=$withval" 18631 MPFR=yes 18632 MPFR_CFLAGS="-I$withval/include"; MPFR_LDFLAGS="-L$withval/lib" 18633 fi 18634 18635fi 18636 18637 18638 18639# Check whether --with-mpfr-include was given. 18640if test "${with_mpfr_include+set}" = set; then : 18641 withval=$with_mpfr_include; MPFR=yes 18642 MPFR_WITH="$MPFR_WITH --with-mpfr-include=$withval" 18643 MPFR_CFLAGS="-I$withval" 18644 18645fi 18646 18647 18648 18649# Check whether --with-mpfr-lib was given. 18650if test "${with_mpfr_lib+set}" = set; then : 18651 withval=$with_mpfr_lib; MPFR=yes 18652 MPFR_WITH="$MPFR_WITH --with-mpfr-lib=$withval" 18653 MPFR_LDFLAGS="-L$withval" 18654 18655fi 18656 18657 18658if test "$MPFR" != no; then 18659 18660MPFR_LIBS="-lmpfr" 18661 18662ac_ext=c 18663ac_cpp='$CPP $CPPFLAGS' 18664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18666ac_compiler_gnu=$ac_cv_c_compiler_gnu 18667 18668temp_status=true 18669CPPFLAGS="$CPPFLAGS $MPFR_CFLAGS" 18670ac_fn_c_check_header_mongrel "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default" 18671if test "x$ac_cv_header_mpfr_h" = xyes; then : 18672 18673else 18674 temp_status=false 18675fi 18676 18677 18678LDFLAGS="$LDFLAGS $MPFR_LDFLAGS" 18679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_sqrt in -lmpfr" >&5 18680$as_echo_n "checking for mpfr_sqrt in -lmpfr... " >&6; } 18681if ${ac_cv_lib_mpfr_mpfr_sqrt+:} false; then : 18682 $as_echo_n "(cached) " >&6 18683else 18684 ac_check_lib_save_LIBS=$LIBS 18685LIBS="-lmpfr $LIBS" 18686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18687/* end confdefs.h. */ 18688 18689/* Override any GCC internal prototype to avoid an error. 18690 Use char because int might match the return type of a GCC 18691 builtin and then its argument prototype would still apply. */ 18692#ifdef __cplusplus 18693extern "C" 18694#endif 18695char mpfr_sqrt (); 18696int 18697main () 18698{ 18699return mpfr_sqrt (); 18700 ; 18701 return 0; 18702} 18703_ACEOF 18704if ac_fn_c_try_link "$LINENO"; then : 18705 ac_cv_lib_mpfr_mpfr_sqrt=yes 18706else 18707 ac_cv_lib_mpfr_mpfr_sqrt=no 18708fi 18709rm -f core conftest.err conftest.$ac_objext \ 18710 conftest$ac_exeext conftest.$ac_ext 18711LIBS=$ac_check_lib_save_LIBS 18712fi 18713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_sqrt" >&5 18714$as_echo "$ac_cv_lib_mpfr_mpfr_sqrt" >&6; } 18715if test "x$ac_cv_lib_mpfr_mpfr_sqrt" = xyes; then : 18716 cat >>confdefs.h <<_ACEOF 18717#define HAVE_LIBMPFR 1 18718_ACEOF 18719 18720 LIBS="-lmpfr $LIBS" 18721 18722else 18723 temp_status=false 18724fi 18725 18726ac_ext=c 18727ac_cpp='$CPP $CPPFLAGS' 18728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18730ac_compiler_gnu=$ac_cv_c_compiler_gnu 18731 18732 18733if test "$temp_status" = false; then 18734 if test "$MPFR" = yes; then 18735 as_fn_error $? "library mpfr not found. Using --with-mpfr, specify its location, or \"no\" to disable it." "$LINENO" 5 18736 else 18737 MPFR=no 18738 fi 18739else 18740 MPFR=yes 18741fi 18742 18743fi 18744 18745CPPFLAGS="$temp_CPPFLAGS" 18746LDFLAGS="$temp_LDFLAGS" 18747LIBS="$temp_LIBS" 18748 18749if test "$MPFR" != no; then 18750 18751$as_echo "#define USE_MPFR 1" >>confdefs.h 18752 18753fi 18754 18755 18756 18757 if test x"$MPFR" != xno; then 18758 WITH_MPFR_IS_YES_TRUE= 18759 WITH_MPFR_IS_YES_FALSE='#' 18760else 18761 WITH_MPFR_IS_YES_TRUE='#' 18762 WITH_MPFR_IS_YES_FALSE= 18763fi 18764 18765 18766if test "$MPFR" = yes; then 18767 18768temp_LIBS="$LIBS" 18769temp_CPPFLAGS="$CPPFLAGS" 18770temp_LDFLAGS="$LDFLAGS" 18771MPFI=unknown 18772MPFI_WITH="" 18773MPFI_DEPEND="" 18774 18775 18776# Check whether --with-mpfi was given. 18777if test "${with_mpfi+set}" = set; then : 18778 withval=$with_mpfi; if test "$withval" = no; then 18779 MPFI=no 18780 elif test "$withval" = yes; then 18781 MPFI=yes 18782 else 18783 MPFI_WITH="$MPFI_WITH --with-mpfi=$withval" 18784 MPFI=yes 18785 MPFI_CFLAGS="-I$withval/include"; MPFI_LDFLAGS="-L$withval/lib" 18786 fi 18787 18788fi 18789 18790 18791 18792# Check whether --with-mpfi-include was given. 18793if test "${with_mpfi_include+set}" = set; then : 18794 withval=$with_mpfi_include; MPFI=yes 18795 MPFI_WITH="$MPFI_WITH --with-mpfi-include=$withval" 18796 MPFI_CFLAGS="-I$withval" 18797 18798fi 18799 18800 18801 18802# Check whether --with-mpfi-lib was given. 18803if test "${with_mpfi_lib+set}" = set; then : 18804 withval=$with_mpfi_lib; MPFI=yes 18805 MPFI_WITH="$MPFI_WITH --with-mpfi-lib=$withval" 18806 MPFI_LDFLAGS="-L$withval" 18807 18808fi 18809 18810 18811if test "$MPFI" != no; then 18812 18813if test "$MPFR" = no; then 18814 as_fn_error $? "Cannot have MPFI without having MPFR too." "$LINENO" 5 18815fi 18816 18817MPFI_LIBS="-lmpfi" 18818 18819ac_ext=c 18820ac_cpp='$CPP $CPPFLAGS' 18821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18823ac_compiler_gnu=$ac_cv_c_compiler_gnu 18824 18825temp_status=true 18826CPPFLAGS="$CPPFLAGS $MPFI_CFLAGS $MPFR_CFLAGS" 18827ac_fn_c_check_header_compile "$LINENO" "mpfi.h" "ac_cv_header_mpfi_h" "#include <mpfr.h> 18828" 18829if test "x$ac_cv_header_mpfi_h" = xyes; then : 18830 18831else 18832 temp_status=false 18833fi 18834 18835 18836LDFLAGS="$LDFLAGS $MPFI_LDFLAGS $MPFR_CFLAGS" 18837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfi_sqrt in -lmpfi" >&5 18838$as_echo_n "checking for mpfi_sqrt in -lmpfi... " >&6; } 18839if ${ac_cv_lib_mpfi_mpfi_sqrt+:} false; then : 18840 $as_echo_n "(cached) " >&6 18841else 18842 ac_check_lib_save_LIBS=$LIBS 18843LIBS="-lmpfi $LIBS" 18844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18845/* end confdefs.h. */ 18846 18847/* Override any GCC internal prototype to avoid an error. 18848 Use char because int might match the return type of a GCC 18849 builtin and then its argument prototype would still apply. */ 18850#ifdef __cplusplus 18851extern "C" 18852#endif 18853char mpfi_sqrt (); 18854int 18855main () 18856{ 18857return mpfi_sqrt (); 18858 ; 18859 return 0; 18860} 18861_ACEOF 18862if ac_fn_c_try_link "$LINENO"; then : 18863 ac_cv_lib_mpfi_mpfi_sqrt=yes 18864else 18865 ac_cv_lib_mpfi_mpfi_sqrt=no 18866fi 18867rm -f core conftest.err conftest.$ac_objext \ 18868 conftest$ac_exeext conftest.$ac_ext 18869LIBS=$ac_check_lib_save_LIBS 18870fi 18871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfi_mpfi_sqrt" >&5 18872$as_echo "$ac_cv_lib_mpfi_mpfi_sqrt" >&6; } 18873if test "x$ac_cv_lib_mpfi_mpfi_sqrt" = xyes; then : 18874 cat >>confdefs.h <<_ACEOF 18875#define HAVE_LIBMPFI 1 18876_ACEOF 18877 18878 LIBS="-lmpfi $LIBS" 18879 18880else 18881 temp_status=false 18882fi 18883 18884ac_ext=c 18885ac_cpp='$CPP $CPPFLAGS' 18886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18888ac_compiler_gnu=$ac_cv_c_compiler_gnu 18889 18890 18891if test "$temp_status" = false; then 18892 if test "$MPFI" = yes; then 18893 as_fn_error $? "library mpfi not found. Using --with-mpfi, specify its location, or \"no\" to disable it." "$LINENO" 5 18894 else 18895 MPFI=no 18896 fi 18897else 18898 MPFI=yes 18899fi 18900 18901fi 18902 18903CPPFLAGS="$temp_CPPFLAGS" 18904LDFLAGS="$temp_LDFLAGS" 18905LIBS="$temp_LIBS" 18906 18907if test "$MPFI" != no; then 18908 18909$as_echo "#define USE_MPFI 1" >>confdefs.h 18910 18911fi 18912 18913 18914 18915 if test x"$MPFI" != xno; then 18916 WITH_MPFI_IS_YES_TRUE= 18917 WITH_MPFI_IS_YES_FALSE='#' 18918else 18919 WITH_MPFI_IS_YES_TRUE='#' 18920 WITH_MPFI_IS_YES_FALSE= 18921fi 18922 18923 18924 18925temp_LIBS="$LIBS" 18926temp_CPPFLAGS="$CPPFLAGS" 18927temp_LDFLAGS="$LDFLAGS" 18928MPC=unknown 18929MPC_WITH="" 18930MPC_DEPEND="" 18931 18932 18933# Check whether --with-mpc was given. 18934if test "${with_mpc+set}" = set; then : 18935 withval=$with_mpc; if test "$withval" = no; then 18936 MPC=no 18937 elif test "$withval" = yes; then 18938 MPC=yes 18939 else 18940 MPC_WITH="$MPC_WITH --with-mpc=$withval" 18941 MPC=yes 18942 MPC_CFLAGS="-I$withval/include"; MPC_LDFLAGS="-L$withval/lib" 18943 fi 18944 18945fi 18946 18947 18948 18949# Check whether --with-mpc-include was given. 18950if test "${with_mpc_include+set}" = set; then : 18951 withval=$with_mpc_include; MPC=yes 18952 MPC_WITH="$MPC_WITH --with-mpc-include=$withval" 18953 MPC_CFLAGS="-I$withval" 18954 18955fi 18956 18957 18958 18959# Check whether --with-mpc-lib was given. 18960if test "${with_mpc_lib+set}" = set; then : 18961 withval=$with_mpc_lib; MPC=yes 18962 MPC_WITH="$MPC_WITH --with-mpc-lib=$withval" 18963 MPC_LDFLAGS="-L$withval" 18964 18965fi 18966 18967 18968if test "$MPC" != no; then 18969 18970if test "$MPFR" = no; then 18971 as_fn_error $? "Cannot have MPC without having MPFR too." "$LINENO" 5 18972fi 18973 18974MPC_LIBS="-lmpc" 18975 18976ac_ext=c 18977ac_cpp='$CPP $CPPFLAGS' 18978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18980ac_compiler_gnu=$ac_cv_c_compiler_gnu 18981 18982temp_status=true 18983CPPFLAGS="$CPPFLAGS $MPC_CFLAGS $MPFR_CFLAGS" 18984ac_fn_c_check_header_compile "$LINENO" "mpc.h" "ac_cv_header_mpc_h" "#include <mpfr.h> 18985" 18986if test "x$ac_cv_header_mpc_h" = xyes; then : 18987 18988else 18989 temp_status=false 18990fi 18991 18992 18993LDFLAGS="$LDFLAGS $MPC_LDFLAGS $MPFR_CFLAGS" 18994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpc_sqrt in -lmpc" >&5 18995$as_echo_n "checking for mpc_sqrt in -lmpc... " >&6; } 18996if ${ac_cv_lib_mpc_mpc_sqrt+:} false; then : 18997 $as_echo_n "(cached) " >&6 18998else 18999 ac_check_lib_save_LIBS=$LIBS 19000LIBS="-lmpc $LIBS" 19001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19002/* end confdefs.h. */ 19003 19004/* Override any GCC internal prototype to avoid an error. 19005 Use char because int might match the return type of a GCC 19006 builtin and then its argument prototype would still apply. */ 19007#ifdef __cplusplus 19008extern "C" 19009#endif 19010char mpc_sqrt (); 19011int 19012main () 19013{ 19014return mpc_sqrt (); 19015 ; 19016 return 0; 19017} 19018_ACEOF 19019if ac_fn_c_try_link "$LINENO"; then : 19020 ac_cv_lib_mpc_mpc_sqrt=yes 19021else 19022 ac_cv_lib_mpc_mpc_sqrt=no 19023fi 19024rm -f core conftest.err conftest.$ac_objext \ 19025 conftest$ac_exeext conftest.$ac_ext 19026LIBS=$ac_check_lib_save_LIBS 19027fi 19028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_mpc_sqrt" >&5 19029$as_echo "$ac_cv_lib_mpc_mpc_sqrt" >&6; } 19030if test "x$ac_cv_lib_mpc_mpc_sqrt" = xyes; then : 19031 cat >>confdefs.h <<_ACEOF 19032#define HAVE_LIBMPC 1 19033_ACEOF 19034 19035 LIBS="-lmpc $LIBS" 19036 19037else 19038 temp_status=false 19039fi 19040 19041ac_ext=c 19042ac_cpp='$CPP $CPPFLAGS' 19043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19045ac_compiler_gnu=$ac_cv_c_compiler_gnu 19046 19047 19048if test "$temp_status" = false; then 19049 if test "$MPC" = yes; then 19050 as_fn_error $? "library mpc not found. Using --with-mpc, specify its location, or \"no\" to disable it." "$LINENO" 5 19051 else 19052 MPC=no 19053 fi 19054else 19055 MPC=yes 19056fi 19057 19058fi 19059 19060CPPFLAGS="$temp_CPPFLAGS" 19061LDFLAGS="$temp_LDFLAGS" 19062LIBS="$temp_LIBS" 19063 19064if test "$MPC" != no; then 19065 19066$as_echo "#define USE_MPC 1" >>confdefs.h 19067 19068fi 19069 19070 19071 19072 if test x"$MPC" != xno; then 19073 WITH_MPC_IS_YES_TRUE= 19074 WITH_MPC_IS_YES_FALSE='#' 19075else 19076 WITH_MPC_IS_YES_TRUE='#' 19077 WITH_MPC_IS_YES_FALSE= 19078fi 19079 19080 19081 19082temp_LIBS="$LIBS" 19083temp_CPPFLAGS="$CPPFLAGS" 19084temp_LDFLAGS="$LDFLAGS" 19085FPLLL=unknown 19086FPLLL_WITH="" 19087FPLLL_DEPEND="" 19088 19089 19090# Check whether --with-fplll was given. 19091if test "${with_fplll+set}" = set; then : 19092 withval=$with_fplll; if test "$withval" = no; then 19093 FPLLL=no 19094 elif test "$withval" = yes; then 19095 FPLLL=yes 19096 else 19097 FPLLL_WITH="$FPLLL_WITH --with-fplll=$withval" 19098 FPLLL=yes 19099 FPLLL_CFLAGS="-I$withval/include"; FPLLL_LDFLAGS="-L$withval/lib" 19100 fi 19101 19102fi 19103 19104 19105 19106# Check whether --with-fplll-include was given. 19107if test "${with_fplll_include+set}" = set; then : 19108 withval=$with_fplll_include; FPLLL=yes 19109 FPLLL_WITH="$FPLLL_WITH --with-fplll-include=$withval" 19110 FPLLL_CFLAGS="-I$withval" 19111 19112fi 19113 19114 19115 19116# Check whether --with-fplll-lib was given. 19117if test "${with_fplll_lib+set}" = set; then : 19118 withval=$with_fplll_lib; FPLLL=yes 19119 FPLLL_WITH="$FPLLL_WITH --with-fplll-lib=$withval" 19120 FPLLL_LDFLAGS="-L$withval" 19121 19122fi 19123 19124 19125if test "$FPLLL" != no; then 19126 19127if test "$MPFR" = no; then 19128 as_fn_error $? "Cannot have FPLLL without having MPFR too." "$LINENO" 5 19129fi 19130 19131FPLLL_LIBS="-lfplll" 19132 19133ac_ext=cpp 19134ac_cpp='$CXXCPP $CPPFLAGS' 19135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19138 19139CPPFLAGS="$CPPFLAGS $FPLLL_CFLAGS $MPFR_CFLAGS" 19140ac_fn_cxx_check_header_compile "$LINENO" "fplll.h" "ac_cv_header_fplll_h" "#include <mpfr.h> 19141" 19142if test "x$ac_cv_header_fplll_h" = xyes; then : 19143 found_fplll=true 19144else 19145 found_fplll=false 19146fi 19147 19148 19149LDFLAGS="$LDFLAGS $FPLLL_LDFLAGS $MPFR_CFLAGS" 19150LIBS="$LIBS -lfplll -lgmp" 19151if test "$found_fplll" = true; then 19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lllReduction in -fplll (version 4.x)" >&5 19153$as_echo_n "checking for lllReduction in -fplll (version 4.x)... " >&6; } 19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19155/* end confdefs.h. */ 19156#include <fplll.h> 19157int 19158main () 19159{ 19160ZZ_mat<mpz_t> M(3,3);lllReduction(M, 0.99, 0.51, LM_WRAPPER); 19161 ; 19162 return 0; 19163} 19164_ACEOF 19165if ac_fn_cxx_try_link "$LINENO"; then : 19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19167$as_echo "yes" >&6; };found_fplll=4 19168else 19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19170$as_echo "no" >&6; };found_fplll=false 19171fi 19172rm -f core conftest.err conftest.$ac_objext \ 19173 conftest$ac_exeext conftest.$ac_ext 19174fi 19175if test "$found_fplll" = false; then 19176 $as_unset ac_cv_header_fplll_h 19177 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true 19178 ac_ext=cpp 19179ac_cpp='$CXXCPP $CPPFLAGS' 19180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19183 ac_success=no 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 19185$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 19186if ${ax_cv_cxx_compile_cxx11+:} false; then : 19187 $as_echo_n "(cached) " >&6 19188else 19189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19190/* end confdefs.h. */ 19191 19192 19193// If the compiler admits that it is not ready for C++11, why torture it? 19194// Hopefully, this will speed up the test. 19195 19196#ifndef __cplusplus 19197 19198#error "This is not a C++ compiler" 19199 19200#elif __cplusplus < 201103L 19201 19202#error "This is not a C++11 compiler" 19203 19204#else 19205 19206namespace cxx11 19207{ 19208 19209 namespace test_static_assert 19210 { 19211 19212 template <typename T> 19213 struct check 19214 { 19215 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 19216 }; 19217 19218 } 19219 19220 namespace test_final_override 19221 { 19222 19223 struct Base 19224 { 19225 virtual void f() {} 19226 }; 19227 19228 struct Derived : public Base 19229 { 19230 virtual void f() override {} 19231 }; 19232 19233 } 19234 19235 namespace test_double_right_angle_brackets 19236 { 19237 19238 template < typename T > 19239 struct check {}; 19240 19241 typedef check<void> single_type; 19242 typedef check<check<void>> double_type; 19243 typedef check<check<check<void>>> triple_type; 19244 typedef check<check<check<check<void>>>> quadruple_type; 19245 19246 } 19247 19248 namespace test_decltype 19249 { 19250 19251 int 19252 f() 19253 { 19254 int a = 1; 19255 decltype(a) b = 2; 19256 return a + b; 19257 } 19258 19259 } 19260 19261 namespace test_type_deduction 19262 { 19263 19264 template < typename T1, typename T2 > 19265 struct is_same 19266 { 19267 static const bool value = false; 19268 }; 19269 19270 template < typename T > 19271 struct is_same<T, T> 19272 { 19273 static const bool value = true; 19274 }; 19275 19276 template < typename T1, typename T2 > 19277 auto 19278 add(T1 a1, T2 a2) -> decltype(a1 + a2) 19279 { 19280 return a1 + a2; 19281 } 19282 19283 int 19284 test(const int c, volatile int v) 19285 { 19286 static_assert(is_same<int, decltype(0)>::value == true, ""); 19287 static_assert(is_same<int, decltype(c)>::value == false, ""); 19288 static_assert(is_same<int, decltype(v)>::value == false, ""); 19289 auto ac = c; 19290 auto av = v; 19291 auto sumi = ac + av + 'x'; 19292 auto sumf = ac + av + 1.0; 19293 static_assert(is_same<int, decltype(ac)>::value == true, ""); 19294 static_assert(is_same<int, decltype(av)>::value == true, ""); 19295 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 19296 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 19297 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 19298 return (sumf > 0.0) ? sumi : add(c, v); 19299 } 19300 19301 } 19302 19303 namespace test_noexcept 19304 { 19305 19306 int f() { return 0; } 19307 int g() noexcept { return 0; } 19308 19309 static_assert(noexcept(f()) == false, ""); 19310 static_assert(noexcept(g()) == true, ""); 19311 19312 } 19313 19314 namespace test_constexpr 19315 { 19316 19317 template < typename CharT > 19318 unsigned long constexpr 19319 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 19320 { 19321 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 19322 } 19323 19324 template < typename CharT > 19325 unsigned long constexpr 19326 strlen_c(const CharT *const s) noexcept 19327 { 19328 return strlen_c_r(s, 0UL); 19329 } 19330 19331 static_assert(strlen_c("") == 0UL, ""); 19332 static_assert(strlen_c("1") == 1UL, ""); 19333 static_assert(strlen_c("example") == 7UL, ""); 19334 static_assert(strlen_c("another\0example") == 7UL, ""); 19335 19336 } 19337 19338 namespace test_rvalue_references 19339 { 19340 19341 template < int N > 19342 struct answer 19343 { 19344 static constexpr int value = N; 19345 }; 19346 19347 answer<1> f(int&) { return answer<1>(); } 19348 answer<2> f(const int&) { return answer<2>(); } 19349 answer<3> f(int&&) { return answer<3>(); } 19350 19351 void 19352 test() 19353 { 19354 int i = 0; 19355 const int c = 0; 19356 static_assert(decltype(f(i))::value == 1, ""); 19357 static_assert(decltype(f(c))::value == 2, ""); 19358 static_assert(decltype(f(0))::value == 3, ""); 19359 } 19360 19361 } 19362 19363 namespace test_uniform_initialization 19364 { 19365 19366 struct test 19367 { 19368 static const int zero {}; 19369 static const int one {1}; 19370 }; 19371 19372 static_assert(test::zero == 0, ""); 19373 static_assert(test::one == 1, ""); 19374 19375 } 19376 19377 namespace test_lambdas 19378 { 19379 19380 void 19381 test1() 19382 { 19383 auto lambda1 = [](){}; 19384 auto lambda2 = lambda1; 19385 lambda1(); 19386 lambda2(); 19387 } 19388 19389 int 19390 test2() 19391 { 19392 auto a = [](int i, int j){ return i + j; }(1, 2); 19393 auto b = []() -> int { return '0'; }(); 19394 auto c = [=](){ return a + b; }(); 19395 auto d = [&](){ return c; }(); 19396 auto e = [a, &b](int x) mutable { 19397 const auto identity = [](int y){ return y; }; 19398 for (auto i = 0; i < a; ++i) 19399 a += b--; 19400 return x + identity(a + b); 19401 }(0); 19402 return a + b + c + d + e; 19403 } 19404 19405 int 19406 test3() 19407 { 19408 const auto nullary = [](){ return 0; }; 19409 const auto unary = [](int x){ return x; }; 19410 using nullary_t = decltype(nullary); 19411 using unary_t = decltype(unary); 19412 const auto higher1st = [](nullary_t f){ return f(); }; 19413 const auto higher2nd = [unary](nullary_t f1){ 19414 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 19415 }; 19416 return higher1st(nullary) + higher2nd(nullary)(unary); 19417 } 19418 19419 } 19420 19421 namespace test_variadic_templates 19422 { 19423 19424 template <int...> 19425 struct sum; 19426 19427 template <int N0, int... N1toN> 19428 struct sum<N0, N1toN...> 19429 { 19430 static constexpr auto value = N0 + sum<N1toN...>::value; 19431 }; 19432 19433 template <> 19434 struct sum<> 19435 { 19436 static constexpr auto value = 0; 19437 }; 19438 19439 static_assert(sum<>::value == 0, ""); 19440 static_assert(sum<1>::value == 1, ""); 19441 static_assert(sum<23>::value == 23, ""); 19442 static_assert(sum<1, 2>::value == 3, ""); 19443 static_assert(sum<5, 5, 11>::value == 21, ""); 19444 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 19445 19446 } 19447 19448 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 19449 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 19450 // because of this. 19451 namespace test_template_alias_sfinae 19452 { 19453 19454 struct foo {}; 19455 19456 template<typename T> 19457 using member = typename T::member_type; 19458 19459 template<typename T> 19460 void func(...) {} 19461 19462 template<typename T> 19463 void func(member<T>*) {} 19464 19465 void test(); 19466 19467 void test() { func<foo>(0); } 19468 19469 } 19470 19471} // namespace cxx11 19472 19473#endif // __cplusplus >= 201103L 19474 19475 19476 19477_ACEOF 19478if ac_fn_cxx_try_compile "$LINENO"; then : 19479 ax_cv_cxx_compile_cxx11=yes 19480else 19481 ax_cv_cxx_compile_cxx11=no 19482fi 19483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19484fi 19485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 19486$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 19487 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 19488 ac_success=yes 19489 fi 19490 19491 19492 19493 if test x$ac_success = xno; then 19494 for alternative in ${ax_cxx_compile_alternatives}; do 19495 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 19496 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 19498$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 19499if eval \${$cachevar+:} false; then : 19500 $as_echo_n "(cached) " >&6 19501else 19502 ac_save_CXX="$CXX" 19503 CXX="$CXX $switch" 19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19505/* end confdefs.h. */ 19506 19507 19508// If the compiler admits that it is not ready for C++11, why torture it? 19509// Hopefully, this will speed up the test. 19510 19511#ifndef __cplusplus 19512 19513#error "This is not a C++ compiler" 19514 19515#elif __cplusplus < 201103L 19516 19517#error "This is not a C++11 compiler" 19518 19519#else 19520 19521namespace cxx11 19522{ 19523 19524 namespace test_static_assert 19525 { 19526 19527 template <typename T> 19528 struct check 19529 { 19530 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 19531 }; 19532 19533 } 19534 19535 namespace test_final_override 19536 { 19537 19538 struct Base 19539 { 19540 virtual void f() {} 19541 }; 19542 19543 struct Derived : public Base 19544 { 19545 virtual void f() override {} 19546 }; 19547 19548 } 19549 19550 namespace test_double_right_angle_brackets 19551 { 19552 19553 template < typename T > 19554 struct check {}; 19555 19556 typedef check<void> single_type; 19557 typedef check<check<void>> double_type; 19558 typedef check<check<check<void>>> triple_type; 19559 typedef check<check<check<check<void>>>> quadruple_type; 19560 19561 } 19562 19563 namespace test_decltype 19564 { 19565 19566 int 19567 f() 19568 { 19569 int a = 1; 19570 decltype(a) b = 2; 19571 return a + b; 19572 } 19573 19574 } 19575 19576 namespace test_type_deduction 19577 { 19578 19579 template < typename T1, typename T2 > 19580 struct is_same 19581 { 19582 static const bool value = false; 19583 }; 19584 19585 template < typename T > 19586 struct is_same<T, T> 19587 { 19588 static const bool value = true; 19589 }; 19590 19591 template < typename T1, typename T2 > 19592 auto 19593 add(T1 a1, T2 a2) -> decltype(a1 + a2) 19594 { 19595 return a1 + a2; 19596 } 19597 19598 int 19599 test(const int c, volatile int v) 19600 { 19601 static_assert(is_same<int, decltype(0)>::value == true, ""); 19602 static_assert(is_same<int, decltype(c)>::value == false, ""); 19603 static_assert(is_same<int, decltype(v)>::value == false, ""); 19604 auto ac = c; 19605 auto av = v; 19606 auto sumi = ac + av + 'x'; 19607 auto sumf = ac + av + 1.0; 19608 static_assert(is_same<int, decltype(ac)>::value == true, ""); 19609 static_assert(is_same<int, decltype(av)>::value == true, ""); 19610 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 19611 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 19612 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 19613 return (sumf > 0.0) ? sumi : add(c, v); 19614 } 19615 19616 } 19617 19618 namespace test_noexcept 19619 { 19620 19621 int f() { return 0; } 19622 int g() noexcept { return 0; } 19623 19624 static_assert(noexcept(f()) == false, ""); 19625 static_assert(noexcept(g()) == true, ""); 19626 19627 } 19628 19629 namespace test_constexpr 19630 { 19631 19632 template < typename CharT > 19633 unsigned long constexpr 19634 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 19635 { 19636 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 19637 } 19638 19639 template < typename CharT > 19640 unsigned long constexpr 19641 strlen_c(const CharT *const s) noexcept 19642 { 19643 return strlen_c_r(s, 0UL); 19644 } 19645 19646 static_assert(strlen_c("") == 0UL, ""); 19647 static_assert(strlen_c("1") == 1UL, ""); 19648 static_assert(strlen_c("example") == 7UL, ""); 19649 static_assert(strlen_c("another\0example") == 7UL, ""); 19650 19651 } 19652 19653 namespace test_rvalue_references 19654 { 19655 19656 template < int N > 19657 struct answer 19658 { 19659 static constexpr int value = N; 19660 }; 19661 19662 answer<1> f(int&) { return answer<1>(); } 19663 answer<2> f(const int&) { return answer<2>(); } 19664 answer<3> f(int&&) { return answer<3>(); } 19665 19666 void 19667 test() 19668 { 19669 int i = 0; 19670 const int c = 0; 19671 static_assert(decltype(f(i))::value == 1, ""); 19672 static_assert(decltype(f(c))::value == 2, ""); 19673 static_assert(decltype(f(0))::value == 3, ""); 19674 } 19675 19676 } 19677 19678 namespace test_uniform_initialization 19679 { 19680 19681 struct test 19682 { 19683 static const int zero {}; 19684 static const int one {1}; 19685 }; 19686 19687 static_assert(test::zero == 0, ""); 19688 static_assert(test::one == 1, ""); 19689 19690 } 19691 19692 namespace test_lambdas 19693 { 19694 19695 void 19696 test1() 19697 { 19698 auto lambda1 = [](){}; 19699 auto lambda2 = lambda1; 19700 lambda1(); 19701 lambda2(); 19702 } 19703 19704 int 19705 test2() 19706 { 19707 auto a = [](int i, int j){ return i + j; }(1, 2); 19708 auto b = []() -> int { return '0'; }(); 19709 auto c = [=](){ return a + b; }(); 19710 auto d = [&](){ return c; }(); 19711 auto e = [a, &b](int x) mutable { 19712 const auto identity = [](int y){ return y; }; 19713 for (auto i = 0; i < a; ++i) 19714 a += b--; 19715 return x + identity(a + b); 19716 }(0); 19717 return a + b + c + d + e; 19718 } 19719 19720 int 19721 test3() 19722 { 19723 const auto nullary = [](){ return 0; }; 19724 const auto unary = [](int x){ return x; }; 19725 using nullary_t = decltype(nullary); 19726 using unary_t = decltype(unary); 19727 const auto higher1st = [](nullary_t f){ return f(); }; 19728 const auto higher2nd = [unary](nullary_t f1){ 19729 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 19730 }; 19731 return higher1st(nullary) + higher2nd(nullary)(unary); 19732 } 19733 19734 } 19735 19736 namespace test_variadic_templates 19737 { 19738 19739 template <int...> 19740 struct sum; 19741 19742 template <int N0, int... N1toN> 19743 struct sum<N0, N1toN...> 19744 { 19745 static constexpr auto value = N0 + sum<N1toN...>::value; 19746 }; 19747 19748 template <> 19749 struct sum<> 19750 { 19751 static constexpr auto value = 0; 19752 }; 19753 19754 static_assert(sum<>::value == 0, ""); 19755 static_assert(sum<1>::value == 1, ""); 19756 static_assert(sum<23>::value == 23, ""); 19757 static_assert(sum<1, 2>::value == 3, ""); 19758 static_assert(sum<5, 5, 11>::value == 21, ""); 19759 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 19760 19761 } 19762 19763 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 19764 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 19765 // because of this. 19766 namespace test_template_alias_sfinae 19767 { 19768 19769 struct foo {}; 19770 19771 template<typename T> 19772 using member = typename T::member_type; 19773 19774 template<typename T> 19775 void func(...) {} 19776 19777 template<typename T> 19778 void func(member<T>*) {} 19779 19780 void test(); 19781 19782 void test() { func<foo>(0); } 19783 19784 } 19785 19786} // namespace cxx11 19787 19788#endif // __cplusplus >= 201103L 19789 19790 19791 19792_ACEOF 19793if ac_fn_cxx_try_compile "$LINENO"; then : 19794 eval $cachevar=yes 19795else 19796 eval $cachevar=no 19797fi 19798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19799 CXX="$ac_save_CXX" 19800fi 19801eval ac_res=\$$cachevar 19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19803$as_echo "$ac_res" >&6; } 19804 if eval test x\$$cachevar = xyes; then 19805 CXX="$CXX $switch" 19806 if test -n "$CXXCPP" ; then 19807 CXXCPP="$CXXCPP $switch" 19808 fi 19809 ac_success=yes 19810 break 19811 fi 19812 done 19813 if test x$ac_success = xyes; then 19814 break 19815 fi 19816 done 19817 fi 19818 ac_ext=cpp 19819ac_cpp='$CXXCPP $CPPFLAGS' 19820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19823 19824 if test x$ax_cxx_compile_cxx11_required = xtrue; then 19825 if test x$ac_success = xno; then 19826 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 19827 fi 19828 fi 19829 if test x$ac_success = xno; then 19830 HAVE_CXX11=0 19831 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 19832$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 19833 else 19834 HAVE_CXX11=1 19835 19836$as_echo "#define HAVE_CXX11 1" >>confdefs.h 19837 19838 fi 19839 19840 19841 19842 ac_fn_cxx_check_header_compile "$LINENO" "fplll.h" "ac_cv_header_fplll_h" "#include <mpfr.h> 19843" 19844if test "x$ac_cv_header_fplll_h" = xyes; then : 19845 found_fplll=true 19846else 19847 found_fplll=false 19848fi 19849 19850 19851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lllReduction in -fplll (version 5.x)" >&5 19852$as_echo_n "checking for lllReduction in -fplll (version 5.x)... " >&6; } 19853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19854/* end confdefs.h. */ 19855#include <fplll.h> 19856int 19857main () 19858{ 19859ZZ_mat<mpz_t> M(3,3);lll_reduction(M, 0.99, 0.51, LM_WRAPPER); 19860 ; 19861 return 0; 19862} 19863_ACEOF 19864if ac_fn_cxx_try_link "$LINENO"; then : 19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19866$as_echo "yes" >&6; };found_fplll=5 19867else 19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19869$as_echo "no" >&6; };found_fplll=false 19870fi 19871rm -f core conftest.err conftest.$ac_objext \ 19872 conftest$ac_exeext conftest.$ac_ext 19873fi 19874ac_ext=c 19875ac_cpp='$CPP $CPPFLAGS' 19876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19878ac_compiler_gnu=$ac_cv_c_compiler_gnu 19879 19880 19881if test "$found_fplll" = false; then 19882 if test "$FPLLL" = yes; then 19883 as_fn_error $? "library fplll not found. Using --with-fplll, specify its location, or \"no\" to disable it." "$LINENO" 5 19884 else 19885 FPLLL=no 19886 found_fplll=4 19887 fi 19888else 19889 FPLLL=yes 19890fi 19891FPLLL_VERSION="$found_fplll" 19892 19893$as_echo "#define FPLLL_VERSION /**/" >>confdefs.h 19894 19895 19896fi 19897 19898CPPFLAGS="$temp_CPPFLAGS" 19899LDFLAGS="$temp_LDFLAGS" 19900LIBS="$temp_LIBS" 19901 19902if test "$FPLLL" != no; then 19903 19904$as_echo "#define USE_FPLLL 1" >>confdefs.h 19905 19906fi 19907 19908 19909 19910 if test x"$FPLLL" != xno; then 19911 WITH_FPLLL_IS_YES_TRUE= 19912 WITH_FPLLL_IS_YES_FALSE='#' 19913else 19914 WITH_FPLLL_IS_YES_TRUE='#' 19915 WITH_FPLLL_IS_YES_FALSE= 19916fi 19917 19918 19919else 19920 if false; then 19921 WITH_MPFI_IS_YES_TRUE= 19922 WITH_MPFI_IS_YES_FALSE='#' 19923else 19924 WITH_MPFI_IS_YES_TRUE='#' 19925 WITH_MPFI_IS_YES_FALSE= 19926fi 19927 19928 if false; then 19929 WITH_MPC_IS_YES_TRUE= 19930 WITH_MPC_IS_YES_FALSE='#' 19931else 19932 WITH_MPC_IS_YES_TRUE='#' 19933 WITH_MPC_IS_YES_FALSE= 19934fi 19935 19936 if false; then 19937 WITH_FPLLL_IS_YES_TRUE= 19938 WITH_FPLLL_IS_YES_FALSE='#' 19939else 19940 WITH_FPLLL_IS_YES_TRUE='#' 19941 WITH_FPLLL_IS_YES_FALSE= 19942fi 19943 19944fi 19945 19946 19947temp_LIBS="$LIBS" 19948temp_CPPFLAGS="$CPPFLAGS" 19949temp_LDFLAGS="$LDFLAGS" 19950CXSC=unknown 19951CXSC_WITH="" 19952CXSC_DEPEND="" 19953 19954 19955# Check whether --with-cxsc was given. 19956if test "${with_cxsc+set}" = set; then : 19957 withval=$with_cxsc; if test "$withval" = no; then 19958 CXSC=no 19959 elif test "$withval" = yes; then 19960 CXSC=yes 19961 else 19962 CXSC_WITH="$CXSC_WITH --with-cxsc=$withval" 19963 CXSC=yes 19964 CXSC_CFLAGS="-I$withval/include"; CXSC_LDFLAGS="-L$withval/lib" 19965 fi 19966 19967fi 19968 19969 19970 19971# Check whether --with-cxsc-include was given. 19972if test "${with_cxsc_include+set}" = set; then : 19973 withval=$with_cxsc_include; CXSC=yes 19974 CXSC_WITH="$CXSC_WITH --with-cxsc-include=$withval" 19975 CXSC_CFLAGS="-I$withval" 19976 19977fi 19978 19979 19980 19981# Check whether --with-cxsc-lib was given. 19982if test "${with_cxsc_lib+set}" = set; then : 19983 withval=$with_cxsc_lib; CXSC=yes 19984 CXSC_WITH="$CXSC_WITH --with-cxsc-lib=$withval" 19985 CXSC_LDFLAGS="-L$withval" 19986 19987fi 19988 19989 19990if test "$CXSC" != no; then 19991 19992CXSC_LIBS="-lcxsc" 19993 19994ac_ext=cpp 19995ac_cpp='$CXXCPP $CPPFLAGS' 19996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19999 20000temp_status=true 20001CPPFLAGS="$CPPFLAGS $CXSC_CFLAGS" 20002ac_fn_cxx_check_header_mongrel "$LINENO" "real.hpp" "ac_cv_header_real_hpp" "$ac_includes_default" 20003if test "x$ac_cv_header_real_hpp" = xyes; then : 20004 20005else 20006 temp_status=false 20007fi 20008 20009 20010LDFLAGS="$LDFLAGS $CXSC_LDFLAGS" 20011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z_zadd in -lcxsc" >&5 20012$as_echo_n "checking for z_zadd in -lcxsc... " >&6; } 20013if ${ac_cv_lib_cxsc_z_zadd+:} false; then : 20014 $as_echo_n "(cached) " >&6 20015else 20016 ac_check_lib_save_LIBS=$LIBS 20017LIBS="-lcxsc $LIBS" 20018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20019/* end confdefs.h. */ 20020 20021/* Override any GCC internal prototype to avoid an error. 20022 Use char because int might match the return type of a GCC 20023 builtin and then its argument prototype would still apply. */ 20024#ifdef __cplusplus 20025extern "C" 20026#endif 20027char z_zadd (); 20028int 20029main () 20030{ 20031return z_zadd (); 20032 ; 20033 return 0; 20034} 20035_ACEOF 20036if ac_fn_cxx_try_link "$LINENO"; then : 20037 ac_cv_lib_cxsc_z_zadd=yes 20038else 20039 ac_cv_lib_cxsc_z_zadd=no 20040fi 20041rm -f core conftest.err conftest.$ac_objext \ 20042 conftest$ac_exeext conftest.$ac_ext 20043LIBS=$ac_check_lib_save_LIBS 20044fi 20045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cxsc_z_zadd" >&5 20046$as_echo "$ac_cv_lib_cxsc_z_zadd" >&6; } 20047if test "x$ac_cv_lib_cxsc_z_zadd" = xyes; then : 20048 cat >>confdefs.h <<_ACEOF 20049#define HAVE_LIBCXSC 1 20050_ACEOF 20051 20052 LIBS="-lcxsc $LIBS" 20053 20054else 20055 temp_status=false 20056fi 20057 20058ac_ext=c 20059ac_cpp='$CPP $CPPFLAGS' 20060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20062ac_compiler_gnu=$ac_cv_c_compiler_gnu 20063 20064 20065if test "$temp_status" = false; then 20066 if test "$CXSC" = yes; then 20067 as_fn_error $? "library cxsc not found. Using --with-cxsc, specify its location, or \"no\" to disable it." "$LINENO" 5 20068 else 20069 CXSC=no 20070 fi 20071else 20072 CXSC=yes 20073fi 20074 20075fi 20076 20077CPPFLAGS="$temp_CPPFLAGS" 20078LDFLAGS="$temp_LDFLAGS" 20079LIBS="$temp_LIBS" 20080 20081if test "$CXSC" != no; then 20082 20083$as_echo "#define USE_CXSC 1" >>confdefs.h 20084 20085fi 20086 20087 20088 20089 if test x"$CXSC" != xno; then 20090 WITH_CXSC_IS_YES_TRUE= 20091 WITH_CXSC_IS_YES_FALSE='#' 20092else 20093 WITH_CXSC_IS_YES_TRUE='#' 20094 WITH_CXSC_IS_YES_FALSE= 20095fi 20096 20097 20098 20099################################################################ 20100# generate files 20101 20102mkdir -p bin/$GAPARCH 20103mkdir -p extern 20104 20105##CONFIG_STATUS=bin/$GAPARCH/config.status 20106## 20107##AC_CONFIG_FILES([$GAP_MAKEFILE:Makefile.in]) 20108## 20109##if test "$GAP_MAKEFILE" != Makefile; then 20110## ln -sf "$GAP_MAKEFILE" Makefile 20111##fi 20112 20113ac_config_files="$ac_config_files Makefile src/Makefile" 20114 20115cat >confcache <<\_ACEOF 20116# This file is a shell script that caches the results of configure 20117# tests run on this system so they can be shared between configure 20118# scripts and configure runs, see configure's option --config-cache. 20119# It is not useful on other systems. If it contains results you don't 20120# want to keep, you may remove or edit it. 20121# 20122# config.status only pays attention to the cache file if you give it 20123# the --recheck option to rerun configure. 20124# 20125# `ac_cv_env_foo' variables (set or unset) will be overridden when 20126# loading this file, other *unset* `ac_cv_foo' will be assigned the 20127# following values. 20128 20129_ACEOF 20130 20131# The following way of writing the cache mishandles newlines in values, 20132# but we know of no workaround that is simple, portable, and efficient. 20133# So, we kill variables containing newlines. 20134# Ultrix sh set writes to stderr and can't be redirected directly, 20135# and sets the high bit in the cache file unless we assign to the vars. 20136( 20137 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20138 eval ac_val=\$$ac_var 20139 case $ac_val in #( 20140 *${as_nl}*) 20141 case $ac_var in #( 20142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20143$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20144 esac 20145 case $ac_var in #( 20146 _ | IFS | as_nl) ;; #( 20147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20148 *) { eval $ac_var=; unset $ac_var;} ;; 20149 esac ;; 20150 esac 20151 done 20152 20153 (set) 2>&1 | 20154 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20155 *${as_nl}ac_space=\ *) 20156 # `set' does not quote correctly, so add quotes: double-quote 20157 # substitution turns \\\\ into \\, and sed turns \\ into \. 20158 sed -n \ 20159 "s/'/'\\\\''/g; 20160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20161 ;; #( 20162 *) 20163 # `set' quotes correctly as required by POSIX, so do not add quotes. 20164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20165 ;; 20166 esac | 20167 sort 20168) | 20169 sed ' 20170 /^ac_cv_env_/b end 20171 t clear 20172 :clear 20173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20174 t end 20175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20176 :end' >>confcache 20177if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20178 if test -w "$cache_file"; then 20179 if test "x$cache_file" != "x/dev/null"; then 20180 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20181$as_echo "$as_me: updating cache $cache_file" >&6;} 20182 if test ! -f "$cache_file" || test -h "$cache_file"; then 20183 cat confcache >"$cache_file" 20184 else 20185 case $cache_file in #( 20186 */* | ?:*) 20187 mv -f confcache "$cache_file"$$ && 20188 mv -f "$cache_file"$$ "$cache_file" ;; #( 20189 *) 20190 mv -f confcache "$cache_file" ;; 20191 esac 20192 fi 20193 fi 20194 else 20195 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20196$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20197 fi 20198fi 20199rm -f confcache 20200 20201test "x$prefix" = xNONE && prefix=$ac_default_prefix 20202# Let make expand exec_prefix. 20203test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20204 20205DEFS=-DHAVE_CONFIG_H 20206 20207ac_libobjs= 20208ac_ltlibobjs= 20209U= 20210for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20211 # 1. Remove the extension, and $U if already installed. 20212 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20213 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20214 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20215 # will be set to the directory where LIBOBJS objects are built. 20216 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20217 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20218done 20219LIBOBJS=$ac_libobjs 20220 20221LTLIBOBJS=$ac_ltlibobjs 20222 20223 20224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20225$as_echo_n "checking that generated files are newer than configure... " >&6; } 20226 if test -n "$am_sleep_pid"; then 20227 # Hide warnings about reused PIDs. 20228 wait $am_sleep_pid 2>/dev/null 20229 fi 20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20231$as_echo "done" >&6; } 20232 if test -n "$EXEEXT"; then 20233 am__EXEEXT_TRUE= 20234 am__EXEEXT_FALSE='#' 20235else 20236 am__EXEEXT_TRUE='#' 20237 am__EXEEXT_FALSE= 20238fi 20239 20240if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20241 as_fn_error $? "conditional \"AMDEP\" was never defined. 20242Usually this means the macro was only invoked conditionally." "$LINENO" 5 20243fi 20244if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20245 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20246Usually this means the macro was only invoked conditionally." "$LINENO" 5 20247fi 20248if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20249 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20250Usually this means the macro was only invoked conditionally." "$LINENO" 5 20251fi 20252if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20253 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20254Usually this means the macro was only invoked conditionally." "$LINENO" 5 20255fi 20256if test -z "${SYS_IS_CYGWIN_TRUE}" && test -z "${SYS_IS_CYGWIN_FALSE}"; then 20257 as_fn_error $? "conditional \"SYS_IS_CYGWIN\" was never defined. 20258Usually this means the macro was only invoked conditionally." "$LINENO" 5 20259fi 20260if test -z "${WITH_MPFR_IS_YES_TRUE}" && test -z "${WITH_MPFR_IS_YES_FALSE}"; then 20261 as_fn_error $? "conditional \"WITH_MPFR_IS_YES\" was never defined. 20262Usually this means the macro was only invoked conditionally." "$LINENO" 5 20263fi 20264if test -z "${WITH_MPFI_IS_YES_TRUE}" && test -z "${WITH_MPFI_IS_YES_FALSE}"; then 20265 as_fn_error $? "conditional \"WITH_MPFI_IS_YES\" was never defined. 20266Usually this means the macro was only invoked conditionally." "$LINENO" 5 20267fi 20268if test -z "${WITH_MPC_IS_YES_TRUE}" && test -z "${WITH_MPC_IS_YES_FALSE}"; then 20269 as_fn_error $? "conditional \"WITH_MPC_IS_YES\" was never defined. 20270Usually this means the macro was only invoked conditionally." "$LINENO" 5 20271fi 20272if test -z "${WITH_FPLLL_IS_YES_TRUE}" && test -z "${WITH_FPLLL_IS_YES_FALSE}"; then 20273 as_fn_error $? "conditional \"WITH_FPLLL_IS_YES\" was never defined. 20274Usually this means the macro was only invoked conditionally." "$LINENO" 5 20275fi 20276if test -z "${WITH_MPFI_IS_YES_TRUE}" && test -z "${WITH_MPFI_IS_YES_FALSE}"; then 20277 as_fn_error $? "conditional \"WITH_MPFI_IS_YES\" was never defined. 20278Usually this means the macro was only invoked conditionally." "$LINENO" 5 20279fi 20280if test -z "${WITH_MPC_IS_YES_TRUE}" && test -z "${WITH_MPC_IS_YES_FALSE}"; then 20281 as_fn_error $? "conditional \"WITH_MPC_IS_YES\" was never defined. 20282Usually this means the macro was only invoked conditionally." "$LINENO" 5 20283fi 20284if test -z "${WITH_FPLLL_IS_YES_TRUE}" && test -z "${WITH_FPLLL_IS_YES_FALSE}"; then 20285 as_fn_error $? "conditional \"WITH_FPLLL_IS_YES\" was never defined. 20286Usually this means the macro was only invoked conditionally." "$LINENO" 5 20287fi 20288if test -z "${WITH_CXSC_IS_YES_TRUE}" && test -z "${WITH_CXSC_IS_YES_FALSE}"; then 20289 as_fn_error $? "conditional \"WITH_CXSC_IS_YES\" was never defined. 20290Usually this means the macro was only invoked conditionally." "$LINENO" 5 20291fi 20292 20293: "${CONFIG_STATUS=./config.status}" 20294ac_write_fail=0 20295ac_clean_files_save=$ac_clean_files 20296ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20297{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20298$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20299as_write_fail=0 20300cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20301#! $SHELL 20302# Generated by $as_me. 20303# Run this file to recreate the current configuration. 20304# Compiler output produced by configure, useful for debugging 20305# configure, is in config.log if it exists. 20306 20307debug=false 20308ac_cs_recheck=false 20309ac_cs_silent=false 20310 20311SHELL=\${CONFIG_SHELL-$SHELL} 20312export SHELL 20313_ASEOF 20314cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20315## -------------------- ## 20316## M4sh Initialization. ## 20317## -------------------- ## 20318 20319# Be more Bourne compatible 20320DUALCASE=1; export DUALCASE # for MKS sh 20321if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20322 emulate sh 20323 NULLCMD=: 20324 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20325 # is contrary to our usage. Disable this feature. 20326 alias -g '${1+"$@"}'='"$@"' 20327 setopt NO_GLOB_SUBST 20328else 20329 case `(set -o) 2>/dev/null` in #( 20330 *posix*) : 20331 set -o posix ;; #( 20332 *) : 20333 ;; 20334esac 20335fi 20336 20337 20338as_nl=' 20339' 20340export as_nl 20341# Printing a long string crashes Solaris 7 /usr/bin/printf. 20342as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20343as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20344as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20345# Prefer a ksh shell builtin over an external printf program on Solaris, 20346# but without wasting forks for bash or zsh. 20347if test -z "$BASH_VERSION$ZSH_VERSION" \ 20348 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20349 as_echo='print -r --' 20350 as_echo_n='print -rn --' 20351elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20352 as_echo='printf %s\n' 20353 as_echo_n='printf %s' 20354else 20355 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20356 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20357 as_echo_n='/usr/ucb/echo -n' 20358 else 20359 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20360 as_echo_n_body='eval 20361 arg=$1; 20362 case $arg in #( 20363 *"$as_nl"*) 20364 expr "X$arg" : "X\\(.*\\)$as_nl"; 20365 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20366 esac; 20367 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20368 ' 20369 export as_echo_n_body 20370 as_echo_n='sh -c $as_echo_n_body as_echo' 20371 fi 20372 export as_echo_body 20373 as_echo='sh -c $as_echo_body as_echo' 20374fi 20375 20376# The user is always right. 20377if test "${PATH_SEPARATOR+set}" != set; then 20378 PATH_SEPARATOR=: 20379 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20380 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20381 PATH_SEPARATOR=';' 20382 } 20383fi 20384 20385 20386# IFS 20387# We need space, tab and new line, in precisely that order. Quoting is 20388# there to prevent editors from complaining about space-tab. 20389# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20390# splitting by setting IFS to empty value.) 20391IFS=" "" $as_nl" 20392 20393# Find who we are. Look in the path if we contain no directory separator. 20394as_myself= 20395case $0 in #(( 20396 *[\\/]* ) as_myself=$0 ;; 20397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20398for as_dir in $PATH 20399do 20400 IFS=$as_save_IFS 20401 test -z "$as_dir" && as_dir=. 20402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20403 done 20404IFS=$as_save_IFS 20405 20406 ;; 20407esac 20408# We did not find ourselves, most probably we were run as `sh COMMAND' 20409# in which case we are not to be found in the path. 20410if test "x$as_myself" = x; then 20411 as_myself=$0 20412fi 20413if test ! -f "$as_myself"; then 20414 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20415 exit 1 20416fi 20417 20418# Unset variables that we do not need and which cause bugs (e.g. in 20419# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20420# suppresses any "Segmentation fault" message there. '((' could 20421# trigger a bug in pdksh 5.2.14. 20422for as_var in BASH_ENV ENV MAIL MAILPATH 20423do eval test x\${$as_var+set} = xset \ 20424 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20425done 20426PS1='$ ' 20427PS2='> ' 20428PS4='+ ' 20429 20430# NLS nuisances. 20431LC_ALL=C 20432export LC_ALL 20433LANGUAGE=C 20434export LANGUAGE 20435 20436# CDPATH. 20437(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20438 20439 20440# as_fn_error STATUS ERROR [LINENO LOG_FD] 20441# ---------------------------------------- 20442# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20443# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20444# script with STATUS, using 1 if that was 0. 20445as_fn_error () 20446{ 20447 as_status=$1; test $as_status -eq 0 && as_status=1 20448 if test "$4"; then 20449 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20450 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20451 fi 20452 $as_echo "$as_me: error: $2" >&2 20453 as_fn_exit $as_status 20454} # as_fn_error 20455 20456 20457# as_fn_set_status STATUS 20458# ----------------------- 20459# Set $? to STATUS, without forking. 20460as_fn_set_status () 20461{ 20462 return $1 20463} # as_fn_set_status 20464 20465# as_fn_exit STATUS 20466# ----------------- 20467# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20468as_fn_exit () 20469{ 20470 set +e 20471 as_fn_set_status $1 20472 exit $1 20473} # as_fn_exit 20474 20475# as_fn_unset VAR 20476# --------------- 20477# Portably unset VAR. 20478as_fn_unset () 20479{ 20480 { eval $1=; unset $1;} 20481} 20482as_unset=as_fn_unset 20483# as_fn_append VAR VALUE 20484# ---------------------- 20485# Append the text in VALUE to the end of the definition contained in VAR. Take 20486# advantage of any shell optimizations that allow amortized linear growth over 20487# repeated appends, instead of the typical quadratic growth present in naive 20488# implementations. 20489if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20490 eval 'as_fn_append () 20491 { 20492 eval $1+=\$2 20493 }' 20494else 20495 as_fn_append () 20496 { 20497 eval $1=\$$1\$2 20498 } 20499fi # as_fn_append 20500 20501# as_fn_arith ARG... 20502# ------------------ 20503# Perform arithmetic evaluation on the ARGs, and store the result in the 20504# global $as_val. Take advantage of shells that can avoid forks. The arguments 20505# must be portable across $(()) and expr. 20506if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20507 eval 'as_fn_arith () 20508 { 20509 as_val=$(( $* )) 20510 }' 20511else 20512 as_fn_arith () 20513 { 20514 as_val=`expr "$@" || test $? -eq 1` 20515 } 20516fi # as_fn_arith 20517 20518 20519if expr a : '\(a\)' >/dev/null 2>&1 && 20520 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20521 as_expr=expr 20522else 20523 as_expr=false 20524fi 20525 20526if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20527 as_basename=basename 20528else 20529 as_basename=false 20530fi 20531 20532if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20533 as_dirname=dirname 20534else 20535 as_dirname=false 20536fi 20537 20538as_me=`$as_basename -- "$0" || 20539$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20540 X"$0" : 'X\(//\)$' \| \ 20541 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20542$as_echo X/"$0" | 20543 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20544 s//\1/ 20545 q 20546 } 20547 /^X\/\(\/\/\)$/{ 20548 s//\1/ 20549 q 20550 } 20551 /^X\/\(\/\).*/{ 20552 s//\1/ 20553 q 20554 } 20555 s/.*/./; q'` 20556 20557# Avoid depending upon Character Ranges. 20558as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20559as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20560as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20561as_cr_digits='0123456789' 20562as_cr_alnum=$as_cr_Letters$as_cr_digits 20563 20564ECHO_C= ECHO_N= ECHO_T= 20565case `echo -n x` in #((((( 20566-n*) 20567 case `echo 'xy\c'` in 20568 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20569 xy) ECHO_C='\c';; 20570 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20571 ECHO_T=' ';; 20572 esac;; 20573*) 20574 ECHO_N='-n';; 20575esac 20576 20577rm -f conf$$ conf$$.exe conf$$.file 20578if test -d conf$$.dir; then 20579 rm -f conf$$.dir/conf$$.file 20580else 20581 rm -f conf$$.dir 20582 mkdir conf$$.dir 2>/dev/null 20583fi 20584if (echo >conf$$.file) 2>/dev/null; then 20585 if ln -s conf$$.file conf$$ 2>/dev/null; then 20586 as_ln_s='ln -s' 20587 # ... but there are two gotchas: 20588 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20589 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20590 # In both cases, we have to default to `cp -pR'. 20591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20592 as_ln_s='cp -pR' 20593 elif ln conf$$.file conf$$ 2>/dev/null; then 20594 as_ln_s=ln 20595 else 20596 as_ln_s='cp -pR' 20597 fi 20598else 20599 as_ln_s='cp -pR' 20600fi 20601rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20602rmdir conf$$.dir 2>/dev/null 20603 20604 20605# as_fn_mkdir_p 20606# ------------- 20607# Create "$as_dir" as a directory, including parents if necessary. 20608as_fn_mkdir_p () 20609{ 20610 20611 case $as_dir in #( 20612 -*) as_dir=./$as_dir;; 20613 esac 20614 test -d "$as_dir" || eval $as_mkdir_p || { 20615 as_dirs= 20616 while :; do 20617 case $as_dir in #( 20618 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20619 *) as_qdir=$as_dir;; 20620 esac 20621 as_dirs="'$as_qdir' $as_dirs" 20622 as_dir=`$as_dirname -- "$as_dir" || 20623$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20624 X"$as_dir" : 'X\(//\)[^/]' \| \ 20625 X"$as_dir" : 'X\(//\)$' \| \ 20626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20627$as_echo X"$as_dir" | 20628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20629 s//\1/ 20630 q 20631 } 20632 /^X\(\/\/\)[^/].*/{ 20633 s//\1/ 20634 q 20635 } 20636 /^X\(\/\/\)$/{ 20637 s//\1/ 20638 q 20639 } 20640 /^X\(\/\).*/{ 20641 s//\1/ 20642 q 20643 } 20644 s/.*/./; q'` 20645 test -d "$as_dir" && break 20646 done 20647 test -z "$as_dirs" || eval "mkdir $as_dirs" 20648 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20649 20650 20651} # as_fn_mkdir_p 20652if mkdir -p . 2>/dev/null; then 20653 as_mkdir_p='mkdir -p "$as_dir"' 20654else 20655 test -d ./-p && rmdir ./-p 20656 as_mkdir_p=false 20657fi 20658 20659 20660# as_fn_executable_p FILE 20661# ----------------------- 20662# Test if FILE is an executable regular file. 20663as_fn_executable_p () 20664{ 20665 test -f "$1" && test -x "$1" 20666} # as_fn_executable_p 20667as_test_x='test -x' 20668as_executable_p=as_fn_executable_p 20669 20670# Sed expression to map a string onto a valid CPP name. 20671as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20672 20673# Sed expression to map a string onto a valid variable name. 20674as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20675 20676 20677exec 6>&1 20678## ----------------------------------- ## 20679## Main body of $CONFIG_STATUS script. ## 20680## ----------------------------------- ## 20681_ASEOF 20682test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20683 20684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20685# Save the log message, to keep $0 and so on meaningful, and to 20686# report actual input values of CONFIG_FILES etc. instead of their 20687# values after options handling. 20688ac_log=" 20689This file was extended by float $as_me 0.5.18, which was 20690generated by GNU Autoconf 2.69. Invocation command line was 20691 20692 CONFIG_FILES = $CONFIG_FILES 20693 CONFIG_HEADERS = $CONFIG_HEADERS 20694 CONFIG_LINKS = $CONFIG_LINKS 20695 CONFIG_COMMANDS = $CONFIG_COMMANDS 20696 $ $0 $@ 20697 20698on `(hostname || uname -n) 2>/dev/null | sed 1q` 20699" 20700 20701_ACEOF 20702 20703case $ac_config_files in *" 20704"*) set x $ac_config_files; shift; ac_config_files=$*;; 20705esac 20706 20707case $ac_config_headers in *" 20708"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20709esac 20710 20711 20712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20713# Files that config.status was made for. 20714config_files="$ac_config_files" 20715config_headers="$ac_config_headers" 20716config_commands="$ac_config_commands" 20717 20718_ACEOF 20719 20720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20721ac_cs_usage="\ 20722\`$as_me' instantiates files and other configuration actions 20723from templates according to the current configuration. Unless the files 20724and actions are specified as TAGs, all are instantiated by default. 20725 20726Usage: $0 [OPTION]... [TAG]... 20727 20728 -h, --help print this help, then exit 20729 -V, --version print version number and configuration settings, then exit 20730 --config print configuration, then exit 20731 -q, --quiet, --silent 20732 do not print progress messages 20733 -d, --debug don't remove temporary files 20734 --recheck update $as_me by reconfiguring in the same conditions 20735 --file=FILE[:TEMPLATE] 20736 instantiate the configuration file FILE 20737 --header=FILE[:TEMPLATE] 20738 instantiate the configuration header FILE 20739 20740Configuration files: 20741$config_files 20742 20743Configuration headers: 20744$config_headers 20745 20746Configuration commands: 20747$config_commands 20748 20749Report bugs to <laurent.bartholdi@gmail.com>." 20750 20751_ACEOF 20752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20753ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20754ac_cs_version="\\ 20755float config.status 0.5.18 20756configured by $0, generated by GNU Autoconf 2.69, 20757 with options \\"\$ac_cs_config\\" 20758 20759Copyright (C) 2012 Free Software Foundation, Inc. 20760This config.status script is free software; the Free Software Foundation 20761gives unlimited permission to copy, distribute and modify it." 20762 20763ac_pwd='$ac_pwd' 20764srcdir='$srcdir' 20765INSTALL='$INSTALL' 20766MKDIR_P='$MKDIR_P' 20767AWK='$AWK' 20768test -n "\$AWK" || AWK=awk 20769_ACEOF 20770 20771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20772# The default lists apply if the user does not specify any file. 20773ac_need_defaults=: 20774while test $# != 0 20775do 20776 case $1 in 20777 --*=?*) 20778 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20779 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20780 ac_shift=: 20781 ;; 20782 --*=) 20783 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20784 ac_optarg= 20785 ac_shift=: 20786 ;; 20787 *) 20788 ac_option=$1 20789 ac_optarg=$2 20790 ac_shift=shift 20791 ;; 20792 esac 20793 20794 case $ac_option in 20795 # Handling of the options. 20796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20797 ac_cs_recheck=: ;; 20798 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20799 $as_echo "$ac_cs_version"; exit ;; 20800 --config | --confi | --conf | --con | --co | --c ) 20801 $as_echo "$ac_cs_config"; exit ;; 20802 --debug | --debu | --deb | --de | --d | -d ) 20803 debug=: ;; 20804 --file | --fil | --fi | --f ) 20805 $ac_shift 20806 case $ac_optarg in 20807 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20808 '') as_fn_error $? "missing file argument" ;; 20809 esac 20810 as_fn_append CONFIG_FILES " '$ac_optarg'" 20811 ac_need_defaults=false;; 20812 --header | --heade | --head | --hea ) 20813 $ac_shift 20814 case $ac_optarg in 20815 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20816 esac 20817 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20818 ac_need_defaults=false;; 20819 --he | --h) 20820 # Conflict between --help and --header 20821 as_fn_error $? "ambiguous option: \`$1' 20822Try \`$0 --help' for more information.";; 20823 --help | --hel | -h ) 20824 $as_echo "$ac_cs_usage"; exit ;; 20825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20826 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20827 ac_cs_silent=: ;; 20828 20829 # This is an error. 20830 -*) as_fn_error $? "unrecognized option: \`$1' 20831Try \`$0 --help' for more information." ;; 20832 20833 *) as_fn_append ac_config_targets " $1" 20834 ac_need_defaults=false ;; 20835 20836 esac 20837 shift 20838done 20839 20840ac_configure_extra_args= 20841 20842if $ac_cs_silent; then 20843 exec 6>/dev/null 20844 ac_configure_extra_args="$ac_configure_extra_args --silent" 20845fi 20846 20847_ACEOF 20848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20849if \$ac_cs_recheck; then 20850 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20851 shift 20852 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20853 CONFIG_SHELL='$SHELL' 20854 export CONFIG_SHELL 20855 exec "\$@" 20856fi 20857 20858_ACEOF 20859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20860exec 5>>config.log 20861{ 20862 echo 20863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20864## Running $as_me. ## 20865_ASBOX 20866 $as_echo "$ac_log" 20867} >&5 20868 20869_ACEOF 20870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20871# 20872# INIT-COMMANDS 20873# 20874AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20875 20876 20877# The HP-UX ksh and POSIX shell print the target directory to stdout 20878# if CDPATH is set. 20879(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20880 20881sed_quote_subst='$sed_quote_subst' 20882double_quote_subst='$double_quote_subst' 20883delay_variable_subst='$delay_variable_subst' 20884macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20885macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20886enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20887AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 20888DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20889OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20890enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20891pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20892enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20893shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20894SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20895ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20896PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20897host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20898host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20899host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20900build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20901build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20902build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20903SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20904Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20905GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20906EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20907FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20908LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20909NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20910LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20911max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20912ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20913exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20914lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20915lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20916lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20917lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20918lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20919reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20920reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20921deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20922file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20923file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20924want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20925sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20926AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20927AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20928archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20929STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20930RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20931old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20932old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20933old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20934lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20935CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20936CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20937compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20938GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20939lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20940lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20941lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20942lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20943lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 20944lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20945nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20946lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20947lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20948objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20949MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20950lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20951lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20952lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20953lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20954lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20955need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20956MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20957DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20958NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20959LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20960OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20961OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20962libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20963shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20964extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20965archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20966enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20967export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20968whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20969compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20970old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20971old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20972archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20973archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20974module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20975module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20976with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20977allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20978no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20979hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20980hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20981hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20982hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20983hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20984hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20985hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20986inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20987link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20988always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20989export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20990exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20991include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20992prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20993postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20994file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20995variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20996need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20997need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20998version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20999runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21000shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21001shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21002libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21003library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21004soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21005install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21006postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21007postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21008finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21009finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21010hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21011sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21012configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21013configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21014hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21015enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21016enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21017enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21018old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21019striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21020compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21021predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21022postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21023predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21024postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21025compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21026LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21027reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21028reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21029old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21030compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21031GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21032lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21033lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21034lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21035lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21036lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21037archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21038enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21039export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21040whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21041compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21042old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21043old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21044archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21045archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21046module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21047module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21048with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21049allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21050no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21051hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21052hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21053hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21054hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21055hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21056hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21057hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21058inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21059link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21060always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21061export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21062exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21063include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21064prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21065postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21066file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21067hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21068compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21069predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21070postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21071predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21072postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21073compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21074 21075LTCC='$LTCC' 21076LTCFLAGS='$LTCFLAGS' 21077compiler='$compiler_DEFAULT' 21078 21079# A function that is used when there is no print builtin or printf. 21080func_fallback_echo () 21081{ 21082 eval 'cat <<_LTECHO_EOF 21083\$1 21084_LTECHO_EOF' 21085} 21086 21087# Quote evaled strings. 21088for var in AS \ 21089DLLTOOL \ 21090OBJDUMP \ 21091SHELL \ 21092ECHO \ 21093PATH_SEPARATOR \ 21094SED \ 21095GREP \ 21096EGREP \ 21097FGREP \ 21098LD \ 21099NM \ 21100LN_S \ 21101lt_SP2NL \ 21102lt_NL2SP \ 21103reload_flag \ 21104deplibs_check_method \ 21105file_magic_cmd \ 21106file_magic_glob \ 21107want_nocaseglob \ 21108sharedlib_from_linklib_cmd \ 21109AR \ 21110AR_FLAGS \ 21111archiver_list_spec \ 21112STRIP \ 21113RANLIB \ 21114CC \ 21115CFLAGS \ 21116compiler \ 21117lt_cv_sys_global_symbol_pipe \ 21118lt_cv_sys_global_symbol_to_cdecl \ 21119lt_cv_sys_global_symbol_to_import \ 21120lt_cv_sys_global_symbol_to_c_name_address \ 21121lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21122lt_cv_nm_interface \ 21123nm_file_list_spec \ 21124lt_cv_truncate_bin \ 21125lt_prog_compiler_no_builtin_flag \ 21126lt_prog_compiler_pic \ 21127lt_prog_compiler_wl \ 21128lt_prog_compiler_static \ 21129lt_cv_prog_compiler_c_o \ 21130need_locks \ 21131MANIFEST_TOOL \ 21132DSYMUTIL \ 21133NMEDIT \ 21134LIPO \ 21135OTOOL \ 21136OTOOL64 \ 21137shrext_cmds \ 21138export_dynamic_flag_spec \ 21139whole_archive_flag_spec \ 21140compiler_needs_object \ 21141with_gnu_ld \ 21142allow_undefined_flag \ 21143no_undefined_flag \ 21144hardcode_libdir_flag_spec \ 21145hardcode_libdir_separator \ 21146exclude_expsyms \ 21147include_expsyms \ 21148file_list_spec \ 21149variables_saved_for_relink \ 21150libname_spec \ 21151library_names_spec \ 21152soname_spec \ 21153install_override_mode \ 21154finish_eval \ 21155old_striplib \ 21156striplib \ 21157compiler_lib_search_dirs \ 21158predep_objects \ 21159postdep_objects \ 21160predeps \ 21161postdeps \ 21162compiler_lib_search_path \ 21163LD_CXX \ 21164reload_flag_CXX \ 21165compiler_CXX \ 21166lt_prog_compiler_no_builtin_flag_CXX \ 21167lt_prog_compiler_pic_CXX \ 21168lt_prog_compiler_wl_CXX \ 21169lt_prog_compiler_static_CXX \ 21170lt_cv_prog_compiler_c_o_CXX \ 21171export_dynamic_flag_spec_CXX \ 21172whole_archive_flag_spec_CXX \ 21173compiler_needs_object_CXX \ 21174with_gnu_ld_CXX \ 21175allow_undefined_flag_CXX \ 21176no_undefined_flag_CXX \ 21177hardcode_libdir_flag_spec_CXX \ 21178hardcode_libdir_separator_CXX \ 21179exclude_expsyms_CXX \ 21180include_expsyms_CXX \ 21181file_list_spec_CXX \ 21182compiler_lib_search_dirs_CXX \ 21183predep_objects_CXX \ 21184postdep_objects_CXX \ 21185predeps_CXX \ 21186postdeps_CXX \ 21187compiler_lib_search_path_CXX; do 21188 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21189 *[\\\\\\\`\\"\\\$]*) 21190 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21191 ;; 21192 *) 21193 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21194 ;; 21195 esac 21196done 21197 21198# Double-quote double-evaled strings. 21199for var in reload_cmds \ 21200old_postinstall_cmds \ 21201old_postuninstall_cmds \ 21202old_archive_cmds \ 21203extract_expsyms_cmds \ 21204old_archive_from_new_cmds \ 21205old_archive_from_expsyms_cmds \ 21206archive_cmds \ 21207archive_expsym_cmds \ 21208module_cmds \ 21209module_expsym_cmds \ 21210export_symbols_cmds \ 21211prelink_cmds \ 21212postlink_cmds \ 21213postinstall_cmds \ 21214postuninstall_cmds \ 21215finish_cmds \ 21216sys_lib_search_path_spec \ 21217configure_time_dlsearch_path \ 21218configure_time_lt_sys_library_path \ 21219reload_cmds_CXX \ 21220old_archive_cmds_CXX \ 21221old_archive_from_new_cmds_CXX \ 21222old_archive_from_expsyms_cmds_CXX \ 21223archive_cmds_CXX \ 21224archive_expsym_cmds_CXX \ 21225module_cmds_CXX \ 21226module_expsym_cmds_CXX \ 21227export_symbols_cmds_CXX \ 21228prelink_cmds_CXX \ 21229postlink_cmds_CXX; do 21230 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21231 *[\\\\\\\`\\"\\\$]*) 21232 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21233 ;; 21234 *) 21235 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21236 ;; 21237 esac 21238done 21239 21240ac_aux_dir='$ac_aux_dir' 21241 21242# See if we are running on zsh, and set the options that allow our 21243# commands through without removal of \ escapes INIT. 21244if test -n "\${ZSH_VERSION+set}"; then 21245 setopt NO_GLOB_SUBST 21246fi 21247 21248 21249 PACKAGE='$PACKAGE' 21250 VERSION='$VERSION' 21251 RM='$RM' 21252 ofile='$ofile' 21253 21254 21255 21256 21257 21258 21259_ACEOF 21260 21261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21262 21263# Handling of arguments. 21264for ac_config_target in $ac_config_targets 21265do 21266 case $ac_config_target in 21267 "src/floatconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/floatconfig.h:config.h.in" ;; 21268 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21269 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21270 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21271 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21272 21273 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21274 esac 21275done 21276 21277 21278# If the user did not use the arguments to specify the items to instantiate, 21279# then the envvar interface is used. Set only those that are not. 21280# We use the long form for the default assignment because of an extremely 21281# bizarre bug on SunOS 4.1.3. 21282if $ac_need_defaults; then 21283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21286fi 21287 21288# Have a temporary directory for convenience. Make it in the build tree 21289# simply because there is no reason against having it here, and in addition, 21290# creating and moving files from /tmp can sometimes cause problems. 21291# Hook for its removal unless debugging. 21292# Note that there is a small window in which the directory will not be cleaned: 21293# after its creation but before its name has been assigned to `$tmp'. 21294$debug || 21295{ 21296 tmp= ac_tmp= 21297 trap 'exit_status=$? 21298 : "${ac_tmp:=$tmp}" 21299 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21300' 0 21301 trap 'as_fn_exit 1' 1 2 13 15 21302} 21303# Create a (secure) tmp directory for tmp files. 21304 21305{ 21306 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21307 test -d "$tmp" 21308} || 21309{ 21310 tmp=./conf$$-$RANDOM 21311 (umask 077 && mkdir "$tmp") 21312} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21313ac_tmp=$tmp 21314 21315# Set up the scripts for CONFIG_FILES section. 21316# No need to generate them if there are no CONFIG_FILES. 21317# This happens for instance with `./config.status config.h'. 21318if test -n "$CONFIG_FILES"; then 21319 21320 21321ac_cr=`echo X | tr X '\015'` 21322# On cygwin, bash can eat \r inside `` if the user requested igncr. 21323# But we know of no other shell where ac_cr would be empty at this 21324# point, so we can use a bashism as a fallback. 21325if test "x$ac_cr" = x; then 21326 eval ac_cr=\$\'\\r\' 21327fi 21328ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21329if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21330 ac_cs_awk_cr='\\r' 21331else 21332 ac_cs_awk_cr=$ac_cr 21333fi 21334 21335echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21336_ACEOF 21337 21338 21339{ 21340 echo "cat >conf$$subs.awk <<_ACEOF" && 21341 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21342 echo "_ACEOF" 21343} >conf$$subs.sh || 21344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21345ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21346ac_delim='%!_!# ' 21347for ac_last_try in false false false false false :; do 21348 . ./conf$$subs.sh || 21349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21350 21351 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21352 if test $ac_delim_n = $ac_delim_num; then 21353 break 21354 elif $ac_last_try; then 21355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21356 else 21357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21358 fi 21359done 21360rm -f conf$$subs.sh 21361 21362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21363cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21364_ACEOF 21365sed -n ' 21366h 21367s/^/S["/; s/!.*/"]=/ 21368p 21369g 21370s/^[^!]*!// 21371:repl 21372t repl 21373s/'"$ac_delim"'$// 21374t delim 21375:nl 21376h 21377s/\(.\{148\}\)..*/\1/ 21378t more1 21379s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21380p 21381n 21382b repl 21383:more1 21384s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21385p 21386g 21387s/.\{148\}// 21388t nl 21389:delim 21390h 21391s/\(.\{148\}\)..*/\1/ 21392t more2 21393s/["\\]/\\&/g; s/^/"/; s/$/"/ 21394p 21395b 21396:more2 21397s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21398p 21399g 21400s/.\{148\}// 21401t delim 21402' <conf$$subs.awk | sed ' 21403/^[^""]/{ 21404 N 21405 s/\n// 21406} 21407' >>$CONFIG_STATUS || ac_write_fail=1 21408rm -f conf$$subs.awk 21409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21410_ACAWK 21411cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21412 for (key in S) S_is_set[key] = 1 21413 FS = "" 21414 21415} 21416{ 21417 line = $ 0 21418 nfields = split(line, field, "@") 21419 substed = 0 21420 len = length(field[1]) 21421 for (i = 2; i < nfields; i++) { 21422 key = field[i] 21423 keylen = length(key) 21424 if (S_is_set[key]) { 21425 value = S[key] 21426 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21427 len += length(value) + length(field[++i]) 21428 substed = 1 21429 } else 21430 len += 1 + keylen 21431 } 21432 21433 print line 21434} 21435 21436_ACAWK 21437_ACEOF 21438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21439if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21440 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21441else 21442 cat 21443fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21444 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21445_ACEOF 21446 21447# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21448# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21449# trailing colons and then remove the whole line if VPATH becomes empty 21450# (actually we leave an empty line to preserve line numbers). 21451if test "x$srcdir" = x.; then 21452 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21453h 21454s/// 21455s/^/:/ 21456s/[ ]*$/:/ 21457s/:\$(srcdir):/:/g 21458s/:\${srcdir}:/:/g 21459s/:@srcdir@:/:/g 21460s/^:*// 21461s/:*$// 21462x 21463s/\(=[ ]*\).*/\1/ 21464G 21465s/\n// 21466s/^[^=]*=[ ]*$// 21467}' 21468fi 21469 21470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21471fi # test -n "$CONFIG_FILES" 21472 21473# Set up the scripts for CONFIG_HEADERS section. 21474# No need to generate them if there are no CONFIG_HEADERS. 21475# This happens for instance with `./config.status Makefile'. 21476if test -n "$CONFIG_HEADERS"; then 21477cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21478BEGIN { 21479_ACEOF 21480 21481# Transform confdefs.h into an awk script `defines.awk', embedded as 21482# here-document in config.status, that substitutes the proper values into 21483# config.h.in to produce config.h. 21484 21485# Create a delimiter string that does not exist in confdefs.h, to ease 21486# handling of long lines. 21487ac_delim='%!_!# ' 21488for ac_last_try in false false :; do 21489 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21490 if test -z "$ac_tt"; then 21491 break 21492 elif $ac_last_try; then 21493 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21494 else 21495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21496 fi 21497done 21498 21499# For the awk script, D is an array of macro values keyed by name, 21500# likewise P contains macro parameters if any. Preserve backslash 21501# newline sequences. 21502 21503ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21504sed -n ' 21505s/.\{148\}/&'"$ac_delim"'/g 21506t rset 21507:rset 21508s/^[ ]*#[ ]*define[ ][ ]*/ / 21509t def 21510d 21511:def 21512s/\\$// 21513t bsnl 21514s/["\\]/\\&/g 21515s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21516D["\1"]=" \3"/p 21517s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21518d 21519:bsnl 21520s/["\\]/\\&/g 21521s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21522D["\1"]=" \3\\\\\\n"\\/p 21523t cont 21524s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21525t cont 21526d 21527:cont 21528n 21529s/.\{148\}/&'"$ac_delim"'/g 21530t clear 21531:clear 21532s/\\$// 21533t bsnlc 21534s/["\\]/\\&/g; s/^/"/; s/$/"/p 21535d 21536:bsnlc 21537s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21538b cont 21539' <confdefs.h | sed ' 21540s/'"$ac_delim"'/"\\\ 21541"/g' >>$CONFIG_STATUS || ac_write_fail=1 21542 21543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21544 for (key in D) D_is_set[key] = 1 21545 FS = "" 21546} 21547/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21548 line = \$ 0 21549 split(line, arg, " ") 21550 if (arg[1] == "#") { 21551 defundef = arg[2] 21552 mac1 = arg[3] 21553 } else { 21554 defundef = substr(arg[1], 2) 21555 mac1 = arg[2] 21556 } 21557 split(mac1, mac2, "(") #) 21558 macro = mac2[1] 21559 prefix = substr(line, 1, index(line, defundef) - 1) 21560 if (D_is_set[macro]) { 21561 # Preserve the white space surrounding the "#". 21562 print prefix "define", macro P[macro] D[macro] 21563 next 21564 } else { 21565 # Replace #undef with comments. This is necessary, for example, 21566 # in the case of _POSIX_SOURCE, which is predefined and required 21567 # on some systems where configure will not decide to define it. 21568 if (defundef == "undef") { 21569 print "/*", prefix defundef, macro, "*/" 21570 next 21571 } 21572 } 21573} 21574{ print } 21575_ACAWK 21576_ACEOF 21577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21578 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21579fi # test -n "$CONFIG_HEADERS" 21580 21581 21582eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21583shift 21584for ac_tag 21585do 21586 case $ac_tag in 21587 :[FHLC]) ac_mode=$ac_tag; continue;; 21588 esac 21589 case $ac_mode$ac_tag in 21590 :[FHL]*:*);; 21591 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21592 :[FH]-) ac_tag=-:-;; 21593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21594 esac 21595 ac_save_IFS=$IFS 21596 IFS=: 21597 set x $ac_tag 21598 IFS=$ac_save_IFS 21599 shift 21600 ac_file=$1 21601 shift 21602 21603 case $ac_mode in 21604 :L) ac_source=$1;; 21605 :[FH]) 21606 ac_file_inputs= 21607 for ac_f 21608 do 21609 case $ac_f in 21610 -) ac_f="$ac_tmp/stdin";; 21611 *) # Look for the file first in the build tree, then in the source tree 21612 # (if the path is not absolute). The absolute path cannot be DOS-style, 21613 # because $ac_f cannot contain `:'. 21614 test -f "$ac_f" || 21615 case $ac_f in 21616 [\\/$]*) false;; 21617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21618 esac || 21619 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21620 esac 21621 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21622 as_fn_append ac_file_inputs " '$ac_f'" 21623 done 21624 21625 # Let's still pretend it is `configure' which instantiates (i.e., don't 21626 # use $as_me), people would be surprised to read: 21627 # /* config.h. Generated by config.status. */ 21628 configure_input='Generated from '` 21629 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21630 `' by configure.' 21631 if test x"$ac_file" != x-; then 21632 configure_input="$ac_file. $configure_input" 21633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21634$as_echo "$as_me: creating $ac_file" >&6;} 21635 fi 21636 # Neutralize special characters interpreted by sed in replacement strings. 21637 case $configure_input in #( 21638 *\&* | *\|* | *\\* ) 21639 ac_sed_conf_input=`$as_echo "$configure_input" | 21640 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21641 *) ac_sed_conf_input=$configure_input;; 21642 esac 21643 21644 case $ac_tag in 21645 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21647 esac 21648 ;; 21649 esac 21650 21651 ac_dir=`$as_dirname -- "$ac_file" || 21652$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21653 X"$ac_file" : 'X\(//\)[^/]' \| \ 21654 X"$ac_file" : 'X\(//\)$' \| \ 21655 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21656$as_echo X"$ac_file" | 21657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21658 s//\1/ 21659 q 21660 } 21661 /^X\(\/\/\)[^/].*/{ 21662 s//\1/ 21663 q 21664 } 21665 /^X\(\/\/\)$/{ 21666 s//\1/ 21667 q 21668 } 21669 /^X\(\/\).*/{ 21670 s//\1/ 21671 q 21672 } 21673 s/.*/./; q'` 21674 as_dir="$ac_dir"; as_fn_mkdir_p 21675 ac_builddir=. 21676 21677case "$ac_dir" in 21678.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21679*) 21680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21681 # A ".." for each directory in $ac_dir_suffix. 21682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21683 case $ac_top_builddir_sub in 21684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21686 esac ;; 21687esac 21688ac_abs_top_builddir=$ac_pwd 21689ac_abs_builddir=$ac_pwd$ac_dir_suffix 21690# for backward compatibility: 21691ac_top_builddir=$ac_top_build_prefix 21692 21693case $srcdir in 21694 .) # We are building in place. 21695 ac_srcdir=. 21696 ac_top_srcdir=$ac_top_builddir_sub 21697 ac_abs_top_srcdir=$ac_pwd ;; 21698 [\\/]* | ?:[\\/]* ) # Absolute name. 21699 ac_srcdir=$srcdir$ac_dir_suffix; 21700 ac_top_srcdir=$srcdir 21701 ac_abs_top_srcdir=$srcdir ;; 21702 *) # Relative name. 21703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21704 ac_top_srcdir=$ac_top_build_prefix$srcdir 21705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21706esac 21707ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21708 21709 21710 case $ac_mode in 21711 :F) 21712 # 21713 # CONFIG_FILE 21714 # 21715 21716 case $INSTALL in 21717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21719 esac 21720 ac_MKDIR_P=$MKDIR_P 21721 case $MKDIR_P in 21722 [\\/$]* | ?:[\\/]* ) ;; 21723 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21724 esac 21725_ACEOF 21726 21727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21728# If the template does not know about datarootdir, expand it. 21729# FIXME: This hack should be removed a few years after 2.60. 21730ac_datarootdir_hack=; ac_datarootdir_seen= 21731ac_sed_dataroot=' 21732/datarootdir/ { 21733 p 21734 q 21735} 21736/@datadir@/p 21737/@docdir@/p 21738/@infodir@/p 21739/@localedir@/p 21740/@mandir@/p' 21741case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21742*datarootdir*) ac_datarootdir_seen=yes;; 21743*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21745$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21746_ACEOF 21747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21748 ac_datarootdir_hack=' 21749 s&@datadir@&$datadir&g 21750 s&@docdir@&$docdir&g 21751 s&@infodir@&$infodir&g 21752 s&@localedir@&$localedir&g 21753 s&@mandir@&$mandir&g 21754 s&\\\${datarootdir}&$datarootdir&g' ;; 21755esac 21756_ACEOF 21757 21758# Neutralize VPATH when `$srcdir' = `.'. 21759# Shell code in configure.ac might set extrasub. 21760# FIXME: do we really want to maintain this feature? 21761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21762ac_sed_extra="$ac_vpsub 21763$extrasub 21764_ACEOF 21765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21766:t 21767/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21768s|@configure_input@|$ac_sed_conf_input|;t t 21769s&@top_builddir@&$ac_top_builddir_sub&;t t 21770s&@top_build_prefix@&$ac_top_build_prefix&;t t 21771s&@srcdir@&$ac_srcdir&;t t 21772s&@abs_srcdir@&$ac_abs_srcdir&;t t 21773s&@top_srcdir@&$ac_top_srcdir&;t t 21774s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21775s&@builddir@&$ac_builddir&;t t 21776s&@abs_builddir@&$ac_abs_builddir&;t t 21777s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21778s&@INSTALL@&$ac_INSTALL&;t t 21779s&@MKDIR_P@&$ac_MKDIR_P&;t t 21780$ac_datarootdir_hack 21781" 21782eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21783 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21784 21785test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21786 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21788 "$ac_tmp/out"`; test -z "$ac_out"; } && 21789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21790which seems to be undefined. Please make sure it is defined" >&5 21791$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21792which seems to be undefined. Please make sure it is defined" >&2;} 21793 21794 rm -f "$ac_tmp/stdin" 21795 case $ac_file in 21796 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21797 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21798 esac \ 21799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21800 ;; 21801 :H) 21802 # 21803 # CONFIG_HEADER 21804 # 21805 if test x"$ac_file" != x-; then 21806 { 21807 $as_echo "/* $configure_input */" \ 21808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21809 } >"$ac_tmp/config.h" \ 21810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21811 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21812 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21813$as_echo "$as_me: $ac_file is unchanged" >&6;} 21814 else 21815 rm -f "$ac_file" 21816 mv "$ac_tmp/config.h" "$ac_file" \ 21817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21818 fi 21819 else 21820 $as_echo "/* $configure_input */" \ 21821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21822 || as_fn_error $? "could not create -" "$LINENO" 5 21823 fi 21824# Compute "$ac_file"'s index in $config_headers. 21825_am_arg="$ac_file" 21826_am_stamp_count=1 21827for _am_header in $config_headers :; do 21828 case $_am_header in 21829 $_am_arg | $_am_arg:* ) 21830 break ;; 21831 * ) 21832 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21833 esac 21834done 21835echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21836$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21837 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21838 X"$_am_arg" : 'X\(//\)$' \| \ 21839 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21840$as_echo X"$_am_arg" | 21841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21842 s//\1/ 21843 q 21844 } 21845 /^X\(\/\/\)[^/].*/{ 21846 s//\1/ 21847 q 21848 } 21849 /^X\(\/\/\)$/{ 21850 s//\1/ 21851 q 21852 } 21853 /^X\(\/\).*/{ 21854 s//\1/ 21855 q 21856 } 21857 s/.*/./; q'`/stamp-h$_am_stamp_count 21858 ;; 21859 21860 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21861$as_echo "$as_me: executing $ac_file commands" >&6;} 21862 ;; 21863 esac 21864 21865 21866 case $ac_file$ac_mode in 21867 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21868 # Older Autoconf quotes --file arguments for eval, but not when files 21869 # are listed without --file. Let's play safe and only enable the eval 21870 # if we detect the quoting. 21871 # TODO: see whether this extra hack can be removed once we start 21872 # requiring Autoconf 2.70 or later. 21873 case $CONFIG_FILES in #( 21874 *\'*) : 21875 eval set x "$CONFIG_FILES" ;; #( 21876 *) : 21877 set x $CONFIG_FILES ;; #( 21878 *) : 21879 ;; 21880esac 21881 shift 21882 # Used to flag and report bootstrapping failures. 21883 am_rc=0 21884 for am_mf 21885 do 21886 # Strip MF so we end up with the name of the file. 21887 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 21888 # Check whether this is an Automake generated Makefile which includes 21889 # dependency-tracking related rules and includes. 21890 # Grep'ing the whole file directly is not great: AIX grep has a line 21891 # limit of 2048, but all sed's we know have understand at least 4000. 21892 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21893 || continue 21894 am_dirpart=`$as_dirname -- "$am_mf" || 21895$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21896 X"$am_mf" : 'X\(//\)[^/]' \| \ 21897 X"$am_mf" : 'X\(//\)$' \| \ 21898 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21899$as_echo X"$am_mf" | 21900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21901 s//\1/ 21902 q 21903 } 21904 /^X\(\/\/\)[^/].*/{ 21905 s//\1/ 21906 q 21907 } 21908 /^X\(\/\/\)$/{ 21909 s//\1/ 21910 q 21911 } 21912 /^X\(\/\).*/{ 21913 s//\1/ 21914 q 21915 } 21916 s/.*/./; q'` 21917 am_filepart=`$as_basename -- "$am_mf" || 21918$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21919 X"$am_mf" : 'X\(//\)$' \| \ 21920 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21921$as_echo X/"$am_mf" | 21922 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21923 s//\1/ 21924 q 21925 } 21926 /^X\/\(\/\/\)$/{ 21927 s//\1/ 21928 q 21929 } 21930 /^X\/\(\/\).*/{ 21931 s//\1/ 21932 q 21933 } 21934 s/.*/./; q'` 21935 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21936 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21937 | $MAKE -f - am--depfiles" >&5 21938 (cd "$am_dirpart" \ 21939 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21940 | $MAKE -f - am--depfiles) >&5 2>&5 21941 ac_status=$? 21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21943 (exit $ac_status); } || am_rc=$? 21944 done 21945 if test $am_rc -ne 0; then 21946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21948as_fn_error $? "Something went wrong bootstrapping makefile fragments 21949 for automatic dependency tracking. Try re-running configure with the 21950 '--disable-dependency-tracking' option to at least be able to build 21951 the package (albeit without support for automatic dependency tracking). 21952See \`config.log' for more details" "$LINENO" 5; } 21953 fi 21954 { am_dirpart=; unset am_dirpart;} 21955 { am_filepart=; unset am_filepart;} 21956 { am_mf=; unset am_mf;} 21957 { am_rc=; unset am_rc;} 21958 rm -f conftest-deps.mk 21959} 21960 ;; 21961 "libtool":C) 21962 21963 # See if we are running on zsh, and set the options that allow our 21964 # commands through without removal of \ escapes. 21965 if test -n "${ZSH_VERSION+set}"; then 21966 setopt NO_GLOB_SUBST 21967 fi 21968 21969 cfgfile=${ofile}T 21970 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21971 $RM "$cfgfile" 21972 21973 cat <<_LT_EOF >> "$cfgfile" 21974#! $SHELL 21975# Generated automatically by $as_me ($PACKAGE) $VERSION 21976# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21977# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21978 21979# Provide generalized library-building support services. 21980# Written by Gordon Matzigkeit, 1996 21981 21982# Copyright (C) 2014 Free Software Foundation, Inc. 21983# This is free software; see the source for copying conditions. There is NO 21984# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21985 21986# GNU Libtool is free software; you can redistribute it and/or modify 21987# it under the terms of the GNU General Public License as published by 21988# the Free Software Foundation; either version 2 of of the License, or 21989# (at your option) any later version. 21990# 21991# As a special exception to the GNU General Public License, if you 21992# distribute this file as part of a program or library that is built 21993# using GNU Libtool, you may include this file under the same 21994# distribution terms that you use for the rest of that program. 21995# 21996# GNU Libtool is distributed in the hope that it will be useful, but 21997# WITHOUT ANY WARRANTY; without even the implied warranty of 21998# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21999# GNU General Public License for more details. 22000# 22001# You should have received a copy of the GNU General Public License 22002# along with this program. If not, see <http://www.gnu.org/licenses/>. 22003 22004 22005# The names of the tagged configurations supported by this script. 22006available_tags='CXX ' 22007 22008# Configured defaults for sys_lib_dlsearch_path munging. 22009: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22010 22011# ### BEGIN LIBTOOL CONFIG 22012 22013# Which release of libtool.m4 was used? 22014macro_version=$macro_version 22015macro_revision=$macro_revision 22016 22017# Whether or not to build static libraries. 22018build_old_libs=$enable_static 22019 22020# Assembler program. 22021AS=$lt_AS 22022 22023# DLL creation program. 22024DLLTOOL=$lt_DLLTOOL 22025 22026# Object dumper program. 22027OBJDUMP=$lt_OBJDUMP 22028 22029# Whether or not to build shared libraries. 22030build_libtool_libs=$enable_shared 22031 22032# What type of objects to build. 22033pic_mode=$pic_mode 22034 22035# Whether or not to optimize for fast installation. 22036fast_install=$enable_fast_install 22037 22038# Shared archive member basename,for filename based shared library versioning on AIX. 22039shared_archive_member_spec=$shared_archive_member_spec 22040 22041# Shell to use when invoking shell scripts. 22042SHELL=$lt_SHELL 22043 22044# An echo program that protects backslashes. 22045ECHO=$lt_ECHO 22046 22047# The PATH separator for the build system. 22048PATH_SEPARATOR=$lt_PATH_SEPARATOR 22049 22050# The host system. 22051host_alias=$host_alias 22052host=$host 22053host_os=$host_os 22054 22055# The build system. 22056build_alias=$build_alias 22057build=$build 22058build_os=$build_os 22059 22060# A sed program that does not truncate output. 22061SED=$lt_SED 22062 22063# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22064Xsed="\$SED -e 1s/^X//" 22065 22066# A grep program that handles long lines. 22067GREP=$lt_GREP 22068 22069# An ERE matcher. 22070EGREP=$lt_EGREP 22071 22072# A literal string matcher. 22073FGREP=$lt_FGREP 22074 22075# A BSD- or MS-compatible name lister. 22076NM=$lt_NM 22077 22078# Whether we need soft or hard links. 22079LN_S=$lt_LN_S 22080 22081# What is the maximum length of a command? 22082max_cmd_len=$max_cmd_len 22083 22084# Object file suffix (normally "o"). 22085objext=$ac_objext 22086 22087# Executable file suffix (normally ""). 22088exeext=$exeext 22089 22090# whether the shell understands "unset". 22091lt_unset=$lt_unset 22092 22093# turn spaces into newlines. 22094SP2NL=$lt_lt_SP2NL 22095 22096# turn newlines into spaces. 22097NL2SP=$lt_lt_NL2SP 22098 22099# convert \$build file names to \$host format. 22100to_host_file_cmd=$lt_cv_to_host_file_cmd 22101 22102# convert \$build files to toolchain format. 22103to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22104 22105# Method to check whether dependent libraries are shared objects. 22106deplibs_check_method=$lt_deplibs_check_method 22107 22108# Command to use when deplibs_check_method = "file_magic". 22109file_magic_cmd=$lt_file_magic_cmd 22110 22111# How to find potential files when deplibs_check_method = "file_magic". 22112file_magic_glob=$lt_file_magic_glob 22113 22114# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22115want_nocaseglob=$lt_want_nocaseglob 22116 22117# Command to associate shared and link libraries. 22118sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22119 22120# The archiver. 22121AR=$lt_AR 22122 22123# Flags to create an archive. 22124AR_FLAGS=$lt_AR_FLAGS 22125 22126# How to feed a file listing to the archiver. 22127archiver_list_spec=$lt_archiver_list_spec 22128 22129# A symbol stripping program. 22130STRIP=$lt_STRIP 22131 22132# Commands used to install an old-style archive. 22133RANLIB=$lt_RANLIB 22134old_postinstall_cmds=$lt_old_postinstall_cmds 22135old_postuninstall_cmds=$lt_old_postuninstall_cmds 22136 22137# Whether to use a lock for old archive extraction. 22138lock_old_archive_extraction=$lock_old_archive_extraction 22139 22140# A C compiler. 22141LTCC=$lt_CC 22142 22143# LTCC compiler flags. 22144LTCFLAGS=$lt_CFLAGS 22145 22146# Take the output of nm and produce a listing of raw symbols and C names. 22147global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22148 22149# Transform the output of nm in a proper C declaration. 22150global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22151 22152# Transform the output of nm into a list of symbols to manually relocate. 22153global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22154 22155# Transform the output of nm in a C name address pair. 22156global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22157 22158# Transform the output of nm in a C name address pair when lib prefix is needed. 22159global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22160 22161# The name lister interface. 22162nm_interface=$lt_lt_cv_nm_interface 22163 22164# Specify filename containing input files for \$NM. 22165nm_file_list_spec=$lt_nm_file_list_spec 22166 22167# The root where to search for dependent libraries,and where our libraries should be installed. 22168lt_sysroot=$lt_sysroot 22169 22170# Command to truncate a binary pipe. 22171lt_truncate_bin=$lt_lt_cv_truncate_bin 22172 22173# The name of the directory that contains temporary libtool files. 22174objdir=$objdir 22175 22176# Used to examine libraries when file_magic_cmd begins with "file". 22177MAGIC_CMD=$MAGIC_CMD 22178 22179# Must we lock files when doing compilation? 22180need_locks=$lt_need_locks 22181 22182# Manifest tool. 22183MANIFEST_TOOL=$lt_MANIFEST_TOOL 22184 22185# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22186DSYMUTIL=$lt_DSYMUTIL 22187 22188# Tool to change global to local symbols on Mac OS X. 22189NMEDIT=$lt_NMEDIT 22190 22191# Tool to manipulate fat objects and archives on Mac OS X. 22192LIPO=$lt_LIPO 22193 22194# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22195OTOOL=$lt_OTOOL 22196 22197# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22198OTOOL64=$lt_OTOOL64 22199 22200# Old archive suffix (normally "a"). 22201libext=$libext 22202 22203# Shared library suffix (normally ".so"). 22204shrext_cmds=$lt_shrext_cmds 22205 22206# The commands to extract the exported symbol list from a shared archive. 22207extract_expsyms_cmds=$lt_extract_expsyms_cmds 22208 22209# Variables whose values should be saved in libtool wrapper scripts and 22210# restored at link time. 22211variables_saved_for_relink=$lt_variables_saved_for_relink 22212 22213# Do we need the "lib" prefix for modules? 22214need_lib_prefix=$need_lib_prefix 22215 22216# Do we need a version for libraries? 22217need_version=$need_version 22218 22219# Library versioning type. 22220version_type=$version_type 22221 22222# Shared library runtime path variable. 22223runpath_var=$runpath_var 22224 22225# Shared library path variable. 22226shlibpath_var=$shlibpath_var 22227 22228# Is shlibpath searched before the hard-coded library search path? 22229shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22230 22231# Format of library name prefix. 22232libname_spec=$lt_libname_spec 22233 22234# List of archive names. First name is the real one, the rest are links. 22235# The last name is the one that the linker finds with -lNAME 22236library_names_spec=$lt_library_names_spec 22237 22238# The coded name of the library, if different from the real name. 22239soname_spec=$lt_soname_spec 22240 22241# Permission mode override for installation of shared libraries. 22242install_override_mode=$lt_install_override_mode 22243 22244# Command to use after installation of a shared archive. 22245postinstall_cmds=$lt_postinstall_cmds 22246 22247# Command to use after uninstallation of a shared archive. 22248postuninstall_cmds=$lt_postuninstall_cmds 22249 22250# Commands used to finish a libtool library installation in a directory. 22251finish_cmds=$lt_finish_cmds 22252 22253# As "finish_cmds", except a single script fragment to be evaled but 22254# not shown. 22255finish_eval=$lt_finish_eval 22256 22257# Whether we should hardcode library paths into libraries. 22258hardcode_into_libs=$hardcode_into_libs 22259 22260# Compile-time system search path for libraries. 22261sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22262 22263# Detected run-time system search path for libraries. 22264sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22265 22266# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22267configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22268 22269# Whether dlopen is supported. 22270dlopen_support=$enable_dlopen 22271 22272# Whether dlopen of programs is supported. 22273dlopen_self=$enable_dlopen_self 22274 22275# Whether dlopen of statically linked programs is supported. 22276dlopen_self_static=$enable_dlopen_self_static 22277 22278# Commands to strip libraries. 22279old_striplib=$lt_old_striplib 22280striplib=$lt_striplib 22281 22282 22283# The linker used to build libraries. 22284LD=$lt_LD 22285 22286# How to create reloadable object files. 22287reload_flag=$lt_reload_flag 22288reload_cmds=$lt_reload_cmds 22289 22290# Commands used to build an old-style archive. 22291old_archive_cmds=$lt_old_archive_cmds 22292 22293# A language specific compiler. 22294CC=$lt_compiler 22295 22296# Is the compiler the GNU compiler? 22297with_gcc=$GCC 22298 22299# Compiler flag to turn off builtin functions. 22300no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22301 22302# Additional compiler flags for building library objects. 22303pic_flag=$lt_lt_prog_compiler_pic 22304 22305# How to pass a linker flag through the compiler. 22306wl=$lt_lt_prog_compiler_wl 22307 22308# Compiler flag to prevent dynamic linking. 22309link_static_flag=$lt_lt_prog_compiler_static 22310 22311# Does compiler simultaneously support -c and -o options? 22312compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22313 22314# Whether or not to add -lc for building shared libraries. 22315build_libtool_need_lc=$archive_cmds_need_lc 22316 22317# Whether or not to disallow shared libs when runtime libs are static. 22318allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22319 22320# Compiler flag to allow reflexive dlopens. 22321export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22322 22323# Compiler flag to generate shared objects directly from archives. 22324whole_archive_flag_spec=$lt_whole_archive_flag_spec 22325 22326# Whether the compiler copes with passing no objects directly. 22327compiler_needs_object=$lt_compiler_needs_object 22328 22329# Create an old-style archive from a shared archive. 22330old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22331 22332# Create a temporary old-style archive to link instead of a shared archive. 22333old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22334 22335# Commands used to build a shared archive. 22336archive_cmds=$lt_archive_cmds 22337archive_expsym_cmds=$lt_archive_expsym_cmds 22338 22339# Commands used to build a loadable module if different from building 22340# a shared archive. 22341module_cmds=$lt_module_cmds 22342module_expsym_cmds=$lt_module_expsym_cmds 22343 22344# Whether we are building with GNU ld or not. 22345with_gnu_ld=$lt_with_gnu_ld 22346 22347# Flag that allows shared libraries with undefined symbols to be built. 22348allow_undefined_flag=$lt_allow_undefined_flag 22349 22350# Flag that enforces no undefined symbols. 22351no_undefined_flag=$lt_no_undefined_flag 22352 22353# Flag to hardcode \$libdir into a binary during linking. 22354# This must work even if \$libdir does not exist 22355hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22356 22357# Whether we need a single "-rpath" flag with a separated argument. 22358hardcode_libdir_separator=$lt_hardcode_libdir_separator 22359 22360# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22361# DIR into the resulting binary. 22362hardcode_direct=$hardcode_direct 22363 22364# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22365# DIR into the resulting binary and the resulting library dependency is 22366# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22367# library is relocated. 22368hardcode_direct_absolute=$hardcode_direct_absolute 22369 22370# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22371# into the resulting binary. 22372hardcode_minus_L=$hardcode_minus_L 22373 22374# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22375# into the resulting binary. 22376hardcode_shlibpath_var=$hardcode_shlibpath_var 22377 22378# Set to "yes" if building a shared library automatically hardcodes DIR 22379# into the library and all subsequent libraries and executables linked 22380# against it. 22381hardcode_automatic=$hardcode_automatic 22382 22383# Set to yes if linker adds runtime paths of dependent libraries 22384# to runtime path list. 22385inherit_rpath=$inherit_rpath 22386 22387# Whether libtool must link a program against all its dependency libraries. 22388link_all_deplibs=$link_all_deplibs 22389 22390# Set to "yes" if exported symbols are required. 22391always_export_symbols=$always_export_symbols 22392 22393# The commands to list exported symbols. 22394export_symbols_cmds=$lt_export_symbols_cmds 22395 22396# Symbols that should not be listed in the preloaded symbols. 22397exclude_expsyms=$lt_exclude_expsyms 22398 22399# Symbols that must always be exported. 22400include_expsyms=$lt_include_expsyms 22401 22402# Commands necessary for linking programs (against libraries) with templates. 22403prelink_cmds=$lt_prelink_cmds 22404 22405# Commands necessary for finishing linking programs. 22406postlink_cmds=$lt_postlink_cmds 22407 22408# Specify filename containing input files. 22409file_list_spec=$lt_file_list_spec 22410 22411# How to hardcode a shared library path into an executable. 22412hardcode_action=$hardcode_action 22413 22414# The directories searched by this compiler when creating a shared library. 22415compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22416 22417# Dependencies to place before and after the objects being linked to 22418# create a shared library. 22419predep_objects=$lt_predep_objects 22420postdep_objects=$lt_postdep_objects 22421predeps=$lt_predeps 22422postdeps=$lt_postdeps 22423 22424# The library search path used internally by the compiler when linking 22425# a shared library. 22426compiler_lib_search_path=$lt_compiler_lib_search_path 22427 22428# ### END LIBTOOL CONFIG 22429 22430_LT_EOF 22431 22432 cat <<'_LT_EOF' >> "$cfgfile" 22433 22434# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22435 22436# func_munge_path_list VARIABLE PATH 22437# ----------------------------------- 22438# VARIABLE is name of variable containing _space_ separated list of 22439# directories to be munged by the contents of PATH, which is string 22440# having a format: 22441# "DIR[:DIR]:" 22442# string "DIR[ DIR]" will be prepended to VARIABLE 22443# ":DIR[:DIR]" 22444# string "DIR[ DIR]" will be appended to VARIABLE 22445# "DIRP[:DIRP]::[DIRA:]DIRA" 22446# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22447# "DIRA[ DIRA]" will be appended to VARIABLE 22448# "DIR[:DIR]" 22449# VARIABLE will be replaced by "DIR[ DIR]" 22450func_munge_path_list () 22451{ 22452 case x$2 in 22453 x) 22454 ;; 22455 *:) 22456 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22457 ;; 22458 x:*) 22459 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22460 ;; 22461 *::*) 22462 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22463 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22464 ;; 22465 *) 22466 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22467 ;; 22468 esac 22469} 22470 22471 22472# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22473func_cc_basename () 22474{ 22475 for cc_temp in $*""; do 22476 case $cc_temp in 22477 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22478 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22479 \-*) ;; 22480 *) break;; 22481 esac 22482 done 22483 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22484} 22485 22486 22487# ### END FUNCTIONS SHARED WITH CONFIGURE 22488 22489_LT_EOF 22490 22491 case $host_os in 22492 aix3*) 22493 cat <<\_LT_EOF >> "$cfgfile" 22494# AIX sometimes has problems with the GCC collect2 program. For some 22495# reason, if we set the COLLECT_NAMES environment variable, the problems 22496# vanish in a puff of smoke. 22497if test set != "${COLLECT_NAMES+set}"; then 22498 COLLECT_NAMES= 22499 export COLLECT_NAMES 22500fi 22501_LT_EOF 22502 ;; 22503 esac 22504 22505 22506ltmain=$ac_aux_dir/ltmain.sh 22507 22508 22509 # We use sed instead of cat because bash on DJGPP gets confused if 22510 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22511 # text mode, it properly converts lines to CR/LF. This bash problem 22512 # is reportedly fixed, but why not run on old versions too? 22513 sed '$q' "$ltmain" >> "$cfgfile" \ 22514 || (rm -f "$cfgfile"; exit 1) 22515 22516 mv -f "$cfgfile" "$ofile" || 22517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22518 chmod +x "$ofile" 22519 22520 22521 cat <<_LT_EOF >> "$ofile" 22522 22523# ### BEGIN LIBTOOL TAG CONFIG: CXX 22524 22525# The linker used to build libraries. 22526LD=$lt_LD_CXX 22527 22528# How to create reloadable object files. 22529reload_flag=$lt_reload_flag_CXX 22530reload_cmds=$lt_reload_cmds_CXX 22531 22532# Commands used to build an old-style archive. 22533old_archive_cmds=$lt_old_archive_cmds_CXX 22534 22535# A language specific compiler. 22536CC=$lt_compiler_CXX 22537 22538# Is the compiler the GNU compiler? 22539with_gcc=$GCC_CXX 22540 22541# Compiler flag to turn off builtin functions. 22542no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22543 22544# Additional compiler flags for building library objects. 22545pic_flag=$lt_lt_prog_compiler_pic_CXX 22546 22547# How to pass a linker flag through the compiler. 22548wl=$lt_lt_prog_compiler_wl_CXX 22549 22550# Compiler flag to prevent dynamic linking. 22551link_static_flag=$lt_lt_prog_compiler_static_CXX 22552 22553# Does compiler simultaneously support -c and -o options? 22554compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22555 22556# Whether or not to add -lc for building shared libraries. 22557build_libtool_need_lc=$archive_cmds_need_lc_CXX 22558 22559# Whether or not to disallow shared libs when runtime libs are static. 22560allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22561 22562# Compiler flag to allow reflexive dlopens. 22563export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22564 22565# Compiler flag to generate shared objects directly from archives. 22566whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22567 22568# Whether the compiler copes with passing no objects directly. 22569compiler_needs_object=$lt_compiler_needs_object_CXX 22570 22571# Create an old-style archive from a shared archive. 22572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22573 22574# Create a temporary old-style archive to link instead of a shared archive. 22575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22576 22577# Commands used to build a shared archive. 22578archive_cmds=$lt_archive_cmds_CXX 22579archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22580 22581# Commands used to build a loadable module if different from building 22582# a shared archive. 22583module_cmds=$lt_module_cmds_CXX 22584module_expsym_cmds=$lt_module_expsym_cmds_CXX 22585 22586# Whether we are building with GNU ld or not. 22587with_gnu_ld=$lt_with_gnu_ld_CXX 22588 22589# Flag that allows shared libraries with undefined symbols to be built. 22590allow_undefined_flag=$lt_allow_undefined_flag_CXX 22591 22592# Flag that enforces no undefined symbols. 22593no_undefined_flag=$lt_no_undefined_flag_CXX 22594 22595# Flag to hardcode \$libdir into a binary during linking. 22596# This must work even if \$libdir does not exist 22597hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22598 22599# Whether we need a single "-rpath" flag with a separated argument. 22600hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22601 22602# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22603# DIR into the resulting binary. 22604hardcode_direct=$hardcode_direct_CXX 22605 22606# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22607# DIR into the resulting binary and the resulting library dependency is 22608# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22609# library is relocated. 22610hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22611 22612# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22613# into the resulting binary. 22614hardcode_minus_L=$hardcode_minus_L_CXX 22615 22616# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22617# into the resulting binary. 22618hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22619 22620# Set to "yes" if building a shared library automatically hardcodes DIR 22621# into the library and all subsequent libraries and executables linked 22622# against it. 22623hardcode_automatic=$hardcode_automatic_CXX 22624 22625# Set to yes if linker adds runtime paths of dependent libraries 22626# to runtime path list. 22627inherit_rpath=$inherit_rpath_CXX 22628 22629# Whether libtool must link a program against all its dependency libraries. 22630link_all_deplibs=$link_all_deplibs_CXX 22631 22632# Set to "yes" if exported symbols are required. 22633always_export_symbols=$always_export_symbols_CXX 22634 22635# The commands to list exported symbols. 22636export_symbols_cmds=$lt_export_symbols_cmds_CXX 22637 22638# Symbols that should not be listed in the preloaded symbols. 22639exclude_expsyms=$lt_exclude_expsyms_CXX 22640 22641# Symbols that must always be exported. 22642include_expsyms=$lt_include_expsyms_CXX 22643 22644# Commands necessary for linking programs (against libraries) with templates. 22645prelink_cmds=$lt_prelink_cmds_CXX 22646 22647# Commands necessary for finishing linking programs. 22648postlink_cmds=$lt_postlink_cmds_CXX 22649 22650# Specify filename containing input files. 22651file_list_spec=$lt_file_list_spec_CXX 22652 22653# How to hardcode a shared library path into an executable. 22654hardcode_action=$hardcode_action_CXX 22655 22656# The directories searched by this compiler when creating a shared library. 22657compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22658 22659# Dependencies to place before and after the objects being linked to 22660# create a shared library. 22661predep_objects=$lt_predep_objects_CXX 22662postdep_objects=$lt_postdep_objects_CXX 22663predeps=$lt_predeps_CXX 22664postdeps=$lt_postdeps_CXX 22665 22666# The library search path used internally by the compiler when linking 22667# a shared library. 22668compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22669 22670# ### END LIBTOOL TAG CONFIG: CXX 22671_LT_EOF 22672 22673 ;; 22674 22675 esac 22676done # for ac_tag 22677 22678 22679as_fn_exit 0 22680_ACEOF 22681ac_clean_files=$ac_clean_files_save 22682 22683test $ac_write_fail = 0 || 22684 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22685 22686 22687# configure is writing to config.log, and then calls config.status. 22688# config.status does its own redirection, appending to config.log. 22689# Unfortunately, on DOS this fails, as config.log is still kept open 22690# by configure, so config.status won't be able to write to it; its 22691# output is simply discarded. So we exec the FD to /dev/null, 22692# effectively closing config.log, so it can be properly (re)opened and 22693# appended to by config.status. When coming back to configure, we 22694# need to make the FD available again. 22695if test "$no_create" != yes; then 22696 ac_cs_success=: 22697 ac_config_status_args= 22698 test "$silent" = yes && 22699 ac_config_status_args="$ac_config_status_args --quiet" 22700 exec 5>/dev/null 22701 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22702 exec 5>>config.log 22703 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22704 # would make configure fail if this is the last instruction. 22705 $ac_cs_success || as_fn_exit 1 22706fi 22707if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22709$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22710fi 22711 22712