1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.64 for ld 2.25.51. 4 # 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7 # Foundation, Inc. 8 # 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- ## 12 ## M4sh Initialization. ## 13 ## -------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41 # Prefer a ksh shell builtin over an external printf program on Solaris, 42 # but without wasting forks for bash or zsh. 43 if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50 else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70 fi 71 72 # The user is always right. 73 if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79 fi 80 81 82 # IFS 83 # We need space, tab and new line, in precisely that order. Quoting is 84 # there to prevent editors from complaining about space-tab. 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 86 # splitting by setting IFS to empty value.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93 for as_dir in $PATH 94 do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99 IFS=$as_save_IFS 100 101 ;; 102 esac 103 # We did not find ourselves, most probably we were run as `sh COMMAND' 104 # in which case we are not to be found in the path. 105 if test "x$as_myself" = x; then 106 as_myself=$0 107 fi 108 if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111 fi 112 113 # Unset variables that we do not need and which cause bugs (e.g. in 114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115 # suppresses any "Segmentation fault" message there. '((' could 116 # trigger a bug in pdksh 5.2.14. 117 for as_var in BASH_ENV ENV MAIL MAILPATH 118 do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120 done 121 PS1='$ ' 122 PS2='> ' 123 PS4='+ ' 124 125 # NLS nuisances. 126 LC_ALL=C 127 export LC_ALL 128 LANGUAGE=C 129 export LANGUAGE 130 131 # CDPATH. 132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134 if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142 else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148 esac 149 fi 150 " 151 as_required="as_fn_return () { (exit \$1); } 152 as_fn_success () { as_fn_return 0; } 153 as_fn_failure () { as_fn_return 1; } 154 as_fn_ret_success () { return 0; } 155 as_fn_ret_failure () { return 1; } 156 157 exitcode=0 158 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164 else 165 exitcode=1; echo positional parameters were not saved. 166 fi 167 test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172 test \$(( 1 + 1 )) = 2 || exit 1 173 174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 PATH=/empty FPATH=/empty; export PATH FPATH 179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183 else 184 as_have_required=no 185 fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188 else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190 as_found=false 191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192 do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206 fi 207 fi 208 done;; 209 esac 210 as_found=false 211 done 212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215 fi; } 216 IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228 fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system, 238 $0: including any error possibly output before this 239 $0: message. Then install a modern shell, or manually run 240 $0: the script under such a shell if you do have one." 241 fi 242 exit 1 243 fi 244 fi 245 fi 246 SHELL=${CONFIG_SHELL-/bin/sh} 247 export SHELL 248 # Unset more variables known to interfere with behavior of common tools. 249 CLICOLOR_FORCE= GREP_OPTIONS= 250 unset CLICOLOR_FORCE GREP_OPTIONS 251 252 ## --------------------- ## 253 ## M4sh Shell Functions. ## 254 ## --------------------- ## 255 # as_fn_unset VAR 256 # --------------- 257 # Portably unset VAR. 258 as_fn_unset () 259 { 260 { eval $1=; unset $1;} 261 } 262 as_unset=as_fn_unset 263 264 # as_fn_set_status STATUS 265 # ----------------------- 266 # Set $? to STATUS, without forking. 267 as_fn_set_status () 268 { 269 return $1 270 } # as_fn_set_status 271 272 # as_fn_exit STATUS 273 # ----------------- 274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275 as_fn_exit () 276 { 277 set +e 278 as_fn_set_status $1 279 exit $1 280 } # as_fn_exit 281 282 # as_fn_mkdir_p 283 # ------------- 284 # Create "$as_dir" as a directory, including parents if necessary. 285 as_fn_mkdir_p () 286 { 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304 $as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328 } # as_fn_mkdir_p 329 # as_fn_append VAR VALUE 330 # ---------------------- 331 # Append the text in VALUE to the end of the definition contained in VAR. Take 332 # advantage of any shell optimizations that allow amortized linear growth over 333 # repeated appends, instead of the typical quadratic growth present in naive 334 # implementations. 335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340 else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345 fi # as_fn_append 346 347 # as_fn_arith ARG... 348 # ------------------ 349 # Perform arithmetic evaluation on the ARGs, and store the result in the 350 # global $as_val. Take advantage of shells that can avoid forks. The arguments 351 # must be portable across $(()) and expr. 352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357 else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362 fi # as_fn_arith 363 364 365 # as_fn_error ERROR [LINENO LOG_FD] 366 # --------------------------------- 367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369 # script with status $?, using 1 if that was 0. 370 as_fn_error () 371 { 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379 } # as_fn_error 380 381 if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384 else 385 as_expr=false 386 fi 387 388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390 else 391 as_basename=false 392 fi 393 394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396 else 397 as_dirname=false 398 fi 399 400 as_me=`$as_basename -- "$0" || 401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404 $as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419 # Avoid depending upon Character Ranges. 420 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423 as_cr_digits='0123456789' 424 as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456 } 457 458 ECHO_C= ECHO_N= ECHO_T= 459 case `echo -n x` in #((((( 460 -n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467 *) 468 ECHO_N='-n';; 469 esac 470 471 rm -f conf$$ conf$$.exe conf$$.file 472 if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474 else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477 fi 478 if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492 else 493 as_ln_s='cp -p' 494 fi 495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496 rmdir conf$$.dir 2>/dev/null 497 498 if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500 else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503 fi 504 505 if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507 else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525 fi 526 as_executable_p=$as_test_x 527 528 # Sed expression to map a string onto a valid CPP name. 529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531 # Sed expression to map a string onto a valid variable name. 532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534 SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537 exec 7<&0 </dev/null 6>&1 538 539 # Name of the host. 540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541 # so uname gets run too. 542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544 # 545 # Initializations. 546 # 547 ac_default_prefix=/usr/local 548 ac_clean_files= 549 ac_config_libobj_dir=. 550 LIBOBJS= 551 cross_compiling=no 552 subdirs= 553 MFLAGS= 554 MAKEFLAGS= 555 556 # Identity of this package. 557 PACKAGE_NAME='ld' 558 PACKAGE_TARNAME='ld' 559 PACKAGE_VERSION='2.25.51' 560 PACKAGE_STRING='ld 2.25.51' 561 PACKAGE_BUGREPORT='' 562 PACKAGE_URL='' 563 564 ac_unique_file="ldmain.c" 565 # Factoring default headers for most tests. 566 ac_includes_default="\ 567 #include <stdio.h> 568 #ifdef HAVE_SYS_TYPES_H 569 # include <sys/types.h> 570 #endif 571 #ifdef HAVE_SYS_STAT_H 572 # include <sys/stat.h> 573 #endif 574 #ifdef STDC_HEADERS 575 # include <stdlib.h> 576 # include <stddef.h> 577 #else 578 # ifdef HAVE_STDLIB_H 579 # include <stdlib.h> 580 # endif 581 #endif 582 #ifdef HAVE_STRING_H 583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584 # include <memory.h> 585 # endif 586 # include <string.h> 587 #endif 588 #ifdef HAVE_STRINGS_H 589 # include <strings.h> 590 #endif 591 #ifdef HAVE_INTTYPES_H 592 # include <inttypes.h> 593 #endif 594 #ifdef HAVE_STDINT_H 595 # include <stdint.h> 596 #endif 597 #ifdef HAVE_UNISTD_H 598 # include <unistd.h> 599 #endif" 600 601 ac_subst_vars='am__EXEEXT_FALSE 602 am__EXEEXT_TRUE 603 LTLIBOBJS 604 LIBOBJS 605 TESTBFDLIB 606 EMULATION_LIBPATH 607 LIB_PATH 608 EMUL_EXTRA_OFILES 609 EMULATION_OFILES 610 EMUL 611 STRINGIFY 612 enable_initfini_array 613 ENABLE_PLUGINS_FALSE 614 ENABLE_PLUGINS_TRUE 615 NATIVE_LIB_DIRS 616 HOSTING_SLIBS 617 HOSTING_LIBS 618 HOSTING_SCRT0 619 HOSTING_CRT0 620 HDEFINES 621 do_compare 622 GENINSRC_NEVER_FALSE 623 GENINSRC_NEVER_TRUE 624 LEXLIB 625 LEX_OUTPUT_ROOT 626 LEX 627 YFLAGS 628 YACC 629 MSGMERGE 630 MSGFMT 631 MKINSTALLDIRS 632 CATOBJEXT 633 GENCAT 634 INSTOBJEXT 635 DATADIRNAME 636 CATALOGS 637 POSUB 638 GMSGFMT 639 XGETTEXT 640 INCINTL 641 LIBINTL_DEP 642 LIBINTL 643 USE_NLS 644 NO_WERROR 645 WARN_CFLAGS 646 installed_linker 647 install_as_default 648 TARGET_SYSTEM_ROOT_DEFINE 649 TARGET_SYSTEM_ROOT 650 use_sysroot 651 CXXCPP 652 OTOOL64 653 OTOOL 654 LIPO 655 NMEDIT 656 DSYMUTIL 657 RANLIB 658 AR 659 OBJDUMP 660 LN_S 661 NM 662 ac_ct_DUMPBIN 663 DUMPBIN 664 LD 665 FGREP 666 SED 667 LIBTOOL 668 EGREP 669 GREP 670 CPP 671 am__fastdepCXX_FALSE 672 am__fastdepCXX_TRUE 673 CXXDEPMODE 674 ac_ct_CXX 675 CXXFLAGS 676 CXX 677 MAINT 678 MAINTAINER_MODE_FALSE 679 MAINTAINER_MODE_TRUE 680 am__fastdepCC_FALSE 681 am__fastdepCC_TRUE 682 CCDEPMODE 683 AMDEPBACKSLASH 684 AMDEP_FALSE 685 AMDEP_TRUE 686 am__quote 687 am__include 688 DEPDIR 689 am__untar 690 am__tar 691 AMTAR 692 am__leading_dot 693 SET_MAKE 694 AWK 695 mkdir_p 696 MKDIR_P 697 INSTALL_STRIP_PROGRAM 698 STRIP 699 install_sh 700 MAKEINFO 701 AUTOHEADER 702 AUTOMAKE 703 AUTOCONF 704 ACLOCAL 705 VERSION 706 PACKAGE 707 CYGPATH_W 708 am__isrc 709 INSTALL_DATA 710 INSTALL_SCRIPT 711 INSTALL_PROGRAM 712 OBJEXT 713 EXEEXT 714 ac_ct_CC 715 CPPFLAGS 716 LDFLAGS 717 CFLAGS 718 CC 719 target_os 720 target_vendor 721 target_cpu 722 target 723 host_os 724 host_vendor 725 host_cpu 726 host 727 build_os 728 build_vendor 729 build_cpu 730 build 731 target_alias 732 host_alias 733 build_alias 734 LIBS 735 ECHO_T 736 ECHO_N 737 ECHO_C 738 DEFS 739 mandir 740 localedir 741 libdir 742 psdir 743 pdfdir 744 dvidir 745 htmldir 746 infodir 747 docdir 748 oldincludedir 749 includedir 750 localstatedir 751 sharedstatedir 752 sysconfdir 753 datadir 754 datarootdir 755 libexecdir 756 sbindir 757 bindir 758 program_transform_name 759 prefix 760 exec_prefix 761 PACKAGE_URL 762 PACKAGE_BUGREPORT 763 PACKAGE_STRING 764 PACKAGE_VERSION 765 PACKAGE_TARNAME 766 PACKAGE_NAME 767 PATH_SEPARATOR 768 SHELL' 769 ac_subst_files='TDIRS' 770 ac_user_opts=' 771 enable_option_checking 772 enable_dependency_tracking 773 enable_maintainer_mode 774 enable_shared 775 enable_static 776 with_pic 777 enable_fast_install 778 with_gnu_ld 779 enable_libtool_lock 780 enable_plugins 781 enable_largefile 782 with_lib_path 783 enable_targets 784 enable_64_bit_bfd 785 with_sysroot 786 enable_poison_system_directories 787 enable_gold 788 enable_got 789 enable_werror 790 enable_build_warnings 791 enable_nls 792 enable_initfini_array 793 with_zlib 794 ' 795 ac_precious_vars='build_alias 796 host_alias 797 target_alias 798 CC 799 CFLAGS 800 LDFLAGS 801 LIBS 802 CPPFLAGS 803 CXX 804 CXXFLAGS 805 CCC 806 CPP 807 CXXCPP 808 YACC 809 YFLAGS' 810 811 812 # Initialize some variables set by options. 813 ac_init_help= 814 ac_init_version=false 815 ac_unrecognized_opts= 816 ac_unrecognized_sep= 817 # The variables have the same names as the options, with 818 # dashes changed to underlines. 819 cache_file=/dev/null 820 exec_prefix=NONE 821 no_create= 822 no_recursion= 823 prefix=NONE 824 program_prefix=NONE 825 program_suffix=NONE 826 program_transform_name=s,x,x, 827 silent= 828 site= 829 srcdir= 830 verbose= 831 x_includes=NONE 832 x_libraries=NONE 833 834 # Installation directory options. 835 # These are left unexpanded so users can "make install exec_prefix=/foo" 836 # and all the variables that are supposed to be based on exec_prefix 837 # by default will actually change. 838 # Use braces instead of parens because sh, perl, etc. also accept them. 839 # (The list follows the same order as the GNU Coding Standards.) 840 bindir='${exec_prefix}/bin' 841 sbindir='${exec_prefix}/sbin' 842 libexecdir='${exec_prefix}/libexec' 843 datarootdir='${prefix}/share' 844 datadir='${datarootdir}' 845 sysconfdir='${prefix}/etc' 846 sharedstatedir='${prefix}/com' 847 localstatedir='${prefix}/var' 848 includedir='${prefix}/include' 849 oldincludedir='/usr/include' 850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 851 infodir='${datarootdir}/info' 852 htmldir='${docdir}' 853 dvidir='${docdir}' 854 pdfdir='${docdir}' 855 psdir='${docdir}' 856 libdir='${exec_prefix}/lib' 857 localedir='${datarootdir}/locale' 858 mandir='${datarootdir}/man' 859 860 ac_prev= 861 ac_dashdash= 862 for ac_option 863 do 864 # If the previous option needs an argument, assign it. 865 if test -n "$ac_prev"; then 866 eval $ac_prev=\$ac_option 867 ac_prev= 868 continue 869 fi 870 871 case $ac_option in 872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 873 *) ac_optarg=yes ;; 874 esac 875 876 # Accept the important Cygnus configure options, so we can diagnose typos. 877 878 case $ac_dashdash$ac_option in 879 --) 880 ac_dashdash=yes ;; 881 882 -bindir | --bindir | --bindi | --bind | --bin | --bi) 883 ac_prev=bindir ;; 884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 885 bindir=$ac_optarg ;; 886 887 -build | --build | --buil | --bui | --bu) 888 ac_prev=build_alias ;; 889 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 890 build_alias=$ac_optarg ;; 891 892 -cache-file | --cache-file | --cache-fil | --cache-fi \ 893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 894 ac_prev=cache_file ;; 895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 897 cache_file=$ac_optarg ;; 898 899 --config-cache | -C) 900 cache_file=config.cache ;; 901 902 -datadir | --datadir | --datadi | --datad) 903 ac_prev=datadir ;; 904 -datadir=* | --datadir=* | --datadi=* | --datad=*) 905 datadir=$ac_optarg ;; 906 907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 908 | --dataroo | --dataro | --datar) 909 ac_prev=datarootdir ;; 910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 912 datarootdir=$ac_optarg ;; 913 914 -disable-* | --disable-*) 915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918 as_fn_error "invalid feature name: $ac_useropt" 919 ac_useropt_orig=$ac_useropt 920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 921 case $ac_user_opts in 922 *" 923 "enable_$ac_useropt" 924 "*) ;; 925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 926 ac_unrecognized_sep=', ';; 927 esac 928 eval enable_$ac_useropt=no ;; 929 930 -docdir | --docdir | --docdi | --doc | --do) 931 ac_prev=docdir ;; 932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 933 docdir=$ac_optarg ;; 934 935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 936 ac_prev=dvidir ;; 937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 938 dvidir=$ac_optarg ;; 939 940 -enable-* | --enable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949 "enable_$ac_useropt" 950 "*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=\$ac_optarg ;; 955 956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 958 | --exec | --exe | --ex) 959 ac_prev=exec_prefix ;; 960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 962 | --exec=* | --exe=* | --ex=*) 963 exec_prefix=$ac_optarg ;; 964 965 -gas | --gas | --ga | --g) 966 # Obsolete; use --with-gas. 967 with_gas=yes ;; 968 969 -help | --help | --hel | --he | -h) 970 ac_init_help=long ;; 971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 972 ac_init_help=recursive ;; 973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 974 ac_init_help=short ;; 975 976 -host | --host | --hos | --ho) 977 ac_prev=host_alias ;; 978 -host=* | --host=* | --hos=* | --ho=*) 979 host_alias=$ac_optarg ;; 980 981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 982 ac_prev=htmldir ;; 983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 984 | --ht=*) 985 htmldir=$ac_optarg ;; 986 987 -includedir | --includedir | --includedi | --included | --include \ 988 | --includ | --inclu | --incl | --inc) 989 ac_prev=includedir ;; 990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 991 | --includ=* | --inclu=* | --incl=* | --inc=*) 992 includedir=$ac_optarg ;; 993 994 -infodir | --infodir | --infodi | --infod | --info | --inf) 995 ac_prev=infodir ;; 996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 997 infodir=$ac_optarg ;; 998 999 -libdir | --libdir | --libdi | --libd) 1000 ac_prev=libdir ;; 1001 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1002 libdir=$ac_optarg ;; 1003 1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1005 | --libexe | --libex | --libe) 1006 ac_prev=libexecdir ;; 1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1008 | --libexe=* | --libex=* | --libe=*) 1009 libexecdir=$ac_optarg ;; 1010 1011 -localedir | --localedir | --localedi | --localed | --locale) 1012 ac_prev=localedir ;; 1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1014 localedir=$ac_optarg ;; 1015 1016 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1017 | --localstate | --localstat | --localsta | --localst | --locals) 1018 ac_prev=localstatedir ;; 1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1021 localstatedir=$ac_optarg ;; 1022 1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1024 ac_prev=mandir ;; 1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1026 mandir=$ac_optarg ;; 1027 1028 -nfp | --nfp | --nf) 1029 # Obsolete; use --without-fp. 1030 with_fp=no ;; 1031 1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1033 | --no-cr | --no-c | -n) 1034 no_create=yes ;; 1035 1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1038 no_recursion=yes ;; 1039 1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1042 | --oldin | --oldi | --old | --ol | --o) 1043 ac_prev=oldincludedir ;; 1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1047 oldincludedir=$ac_optarg ;; 1048 1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1050 ac_prev=prefix ;; 1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1052 prefix=$ac_optarg ;; 1053 1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1055 | --program-pre | --program-pr | --program-p) 1056 ac_prev=program_prefix ;; 1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1059 program_prefix=$ac_optarg ;; 1060 1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1062 | --program-suf | --program-su | --program-s) 1063 ac_prev=program_suffix ;; 1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1066 program_suffix=$ac_optarg ;; 1067 1068 -program-transform-name | --program-transform-name \ 1069 | --program-transform-nam | --program-transform-na \ 1070 | --program-transform-n | --program-transform- \ 1071 | --program-transform | --program-transfor \ 1072 | --program-transfo | --program-transf \ 1073 | --program-trans | --program-tran \ 1074 | --progr-tra | --program-tr | --program-t) 1075 ac_prev=program_transform_name ;; 1076 -program-transform-name=* | --program-transform-name=* \ 1077 | --program-transform-nam=* | --program-transform-na=* \ 1078 | --program-transform-n=* | --program-transform-=* \ 1079 | --program-transform=* | --program-transfor=* \ 1080 | --program-transfo=* | --program-transf=* \ 1081 | --program-trans=* | --program-tran=* \ 1082 | --progr-tra=* | --program-tr=* | --program-t=*) 1083 program_transform_name=$ac_optarg ;; 1084 1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1086 ac_prev=pdfdir ;; 1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1088 pdfdir=$ac_optarg ;; 1089 1090 -psdir | --psdir | --psdi | --psd | --ps) 1091 ac_prev=psdir ;; 1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1093 psdir=$ac_optarg ;; 1094 1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1096 | -silent | --silent | --silen | --sile | --sil) 1097 silent=yes ;; 1098 1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1100 ac_prev=sbindir ;; 1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1102 | --sbi=* | --sb=*) 1103 sbindir=$ac_optarg ;; 1104 1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1107 | --sharedst | --shareds | --shared | --share | --shar \ 1108 | --sha | --sh) 1109 ac_prev=sharedstatedir ;; 1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1113 | --sha=* | --sh=*) 1114 sharedstatedir=$ac_optarg ;; 1115 1116 -site | --site | --sit) 1117 ac_prev=site ;; 1118 -site=* | --site=* | --sit=*) 1119 site=$ac_optarg ;; 1120 1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1122 ac_prev=srcdir ;; 1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1124 srcdir=$ac_optarg ;; 1125 1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1127 | --syscon | --sysco | --sysc | --sys | --sy) 1128 ac_prev=sysconfdir ;; 1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1131 sysconfdir=$ac_optarg ;; 1132 1133 -target | --target | --targe | --targ | --tar | --ta | --t) 1134 ac_prev=target_alias ;; 1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1136 target_alias=$ac_optarg ;; 1137 1138 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1139 verbose=yes ;; 1140 1141 -version | --version | --versio | --versi | --vers | -V) 1142 ac_init_version=: ;; 1143 1144 -with-* | --with-*) 1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1146 # Reject names that are not valid shell variable names. 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1148 as_fn_error "invalid package name: $ac_useropt" 1149 ac_useropt_orig=$ac_useropt 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1151 case $ac_user_opts in 1152 *" 1153 "with_$ac_useropt" 1154 "*) ;; 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1156 ac_unrecognized_sep=', ';; 1157 esac 1158 eval with_$ac_useropt=\$ac_optarg ;; 1159 1160 -without-* | --without-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error "invalid package name: $ac_useropt" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169 "with_$ac_useropt" 1170 "*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval with_$ac_useropt=no ;; 1175 1176 --x) 1177 # Obsolete; use --with-x. 1178 with_x=yes ;; 1179 1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1181 | --x-incl | --x-inc | --x-in | --x-i) 1182 ac_prev=x_includes ;; 1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1185 x_includes=$ac_optarg ;; 1186 1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1189 ac_prev=x_libraries ;; 1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1192 x_libraries=$ac_optarg ;; 1193 1194 -*) as_fn_error "unrecognized option: \`$ac_option' 1195 Try \`$0 --help' for more information." 1196 ;; 1197 1198 *=*) 1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1200 # Reject names that are not valid shell variable names. 1201 case $ac_envvar in #( 1202 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1203 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1204 esac 1205 eval $ac_envvar=\$ac_optarg 1206 export $ac_envvar ;; 1207 1208 *) 1209 # FIXME: should be removed in autoconf 3.0. 1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1213 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1214 ;; 1215 1216 esac 1217 done 1218 1219 if test -n "$ac_prev"; then 1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1221 as_fn_error "missing argument to $ac_option" 1222 fi 1223 1224 if test -n "$ac_unrecognized_opts"; then 1225 case $enable_option_checking in 1226 no) ;; 1227 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1229 esac 1230 fi 1231 1232 # Check all directory arguments for consistency. 1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1234 datadir sysconfdir sharedstatedir localstatedir includedir \ 1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1236 libdir localedir mandir 1237 do 1238 eval ac_val=\$$ac_var 1239 # Remove trailing slashes. 1240 case $ac_val in 1241 */ ) 1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1243 eval $ac_var=\$ac_val;; 1244 esac 1245 # Be sure to have absolute directory names. 1246 case $ac_val in 1247 [\\/$]* | ?:[\\/]* ) continue;; 1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1249 esac 1250 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1251 done 1252 1253 # There might be people who depend on the old broken behavior: `$host' 1254 # used to hold the argument of --host etc. 1255 # FIXME: To remove some day. 1256 build=$build_alias 1257 host=$host_alias 1258 target=$target_alias 1259 1260 # FIXME: To remove some day. 1261 if test "x$host_alias" != x; then 1262 if test "x$build_alias" = x; then 1263 cross_compiling=maybe 1264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1265 If a cross compiler is detected then cross compile mode will be used." >&2 1266 elif test "x$build_alias" != "x$host_alias"; then 1267 cross_compiling=yes 1268 fi 1269 fi 1270 1271 ac_tool_prefix= 1272 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1273 1274 test "$silent" = yes && exec 6>/dev/null 1275 1276 1277 ac_pwd=`pwd` && test -n "$ac_pwd" && 1278 ac_ls_di=`ls -di .` && 1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1280 as_fn_error "working directory cannot be determined" 1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1282 as_fn_error "pwd does not report name of working directory" 1283 1284 1285 # Find the source files, if location was not specified. 1286 if test -z "$srcdir"; then 1287 ac_srcdir_defaulted=yes 1288 # Try the directory containing this script, then the parent directory. 1289 ac_confdir=`$as_dirname -- "$as_myself" || 1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1291 X"$as_myself" : 'X\(//\)[^/]' \| \ 1292 X"$as_myself" : 'X\(//\)$' \| \ 1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1294 $as_echo X"$as_myself" | 1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)[^/].*/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\).*/{ 1308 s//\1/ 1309 q 1310 } 1311 s/.*/./; q'` 1312 srcdir=$ac_confdir 1313 if test ! -r "$srcdir/$ac_unique_file"; then 1314 srcdir=.. 1315 fi 1316 else 1317 ac_srcdir_defaulted=no 1318 fi 1319 if test ! -r "$srcdir/$ac_unique_file"; then 1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1321 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1322 fi 1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1324 ac_abs_confdir=`( 1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1326 pwd)` 1327 # When building in place, set srcdir=. 1328 if test "$ac_abs_confdir" = "$ac_pwd"; then 1329 srcdir=. 1330 fi 1331 # Remove unnecessary trailing slashes from srcdir. 1332 # Double slashes in file names in object file debugging info 1333 # mess up M-x gdb in Emacs. 1334 case $srcdir in 1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1336 esac 1337 for ac_var in $ac_precious_vars; do 1338 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_env_${ac_var}_value=\$${ac_var} 1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1342 done 1343 1344 # 1345 # Report the --help message. 1346 # 1347 if test "$ac_init_help" = "long"; then 1348 # Omit some internal or obsolete options to make the list less imposing. 1349 # This message is too long to be a string in the A/UX 3.1 sh. 1350 cat <<_ACEOF 1351 \`configure' configures ld 2.25.51 to adapt to many kinds of systems. 1352 1353 Usage: $0 [OPTION]... [VAR=VALUE]... 1354 1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1356 VAR=VALUE. See below for descriptions of some of the useful variables. 1357 1358 Defaults for the options are specified in brackets. 1359 1360 Configuration: 1361 -h, --help display this help and exit 1362 --help=short display options specific to this package 1363 --help=recursive display the short help of all the included packages 1364 -V, --version display version information and exit 1365 -q, --quiet, --silent do not print \`checking...' messages 1366 --cache-file=FILE cache test results in FILE [disabled] 1367 -C, --config-cache alias for \`--cache-file=config.cache' 1368 -n, --no-create do not create output files 1369 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1370 1371 Installation directories: 1372 --prefix=PREFIX install architecture-independent files in PREFIX 1373 [$ac_default_prefix] 1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1375 [PREFIX] 1376 1377 By default, \`make install' will install all the files in 1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1380 for instance \`--prefix=\$HOME'. 1381 1382 For better control, use the options below. 1383 1384 Fine tuning of the installation directories: 1385 --bindir=DIR user executables [EPREFIX/bin] 1386 --sbindir=DIR system admin executables [EPREFIX/sbin] 1387 --libexecdir=DIR program executables [EPREFIX/libexec] 1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1391 --libdir=DIR object code libraries [EPREFIX/lib] 1392 --includedir=DIR C header files [PREFIX/include] 1393 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1396 --infodir=DIR info documentation [DATAROOTDIR/info] 1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1398 --mandir=DIR man documentation [DATAROOTDIR/man] 1399 --docdir=DIR documentation root [DATAROOTDIR/doc/ld] 1400 --htmldir=DIR html documentation [DOCDIR] 1401 --dvidir=DIR dvi documentation [DOCDIR] 1402 --pdfdir=DIR pdf documentation [DOCDIR] 1403 --psdir=DIR ps documentation [DOCDIR] 1404 _ACEOF 1405 1406 cat <<\_ACEOF 1407 1408 Program names: 1409 --program-prefix=PREFIX prepend PREFIX to installed program names 1410 --program-suffix=SUFFIX append SUFFIX to installed program names 1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1412 1413 System types: 1414 --build=BUILD configure for building on BUILD [guessed] 1415 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1416 --target=TARGET configure for building compilers for TARGET [HOST] 1417 _ACEOF 1418 fi 1419 1420 if test -n "$ac_init_help"; then 1421 case $ac_init_help in 1422 short | recursive ) echo "Configuration of ld 2.25.51:";; 1423 esac 1424 cat <<\_ACEOF 1425 1426 Optional Features: 1427 --disable-option-checking ignore unrecognized --enable/--with options 1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1430 --disable-dependency-tracking speeds up one-time build 1431 --enable-dependency-tracking do not reject slow dependency extractors 1432 --enable-maintainer-mode enable make rules and dependencies not useful 1433 (and sometimes confusing) to the casual installer 1434 --enable-shared[=PKGS] build shared libraries [default=yes] 1435 --enable-static[=PKGS] build static libraries [default=yes] 1436 --enable-fast-install[=PKGS] 1437 optimize for fast installation [default=yes] 1438 --disable-libtool-lock avoid locking (might break parallel builds) 1439 --enable-plugins Enable support for plugins 1440 --disable-largefile omit support for large files 1441 --enable-targets alternative target configurations 1442 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 1443 --enable-poison-system-directories 1444 warn for use of native system library directories 1445 --enable-gold[=ARG] build gold [ARG={default,yes,no}] 1446 --enable-got=<type> GOT handling scheme (target, single, negative, 1447 multigot) 1448 --enable-werror treat compile warnings as errors 1449 --enable-build-warnings enable build-time compiler warnings 1450 --disable-nls do not use Native Language Support 1451 --enable-initfini-array use .init_array/.fini_array sections 1452 1453 Optional Packages: 1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1456 --with-pic try to use only PIC/non-PIC objects [default=use 1457 both] 1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1459 --with-lib-path=dir1:dir2... set default LIB_PATH 1460 --with-sysroot=DIR Search for usr/lib et al within DIR. 1461 --with-zlib include zlib support (auto/yes/no) default=auto 1462 1463 Some influential environment variables: 1464 CC C compiler command 1465 CFLAGS C compiler flags 1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1467 nonstandard directory <lib dir> 1468 LIBS libraries to pass to the linker, e.g. -l<library> 1469 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1470 you have headers in a nonstandard directory <include dir> 1471 CXX C++ compiler command 1472 CXXFLAGS C++ compiler flags 1473 CPP C preprocessor 1474 CXXCPP C++ preprocessor 1475 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1476 the first program found out of: `bison -y', `byacc', `yacc'. 1477 YFLAGS The list of arguments that will be passed by default to $YACC. 1478 This script will default YFLAGS to the empty string to avoid a 1479 default value of `-d' given by some make applications. 1480 1481 Use these variables to override the choices made by `configure' or to help 1482 it to find libraries and programs with nonstandard names/locations. 1483 1484 Report bugs to the package provider. 1485 _ACEOF 1486 ac_status=$? 1487 fi 1488 1489 if test "$ac_init_help" = "recursive"; then 1490 # If there are subdirs, report their specific --help. 1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1492 test -d "$ac_dir" || 1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1494 continue 1495 ac_builddir=. 1496 1497 case "$ac_dir" in 1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499 *) 1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1501 # A ".." for each directory in $ac_dir_suffix. 1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1503 case $ac_top_builddir_sub in 1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1506 esac ;; 1507 esac 1508 ac_abs_top_builddir=$ac_pwd 1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1510 # for backward compatibility: 1511 ac_top_builddir=$ac_top_build_prefix 1512 1513 case $srcdir in 1514 .) # We are building in place. 1515 ac_srcdir=. 1516 ac_top_srcdir=$ac_top_builddir_sub 1517 ac_abs_top_srcdir=$ac_pwd ;; 1518 [\\/]* | ?:[\\/]* ) # Absolute name. 1519 ac_srcdir=$srcdir$ac_dir_suffix; 1520 ac_top_srcdir=$srcdir 1521 ac_abs_top_srcdir=$srcdir ;; 1522 *) # Relative name. 1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1524 ac_top_srcdir=$ac_top_build_prefix$srcdir 1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1526 esac 1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1528 1529 cd "$ac_dir" || { ac_status=$?; continue; } 1530 # Check for guested configure. 1531 if test -f "$ac_srcdir/configure.gnu"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1534 elif test -f "$ac_srcdir/configure"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure" --help=recursive 1537 else 1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1539 fi || ac_status=$? 1540 cd "$ac_pwd" || { ac_status=$?; break; } 1541 done 1542 fi 1543 1544 test -n "$ac_init_help" && exit $ac_status 1545 if $ac_init_version; then 1546 cat <<\_ACEOF 1547 ld configure 2.25.51 1548 generated by GNU Autoconf 2.64 1549 1550 Copyright (C) 2009 Free Software Foundation, Inc. 1551 This configure script is free software; the Free Software Foundation 1552 gives unlimited permission to copy, distribute and modify it. 1553 _ACEOF 1554 exit 1555 fi 1556 1557 ## ------------------------ ## 1558 ## Autoconf initialization. ## 1559 ## ------------------------ ## 1560 1561 # ac_fn_c_try_compile LINENO 1562 # -------------------------- 1563 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1564 ac_fn_c_try_compile () 1565 { 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567 rm -f conftest.$ac_objext 1568 if { { ac_try="$ac_compile" 1569 case "(($ac_try" in 1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1571 *) ac_try_echo=$ac_try;; 1572 esac 1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1574 $as_echo "$ac_try_echo"; } >&5 1575 (eval "$ac_compile") 2>conftest.err 1576 ac_status=$? 1577 if test -s conftest.err; then 1578 grep -v '^ *+' conftest.err >conftest.er1 1579 cat conftest.er1 >&5 1580 mv -f conftest.er1 conftest.err 1581 fi 1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1583 test $ac_status = 0; } && { 1584 test -z "$ac_c_werror_flag" || 1585 test ! -s conftest.err 1586 } && test -s conftest.$ac_objext; then : 1587 ac_retval=0 1588 else 1589 $as_echo "$as_me: failed program was:" >&5 1590 sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593 fi 1594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1595 return $ac_retval 1596 1597 } # ac_fn_c_try_compile 1598 1599 # ac_fn_c_try_link LINENO 1600 # ----------------------- 1601 # Try to link conftest.$ac_ext, and return whether this succeeded. 1602 ac_fn_c_try_link () 1603 { 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext conftest$ac_exeext 1606 if { { ac_try="$ac_link" 1607 case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610 esac 1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612 $as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_link") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest$ac_exeext && { 1625 test "$cross_compiling" = yes || 1626 $as_test_x conftest$ac_exeext 1627 }; then : 1628 ac_retval=0 1629 else 1630 $as_echo "$as_me: failed program was:" >&5 1631 sed 's/^/| /' conftest.$ac_ext >&5 1632 1633 ac_retval=1 1634 fi 1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1637 # interfere with the next link command; also delete a directory that is 1638 # left behind by Apple's compiler. We do this before executing the actions. 1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1641 return $ac_retval 1642 1643 } # ac_fn_c_try_link 1644 1645 # ac_fn_cxx_try_compile LINENO 1646 # ---------------------------- 1647 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1648 ac_fn_cxx_try_compile () 1649 { 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 rm -f conftest.$ac_objext 1652 if { { ac_try="$ac_compile" 1653 case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656 esac 1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658 $as_echo "$ac_try_echo"; } >&5 1659 (eval "$ac_compile") 2>conftest.err 1660 ac_status=$? 1661 if test -s conftest.err; then 1662 grep -v '^ *+' conftest.err >conftest.er1 1663 cat conftest.er1 >&5 1664 mv -f conftest.er1 conftest.err 1665 fi 1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; } && { 1668 test -z "$ac_cxx_werror_flag" || 1669 test ! -s conftest.err 1670 } && test -s conftest.$ac_objext; then : 1671 ac_retval=0 1672 else 1673 $as_echo "$as_me: failed program was:" >&5 1674 sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=1 1677 fi 1678 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1679 return $ac_retval 1680 1681 } # ac_fn_cxx_try_compile 1682 1683 # ac_fn_c_try_cpp LINENO 1684 # ---------------------- 1685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1686 ac_fn_c_try_cpp () 1687 { 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 if { { ac_try="$ac_cpp conftest.$ac_ext" 1690 case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693 esac 1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695 $as_echo "$ac_try_echo"; } >&5 1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1697 ac_status=$? 1698 if test -s conftest.err; then 1699 grep -v '^ *+' conftest.err >conftest.er1 1700 cat conftest.er1 >&5 1701 mv -f conftest.er1 conftest.err 1702 fi 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } >/dev/null && { 1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1706 test ! -s conftest.err 1707 }; then : 1708 ac_retval=0 1709 else 1710 $as_echo "$as_me: failed program was:" >&5 1711 sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=1 1714 fi 1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1716 return $ac_retval 1717 1718 } # ac_fn_c_try_cpp 1719 1720 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1721 # ------------------------------------------------------- 1722 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1723 # the include files in INCLUDES and setting the cache variable VAR 1724 # accordingly. 1725 ac_fn_c_check_header_mongrel () 1726 { 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730 $as_echo_n "checking for $2... " >&6; } 1731 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1732 $as_echo_n "(cached) " >&6 1733 fi 1734 eval ac_res=\$$3 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1736 $as_echo "$ac_res" >&6; } 1737 else 1738 # Is the header compilable? 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1740 $as_echo_n "checking $2 usability... " >&6; } 1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1742 /* end confdefs.h. */ 1743 $4 1744 #include <$2> 1745 _ACEOF 1746 if ac_fn_c_try_compile "$LINENO"; then : 1747 ac_header_compiler=yes 1748 else 1749 ac_header_compiler=no 1750 fi 1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1753 $as_echo "$ac_header_compiler" >&6; } 1754 1755 # Is the header present? 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1757 $as_echo_n "checking $2 presence... " >&6; } 1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759 /* end confdefs.h. */ 1760 #include <$2> 1761 _ACEOF 1762 if ac_fn_c_try_cpp "$LINENO"; then : 1763 ac_header_preproc=yes 1764 else 1765 ac_header_preproc=no 1766 fi 1767 rm -f conftest.err conftest.$ac_ext 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1769 $as_echo "$ac_header_preproc" >&6; } 1770 1771 # So? What about this header? 1772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1773 yes:no: ) 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1775 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1778 ;; 1779 no:yes:* ) 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1781 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1783 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1785 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1787 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1790 ;; 1791 esac 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793 $as_echo_n "checking for $2... " >&6; } 1794 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1795 $as_echo_n "(cached) " >&6 1796 else 1797 eval "$3=\$ac_header_compiler" 1798 fi 1799 eval ac_res=\$$3 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801 $as_echo "$ac_res" >&6; } 1802 fi 1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1804 1805 } # ac_fn_c_check_header_mongrel 1806 1807 # ac_fn_c_try_run LINENO 1808 # ---------------------- 1809 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1810 # that executables *can* be run. 1811 ac_fn_c_try_run () 1812 { 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 if { { ac_try="$ac_link" 1815 case "(($ac_try" in 1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1817 *) ac_try_echo=$ac_try;; 1818 esac 1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1820 $as_echo "$ac_try_echo"; } >&5 1821 (eval "$ac_link") 2>&5 1822 ac_status=$? 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1825 { { case "(($ac_try" in 1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1827 *) ac_try_echo=$ac_try;; 1828 esac 1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1830 $as_echo "$ac_try_echo"; } >&5 1831 (eval "$ac_try") 2>&5 1832 ac_status=$? 1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1834 test $ac_status = 0; }; }; then : 1835 ac_retval=0 1836 else 1837 $as_echo "$as_me: program exited with status $ac_status" >&5 1838 $as_echo "$as_me: failed program was:" >&5 1839 sed 's/^/| /' conftest.$ac_ext >&5 1840 1841 ac_retval=$ac_status 1842 fi 1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1845 return $ac_retval 1846 1847 } # ac_fn_c_try_run 1848 1849 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1850 # ------------------------------------------------------- 1851 # Tests whether HEADER exists and can be compiled using the include files in 1852 # INCLUDES, setting the cache variable VAR accordingly. 1853 ac_fn_c_check_header_compile () 1854 { 1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1857 $as_echo_n "checking for $2... " >&6; } 1858 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1859 $as_echo_n "(cached) " >&6 1860 else 1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1862 /* end confdefs.h. */ 1863 $4 1864 #include <$2> 1865 _ACEOF 1866 if ac_fn_c_try_compile "$LINENO"; then : 1867 eval "$3=yes" 1868 else 1869 eval "$3=no" 1870 fi 1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1872 fi 1873 eval ac_res=\$$3 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1875 $as_echo "$ac_res" >&6; } 1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1877 1878 } # ac_fn_c_check_header_compile 1879 1880 # ac_fn_c_check_func LINENO FUNC VAR 1881 # ---------------------------------- 1882 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1883 ac_fn_c_check_func () 1884 { 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1887 $as_echo_n "checking for $2... " >&6; } 1888 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1889 $as_echo_n "(cached) " >&6 1890 else 1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1892 /* end confdefs.h. */ 1893 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1895 #define $2 innocuous_$2 1896 1897 /* System header to define __stub macros and hopefully few prototypes, 1898 which can conflict with char $2 (); below. 1899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1900 <limits.h> exists even on freestanding compilers. */ 1901 1902 #ifdef __STDC__ 1903 # include <limits.h> 1904 #else 1905 # include <assert.h> 1906 #endif 1907 1908 #undef $2 1909 1910 /* Override any GCC internal prototype to avoid an error. 1911 Use char because int might match the return type of a GCC 1912 builtin and then its argument prototype would still apply. */ 1913 #ifdef __cplusplus 1914 extern "C" 1915 #endif 1916 char $2 (); 1917 /* The GNU C library defines this for functions which it implements 1918 to always fail with ENOSYS. Some functions are actually named 1919 something starting with __ and the normal name is an alias. */ 1920 #if defined __stub_$2 || defined __stub___$2 1921 choke me 1922 #endif 1923 1924 int 1925 main () 1926 { 1927 return $2 (); 1928 ; 1929 return 0; 1930 } 1931 _ACEOF 1932 if ac_fn_c_try_link "$LINENO"; then : 1933 eval "$3=yes" 1934 else 1935 eval "$3=no" 1936 fi 1937 rm -f core conftest.err conftest.$ac_objext \ 1938 conftest$ac_exeext conftest.$ac_ext 1939 fi 1940 eval ac_res=\$$3 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942 $as_echo "$ac_res" >&6; } 1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1944 1945 } # ac_fn_c_check_func 1946 1947 # ac_fn_cxx_try_cpp LINENO 1948 # ------------------------ 1949 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1950 ac_fn_cxx_try_cpp () 1951 { 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 if { { ac_try="$ac_cpp conftest.$ac_ext" 1954 case "(($ac_try" in 1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1956 *) ac_try_echo=$ac_try;; 1957 esac 1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1959 $as_echo "$ac_try_echo"; } >&5 1960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1961 ac_status=$? 1962 if test -s conftest.err; then 1963 grep -v '^ *+' conftest.err >conftest.er1 1964 cat conftest.er1 >&5 1965 mv -f conftest.er1 conftest.err 1966 fi 1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1968 test $ac_status = 0; } >/dev/null && { 1969 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1970 test ! -s conftest.err 1971 }; then : 1972 ac_retval=0 1973 else 1974 $as_echo "$as_me: failed program was:" >&5 1975 sed 's/^/| /' conftest.$ac_ext >&5 1976 1977 ac_retval=1 1978 fi 1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1980 return $ac_retval 1981 1982 } # ac_fn_cxx_try_cpp 1983 1984 # ac_fn_cxx_try_link LINENO 1985 # ------------------------- 1986 # Try to link conftest.$ac_ext, and return whether this succeeded. 1987 ac_fn_cxx_try_link () 1988 { 1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1990 rm -f conftest.$ac_objext conftest$ac_exeext 1991 if { { ac_try="$ac_link" 1992 case "(($ac_try" in 1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1994 *) ac_try_echo=$ac_try;; 1995 esac 1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1997 $as_echo "$ac_try_echo"; } >&5 1998 (eval "$ac_link") 2>conftest.err 1999 ac_status=$? 2000 if test -s conftest.err; then 2001 grep -v '^ *+' conftest.err >conftest.er1 2002 cat conftest.er1 >&5 2003 mv -f conftest.er1 conftest.err 2004 fi 2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2006 test $ac_status = 0; } && { 2007 test -z "$ac_cxx_werror_flag" || 2008 test ! -s conftest.err 2009 } && test -s conftest$ac_exeext && { 2010 test "$cross_compiling" = yes || 2011 $as_test_x conftest$ac_exeext 2012 }; then : 2013 ac_retval=0 2014 else 2015 $as_echo "$as_me: failed program was:" >&5 2016 sed 's/^/| /' conftest.$ac_ext >&5 2017 2018 ac_retval=1 2019 fi 2020 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2021 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2022 # interfere with the next link command; also delete a directory that is 2023 # left behind by Apple's compiler. We do this before executing the actions. 2024 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2026 return $ac_retval 2027 2028 } # ac_fn_cxx_try_link 2029 2030 # ac_fn_c_check_decl LINENO SYMBOL VAR 2031 # ------------------------------------ 2032 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2033 ac_fn_c_check_decl () 2034 { 2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2036 as_decl_name=`echo $2|sed 's/ *(.*//'` 2037 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2039 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2040 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2041 $as_echo_n "(cached) " >&6 2042 else 2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2044 /* end confdefs.h. */ 2045 $4 2046 int 2047 main () 2048 { 2049 #ifndef $as_decl_name 2050 #ifdef __cplusplus 2051 (void) $as_decl_use; 2052 #else 2053 (void) $as_decl_name; 2054 #endif 2055 #endif 2056 2057 ; 2058 return 0; 2059 } 2060 _ACEOF 2061 if ac_fn_c_try_compile "$LINENO"; then : 2062 eval "$3=yes" 2063 else 2064 eval "$3=no" 2065 fi 2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2067 fi 2068 eval ac_res=\$$3 2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2070 $as_echo "$ac_res" >&6; } 2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2072 2073 } # ac_fn_c_check_decl 2074 2075 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2076 # -------------------------------------------- 2077 # Tries to find the compile-time value of EXPR in a program that includes 2078 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2079 # computed 2080 ac_fn_c_compute_int () 2081 { 2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2083 if test "$cross_compiling" = yes; then 2084 # Depending upon the size, compute the lo and hi bounds. 2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2086 /* end confdefs.h. */ 2087 $4 2088 int 2089 main () 2090 { 2091 static int test_array [1 - 2 * !(($2) >= 0)]; 2092 test_array [0] = 0 2093 2094 ; 2095 return 0; 2096 } 2097 _ACEOF 2098 if ac_fn_c_try_compile "$LINENO"; then : 2099 ac_lo=0 ac_mid=0 2100 while :; do 2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2102 /* end confdefs.h. */ 2103 $4 2104 int 2105 main () 2106 { 2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2108 test_array [0] = 0 2109 2110 ; 2111 return 0; 2112 } 2113 _ACEOF 2114 if ac_fn_c_try_compile "$LINENO"; then : 2115 ac_hi=$ac_mid; break 2116 else 2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2118 if test $ac_lo -le $ac_mid; then 2119 ac_lo= ac_hi= 2120 break 2121 fi 2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2123 fi 2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2125 done 2126 else 2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2128 /* end confdefs.h. */ 2129 $4 2130 int 2131 main () 2132 { 2133 static int test_array [1 - 2 * !(($2) < 0)]; 2134 test_array [0] = 0 2135 2136 ; 2137 return 0; 2138 } 2139 _ACEOF 2140 if ac_fn_c_try_compile "$LINENO"; then : 2141 ac_hi=-1 ac_mid=-1 2142 while :; do 2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2144 /* end confdefs.h. */ 2145 $4 2146 int 2147 main () 2148 { 2149 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2150 test_array [0] = 0 2151 2152 ; 2153 return 0; 2154 } 2155 _ACEOF 2156 if ac_fn_c_try_compile "$LINENO"; then : 2157 ac_lo=$ac_mid; break 2158 else 2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2160 if test $ac_mid -le $ac_hi; then 2161 ac_lo= ac_hi= 2162 break 2163 fi 2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2165 fi 2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2167 done 2168 else 2169 ac_lo= ac_hi= 2170 fi 2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2172 fi 2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2174 # Binary search between lo and hi bounds. 2175 while test "x$ac_lo" != "x$ac_hi"; do 2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2178 /* end confdefs.h. */ 2179 $4 2180 int 2181 main () 2182 { 2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2184 test_array [0] = 0 2185 2186 ; 2187 return 0; 2188 } 2189 _ACEOF 2190 if ac_fn_c_try_compile "$LINENO"; then : 2191 ac_hi=$ac_mid 2192 else 2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2194 fi 2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2196 done 2197 case $ac_lo in #(( 2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2199 '') ac_retval=1 ;; 2200 esac 2201 else 2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2203 /* end confdefs.h. */ 2204 $4 2205 static long int longval () { return $2; } 2206 static unsigned long int ulongval () { return $2; } 2207 #include <stdio.h> 2208 #include <stdlib.h> 2209 int 2210 main () 2211 { 2212 2213 FILE *f = fopen ("conftest.val", "w"); 2214 if (! f) 2215 return 1; 2216 if (($2) < 0) 2217 { 2218 long int i = longval (); 2219 if (i != ($2)) 2220 return 1; 2221 fprintf (f, "%ld", i); 2222 } 2223 else 2224 { 2225 unsigned long int i = ulongval (); 2226 if (i != ($2)) 2227 return 1; 2228 fprintf (f, "%lu", i); 2229 } 2230 /* Do not output a trailing newline, as this causes \r\n confusion 2231 on some platforms. */ 2232 return ferror (f) || fclose (f) != 0; 2233 2234 ; 2235 return 0; 2236 } 2237 _ACEOF 2238 if ac_fn_c_try_run "$LINENO"; then : 2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2240 else 2241 ac_retval=1 2242 fi 2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2244 conftest.$ac_objext conftest.beam conftest.$ac_ext 2245 rm -f conftest.val 2246 2247 fi 2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2249 return $ac_retval 2250 2251 } # ac_fn_c_compute_int 2252 cat >config.log <<_ACEOF 2253 This file contains any messages produced by compilers while 2254 running configure, to aid debugging if configure makes a mistake. 2255 2256 It was created by ld $as_me 2.25.51, which was 2257 generated by GNU Autoconf 2.64. Invocation command line was 2258 2259 $ $0 $@ 2260 2261 _ACEOF 2262 exec 5>>config.log 2263 { 2264 cat <<_ASUNAME 2265 ## --------- ## 2266 ## Platform. ## 2267 ## --------- ## 2268 2269 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2270 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2271 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2272 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2273 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2274 2275 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2276 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2277 2278 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2279 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2280 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2281 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2282 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2283 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2284 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2285 2286 _ASUNAME 2287 2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2289 for as_dir in $PATH 2290 do 2291 IFS=$as_save_IFS 2292 test -z "$as_dir" && as_dir=. 2293 $as_echo "PATH: $as_dir" 2294 done 2295 IFS=$as_save_IFS 2296 2297 } >&5 2298 2299 cat >&5 <<_ACEOF 2300 2301 2302 ## ----------- ## 2303 ## Core tests. ## 2304 ## ----------- ## 2305 2306 _ACEOF 2307 2308 2309 # Keep a trace of the command line. 2310 # Strip out --no-create and --no-recursion so they do not pile up. 2311 # Strip out --silent because we don't want to record it for future runs. 2312 # Also quote any args containing shell meta-characters. 2313 # Make two passes to allow for proper duplicate-argument suppression. 2314 ac_configure_args= 2315 ac_configure_args0= 2316 ac_configure_args1= 2317 ac_must_keep_next=false 2318 for ac_pass in 1 2 2319 do 2320 for ac_arg 2321 do 2322 case $ac_arg in 2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2325 | -silent | --silent | --silen | --sile | --sil) 2326 continue ;; 2327 *\'*) 2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2329 esac 2330 case $ac_pass in 2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2332 2) 2333 as_fn_append ac_configure_args1 " '$ac_arg'" 2334 if test $ac_must_keep_next = true; then 2335 ac_must_keep_next=false # Got value, back to normal. 2336 else 2337 case $ac_arg in 2338 *=* | --config-cache | -C | -disable-* | --disable-* \ 2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2341 | -with-* | --with-* | -without-* | --without-* | --x) 2342 case "$ac_configure_args0 " in 2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2344 esac 2345 ;; 2346 -* ) ac_must_keep_next=true ;; 2347 esac 2348 fi 2349 as_fn_append ac_configure_args " '$ac_arg'" 2350 ;; 2351 esac 2352 done 2353 done 2354 { ac_configure_args0=; unset ac_configure_args0;} 2355 { ac_configure_args1=; unset ac_configure_args1;} 2356 2357 # When interrupted or exit'd, cleanup temporary files, and complete 2358 # config.log. We remove comments because anyway the quotes in there 2359 # would cause problems or look ugly. 2360 # WARNING: Use '\'' to represent an apostrophe within the trap. 2361 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2362 trap 'exit_status=$? 2363 # Save into config.log some information that might help in debugging. 2364 { 2365 echo 2366 2367 cat <<\_ASBOX 2368 ## ---------------- ## 2369 ## Cache variables. ## 2370 ## ---------------- ## 2371 _ASBOX 2372 echo 2373 # The following way of writing the cache mishandles newlines in values, 2374 ( 2375 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2376 eval ac_val=\$$ac_var 2377 case $ac_val in #( 2378 *${as_nl}*) 2379 case $ac_var in #( 2380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2382 esac 2383 case $ac_var in #( 2384 _ | IFS | as_nl) ;; #( 2385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2386 *) { eval $ac_var=; unset $ac_var;} ;; 2387 esac ;; 2388 esac 2389 done 2390 (set) 2>&1 | 2391 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2392 *${as_nl}ac_space=\ *) 2393 sed -n \ 2394 "s/'\''/'\''\\\\'\'''\''/g; 2395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2396 ;; #( 2397 *) 2398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2399 ;; 2400 esac | 2401 sort 2402 ) 2403 echo 2404 2405 cat <<\_ASBOX 2406 ## ----------------- ## 2407 ## Output variables. ## 2408 ## ----------------- ## 2409 _ASBOX 2410 echo 2411 for ac_var in $ac_subst_vars 2412 do 2413 eval ac_val=\$$ac_var 2414 case $ac_val in 2415 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2416 esac 2417 $as_echo "$ac_var='\''$ac_val'\''" 2418 done | sort 2419 echo 2420 2421 if test -n "$ac_subst_files"; then 2422 cat <<\_ASBOX 2423 ## ------------------- ## 2424 ## File substitutions. ## 2425 ## ------------------- ## 2426 _ASBOX 2427 echo 2428 for ac_var in $ac_subst_files 2429 do 2430 eval ac_val=\$$ac_var 2431 case $ac_val in 2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2433 esac 2434 $as_echo "$ac_var='\''$ac_val'\''" 2435 done | sort 2436 echo 2437 fi 2438 2439 if test -s confdefs.h; then 2440 cat <<\_ASBOX 2441 ## ----------- ## 2442 ## confdefs.h. ## 2443 ## ----------- ## 2444 _ASBOX 2445 echo 2446 cat confdefs.h 2447 echo 2448 fi 2449 test "$ac_signal" != 0 && 2450 $as_echo "$as_me: caught signal $ac_signal" 2451 $as_echo "$as_me: exit $exit_status" 2452 } >&5 2453 rm -f core *.core core.conftest.* && 2454 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2455 exit $exit_status 2456 ' 0 2457 for ac_signal in 1 2 13 15; do 2458 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2459 done 2460 ac_signal=0 2461 2462 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2463 rm -f -r conftest* confdefs.h 2464 2465 $as_echo "/* confdefs.h */" > confdefs.h 2466 2467 # Predefined preprocessor variables. 2468 2469 cat >>confdefs.h <<_ACEOF 2470 #define PACKAGE_NAME "$PACKAGE_NAME" 2471 _ACEOF 2472 2473 cat >>confdefs.h <<_ACEOF 2474 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2475 _ACEOF 2476 2477 cat >>confdefs.h <<_ACEOF 2478 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2479 _ACEOF 2480 2481 cat >>confdefs.h <<_ACEOF 2482 #define PACKAGE_STRING "$PACKAGE_STRING" 2483 _ACEOF 2484 2485 cat >>confdefs.h <<_ACEOF 2486 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2487 _ACEOF 2488 2489 cat >>confdefs.h <<_ACEOF 2490 #define PACKAGE_URL "$PACKAGE_URL" 2491 _ACEOF 2492 2493 2494 # Let the site file select an alternate cache file if it wants to. 2495 # Prefer an explicitly selected file to automatically selected ones. 2496 ac_site_file1=NONE 2497 ac_site_file2=NONE 2498 if test -n "$CONFIG_SITE"; then 2499 ac_site_file1=$CONFIG_SITE 2500 elif test "x$prefix" != xNONE; then 2501 ac_site_file1=$prefix/share/config.site 2502 ac_site_file2=$prefix/etc/config.site 2503 else 2504 ac_site_file1=$ac_default_prefix/share/config.site 2505 ac_site_file2=$ac_default_prefix/etc/config.site 2506 fi 2507 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2508 do 2509 test "x$ac_site_file" = xNONE && continue 2510 if test -r "$ac_site_file"; then 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2512 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2513 sed 's/^/| /' "$ac_site_file" >&5 2514 . "$ac_site_file" 2515 fi 2516 done 2517 2518 if test -r "$cache_file"; then 2519 # Some versions of bash will fail to source /dev/null (special 2520 # files actually), so we avoid doing that. 2521 if test -f "$cache_file"; then 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2523 $as_echo "$as_me: loading cache $cache_file" >&6;} 2524 case $cache_file in 2525 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2526 *) . "./$cache_file";; 2527 esac 2528 fi 2529 else 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2531 $as_echo "$as_me: creating cache $cache_file" >&6;} 2532 >$cache_file 2533 fi 2534 2535 # Check that the precious variables saved in the cache have kept the same 2536 # value. 2537 ac_cache_corrupted=false 2538 for ac_var in $ac_precious_vars; do 2539 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2540 eval ac_new_set=\$ac_env_${ac_var}_set 2541 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2542 eval ac_new_val=\$ac_env_${ac_var}_value 2543 case $ac_old_set,$ac_new_set in 2544 set,) 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2546 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2547 ac_cache_corrupted=: ;; 2548 ,set) 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2550 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2551 ac_cache_corrupted=: ;; 2552 ,);; 2553 *) 2554 if test "x$ac_old_val" != "x$ac_new_val"; then 2555 # differences in whitespace do not lead to failure. 2556 ac_old_val_w=`echo x $ac_old_val` 2557 ac_new_val_w=`echo x $ac_new_val` 2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2560 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2561 ac_cache_corrupted=: 2562 else 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2564 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2565 eval $ac_var=\$ac_old_val 2566 fi 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2568 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2570 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2571 fi;; 2572 esac 2573 # Pass precious variables to config.status. 2574 if test "$ac_new_set" = set; then 2575 case $ac_new_val in 2576 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2577 *) ac_arg=$ac_var=$ac_new_val ;; 2578 esac 2579 case " $ac_configure_args " in 2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2581 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2582 esac 2583 fi 2584 done 2585 if $ac_cache_corrupted; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2589 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2590 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2591 fi 2592 ## -------------------- ## 2593 ## Main body of script. ## 2594 ## -------------------- ## 2595 2596 ac_ext=c 2597 ac_cpp='$CPP $CPPFLAGS' 2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2601 2602 2603 2604 2605 2606 2607 2608 ac_aux_dir= 2609 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2610 for ac_t in install-sh install.sh shtool; do 2611 if test -f "$ac_dir/$ac_t"; then 2612 ac_aux_dir=$ac_dir 2613 ac_install_sh="$ac_aux_dir/$ac_t -c" 2614 break 2 2615 fi 2616 done 2617 done 2618 if test -z "$ac_aux_dir"; then 2619 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2620 fi 2621 2622 # These three variables are undocumented and unsupported, 2623 # and are intended to be withdrawn in a future Autoconf release. 2624 # They can cause serious problems if a builder's source tree is in a directory 2625 # whose full name contains unusual characters. 2626 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2627 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2628 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2629 2630 2631 # Make sure we can run config.sub. 2632 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2633 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2634 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2636 $as_echo_n "checking build system type... " >&6; } 2637 if test "${ac_cv_build+set}" = set; then : 2638 $as_echo_n "(cached) " >&6 2639 else 2640 ac_build_alias=$build_alias 2641 test "x$ac_build_alias" = x && 2642 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2643 test "x$ac_build_alias" = x && 2644 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2645 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2646 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2647 2648 fi 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2650 $as_echo "$ac_cv_build" >&6; } 2651 case $ac_cv_build in 2652 *-*-*) ;; 2653 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2654 esac 2655 build=$ac_cv_build 2656 ac_save_IFS=$IFS; IFS='-' 2657 set x $ac_cv_build 2658 shift 2659 build_cpu=$1 2660 build_vendor=$2 2661 shift; shift 2662 # Remember, the first character of IFS is used to create $*, 2663 # except with old shells: 2664 build_os=$* 2665 IFS=$ac_save_IFS 2666 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2667 2668 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2670 $as_echo_n "checking host system type... " >&6; } 2671 if test "${ac_cv_host+set}" = set; then : 2672 $as_echo_n "(cached) " >&6 2673 else 2674 if test "x$host_alias" = x; then 2675 ac_cv_host=$ac_cv_build 2676 else 2677 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2678 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2679 fi 2680 2681 fi 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2683 $as_echo "$ac_cv_host" >&6; } 2684 case $ac_cv_host in 2685 *-*-*) ;; 2686 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2687 esac 2688 host=$ac_cv_host 2689 ac_save_IFS=$IFS; IFS='-' 2690 set x $ac_cv_host 2691 shift 2692 host_cpu=$1 2693 host_vendor=$2 2694 shift; shift 2695 # Remember, the first character of IFS is used to create $*, 2696 # except with old shells: 2697 host_os=$* 2698 IFS=$ac_save_IFS 2699 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2700 2701 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2703 $as_echo_n "checking target system type... " >&6; } 2704 if test "${ac_cv_target+set}" = set; then : 2705 $as_echo_n "(cached) " >&6 2706 else 2707 if test "x$target_alias" = x; then 2708 ac_cv_target=$ac_cv_host 2709 else 2710 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2711 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2712 fi 2713 2714 fi 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2716 $as_echo "$ac_cv_target" >&6; } 2717 case $ac_cv_target in 2718 *-*-*) ;; 2719 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2720 esac 2721 target=$ac_cv_target 2722 ac_save_IFS=$IFS; IFS='-' 2723 set x $ac_cv_target 2724 shift 2725 target_cpu=$1 2726 target_vendor=$2 2727 shift; shift 2728 # Remember, the first character of IFS is used to create $*, 2729 # except with old shells: 2730 target_os=$* 2731 IFS=$ac_save_IFS 2732 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2733 2734 2735 # The aliases save the names the user supplied, while $host etc. 2736 # will get canonicalized. 2737 test -n "$target_alias" && 2738 test "$program_prefix$program_suffix$program_transform_name" = \ 2739 NONENONEs,x,x, && 2740 program_prefix=${target_alias}- 2741 2742 ac_ext=c 2743 ac_cpp='$CPP $CPPFLAGS' 2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2747 if test -n "$ac_tool_prefix"; then 2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2749 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2751 $as_echo_n "checking for $ac_word... " >&6; } 2752 if test "${ac_cv_prog_CC+set}" = set; then : 2753 $as_echo_n "(cached) " >&6 2754 else 2755 if test -n "$CC"; then 2756 ac_cv_prog_CC="$CC" # Let the user override the test. 2757 else 2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759 for as_dir in $PATH 2760 do 2761 IFS=$as_save_IFS 2762 test -z "$as_dir" && as_dir=. 2763 for ac_exec_ext in '' $ac_executable_extensions; do 2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2765 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2767 break 2 2768 fi 2769 done 2770 done 2771 IFS=$as_save_IFS 2772 2773 fi 2774 fi 2775 CC=$ac_cv_prog_CC 2776 if test -n "$CC"; then 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2778 $as_echo "$CC" >&6; } 2779 else 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2781 $as_echo "no" >&6; } 2782 fi 2783 2784 2785 fi 2786 if test -z "$ac_cv_prog_CC"; then 2787 ac_ct_CC=$CC 2788 # Extract the first word of "gcc", so it can be a program name with args. 2789 set dummy gcc; ac_word=$2 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2791 $as_echo_n "checking for $ac_word... " >&6; } 2792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2793 $as_echo_n "(cached) " >&6 2794 else 2795 if test -n "$ac_ct_CC"; then 2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2797 else 2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799 for as_dir in $PATH 2800 do 2801 IFS=$as_save_IFS 2802 test -z "$as_dir" && as_dir=. 2803 for ac_exec_ext in '' $ac_executable_extensions; do 2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2805 ac_cv_prog_ac_ct_CC="gcc" 2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2807 break 2 2808 fi 2809 done 2810 done 2811 IFS=$as_save_IFS 2812 2813 fi 2814 fi 2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2816 if test -n "$ac_ct_CC"; then 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2818 $as_echo "$ac_ct_CC" >&6; } 2819 else 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821 $as_echo "no" >&6; } 2822 fi 2823 2824 if test "x$ac_ct_CC" = x; then 2825 CC="" 2826 else 2827 case $cross_compiling:$ac_tool_warned in 2828 yes:) 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2831 ac_tool_warned=yes ;; 2832 esac 2833 CC=$ac_ct_CC 2834 fi 2835 else 2836 CC="$ac_cv_prog_CC" 2837 fi 2838 2839 if test -z "$CC"; then 2840 if test -n "$ac_tool_prefix"; then 2841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2842 set dummy ${ac_tool_prefix}cc; ac_word=$2 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2844 $as_echo_n "checking for $ac_word... " >&6; } 2845 if test "${ac_cv_prog_CC+set}" = set; then : 2846 $as_echo_n "(cached) " >&6 2847 else 2848 if test -n "$CC"; then 2849 ac_cv_prog_CC="$CC" # Let the user override the test. 2850 else 2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2852 for as_dir in $PATH 2853 do 2854 IFS=$as_save_IFS 2855 test -z "$as_dir" && as_dir=. 2856 for ac_exec_ext in '' $ac_executable_extensions; do 2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2858 ac_cv_prog_CC="${ac_tool_prefix}cc" 2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2860 break 2 2861 fi 2862 done 2863 done 2864 IFS=$as_save_IFS 2865 2866 fi 2867 fi 2868 CC=$ac_cv_prog_CC 2869 if test -n "$CC"; then 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2871 $as_echo "$CC" >&6; } 2872 else 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2874 $as_echo "no" >&6; } 2875 fi 2876 2877 2878 fi 2879 fi 2880 if test -z "$CC"; then 2881 # Extract the first word of "cc", so it can be a program name with args. 2882 set dummy cc; ac_word=$2 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2884 $as_echo_n "checking for $ac_word... " >&6; } 2885 if test "${ac_cv_prog_CC+set}" = set; then : 2886 $as_echo_n "(cached) " >&6 2887 else 2888 if test -n "$CC"; then 2889 ac_cv_prog_CC="$CC" # Let the user override the test. 2890 else 2891 ac_prog_rejected=no 2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893 for as_dir in $PATH 2894 do 2895 IFS=$as_save_IFS 2896 test -z "$as_dir" && as_dir=. 2897 for ac_exec_ext in '' $ac_executable_extensions; do 2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2900 ac_prog_rejected=yes 2901 continue 2902 fi 2903 ac_cv_prog_CC="cc" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907 done 2908 done 2909 IFS=$as_save_IFS 2910 2911 if test $ac_prog_rejected = yes; then 2912 # We found a bogon in the path, so make sure we never use it. 2913 set dummy $ac_cv_prog_CC 2914 shift 2915 if test $# != 0; then 2916 # We chose a different compiler from the bogus one. 2917 # However, it has the same basename, so the bogon will be chosen 2918 # first if we set CC to just the basename; use the full file name. 2919 shift 2920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2921 fi 2922 fi 2923 fi 2924 fi 2925 CC=$ac_cv_prog_CC 2926 if test -n "$CC"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2928 $as_echo "$CC" >&6; } 2929 else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931 $as_echo "no" >&6; } 2932 fi 2933 2934 2935 fi 2936 if test -z "$CC"; then 2937 if test -n "$ac_tool_prefix"; then 2938 for ac_prog in cl.exe 2939 do 2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2943 $as_echo_n "checking for $ac_word... " >&6; } 2944 if test "${ac_cv_prog_CC+set}" = set; then : 2945 $as_echo_n "(cached) " >&6 2946 else 2947 if test -n "$CC"; then 2948 ac_cv_prog_CC="$CC" # Let the user override the test. 2949 else 2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951 for as_dir in $PATH 2952 do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961 done 2962 done 2963 IFS=$as_save_IFS 2964 2965 fi 2966 fi 2967 CC=$ac_cv_prog_CC 2968 if test -n "$CC"; then 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2970 $as_echo "$CC" >&6; } 2971 else 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2973 $as_echo "no" >&6; } 2974 fi 2975 2976 2977 test -n "$CC" && break 2978 done 2979 fi 2980 if test -z "$CC"; then 2981 ac_ct_CC=$CC 2982 for ac_prog in cl.exe 2983 do 2984 # Extract the first word of "$ac_prog", so it can be a program name with args. 2985 set dummy $ac_prog; ac_word=$2 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2987 $as_echo_n "checking for $ac_word... " >&6; } 2988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2989 $as_echo_n "(cached) " >&6 2990 else 2991 if test -n "$ac_ct_CC"; then 2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2993 else 2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2995 for as_dir in $PATH 2996 do 2997 IFS=$as_save_IFS 2998 test -z "$as_dir" && as_dir=. 2999 for ac_exec_ext in '' $ac_executable_extensions; do 3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3001 ac_cv_prog_ac_ct_CC="$ac_prog" 3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3003 break 2 3004 fi 3005 done 3006 done 3007 IFS=$as_save_IFS 3008 3009 fi 3010 fi 3011 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3012 if test -n "$ac_ct_CC"; then 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3014 $as_echo "$ac_ct_CC" >&6; } 3015 else 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3017 $as_echo "no" >&6; } 3018 fi 3019 3020 3021 test -n "$ac_ct_CC" && break 3022 done 3023 3024 if test "x$ac_ct_CC" = x; then 3025 CC="" 3026 else 3027 case $cross_compiling:$ac_tool_warned in 3028 yes:) 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3031 ac_tool_warned=yes ;; 3032 esac 3033 CC=$ac_ct_CC 3034 fi 3035 fi 3036 3037 fi 3038 3039 3040 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3042 as_fn_error "no acceptable C compiler found in \$PATH 3043 See \`config.log' for more details." "$LINENO" 5; } 3044 3045 # Provide some information about the compiler. 3046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3047 set X $ac_compile 3048 ac_compiler=$2 3049 for ac_option in --version -v -V -qversion; do 3050 { { ac_try="$ac_compiler $ac_option >&5" 3051 case "(($ac_try" in 3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3053 *) ac_try_echo=$ac_try;; 3054 esac 3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3056 $as_echo "$ac_try_echo"; } >&5 3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3058 ac_status=$? 3059 if test -s conftest.err; then 3060 sed '10a\ 3061 ... rest of stderr output deleted ... 3062 10q' conftest.err >conftest.er1 3063 cat conftest.er1 >&5 3064 rm -f conftest.er1 conftest.err 3065 fi 3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3067 test $ac_status = 0; } 3068 done 3069 3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3071 /* end confdefs.h. */ 3072 3073 int 3074 main () 3075 { 3076 3077 ; 3078 return 0; 3079 } 3080 _ACEOF 3081 ac_clean_files_save=$ac_clean_files 3082 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3083 # Try to create an executable without -o first, disregard a.out. 3084 # It will help us diagnose broken compilers, and finding out an intuition 3085 # of exeext. 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3087 $as_echo_n "checking for C compiler default output file name... " >&6; } 3088 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3089 3090 # The possible output files: 3091 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3092 3093 ac_rmfiles= 3094 for ac_file in $ac_files 3095 do 3096 case $ac_file in 3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3098 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3099 esac 3100 done 3101 rm -f $ac_rmfiles 3102 3103 if { { ac_try="$ac_link_default" 3104 case "(($ac_try" in 3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3106 *) ac_try_echo=$ac_try;; 3107 esac 3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3109 $as_echo "$ac_try_echo"; } >&5 3110 (eval "$ac_link_default") 2>&5 3111 ac_status=$? 3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3113 test $ac_status = 0; }; then : 3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3115 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3116 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3117 # so that the user can short-circuit this test for compilers unknown to 3118 # Autoconf. 3119 for ac_file in $ac_files '' 3120 do 3121 test -f "$ac_file" || continue 3122 case $ac_file in 3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3124 ;; 3125 [ab].out ) 3126 # We found the default executable, but exeext='' is most 3127 # certainly right. 3128 break;; 3129 *.* ) 3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3131 then :; else 3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3133 fi 3134 # We set ac_cv_exeext here because the later test for it is not 3135 # safe: cross compilers may not add the suffix if given an `-o' 3136 # argument, so we may need to know it at that point already. 3137 # Even if this section looks crufty: it has the advantage of 3138 # actually working. 3139 break;; 3140 * ) 3141 break;; 3142 esac 3143 done 3144 test "$ac_cv_exeext" = no && ac_cv_exeext= 3145 3146 else 3147 ac_file='' 3148 fi 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3150 $as_echo "$ac_file" >&6; } 3151 if test -z "$ac_file"; then : 3152 $as_echo "$as_me: failed program was:" >&5 3153 sed 's/^/| /' conftest.$ac_ext >&5 3154 3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3157 { as_fn_set_status 77 3158 as_fn_error "C compiler cannot create executables 3159 See \`config.log' for more details." "$LINENO" 5; }; } 3160 fi 3161 ac_exeext=$ac_cv_exeext 3162 3163 # Check that the compiler produces executables we can run. If not, either 3164 # the compiler is broken, or we cross compile. 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3166 $as_echo_n "checking whether the C compiler works... " >&6; } 3167 # If not cross compiling, check that we can run a simple program. 3168 if test "$cross_compiling" != yes; then 3169 if { ac_try='./$ac_file' 3170 { { case "(($ac_try" in 3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3172 *) ac_try_echo=$ac_try;; 3173 esac 3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3175 $as_echo "$ac_try_echo"; } >&5 3176 (eval "$ac_try") 2>&5 3177 ac_status=$? 3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3179 test $ac_status = 0; }; }; then 3180 cross_compiling=no 3181 else 3182 if test "$cross_compiling" = maybe; then 3183 cross_compiling=yes 3184 else 3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3187 as_fn_error "cannot run C compiled programs. 3188 If you meant to cross compile, use \`--host'. 3189 See \`config.log' for more details." "$LINENO" 5; } 3190 fi 3191 fi 3192 fi 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3194 $as_echo "yes" >&6; } 3195 3196 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3197 ac_clean_files=$ac_clean_files_save 3198 # Check that the compiler produces executables we can run. If not, either 3199 # the compiler is broken, or we cross compile. 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3201 $as_echo_n "checking whether we are cross compiling... " >&6; } 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3203 $as_echo "$cross_compiling" >&6; } 3204 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3206 $as_echo_n "checking for suffix of executables... " >&6; } 3207 if { { ac_try="$ac_link" 3208 case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211 esac 3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3213 $as_echo "$ac_try_echo"; } >&5 3214 (eval "$ac_link") 2>&5 3215 ac_status=$? 3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3217 test $ac_status = 0; }; then : 3218 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3219 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3220 # work properly (i.e., refer to `conftest.exe'), while it won't with 3221 # `rm'. 3222 for ac_file in conftest.exe conftest conftest.*; do 3223 test -f "$ac_file" || continue 3224 case $ac_file in 3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3227 break;; 3228 * ) break;; 3229 esac 3230 done 3231 else 3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3234 as_fn_error "cannot compute suffix of executables: cannot compile and link 3235 See \`config.log' for more details." "$LINENO" 5; } 3236 fi 3237 rm -f conftest$ac_cv_exeext 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3239 $as_echo "$ac_cv_exeext" >&6; } 3240 3241 rm -f conftest.$ac_ext 3242 EXEEXT=$ac_cv_exeext 3243 ac_exeext=$EXEEXT 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3245 $as_echo_n "checking for suffix of object files... " >&6; } 3246 if test "${ac_cv_objext+set}" = set; then : 3247 $as_echo_n "(cached) " >&6 3248 else 3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250 /* end confdefs.h. */ 3251 3252 int 3253 main () 3254 { 3255 3256 ; 3257 return 0; 3258 } 3259 _ACEOF 3260 rm -f conftest.o conftest.obj 3261 if { { ac_try="$ac_compile" 3262 case "(($ac_try" in 3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3264 *) ac_try_echo=$ac_try;; 3265 esac 3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3267 $as_echo "$ac_try_echo"; } >&5 3268 (eval "$ac_compile") 2>&5 3269 ac_status=$? 3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3271 test $ac_status = 0; }; then : 3272 for ac_file in conftest.o conftest.obj conftest.*; do 3273 test -f "$ac_file" || continue; 3274 case $ac_file in 3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3276 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3277 break;; 3278 esac 3279 done 3280 else 3281 $as_echo "$as_me: failed program was:" >&5 3282 sed 's/^/| /' conftest.$ac_ext >&5 3283 3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3286 as_fn_error "cannot compute suffix of object files: cannot compile 3287 See \`config.log' for more details." "$LINENO" 5; } 3288 fi 3289 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3290 fi 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3292 $as_echo "$ac_cv_objext" >&6; } 3293 OBJEXT=$ac_cv_objext 3294 ac_objext=$OBJEXT 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3296 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3297 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3298 $as_echo_n "(cached) " >&6 3299 else 3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3301 /* end confdefs.h. */ 3302 3303 int 3304 main () 3305 { 3306 #ifndef __GNUC__ 3307 choke me 3308 #endif 3309 3310 ; 3311 return 0; 3312 } 3313 _ACEOF 3314 if ac_fn_c_try_compile "$LINENO"; then : 3315 ac_compiler_gnu=yes 3316 else 3317 ac_compiler_gnu=no 3318 fi 3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3320 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3321 3322 fi 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3324 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3325 if test $ac_compiler_gnu = yes; then 3326 GCC=yes 3327 else 3328 GCC= 3329 fi 3330 ac_test_CFLAGS=${CFLAGS+set} 3331 ac_save_CFLAGS=$CFLAGS 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3333 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3334 if test "${ac_cv_prog_cc_g+set}" = set; then : 3335 $as_echo_n "(cached) " >&6 3336 else 3337 ac_save_c_werror_flag=$ac_c_werror_flag 3338 ac_c_werror_flag=yes 3339 ac_cv_prog_cc_g=no 3340 CFLAGS="-g" 3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3342 /* end confdefs.h. */ 3343 3344 int 3345 main () 3346 { 3347 3348 ; 3349 return 0; 3350 } 3351 _ACEOF 3352 if ac_fn_c_try_compile "$LINENO"; then : 3353 ac_cv_prog_cc_g=yes 3354 else 3355 CFLAGS="" 3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3357 /* end confdefs.h. */ 3358 3359 int 3360 main () 3361 { 3362 3363 ; 3364 return 0; 3365 } 3366 _ACEOF 3367 if ac_fn_c_try_compile "$LINENO"; then : 3368 3369 else 3370 ac_c_werror_flag=$ac_save_c_werror_flag 3371 CFLAGS="-g" 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3373 /* end confdefs.h. */ 3374 3375 int 3376 main () 3377 { 3378 3379 ; 3380 return 0; 3381 } 3382 _ACEOF 3383 if ac_fn_c_try_compile "$LINENO"; then : 3384 ac_cv_prog_cc_g=yes 3385 fi 3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3387 fi 3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3389 fi 3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3391 ac_c_werror_flag=$ac_save_c_werror_flag 3392 fi 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3394 $as_echo "$ac_cv_prog_cc_g" >&6; } 3395 if test "$ac_test_CFLAGS" = set; then 3396 CFLAGS=$ac_save_CFLAGS 3397 elif test $ac_cv_prog_cc_g = yes; then 3398 if test "$GCC" = yes; then 3399 CFLAGS="-g -O2" 3400 else 3401 CFLAGS="-g" 3402 fi 3403 else 3404 if test "$GCC" = yes; then 3405 CFLAGS="-O2" 3406 else 3407 CFLAGS= 3408 fi 3409 fi 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3411 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3412 if test "${ac_cv_prog_cc_c89+set}" = set; then : 3413 $as_echo_n "(cached) " >&6 3414 else 3415 ac_cv_prog_cc_c89=no 3416 ac_save_CC=$CC 3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3418 /* end confdefs.h. */ 3419 #include <stdarg.h> 3420 #include <stdio.h> 3421 #include <sys/types.h> 3422 #include <sys/stat.h> 3423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3424 struct buf { int x; }; 3425 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3426 static char *e (p, i) 3427 char **p; 3428 int i; 3429 { 3430 return p[i]; 3431 } 3432 static char *f (char * (*g) (char **, int), char **p, ...) 3433 { 3434 char *s; 3435 va_list v; 3436 va_start (v,p); 3437 s = g (p, va_arg (v,int)); 3438 va_end (v); 3439 return s; 3440 } 3441 3442 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3443 function prototypes and stuff, but not '\xHH' hex character constants. 3444 These don't provoke an error unfortunately, instead are silently treated 3445 as 'x'. The following induces an error, until -std is added to get 3446 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3447 array size at least. It's necessary to write '\x00'==0 to get something 3448 that's true only with -std. */ 3449 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3450 3451 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3452 inside strings and character constants. */ 3453 #define FOO(x) 'x' 3454 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3455 3456 int test (int i, double x); 3457 struct s1 {int (*f) (int a);}; 3458 struct s2 {int (*f) (double a);}; 3459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3460 int argc; 3461 char **argv; 3462 int 3463 main () 3464 { 3465 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3466 ; 3467 return 0; 3468 } 3469 _ACEOF 3470 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3471 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3472 do 3473 CC="$ac_save_CC $ac_arg" 3474 if ac_fn_c_try_compile "$LINENO"; then : 3475 ac_cv_prog_cc_c89=$ac_arg 3476 fi 3477 rm -f core conftest.err conftest.$ac_objext 3478 test "x$ac_cv_prog_cc_c89" != "xno" && break 3479 done 3480 rm -f conftest.$ac_ext 3481 CC=$ac_save_CC 3482 3483 fi 3484 # AC_CACHE_VAL 3485 case "x$ac_cv_prog_cc_c89" in 3486 x) 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3488 $as_echo "none needed" >&6; } ;; 3489 xno) 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3491 $as_echo "unsupported" >&6; } ;; 3492 *) 3493 CC="$CC $ac_cv_prog_cc_c89" 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3495 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3496 esac 3497 if test "x$ac_cv_prog_cc_c89" != xno; then : 3498 3499 fi 3500 3501 ac_ext=c 3502 ac_cpp='$CPP $CPPFLAGS' 3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3506 3507 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3509 $as_echo_n "checking for library containing strerror... " >&6; } 3510 if test "${ac_cv_search_strerror+set}" = set; then : 3511 $as_echo_n "(cached) " >&6 3512 else 3513 ac_func_search_save_LIBS=$LIBS 3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3515 /* end confdefs.h. */ 3516 3517 /* Override any GCC internal prototype to avoid an error. 3518 Use char because int might match the return type of a GCC 3519 builtin and then its argument prototype would still apply. */ 3520 #ifdef __cplusplus 3521 extern "C" 3522 #endif 3523 char strerror (); 3524 int 3525 main () 3526 { 3527 return strerror (); 3528 ; 3529 return 0; 3530 } 3531 _ACEOF 3532 for ac_lib in '' cposix; do 3533 if test -z "$ac_lib"; then 3534 ac_res="none required" 3535 else 3536 ac_res=-l$ac_lib 3537 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3538 fi 3539 if ac_fn_c_try_link "$LINENO"; then : 3540 ac_cv_search_strerror=$ac_res 3541 fi 3542 rm -f core conftest.err conftest.$ac_objext \ 3543 conftest$ac_exeext 3544 if test "${ac_cv_search_strerror+set}" = set; then : 3545 break 3546 fi 3547 done 3548 if test "${ac_cv_search_strerror+set}" = set; then : 3549 3550 else 3551 ac_cv_search_strerror=no 3552 fi 3553 rm conftest.$ac_ext 3554 LIBS=$ac_func_search_save_LIBS 3555 fi 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3557 $as_echo "$ac_cv_search_strerror" >&6; } 3558 ac_res=$ac_cv_search_strerror 3559 if test "$ac_res" != no; then : 3560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3561 3562 fi 3563 3564 3565 am__api_version='1.11' 3566 3567 # Find a good install program. We prefer a C program (faster), 3568 # so one script is as good as another. But avoid the broken or 3569 # incompatible versions: 3570 # SysV /etc/install, /usr/sbin/install 3571 # SunOS /usr/etc/install 3572 # IRIX /sbin/install 3573 # AIX /bin/install 3574 # AmigaOS /C/install, which installs bootblocks on floppy discs 3575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3578 # OS/2's system install, which has a completely different semantic 3579 # ./install, which can be erroneously created by make from ./install.sh. 3580 # Reject install programs that cannot install multiple files. 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3582 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3583 if test -z "$INSTALL"; then 3584 if test "${ac_cv_path_install+set}" = set; then : 3585 $as_echo_n "(cached) " >&6 3586 else 3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3588 for as_dir in $PATH 3589 do 3590 IFS=$as_save_IFS 3591 test -z "$as_dir" && as_dir=. 3592 # Account for people who put trailing slashes in PATH elements. 3593 case $as_dir/ in #(( 3594 ./ | .// | /[cC]/* | \ 3595 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3596 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3597 /usr/ucb/* ) ;; 3598 *) 3599 # OSF1 and SCO ODT 3.0 have their own names for install. 3600 # Don't use installbsd from OSF since it installs stuff as root 3601 # by default. 3602 for ac_prog in ginstall scoinst install; do 3603 for ac_exec_ext in '' $ac_executable_extensions; do 3604 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3605 if test $ac_prog = install && 3606 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3607 # AIX install. It has an incompatible calling convention. 3608 : 3609 elif test $ac_prog = install && 3610 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3611 # program-specific install script used by HP pwplus--don't use. 3612 : 3613 else 3614 rm -rf conftest.one conftest.two conftest.dir 3615 echo one > conftest.one 3616 echo two > conftest.two 3617 mkdir conftest.dir 3618 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3619 test -s conftest.one && test -s conftest.two && 3620 test -s conftest.dir/conftest.one && 3621 test -s conftest.dir/conftest.two 3622 then 3623 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3624 break 3 3625 fi 3626 fi 3627 fi 3628 done 3629 done 3630 ;; 3631 esac 3632 3633 done 3634 IFS=$as_save_IFS 3635 3636 rm -rf conftest.one conftest.two conftest.dir 3637 3638 fi 3639 if test "${ac_cv_path_install+set}" = set; then 3640 INSTALL=$ac_cv_path_install 3641 else 3642 # As a last resort, use the slow shell script. Don't cache a 3643 # value for INSTALL within a source directory, because that will 3644 # break other packages using the cache if that directory is 3645 # removed, or if the value is a relative name. 3646 INSTALL=$ac_install_sh 3647 fi 3648 fi 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3650 $as_echo "$INSTALL" >&6; } 3651 3652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3653 # It thinks the first close brace ends the variable substitution. 3654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3655 3656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3657 3658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3659 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3661 $as_echo_n "checking whether build environment is sane... " >&6; } 3662 # Just in case 3663 sleep 1 3664 echo timestamp > conftest.file 3665 # Reject unsafe characters in $srcdir or the absolute working directory 3666 # name. Accept space and tab only in the latter. 3667 am_lf=' 3668 ' 3669 case `pwd` in 3670 *[\\\"\#\$\&\'\`$am_lf]*) 3671 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 3672 esac 3673 case $srcdir in 3674 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3675 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3676 esac 3677 3678 # Do `set' in a subshell so we don't clobber the current shell's 3679 # arguments. Must try -L first in case configure is actually a 3680 # symlink; some systems play weird games with the mod time of symlinks 3681 # (eg FreeBSD returns the mod time of the symlink's containing 3682 # directory). 3683 if ( 3684 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3685 if test "$*" = "X"; then 3686 # -L didn't work. 3687 set X `ls -t "$srcdir/configure" conftest.file` 3688 fi 3689 rm -f conftest.file 3690 if test "$*" != "X $srcdir/configure conftest.file" \ 3691 && test "$*" != "X conftest.file $srcdir/configure"; then 3692 3693 # If neither matched, then we have a broken ls. This can happen 3694 # if, for instance, CONFIG_SHELL is bash and it inherits a 3695 # broken ls alias from the environment. This has actually 3696 # happened. Such a system could not be considered "sane". 3697 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3698 alias in your environment" "$LINENO" 5 3699 fi 3700 3701 test "$2" = conftest.file 3702 ) 3703 then 3704 # Ok. 3705 : 3706 else 3707 as_fn_error "newly created file is older than distributed files! 3708 Check your system clock" "$LINENO" 5 3709 fi 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3711 $as_echo "yes" >&6; } 3712 test "$program_prefix" != NONE && 3713 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3714 # Use a double $ so make ignores it. 3715 test "$program_suffix" != NONE && 3716 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3717 # Double any \ or $. 3718 # By default was `s,x,x', remove it if useless. 3719 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3720 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3721 3722 # expand $ac_aux_dir to an absolute path 3723 am_aux_dir=`cd $ac_aux_dir && pwd` 3724 3725 if test x"${MISSING+set}" != xset; then 3726 case $am_aux_dir in 3727 *\ * | *\ *) 3728 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3729 *) 3730 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3731 esac 3732 fi 3733 # Use eval to expand $SHELL 3734 if eval "$MISSING --run true"; then 3735 am_missing_run="$MISSING --run " 3736 else 3737 am_missing_run= 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3739 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3740 fi 3741 3742 if test x"${install_sh}" != xset; then 3743 case $am_aux_dir in 3744 *\ * | *\ *) 3745 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3746 *) 3747 install_sh="\${SHELL} $am_aux_dir/install-sh" 3748 esac 3749 fi 3750 3751 # Installed binaries are usually stripped using `strip' when the user 3752 # run `make install-strip'. However `strip' might not be the right 3753 # tool to use in cross-compilation environments, therefore Automake 3754 # will honor the `STRIP' environment variable to overrule this program. 3755 if test "$cross_compiling" != no; then 3756 if test -n "$ac_tool_prefix"; then 3757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3758 set dummy ${ac_tool_prefix}strip; ac_word=$2 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3760 $as_echo_n "checking for $ac_word... " >&6; } 3761 if test "${ac_cv_prog_STRIP+set}" = set; then : 3762 $as_echo_n "(cached) " >&6 3763 else 3764 if test -n "$STRIP"; then 3765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3766 else 3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3768 for as_dir in $PATH 3769 do 3770 IFS=$as_save_IFS 3771 test -z "$as_dir" && as_dir=. 3772 for ac_exec_ext in '' $ac_executable_extensions; do 3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3774 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3776 break 2 3777 fi 3778 done 3779 done 3780 IFS=$as_save_IFS 3781 3782 fi 3783 fi 3784 STRIP=$ac_cv_prog_STRIP 3785 if test -n "$STRIP"; then 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3787 $as_echo "$STRIP" >&6; } 3788 else 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3790 $as_echo "no" >&6; } 3791 fi 3792 3793 3794 fi 3795 if test -z "$ac_cv_prog_STRIP"; then 3796 ac_ct_STRIP=$STRIP 3797 # Extract the first word of "strip", so it can be a program name with args. 3798 set dummy strip; ac_word=$2 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3800 $as_echo_n "checking for $ac_word... " >&6; } 3801 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3802 $as_echo_n "(cached) " >&6 3803 else 3804 if test -n "$ac_ct_STRIP"; then 3805 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3806 else 3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3808 for as_dir in $PATH 3809 do 3810 IFS=$as_save_IFS 3811 test -z "$as_dir" && as_dir=. 3812 for ac_exec_ext in '' $ac_executable_extensions; do 3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3814 ac_cv_prog_ac_ct_STRIP="strip" 3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3816 break 2 3817 fi 3818 done 3819 done 3820 IFS=$as_save_IFS 3821 3822 fi 3823 fi 3824 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3825 if test -n "$ac_ct_STRIP"; then 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3827 $as_echo "$ac_ct_STRIP" >&6; } 3828 else 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3830 $as_echo "no" >&6; } 3831 fi 3832 3833 if test "x$ac_ct_STRIP" = x; then 3834 STRIP=":" 3835 else 3836 case $cross_compiling:$ac_tool_warned in 3837 yes:) 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3840 ac_tool_warned=yes ;; 3841 esac 3842 STRIP=$ac_ct_STRIP 3843 fi 3844 else 3845 STRIP="$ac_cv_prog_STRIP" 3846 fi 3847 3848 fi 3849 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3850 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3852 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3853 if test -z "$MKDIR_P"; then 3854 if test "${ac_cv_path_mkdir+set}" = set; then : 3855 $as_echo_n "(cached) " >&6 3856 else 3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3858 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3859 do 3860 IFS=$as_save_IFS 3861 test -z "$as_dir" && as_dir=. 3862 for ac_prog in mkdir gmkdir; do 3863 for ac_exec_ext in '' $ac_executable_extensions; do 3864 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3865 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3866 'mkdir (GNU coreutils) '* | \ 3867 'mkdir (coreutils) '* | \ 3868 'mkdir (fileutils) '4.1*) 3869 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3870 break 3;; 3871 esac 3872 done 3873 done 3874 done 3875 IFS=$as_save_IFS 3876 3877 fi 3878 3879 if test "${ac_cv_path_mkdir+set}" = set; then 3880 MKDIR_P="$ac_cv_path_mkdir -p" 3881 else 3882 # As a last resort, use the slow shell script. Don't cache a 3883 # value for MKDIR_P within a source directory, because that will 3884 # break other packages using the cache if that directory is 3885 # removed, or if the value is a relative name. 3886 test -d ./--version && rmdir ./--version 3887 MKDIR_P="$ac_install_sh -d" 3888 fi 3889 fi 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3891 $as_echo "$MKDIR_P" >&6; } 3892 3893 mkdir_p="$MKDIR_P" 3894 case $mkdir_p in 3895 [\\/$]* | ?:[\\/]*) ;; 3896 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3897 esac 3898 3899 for ac_prog in gawk mawk nawk awk 3900 do 3901 # Extract the first word of "$ac_prog", so it can be a program name with args. 3902 set dummy $ac_prog; ac_word=$2 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3904 $as_echo_n "checking for $ac_word... " >&6; } 3905 if test "${ac_cv_prog_AWK+set}" = set; then : 3906 $as_echo_n "(cached) " >&6 3907 else 3908 if test -n "$AWK"; then 3909 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3910 else 3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3912 for as_dir in $PATH 3913 do 3914 IFS=$as_save_IFS 3915 test -z "$as_dir" && as_dir=. 3916 for ac_exec_ext in '' $ac_executable_extensions; do 3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3918 ac_cv_prog_AWK="$ac_prog" 3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3920 break 2 3921 fi 3922 done 3923 done 3924 IFS=$as_save_IFS 3925 3926 fi 3927 fi 3928 AWK=$ac_cv_prog_AWK 3929 if test -n "$AWK"; then 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3931 $as_echo "$AWK" >&6; } 3932 else 3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3934 $as_echo "no" >&6; } 3935 fi 3936 3937 3938 test -n "$AWK" && break 3939 done 3940 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3942 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3943 set x ${MAKE-make} 3944 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3945 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3946 $as_echo_n "(cached) " >&6 3947 else 3948 cat >conftest.make <<\_ACEOF 3949 SHELL = /bin/sh 3950 all: 3951 @echo '@@@%%%=$(MAKE)=@@@%%%' 3952 _ACEOF 3953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3954 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3955 *@@@%%%=?*=@@@%%%*) 3956 eval ac_cv_prog_make_${ac_make}_set=yes;; 3957 *) 3958 eval ac_cv_prog_make_${ac_make}_set=no;; 3959 esac 3960 rm -f conftest.make 3961 fi 3962 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3964 $as_echo "yes" >&6; } 3965 SET_MAKE= 3966 else 3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3968 $as_echo "no" >&6; } 3969 SET_MAKE="MAKE=${MAKE-make}" 3970 fi 3971 3972 rm -rf .tst 2>/dev/null 3973 mkdir .tst 2>/dev/null 3974 if test -d .tst; then 3975 am__leading_dot=. 3976 else 3977 am__leading_dot=_ 3978 fi 3979 rmdir .tst 2>/dev/null 3980 3981 DEPDIR="${am__leading_dot}deps" 3982 3983 ac_config_commands="$ac_config_commands depfiles" 3984 3985 3986 am_make=${MAKE-make} 3987 cat > confinc << 'END' 3988 am__doit: 3989 @echo this is the am__doit target 3990 .PHONY: am__doit 3991 END 3992 # If we don't find an include directive, just comment out the code. 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3994 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3995 am__include="#" 3996 am__quote= 3997 _am_result=none 3998 # First try GNU make style include. 3999 echo "include confinc" > confmf 4000 # Ignore all kinds of additional output from `make'. 4001 case `$am_make -s -f confmf 2> /dev/null` in #( 4002 *the\ am__doit\ target*) 4003 am__include=include 4004 am__quote= 4005 _am_result=GNU 4006 ;; 4007 esac 4008 # Now try BSD make style include. 4009 if test "$am__include" = "#"; then 4010 echo '.include "confinc"' > confmf 4011 case `$am_make -s -f confmf 2> /dev/null` in #( 4012 *the\ am__doit\ target*) 4013 am__include=.include 4014 am__quote="\"" 4015 _am_result=BSD 4016 ;; 4017 esac 4018 fi 4019 4020 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4022 $as_echo "$_am_result" >&6; } 4023 rm -f confinc confmf 4024 4025 # Check whether --enable-dependency-tracking was given. 4026 if test "${enable_dependency_tracking+set}" = set; then : 4027 enableval=$enable_dependency_tracking; 4028 fi 4029 4030 if test "x$enable_dependency_tracking" != xno; then 4031 am_depcomp="$ac_aux_dir/depcomp" 4032 AMDEPBACKSLASH='\' 4033 fi 4034 if test "x$enable_dependency_tracking" != xno; then 4035 AMDEP_TRUE= 4036 AMDEP_FALSE='#' 4037 else 4038 AMDEP_TRUE='#' 4039 AMDEP_FALSE= 4040 fi 4041 4042 4043 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4044 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4045 # is not polluted with repeated "-I." 4046 am__isrc=' -I$(srcdir)' 4047 # test to see if srcdir already configured 4048 if test -f $srcdir/config.status; then 4049 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4050 fi 4051 fi 4052 4053 # test whether we have cygpath 4054 if test -z "$CYGPATH_W"; then 4055 if (cygpath --version) >/dev/null 2>/dev/null; then 4056 CYGPATH_W='cygpath -w' 4057 else 4058 CYGPATH_W=echo 4059 fi 4060 fi 4061 4062 4063 # Define the identity of the package. 4064 PACKAGE='ld' 4065 VERSION='2.25.51' 4066 4067 4068 cat >>confdefs.h <<_ACEOF 4069 #define PACKAGE "$PACKAGE" 4070 _ACEOF 4071 4072 4073 cat >>confdefs.h <<_ACEOF 4074 #define VERSION "$VERSION" 4075 _ACEOF 4076 4077 # Some tools Automake needs. 4078 4079 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4080 4081 4082 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4083 4084 4085 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4086 4087 4088 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4089 4090 4091 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4092 4093 # We need awk for the "check" target. The system "awk" is bad on 4094 # some platforms. 4095 # Always define AMTAR for backward compatibility. 4096 4097 AMTAR=${AMTAR-"${am_missing_run}tar"} 4098 4099 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4100 4101 4102 4103 4104 depcc="$CC" am_compiler_list= 4105 4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4107 $as_echo_n "checking dependency style of $depcc... " >&6; } 4108 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4109 $as_echo_n "(cached) " >&6 4110 else 4111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4112 # We make a subdir and do the tests there. Otherwise we can end up 4113 # making bogus files that we don't know about and never remove. For 4114 # instance it was reported that on HP-UX the gcc test will end up 4115 # making a dummy file named `D' -- because `-MD' means `put the output 4116 # in D'. 4117 mkdir conftest.dir 4118 # Copy depcomp to subdir because otherwise we won't find it if we're 4119 # using a relative directory. 4120 cp "$am_depcomp" conftest.dir 4121 cd conftest.dir 4122 # We will build objects and dependencies in a subdirectory because 4123 # it helps to detect inapplicable dependency modes. For instance 4124 # both Tru64's cc and ICC support -MD to output dependencies as a 4125 # side effect of compilation, but ICC will put the dependencies in 4126 # the current directory while Tru64 will put them in the object 4127 # directory. 4128 mkdir sub 4129 4130 am_cv_CC_dependencies_compiler_type=none 4131 if test "$am_compiler_list" = ""; then 4132 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4133 fi 4134 am__universal=false 4135 case " $depcc " in #( 4136 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4137 esac 4138 4139 for depmode in $am_compiler_list; do 4140 # Setup a source with many dependencies, because some compilers 4141 # like to wrap large dependency lists on column 80 (with \), and 4142 # we should not choose a depcomp mode which is confused by this. 4143 # 4144 # We need to recreate these files for each test, as the compiler may 4145 # overwrite some of them when testing with obscure command lines. 4146 # This happens at least with the AIX C compiler. 4147 : > sub/conftest.c 4148 for i in 1 2 3 4 5 6; do 4149 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4150 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4151 # Solaris 8's {/usr,}/bin/sh. 4152 touch sub/conftst$i.h 4153 done 4154 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4155 4156 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4157 # mode. It turns out that the SunPro C++ compiler does not properly 4158 # handle `-M -o', and we need to detect this. Also, some Intel 4159 # versions had trouble with output in subdirs 4160 am__obj=sub/conftest.${OBJEXT-o} 4161 am__minus_obj="-o $am__obj" 4162 case $depmode in 4163 gcc) 4164 # This depmode causes a compiler race in universal mode. 4165 test "$am__universal" = false || continue 4166 ;; 4167 nosideeffect) 4168 # after this tag, mechanisms are not by side-effect, so they'll 4169 # only be used when explicitly requested 4170 if test "x$enable_dependency_tracking" = xyes; then 4171 continue 4172 else 4173 break 4174 fi 4175 ;; 4176 msvisualcpp | msvcmsys) 4177 # This compiler won't grok `-c -o', but also, the minuso test has 4178 # not run yet. These depmodes are late enough in the game, and 4179 # so weak that their functioning should not be impacted. 4180 am__obj=conftest.${OBJEXT-o} 4181 am__minus_obj= 4182 ;; 4183 none) break ;; 4184 esac 4185 if depmode=$depmode \ 4186 source=sub/conftest.c object=$am__obj \ 4187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4188 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4189 >/dev/null 2>conftest.err && 4190 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4191 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4192 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4193 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4194 # icc doesn't choke on unknown options, it will just issue warnings 4195 # or remarks (even with -Werror). So we grep stderr for any message 4196 # that says an option was ignored or not supported. 4197 # When given -MP, icc 7.0 and 7.1 complain thusly: 4198 # icc: Command line warning: ignoring option '-M'; no argument required 4199 # The diagnosis changed in icc 8.0: 4200 # icc: Command line remark: option '-MP' not supported 4201 if (grep 'ignoring option' conftest.err || 4202 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4203 am_cv_CC_dependencies_compiler_type=$depmode 4204 break 4205 fi 4206 fi 4207 done 4208 4209 cd .. 4210 rm -rf conftest.dir 4211 else 4212 am_cv_CC_dependencies_compiler_type=none 4213 fi 4214 4215 fi 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4217 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4218 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4219 4220 if 4221 test "x$enable_dependency_tracking" != xno \ 4222 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4223 am__fastdepCC_TRUE= 4224 am__fastdepCC_FALSE='#' 4225 else 4226 am__fastdepCC_TRUE='#' 4227 am__fastdepCC_FALSE= 4228 fi 4229 4230 4231 4232 4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4234 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4235 # Check whether --enable-maintainer-mode was given. 4236 if test "${enable_maintainer_mode+set}" = set; then : 4237 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4238 else 4239 USE_MAINTAINER_MODE=no 4240 fi 4241 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4243 $as_echo "$USE_MAINTAINER_MODE" >&6; } 4244 if test $USE_MAINTAINER_MODE = yes; then 4245 MAINTAINER_MODE_TRUE= 4246 MAINTAINER_MODE_FALSE='#' 4247 else 4248 MAINTAINER_MODE_TRUE='#' 4249 MAINTAINER_MODE_FALSE= 4250 fi 4251 4252 MAINT=$MAINTAINER_MODE_TRUE 4253 4254 4255 4256 ac_ext=c 4257 ac_cpp='$CPP $CPPFLAGS' 4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4261 if test -n "$ac_tool_prefix"; then 4262 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4263 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4265 $as_echo_n "checking for $ac_word... " >&6; } 4266 if test "${ac_cv_prog_CC+set}" = set; then : 4267 $as_echo_n "(cached) " >&6 4268 else 4269 if test -n "$CC"; then 4270 ac_cv_prog_CC="$CC" # Let the user override the test. 4271 else 4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4273 for as_dir in $PATH 4274 do 4275 IFS=$as_save_IFS 4276 test -z "$as_dir" && as_dir=. 4277 for ac_exec_ext in '' $ac_executable_extensions; do 4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4279 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4281 break 2 4282 fi 4283 done 4284 done 4285 IFS=$as_save_IFS 4286 4287 fi 4288 fi 4289 CC=$ac_cv_prog_CC 4290 if test -n "$CC"; then 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4292 $as_echo "$CC" >&6; } 4293 else 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4295 $as_echo "no" >&6; } 4296 fi 4297 4298 4299 fi 4300 if test -z "$ac_cv_prog_CC"; then 4301 ac_ct_CC=$CC 4302 # Extract the first word of "gcc", so it can be a program name with args. 4303 set dummy gcc; ac_word=$2 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4305 $as_echo_n "checking for $ac_word... " >&6; } 4306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4307 $as_echo_n "(cached) " >&6 4308 else 4309 if test -n "$ac_ct_CC"; then 4310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4311 else 4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4313 for as_dir in $PATH 4314 do 4315 IFS=$as_save_IFS 4316 test -z "$as_dir" && as_dir=. 4317 for ac_exec_ext in '' $ac_executable_extensions; do 4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4319 ac_cv_prog_ac_ct_CC="gcc" 4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4321 break 2 4322 fi 4323 done 4324 done 4325 IFS=$as_save_IFS 4326 4327 fi 4328 fi 4329 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4330 if test -n "$ac_ct_CC"; then 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4332 $as_echo "$ac_ct_CC" >&6; } 4333 else 4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4335 $as_echo "no" >&6; } 4336 fi 4337 4338 if test "x$ac_ct_CC" = x; then 4339 CC="" 4340 else 4341 case $cross_compiling:$ac_tool_warned in 4342 yes:) 4343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4345 ac_tool_warned=yes ;; 4346 esac 4347 CC=$ac_ct_CC 4348 fi 4349 else 4350 CC="$ac_cv_prog_CC" 4351 fi 4352 4353 if test -z "$CC"; then 4354 if test -n "$ac_tool_prefix"; then 4355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4356 set dummy ${ac_tool_prefix}cc; ac_word=$2 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4358 $as_echo_n "checking for $ac_word... " >&6; } 4359 if test "${ac_cv_prog_CC+set}" = set; then : 4360 $as_echo_n "(cached) " >&6 4361 else 4362 if test -n "$CC"; then 4363 ac_cv_prog_CC="$CC" # Let the user override the test. 4364 else 4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4366 for as_dir in $PATH 4367 do 4368 IFS=$as_save_IFS 4369 test -z "$as_dir" && as_dir=. 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4372 ac_cv_prog_CC="${ac_tool_prefix}cc" 4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4374 break 2 4375 fi 4376 done 4377 done 4378 IFS=$as_save_IFS 4379 4380 fi 4381 fi 4382 CC=$ac_cv_prog_CC 4383 if test -n "$CC"; then 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4385 $as_echo "$CC" >&6; } 4386 else 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4388 $as_echo "no" >&6; } 4389 fi 4390 4391 4392 fi 4393 fi 4394 if test -z "$CC"; then 4395 # Extract the first word of "cc", so it can be a program name with args. 4396 set dummy cc; ac_word=$2 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4398 $as_echo_n "checking for $ac_word... " >&6; } 4399 if test "${ac_cv_prog_CC+set}" = set; then : 4400 $as_echo_n "(cached) " >&6 4401 else 4402 if test -n "$CC"; then 4403 ac_cv_prog_CC="$CC" # Let the user override the test. 4404 else 4405 ac_prog_rejected=no 4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407 for as_dir in $PATH 4408 do 4409 IFS=$as_save_IFS 4410 test -z "$as_dir" && as_dir=. 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4414 ac_prog_rejected=yes 4415 continue 4416 fi 4417 ac_cv_prog_CC="cc" 4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4419 break 2 4420 fi 4421 done 4422 done 4423 IFS=$as_save_IFS 4424 4425 if test $ac_prog_rejected = yes; then 4426 # We found a bogon in the path, so make sure we never use it. 4427 set dummy $ac_cv_prog_CC 4428 shift 4429 if test $# != 0; then 4430 # We chose a different compiler from the bogus one. 4431 # However, it has the same basename, so the bogon will be chosen 4432 # first if we set CC to just the basename; use the full file name. 4433 shift 4434 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4435 fi 4436 fi 4437 fi 4438 fi 4439 CC=$ac_cv_prog_CC 4440 if test -n "$CC"; then 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4442 $as_echo "$CC" >&6; } 4443 else 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4445 $as_echo "no" >&6; } 4446 fi 4447 4448 4449 fi 4450 if test -z "$CC"; then 4451 if test -n "$ac_tool_prefix"; then 4452 for ac_prog in cl.exe 4453 do 4454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4457 $as_echo_n "checking for $ac_word... " >&6; } 4458 if test "${ac_cv_prog_CC+set}" = set; then : 4459 $as_echo_n "(cached) " >&6 4460 else 4461 if test -n "$CC"; then 4462 ac_cv_prog_CC="$CC" # Let the user override the test. 4463 else 4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4465 for as_dir in $PATH 4466 do 4467 IFS=$as_save_IFS 4468 test -z "$as_dir" && as_dir=. 4469 for ac_exec_ext in '' $ac_executable_extensions; do 4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4471 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4473 break 2 4474 fi 4475 done 4476 done 4477 IFS=$as_save_IFS 4478 4479 fi 4480 fi 4481 CC=$ac_cv_prog_CC 4482 if test -n "$CC"; then 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4484 $as_echo "$CC" >&6; } 4485 else 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4487 $as_echo "no" >&6; } 4488 fi 4489 4490 4491 test -n "$CC" && break 4492 done 4493 fi 4494 if test -z "$CC"; then 4495 ac_ct_CC=$CC 4496 for ac_prog in cl.exe 4497 do 4498 # Extract the first word of "$ac_prog", so it can be a program name with args. 4499 set dummy $ac_prog; ac_word=$2 4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4501 $as_echo_n "checking for $ac_word... " >&6; } 4502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4503 $as_echo_n "(cached) " >&6 4504 else 4505 if test -n "$ac_ct_CC"; then 4506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4507 else 4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4509 for as_dir in $PATH 4510 do 4511 IFS=$as_save_IFS 4512 test -z "$as_dir" && as_dir=. 4513 for ac_exec_ext in '' $ac_executable_extensions; do 4514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4515 ac_cv_prog_ac_ct_CC="$ac_prog" 4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4517 break 2 4518 fi 4519 done 4520 done 4521 IFS=$as_save_IFS 4522 4523 fi 4524 fi 4525 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4526 if test -n "$ac_ct_CC"; then 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4528 $as_echo "$ac_ct_CC" >&6; } 4529 else 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4531 $as_echo "no" >&6; } 4532 fi 4533 4534 4535 test -n "$ac_ct_CC" && break 4536 done 4537 4538 if test "x$ac_ct_CC" = x; then 4539 CC="" 4540 else 4541 case $cross_compiling:$ac_tool_warned in 4542 yes:) 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4545 ac_tool_warned=yes ;; 4546 esac 4547 CC=$ac_ct_CC 4548 fi 4549 fi 4550 4551 fi 4552 4553 4554 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4556 as_fn_error "no acceptable C compiler found in \$PATH 4557 See \`config.log' for more details." "$LINENO" 5; } 4558 4559 # Provide some information about the compiler. 4560 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4561 set X $ac_compile 4562 ac_compiler=$2 4563 for ac_option in --version -v -V -qversion; do 4564 { { ac_try="$ac_compiler $ac_option >&5" 4565 case "(($ac_try" in 4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4567 *) ac_try_echo=$ac_try;; 4568 esac 4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4570 $as_echo "$ac_try_echo"; } >&5 4571 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4572 ac_status=$? 4573 if test -s conftest.err; then 4574 sed '10a\ 4575 ... rest of stderr output deleted ... 4576 10q' conftest.err >conftest.er1 4577 cat conftest.er1 >&5 4578 rm -f conftest.er1 conftest.err 4579 fi 4580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4581 test $ac_status = 0; } 4582 done 4583 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4585 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4586 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4587 $as_echo_n "(cached) " >&6 4588 else 4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4590 /* end confdefs.h. */ 4591 4592 int 4593 main () 4594 { 4595 #ifndef __GNUC__ 4596 choke me 4597 #endif 4598 4599 ; 4600 return 0; 4601 } 4602 _ACEOF 4603 if ac_fn_c_try_compile "$LINENO"; then : 4604 ac_compiler_gnu=yes 4605 else 4606 ac_compiler_gnu=no 4607 fi 4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4609 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4610 4611 fi 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4613 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4614 if test $ac_compiler_gnu = yes; then 4615 GCC=yes 4616 else 4617 GCC= 4618 fi 4619 ac_test_CFLAGS=${CFLAGS+set} 4620 ac_save_CFLAGS=$CFLAGS 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4622 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4623 if test "${ac_cv_prog_cc_g+set}" = set; then : 4624 $as_echo_n "(cached) " >&6 4625 else 4626 ac_save_c_werror_flag=$ac_c_werror_flag 4627 ac_c_werror_flag=yes 4628 ac_cv_prog_cc_g=no 4629 CFLAGS="-g" 4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631 /* end confdefs.h. */ 4632 4633 int 4634 main () 4635 { 4636 4637 ; 4638 return 0; 4639 } 4640 _ACEOF 4641 if ac_fn_c_try_compile "$LINENO"; then : 4642 ac_cv_prog_cc_g=yes 4643 else 4644 CFLAGS="" 4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4646 /* end confdefs.h. */ 4647 4648 int 4649 main () 4650 { 4651 4652 ; 4653 return 0; 4654 } 4655 _ACEOF 4656 if ac_fn_c_try_compile "$LINENO"; then : 4657 4658 else 4659 ac_c_werror_flag=$ac_save_c_werror_flag 4660 CFLAGS="-g" 4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4662 /* end confdefs.h. */ 4663 4664 int 4665 main () 4666 { 4667 4668 ; 4669 return 0; 4670 } 4671 _ACEOF 4672 if ac_fn_c_try_compile "$LINENO"; then : 4673 ac_cv_prog_cc_g=yes 4674 fi 4675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4676 fi 4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4678 fi 4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4680 ac_c_werror_flag=$ac_save_c_werror_flag 4681 fi 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4683 $as_echo "$ac_cv_prog_cc_g" >&6; } 4684 if test "$ac_test_CFLAGS" = set; then 4685 CFLAGS=$ac_save_CFLAGS 4686 elif test $ac_cv_prog_cc_g = yes; then 4687 if test "$GCC" = yes; then 4688 CFLAGS="-g -O2" 4689 else 4690 CFLAGS="-g" 4691 fi 4692 else 4693 if test "$GCC" = yes; then 4694 CFLAGS="-O2" 4695 else 4696 CFLAGS= 4697 fi 4698 fi 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4700 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4701 if test "${ac_cv_prog_cc_c89+set}" = set; then : 4702 $as_echo_n "(cached) " >&6 4703 else 4704 ac_cv_prog_cc_c89=no 4705 ac_save_CC=$CC 4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4707 /* end confdefs.h. */ 4708 #include <stdarg.h> 4709 #include <stdio.h> 4710 #include <sys/types.h> 4711 #include <sys/stat.h> 4712 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4713 struct buf { int x; }; 4714 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4715 static char *e (p, i) 4716 char **p; 4717 int i; 4718 { 4719 return p[i]; 4720 } 4721 static char *f (char * (*g) (char **, int), char **p, ...) 4722 { 4723 char *s; 4724 va_list v; 4725 va_start (v,p); 4726 s = g (p, va_arg (v,int)); 4727 va_end (v); 4728 return s; 4729 } 4730 4731 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4732 function prototypes and stuff, but not '\xHH' hex character constants. 4733 These don't provoke an error unfortunately, instead are silently treated 4734 as 'x'. The following induces an error, until -std is added to get 4735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4736 array size at least. It's necessary to write '\x00'==0 to get something 4737 that's true only with -std. */ 4738 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4739 4740 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4741 inside strings and character constants. */ 4742 #define FOO(x) 'x' 4743 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4744 4745 int test (int i, double x); 4746 struct s1 {int (*f) (int a);}; 4747 struct s2 {int (*f) (double a);}; 4748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4749 int argc; 4750 char **argv; 4751 int 4752 main () 4753 { 4754 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4755 ; 4756 return 0; 4757 } 4758 _ACEOF 4759 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4761 do 4762 CC="$ac_save_CC $ac_arg" 4763 if ac_fn_c_try_compile "$LINENO"; then : 4764 ac_cv_prog_cc_c89=$ac_arg 4765 fi 4766 rm -f core conftest.err conftest.$ac_objext 4767 test "x$ac_cv_prog_cc_c89" != "xno" && break 4768 done 4769 rm -f conftest.$ac_ext 4770 CC=$ac_save_CC 4771 4772 fi 4773 # AC_CACHE_VAL 4774 case "x$ac_cv_prog_cc_c89" in 4775 x) 4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4777 $as_echo "none needed" >&6; } ;; 4778 xno) 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4780 $as_echo "unsupported" >&6; } ;; 4781 *) 4782 CC="$CC $ac_cv_prog_cc_c89" 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4784 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4785 esac 4786 if test "x$ac_cv_prog_cc_c89" != xno; then : 4787 4788 fi 4789 4790 ac_ext=c 4791 ac_cpp='$CPP $CPPFLAGS' 4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4795 4796 ac_ext=cpp 4797 ac_cpp='$CXXCPP $CPPFLAGS' 4798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4801 if test -z "$CXX"; then 4802 if test -n "$CCC"; then 4803 CXX=$CCC 4804 else 4805 if test -n "$ac_tool_prefix"; then 4806 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4807 do 4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4811 $as_echo_n "checking for $ac_word... " >&6; } 4812 if test "${ac_cv_prog_CXX+set}" = set; then : 4813 $as_echo_n "(cached) " >&6 4814 else 4815 if test -n "$CXX"; then 4816 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4817 else 4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4819 for as_dir in $PATH 4820 do 4821 IFS=$as_save_IFS 4822 test -z "$as_dir" && as_dir=. 4823 for ac_exec_ext in '' $ac_executable_extensions; do 4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4825 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4827 break 2 4828 fi 4829 done 4830 done 4831 IFS=$as_save_IFS 4832 4833 fi 4834 fi 4835 CXX=$ac_cv_prog_CXX 4836 if test -n "$CXX"; then 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4838 $as_echo "$CXX" >&6; } 4839 else 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841 $as_echo "no" >&6; } 4842 fi 4843 4844 4845 test -n "$CXX" && break 4846 done 4847 fi 4848 if test -z "$CXX"; then 4849 ac_ct_CXX=$CXX 4850 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4851 do 4852 # Extract the first word of "$ac_prog", so it can be a program name with args. 4853 set dummy $ac_prog; ac_word=$2 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4855 $as_echo_n "checking for $ac_word... " >&6; } 4856 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 4857 $as_echo_n "(cached) " >&6 4858 else 4859 if test -n "$ac_ct_CXX"; then 4860 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4861 else 4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4863 for as_dir in $PATH 4864 do 4865 IFS=$as_save_IFS 4866 test -z "$as_dir" && as_dir=. 4867 for ac_exec_ext in '' $ac_executable_extensions; do 4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4869 ac_cv_prog_ac_ct_CXX="$ac_prog" 4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4871 break 2 4872 fi 4873 done 4874 done 4875 IFS=$as_save_IFS 4876 4877 fi 4878 fi 4879 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4880 if test -n "$ac_ct_CXX"; then 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4882 $as_echo "$ac_ct_CXX" >&6; } 4883 else 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4885 $as_echo "no" >&6; } 4886 fi 4887 4888 4889 test -n "$ac_ct_CXX" && break 4890 done 4891 4892 if test "x$ac_ct_CXX" = x; then 4893 CXX="g++" 4894 else 4895 case $cross_compiling:$ac_tool_warned in 4896 yes:) 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4899 ac_tool_warned=yes ;; 4900 esac 4901 CXX=$ac_ct_CXX 4902 fi 4903 fi 4904 4905 fi 4906 fi 4907 # Provide some information about the compiler. 4908 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4909 set X $ac_compile 4910 ac_compiler=$2 4911 for ac_option in --version -v -V -qversion; do 4912 { { ac_try="$ac_compiler $ac_option >&5" 4913 case "(($ac_try" in 4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4915 *) ac_try_echo=$ac_try;; 4916 esac 4917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4918 $as_echo "$ac_try_echo"; } >&5 4919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4920 ac_status=$? 4921 if test -s conftest.err; then 4922 sed '10a\ 4923 ... rest of stderr output deleted ... 4924 10q' conftest.err >conftest.er1 4925 cat conftest.er1 >&5 4926 rm -f conftest.er1 conftest.err 4927 fi 4928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4929 test $ac_status = 0; } 4930 done 4931 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4933 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4934 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 4935 $as_echo_n "(cached) " >&6 4936 else 4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4938 /* end confdefs.h. */ 4939 4940 int 4941 main () 4942 { 4943 #ifndef __GNUC__ 4944 choke me 4945 #endif 4946 4947 ; 4948 return 0; 4949 } 4950 _ACEOF 4951 if ac_fn_cxx_try_compile "$LINENO"; then : 4952 ac_compiler_gnu=yes 4953 else 4954 ac_compiler_gnu=no 4955 fi 4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4957 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4958 4959 fi 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4961 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4962 if test $ac_compiler_gnu = yes; then 4963 GXX=yes 4964 else 4965 GXX= 4966 fi 4967 ac_test_CXXFLAGS=${CXXFLAGS+set} 4968 ac_save_CXXFLAGS=$CXXFLAGS 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4970 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 4971 if test "${ac_cv_prog_cxx_g+set}" = set; then : 4972 $as_echo_n "(cached) " >&6 4973 else 4974 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4975 ac_cxx_werror_flag=yes 4976 ac_cv_prog_cxx_g=no 4977 CXXFLAGS="-g" 4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4979 /* end confdefs.h. */ 4980 4981 int 4982 main () 4983 { 4984 4985 ; 4986 return 0; 4987 } 4988 _ACEOF 4989 if ac_fn_cxx_try_compile "$LINENO"; then : 4990 ac_cv_prog_cxx_g=yes 4991 else 4992 CXXFLAGS="" 4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994 /* end confdefs.h. */ 4995 4996 int 4997 main () 4998 { 4999 5000 ; 5001 return 0; 5002 } 5003 _ACEOF 5004 if ac_fn_cxx_try_compile "$LINENO"; then : 5005 5006 else 5007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5008 CXXFLAGS="-g" 5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5010 /* end confdefs.h. */ 5011 5012 int 5013 main () 5014 { 5015 5016 ; 5017 return 0; 5018 } 5019 _ACEOF 5020 if ac_fn_cxx_try_compile "$LINENO"; then : 5021 ac_cv_prog_cxx_g=yes 5022 fi 5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5024 fi 5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5026 fi 5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5028 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5029 fi 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5031 $as_echo "$ac_cv_prog_cxx_g" >&6; } 5032 if test "$ac_test_CXXFLAGS" = set; then 5033 CXXFLAGS=$ac_save_CXXFLAGS 5034 elif test $ac_cv_prog_cxx_g = yes; then 5035 if test "$GXX" = yes; then 5036 CXXFLAGS="-g -O2" 5037 else 5038 CXXFLAGS="-g" 5039 fi 5040 else 5041 if test "$GXX" = yes; then 5042 CXXFLAGS="-O2" 5043 else 5044 CXXFLAGS= 5045 fi 5046 fi 5047 ac_ext=c 5048 ac_cpp='$CPP $CPPFLAGS' 5049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5051 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5052 5053 depcc="$CXX" am_compiler_list= 5054 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5056 $as_echo_n "checking dependency style of $depcc... " >&6; } 5057 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 5058 $as_echo_n "(cached) " >&6 5059 else 5060 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5061 # We make a subdir and do the tests there. Otherwise we can end up 5062 # making bogus files that we don't know about and never remove. For 5063 # instance it was reported that on HP-UX the gcc test will end up 5064 # making a dummy file named `D' -- because `-MD' means `put the output 5065 # in D'. 5066 mkdir conftest.dir 5067 # Copy depcomp to subdir because otherwise we won't find it if we're 5068 # using a relative directory. 5069 cp "$am_depcomp" conftest.dir 5070 cd conftest.dir 5071 # We will build objects and dependencies in a subdirectory because 5072 # it helps to detect inapplicable dependency modes. For instance 5073 # both Tru64's cc and ICC support -MD to output dependencies as a 5074 # side effect of compilation, but ICC will put the dependencies in 5075 # the current directory while Tru64 will put them in the object 5076 # directory. 5077 mkdir sub 5078 5079 am_cv_CXX_dependencies_compiler_type=none 5080 if test "$am_compiler_list" = ""; then 5081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5082 fi 5083 am__universal=false 5084 case " $depcc " in #( 5085 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5086 esac 5087 5088 for depmode in $am_compiler_list; do 5089 # Setup a source with many dependencies, because some compilers 5090 # like to wrap large dependency lists on column 80 (with \), and 5091 # we should not choose a depcomp mode which is confused by this. 5092 # 5093 # We need to recreate these files for each test, as the compiler may 5094 # overwrite some of them when testing with obscure command lines. 5095 # This happens at least with the AIX C compiler. 5096 : > sub/conftest.c 5097 for i in 1 2 3 4 5 6; do 5098 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5099 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5100 # Solaris 8's {/usr,}/bin/sh. 5101 touch sub/conftst$i.h 5102 done 5103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5104 5105 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5106 # mode. It turns out that the SunPro C++ compiler does not properly 5107 # handle `-M -o', and we need to detect this. Also, some Intel 5108 # versions had trouble with output in subdirs 5109 am__obj=sub/conftest.${OBJEXT-o} 5110 am__minus_obj="-o $am__obj" 5111 case $depmode in 5112 gcc) 5113 # This depmode causes a compiler race in universal mode. 5114 test "$am__universal" = false || continue 5115 ;; 5116 nosideeffect) 5117 # after this tag, mechanisms are not by side-effect, so they'll 5118 # only be used when explicitly requested 5119 if test "x$enable_dependency_tracking" = xyes; then 5120 continue 5121 else 5122 break 5123 fi 5124 ;; 5125 msvisualcpp | msvcmsys) 5126 # This compiler won't grok `-c -o', but also, the minuso test has 5127 # not run yet. These depmodes are late enough in the game, and 5128 # so weak that their functioning should not be impacted. 5129 am__obj=conftest.${OBJEXT-o} 5130 am__minus_obj= 5131 ;; 5132 none) break ;; 5133 esac 5134 if depmode=$depmode \ 5135 source=sub/conftest.c object=$am__obj \ 5136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5138 >/dev/null 2>conftest.err && 5139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5143 # icc doesn't choke on unknown options, it will just issue warnings 5144 # or remarks (even with -Werror). So we grep stderr for any message 5145 # that says an option was ignored or not supported. 5146 # When given -MP, icc 7.0 and 7.1 complain thusly: 5147 # icc: Command line warning: ignoring option '-M'; no argument required 5148 # The diagnosis changed in icc 8.0: 5149 # icc: Command line remark: option '-MP' not supported 5150 if (grep 'ignoring option' conftest.err || 5151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5152 am_cv_CXX_dependencies_compiler_type=$depmode 5153 break 5154 fi 5155 fi 5156 done 5157 5158 cd .. 5159 rm -rf conftest.dir 5160 else 5161 am_cv_CXX_dependencies_compiler_type=none 5162 fi 5163 5164 fi 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5166 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5167 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5168 5169 if 5170 test "x$enable_dependency_tracking" != xno \ 5171 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5172 am__fastdepCXX_TRUE= 5173 am__fastdepCXX_FALSE='#' 5174 else 5175 am__fastdepCXX_TRUE='#' 5176 am__fastdepCXX_FALSE= 5177 fi 5178 5179 5180 ac_ext=c 5181 ac_cpp='$CPP $CPPFLAGS' 5182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5184 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5186 $as_echo_n "checking how to run the C preprocessor... " >&6; } 5187 # On Suns, sometimes $CPP names a directory. 5188 if test -n "$CPP" && test -d "$CPP"; then 5189 CPP= 5190 fi 5191 if test -z "$CPP"; then 5192 if test "${ac_cv_prog_CPP+set}" = set; then : 5193 $as_echo_n "(cached) " >&6 5194 else 5195 # Double quotes because CPP needs to be expanded 5196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5197 do 5198 ac_preproc_ok=false 5199 for ac_c_preproc_warn_flag in '' yes 5200 do 5201 # Use a header file that comes with gcc, so configuring glibc 5202 # with a fresh cross-compiler works. 5203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5204 # <limits.h> exists even on freestanding compilers. 5205 # On the NeXT, cc -E runs the code through the compiler's parser, 5206 # not just through cpp. "Syntax error" is here to catch this case. 5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5208 /* end confdefs.h. */ 5209 #ifdef __STDC__ 5210 # include <limits.h> 5211 #else 5212 # include <assert.h> 5213 #endif 5214 Syntax error 5215 _ACEOF 5216 if ac_fn_c_try_cpp "$LINENO"; then : 5217 5218 else 5219 # Broken: fails on valid input. 5220 continue 5221 fi 5222 rm -f conftest.err conftest.$ac_ext 5223 5224 # OK, works on sane cases. Now check whether nonexistent headers 5225 # can be detected and how. 5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5227 /* end confdefs.h. */ 5228 #include <ac_nonexistent.h> 5229 _ACEOF 5230 if ac_fn_c_try_cpp "$LINENO"; then : 5231 # Broken: success on invalid input. 5232 continue 5233 else 5234 # Passes both tests. 5235 ac_preproc_ok=: 5236 break 5237 fi 5238 rm -f conftest.err conftest.$ac_ext 5239 5240 done 5241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5242 rm -f conftest.err conftest.$ac_ext 5243 if $ac_preproc_ok; then : 5244 break 5245 fi 5246 5247 done 5248 ac_cv_prog_CPP=$CPP 5249 5250 fi 5251 CPP=$ac_cv_prog_CPP 5252 else 5253 ac_cv_prog_CPP=$CPP 5254 fi 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5256 $as_echo "$CPP" >&6; } 5257 ac_preproc_ok=false 5258 for ac_c_preproc_warn_flag in '' yes 5259 do 5260 # Use a header file that comes with gcc, so configuring glibc 5261 # with a fresh cross-compiler works. 5262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5263 # <limits.h> exists even on freestanding compilers. 5264 # On the NeXT, cc -E runs the code through the compiler's parser, 5265 # not just through cpp. "Syntax error" is here to catch this case. 5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5267 /* end confdefs.h. */ 5268 #ifdef __STDC__ 5269 # include <limits.h> 5270 #else 5271 # include <assert.h> 5272 #endif 5273 Syntax error 5274 _ACEOF 5275 if ac_fn_c_try_cpp "$LINENO"; then : 5276 5277 else 5278 # Broken: fails on valid input. 5279 continue 5280 fi 5281 rm -f conftest.err conftest.$ac_ext 5282 5283 # OK, works on sane cases. Now check whether nonexistent headers 5284 # can be detected and how. 5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5286 /* end confdefs.h. */ 5287 #include <ac_nonexistent.h> 5288 _ACEOF 5289 if ac_fn_c_try_cpp "$LINENO"; then : 5290 # Broken: success on invalid input. 5291 continue 5292 else 5293 # Passes both tests. 5294 ac_preproc_ok=: 5295 break 5296 fi 5297 rm -f conftest.err conftest.$ac_ext 5298 5299 done 5300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5301 rm -f conftest.err conftest.$ac_ext 5302 if $ac_preproc_ok; then : 5303 5304 else 5305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5307 as_fn_error "C preprocessor \"$CPP\" fails sanity check 5308 See \`config.log' for more details." "$LINENO" 5; } 5309 fi 5310 5311 ac_ext=c 5312 ac_cpp='$CPP $CPPFLAGS' 5313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5315 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5316 5317 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5319 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5320 if test "${ac_cv_path_GREP+set}" = set; then : 5321 $as_echo_n "(cached) " >&6 5322 else 5323 if test -z "$GREP"; then 5324 ac_path_GREP_found=false 5325 # Loop through the user's path and test for each of PROGNAME-LIST 5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5328 do 5329 IFS=$as_save_IFS 5330 test -z "$as_dir" && as_dir=. 5331 for ac_prog in grep ggrep; do 5332 for ac_exec_ext in '' $ac_executable_extensions; do 5333 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5334 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5335 # Check for GNU ac_path_GREP and select it if it is found. 5336 # Check for GNU $ac_path_GREP 5337 case `"$ac_path_GREP" --version 2>&1` in 5338 *GNU*) 5339 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5340 *) 5341 ac_count=0 5342 $as_echo_n 0123456789 >"conftest.in" 5343 while : 5344 do 5345 cat "conftest.in" "conftest.in" >"conftest.tmp" 5346 mv "conftest.tmp" "conftest.in" 5347 cp "conftest.in" "conftest.nl" 5348 $as_echo 'GREP' >> "conftest.nl" 5349 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5351 as_fn_arith $ac_count + 1 && ac_count=$as_val 5352 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5353 # Best one so far, save it but keep looking for a better one 5354 ac_cv_path_GREP="$ac_path_GREP" 5355 ac_path_GREP_max=$ac_count 5356 fi 5357 # 10*(2^10) chars as input seems more than enough 5358 test $ac_count -gt 10 && break 5359 done 5360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5361 esac 5362 5363 $ac_path_GREP_found && break 3 5364 done 5365 done 5366 done 5367 IFS=$as_save_IFS 5368 if test -z "$ac_cv_path_GREP"; then 5369 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5370 fi 5371 else 5372 ac_cv_path_GREP=$GREP 5373 fi 5374 5375 fi 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5377 $as_echo "$ac_cv_path_GREP" >&6; } 5378 GREP="$ac_cv_path_GREP" 5379 5380 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5382 $as_echo_n "checking for egrep... " >&6; } 5383 if test "${ac_cv_path_EGREP+set}" = set; then : 5384 $as_echo_n "(cached) " >&6 5385 else 5386 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5387 then ac_cv_path_EGREP="$GREP -E" 5388 else 5389 if test -z "$EGREP"; then 5390 ac_path_EGREP_found=false 5391 # Loop through the user's path and test for each of PROGNAME-LIST 5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5394 do 5395 IFS=$as_save_IFS 5396 test -z "$as_dir" && as_dir=. 5397 for ac_prog in egrep; do 5398 for ac_exec_ext in '' $ac_executable_extensions; do 5399 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5400 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5401 # Check for GNU ac_path_EGREP and select it if it is found. 5402 # Check for GNU $ac_path_EGREP 5403 case `"$ac_path_EGREP" --version 2>&1` in 5404 *GNU*) 5405 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5406 *) 5407 ac_count=0 5408 $as_echo_n 0123456789 >"conftest.in" 5409 while : 5410 do 5411 cat "conftest.in" "conftest.in" >"conftest.tmp" 5412 mv "conftest.tmp" "conftest.in" 5413 cp "conftest.in" "conftest.nl" 5414 $as_echo 'EGREP' >> "conftest.nl" 5415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5417 as_fn_arith $ac_count + 1 && ac_count=$as_val 5418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5419 # Best one so far, save it but keep looking for a better one 5420 ac_cv_path_EGREP="$ac_path_EGREP" 5421 ac_path_EGREP_max=$ac_count 5422 fi 5423 # 10*(2^10) chars as input seems more than enough 5424 test $ac_count -gt 10 && break 5425 done 5426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5427 esac 5428 5429 $ac_path_EGREP_found && break 3 5430 done 5431 done 5432 done 5433 IFS=$as_save_IFS 5434 if test -z "$ac_cv_path_EGREP"; then 5435 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5436 fi 5437 else 5438 ac_cv_path_EGREP=$EGREP 5439 fi 5440 5441 fi 5442 fi 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5444 $as_echo "$ac_cv_path_EGREP" >&6; } 5445 EGREP="$ac_cv_path_EGREP" 5446 5447 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5449 $as_echo_n "checking for ANSI C header files... " >&6; } 5450 if test "${ac_cv_header_stdc+set}" = set; then : 5451 $as_echo_n "(cached) " >&6 5452 else 5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454 /* end confdefs.h. */ 5455 #include <stdlib.h> 5456 #include <stdarg.h> 5457 #include <string.h> 5458 #include <float.h> 5459 5460 int 5461 main () 5462 { 5463 5464 ; 5465 return 0; 5466 } 5467 _ACEOF 5468 if ac_fn_c_try_compile "$LINENO"; then : 5469 ac_cv_header_stdc=yes 5470 else 5471 ac_cv_header_stdc=no 5472 fi 5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5474 5475 if test $ac_cv_header_stdc = yes; then 5476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5478 /* end confdefs.h. */ 5479 #include <string.h> 5480 5481 _ACEOF 5482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5483 $EGREP "memchr" >/dev/null 2>&1; then : 5484 5485 else 5486 ac_cv_header_stdc=no 5487 fi 5488 rm -f conftest* 5489 5490 fi 5491 5492 if test $ac_cv_header_stdc = yes; then 5493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5495 /* end confdefs.h. */ 5496 #include <stdlib.h> 5497 5498 _ACEOF 5499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5500 $EGREP "free" >/dev/null 2>&1; then : 5501 5502 else 5503 ac_cv_header_stdc=no 5504 fi 5505 rm -f conftest* 5506 5507 fi 5508 5509 if test $ac_cv_header_stdc = yes; then 5510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5511 if test "$cross_compiling" = yes; then : 5512 : 5513 else 5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5515 /* end confdefs.h. */ 5516 #include <ctype.h> 5517 #include <stdlib.h> 5518 #if ((' ' & 0x0FF) == 0x020) 5519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5521 #else 5522 # define ISLOWER(c) \ 5523 (('a' <= (c) && (c) <= 'i') \ 5524 || ('j' <= (c) && (c) <= 'r') \ 5525 || ('s' <= (c) && (c) <= 'z')) 5526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5527 #endif 5528 5529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5530 int 5531 main () 5532 { 5533 int i; 5534 for (i = 0; i < 256; i++) 5535 if (XOR (islower (i), ISLOWER (i)) 5536 || toupper (i) != TOUPPER (i)) 5537 return 2; 5538 return 0; 5539 } 5540 _ACEOF 5541 if ac_fn_c_try_run "$LINENO"; then : 5542 5543 else 5544 ac_cv_header_stdc=no 5545 fi 5546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5547 conftest.$ac_objext conftest.beam conftest.$ac_ext 5548 fi 5549 5550 fi 5551 fi 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5553 $as_echo "$ac_cv_header_stdc" >&6; } 5554 if test $ac_cv_header_stdc = yes; then 5555 5556 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 5557 5558 fi 5559 5560 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5561 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5562 inttypes.h stdint.h unistd.h 5563 do : 5564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5565 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5566 " 5567 eval as_val=\$$as_ac_Header 5568 if test "x$as_val" = x""yes; then : 5569 cat >>confdefs.h <<_ACEOF 5570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5571 _ACEOF 5572 5573 fi 5574 5575 done 5576 5577 5578 5579 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5580 if test "x$ac_cv_header_minix_config_h" = x""yes; then : 5581 MINIX=yes 5582 else 5583 MINIX= 5584 fi 5585 5586 5587 if test "$MINIX" = yes; then 5588 5589 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5590 5591 5592 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5593 5594 5595 $as_echo "#define _MINIX 1" >>confdefs.h 5596 5597 fi 5598 5599 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5601 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5602 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 5603 $as_echo_n "(cached) " >&6 5604 else 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606 /* end confdefs.h. */ 5607 5608 # define __EXTENSIONS__ 1 5609 $ac_includes_default 5610 int 5611 main () 5612 { 5613 5614 ; 5615 return 0; 5616 } 5617 _ACEOF 5618 if ac_fn_c_try_compile "$LINENO"; then : 5619 ac_cv_safe_to_define___extensions__=yes 5620 else 5621 ac_cv_safe_to_define___extensions__=no 5622 fi 5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5624 fi 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5626 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5627 test $ac_cv_safe_to_define___extensions__ = yes && 5628 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5629 5630 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5631 5632 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5633 5634 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5635 5636 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5637 5638 5639 5640 5641 5642 5643 case `pwd` in 5644 *\ * | *\ *) 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5646 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5647 esac 5648 5649 5650 5651 macro_version='2.2.7a' 5652 macro_revision='1.3134' 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 ltmain="$ac_aux_dir/ltmain.sh" 5667 5668 # Backslashify metacharacters that are still active within 5669 # double-quoted strings. 5670 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5671 5672 # Same as above, but do not quote variable references. 5673 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5674 5675 # Sed substitution to delay expansion of an escaped shell variable in a 5676 # double_quote_subst'ed string. 5677 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5678 5679 # Sed substitution to delay expansion of an escaped single quote. 5680 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5681 5682 # Sed substitution to avoid accidental globbing in evaled expressions 5683 no_glob_subst='s/\*/\\\*/g' 5684 5685 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5686 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5687 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5688 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5690 $as_echo_n "checking how to print strings... " >&6; } 5691 # Test print first, because it will be a builtin if present. 5692 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5693 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5694 ECHO='print -r --' 5695 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5696 ECHO='printf %s\n' 5697 else 5698 # Use this function as a fallback that always works. 5699 func_fallback_echo () 5700 { 5701 eval 'cat <<_LTECHO_EOF 5702 $1 5703 _LTECHO_EOF' 5704 } 5705 ECHO='func_fallback_echo' 5706 fi 5707 5708 # func_echo_all arg... 5709 # Invoke $ECHO with all args, space-separated. 5710 func_echo_all () 5711 { 5712 $ECHO "" 5713 } 5714 5715 case "$ECHO" in 5716 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5717 $as_echo "printf" >&6; } ;; 5718 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5719 $as_echo "print -r" >&6; } ;; 5720 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5721 $as_echo "cat" >&6; } ;; 5722 esac 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5738 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5739 if test "${ac_cv_path_SED+set}" = set; then : 5740 $as_echo_n "(cached) " >&6 5741 else 5742 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5743 for ac_i in 1 2 3 4 5 6 7; do 5744 ac_script="$ac_script$as_nl$ac_script" 5745 done 5746 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5747 { ac_script=; unset ac_script;} 5748 if test -z "$SED"; then 5749 ac_path_SED_found=false 5750 # Loop through the user's path and test for each of PROGNAME-LIST 5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5752 for as_dir in $PATH 5753 do 5754 IFS=$as_save_IFS 5755 test -z "$as_dir" && as_dir=. 5756 for ac_prog in sed gsed; do 5757 for ac_exec_ext in '' $ac_executable_extensions; do 5758 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5759 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5760 # Check for GNU ac_path_SED and select it if it is found. 5761 # Check for GNU $ac_path_SED 5762 case `"$ac_path_SED" --version 2>&1` in 5763 *GNU*) 5764 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5765 *) 5766 ac_count=0 5767 $as_echo_n 0123456789 >"conftest.in" 5768 while : 5769 do 5770 cat "conftest.in" "conftest.in" >"conftest.tmp" 5771 mv "conftest.tmp" "conftest.in" 5772 cp "conftest.in" "conftest.nl" 5773 $as_echo '' >> "conftest.nl" 5774 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5776 as_fn_arith $ac_count + 1 && ac_count=$as_val 5777 if test $ac_count -gt ${ac_path_SED_max-0}; then 5778 # Best one so far, save it but keep looking for a better one 5779 ac_cv_path_SED="$ac_path_SED" 5780 ac_path_SED_max=$ac_count 5781 fi 5782 # 10*(2^10) chars as input seems more than enough 5783 test $ac_count -gt 10 && break 5784 done 5785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5786 esac 5787 5788 $ac_path_SED_found && break 3 5789 done 5790 done 5791 done 5792 IFS=$as_save_IFS 5793 if test -z "$ac_cv_path_SED"; then 5794 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5795 fi 5796 else 5797 ac_cv_path_SED=$SED 5798 fi 5799 5800 fi 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5802 $as_echo "$ac_cv_path_SED" >&6; } 5803 SED="$ac_cv_path_SED" 5804 rm -f conftest.sed 5805 5806 test -z "$SED" && SED=sed 5807 Xsed="$SED -e 1s/^X//" 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5820 $as_echo_n "checking for fgrep... " >&6; } 5821 if test "${ac_cv_path_FGREP+set}" = set; then : 5822 $as_echo_n "(cached) " >&6 5823 else 5824 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5825 then ac_cv_path_FGREP="$GREP -F" 5826 else 5827 if test -z "$FGREP"; then 5828 ac_path_FGREP_found=false 5829 # Loop through the user's path and test for each of PROGNAME-LIST 5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5832 do 5833 IFS=$as_save_IFS 5834 test -z "$as_dir" && as_dir=. 5835 for ac_prog in fgrep; do 5836 for ac_exec_ext in '' $ac_executable_extensions; do 5837 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5838 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5839 # Check for GNU ac_path_FGREP and select it if it is found. 5840 # Check for GNU $ac_path_FGREP 5841 case `"$ac_path_FGREP" --version 2>&1` in 5842 *GNU*) 5843 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5844 *) 5845 ac_count=0 5846 $as_echo_n 0123456789 >"conftest.in" 5847 while : 5848 do 5849 cat "conftest.in" "conftest.in" >"conftest.tmp" 5850 mv "conftest.tmp" "conftest.in" 5851 cp "conftest.in" "conftest.nl" 5852 $as_echo 'FGREP' >> "conftest.nl" 5853 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5855 as_fn_arith $ac_count + 1 && ac_count=$as_val 5856 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5857 # Best one so far, save it but keep looking for a better one 5858 ac_cv_path_FGREP="$ac_path_FGREP" 5859 ac_path_FGREP_max=$ac_count 5860 fi 5861 # 10*(2^10) chars as input seems more than enough 5862 test $ac_count -gt 10 && break 5863 done 5864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5865 esac 5866 5867 $ac_path_FGREP_found && break 3 5868 done 5869 done 5870 done 5871 IFS=$as_save_IFS 5872 if test -z "$ac_cv_path_FGREP"; then 5873 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5874 fi 5875 else 5876 ac_cv_path_FGREP=$FGREP 5877 fi 5878 5879 fi 5880 fi 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5882 $as_echo "$ac_cv_path_FGREP" >&6; } 5883 FGREP="$ac_cv_path_FGREP" 5884 5885 5886 test -z "$GREP" && GREP=grep 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 # Check whether --with-gnu-ld was given. 5907 if test "${with_gnu_ld+set}" = set; then : 5908 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5909 else 5910 with_gnu_ld=no 5911 fi 5912 5913 ac_prog=ld 5914 if test "$GCC" = yes; then 5915 # Check if gcc -print-prog-name=ld gives a path. 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5917 $as_echo_n "checking for ld used by $CC... " >&6; } 5918 case $host in 5919 *-*-mingw*) 5920 # gcc leaves a trailing carriage return which upsets mingw 5921 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5922 *) 5923 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5924 esac 5925 case $ac_prog in 5926 # Accept absolute paths. 5927 [\\/]* | ?:[\\/]*) 5928 re_direlt='/[^/][^/]*/\.\./' 5929 # Canonicalize the pathname of ld 5930 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5931 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5932 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5933 done 5934 test -z "$LD" && LD="$ac_prog" 5935 ;; 5936 "") 5937 # If it fails, then pretend we aren't using GCC. 5938 ac_prog=ld 5939 ;; 5940 *) 5941 # If it is relative, then search for the first ld in PATH. 5942 with_gnu_ld=unknown 5943 ;; 5944 esac 5945 elif test "$with_gnu_ld" = yes; then 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5947 $as_echo_n "checking for GNU ld... " >&6; } 5948 else 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5950 $as_echo_n "checking for non-GNU ld... " >&6; } 5951 fi 5952 if test "${lt_cv_path_LD+set}" = set; then : 5953 $as_echo_n "(cached) " >&6 5954 else 5955 if test -z "$LD"; then 5956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5957 for ac_dir in $PATH; do 5958 IFS="$lt_save_ifs" 5959 test -z "$ac_dir" && ac_dir=. 5960 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5961 lt_cv_path_LD="$ac_dir/$ac_prog" 5962 # Check to see if the program is GNU ld. I'd rather use --version, 5963 # but apparently some variants of GNU ld only accept -v. 5964 # Break only if it was the GNU/non-GNU ld that we prefer. 5965 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5966 *GNU* | *'with BFD'*) 5967 test "$with_gnu_ld" != no && break 5968 ;; 5969 *) 5970 test "$with_gnu_ld" != yes && break 5971 ;; 5972 esac 5973 fi 5974 done 5975 IFS="$lt_save_ifs" 5976 else 5977 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5978 fi 5979 fi 5980 5981 LD="$lt_cv_path_LD" 5982 if test -n "$LD"; then 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5984 $as_echo "$LD" >&6; } 5985 else 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5987 $as_echo "no" >&6; } 5988 fi 5989 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5991 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5992 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5993 $as_echo_n "(cached) " >&6 5994 else 5995 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5996 case `$LD -v 2>&1 </dev/null` in 5997 *GNU* | *'with BFD'*) 5998 lt_cv_prog_gnu_ld=yes 5999 ;; 6000 *) 6001 lt_cv_prog_gnu_ld=no 6002 ;; 6003 esac 6004 fi 6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6006 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 6007 with_gnu_ld=$lt_cv_prog_gnu_ld 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6018 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6019 if test "${lt_cv_path_NM+set}" = set; then : 6020 $as_echo_n "(cached) " >&6 6021 else 6022 if test -n "$NM"; then 6023 # Let the user override the test. 6024 lt_cv_path_NM="$NM" 6025 else 6026 lt_nm_to_check="${ac_tool_prefix}nm" 6027 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6028 lt_nm_to_check="$lt_nm_to_check nm" 6029 fi 6030 for lt_tmp_nm in $lt_nm_to_check; do 6031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6032 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6033 IFS="$lt_save_ifs" 6034 test -z "$ac_dir" && ac_dir=. 6035 tmp_nm="$ac_dir/$lt_tmp_nm" 6036 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6037 # Check to see if the nm accepts a BSD-compat flag. 6038 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6039 # nm: unknown option "B" ignored 6040 # Tru64's nm complains that /dev/null is an invalid object file 6041 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6042 */dev/null* | *'Invalid file or object type'*) 6043 lt_cv_path_NM="$tmp_nm -B" 6044 break 6045 ;; 6046 *) 6047 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6048 */dev/null*) 6049 lt_cv_path_NM="$tmp_nm -p" 6050 break 6051 ;; 6052 *) 6053 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6054 continue # so that we can try to find one that supports BSD flags 6055 ;; 6056 esac 6057 ;; 6058 esac 6059 fi 6060 done 6061 IFS="$lt_save_ifs" 6062 done 6063 : ${lt_cv_path_NM=no} 6064 fi 6065 fi 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6067 $as_echo "$lt_cv_path_NM" >&6; } 6068 if test "$lt_cv_path_NM" != "no"; then 6069 NM="$lt_cv_path_NM" 6070 else 6071 # Didn't find any BSD compatible name lister, look for dumpbin. 6072 if test -n "$DUMPBIN"; then : 6073 # Let the user override the test. 6074 else 6075 if test -n "$ac_tool_prefix"; then 6076 for ac_prog in dumpbin "link -dump" 6077 do 6078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6081 $as_echo_n "checking for $ac_word... " >&6; } 6082 if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 6083 $as_echo_n "(cached) " >&6 6084 else 6085 if test -n "$DUMPBIN"; then 6086 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6087 else 6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6089 for as_dir in $PATH 6090 do 6091 IFS=$as_save_IFS 6092 test -z "$as_dir" && as_dir=. 6093 for ac_exec_ext in '' $ac_executable_extensions; do 6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6095 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6097 break 2 6098 fi 6099 done 6100 done 6101 IFS=$as_save_IFS 6102 6103 fi 6104 fi 6105 DUMPBIN=$ac_cv_prog_DUMPBIN 6106 if test -n "$DUMPBIN"; then 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6108 $as_echo "$DUMPBIN" >&6; } 6109 else 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6111 $as_echo "no" >&6; } 6112 fi 6113 6114 6115 test -n "$DUMPBIN" && break 6116 done 6117 fi 6118 if test -z "$DUMPBIN"; then 6119 ac_ct_DUMPBIN=$DUMPBIN 6120 for ac_prog in dumpbin "link -dump" 6121 do 6122 # Extract the first word of "$ac_prog", so it can be a program name with args. 6123 set dummy $ac_prog; ac_word=$2 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6125 $as_echo_n "checking for $ac_word... " >&6; } 6126 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6127 $as_echo_n "(cached) " >&6 6128 else 6129 if test -n "$ac_ct_DUMPBIN"; then 6130 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6131 else 6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6133 for as_dir in $PATH 6134 do 6135 IFS=$as_save_IFS 6136 test -z "$as_dir" && as_dir=. 6137 for ac_exec_ext in '' $ac_executable_extensions; do 6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6139 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6141 break 2 6142 fi 6143 done 6144 done 6145 IFS=$as_save_IFS 6146 6147 fi 6148 fi 6149 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6150 if test -n "$ac_ct_DUMPBIN"; then 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6152 $as_echo "$ac_ct_DUMPBIN" >&6; } 6153 else 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6155 $as_echo "no" >&6; } 6156 fi 6157 6158 6159 test -n "$ac_ct_DUMPBIN" && break 6160 done 6161 6162 if test "x$ac_ct_DUMPBIN" = x; then 6163 DUMPBIN=":" 6164 else 6165 case $cross_compiling:$ac_tool_warned in 6166 yes:) 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6169 ac_tool_warned=yes ;; 6170 esac 6171 DUMPBIN=$ac_ct_DUMPBIN 6172 fi 6173 fi 6174 6175 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6176 *COFF*) 6177 DUMPBIN="$DUMPBIN -symbols" 6178 ;; 6179 *) 6180 DUMPBIN=: 6181 ;; 6182 esac 6183 fi 6184 6185 if test "$DUMPBIN" != ":"; then 6186 NM="$DUMPBIN" 6187 fi 6188 fi 6189 test -z "$NM" && NM=nm 6190 6191 6192 6193 6194 6195 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6197 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 6198 if test "${lt_cv_nm_interface+set}" = set; then : 6199 $as_echo_n "(cached) " >&6 6200 else 6201 lt_cv_nm_interface="BSD nm" 6202 echo "int some_variable = 0;" > conftest.$ac_ext 6203 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6204 (eval "$ac_compile" 2>conftest.err) 6205 cat conftest.err >&5 6206 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6207 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6208 cat conftest.err >&5 6209 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6210 cat conftest.out >&5 6211 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6212 lt_cv_nm_interface="MS dumpbin" 6213 fi 6214 rm -f conftest* 6215 fi 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6217 $as_echo "$lt_cv_nm_interface" >&6; } 6218 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6220 $as_echo_n "checking whether ln -s works... " >&6; } 6221 LN_S=$as_ln_s 6222 if test "$LN_S" = "ln -s"; then 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6224 $as_echo "yes" >&6; } 6225 else 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6227 $as_echo "no, using $LN_S" >&6; } 6228 fi 6229 6230 # find the maximum length of command line arguments 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6232 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 6233 if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6234 $as_echo_n "(cached) " >&6 6235 else 6236 i=0 6237 teststring="ABCD" 6238 6239 case $build_os in 6240 msdosdjgpp*) 6241 # On DJGPP, this test can blow up pretty badly due to problems in libc 6242 # (any single argument exceeding 2000 bytes causes a buffer overrun 6243 # during glob expansion). Even if it were fixed, the result of this 6244 # check would be larger than it should be. 6245 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6246 ;; 6247 6248 gnu*) 6249 # Under GNU Hurd, this test is not required because there is 6250 # no limit to the length of command line arguments. 6251 # Libtool will interpret -1 as no limit whatsoever 6252 lt_cv_sys_max_cmd_len=-1; 6253 ;; 6254 6255 cygwin* | mingw* | cegcc*) 6256 # On Win9x/ME, this test blows up -- it succeeds, but takes 6257 # about 5 minutes as the teststring grows exponentially. 6258 # Worse, since 9x/ME are not pre-emptively multitasking, 6259 # you end up with a "frozen" computer, even though with patience 6260 # the test eventually succeeds (with a max line length of 256k). 6261 # Instead, let's just punt: use the minimum linelength reported by 6262 # all of the supported platforms: 8192 (on NT/2K/XP). 6263 lt_cv_sys_max_cmd_len=8192; 6264 ;; 6265 6266 mint*) 6267 # On MiNT this can take a long time and run out of memory. 6268 lt_cv_sys_max_cmd_len=8192; 6269 ;; 6270 6271 amigaos*) 6272 # On AmigaOS with pdksh, this test takes hours, literally. 6273 # So we just punt and use a minimum line length of 8192. 6274 lt_cv_sys_max_cmd_len=8192; 6275 ;; 6276 6277 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6278 # This has been around since 386BSD, at least. Likely further. 6279 if test -x /sbin/sysctl; then 6280 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6281 elif test -x /usr/sbin/sysctl; then 6282 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6283 else 6284 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6285 fi 6286 # And add a safety zone 6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6289 ;; 6290 6291 interix*) 6292 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6293 lt_cv_sys_max_cmd_len=196608 6294 ;; 6295 6296 osf*) 6297 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6298 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6299 # nice to cause kernel panics so lets avoid the loop below. 6300 # First set a reasonable default. 6301 lt_cv_sys_max_cmd_len=16384 6302 # 6303 if test -x /sbin/sysconfig; then 6304 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6305 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6306 esac 6307 fi 6308 ;; 6309 sco3.2v5*) 6310 lt_cv_sys_max_cmd_len=102400 6311 ;; 6312 sysv5* | sco5v6* | sysv4.2uw2*) 6313 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6314 if test -n "$kargmax"; then 6315 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6316 else 6317 lt_cv_sys_max_cmd_len=32768 6318 fi 6319 ;; 6320 *) 6321 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6322 if test -n "$lt_cv_sys_max_cmd_len"; then 6323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6325 else 6326 # Make teststring a little bigger before we do anything with it. 6327 # a 1K string should be a reasonable start. 6328 for i in 1 2 3 4 5 6 7 8 ; do 6329 teststring=$teststring$teststring 6330 done 6331 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6332 # If test is not a shell built-in, we'll probably end up computing a 6333 # maximum length that is only half of the actual maximum length, but 6334 # we can't tell. 6335 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6336 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6337 test $i != 17 # 1/2 MB should be enough 6338 do 6339 i=`expr $i + 1` 6340 teststring=$teststring$teststring 6341 done 6342 # Only check the string length outside the loop. 6343 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6344 teststring= 6345 # Add a significant safety factor because C++ compilers can tack on 6346 # massive amounts of additional arguments before passing them to the 6347 # linker. It appears as though 1/2 is a usable value. 6348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6349 fi 6350 ;; 6351 esac 6352 6353 fi 6354 6355 if test -n $lt_cv_sys_max_cmd_len ; then 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6357 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6358 else 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6360 $as_echo "none" >&6; } 6361 fi 6362 max_cmd_len=$lt_cv_sys_max_cmd_len 6363 6364 6365 6366 6367 6368 6369 : ${CP="cp -f"} 6370 : ${MV="mv -f"} 6371 : ${RM="rm -f"} 6372 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6374 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6375 # Try some XSI features 6376 xsi_shell=no 6377 ( _lt_dummy="a/b/c" 6378 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6379 = c,a/b,, \ 6380 && eval 'test $(( 1 + 1 )) -eq 2 \ 6381 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6382 && xsi_shell=yes 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6384 $as_echo "$xsi_shell" >&6; } 6385 6386 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6388 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6389 lt_shell_append=no 6390 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6391 >/dev/null 2>&1 \ 6392 && lt_shell_append=yes 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6394 $as_echo "$lt_shell_append" >&6; } 6395 6396 6397 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6398 lt_unset=unset 6399 else 6400 lt_unset=false 6401 fi 6402 6403 6404 6405 6406 6407 # test EBCDIC or ASCII 6408 case `echo X|tr X '\101'` in 6409 A) # ASCII based system 6410 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6411 lt_SP2NL='tr \040 \012' 6412 lt_NL2SP='tr \015\012 \040\040' 6413 ;; 6414 *) # EBCDIC based system 6415 lt_SP2NL='tr \100 \n' 6416 lt_NL2SP='tr \r\n \100\100' 6417 ;; 6418 esac 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6429 $as_echo_n "checking for $LD option to reload object files... " >&6; } 6430 if test "${lt_cv_ld_reload_flag+set}" = set; then : 6431 $as_echo_n "(cached) " >&6 6432 else 6433 lt_cv_ld_reload_flag='-r' 6434 fi 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6436 $as_echo "$lt_cv_ld_reload_flag" >&6; } 6437 reload_flag=$lt_cv_ld_reload_flag 6438 case $reload_flag in 6439 "" | " "*) ;; 6440 *) reload_flag=" $reload_flag" ;; 6441 esac 6442 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6443 case $host_os in 6444 darwin*) 6445 if test "$GCC" = yes; then 6446 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6447 else 6448 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6449 fi 6450 ;; 6451 esac 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 if test -n "$ac_tool_prefix"; then 6462 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6463 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6465 $as_echo_n "checking for $ac_word... " >&6; } 6466 if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6467 $as_echo_n "(cached) " >&6 6468 else 6469 if test -n "$OBJDUMP"; then 6470 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6471 else 6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6473 for as_dir in $PATH 6474 do 6475 IFS=$as_save_IFS 6476 test -z "$as_dir" && as_dir=. 6477 for ac_exec_ext in '' $ac_executable_extensions; do 6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6479 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6481 break 2 6482 fi 6483 done 6484 done 6485 IFS=$as_save_IFS 6486 6487 fi 6488 fi 6489 OBJDUMP=$ac_cv_prog_OBJDUMP 6490 if test -n "$OBJDUMP"; then 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6492 $as_echo "$OBJDUMP" >&6; } 6493 else 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6495 $as_echo "no" >&6; } 6496 fi 6497 6498 6499 fi 6500 if test -z "$ac_cv_prog_OBJDUMP"; then 6501 ac_ct_OBJDUMP=$OBJDUMP 6502 # Extract the first word of "objdump", so it can be a program name with args. 6503 set dummy objdump; ac_word=$2 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6505 $as_echo_n "checking for $ac_word... " >&6; } 6506 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6507 $as_echo_n "(cached) " >&6 6508 else 6509 if test -n "$ac_ct_OBJDUMP"; then 6510 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6511 else 6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6513 for as_dir in $PATH 6514 do 6515 IFS=$as_save_IFS 6516 test -z "$as_dir" && as_dir=. 6517 for ac_exec_ext in '' $ac_executable_extensions; do 6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6519 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6521 break 2 6522 fi 6523 done 6524 done 6525 IFS=$as_save_IFS 6526 6527 fi 6528 fi 6529 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6530 if test -n "$ac_ct_OBJDUMP"; then 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6532 $as_echo "$ac_ct_OBJDUMP" >&6; } 6533 else 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6535 $as_echo "no" >&6; } 6536 fi 6537 6538 if test "x$ac_ct_OBJDUMP" = x; then 6539 OBJDUMP="false" 6540 else 6541 case $cross_compiling:$ac_tool_warned in 6542 yes:) 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6545 ac_tool_warned=yes ;; 6546 esac 6547 OBJDUMP=$ac_ct_OBJDUMP 6548 fi 6549 else 6550 OBJDUMP="$ac_cv_prog_OBJDUMP" 6551 fi 6552 6553 test -z "$OBJDUMP" && OBJDUMP=objdump 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6564 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 6565 if test "${lt_cv_deplibs_check_method+set}" = set; then : 6566 $as_echo_n "(cached) " >&6 6567 else 6568 lt_cv_file_magic_cmd='$MAGIC_CMD' 6569 lt_cv_file_magic_test_file= 6570 lt_cv_deplibs_check_method='unknown' 6571 # Need to set the preceding variable on all platforms that support 6572 # interlibrary dependencies. 6573 # 'none' -- dependencies not supported. 6574 # `unknown' -- same as none, but documents that we really don't know. 6575 # 'pass_all' -- all dependencies passed with no checks. 6576 # 'test_compile' -- check by making test program. 6577 # 'file_magic [[regex]]' -- check by looking for files in library path 6578 # which responds to the $file_magic_cmd with a given extended regex. 6579 # If you have `file' or equivalent on your system and you're not sure 6580 # whether `pass_all' will *always* work, you probably want this one. 6581 6582 case $host_os in 6583 aix[4-9]*) 6584 lt_cv_deplibs_check_method=pass_all 6585 ;; 6586 6587 beos*) 6588 lt_cv_deplibs_check_method=pass_all 6589 ;; 6590 6591 bsdi[45]*) 6592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6593 lt_cv_file_magic_cmd='/usr/bin/file -L' 6594 lt_cv_file_magic_test_file=/shlib/libc.so 6595 ;; 6596 6597 cygwin*) 6598 # func_win32_libid is a shell function defined in ltmain.sh 6599 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6600 lt_cv_file_magic_cmd='func_win32_libid' 6601 ;; 6602 6603 mingw* | pw32*) 6604 # Base MSYS/MinGW do not provide the 'file' command needed by 6605 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6606 # unless we find 'file', for example because we are cross-compiling. 6607 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6608 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6609 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6610 lt_cv_file_magic_cmd='func_win32_libid' 6611 else 6612 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6613 lt_cv_file_magic_cmd='$OBJDUMP -f' 6614 fi 6615 ;; 6616 6617 cegcc*) 6618 # use the weaker test based on 'objdump'. See mingw*. 6619 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6620 lt_cv_file_magic_cmd='$OBJDUMP -f' 6621 ;; 6622 6623 darwin* | rhapsody*) 6624 lt_cv_deplibs_check_method=pass_all 6625 ;; 6626 6627 freebsd* | dragonfly*) 6628 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6629 case $host_cpu in 6630 i*86 ) 6631 # Not sure whether the presence of OpenBSD here was a mistake. 6632 # Let's accept both of them until this is cleared up. 6633 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6634 lt_cv_file_magic_cmd=/usr/bin/file 6635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6636 ;; 6637 esac 6638 else 6639 lt_cv_deplibs_check_method=pass_all 6640 fi 6641 ;; 6642 6643 gnu*) 6644 lt_cv_deplibs_check_method=pass_all 6645 ;; 6646 6647 haiku*) 6648 lt_cv_deplibs_check_method=pass_all 6649 ;; 6650 6651 hpux10.20* | hpux11*) 6652 lt_cv_file_magic_cmd=/usr/bin/file 6653 case $host_cpu in 6654 ia64*) 6655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6656 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6657 ;; 6658 hppa*64*) 6659 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]' 6660 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6661 ;; 6662 *) 6663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6664 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6665 ;; 6666 esac 6667 ;; 6668 6669 interix[3-9]*) 6670 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6672 ;; 6673 6674 irix5* | irix6* | nonstopux*) 6675 case $LD in 6676 *-32|*"-32 ") libmagic=32-bit;; 6677 *-n32|*"-n32 ") libmagic=N32;; 6678 *-64|*"-64 ") libmagic=64-bit;; 6679 *) libmagic=never-match;; 6680 esac 6681 lt_cv_deplibs_check_method=pass_all 6682 ;; 6683 6684 # This must be Linux ELF. 6685 linux* | k*bsd*-gnu | kopensolaris*-gnu) 6686 lt_cv_deplibs_check_method=pass_all 6687 ;; 6688 6689 netbsd*) 6690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6692 else 6693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6694 fi 6695 ;; 6696 6697 newos6*) 6698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6699 lt_cv_file_magic_cmd=/usr/bin/file 6700 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6701 ;; 6702 6703 *nto* | *qnx*) 6704 lt_cv_deplibs_check_method=pass_all 6705 ;; 6706 6707 openbsd*) 6708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6710 else 6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6712 fi 6713 ;; 6714 6715 osf3* | osf4* | osf5*) 6716 lt_cv_deplibs_check_method=pass_all 6717 ;; 6718 6719 rdos*) 6720 lt_cv_deplibs_check_method=pass_all 6721 ;; 6722 6723 solaris*) 6724 lt_cv_deplibs_check_method=pass_all 6725 ;; 6726 6727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6728 lt_cv_deplibs_check_method=pass_all 6729 ;; 6730 6731 sysv4 | sysv4.3*) 6732 case $host_vendor in 6733 motorola) 6734 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]' 6735 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6736 ;; 6737 ncr) 6738 lt_cv_deplibs_check_method=pass_all 6739 ;; 6740 sequent) 6741 lt_cv_file_magic_cmd='/bin/file' 6742 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6743 ;; 6744 sni) 6745 lt_cv_file_magic_cmd='/bin/file' 6746 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6747 lt_cv_file_magic_test_file=/lib/libc.so 6748 ;; 6749 siemens) 6750 lt_cv_deplibs_check_method=pass_all 6751 ;; 6752 pc) 6753 lt_cv_deplibs_check_method=pass_all 6754 ;; 6755 esac 6756 ;; 6757 6758 tpf*) 6759 lt_cv_deplibs_check_method=pass_all 6760 ;; 6761 esac 6762 6763 fi 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6765 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6766 file_magic_cmd=$lt_cv_file_magic_cmd 6767 deplibs_check_method=$lt_cv_deplibs_check_method 6768 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 if test -n "$ac_tool_prefix"; then 6782 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6783 set dummy ${ac_tool_prefix}ar; ac_word=$2 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6785 $as_echo_n "checking for $ac_word... " >&6; } 6786 if test "${ac_cv_prog_AR+set}" = set; then : 6787 $as_echo_n "(cached) " >&6 6788 else 6789 if test -n "$AR"; then 6790 ac_cv_prog_AR="$AR" # Let the user override the test. 6791 else 6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6793 for as_dir in $PATH 6794 do 6795 IFS=$as_save_IFS 6796 test -z "$as_dir" && as_dir=. 6797 for ac_exec_ext in '' $ac_executable_extensions; do 6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6799 ac_cv_prog_AR="${ac_tool_prefix}ar" 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6801 break 2 6802 fi 6803 done 6804 done 6805 IFS=$as_save_IFS 6806 6807 fi 6808 fi 6809 AR=$ac_cv_prog_AR 6810 if test -n "$AR"; then 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6812 $as_echo "$AR" >&6; } 6813 else 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6815 $as_echo "no" >&6; } 6816 fi 6817 6818 6819 fi 6820 if test -z "$ac_cv_prog_AR"; then 6821 ac_ct_AR=$AR 6822 # Extract the first word of "ar", so it can be a program name with args. 6823 set dummy ar; ac_word=$2 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6825 $as_echo_n "checking for $ac_word... " >&6; } 6826 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6827 $as_echo_n "(cached) " >&6 6828 else 6829 if test -n "$ac_ct_AR"; then 6830 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6831 else 6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833 for as_dir in $PATH 6834 do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6839 ac_cv_prog_ac_ct_AR="ar" 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843 done 6844 done 6845 IFS=$as_save_IFS 6846 6847 fi 6848 fi 6849 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6850 if test -n "$ac_ct_AR"; then 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6852 $as_echo "$ac_ct_AR" >&6; } 6853 else 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6855 $as_echo "no" >&6; } 6856 fi 6857 6858 if test "x$ac_ct_AR" = x; then 6859 AR="false" 6860 else 6861 case $cross_compiling:$ac_tool_warned in 6862 yes:) 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6865 ac_tool_warned=yes ;; 6866 esac 6867 AR=$ac_ct_AR 6868 fi 6869 else 6870 AR="$ac_cv_prog_AR" 6871 fi 6872 6873 test -z "$AR" && AR=ar 6874 test -z "$AR_FLAGS" && AR_FLAGS=cru 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 if test -n "$ac_tool_prefix"; then 6887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6888 set dummy ${ac_tool_prefix}strip; ac_word=$2 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6890 $as_echo_n "checking for $ac_word... " >&6; } 6891 if test "${ac_cv_prog_STRIP+set}" = set; then : 6892 $as_echo_n "(cached) " >&6 6893 else 6894 if test -n "$STRIP"; then 6895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6896 else 6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6898 for as_dir in $PATH 6899 do 6900 IFS=$as_save_IFS 6901 test -z "$as_dir" && as_dir=. 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6904 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6906 break 2 6907 fi 6908 done 6909 done 6910 IFS=$as_save_IFS 6911 6912 fi 6913 fi 6914 STRIP=$ac_cv_prog_STRIP 6915 if test -n "$STRIP"; then 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6917 $as_echo "$STRIP" >&6; } 6918 else 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6920 $as_echo "no" >&6; } 6921 fi 6922 6923 6924 fi 6925 if test -z "$ac_cv_prog_STRIP"; then 6926 ac_ct_STRIP=$STRIP 6927 # Extract the first word of "strip", so it can be a program name with args. 6928 set dummy strip; ac_word=$2 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6930 $as_echo_n "checking for $ac_word... " >&6; } 6931 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6932 $as_echo_n "(cached) " >&6 6933 else 6934 if test -n "$ac_ct_STRIP"; then 6935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6936 else 6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6938 for as_dir in $PATH 6939 do 6940 IFS=$as_save_IFS 6941 test -z "$as_dir" && as_dir=. 6942 for ac_exec_ext in '' $ac_executable_extensions; do 6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6944 ac_cv_prog_ac_ct_STRIP="strip" 6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6946 break 2 6947 fi 6948 done 6949 done 6950 IFS=$as_save_IFS 6951 6952 fi 6953 fi 6954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6955 if test -n "$ac_ct_STRIP"; then 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6957 $as_echo "$ac_ct_STRIP" >&6; } 6958 else 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6960 $as_echo "no" >&6; } 6961 fi 6962 6963 if test "x$ac_ct_STRIP" = x; then 6964 STRIP=":" 6965 else 6966 case $cross_compiling:$ac_tool_warned in 6967 yes:) 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6970 ac_tool_warned=yes ;; 6971 esac 6972 STRIP=$ac_ct_STRIP 6973 fi 6974 else 6975 STRIP="$ac_cv_prog_STRIP" 6976 fi 6977 6978 test -z "$STRIP" && STRIP=: 6979 6980 6981 6982 6983 6984 6985 if test -n "$ac_tool_prefix"; then 6986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6989 $as_echo_n "checking for $ac_word... " >&6; } 6990 if test "${ac_cv_prog_RANLIB+set}" = set; then : 6991 $as_echo_n "(cached) " >&6 6992 else 6993 if test -n "$RANLIB"; then 6994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6995 else 6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6997 for as_dir in $PATH 6998 do 6999 IFS=$as_save_IFS 7000 test -z "$as_dir" && as_dir=. 7001 for ac_exec_ext in '' $ac_executable_extensions; do 7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7005 break 2 7006 fi 7007 done 7008 done 7009 IFS=$as_save_IFS 7010 7011 fi 7012 fi 7013 RANLIB=$ac_cv_prog_RANLIB 7014 if test -n "$RANLIB"; then 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7016 $as_echo "$RANLIB" >&6; } 7017 else 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7019 $as_echo "no" >&6; } 7020 fi 7021 7022 7023 fi 7024 if test -z "$ac_cv_prog_RANLIB"; then 7025 ac_ct_RANLIB=$RANLIB 7026 # Extract the first word of "ranlib", so it can be a program name with args. 7027 set dummy ranlib; ac_word=$2 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7029 $as_echo_n "checking for $ac_word... " >&6; } 7030 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7031 $as_echo_n "(cached) " >&6 7032 else 7033 if test -n "$ac_ct_RANLIB"; then 7034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7035 else 7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037 for as_dir in $PATH 7038 do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7043 ac_cv_prog_ac_ct_RANLIB="ranlib" 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047 done 7048 done 7049 IFS=$as_save_IFS 7050 7051 fi 7052 fi 7053 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7054 if test -n "$ac_ct_RANLIB"; then 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7056 $as_echo "$ac_ct_RANLIB" >&6; } 7057 else 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7059 $as_echo "no" >&6; } 7060 fi 7061 7062 if test "x$ac_ct_RANLIB" = x; then 7063 RANLIB=":" 7064 else 7065 case $cross_compiling:$ac_tool_warned in 7066 yes:) 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7069 ac_tool_warned=yes ;; 7070 esac 7071 RANLIB=$ac_ct_RANLIB 7072 fi 7073 else 7074 RANLIB="$ac_cv_prog_RANLIB" 7075 fi 7076 7077 test -z "$RANLIB" && RANLIB=: 7078 7079 7080 7081 7082 7083 7084 # Determine commands to create old-style static archives. 7085 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7086 old_postinstall_cmds='chmod 644 $oldlib' 7087 old_postuninstall_cmds= 7088 7089 if test -n "$RANLIB"; then 7090 case $host_os in 7091 openbsd*) 7092 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7093 ;; 7094 *) 7095 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7096 ;; 7097 esac 7098 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7099 fi 7100 7101 case $host_os in 7102 darwin*) 7103 lock_old_archive_extraction=yes ;; 7104 *) 7105 lock_old_archive_extraction=no ;; 7106 esac 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 # If no C compiler was specified, use CC. 7147 LTCC=${LTCC-"$CC"} 7148 7149 # If no C compiler flags were specified, use CFLAGS. 7150 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7151 7152 # Allow CC to be a program name with arguments. 7153 compiler=$CC 7154 7155 7156 # Check for command to grab the raw symbol name followed by C symbol from nm. 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7158 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7159 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7160 $as_echo_n "(cached) " >&6 7161 else 7162 7163 # These are sane defaults that work on at least a few old systems. 7164 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7165 7166 # Character class describing NM global symbol codes. 7167 symcode='[BCDEGRST]' 7168 7169 # Regexp to match symbols that can be accessed directly from C. 7170 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7171 7172 # Define system-specific variables. 7173 case $host_os in 7174 aix*) 7175 symcode='[BCDT]' 7176 ;; 7177 cygwin* | mingw* | pw32* | cegcc*) 7178 symcode='[ABCDGISTW]' 7179 ;; 7180 hpux*) 7181 if test "$host_cpu" = ia64; then 7182 symcode='[ABCDEGRST]' 7183 fi 7184 ;; 7185 irix* | nonstopux*) 7186 symcode='[BCDEGRST]' 7187 ;; 7188 osf*) 7189 symcode='[BCDEGQRST]' 7190 ;; 7191 solaris*) 7192 symcode='[BDRT]' 7193 ;; 7194 sco3.2v5*) 7195 symcode='[DT]' 7196 ;; 7197 sysv4.2uw2*) 7198 symcode='[DT]' 7199 ;; 7200 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7201 symcode='[ABDT]' 7202 ;; 7203 sysv4) 7204 symcode='[DFNSTU]' 7205 ;; 7206 esac 7207 7208 # If we're using GNU nm, then use its standard symbol codes. 7209 case `$NM -V 2>&1` in 7210 *GNU* | *'with BFD'*) 7211 symcode='[ABCDGIRSTW]' ;; 7212 esac 7213 7214 # Transform an extracted symbol line into a proper C declaration. 7215 # Some systems (esp. on ia64) link data and code symbols differently, 7216 # so use this general approach. 7217 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7218 7219 # Transform an extracted symbol line into symbol name and symbol address 7220 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7221 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7222 7223 # Handle CRLF in mingw tool chain 7224 opt_cr= 7225 case $build_os in 7226 mingw*) 7227 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7228 ;; 7229 esac 7230 7231 # Try without a prefix underscore, then with it. 7232 for ac_symprfx in "" "_"; do 7233 7234 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7235 symxfrm="\\1 $ac_symprfx\\2 \\2" 7236 7237 # Write the raw and C identifiers. 7238 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7239 # Fake it for dumpbin and say T for any non-static function 7240 # and D for any global variable. 7241 # Also find C++ and __fastcall symbols from MSVC++, 7242 # which start with @ or ?. 7243 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7244 " {last_section=section; section=\$ 3};"\ 7245 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7246 " \$ 0!~/External *\|/{next};"\ 7247 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7248 " {if(hide[section]) next};"\ 7249 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7250 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7251 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7252 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7253 " ' prfx=^$ac_symprfx" 7254 else 7255 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7256 fi 7257 7258 # Check to see that the pipe works correctly. 7259 pipe_works=no 7260 7261 rm -f conftest* 7262 cat > conftest.$ac_ext <<_LT_EOF 7263 #ifdef __cplusplus 7264 extern "C" { 7265 #endif 7266 char nm_test_var; 7267 void nm_test_func(void); 7268 void nm_test_func(void){} 7269 #ifdef __cplusplus 7270 } 7271 #endif 7272 int main(){nm_test_var='a';nm_test_func();return(0);} 7273 _LT_EOF 7274 7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7276 (eval $ac_compile) 2>&5 7277 ac_status=$? 7278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7279 test $ac_status = 0; }; then 7280 # Now try to grab the symbols. 7281 nlist=conftest.nm 7282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7283 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7284 ac_status=$? 7285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7286 test $ac_status = 0; } && test -s "$nlist"; then 7287 # Try sorting and uniquifying the output. 7288 if sort "$nlist" | uniq > "$nlist"T; then 7289 mv -f "$nlist"T "$nlist" 7290 else 7291 rm -f "$nlist"T 7292 fi 7293 7294 # Make sure that we snagged all the symbols we need. 7295 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7296 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7297 cat <<_LT_EOF > conftest.$ac_ext 7298 #ifdef __cplusplus 7299 extern "C" { 7300 #endif 7301 7302 _LT_EOF 7303 # Now generate the symbol file. 7304 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7305 7306 cat <<_LT_EOF >> conftest.$ac_ext 7307 7308 /* The mapping between symbol names and symbols. */ 7309 const struct { 7310 const char *name; 7311 void *address; 7312 } 7313 lt__PROGRAM__LTX_preloaded_symbols[] = 7314 { 7315 { "@PROGRAM@", (void *) 0 }, 7316 _LT_EOF 7317 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7318 cat <<\_LT_EOF >> conftest.$ac_ext 7319 {0, (void *) 0} 7320 }; 7321 7322 /* This works around a problem in FreeBSD linker */ 7323 #ifdef FREEBSD_WORKAROUND 7324 static const void *lt_preloaded_setup() { 7325 return lt__PROGRAM__LTX_preloaded_symbols; 7326 } 7327 #endif 7328 7329 #ifdef __cplusplus 7330 } 7331 #endif 7332 _LT_EOF 7333 # Now try linking the two files. 7334 mv conftest.$ac_objext conftstm.$ac_objext 7335 lt_save_LIBS="$LIBS" 7336 lt_save_CFLAGS="$CFLAGS" 7337 LIBS="conftstm.$ac_objext" 7338 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7340 (eval $ac_link) 2>&5 7341 ac_status=$? 7342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7343 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7344 pipe_works=yes 7345 fi 7346 LIBS="$lt_save_LIBS" 7347 CFLAGS="$lt_save_CFLAGS" 7348 else 7349 echo "cannot find nm_test_func in $nlist" >&5 7350 fi 7351 else 7352 echo "cannot find nm_test_var in $nlist" >&5 7353 fi 7354 else 7355 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7356 fi 7357 else 7358 echo "$progname: failed program was:" >&5 7359 cat conftest.$ac_ext >&5 7360 fi 7361 rm -rf conftest* conftst* 7362 7363 # Do not use the global_symbol_pipe unless it works. 7364 if test "$pipe_works" = yes; then 7365 break 7366 else 7367 lt_cv_sys_global_symbol_pipe= 7368 fi 7369 done 7370 7371 fi 7372 7373 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7374 lt_cv_sys_global_symbol_to_cdecl= 7375 fi 7376 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7378 $as_echo "failed" >&6; } 7379 else 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7381 $as_echo "ok" >&6; } 7382 fi 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 # Check whether --enable-libtool-lock was given. 7406 if test "${enable_libtool_lock+set}" = set; then : 7407 enableval=$enable_libtool_lock; 7408 fi 7409 7410 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7411 7412 # Some flags need to be propagated to the compiler or linker for good 7413 # libtool support. 7414 case $host in 7415 ia64-*-hpux*) 7416 # Find out which ABI we are using. 7417 echo 'int i;' > conftest.$ac_ext 7418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7419 (eval $ac_compile) 2>&5 7420 ac_status=$? 7421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7422 test $ac_status = 0; }; then 7423 case `/usr/bin/file conftest.$ac_objext` in 7424 *ELF-32*) 7425 HPUX_IA64_MODE="32" 7426 ;; 7427 *ELF-64*) 7428 HPUX_IA64_MODE="64" 7429 ;; 7430 esac 7431 fi 7432 rm -rf conftest* 7433 ;; 7434 *-*-irix6*) 7435 # Find out which ABI we are using. 7436 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7438 (eval $ac_compile) 2>&5 7439 ac_status=$? 7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7441 test $ac_status = 0; }; then 7442 if test "$lt_cv_prog_gnu_ld" = yes; then 7443 case `/usr/bin/file conftest.$ac_objext` in 7444 *32-bit*) 7445 LD="${LD-ld} -melf32bsmip" 7446 ;; 7447 *N32*) 7448 LD="${LD-ld} -melf32bmipn32" 7449 ;; 7450 *64-bit*) 7451 LD="${LD-ld} -melf64bmip" 7452 ;; 7453 esac 7454 else 7455 case `/usr/bin/file conftest.$ac_objext` in 7456 *32-bit*) 7457 LD="${LD-ld} -32" 7458 ;; 7459 *N32*) 7460 LD="${LD-ld} -n32" 7461 ;; 7462 *64-bit*) 7463 LD="${LD-ld} -64" 7464 ;; 7465 esac 7466 fi 7467 fi 7468 rm -rf conftest* 7469 ;; 7470 7471 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7472 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7473 # Find out which ABI we are using. 7474 echo 'int i;' > conftest.$ac_ext 7475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7476 (eval $ac_compile) 2>&5 7477 ac_status=$? 7478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7479 test $ac_status = 0; }; then 7480 case `/usr/bin/file conftest.o` in 7481 *32-bit*) 7482 case $host in 7483 x86_64-*kfreebsd*-gnu) 7484 LD="${LD-ld} -m elf_i386_fbsd" 7485 ;; 7486 x86_64-*linux*) 7487 case `/usr/bin/file conftest.o` in 7488 *x86-64*) 7489 LD="${LD-ld} -m elf32_x86_64" 7490 ;; 7491 *) 7492 LD="${LD-ld} -m elf_i386" 7493 ;; 7494 esac 7495 ;; 7496 powerpc64le-*linux*) 7497 LD="${LD-ld} -m elf32lppclinux" 7498 ;; 7499 powerpc64-*linux*) 7500 LD="${LD-ld} -m elf32ppclinux" 7501 ;; 7502 s390x-*linux*) 7503 LD="${LD-ld} -m elf_s390" 7504 ;; 7505 sparc64-*linux*) 7506 LD="${LD-ld} -m elf32_sparc" 7507 ;; 7508 esac 7509 ;; 7510 *64-bit*) 7511 case $host in 7512 x86_64-*kfreebsd*-gnu) 7513 LD="${LD-ld} -m elf_x86_64_fbsd" 7514 ;; 7515 x86_64-*linux*) 7516 LD="${LD-ld} -m elf_x86_64" 7517 ;; 7518 powerpcle-*linux*) 7519 LD="${LD-ld} -m elf64lppc" 7520 ;; 7521 powerpc-*linux*) 7522 LD="${LD-ld} -m elf64ppc" 7523 ;; 7524 s390*-*linux*|s390*-*tpf*) 7525 LD="${LD-ld} -m elf64_s390" 7526 ;; 7527 sparc*-*linux*) 7528 LD="${LD-ld} -m elf64_sparc" 7529 ;; 7530 esac 7531 ;; 7532 esac 7533 fi 7534 rm -rf conftest* 7535 ;; 7536 7537 *-*-sco3.2v5*) 7538 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7539 SAVE_CFLAGS="$CFLAGS" 7540 CFLAGS="$CFLAGS -belf" 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7542 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7543 if test "${lt_cv_cc_needs_belf+set}" = set; then : 7544 $as_echo_n "(cached) " >&6 7545 else 7546 ac_ext=c 7547 ac_cpp='$CPP $CPPFLAGS' 7548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7550 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7551 7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7553 /* end confdefs.h. */ 7554 7555 int 7556 main () 7557 { 7558 7559 ; 7560 return 0; 7561 } 7562 _ACEOF 7563 if ac_fn_c_try_link "$LINENO"; then : 7564 lt_cv_cc_needs_belf=yes 7565 else 7566 lt_cv_cc_needs_belf=no 7567 fi 7568 rm -f core conftest.err conftest.$ac_objext \ 7569 conftest$ac_exeext conftest.$ac_ext 7570 ac_ext=c 7571 ac_cpp='$CPP $CPPFLAGS' 7572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7574 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7575 7576 fi 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7578 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7579 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7580 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7581 CFLAGS="$SAVE_CFLAGS" 7582 fi 7583 ;; 7584 sparc*-*solaris*) 7585 # Find out which ABI we are using. 7586 echo 'int i;' > conftest.$ac_ext 7587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7588 (eval $ac_compile) 2>&5 7589 ac_status=$? 7590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7591 test $ac_status = 0; }; then 7592 case `/usr/bin/file conftest.o` in 7593 *64-bit*) 7594 case $lt_cv_prog_gnu_ld in 7595 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7596 *) 7597 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7598 LD="${LD-ld} -64" 7599 fi 7600 ;; 7601 esac 7602 ;; 7603 esac 7604 fi 7605 rm -rf conftest* 7606 ;; 7607 esac 7608 7609 need_locks="$enable_libtool_lock" 7610 7611 7612 case $host_os in 7613 rhapsody* | darwin*) 7614 if test -n "$ac_tool_prefix"; then 7615 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7616 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7618 $as_echo_n "checking for $ac_word... " >&6; } 7619 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7620 $as_echo_n "(cached) " >&6 7621 else 7622 if test -n "$DSYMUTIL"; then 7623 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7624 else 7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7626 for as_dir in $PATH 7627 do 7628 IFS=$as_save_IFS 7629 test -z "$as_dir" && as_dir=. 7630 for ac_exec_ext in '' $ac_executable_extensions; do 7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7632 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7634 break 2 7635 fi 7636 done 7637 done 7638 IFS=$as_save_IFS 7639 7640 fi 7641 fi 7642 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7643 if test -n "$DSYMUTIL"; then 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7645 $as_echo "$DSYMUTIL" >&6; } 7646 else 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7648 $as_echo "no" >&6; } 7649 fi 7650 7651 7652 fi 7653 if test -z "$ac_cv_prog_DSYMUTIL"; then 7654 ac_ct_DSYMUTIL=$DSYMUTIL 7655 # Extract the first word of "dsymutil", so it can be a program name with args. 7656 set dummy dsymutil; ac_word=$2 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7658 $as_echo_n "checking for $ac_word... " >&6; } 7659 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7660 $as_echo_n "(cached) " >&6 7661 else 7662 if test -n "$ac_ct_DSYMUTIL"; then 7663 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7664 else 7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7666 for as_dir in $PATH 7667 do 7668 IFS=$as_save_IFS 7669 test -z "$as_dir" && as_dir=. 7670 for ac_exec_ext in '' $ac_executable_extensions; do 7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7672 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7674 break 2 7675 fi 7676 done 7677 done 7678 IFS=$as_save_IFS 7679 7680 fi 7681 fi 7682 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7683 if test -n "$ac_ct_DSYMUTIL"; then 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7685 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7686 else 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7688 $as_echo "no" >&6; } 7689 fi 7690 7691 if test "x$ac_ct_DSYMUTIL" = x; then 7692 DSYMUTIL=":" 7693 else 7694 case $cross_compiling:$ac_tool_warned in 7695 yes:) 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7698 ac_tool_warned=yes ;; 7699 esac 7700 DSYMUTIL=$ac_ct_DSYMUTIL 7701 fi 7702 else 7703 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7704 fi 7705 7706 if test -n "$ac_tool_prefix"; then 7707 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7708 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7710 $as_echo_n "checking for $ac_word... " >&6; } 7711 if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7712 $as_echo_n "(cached) " >&6 7713 else 7714 if test -n "$NMEDIT"; then 7715 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7716 else 7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7718 for as_dir in $PATH 7719 do 7720 IFS=$as_save_IFS 7721 test -z "$as_dir" && as_dir=. 7722 for ac_exec_ext in '' $ac_executable_extensions; do 7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7724 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7726 break 2 7727 fi 7728 done 7729 done 7730 IFS=$as_save_IFS 7731 7732 fi 7733 fi 7734 NMEDIT=$ac_cv_prog_NMEDIT 7735 if test -n "$NMEDIT"; then 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7737 $as_echo "$NMEDIT" >&6; } 7738 else 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7740 $as_echo "no" >&6; } 7741 fi 7742 7743 7744 fi 7745 if test -z "$ac_cv_prog_NMEDIT"; then 7746 ac_ct_NMEDIT=$NMEDIT 7747 # Extract the first word of "nmedit", so it can be a program name with args. 7748 set dummy nmedit; ac_word=$2 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7750 $as_echo_n "checking for $ac_word... " >&6; } 7751 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7752 $as_echo_n "(cached) " >&6 7753 else 7754 if test -n "$ac_ct_NMEDIT"; then 7755 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7756 else 7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7758 for as_dir in $PATH 7759 do 7760 IFS=$as_save_IFS 7761 test -z "$as_dir" && as_dir=. 7762 for ac_exec_ext in '' $ac_executable_extensions; do 7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7764 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7766 break 2 7767 fi 7768 done 7769 done 7770 IFS=$as_save_IFS 7771 7772 fi 7773 fi 7774 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7775 if test -n "$ac_ct_NMEDIT"; then 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7777 $as_echo "$ac_ct_NMEDIT" >&6; } 7778 else 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7780 $as_echo "no" >&6; } 7781 fi 7782 7783 if test "x$ac_ct_NMEDIT" = x; then 7784 NMEDIT=":" 7785 else 7786 case $cross_compiling:$ac_tool_warned in 7787 yes:) 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7790 ac_tool_warned=yes ;; 7791 esac 7792 NMEDIT=$ac_ct_NMEDIT 7793 fi 7794 else 7795 NMEDIT="$ac_cv_prog_NMEDIT" 7796 fi 7797 7798 if test -n "$ac_tool_prefix"; then 7799 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7800 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7802 $as_echo_n "checking for $ac_word... " >&6; } 7803 if test "${ac_cv_prog_LIPO+set}" = set; then : 7804 $as_echo_n "(cached) " >&6 7805 else 7806 if test -n "$LIPO"; then 7807 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7808 else 7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7810 for as_dir in $PATH 7811 do 7812 IFS=$as_save_IFS 7813 test -z "$as_dir" && as_dir=. 7814 for ac_exec_ext in '' $ac_executable_extensions; do 7815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7816 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7818 break 2 7819 fi 7820 done 7821 done 7822 IFS=$as_save_IFS 7823 7824 fi 7825 fi 7826 LIPO=$ac_cv_prog_LIPO 7827 if test -n "$LIPO"; then 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7829 $as_echo "$LIPO" >&6; } 7830 else 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7832 $as_echo "no" >&6; } 7833 fi 7834 7835 7836 fi 7837 if test -z "$ac_cv_prog_LIPO"; then 7838 ac_ct_LIPO=$LIPO 7839 # Extract the first word of "lipo", so it can be a program name with args. 7840 set dummy lipo; ac_word=$2 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7842 $as_echo_n "checking for $ac_word... " >&6; } 7843 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7844 $as_echo_n "(cached) " >&6 7845 else 7846 if test -n "$ac_ct_LIPO"; then 7847 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7848 else 7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7850 for as_dir in $PATH 7851 do 7852 IFS=$as_save_IFS 7853 test -z "$as_dir" && as_dir=. 7854 for ac_exec_ext in '' $ac_executable_extensions; do 7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7856 ac_cv_prog_ac_ct_LIPO="lipo" 7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7858 break 2 7859 fi 7860 done 7861 done 7862 IFS=$as_save_IFS 7863 7864 fi 7865 fi 7866 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7867 if test -n "$ac_ct_LIPO"; then 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7869 $as_echo "$ac_ct_LIPO" >&6; } 7870 else 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7872 $as_echo "no" >&6; } 7873 fi 7874 7875 if test "x$ac_ct_LIPO" = x; then 7876 LIPO=":" 7877 else 7878 case $cross_compiling:$ac_tool_warned in 7879 yes:) 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7882 ac_tool_warned=yes ;; 7883 esac 7884 LIPO=$ac_ct_LIPO 7885 fi 7886 else 7887 LIPO="$ac_cv_prog_LIPO" 7888 fi 7889 7890 if test -n "$ac_tool_prefix"; then 7891 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7892 set dummy ${ac_tool_prefix}otool; ac_word=$2 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7894 $as_echo_n "checking for $ac_word... " >&6; } 7895 if test "${ac_cv_prog_OTOOL+set}" = set; then : 7896 $as_echo_n "(cached) " >&6 7897 else 7898 if test -n "$OTOOL"; then 7899 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7900 else 7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7902 for as_dir in $PATH 7903 do 7904 IFS=$as_save_IFS 7905 test -z "$as_dir" && as_dir=. 7906 for ac_exec_ext in '' $ac_executable_extensions; do 7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7908 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7910 break 2 7911 fi 7912 done 7913 done 7914 IFS=$as_save_IFS 7915 7916 fi 7917 fi 7918 OTOOL=$ac_cv_prog_OTOOL 7919 if test -n "$OTOOL"; then 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7921 $as_echo "$OTOOL" >&6; } 7922 else 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7924 $as_echo "no" >&6; } 7925 fi 7926 7927 7928 fi 7929 if test -z "$ac_cv_prog_OTOOL"; then 7930 ac_ct_OTOOL=$OTOOL 7931 # Extract the first word of "otool", so it can be a program name with args. 7932 set dummy otool; ac_word=$2 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7934 $as_echo_n "checking for $ac_word... " >&6; } 7935 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7936 $as_echo_n "(cached) " >&6 7937 else 7938 if test -n "$ac_ct_OTOOL"; then 7939 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7940 else 7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7942 for as_dir in $PATH 7943 do 7944 IFS=$as_save_IFS 7945 test -z "$as_dir" && as_dir=. 7946 for ac_exec_ext in '' $ac_executable_extensions; do 7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7948 ac_cv_prog_ac_ct_OTOOL="otool" 7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7950 break 2 7951 fi 7952 done 7953 done 7954 IFS=$as_save_IFS 7955 7956 fi 7957 fi 7958 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7959 if test -n "$ac_ct_OTOOL"; then 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7961 $as_echo "$ac_ct_OTOOL" >&6; } 7962 else 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7964 $as_echo "no" >&6; } 7965 fi 7966 7967 if test "x$ac_ct_OTOOL" = x; then 7968 OTOOL=":" 7969 else 7970 case $cross_compiling:$ac_tool_warned in 7971 yes:) 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7974 ac_tool_warned=yes ;; 7975 esac 7976 OTOOL=$ac_ct_OTOOL 7977 fi 7978 else 7979 OTOOL="$ac_cv_prog_OTOOL" 7980 fi 7981 7982 if test -n "$ac_tool_prefix"; then 7983 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7984 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7986 $as_echo_n "checking for $ac_word... " >&6; } 7987 if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7988 $as_echo_n "(cached) " >&6 7989 else 7990 if test -n "$OTOOL64"; then 7991 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7992 else 7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7994 for as_dir in $PATH 7995 do 7996 IFS=$as_save_IFS 7997 test -z "$as_dir" && as_dir=. 7998 for ac_exec_ext in '' $ac_executable_extensions; do 7999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8000 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8002 break 2 8003 fi 8004 done 8005 done 8006 IFS=$as_save_IFS 8007 8008 fi 8009 fi 8010 OTOOL64=$ac_cv_prog_OTOOL64 8011 if test -n "$OTOOL64"; then 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8013 $as_echo "$OTOOL64" >&6; } 8014 else 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8016 $as_echo "no" >&6; } 8017 fi 8018 8019 8020 fi 8021 if test -z "$ac_cv_prog_OTOOL64"; then 8022 ac_ct_OTOOL64=$OTOOL64 8023 # Extract the first word of "otool64", so it can be a program name with args. 8024 set dummy otool64; ac_word=$2 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8026 $as_echo_n "checking for $ac_word... " >&6; } 8027 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 8028 $as_echo_n "(cached) " >&6 8029 else 8030 if test -n "$ac_ct_OTOOL64"; then 8031 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8032 else 8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8034 for as_dir in $PATH 8035 do 8036 IFS=$as_save_IFS 8037 test -z "$as_dir" && as_dir=. 8038 for ac_exec_ext in '' $ac_executable_extensions; do 8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8040 ac_cv_prog_ac_ct_OTOOL64="otool64" 8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8042 break 2 8043 fi 8044 done 8045 done 8046 IFS=$as_save_IFS 8047 8048 fi 8049 fi 8050 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8051 if test -n "$ac_ct_OTOOL64"; then 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8053 $as_echo "$ac_ct_OTOOL64" >&6; } 8054 else 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8056 $as_echo "no" >&6; } 8057 fi 8058 8059 if test "x$ac_ct_OTOOL64" = x; then 8060 OTOOL64=":" 8061 else 8062 case $cross_compiling:$ac_tool_warned in 8063 yes:) 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8066 ac_tool_warned=yes ;; 8067 esac 8068 OTOOL64=$ac_ct_OTOOL64 8069 fi 8070 else 8071 OTOOL64="$ac_cv_prog_OTOOL64" 8072 fi 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8101 $as_echo_n "checking for -single_module linker flag... " >&6; } 8102 if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8103 $as_echo_n "(cached) " >&6 8104 else 8105 lt_cv_apple_cc_single_mod=no 8106 if test -z "${LT_MULTI_MODULE}"; then 8107 # By default we will add the -single_module flag. You can override 8108 # by either setting the environment variable LT_MULTI_MODULE 8109 # non-empty at configure time, or by adding -multi_module to the 8110 # link flags. 8111 rm -rf libconftest.dylib* 8112 echo "int foo(void){return 1;}" > conftest.c 8113 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8114 -dynamiclib -Wl,-single_module conftest.c" >&5 8115 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8116 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8117 _lt_result=$? 8118 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8119 lt_cv_apple_cc_single_mod=yes 8120 else 8121 cat conftest.err >&5 8122 fi 8123 rm -rf libconftest.dylib* 8124 rm -f conftest.* 8125 fi 8126 fi 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8128 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8130 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8131 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8132 $as_echo_n "(cached) " >&6 8133 else 8134 lt_cv_ld_exported_symbols_list=no 8135 save_LDFLAGS=$LDFLAGS 8136 echo "_main" > conftest.sym 8137 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8139 /* end confdefs.h. */ 8140 8141 int 8142 main () 8143 { 8144 8145 ; 8146 return 0; 8147 } 8148 _ACEOF 8149 if ac_fn_c_try_link "$LINENO"; then : 8150 lt_cv_ld_exported_symbols_list=yes 8151 else 8152 lt_cv_ld_exported_symbols_list=no 8153 fi 8154 rm -f core conftest.err conftest.$ac_objext \ 8155 conftest$ac_exeext conftest.$ac_ext 8156 LDFLAGS="$save_LDFLAGS" 8157 8158 fi 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8160 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8162 $as_echo_n "checking for -force_load linker flag... " >&6; } 8163 if test "${lt_cv_ld_force_load+set}" = set; then : 8164 $as_echo_n "(cached) " >&6 8165 else 8166 lt_cv_ld_force_load=no 8167 cat > conftest.c << _LT_EOF 8168 int forced_loaded() { return 2;} 8169 _LT_EOF 8170 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8171 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8172 echo "$AR cru libconftest.a conftest.o" >&5 8173 $AR cru libconftest.a conftest.o 2>&5 8174 cat > conftest.c << _LT_EOF 8175 int main() { return 0;} 8176 _LT_EOF 8177 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8178 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8179 _lt_result=$? 8180 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8181 lt_cv_ld_force_load=yes 8182 else 8183 cat conftest.err >&5 8184 fi 8185 rm -f conftest.err libconftest.a conftest conftest.c 8186 rm -rf conftest.dSYM 8187 8188 fi 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8190 $as_echo "$lt_cv_ld_force_load" >&6; } 8191 case $host_os in 8192 rhapsody* | darwin1.[012]) 8193 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8194 darwin1.*) 8195 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8196 darwin*) # darwin 5.x on 8197 # if running on 10.5 or later, the deployment target defaults 8198 # to the OS version, if on x86, and 10.4, the deployment 8199 # target defaults to 10.4. Don't you love it? 8200 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8201 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8202 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8203 10.[012]*) 8204 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8205 10.*) 8206 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8207 esac 8208 ;; 8209 esac 8210 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8211 _lt_dar_single_mod='$single_module' 8212 fi 8213 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8214 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8215 else 8216 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8217 fi 8218 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8219 _lt_dsymutil='~$DSYMUTIL $lib || :' 8220 else 8221 _lt_dsymutil= 8222 fi 8223 ;; 8224 esac 8225 8226 for ac_header in dlfcn.h 8227 do : 8228 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8229 " 8230 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8231 cat >>confdefs.h <<_ACEOF 8232 #define HAVE_DLFCN_H 1 8233 _ACEOF 8234 8235 fi 8236 8237 done 8238 8239 8240 8241 8242 8243 8244 # Set options 8245 8246 8247 8248 enable_dlopen=no 8249 8250 8251 enable_win32_dll=no 8252 8253 8254 # Check whether --enable-shared was given. 8255 if test "${enable_shared+set}" = set; then : 8256 enableval=$enable_shared; p=${PACKAGE-default} 8257 case $enableval in 8258 yes) enable_shared=yes ;; 8259 no) enable_shared=no ;; 8260 *) 8261 enable_shared=no 8262 # Look at the argument we got. We use all the common list separators. 8263 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8264 for pkg in $enableval; do 8265 IFS="$lt_save_ifs" 8266 if test "X$pkg" = "X$p"; then 8267 enable_shared=yes 8268 fi 8269 done 8270 IFS="$lt_save_ifs" 8271 ;; 8272 esac 8273 else 8274 enable_shared=yes 8275 fi 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 # Check whether --enable-static was given. 8286 if test "${enable_static+set}" = set; then : 8287 enableval=$enable_static; p=${PACKAGE-default} 8288 case $enableval in 8289 yes) enable_static=yes ;; 8290 no) enable_static=no ;; 8291 *) 8292 enable_static=no 8293 # Look at the argument we got. We use all the common list separators. 8294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8295 for pkg in $enableval; do 8296 IFS="$lt_save_ifs" 8297 if test "X$pkg" = "X$p"; then 8298 enable_static=yes 8299 fi 8300 done 8301 IFS="$lt_save_ifs" 8302 ;; 8303 esac 8304 else 8305 enable_static=yes 8306 fi 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 # Check whether --with-pic was given. 8318 if test "${with_pic+set}" = set; then : 8319 withval=$with_pic; pic_mode="$withval" 8320 else 8321 pic_mode=default 8322 fi 8323 8324 8325 test -z "$pic_mode" && pic_mode=default 8326 8327 8328 8329 8330 8331 8332 8333 # Check whether --enable-fast-install was given. 8334 if test "${enable_fast_install+set}" = set; then : 8335 enableval=$enable_fast_install; p=${PACKAGE-default} 8336 case $enableval in 8337 yes) enable_fast_install=yes ;; 8338 no) enable_fast_install=no ;; 8339 *) 8340 enable_fast_install=no 8341 # Look at the argument we got. We use all the common list separators. 8342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8343 for pkg in $enableval; do 8344 IFS="$lt_save_ifs" 8345 if test "X$pkg" = "X$p"; then 8346 enable_fast_install=yes 8347 fi 8348 done 8349 IFS="$lt_save_ifs" 8350 ;; 8351 esac 8352 else 8353 enable_fast_install=yes 8354 fi 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 # This can be used to rebuild libtool when needed 8367 LIBTOOL_DEPS="$ltmain" 8368 8369 # Always use our own libtool. 8370 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 test -z "$LN_S" && LN_S="ln -s" 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 if test -n "${ZSH_VERSION+set}" ; then 8413 setopt NO_GLOB_SUBST 8414 fi 8415 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8417 $as_echo_n "checking for objdir... " >&6; } 8418 if test "${lt_cv_objdir+set}" = set; then : 8419 $as_echo_n "(cached) " >&6 8420 else 8421 rm -f .libs 2>/dev/null 8422 mkdir .libs 2>/dev/null 8423 if test -d .libs; then 8424 lt_cv_objdir=.libs 8425 else 8426 # MS-DOS does not allow filenames that begin with a dot. 8427 lt_cv_objdir=_libs 8428 fi 8429 rmdir .libs 2>/dev/null 8430 fi 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8432 $as_echo "$lt_cv_objdir" >&6; } 8433 objdir=$lt_cv_objdir 8434 8435 8436 8437 8438 8439 cat >>confdefs.h <<_ACEOF 8440 #define LT_OBJDIR "$lt_cv_objdir/" 8441 _ACEOF 8442 8443 8444 8445 8446 case $host_os in 8447 aix3*) 8448 # AIX sometimes has problems with the GCC collect2 program. For some 8449 # reason, if we set the COLLECT_NAMES environment variable, the problems 8450 # vanish in a puff of smoke. 8451 if test "X${COLLECT_NAMES+set}" != Xset; then 8452 COLLECT_NAMES= 8453 export COLLECT_NAMES 8454 fi 8455 ;; 8456 esac 8457 8458 # Global variables: 8459 ofile=libtool 8460 can_build_shared=yes 8461 8462 # All known linkers require a `.a' archive for static linking (except MSVC, 8463 # which needs '.lib'). 8464 libext=a 8465 8466 with_gnu_ld="$lt_cv_prog_gnu_ld" 8467 8468 old_CC="$CC" 8469 old_CFLAGS="$CFLAGS" 8470 8471 # Set sane defaults for various variables 8472 test -z "$CC" && CC=cc 8473 test -z "$LTCC" && LTCC=$CC 8474 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8475 test -z "$LD" && LD=ld 8476 test -z "$ac_objext" && ac_objext=o 8477 8478 for cc_temp in $compiler""; do 8479 case $cc_temp in 8480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8482 \-*) ;; 8483 *) break;; 8484 esac 8485 done 8486 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8487 8488 8489 # Only perform the check for file, if the check method requires it 8490 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8491 case $deplibs_check_method in 8492 file_magic*) 8493 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8495 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8496 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8497 $as_echo_n "(cached) " >&6 8498 else 8499 case $MAGIC_CMD in 8500 [\\/*] | ?:[\\/]*) 8501 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8502 ;; 8503 *) 8504 lt_save_MAGIC_CMD="$MAGIC_CMD" 8505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8507 for ac_dir in $ac_dummy; do 8508 IFS="$lt_save_ifs" 8509 test -z "$ac_dir" && ac_dir=. 8510 if test -f $ac_dir/${ac_tool_prefix}file; then 8511 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8512 if test -n "$file_magic_test_file"; then 8513 case $deplibs_check_method in 8514 "file_magic "*) 8515 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8518 $EGREP "$file_magic_regex" > /dev/null; then 8519 : 8520 else 8521 cat <<_LT_EOF 1>&2 8522 8523 *** Warning: the command libtool uses to detect shared libraries, 8524 *** $file_magic_cmd, produces output that libtool cannot recognize. 8525 *** The result is that libtool may fail to recognize shared libraries 8526 *** as such. This will affect the creation of libtool libraries that 8527 *** depend on shared libraries, but programs linked with such libtool 8528 *** libraries will work regardless of this problem. Nevertheless, you 8529 *** may want to report the problem to your system manager and/or to 8530 *** bug-libtool@gnu.org 8531 8532 _LT_EOF 8533 fi ;; 8534 esac 8535 fi 8536 break 8537 fi 8538 done 8539 IFS="$lt_save_ifs" 8540 MAGIC_CMD="$lt_save_MAGIC_CMD" 8541 ;; 8542 esac 8543 fi 8544 8545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8546 if test -n "$MAGIC_CMD"; then 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8548 $as_echo "$MAGIC_CMD" >&6; } 8549 else 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8551 $as_echo "no" >&6; } 8552 fi 8553 8554 8555 8556 8557 8558 if test -z "$lt_cv_path_MAGIC_CMD"; then 8559 if test -n "$ac_tool_prefix"; then 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8561 $as_echo_n "checking for file... " >&6; } 8562 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8563 $as_echo_n "(cached) " >&6 8564 else 8565 case $MAGIC_CMD in 8566 [\\/*] | ?:[\\/]*) 8567 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8568 ;; 8569 *) 8570 lt_save_MAGIC_CMD="$MAGIC_CMD" 8571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8572 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8573 for ac_dir in $ac_dummy; do 8574 IFS="$lt_save_ifs" 8575 test -z "$ac_dir" && ac_dir=. 8576 if test -f $ac_dir/file; then 8577 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8578 if test -n "$file_magic_test_file"; then 8579 case $deplibs_check_method in 8580 "file_magic "*) 8581 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8583 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8584 $EGREP "$file_magic_regex" > /dev/null; then 8585 : 8586 else 8587 cat <<_LT_EOF 1>&2 8588 8589 *** Warning: the command libtool uses to detect shared libraries, 8590 *** $file_magic_cmd, produces output that libtool cannot recognize. 8591 *** The result is that libtool may fail to recognize shared libraries 8592 *** as such. This will affect the creation of libtool libraries that 8593 *** depend on shared libraries, but programs linked with such libtool 8594 *** libraries will work regardless of this problem. Nevertheless, you 8595 *** may want to report the problem to your system manager and/or to 8596 *** bug-libtool@gnu.org 8597 8598 _LT_EOF 8599 fi ;; 8600 esac 8601 fi 8602 break 8603 fi 8604 done 8605 IFS="$lt_save_ifs" 8606 MAGIC_CMD="$lt_save_MAGIC_CMD" 8607 ;; 8608 esac 8609 fi 8610 8611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8612 if test -n "$MAGIC_CMD"; then 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8614 $as_echo "$MAGIC_CMD" >&6; } 8615 else 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8617 $as_echo "no" >&6; } 8618 fi 8619 8620 8621 else 8622 MAGIC_CMD=: 8623 fi 8624 fi 8625 8626 fi 8627 ;; 8628 esac 8629 8630 # Use C for the default configuration in the libtool script 8631 8632 lt_save_CC="$CC" 8633 ac_ext=c 8634 ac_cpp='$CPP $CPPFLAGS' 8635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8637 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8638 8639 8640 # Source file extension for C test sources. 8641 ac_ext=c 8642 8643 # Object file extension for compiled C test sources. 8644 objext=o 8645 objext=$objext 8646 8647 # Code to be used in simple compile tests 8648 lt_simple_compile_test_code="int some_variable = 0;" 8649 8650 # Code to be used in simple link tests 8651 lt_simple_link_test_code='int main(){return(0);}' 8652 8653 8654 8655 8656 8657 8658 8659 # If no C compiler was specified, use CC. 8660 LTCC=${LTCC-"$CC"} 8661 8662 # If no C compiler flags were specified, use CFLAGS. 8663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8664 8665 # Allow CC to be a program name with arguments. 8666 compiler=$CC 8667 8668 # Save the default compiler, since it gets overwritten when the other 8669 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8670 compiler_DEFAULT=$CC 8671 8672 # save warnings/boilerplate of simple test code 8673 ac_outfile=conftest.$ac_objext 8674 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8675 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8676 _lt_compiler_boilerplate=`cat conftest.err` 8677 $RM conftest* 8678 8679 ac_outfile=conftest.$ac_objext 8680 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8681 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8682 _lt_linker_boilerplate=`cat conftest.err` 8683 $RM -r conftest* 8684 8685 8686 ## CAVEAT EMPTOR: 8687 ## There is no encapsulation within the following macros, do not change 8688 ## the running order or otherwise move them around unless you know exactly 8689 ## what you are doing... 8690 if test -n "$compiler"; then 8691 8692 lt_prog_compiler_no_builtin_flag= 8693 8694 if test "$GCC" = yes; then 8695 case $cc_basename in 8696 nvcc*) 8697 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8698 *) 8699 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8700 esac 8701 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8703 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8704 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8705 $as_echo_n "(cached) " >&6 8706 else 8707 lt_cv_prog_compiler_rtti_exceptions=no 8708 ac_outfile=conftest.$ac_objext 8709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8710 lt_compiler_flag="-fno-rtti -fno-exceptions" 8711 # Insert the option either (1) after the last *FLAGS variable, or 8712 # (2) before a word containing "conftest.", or (3) at the end. 8713 # Note that $ac_compile itself does not contain backslashes and begins 8714 # with a dollar sign (not a hyphen), so the echo should work correctly. 8715 # The option is referenced via a variable to avoid confusing sed. 8716 lt_compile=`echo "$ac_compile" | $SED \ 8717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8719 -e 's:$: $lt_compiler_flag:'` 8720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8721 (eval "$lt_compile" 2>conftest.err) 8722 ac_status=$? 8723 cat conftest.err >&5 8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8725 if (exit $ac_status) && test -s "$ac_outfile"; then 8726 # The compiler can only warn and ignore the option if not recognized 8727 # So say no if there are warnings other than the usual output. 8728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8731 lt_cv_prog_compiler_rtti_exceptions=yes 8732 fi 8733 fi 8734 $RM conftest* 8735 8736 fi 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8738 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8739 8740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8741 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8742 else 8743 : 8744 fi 8745 8746 fi 8747 8748 8749 8750 8751 8752 8753 lt_prog_compiler_wl= 8754 lt_prog_compiler_pic= 8755 lt_prog_compiler_static= 8756 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8758 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8759 8760 if test "$GCC" = yes; then 8761 lt_prog_compiler_wl='-Wl,' 8762 lt_prog_compiler_static='-static' 8763 8764 case $host_os in 8765 aix*) 8766 # All AIX code is PIC. 8767 if test "$host_cpu" = ia64; then 8768 # AIX 5 now supports IA64 processor 8769 lt_prog_compiler_static='-Bstatic' 8770 fi 8771 lt_prog_compiler_pic='-fPIC' 8772 ;; 8773 8774 amigaos*) 8775 case $host_cpu in 8776 powerpc) 8777 # see comment about AmigaOS4 .so support 8778 lt_prog_compiler_pic='-fPIC' 8779 ;; 8780 m68k) 8781 # FIXME: we need at least 68020 code to build shared libraries, but 8782 # adding the `-m68020' flag to GCC prevents building anything better, 8783 # like `-m68040'. 8784 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8785 ;; 8786 esac 8787 ;; 8788 8789 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8790 # PIC is the default for these OSes. 8791 ;; 8792 8793 mingw* | cygwin* | pw32* | os2* | cegcc*) 8794 # This hack is so that the source file can tell whether it is being 8795 # built for inclusion in a dll (and should export symbols for example). 8796 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8797 # (--disable-auto-import) libraries 8798 lt_prog_compiler_pic='-DDLL_EXPORT' 8799 ;; 8800 8801 darwin* | rhapsody*) 8802 # PIC is the default on this platform 8803 # Common symbols not allowed in MH_DYLIB files 8804 lt_prog_compiler_pic='-fno-common' 8805 ;; 8806 8807 haiku*) 8808 # PIC is the default for Haiku. 8809 # The "-static" flag exists, but is broken. 8810 lt_prog_compiler_static= 8811 ;; 8812 8813 hpux*) 8814 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8815 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8816 # sets the default TLS model and affects inlining. 8817 case $host_cpu in 8818 hppa*64*) 8819 # +Z the default 8820 ;; 8821 *) 8822 lt_prog_compiler_pic='-fPIC' 8823 ;; 8824 esac 8825 ;; 8826 8827 interix[3-9]*) 8828 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8829 # Instead, we relocate shared libraries at runtime. 8830 ;; 8831 8832 msdosdjgpp*) 8833 # Just because we use GCC doesn't mean we suddenly get shared libraries 8834 # on systems that don't support them. 8835 lt_prog_compiler_can_build_shared=no 8836 enable_shared=no 8837 ;; 8838 8839 *nto* | *qnx*) 8840 # QNX uses GNU C++, but need to define -shared option too, otherwise 8841 # it will coredump. 8842 lt_prog_compiler_pic='-fPIC -shared' 8843 ;; 8844 8845 sysv4*MP*) 8846 if test -d /usr/nec; then 8847 lt_prog_compiler_pic=-Kconform_pic 8848 fi 8849 ;; 8850 8851 *) 8852 lt_prog_compiler_pic='-fPIC' 8853 ;; 8854 esac 8855 8856 case $cc_basename in 8857 nvcc*) # Cuda Compiler Driver 2.2 8858 lt_prog_compiler_wl='-Xlinker ' 8859 lt_prog_compiler_pic='-Xcompiler -fPIC' 8860 ;; 8861 esac 8862 else 8863 # PORTME Check for flag to pass linker flags through the system compiler. 8864 case $host_os in 8865 aix*) 8866 lt_prog_compiler_wl='-Wl,' 8867 if test "$host_cpu" = ia64; then 8868 # AIX 5 now supports IA64 processor 8869 lt_prog_compiler_static='-Bstatic' 8870 else 8871 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8872 fi 8873 ;; 8874 8875 mingw* | cygwin* | pw32* | os2* | cegcc*) 8876 # This hack is so that the source file can tell whether it is being 8877 # built for inclusion in a dll (and should export symbols for example). 8878 lt_prog_compiler_pic='-DDLL_EXPORT' 8879 ;; 8880 8881 hpux9* | hpux10* | hpux11*) 8882 lt_prog_compiler_wl='-Wl,' 8883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8884 # not for PA HP-UX. 8885 case $host_cpu in 8886 hppa*64*|ia64*) 8887 # +Z the default 8888 ;; 8889 *) 8890 lt_prog_compiler_pic='+Z' 8891 ;; 8892 esac 8893 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8894 lt_prog_compiler_static='${wl}-a ${wl}archive' 8895 ;; 8896 8897 irix5* | irix6* | nonstopux*) 8898 lt_prog_compiler_wl='-Wl,' 8899 # PIC (with -KPIC) is the default. 8900 lt_prog_compiler_static='-non_shared' 8901 ;; 8902 8903 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8904 case $cc_basename in 8905 # old Intel for x86_64 which still supported -KPIC. 8906 ecc*) 8907 lt_prog_compiler_wl='-Wl,' 8908 lt_prog_compiler_pic='-KPIC' 8909 lt_prog_compiler_static='-static' 8910 ;; 8911 # icc used to be incompatible with GCC. 8912 # ICC 10 doesn't accept -KPIC any more. 8913 icc* | ifort*) 8914 lt_prog_compiler_wl='-Wl,' 8915 lt_prog_compiler_pic='-fPIC' 8916 lt_prog_compiler_static='-static' 8917 ;; 8918 # Lahey Fortran 8.1. 8919 lf95*) 8920 lt_prog_compiler_wl='-Wl,' 8921 lt_prog_compiler_pic='--shared' 8922 lt_prog_compiler_static='--static' 8923 ;; 8924 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8925 # Portland Group compilers (*not* the Pentium gcc compiler, 8926 # which looks to be a dead project) 8927 lt_prog_compiler_wl='-Wl,' 8928 lt_prog_compiler_pic='-fpic' 8929 lt_prog_compiler_static='-Bstatic' 8930 ;; 8931 ccc*) 8932 lt_prog_compiler_wl='-Wl,' 8933 # All Alpha code is PIC. 8934 lt_prog_compiler_static='-non_shared' 8935 ;; 8936 xl* | bgxl* | bgf* | mpixl*) 8937 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8938 lt_prog_compiler_wl='-Wl,' 8939 lt_prog_compiler_pic='-qpic' 8940 lt_prog_compiler_static='-qstaticlink' 8941 ;; 8942 *) 8943 case `$CC -V 2>&1 | sed 5q` in 8944 *Sun\ F* | *Sun*Fortran*) 8945 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8946 lt_prog_compiler_pic='-KPIC' 8947 lt_prog_compiler_static='-Bstatic' 8948 lt_prog_compiler_wl='' 8949 ;; 8950 *Sun\ C*) 8951 # Sun C 5.9 8952 lt_prog_compiler_pic='-KPIC' 8953 lt_prog_compiler_static='-Bstatic' 8954 lt_prog_compiler_wl='-Wl,' 8955 ;; 8956 esac 8957 ;; 8958 esac 8959 ;; 8960 8961 newsos6) 8962 lt_prog_compiler_pic='-KPIC' 8963 lt_prog_compiler_static='-Bstatic' 8964 ;; 8965 8966 *nto* | *qnx*) 8967 # QNX uses GNU C++, but need to define -shared option too, otherwise 8968 # it will coredump. 8969 lt_prog_compiler_pic='-fPIC -shared' 8970 ;; 8971 8972 osf3* | osf4* | osf5*) 8973 lt_prog_compiler_wl='-Wl,' 8974 # All OSF/1 code is PIC. 8975 lt_prog_compiler_static='-non_shared' 8976 ;; 8977 8978 rdos*) 8979 lt_prog_compiler_static='-non_shared' 8980 ;; 8981 8982 solaris*) 8983 lt_prog_compiler_pic='-KPIC' 8984 lt_prog_compiler_static='-Bstatic' 8985 case $cc_basename in 8986 f77* | f90* | f95*) 8987 lt_prog_compiler_wl='-Qoption ld ';; 8988 *) 8989 lt_prog_compiler_wl='-Wl,';; 8990 esac 8991 ;; 8992 8993 sunos4*) 8994 lt_prog_compiler_wl='-Qoption ld ' 8995 lt_prog_compiler_pic='-PIC' 8996 lt_prog_compiler_static='-Bstatic' 8997 ;; 8998 8999 sysv4 | sysv4.2uw2* | sysv4.3*) 9000 lt_prog_compiler_wl='-Wl,' 9001 lt_prog_compiler_pic='-KPIC' 9002 lt_prog_compiler_static='-Bstatic' 9003 ;; 9004 9005 sysv4*MP*) 9006 if test -d /usr/nec ;then 9007 lt_prog_compiler_pic='-Kconform_pic' 9008 lt_prog_compiler_static='-Bstatic' 9009 fi 9010 ;; 9011 9012 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9013 lt_prog_compiler_wl='-Wl,' 9014 lt_prog_compiler_pic='-KPIC' 9015 lt_prog_compiler_static='-Bstatic' 9016 ;; 9017 9018 unicos*) 9019 lt_prog_compiler_wl='-Wl,' 9020 lt_prog_compiler_can_build_shared=no 9021 ;; 9022 9023 uts4*) 9024 lt_prog_compiler_pic='-pic' 9025 lt_prog_compiler_static='-Bstatic' 9026 ;; 9027 9028 *) 9029 lt_prog_compiler_can_build_shared=no 9030 ;; 9031 esac 9032 fi 9033 9034 case $host_os in 9035 # For platforms which do not support PIC, -DPIC is meaningless: 9036 *djgpp*) 9037 lt_prog_compiler_pic= 9038 ;; 9039 *) 9040 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9041 ;; 9042 esac 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9044 $as_echo "$lt_prog_compiler_pic" >&6; } 9045 9046 9047 9048 9049 9050 9051 # 9052 # Check to make sure the PIC flag actually works. 9053 # 9054 if test -n "$lt_prog_compiler_pic"; then 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9056 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9057 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 9058 $as_echo_n "(cached) " >&6 9059 else 9060 lt_cv_prog_compiler_pic_works=no 9061 ac_outfile=conftest.$ac_objext 9062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9063 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9064 # Insert the option either (1) after the last *FLAGS variable, or 9065 # (2) before a word containing "conftest.", or (3) at the end. 9066 # Note that $ac_compile itself does not contain backslashes and begins 9067 # with a dollar sign (not a hyphen), so the echo should work correctly. 9068 # The option is referenced via a variable to avoid confusing sed. 9069 lt_compile=`echo "$ac_compile" | $SED \ 9070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9072 -e 's:$: $lt_compiler_flag:'` 9073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9074 (eval "$lt_compile" 2>conftest.err) 9075 ac_status=$? 9076 cat conftest.err >&5 9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9078 if (exit $ac_status) && test -s "$ac_outfile"; then 9079 # The compiler can only warn and ignore the option if not recognized 9080 # So say no if there are warnings other than the usual output. 9081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9084 lt_cv_prog_compiler_pic_works=yes 9085 fi 9086 fi 9087 $RM conftest* 9088 9089 fi 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9091 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9092 9093 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9094 case $lt_prog_compiler_pic in 9095 "" | " "*) ;; 9096 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9097 esac 9098 else 9099 lt_prog_compiler_pic= 9100 lt_prog_compiler_can_build_shared=no 9101 fi 9102 9103 fi 9104 9105 9106 9107 9108 9109 9110 # 9111 # Check to make sure the static flag actually works. 9112 # 9113 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9115 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9116 if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9117 $as_echo_n "(cached) " >&6 9118 else 9119 lt_cv_prog_compiler_static_works=no 9120 save_LDFLAGS="$LDFLAGS" 9121 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9122 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9124 # The linker can only warn and ignore the option if not recognized 9125 # So say no if there are warnings 9126 if test -s conftest.err; then 9127 # Append any errors to the config.log. 9128 cat conftest.err 1>&5 9129 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9131 if diff conftest.exp conftest.er2 >/dev/null; then 9132 lt_cv_prog_compiler_static_works=yes 9133 fi 9134 else 9135 lt_cv_prog_compiler_static_works=yes 9136 fi 9137 fi 9138 $RM -r conftest* 9139 LDFLAGS="$save_LDFLAGS" 9140 9141 fi 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9143 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9144 9145 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9146 : 9147 else 9148 lt_prog_compiler_static= 9149 fi 9150 9151 9152 9153 9154 9155 9156 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9159 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9160 $as_echo_n "(cached) " >&6 9161 else 9162 lt_cv_prog_compiler_c_o=no 9163 $RM -r conftest 2>/dev/null 9164 mkdir conftest 9165 cd conftest 9166 mkdir out 9167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9168 9169 lt_compiler_flag="-o out/conftest2.$ac_objext" 9170 # Insert the option either (1) after the last *FLAGS variable, or 9171 # (2) before a word containing "conftest.", or (3) at the end. 9172 # Note that $ac_compile itself does not contain backslashes and begins 9173 # with a dollar sign (not a hyphen), so the echo should work correctly. 9174 lt_compile=`echo "$ac_compile" | $SED \ 9175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9177 -e 's:$: $lt_compiler_flag:'` 9178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9179 (eval "$lt_compile" 2>out/conftest.err) 9180 ac_status=$? 9181 cat out/conftest.err >&5 9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9183 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9184 then 9185 # The compiler can only warn and ignore the option if not recognized 9186 # So say no if there are warnings 9187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9190 lt_cv_prog_compiler_c_o=yes 9191 fi 9192 fi 9193 chmod u+w . 2>&5 9194 $RM conftest* 9195 # SGI C++ compiler will create directory out/ii_files/ for 9196 # template instantiation 9197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9198 $RM out/* && rmdir out 9199 cd .. 9200 $RM -r conftest 9201 $RM conftest* 9202 9203 fi 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9205 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9206 9207 9208 9209 9210 9211 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9213 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9214 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9215 $as_echo_n "(cached) " >&6 9216 else 9217 lt_cv_prog_compiler_c_o=no 9218 $RM -r conftest 2>/dev/null 9219 mkdir conftest 9220 cd conftest 9221 mkdir out 9222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9223 9224 lt_compiler_flag="-o out/conftest2.$ac_objext" 9225 # Insert the option either (1) after the last *FLAGS variable, or 9226 # (2) before a word containing "conftest.", or (3) at the end. 9227 # Note that $ac_compile itself does not contain backslashes and begins 9228 # with a dollar sign (not a hyphen), so the echo should work correctly. 9229 lt_compile=`echo "$ac_compile" | $SED \ 9230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9232 -e 's:$: $lt_compiler_flag:'` 9233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9234 (eval "$lt_compile" 2>out/conftest.err) 9235 ac_status=$? 9236 cat out/conftest.err >&5 9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9238 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9239 then 9240 # The compiler can only warn and ignore the option if not recognized 9241 # So say no if there are warnings 9242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9245 lt_cv_prog_compiler_c_o=yes 9246 fi 9247 fi 9248 chmod u+w . 2>&5 9249 $RM conftest* 9250 # SGI C++ compiler will create directory out/ii_files/ for 9251 # template instantiation 9252 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9253 $RM out/* && rmdir out 9254 cd .. 9255 $RM -r conftest 9256 $RM conftest* 9257 9258 fi 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9260 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9261 9262 9263 9264 9265 hard_links="nottested" 9266 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9267 # do not overwrite the value of need_locks provided by the user 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9269 $as_echo_n "checking if we can lock with hard links... " >&6; } 9270 hard_links=yes 9271 $RM conftest* 9272 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9273 touch conftest.a 9274 ln conftest.a conftest.b 2>&5 || hard_links=no 9275 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9277 $as_echo "$hard_links" >&6; } 9278 if test "$hard_links" = no; then 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9280 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9281 need_locks=warn 9282 fi 9283 else 9284 need_locks=no 9285 fi 9286 9287 9288 9289 9290 9291 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9293 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9294 9295 runpath_var= 9296 allow_undefined_flag= 9297 always_export_symbols=no 9298 archive_cmds= 9299 archive_expsym_cmds= 9300 compiler_needs_object=no 9301 enable_shared_with_static_runtimes=no 9302 export_dynamic_flag_spec= 9303 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9304 hardcode_automatic=no 9305 hardcode_direct=no 9306 hardcode_direct_absolute=no 9307 hardcode_libdir_flag_spec= 9308 hardcode_libdir_flag_spec_ld= 9309 hardcode_libdir_separator= 9310 hardcode_minus_L=no 9311 hardcode_shlibpath_var=unsupported 9312 inherit_rpath=no 9313 link_all_deplibs=unknown 9314 module_cmds= 9315 module_expsym_cmds= 9316 old_archive_from_new_cmds= 9317 old_archive_from_expsyms_cmds= 9318 thread_safe_flag_spec= 9319 whole_archive_flag_spec= 9320 # include_expsyms should be a list of space-separated symbols to be *always* 9321 # included in the symbol list 9322 include_expsyms= 9323 # exclude_expsyms can be an extended regexp of symbols to exclude 9324 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9325 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9326 # as well as any symbol that contains `d'. 9327 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9328 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9329 # platforms (ab)use it in PIC code, but their linkers get confused if 9330 # the symbol is explicitly referenced. Since portable code cannot 9331 # rely on this symbol name, it's probably fine to never include it in 9332 # preloaded symbol tables. 9333 # Exclude shared library initialization/finalization symbols. 9334 extract_expsyms_cmds= 9335 9336 case $host_os in 9337 cygwin* | mingw* | pw32* | cegcc*) 9338 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9339 # When not using gcc, we currently assume that we are using 9340 # Microsoft Visual C++. 9341 if test "$GCC" != yes; then 9342 with_gnu_ld=no 9343 fi 9344 ;; 9345 interix*) 9346 # we just hope/assume this is gcc and not c89 (= MSVC++) 9347 with_gnu_ld=yes 9348 ;; 9349 openbsd*) 9350 with_gnu_ld=no 9351 ;; 9352 esac 9353 9354 ld_shlibs=yes 9355 9356 # On some targets, GNU ld is compatible enough with the native linker 9357 # that we're better off using the native interface for both. 9358 lt_use_gnu_ld_interface=no 9359 if test "$with_gnu_ld" = yes; then 9360 case $host_os in 9361 aix*) 9362 # The AIX port of GNU ld has always aspired to compatibility 9363 # with the native linker. However, as the warning in the GNU ld 9364 # block says, versions before 2.19.5* couldn't really create working 9365 # shared libraries, regardless of the interface used. 9366 case `$LD -v 2>&1` in 9367 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9368 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9369 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9370 *) 9371 lt_use_gnu_ld_interface=yes 9372 ;; 9373 esac 9374 ;; 9375 *) 9376 lt_use_gnu_ld_interface=yes 9377 ;; 9378 esac 9379 fi 9380 9381 if test "$lt_use_gnu_ld_interface" = yes; then 9382 # If archive_cmds runs LD, not CC, wlarc should be empty 9383 wlarc='${wl}' 9384 9385 # Set some defaults for GNU ld with shared library support. These 9386 # are reset later if shared libraries are not supported. Putting them 9387 # here allows them to be overridden if necessary. 9388 runpath_var=LD_RUN_PATH 9389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9390 export_dynamic_flag_spec='${wl}--export-dynamic' 9391 # ancient GNU ld didn't support --whole-archive et. al. 9392 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9393 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9394 else 9395 whole_archive_flag_spec= 9396 fi 9397 supports_anon_versioning=no 9398 case `$LD -v 2>&1` in 9399 *GNU\ gold*) supports_anon_versioning=yes ;; 9400 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9401 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9402 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9403 *\ 2.11.*) ;; # other 2.11 versions 9404 *) supports_anon_versioning=yes ;; 9405 esac 9406 9407 # See if GNU ld supports shared libraries. 9408 case $host_os in 9409 aix[3-9]*) 9410 # On AIX/PPC, the GNU linker is very broken 9411 if test "$host_cpu" != ia64; then 9412 ld_shlibs=no 9413 cat <<_LT_EOF 1>&2 9414 9415 *** Warning: the GNU linker, at least up to release 2.19, is reported 9416 *** to be unable to reliably create shared libraries on AIX. 9417 *** Therefore, libtool is disabling shared libraries support. If you 9418 *** really care for shared libraries, you may want to install binutils 9419 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9420 *** You will then need to restart the configuration process. 9421 9422 _LT_EOF 9423 fi 9424 ;; 9425 9426 amigaos*) 9427 case $host_cpu in 9428 powerpc) 9429 # see comment about AmigaOS4 .so support 9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9431 archive_expsym_cmds='' 9432 ;; 9433 m68k) 9434 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)' 9435 hardcode_libdir_flag_spec='-L$libdir' 9436 hardcode_minus_L=yes 9437 ;; 9438 esac 9439 ;; 9440 9441 beos*) 9442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9443 allow_undefined_flag=unsupported 9444 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9445 # support --undefined. This deserves some investigation. FIXME 9446 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9447 else 9448 ld_shlibs=no 9449 fi 9450 ;; 9451 9452 cygwin* | mingw* | pw32* | cegcc*) 9453 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9454 # as there is no search path for DLLs. 9455 hardcode_libdir_flag_spec='-L$libdir' 9456 export_dynamic_flag_spec='${wl}--export-all-symbols' 9457 allow_undefined_flag=unsupported 9458 always_export_symbols=no 9459 enable_shared_with_static_runtimes=yes 9460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9461 9462 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9464 # If the export-symbols file already is a .def file (1st line 9465 # is EXPORTS), use it as is; otherwise, prepend... 9466 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9467 cp $export_symbols $output_objdir/$soname.def; 9468 else 9469 echo EXPORTS > $output_objdir/$soname.def; 9470 cat $export_symbols >> $output_objdir/$soname.def; 9471 fi~ 9472 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9473 else 9474 ld_shlibs=no 9475 fi 9476 ;; 9477 9478 haiku*) 9479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9480 link_all_deplibs=yes 9481 ;; 9482 9483 interix[3-9]*) 9484 hardcode_direct=no 9485 hardcode_shlibpath_var=no 9486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9487 export_dynamic_flag_spec='${wl}-E' 9488 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9489 # Instead, shared libraries are loaded at an image base (0x10000000 by 9490 # default) and relocated if they conflict, which is a slow very memory 9491 # consuming and fragmenting process. To avoid this, we pick a random, 9492 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9493 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9495 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' 9496 ;; 9497 9498 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9499 tmp_diet=no 9500 if test "$host_os" = linux-dietlibc; then 9501 case $cc_basename in 9502 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9503 esac 9504 fi 9505 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9506 && test "$tmp_diet" = no 9507 then 9508 tmp_addflag= 9509 tmp_sharedflag='-shared' 9510 case $cc_basename,$host_cpu in 9511 pgcc*) # Portland Group C compiler 9512 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' 9513 tmp_addflag=' $pic_flag' 9514 ;; 9515 pgf77* | pgf90* | pgf95* | pgfortran*) 9516 # Portland Group f77 and f90 compilers 9517 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' 9518 tmp_addflag=' $pic_flag -Mnomain' ;; 9519 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9520 tmp_addflag=' -i_dynamic' ;; 9521 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9522 tmp_addflag=' -i_dynamic -nofor_main' ;; 9523 ifc* | ifort*) # Intel Fortran compiler 9524 tmp_addflag=' -nofor_main' ;; 9525 lf95*) # Lahey Fortran 8.1 9526 whole_archive_flag_spec= 9527 tmp_sharedflag='--shared' ;; 9528 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9529 tmp_sharedflag='-qmkshrobj' 9530 tmp_addflag= ;; 9531 nvcc*) # Cuda Compiler Driver 2.2 9532 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' 9533 compiler_needs_object=yes 9534 ;; 9535 esac 9536 case `$CC -V 2>&1 | sed 5q` in 9537 *Sun\ C*) # Sun C 5.9 9538 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' 9539 compiler_needs_object=yes 9540 tmp_sharedflag='-G' ;; 9541 *Sun\ F*) # Sun Fortran 8.3 9542 tmp_sharedflag='-G' ;; 9543 esac 9544 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9545 9546 if test "x$supports_anon_versioning" = xyes; then 9547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9549 echo "local: *; };" >> $output_objdir/$libname.ver~ 9550 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9551 fi 9552 9553 case $cc_basename in 9554 xlf* | bgf* | bgxlf* | mpixlf*) 9555 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9556 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9557 hardcode_libdir_flag_spec= 9558 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9559 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9560 if test "x$supports_anon_versioning" = xyes; then 9561 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9563 echo "local: *; };" >> $output_objdir/$libname.ver~ 9564 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9565 fi 9566 ;; 9567 esac 9568 else 9569 ld_shlibs=no 9570 fi 9571 ;; 9572 9573 netbsd*) 9574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9575 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9576 wlarc= 9577 else 9578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9580 fi 9581 ;; 9582 9583 solaris*) 9584 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9585 ld_shlibs=no 9586 cat <<_LT_EOF 1>&2 9587 9588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9589 *** create shared libraries on Solaris systems. Therefore, libtool 9590 *** is disabling shared libraries support. We urge you to upgrade GNU 9591 *** binutils to release 2.9.1 or newer. Another option is to modify 9592 *** your PATH or compiler configuration so that the native linker is 9593 *** used, and then restart. 9594 9595 _LT_EOF 9596 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9599 else 9600 ld_shlibs=no 9601 fi 9602 ;; 9603 9604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9605 case `$LD -v 2>&1` in 9606 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9607 ld_shlibs=no 9608 cat <<_LT_EOF 1>&2 9609 9610 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9611 *** reliably create shared libraries on SCO systems. Therefore, libtool 9612 *** is disabling shared libraries support. We urge you to upgrade GNU 9613 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9614 *** your PATH or compiler configuration so that the native linker is 9615 *** used, and then restart. 9616 9617 _LT_EOF 9618 ;; 9619 *) 9620 # For security reasons, it is highly recommended that you always 9621 # use absolute paths for naming shared libraries, and exclude the 9622 # DT_RUNPATH tag from executables and libraries. But doing so 9623 # requires that you compile everything twice, which is a pain. 9624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9628 else 9629 ld_shlibs=no 9630 fi 9631 ;; 9632 esac 9633 ;; 9634 9635 sunos4*) 9636 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9637 wlarc= 9638 hardcode_direct=yes 9639 hardcode_shlibpath_var=no 9640 ;; 9641 9642 *) 9643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9646 else 9647 ld_shlibs=no 9648 fi 9649 ;; 9650 esac 9651 9652 if test "$ld_shlibs" = no; then 9653 runpath_var= 9654 hardcode_libdir_flag_spec= 9655 export_dynamic_flag_spec= 9656 whole_archive_flag_spec= 9657 fi 9658 else 9659 # PORTME fill in a description of your system's linker (not GNU ld) 9660 case $host_os in 9661 aix3*) 9662 allow_undefined_flag=unsupported 9663 always_export_symbols=yes 9664 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' 9665 # Note: this linker hardcodes the directories in LIBPATH if there 9666 # are no directories specified by -L. 9667 hardcode_minus_L=yes 9668 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9669 # Neither direct hardcoding nor static linking is supported with a 9670 # broken collect2. 9671 hardcode_direct=unsupported 9672 fi 9673 ;; 9674 9675 aix[4-9]*) 9676 if test "$host_cpu" = ia64; then 9677 # On IA64, the linker does run time linking by default, so we don't 9678 # have to do anything special. 9679 aix_use_runtimelinking=no 9680 exp_sym_flag='-Bexport' 9681 no_entry_flag="" 9682 else 9683 # If we're using GNU nm, then we don't want the "-C" option. 9684 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9685 # Also, AIX nm treats weak defined symbols like other global 9686 # defined symbols, whereas GNU nm marks them as "W". 9687 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9688 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9689 else 9690 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9691 fi 9692 aix_use_runtimelinking=no 9693 9694 # Test if we are trying to use run time linking or normal 9695 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9696 # need to do runtime linking. 9697 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9698 for ld_flag in $LDFLAGS; do 9699 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9700 aix_use_runtimelinking=yes 9701 break 9702 fi 9703 done 9704 ;; 9705 esac 9706 9707 exp_sym_flag='-bexport' 9708 no_entry_flag='-bnoentry' 9709 fi 9710 9711 # When large executables or shared objects are built, AIX ld can 9712 # have problems creating the table of contents. If linking a library 9713 # or program results in "error TOC overflow" add -mminimal-toc to 9714 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9715 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9716 9717 archive_cmds='' 9718 hardcode_direct=yes 9719 hardcode_direct_absolute=yes 9720 hardcode_libdir_separator=':' 9721 link_all_deplibs=yes 9722 file_list_spec='${wl}-f,' 9723 9724 if test "$GCC" = yes; then 9725 case $host_os in aix4.[012]|aix4.[012].*) 9726 # We only want to do this on AIX 4.2 and lower, the check 9727 # below for broken collect2 doesn't work under 4.3+ 9728 collect2name=`${CC} -print-prog-name=collect2` 9729 if test -f "$collect2name" && 9730 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9731 then 9732 # We have reworked collect2 9733 : 9734 else 9735 # We have old collect2 9736 hardcode_direct=unsupported 9737 # It fails to find uninstalled libraries when the uninstalled 9738 # path is not listed in the libpath. Setting hardcode_minus_L 9739 # to unsupported forces relinking 9740 hardcode_minus_L=yes 9741 hardcode_libdir_flag_spec='-L$libdir' 9742 hardcode_libdir_separator= 9743 fi 9744 ;; 9745 esac 9746 shared_flag='-shared' 9747 if test "$aix_use_runtimelinking" = yes; then 9748 shared_flag="$shared_flag "'${wl}-G' 9749 fi 9750 else 9751 # not using gcc 9752 if test "$host_cpu" = ia64; then 9753 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9754 # chokes on -Wl,-G. The following line is correct: 9755 shared_flag='-G' 9756 else 9757 if test "$aix_use_runtimelinking" = yes; then 9758 shared_flag='${wl}-G' 9759 else 9760 shared_flag='${wl}-bM:SRE' 9761 fi 9762 fi 9763 fi 9764 9765 export_dynamic_flag_spec='${wl}-bexpall' 9766 # It seems that -bexpall does not export symbols beginning with 9767 # underscore (_), so it is better to generate a list of symbols to export. 9768 always_export_symbols=yes 9769 if test "$aix_use_runtimelinking" = yes; then 9770 # Warning - without using the other runtime loading flags (-brtl), 9771 # -berok will link without error, but may produce a broken library. 9772 allow_undefined_flag='-berok' 9773 # Determine the default libpath from the value encoded in an 9774 # empty executable. 9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9776 /* end confdefs.h. */ 9777 9778 int 9779 main () 9780 { 9781 9782 ; 9783 return 0; 9784 } 9785 _ACEOF 9786 if ac_fn_c_try_link "$LINENO"; then : 9787 9788 lt_aix_libpath_sed=' 9789 /Import File Strings/,/^$/ { 9790 /^0/ { 9791 s/^0 *\(.*\)$/\1/ 9792 p 9793 } 9794 }' 9795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9796 # Check for a 64-bit object if we didn't find anything. 9797 if test -z "$aix_libpath"; then 9798 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9799 fi 9800 fi 9801 rm -f core conftest.err conftest.$ac_objext \ 9802 conftest$ac_exeext conftest.$ac_ext 9803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9804 9805 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9806 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9807 else 9808 if test "$host_cpu" = ia64; then 9809 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9810 allow_undefined_flag="-z nodefs" 9811 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" 9812 else 9813 # Determine the default libpath from the value encoded in an 9814 # empty executable. 9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9816 /* end confdefs.h. */ 9817 9818 int 9819 main () 9820 { 9821 9822 ; 9823 return 0; 9824 } 9825 _ACEOF 9826 if ac_fn_c_try_link "$LINENO"; then : 9827 9828 lt_aix_libpath_sed=' 9829 /Import File Strings/,/^$/ { 9830 /^0/ { 9831 s/^0 *\(.*\)$/\1/ 9832 p 9833 } 9834 }' 9835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9836 # Check for a 64-bit object if we didn't find anything. 9837 if test -z "$aix_libpath"; then 9838 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9839 fi 9840 fi 9841 rm -f core conftest.err conftest.$ac_objext \ 9842 conftest$ac_exeext conftest.$ac_ext 9843 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9844 9845 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9846 # Warning - without using the other run time loading flags, 9847 # -berok will link without error, but may produce a broken library. 9848 no_undefined_flag=' ${wl}-bernotok' 9849 allow_undefined_flag=' ${wl}-berok' 9850 if test "$with_gnu_ld" = yes; then 9851 # We only use this code for GNU lds that support --whole-archive. 9852 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9853 else 9854 # Exported symbols can be pulled into shared objects from archives 9855 whole_archive_flag_spec='$convenience' 9856 fi 9857 archive_cmds_need_lc=yes 9858 # This is similar to how AIX traditionally builds its shared libraries. 9859 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9860 fi 9861 fi 9862 ;; 9863 9864 amigaos*) 9865 case $host_cpu in 9866 powerpc) 9867 # see comment about AmigaOS4 .so support 9868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9869 archive_expsym_cmds='' 9870 ;; 9871 m68k) 9872 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)' 9873 hardcode_libdir_flag_spec='-L$libdir' 9874 hardcode_minus_L=yes 9875 ;; 9876 esac 9877 ;; 9878 9879 bsdi[45]*) 9880 export_dynamic_flag_spec=-rdynamic 9881 ;; 9882 9883 cygwin* | mingw* | pw32* | cegcc*) 9884 # When not using gcc, we currently assume that we are using 9885 # Microsoft Visual C++. 9886 # hardcode_libdir_flag_spec is actually meaningless, as there is 9887 # no search path for DLLs. 9888 hardcode_libdir_flag_spec=' ' 9889 allow_undefined_flag=unsupported 9890 # Tell ltmain to make .lib files, not .a files. 9891 libext=lib 9892 # Tell ltmain to make .dll files, not .so files. 9893 shrext_cmds=".dll" 9894 # FIXME: Setting linknames here is a bad hack. 9895 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9896 # The linker will automatically build a .lib file if we build a DLL. 9897 old_archive_from_new_cmds='true' 9898 # FIXME: Should let the user specify the lib program. 9899 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9900 fix_srcfile_path='`cygpath -w "$srcfile"`' 9901 enable_shared_with_static_runtimes=yes 9902 ;; 9903 9904 darwin* | rhapsody*) 9905 9906 9907 archive_cmds_need_lc=no 9908 hardcode_direct=no 9909 hardcode_automatic=yes 9910 hardcode_shlibpath_var=unsupported 9911 if test "$lt_cv_ld_force_load" = "yes"; then 9912 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\"`' 9913 else 9914 whole_archive_flag_spec='' 9915 fi 9916 link_all_deplibs=yes 9917 allow_undefined_flag="$_lt_dar_allow_undefined" 9918 case $cc_basename in 9919 ifort*) _lt_dar_can_shared=yes ;; 9920 *) _lt_dar_can_shared=$GCC ;; 9921 esac 9922 if test "$_lt_dar_can_shared" = "yes"; then 9923 output_verbose_link_cmd=func_echo_all 9924 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9925 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9926 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}" 9927 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}" 9928 9929 else 9930 ld_shlibs=no 9931 fi 9932 9933 ;; 9934 9935 dgux*) 9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9937 hardcode_libdir_flag_spec='-L$libdir' 9938 hardcode_shlibpath_var=no 9939 ;; 9940 9941 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9942 # support. Future versions do this automatically, but an explicit c++rt0.o 9943 # does not break anything, and helps significantly (at the cost of a little 9944 # extra space). 9945 freebsd2.2*) 9946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9947 hardcode_libdir_flag_spec='-R$libdir' 9948 hardcode_direct=yes 9949 hardcode_shlibpath_var=no 9950 ;; 9951 9952 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9953 freebsd2.*) 9954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9955 hardcode_direct=yes 9956 hardcode_minus_L=yes 9957 hardcode_shlibpath_var=no 9958 ;; 9959 9960 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9961 freebsd* | dragonfly*) 9962 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9963 hardcode_libdir_flag_spec='-R$libdir' 9964 hardcode_direct=yes 9965 hardcode_shlibpath_var=no 9966 ;; 9967 9968 hpux9*) 9969 if test "$GCC" = yes; then 9970 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9971 else 9972 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9973 fi 9974 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9975 hardcode_libdir_separator=: 9976 hardcode_direct=yes 9977 9978 # hardcode_minus_L: Not really in the search PATH, 9979 # but as the default location of the library. 9980 hardcode_minus_L=yes 9981 export_dynamic_flag_spec='${wl}-E' 9982 ;; 9983 9984 hpux10*) 9985 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9986 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9987 else 9988 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9989 fi 9990 if test "$with_gnu_ld" = no; then 9991 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9992 hardcode_libdir_flag_spec_ld='+b $libdir' 9993 hardcode_libdir_separator=: 9994 hardcode_direct=yes 9995 hardcode_direct_absolute=yes 9996 export_dynamic_flag_spec='${wl}-E' 9997 # hardcode_minus_L: Not really in the search PATH, 9998 # but as the default location of the library. 9999 hardcode_minus_L=yes 10000 fi 10001 ;; 10002 10003 hpux11*) 10004 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10005 case $host_cpu in 10006 hppa*64*) 10007 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10008 ;; 10009 ia64*) 10010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10011 ;; 10012 *) 10013 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10014 ;; 10015 esac 10016 else 10017 case $host_cpu in 10018 hppa*64*) 10019 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10020 ;; 10021 ia64*) 10022 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10023 ;; 10024 *) 10025 10026 # Older versions of the 11.00 compiler do not understand -b yet 10027 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10029 $as_echo_n "checking if $CC understands -b... " >&6; } 10030 if test "${lt_cv_prog_compiler__b+set}" = set; then : 10031 $as_echo_n "(cached) " >&6 10032 else 10033 lt_cv_prog_compiler__b=no 10034 save_LDFLAGS="$LDFLAGS" 10035 LDFLAGS="$LDFLAGS -b" 10036 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10038 # The linker can only warn and ignore the option if not recognized 10039 # So say no if there are warnings 10040 if test -s conftest.err; then 10041 # Append any errors to the config.log. 10042 cat conftest.err 1>&5 10043 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10045 if diff conftest.exp conftest.er2 >/dev/null; then 10046 lt_cv_prog_compiler__b=yes 10047 fi 10048 else 10049 lt_cv_prog_compiler__b=yes 10050 fi 10051 fi 10052 $RM -r conftest* 10053 LDFLAGS="$save_LDFLAGS" 10054 10055 fi 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10057 $as_echo "$lt_cv_prog_compiler__b" >&6; } 10058 10059 if test x"$lt_cv_prog_compiler__b" = xyes; then 10060 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10061 else 10062 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10063 fi 10064 10065 ;; 10066 esac 10067 fi 10068 if test "$with_gnu_ld" = no; then 10069 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10070 hardcode_libdir_separator=: 10071 10072 case $host_cpu in 10073 hppa*64*|ia64*) 10074 hardcode_direct=no 10075 hardcode_shlibpath_var=no 10076 ;; 10077 *) 10078 hardcode_direct=yes 10079 hardcode_direct_absolute=yes 10080 export_dynamic_flag_spec='${wl}-E' 10081 10082 # hardcode_minus_L: Not really in the search PATH, 10083 # but as the default location of the library. 10084 hardcode_minus_L=yes 10085 ;; 10086 esac 10087 fi 10088 ;; 10089 10090 irix5* | irix6* | nonstopux*) 10091 if test "$GCC" = yes; then 10092 archive_cmds='$CC -shared $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' 10093 # Try to use the -exported_symbol ld option, if it does not 10094 # work, assume that -exports_file does not work either and 10095 # implicitly export all symbols. 10096 save_LDFLAGS="$LDFLAGS" 10097 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10099 /* end confdefs.h. */ 10100 int foo(void) {} 10101 _ACEOF 10102 if ac_fn_c_try_link "$LINENO"; then : 10103 archive_expsym_cmds='$CC -shared $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' 10104 10105 fi 10106 rm -f core conftest.err conftest.$ac_objext \ 10107 conftest$ac_exeext conftest.$ac_ext 10108 LDFLAGS="$save_LDFLAGS" 10109 else 10110 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' 10111 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' 10112 fi 10113 archive_cmds_need_lc='no' 10114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10115 hardcode_libdir_separator=: 10116 inherit_rpath=yes 10117 link_all_deplibs=yes 10118 ;; 10119 10120 netbsd*) 10121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10123 else 10124 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10125 fi 10126 hardcode_libdir_flag_spec='-R$libdir' 10127 hardcode_direct=yes 10128 hardcode_shlibpath_var=no 10129 ;; 10130 10131 newsos6) 10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10133 hardcode_direct=yes 10134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10135 hardcode_libdir_separator=: 10136 hardcode_shlibpath_var=no 10137 ;; 10138 10139 *nto* | *qnx*) 10140 ;; 10141 10142 openbsd*) 10143 if test -f /usr/libexec/ld.so; then 10144 hardcode_direct=yes 10145 hardcode_shlibpath_var=no 10146 hardcode_direct_absolute=yes 10147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10149 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10150 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10151 export_dynamic_flag_spec='${wl}-E' 10152 else 10153 case $host_os in 10154 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10156 hardcode_libdir_flag_spec='-R$libdir' 10157 ;; 10158 *) 10159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10160 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10161 ;; 10162 esac 10163 fi 10164 else 10165 ld_shlibs=no 10166 fi 10167 ;; 10168 10169 os2*) 10170 hardcode_libdir_flag_spec='-L$libdir' 10171 hardcode_minus_L=yes 10172 allow_undefined_flag=unsupported 10173 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10174 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10175 ;; 10176 10177 osf3*) 10178 if test "$GCC" = yes; then 10179 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10180 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' 10181 else 10182 allow_undefined_flag=' -expect_unresolved \*' 10183 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' 10184 fi 10185 archive_cmds_need_lc='no' 10186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10187 hardcode_libdir_separator=: 10188 ;; 10189 10190 osf4* | osf5*) # as osf3* with the addition of -msym flag 10191 if test "$GCC" = yes; then 10192 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10193 archive_cmds='$CC -shared${allow_undefined_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' 10194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10195 else 10196 allow_undefined_flag=' -expect_unresolved \*' 10197 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' 10198 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~ 10199 $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' 10200 10201 # Both c and cxx compiler support -rpath directly 10202 hardcode_libdir_flag_spec='-rpath $libdir' 10203 fi 10204 archive_cmds_need_lc='no' 10205 hardcode_libdir_separator=: 10206 ;; 10207 10208 solaris*) 10209 no_undefined_flag=' -z defs' 10210 if test "$GCC" = yes; then 10211 wlarc='${wl}' 10212 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10214 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10215 else 10216 case `$CC -V 2>&1` in 10217 *"Compilers 5.0"*) 10218 wlarc='' 10219 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10221 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10222 ;; 10223 *) 10224 wlarc='${wl}' 10225 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10226 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10227 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10228 ;; 10229 esac 10230 fi 10231 hardcode_libdir_flag_spec='-R$libdir' 10232 hardcode_shlibpath_var=no 10233 case $host_os in 10234 solaris2.[0-5] | solaris2.[0-5].*) ;; 10235 *) 10236 # The compiler driver will combine and reorder linker options, 10237 # but understands `-z linker_flag'. GCC discards it without `$wl', 10238 # but is careful enough not to reorder. 10239 # Supported since Solaris 2.6 (maybe 2.5.1?) 10240 if test "$GCC" = yes; then 10241 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10242 else 10243 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10244 fi 10245 ;; 10246 esac 10247 link_all_deplibs=yes 10248 ;; 10249 10250 sunos4*) 10251 if test "x$host_vendor" = xsequent; then 10252 # Use $CC to link under sequent, because it throws in some extra .o 10253 # files that make .init and .fini sections work. 10254 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10255 else 10256 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10257 fi 10258 hardcode_libdir_flag_spec='-L$libdir' 10259 hardcode_direct=yes 10260 hardcode_minus_L=yes 10261 hardcode_shlibpath_var=no 10262 ;; 10263 10264 sysv4) 10265 case $host_vendor in 10266 sni) 10267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10268 hardcode_direct=yes # is this really true??? 10269 ;; 10270 siemens) 10271 ## LD is ld it makes a PLAMLIB 10272 ## CC just makes a GrossModule. 10273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10274 reload_cmds='$CC -r -o $output$reload_objs' 10275 hardcode_direct=no 10276 ;; 10277 motorola) 10278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10279 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10280 ;; 10281 esac 10282 runpath_var='LD_RUN_PATH' 10283 hardcode_shlibpath_var=no 10284 ;; 10285 10286 sysv4.3*) 10287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10288 hardcode_shlibpath_var=no 10289 export_dynamic_flag_spec='-Bexport' 10290 ;; 10291 10292 sysv4*MP*) 10293 if test -d /usr/nec; then 10294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10295 hardcode_shlibpath_var=no 10296 runpath_var=LD_RUN_PATH 10297 hardcode_runpath_var=yes 10298 ld_shlibs=yes 10299 fi 10300 ;; 10301 10302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10303 no_undefined_flag='${wl}-z,text' 10304 archive_cmds_need_lc=no 10305 hardcode_shlibpath_var=no 10306 runpath_var='LD_RUN_PATH' 10307 10308 if test "$GCC" = yes; then 10309 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10310 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10311 else 10312 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10313 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10314 fi 10315 ;; 10316 10317 sysv5* | sco3.2v5* | sco5v6*) 10318 # Note: We can NOT use -z defs as we might desire, because we do not 10319 # link with -lc, and that would cause any symbols used from libc to 10320 # always be unresolved, which means just about no library would 10321 # ever link correctly. If we're not using GNU ld we use -z text 10322 # though, which does catch some bad symbols but isn't as heavy-handed 10323 # as -z defs. 10324 no_undefined_flag='${wl}-z,text' 10325 allow_undefined_flag='${wl}-z,nodefs' 10326 archive_cmds_need_lc=no 10327 hardcode_shlibpath_var=no 10328 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10329 hardcode_libdir_separator=':' 10330 link_all_deplibs=yes 10331 export_dynamic_flag_spec='${wl}-Bexport' 10332 runpath_var='LD_RUN_PATH' 10333 10334 if test "$GCC" = yes; then 10335 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10336 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10337 else 10338 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10339 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10340 fi 10341 ;; 10342 10343 uts4*) 10344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10345 hardcode_libdir_flag_spec='-L$libdir' 10346 hardcode_shlibpath_var=no 10347 ;; 10348 10349 *) 10350 ld_shlibs=no 10351 ;; 10352 esac 10353 10354 if test x$host_vendor = xsni; then 10355 case $host in 10356 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10357 export_dynamic_flag_spec='${wl}-Blargedynsym' 10358 ;; 10359 esac 10360 fi 10361 fi 10362 10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10364 $as_echo "$ld_shlibs" >&6; } 10365 test "$ld_shlibs" = no && can_build_shared=no 10366 10367 with_gnu_ld=$with_gnu_ld 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 # 10384 # Do we need to explicitly link libc? 10385 # 10386 case "x$archive_cmds_need_lc" in 10387 x|xyes) 10388 # Assume -lc should be added 10389 archive_cmds_need_lc=yes 10390 10391 if test "$enable_shared" = yes && test "$GCC" = yes; then 10392 case $archive_cmds in 10393 *'~'*) 10394 # FIXME: we may have to deal with multi-command sequences. 10395 ;; 10396 '$CC '*) 10397 # Test whether the compiler implicitly links with -lc since on some 10398 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10399 # to ld, don't add -lc before -lgcc. 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10401 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10402 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 10403 $as_echo_n "(cached) " >&6 10404 else 10405 $RM conftest* 10406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10407 10408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10409 (eval $ac_compile) 2>&5 10410 ac_status=$? 10411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10412 test $ac_status = 0; } 2>conftest.err; then 10413 soname=conftest 10414 lib=conftest 10415 libobjs=conftest.$ac_objext 10416 deplibs= 10417 wl=$lt_prog_compiler_wl 10418 pic_flag=$lt_prog_compiler_pic 10419 compiler_flags=-v 10420 linker_flags=-v 10421 verstring= 10422 output_objdir=. 10423 libname=conftest 10424 lt_save_allow_undefined_flag=$allow_undefined_flag 10425 allow_undefined_flag= 10426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10427 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10428 ac_status=$? 10429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10430 test $ac_status = 0; } 10431 then 10432 lt_cv_archive_cmds_need_lc=no 10433 else 10434 lt_cv_archive_cmds_need_lc=yes 10435 fi 10436 allow_undefined_flag=$lt_save_allow_undefined_flag 10437 else 10438 cat conftest.err 1>&5 10439 fi 10440 $RM conftest* 10441 10442 fi 10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10444 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10445 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10446 ;; 10447 esac 10448 fi 10449 ;; 10450 esac 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10609 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10610 10611 if test "$GCC" = yes; then 10612 case $host_os in 10613 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10614 *) lt_awk_arg="/^libraries:/" ;; 10615 esac 10616 case $host_os in 10617 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10618 *) lt_sed_strip_eq="s,=/,/,g" ;; 10619 esac 10620 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10621 case $lt_search_path_spec in 10622 *\;*) 10623 # if the path contains ";" then we assume it to be the separator 10624 # otherwise default to the standard path separator (i.e. ":") - it is 10625 # assumed that no part of a normal pathname contains ";" but that should 10626 # okay in the real world where ";" in dirpaths is itself problematic. 10627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10628 ;; 10629 *) 10630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10631 ;; 10632 esac 10633 # Ok, now we have the path, separated by spaces, we can step through it 10634 # and add multilib dir if necessary. 10635 lt_tmp_lt_search_path_spec= 10636 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10637 for lt_sys_path in $lt_search_path_spec; do 10638 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10639 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10640 else 10641 test -d "$lt_sys_path" && \ 10642 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10643 fi 10644 done 10645 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10646 BEGIN {RS=" "; FS="/|\n";} { 10647 lt_foo=""; 10648 lt_count=0; 10649 for (lt_i = NF; lt_i > 0; lt_i--) { 10650 if ($lt_i != "" && $lt_i != ".") { 10651 if ($lt_i == "..") { 10652 lt_count++; 10653 } else { 10654 if (lt_count == 0) { 10655 lt_foo="/" $lt_i lt_foo; 10656 } else { 10657 lt_count--; 10658 } 10659 } 10660 } 10661 } 10662 if (lt_foo != "") { lt_freq[lt_foo]++; } 10663 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10664 }'` 10665 # AWK program above erroneously prepends '/' to C:/dos/paths 10666 # for these hosts. 10667 case $host_os in 10668 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10669 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10670 esac 10671 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10672 else 10673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10674 fi 10675 library_names_spec= 10676 libname_spec='lib$name' 10677 soname_spec= 10678 shrext_cmds=".so" 10679 postinstall_cmds= 10680 postuninstall_cmds= 10681 finish_cmds= 10682 finish_eval= 10683 shlibpath_var= 10684 shlibpath_overrides_runpath=unknown 10685 version_type=none 10686 dynamic_linker="$host_os ld.so" 10687 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10688 need_lib_prefix=unknown 10689 hardcode_into_libs=no 10690 10691 # when you set need_version to no, make sure it does not cause -set_version 10692 # flags to be left without arguments 10693 need_version=unknown 10694 10695 case $host_os in 10696 aix3*) 10697 version_type=linux 10698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10699 shlibpath_var=LIBPATH 10700 10701 # AIX 3 has no versioning support, so we append a major version to the name. 10702 soname_spec='${libname}${release}${shared_ext}$major' 10703 ;; 10704 10705 aix[4-9]*) 10706 version_type=linux 10707 need_lib_prefix=no 10708 need_version=no 10709 hardcode_into_libs=yes 10710 if test "$host_cpu" = ia64; then 10711 # AIX 5 supports IA64 10712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10713 shlibpath_var=LD_LIBRARY_PATH 10714 else 10715 # With GCC up to 2.95.x, collect2 would create an import file 10716 # for dependence libraries. The import file would start with 10717 # the line `#! .'. This would cause the generated library to 10718 # depend on `.', always an invalid library. This was fixed in 10719 # development snapshots of GCC prior to 3.0. 10720 case $host_os in 10721 aix4 | aix4.[01] | aix4.[01].*) 10722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10723 echo ' yes ' 10724 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10725 : 10726 else 10727 can_build_shared=no 10728 fi 10729 ;; 10730 esac 10731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10732 # soname into executable. Probably we can add versioning support to 10733 # collect2, so additional links can be useful in future. 10734 if test "$aix_use_runtimelinking" = yes; then 10735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10736 # instead of lib<name>.a to let people know that these are not 10737 # typical AIX shared libraries. 10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10739 else 10740 # We preserve .a as extension for shared libraries through AIX4.2 10741 # and later when we are not doing run time linking. 10742 library_names_spec='${libname}${release}.a $libname.a' 10743 soname_spec='${libname}${release}${shared_ext}$major' 10744 fi 10745 shlibpath_var=LIBPATH 10746 fi 10747 ;; 10748 10749 amigaos*) 10750 case $host_cpu in 10751 powerpc) 10752 # Since July 2007 AmigaOS4 officially supports .so libraries. 10753 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10755 ;; 10756 m68k) 10757 library_names_spec='$libname.ixlibrary $libname.a' 10758 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10759 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10760 ;; 10761 esac 10762 ;; 10763 10764 beos*) 10765 library_names_spec='${libname}${shared_ext}' 10766 dynamic_linker="$host_os ld.so" 10767 shlibpath_var=LIBRARY_PATH 10768 ;; 10769 10770 bsdi[45]*) 10771 version_type=linux 10772 need_version=no 10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10774 soname_spec='${libname}${release}${shared_ext}$major' 10775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10776 shlibpath_var=LD_LIBRARY_PATH 10777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10779 # the default ld.so.conf also contains /usr/contrib/lib and 10780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10781 # libtool to hard-code these into programs 10782 ;; 10783 10784 cygwin* | mingw* | pw32* | cegcc*) 10785 version_type=windows 10786 shrext_cmds=".dll" 10787 need_version=no 10788 need_lib_prefix=no 10789 10790 case $GCC,$host_os in 10791 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10792 library_names_spec='$libname.dll.a' 10793 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10794 postinstall_cmds='base_file=`basename \${file}`~ 10795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10796 dldir=$destdir/`dirname \$dlpath`~ 10797 test -d \$dldir || mkdir -p \$dldir~ 10798 $install_prog $dir/$dlname \$dldir/$dlname~ 10799 chmod a+x \$dldir/$dlname~ 10800 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10801 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10802 fi' 10803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10804 dlpath=$dir/\$dldll~ 10805 $RM \$dlpath' 10806 shlibpath_overrides_runpath=yes 10807 10808 case $host_os in 10809 cygwin*) 10810 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10812 10813 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10814 ;; 10815 mingw* | cegcc*) 10816 # MinGW DLLs use traditional 'lib' prefix 10817 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10818 ;; 10819 pw32*) 10820 # pw32 DLLs use 'pw' prefix rather than 'lib' 10821 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10822 ;; 10823 esac 10824 ;; 10825 10826 *) 10827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10828 ;; 10829 esac 10830 dynamic_linker='Win32 ld.exe' 10831 # FIXME: first we should search . and the directory the executable is in 10832 shlibpath_var=PATH 10833 ;; 10834 10835 darwin* | rhapsody*) 10836 dynamic_linker="$host_os dyld" 10837 version_type=darwin 10838 need_lib_prefix=no 10839 need_version=no 10840 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10841 soname_spec='${libname}${release}${major}$shared_ext' 10842 shlibpath_overrides_runpath=yes 10843 shlibpath_var=DYLD_LIBRARY_PATH 10844 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10845 10846 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10847 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10848 ;; 10849 10850 dgux*) 10851 version_type=linux 10852 need_lib_prefix=no 10853 need_version=no 10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10855 soname_spec='${libname}${release}${shared_ext}$major' 10856 shlibpath_var=LD_LIBRARY_PATH 10857 ;; 10858 10859 freebsd* | dragonfly*) 10860 # DragonFly does not have aout. When/if they implement a new 10861 # versioning mechanism, adjust this. 10862 if test -x /usr/bin/objformat; then 10863 objformat=`/usr/bin/objformat` 10864 else 10865 case $host_os in 10866 freebsd[23].*) objformat=aout ;; 10867 *) objformat=elf ;; 10868 esac 10869 fi 10870 version_type=freebsd-$objformat 10871 case $version_type in 10872 freebsd-elf*) 10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10874 need_version=no 10875 need_lib_prefix=no 10876 ;; 10877 freebsd-*) 10878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10879 need_version=yes 10880 ;; 10881 esac 10882 shlibpath_var=LD_LIBRARY_PATH 10883 case $host_os in 10884 freebsd2.*) 10885 shlibpath_overrides_runpath=yes 10886 ;; 10887 freebsd3.[01]* | freebsdelf3.[01]*) 10888 shlibpath_overrides_runpath=yes 10889 hardcode_into_libs=yes 10890 ;; 10891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10893 shlibpath_overrides_runpath=no 10894 hardcode_into_libs=yes 10895 ;; 10896 *) # from 4.6 on, and DragonFly 10897 shlibpath_overrides_runpath=yes 10898 hardcode_into_libs=yes 10899 ;; 10900 esac 10901 ;; 10902 10903 gnu*) 10904 version_type=linux 10905 need_lib_prefix=no 10906 need_version=no 10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10908 soname_spec='${libname}${release}${shared_ext}$major' 10909 shlibpath_var=LD_LIBRARY_PATH 10910 hardcode_into_libs=yes 10911 ;; 10912 10913 haiku*) 10914 version_type=linux 10915 need_lib_prefix=no 10916 need_version=no 10917 dynamic_linker="$host_os runtime_loader" 10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10919 soname_spec='${libname}${release}${shared_ext}$major' 10920 shlibpath_var=LIBRARY_PATH 10921 shlibpath_overrides_runpath=yes 10922 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10923 hardcode_into_libs=yes 10924 ;; 10925 10926 hpux9* | hpux10* | hpux11*) 10927 # Give a soname corresponding to the major version so that dld.sl refuses to 10928 # link against other versions. 10929 version_type=sunos 10930 need_lib_prefix=no 10931 need_version=no 10932 case $host_cpu in 10933 ia64*) 10934 shrext_cmds='.so' 10935 hardcode_into_libs=yes 10936 dynamic_linker="$host_os dld.so" 10937 shlibpath_var=LD_LIBRARY_PATH 10938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10940 soname_spec='${libname}${release}${shared_ext}$major' 10941 if test "X$HPUX_IA64_MODE" = X32; then 10942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10943 else 10944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10945 fi 10946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10947 ;; 10948 hppa*64*) 10949 shrext_cmds='.sl' 10950 hardcode_into_libs=yes 10951 dynamic_linker="$host_os dld.sl" 10952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10955 soname_spec='${libname}${release}${shared_ext}$major' 10956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10958 ;; 10959 *) 10960 shrext_cmds='.sl' 10961 dynamic_linker="$host_os dld.sl" 10962 shlibpath_var=SHLIB_PATH 10963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10965 soname_spec='${libname}${release}${shared_ext}$major' 10966 ;; 10967 esac 10968 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10969 postinstall_cmds='chmod 555 $lib' 10970 # or fails outright, so override atomically: 10971 install_override_mode=555 10972 ;; 10973 10974 interix[3-9]*) 10975 version_type=linux 10976 need_lib_prefix=no 10977 need_version=no 10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10979 soname_spec='${libname}${release}${shared_ext}$major' 10980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10981 shlibpath_var=LD_LIBRARY_PATH 10982 shlibpath_overrides_runpath=no 10983 hardcode_into_libs=yes 10984 ;; 10985 10986 irix5* | irix6* | nonstopux*) 10987 case $host_os in 10988 nonstopux*) version_type=nonstopux ;; 10989 *) 10990 if test "$lt_cv_prog_gnu_ld" = yes; then 10991 version_type=linux 10992 else 10993 version_type=irix 10994 fi ;; 10995 esac 10996 need_lib_prefix=no 10997 need_version=no 10998 soname_spec='${libname}${release}${shared_ext}$major' 10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11000 case $host_os in 11001 irix5* | nonstopux*) 11002 libsuff= shlibsuff= 11003 ;; 11004 *) 11005 case $LD in # libtool.m4 will add one of these switches to LD 11006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11007 libsuff= shlibsuff= libmagic=32-bit;; 11008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11009 libsuff=32 shlibsuff=N32 libmagic=N32;; 11010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11011 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11012 *) libsuff= shlibsuff= libmagic=never-match;; 11013 esac 11014 ;; 11015 esac 11016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11017 shlibpath_overrides_runpath=no 11018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11020 hardcode_into_libs=yes 11021 ;; 11022 11023 # No shared lib support for Linux oldld, aout, or coff. 11024 linux*oldld* | linux*aout* | linux*coff*) 11025 dynamic_linker=no 11026 ;; 11027 11028 # This must be Linux ELF. 11029 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11030 version_type=linux 11031 need_lib_prefix=no 11032 need_version=no 11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11034 soname_spec='${libname}${release}${shared_ext}$major' 11035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11036 shlibpath_var=LD_LIBRARY_PATH 11037 shlibpath_overrides_runpath=no 11038 11039 # Some binutils ld are patched to set DT_RUNPATH 11040 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 11041 $as_echo_n "(cached) " >&6 11042 else 11043 lt_cv_shlibpath_overrides_runpath=no 11044 save_LDFLAGS=$LDFLAGS 11045 save_libdir=$libdir 11046 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11047 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11049 /* end confdefs.h. */ 11050 11051 int 11052 main () 11053 { 11054 11055 ; 11056 return 0; 11057 } 11058 _ACEOF 11059 if ac_fn_c_try_link "$LINENO"; then : 11060 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11061 lt_cv_shlibpath_overrides_runpath=yes 11062 fi 11063 fi 11064 rm -f core conftest.err conftest.$ac_objext \ 11065 conftest$ac_exeext conftest.$ac_ext 11066 LDFLAGS=$save_LDFLAGS 11067 libdir=$save_libdir 11068 11069 fi 11070 11071 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11072 11073 # This implies no fast_install, which is unacceptable. 11074 # Some rework will be needed to allow for fast_install 11075 # before this can be enabled. 11076 hardcode_into_libs=yes 11077 11078 # Append ld.so.conf contents to the search path 11079 if test -f /etc/ld.so.conf; then 11080 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' ' '` 11081 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11082 fi 11083 11084 # We used to test for /lib/ld.so.1 and disable shared libraries on 11085 # powerpc, because MkLinux only supported shared libraries with the 11086 # GNU dynamic linker. Since this was broken with cross compilers, 11087 # most powerpc-linux boxes support dynamic linking these days and 11088 # people can always --disable-shared, the test was removed, and we 11089 # assume the GNU/Linux dynamic linker is in use. 11090 dynamic_linker='GNU/Linux ld.so' 11091 ;; 11092 11093 netbsd*) 11094 version_type=sunos 11095 need_lib_prefix=no 11096 need_version=no 11097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11100 dynamic_linker='NetBSD (a.out) ld.so' 11101 else 11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11103 soname_spec='${libname}${release}${shared_ext}$major' 11104 dynamic_linker='NetBSD ld.elf_so' 11105 fi 11106 shlibpath_var=LD_LIBRARY_PATH 11107 shlibpath_overrides_runpath=yes 11108 hardcode_into_libs=yes 11109 ;; 11110 11111 newsos6) 11112 version_type=linux 11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11114 shlibpath_var=LD_LIBRARY_PATH 11115 shlibpath_overrides_runpath=yes 11116 ;; 11117 11118 *nto* | *qnx*) 11119 version_type=qnx 11120 need_lib_prefix=no 11121 need_version=no 11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11123 soname_spec='${libname}${release}${shared_ext}$major' 11124 shlibpath_var=LD_LIBRARY_PATH 11125 shlibpath_overrides_runpath=no 11126 hardcode_into_libs=yes 11127 dynamic_linker='ldqnx.so' 11128 ;; 11129 11130 openbsd*) 11131 version_type=sunos 11132 sys_lib_dlsearch_path_spec="/usr/lib" 11133 need_lib_prefix=no 11134 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11135 case $host_os in 11136 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11137 *) need_version=no ;; 11138 esac 11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11141 shlibpath_var=LD_LIBRARY_PATH 11142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11143 case $host_os in 11144 openbsd2.[89] | openbsd2.[89].*) 11145 shlibpath_overrides_runpath=no 11146 ;; 11147 *) 11148 shlibpath_overrides_runpath=yes 11149 ;; 11150 esac 11151 else 11152 shlibpath_overrides_runpath=yes 11153 fi 11154 ;; 11155 11156 os2*) 11157 libname_spec='$name' 11158 shrext_cmds=".dll" 11159 need_lib_prefix=no 11160 library_names_spec='$libname${shared_ext} $libname.a' 11161 dynamic_linker='OS/2 ld.exe' 11162 shlibpath_var=LIBPATH 11163 ;; 11164 11165 osf3* | osf4* | osf5*) 11166 version_type=osf 11167 need_lib_prefix=no 11168 need_version=no 11169 soname_spec='${libname}${release}${shared_ext}$major' 11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11171 shlibpath_var=LD_LIBRARY_PATH 11172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11174 ;; 11175 11176 rdos*) 11177 dynamic_linker=no 11178 ;; 11179 11180 solaris*) 11181 version_type=linux 11182 need_lib_prefix=no 11183 need_version=no 11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11185 soname_spec='${libname}${release}${shared_ext}$major' 11186 shlibpath_var=LD_LIBRARY_PATH 11187 shlibpath_overrides_runpath=yes 11188 hardcode_into_libs=yes 11189 # ldd complains unless libraries are executable 11190 postinstall_cmds='chmod +x $lib' 11191 ;; 11192 11193 sunos4*) 11194 version_type=sunos 11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11196 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11197 shlibpath_var=LD_LIBRARY_PATH 11198 shlibpath_overrides_runpath=yes 11199 if test "$with_gnu_ld" = yes; then 11200 need_lib_prefix=no 11201 fi 11202 need_version=yes 11203 ;; 11204 11205 sysv4 | sysv4.3*) 11206 version_type=linux 11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11208 soname_spec='${libname}${release}${shared_ext}$major' 11209 shlibpath_var=LD_LIBRARY_PATH 11210 case $host_vendor in 11211 sni) 11212 shlibpath_overrides_runpath=no 11213 need_lib_prefix=no 11214 runpath_var=LD_RUN_PATH 11215 ;; 11216 siemens) 11217 need_lib_prefix=no 11218 ;; 11219 motorola) 11220 need_lib_prefix=no 11221 need_version=no 11222 shlibpath_overrides_runpath=no 11223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11224 ;; 11225 esac 11226 ;; 11227 11228 sysv4*MP*) 11229 if test -d /usr/nec ;then 11230 version_type=linux 11231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11232 soname_spec='$libname${shared_ext}.$major' 11233 shlibpath_var=LD_LIBRARY_PATH 11234 fi 11235 ;; 11236 11237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11238 version_type=freebsd-elf 11239 need_lib_prefix=no 11240 need_version=no 11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11242 soname_spec='${libname}${release}${shared_ext}$major' 11243 shlibpath_var=LD_LIBRARY_PATH 11244 shlibpath_overrides_runpath=yes 11245 hardcode_into_libs=yes 11246 if test "$with_gnu_ld" = yes; then 11247 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11248 else 11249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11250 case $host_os in 11251 sco3.2v5*) 11252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11253 ;; 11254 esac 11255 fi 11256 sys_lib_dlsearch_path_spec='/usr/lib' 11257 ;; 11258 11259 tpf*) 11260 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11261 version_type=linux 11262 need_lib_prefix=no 11263 need_version=no 11264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11265 shlibpath_var=LD_LIBRARY_PATH 11266 shlibpath_overrides_runpath=no 11267 hardcode_into_libs=yes 11268 ;; 11269 11270 uts4*) 11271 version_type=linux 11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11273 soname_spec='${libname}${release}${shared_ext}$major' 11274 shlibpath_var=LD_LIBRARY_PATH 11275 ;; 11276 11277 *) 11278 dynamic_linker=no 11279 ;; 11280 esac 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11282 $as_echo "$dynamic_linker" >&6; } 11283 test "$dynamic_linker" = no && can_build_shared=no 11284 11285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11286 if test "$GCC" = yes; then 11287 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11288 fi 11289 11290 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11291 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11292 fi 11293 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11294 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11295 fi 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11389 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11390 hardcode_action= 11391 if test -n "$hardcode_libdir_flag_spec" || 11392 test -n "$runpath_var" || 11393 test "X$hardcode_automatic" = "Xyes" ; then 11394 11395 # We can hardcode non-existent directories. 11396 if test "$hardcode_direct" != no && 11397 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11398 # have to relink, otherwise we might link with an installed library 11399 # when we should be linking with a yet-to-be-installed one 11400 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11401 test "$hardcode_minus_L" != no; then 11402 # Linking always hardcodes the temporary library directory. 11403 hardcode_action=relink 11404 else 11405 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11406 hardcode_action=immediate 11407 fi 11408 else 11409 # We cannot hardcode anything, or else we can only hardcode existing 11410 # directories. 11411 hardcode_action=unsupported 11412 fi 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11414 $as_echo "$hardcode_action" >&6; } 11415 11416 if test "$hardcode_action" = relink || 11417 test "$inherit_rpath" = yes; then 11418 # Fast installation is not supported 11419 enable_fast_install=no 11420 elif test "$shlibpath_overrides_runpath" = yes || 11421 test "$enable_shared" = no; then 11422 # Fast installation is not necessary 11423 enable_fast_install=needless 11424 fi 11425 11426 11427 11428 11429 11430 11431 if test "x$enable_dlopen" != xyes; then 11432 enable_dlopen=unknown 11433 enable_dlopen_self=unknown 11434 enable_dlopen_self_static=unknown 11435 else 11436 lt_cv_dlopen=no 11437 lt_cv_dlopen_libs= 11438 11439 case $host_os in 11440 beos*) 11441 lt_cv_dlopen="load_add_on" 11442 lt_cv_dlopen_libs= 11443 lt_cv_dlopen_self=yes 11444 ;; 11445 11446 mingw* | pw32* | cegcc*) 11447 lt_cv_dlopen="LoadLibrary" 11448 lt_cv_dlopen_libs= 11449 ;; 11450 11451 cygwin*) 11452 lt_cv_dlopen="dlopen" 11453 lt_cv_dlopen_libs= 11454 ;; 11455 11456 darwin*) 11457 # if libdl is installed we need to link against it 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11459 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11460 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11461 $as_echo_n "(cached) " >&6 11462 else 11463 ac_check_lib_save_LIBS=$LIBS 11464 LIBS="-ldl $LIBS" 11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11466 /* end confdefs.h. */ 11467 11468 /* Override any GCC internal prototype to avoid an error. 11469 Use char because int might match the return type of a GCC 11470 builtin and then its argument prototype would still apply. */ 11471 #ifdef __cplusplus 11472 extern "C" 11473 #endif 11474 char dlopen (); 11475 int 11476 main () 11477 { 11478 return dlopen (); 11479 ; 11480 return 0; 11481 } 11482 _ACEOF 11483 if ac_fn_c_try_link "$LINENO"; then : 11484 ac_cv_lib_dl_dlopen=yes 11485 else 11486 ac_cv_lib_dl_dlopen=no 11487 fi 11488 rm -f core conftest.err conftest.$ac_objext \ 11489 conftest$ac_exeext conftest.$ac_ext 11490 LIBS=$ac_check_lib_save_LIBS 11491 fi 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11494 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11496 else 11497 11498 lt_cv_dlopen="dyld" 11499 lt_cv_dlopen_libs= 11500 lt_cv_dlopen_self=yes 11501 11502 fi 11503 11504 ;; 11505 11506 *) 11507 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11508 if test "x$ac_cv_func_shl_load" = x""yes; then : 11509 lt_cv_dlopen="shl_load" 11510 else 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11512 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11513 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11514 $as_echo_n "(cached) " >&6 11515 else 11516 ac_check_lib_save_LIBS=$LIBS 11517 LIBS="-ldld $LIBS" 11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11519 /* end confdefs.h. */ 11520 11521 /* Override any GCC internal prototype to avoid an error. 11522 Use char because int might match the return type of a GCC 11523 builtin and then its argument prototype would still apply. */ 11524 #ifdef __cplusplus 11525 extern "C" 11526 #endif 11527 char shl_load (); 11528 int 11529 main () 11530 { 11531 return shl_load (); 11532 ; 11533 return 0; 11534 } 11535 _ACEOF 11536 if ac_fn_c_try_link "$LINENO"; then : 11537 ac_cv_lib_dld_shl_load=yes 11538 else 11539 ac_cv_lib_dld_shl_load=no 11540 fi 11541 rm -f core conftest.err conftest.$ac_objext \ 11542 conftest$ac_exeext conftest.$ac_ext 11543 LIBS=$ac_check_lib_save_LIBS 11544 fi 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11546 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11547 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11548 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11549 else 11550 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11551 if test "x$ac_cv_func_dlopen" = x""yes; then : 11552 lt_cv_dlopen="dlopen" 11553 else 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11555 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11556 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11557 $as_echo_n "(cached) " >&6 11558 else 11559 ac_check_lib_save_LIBS=$LIBS 11560 LIBS="-ldl $LIBS" 11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11562 /* end confdefs.h. */ 11563 11564 /* Override any GCC internal prototype to avoid an error. 11565 Use char because int might match the return type of a GCC 11566 builtin and then its argument prototype would still apply. */ 11567 #ifdef __cplusplus 11568 extern "C" 11569 #endif 11570 char dlopen (); 11571 int 11572 main () 11573 { 11574 return dlopen (); 11575 ; 11576 return 0; 11577 } 11578 _ACEOF 11579 if ac_fn_c_try_link "$LINENO"; then : 11580 ac_cv_lib_dl_dlopen=yes 11581 else 11582 ac_cv_lib_dl_dlopen=no 11583 fi 11584 rm -f core conftest.err conftest.$ac_objext \ 11585 conftest$ac_exeext conftest.$ac_ext 11586 LIBS=$ac_check_lib_save_LIBS 11587 fi 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11589 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11590 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11592 else 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11594 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11595 if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11596 $as_echo_n "(cached) " >&6 11597 else 11598 ac_check_lib_save_LIBS=$LIBS 11599 LIBS="-lsvld $LIBS" 11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11601 /* end confdefs.h. */ 11602 11603 /* Override any GCC internal prototype to avoid an error. 11604 Use char because int might match the return type of a GCC 11605 builtin and then its argument prototype would still apply. */ 11606 #ifdef __cplusplus 11607 extern "C" 11608 #endif 11609 char dlopen (); 11610 int 11611 main () 11612 { 11613 return dlopen (); 11614 ; 11615 return 0; 11616 } 11617 _ACEOF 11618 if ac_fn_c_try_link "$LINENO"; then : 11619 ac_cv_lib_svld_dlopen=yes 11620 else 11621 ac_cv_lib_svld_dlopen=no 11622 fi 11623 rm -f core conftest.err conftest.$ac_objext \ 11624 conftest$ac_exeext conftest.$ac_ext 11625 LIBS=$ac_check_lib_save_LIBS 11626 fi 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11628 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11629 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11631 else 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11633 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11634 if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11635 $as_echo_n "(cached) " >&6 11636 else 11637 ac_check_lib_save_LIBS=$LIBS 11638 LIBS="-ldld $LIBS" 11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11640 /* end confdefs.h. */ 11641 11642 /* Override any GCC internal prototype to avoid an error. 11643 Use char because int might match the return type of a GCC 11644 builtin and then its argument prototype would still apply. */ 11645 #ifdef __cplusplus 11646 extern "C" 11647 #endif 11648 char dld_link (); 11649 int 11650 main () 11651 { 11652 return dld_link (); 11653 ; 11654 return 0; 11655 } 11656 _ACEOF 11657 if ac_fn_c_try_link "$LINENO"; then : 11658 ac_cv_lib_dld_dld_link=yes 11659 else 11660 ac_cv_lib_dld_dld_link=no 11661 fi 11662 rm -f core conftest.err conftest.$ac_objext \ 11663 conftest$ac_exeext conftest.$ac_ext 11664 LIBS=$ac_check_lib_save_LIBS 11665 fi 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11667 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11668 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11669 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11670 fi 11671 11672 11673 fi 11674 11675 11676 fi 11677 11678 11679 fi 11680 11681 11682 fi 11683 11684 11685 fi 11686 11687 ;; 11688 esac 11689 11690 if test "x$lt_cv_dlopen" != xno; then 11691 enable_dlopen=yes 11692 else 11693 enable_dlopen=no 11694 fi 11695 11696 case $lt_cv_dlopen in 11697 dlopen) 11698 save_CPPFLAGS="$CPPFLAGS" 11699 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11700 11701 save_LDFLAGS="$LDFLAGS" 11702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11703 11704 save_LIBS="$LIBS" 11705 LIBS="$lt_cv_dlopen_libs $LIBS" 11706 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11708 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11709 if test "${lt_cv_dlopen_self+set}" = set; then : 11710 $as_echo_n "(cached) " >&6 11711 else 11712 if test "$cross_compiling" = yes; then : 11713 lt_cv_dlopen_self=cross 11714 else 11715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11716 lt_status=$lt_dlunknown 11717 cat > conftest.$ac_ext <<_LT_EOF 11718 #line 11718 "configure" 11719 #include "confdefs.h" 11720 11721 #if HAVE_DLFCN_H 11722 #include <dlfcn.h> 11723 #endif 11724 11725 #include <stdio.h> 11726 11727 #ifdef RTLD_GLOBAL 11728 # define LT_DLGLOBAL RTLD_GLOBAL 11729 #else 11730 # ifdef DL_GLOBAL 11731 # define LT_DLGLOBAL DL_GLOBAL 11732 # else 11733 # define LT_DLGLOBAL 0 11734 # endif 11735 #endif 11736 11737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11738 find out it does not work in some platform. */ 11739 #ifndef LT_DLLAZY_OR_NOW 11740 # ifdef RTLD_LAZY 11741 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11742 # else 11743 # ifdef DL_LAZY 11744 # define LT_DLLAZY_OR_NOW DL_LAZY 11745 # else 11746 # ifdef RTLD_NOW 11747 # define LT_DLLAZY_OR_NOW RTLD_NOW 11748 # else 11749 # ifdef DL_NOW 11750 # define LT_DLLAZY_OR_NOW DL_NOW 11751 # else 11752 # define LT_DLLAZY_OR_NOW 0 11753 # endif 11754 # endif 11755 # endif 11756 # endif 11757 #endif 11758 11759 /* When -fvisbility=hidden is used, assume the code has been annotated 11760 correspondingly for the symbols needed. */ 11761 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11762 void fnord () __attribute__((visibility("default"))); 11763 #endif 11764 11765 void fnord () { int i=42; } 11766 int main () 11767 { 11768 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11769 int status = $lt_dlunknown; 11770 11771 if (self) 11772 { 11773 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11774 else 11775 { 11776 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11777 else puts (dlerror ()); 11778 } 11779 /* dlclose (self); */ 11780 } 11781 else 11782 puts (dlerror ()); 11783 11784 return status; 11785 } 11786 _LT_EOF 11787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11788 (eval $ac_link) 2>&5 11789 ac_status=$? 11790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11791 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11792 (./conftest; exit; ) >&5 2>/dev/null 11793 lt_status=$? 11794 case x$lt_status in 11795 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11796 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11797 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11798 esac 11799 else : 11800 # compilation failed 11801 lt_cv_dlopen_self=no 11802 fi 11803 fi 11804 rm -fr conftest* 11805 11806 11807 fi 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11809 $as_echo "$lt_cv_dlopen_self" >&6; } 11810 11811 if test "x$lt_cv_dlopen_self" = xyes; then 11812 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11814 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11815 if test "${lt_cv_dlopen_self_static+set}" = set; then : 11816 $as_echo_n "(cached) " >&6 11817 else 11818 if test "$cross_compiling" = yes; then : 11819 lt_cv_dlopen_self_static=cross 11820 else 11821 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11822 lt_status=$lt_dlunknown 11823 cat > conftest.$ac_ext <<_LT_EOF 11824 #line 11824 "configure" 11825 #include "confdefs.h" 11826 11827 #if HAVE_DLFCN_H 11828 #include <dlfcn.h> 11829 #endif 11830 11831 #include <stdio.h> 11832 11833 #ifdef RTLD_GLOBAL 11834 # define LT_DLGLOBAL RTLD_GLOBAL 11835 #else 11836 # ifdef DL_GLOBAL 11837 # define LT_DLGLOBAL DL_GLOBAL 11838 # else 11839 # define LT_DLGLOBAL 0 11840 # endif 11841 #endif 11842 11843 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11844 find out it does not work in some platform. */ 11845 #ifndef LT_DLLAZY_OR_NOW 11846 # ifdef RTLD_LAZY 11847 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11848 # else 11849 # ifdef DL_LAZY 11850 # define LT_DLLAZY_OR_NOW DL_LAZY 11851 # else 11852 # ifdef RTLD_NOW 11853 # define LT_DLLAZY_OR_NOW RTLD_NOW 11854 # else 11855 # ifdef DL_NOW 11856 # define LT_DLLAZY_OR_NOW DL_NOW 11857 # else 11858 # define LT_DLLAZY_OR_NOW 0 11859 # endif 11860 # endif 11861 # endif 11862 # endif 11863 #endif 11864 11865 /* When -fvisbility=hidden is used, assume the code has been annotated 11866 correspondingly for the symbols needed. */ 11867 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11868 void fnord () __attribute__((visibility("default"))); 11869 #endif 11870 11871 void fnord () { int i=42; } 11872 int main () 11873 { 11874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11875 int status = $lt_dlunknown; 11876 11877 if (self) 11878 { 11879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11880 else 11881 { 11882 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11883 else puts (dlerror ()); 11884 } 11885 /* dlclose (self); */ 11886 } 11887 else 11888 puts (dlerror ()); 11889 11890 return status; 11891 } 11892 _LT_EOF 11893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11894 (eval $ac_link) 2>&5 11895 ac_status=$? 11896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11897 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11898 (./conftest; exit; ) >&5 2>/dev/null 11899 lt_status=$? 11900 case x$lt_status in 11901 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11902 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11903 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11904 esac 11905 else : 11906 # compilation failed 11907 lt_cv_dlopen_self_static=no 11908 fi 11909 fi 11910 rm -fr conftest* 11911 11912 11913 fi 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11915 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11916 fi 11917 11918 CPPFLAGS="$save_CPPFLAGS" 11919 LDFLAGS="$save_LDFLAGS" 11920 LIBS="$save_LIBS" 11921 ;; 11922 esac 11923 11924 case $lt_cv_dlopen_self in 11925 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11926 *) enable_dlopen_self=unknown ;; 11927 esac 11928 11929 case $lt_cv_dlopen_self_static in 11930 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11931 *) enable_dlopen_self_static=unknown ;; 11932 esac 11933 fi 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 striplib= 11952 old_striplib= 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11954 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11955 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11956 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11957 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11959 $as_echo "yes" >&6; } 11960 else 11961 # FIXME - insert some real tests, host_os isn't really good enough 11962 case $host_os in 11963 darwin*) 11964 if test -n "$STRIP" ; then 11965 striplib="$STRIP -x" 11966 old_striplib="$STRIP -S" 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11968 $as_echo "yes" >&6; } 11969 else 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11971 $as_echo "no" >&6; } 11972 fi 11973 ;; 11974 *) 11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11976 $as_echo "no" >&6; } 11977 ;; 11978 esac 11979 fi 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 # Report which library types will actually be built 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11994 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11996 $as_echo "$can_build_shared" >&6; } 11997 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11999 $as_echo_n "checking whether to build shared libraries... " >&6; } 12000 test "$can_build_shared" = "no" && enable_shared=no 12001 12002 # On AIX, shared libraries and static libraries use the same namespace, and 12003 # are all built from PIC. 12004 case $host_os in 12005 aix3*) 12006 test "$enable_shared" = yes && enable_static=no 12007 if test -n "$RANLIB"; then 12008 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12009 postinstall_cmds='$RANLIB $lib' 12010 fi 12011 ;; 12012 12013 aix[4-9]*) 12014 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12015 test "$enable_shared" = yes && enable_static=no 12016 fi 12017 ;; 12018 esac 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12020 $as_echo "$enable_shared" >&6; } 12021 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12023 $as_echo_n "checking whether to build static libraries... " >&6; } 12024 # Make sure either enable_shared or enable_static is yes. 12025 test "$enable_shared" = yes || enable_static=yes 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12027 $as_echo "$enable_static" >&6; } 12028 12029 12030 12031 12032 fi 12033 ac_ext=c 12034 ac_cpp='$CPP $CPPFLAGS' 12035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12037 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12038 12039 CC="$lt_save_CC" 12040 12041 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12042 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12043 (test "X$CXX" != "Xg++"))) ; then 12044 ac_ext=cpp 12045 ac_cpp='$CXXCPP $CPPFLAGS' 12046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12050 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12051 if test -z "$CXXCPP"; then 12052 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 12053 $as_echo_n "(cached) " >&6 12054 else 12055 # Double quotes because CXXCPP needs to be expanded 12056 for CXXCPP in "$CXX -E" "/lib/cpp" 12057 do 12058 ac_preproc_ok=false 12059 for ac_cxx_preproc_warn_flag in '' yes 12060 do 12061 # Use a header file that comes with gcc, so configuring glibc 12062 # with a fresh cross-compiler works. 12063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12064 # <limits.h> exists even on freestanding compilers. 12065 # On the NeXT, cc -E runs the code through the compiler's parser, 12066 # not just through cpp. "Syntax error" is here to catch this case. 12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12068 /* end confdefs.h. */ 12069 #ifdef __STDC__ 12070 # include <limits.h> 12071 #else 12072 # include <assert.h> 12073 #endif 12074 Syntax error 12075 _ACEOF 12076 if ac_fn_cxx_try_cpp "$LINENO"; then : 12077 12078 else 12079 # Broken: fails on valid input. 12080 continue 12081 fi 12082 rm -f conftest.err conftest.$ac_ext 12083 12084 # OK, works on sane cases. Now check whether nonexistent headers 12085 # can be detected and how. 12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12087 /* end confdefs.h. */ 12088 #include <ac_nonexistent.h> 12089 _ACEOF 12090 if ac_fn_cxx_try_cpp "$LINENO"; then : 12091 # Broken: success on invalid input. 12092 continue 12093 else 12094 # Passes both tests. 12095 ac_preproc_ok=: 12096 break 12097 fi 12098 rm -f conftest.err conftest.$ac_ext 12099 12100 done 12101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12102 rm -f conftest.err conftest.$ac_ext 12103 if $ac_preproc_ok; then : 12104 break 12105 fi 12106 12107 done 12108 ac_cv_prog_CXXCPP=$CXXCPP 12109 12110 fi 12111 CXXCPP=$ac_cv_prog_CXXCPP 12112 else 12113 ac_cv_prog_CXXCPP=$CXXCPP 12114 fi 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12116 $as_echo "$CXXCPP" >&6; } 12117 ac_preproc_ok=false 12118 for ac_cxx_preproc_warn_flag in '' yes 12119 do 12120 # Use a header file that comes with gcc, so configuring glibc 12121 # with a fresh cross-compiler works. 12122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12123 # <limits.h> exists even on freestanding compilers. 12124 # On the NeXT, cc -E runs the code through the compiler's parser, 12125 # not just through cpp. "Syntax error" is here to catch this case. 12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12127 /* end confdefs.h. */ 12128 #ifdef __STDC__ 12129 # include <limits.h> 12130 #else 12131 # include <assert.h> 12132 #endif 12133 Syntax error 12134 _ACEOF 12135 if ac_fn_cxx_try_cpp "$LINENO"; then : 12136 12137 else 12138 # Broken: fails on valid input. 12139 continue 12140 fi 12141 rm -f conftest.err conftest.$ac_ext 12142 12143 # OK, works on sane cases. Now check whether nonexistent headers 12144 # can be detected and how. 12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12146 /* end confdefs.h. */ 12147 #include <ac_nonexistent.h> 12148 _ACEOF 12149 if ac_fn_cxx_try_cpp "$LINENO"; then : 12150 # Broken: success on invalid input. 12151 continue 12152 else 12153 # Passes both tests. 12154 ac_preproc_ok=: 12155 break 12156 fi 12157 rm -f conftest.err conftest.$ac_ext 12158 12159 done 12160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12161 rm -f conftest.err conftest.$ac_ext 12162 if $ac_preproc_ok; then : 12163 12164 else 12165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12167 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 12168 See \`config.log' for more details." "$LINENO" 5; } 12169 fi 12170 12171 ac_ext=c 12172 ac_cpp='$CPP $CPPFLAGS' 12173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12175 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12176 12177 else 12178 _lt_caught_CXX_error=yes 12179 fi 12180 12181 ac_ext=cpp 12182 ac_cpp='$CXXCPP $CPPFLAGS' 12183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12186 12187 archive_cmds_need_lc_CXX=no 12188 allow_undefined_flag_CXX= 12189 always_export_symbols_CXX=no 12190 archive_expsym_cmds_CXX= 12191 compiler_needs_object_CXX=no 12192 export_dynamic_flag_spec_CXX= 12193 hardcode_direct_CXX=no 12194 hardcode_direct_absolute_CXX=no 12195 hardcode_libdir_flag_spec_CXX= 12196 hardcode_libdir_flag_spec_ld_CXX= 12197 hardcode_libdir_separator_CXX= 12198 hardcode_minus_L_CXX=no 12199 hardcode_shlibpath_var_CXX=unsupported 12200 hardcode_automatic_CXX=no 12201 inherit_rpath_CXX=no 12202 module_cmds_CXX= 12203 module_expsym_cmds_CXX= 12204 link_all_deplibs_CXX=unknown 12205 old_archive_cmds_CXX=$old_archive_cmds 12206 reload_flag_CXX=$reload_flag 12207 reload_cmds_CXX=$reload_cmds 12208 no_undefined_flag_CXX= 12209 whole_archive_flag_spec_CXX= 12210 enable_shared_with_static_runtimes_CXX=no 12211 12212 # Source file extension for C++ test sources. 12213 ac_ext=cpp 12214 12215 # Object file extension for compiled C++ test sources. 12216 objext=o 12217 objext_CXX=$objext 12218 12219 # No sense in running all these tests if we already determined that 12220 # the CXX compiler isn't working. Some variables (like enable_shared) 12221 # are currently assumed to apply to all compilers on this platform, 12222 # and will be corrupted by setting them based on a non-working compiler. 12223 if test "$_lt_caught_CXX_error" != yes; then 12224 # Code to be used in simple compile tests 12225 lt_simple_compile_test_code="int some_variable = 0;" 12226 12227 # Code to be used in simple link tests 12228 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12229 12230 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12231 12232 12233 12234 12235 12236 12237 # If no C compiler was specified, use CC. 12238 LTCC=${LTCC-"$CC"} 12239 12240 # If no C compiler flags were specified, use CFLAGS. 12241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12242 12243 # Allow CC to be a program name with arguments. 12244 compiler=$CC 12245 12246 12247 # save warnings/boilerplate of simple test code 12248 ac_outfile=conftest.$ac_objext 12249 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12250 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12251 _lt_compiler_boilerplate=`cat conftest.err` 12252 $RM conftest* 12253 12254 ac_outfile=conftest.$ac_objext 12255 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12256 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12257 _lt_linker_boilerplate=`cat conftest.err` 12258 $RM -r conftest* 12259 12260 12261 # Allow CC to be a program name with arguments. 12262 lt_save_CC=$CC 12263 lt_save_LD=$LD 12264 lt_save_GCC=$GCC 12265 GCC=$GXX 12266 lt_save_with_gnu_ld=$with_gnu_ld 12267 lt_save_path_LD=$lt_cv_path_LD 12268 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12269 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12270 else 12271 $as_unset lt_cv_prog_gnu_ld 12272 fi 12273 if test -n "${lt_cv_path_LDCXX+set}"; then 12274 lt_cv_path_LD=$lt_cv_path_LDCXX 12275 else 12276 $as_unset lt_cv_path_LD 12277 fi 12278 test -z "${LDCXX+set}" || LD=$LDCXX 12279 CC=${CXX-"c++"} 12280 compiler=$CC 12281 compiler_CXX=$CC 12282 for cc_temp in $compiler""; do 12283 case $cc_temp in 12284 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12285 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12286 \-*) ;; 12287 *) break;; 12288 esac 12289 done 12290 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12291 12292 12293 if test -n "$compiler"; then 12294 # We don't want -fno-exception when compiling C++ code, so set the 12295 # no_builtin_flag separately 12296 if test "$GXX" = yes; then 12297 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12298 else 12299 lt_prog_compiler_no_builtin_flag_CXX= 12300 fi 12301 12302 if test "$GXX" = yes; then 12303 # Set up default GNU C++ configuration 12304 12305 12306 12307 # Check whether --with-gnu-ld was given. 12308 if test "${with_gnu_ld+set}" = set; then : 12309 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12310 else 12311 with_gnu_ld=no 12312 fi 12313 12314 ac_prog=ld 12315 if test "$GCC" = yes; then 12316 # Check if gcc -print-prog-name=ld gives a path. 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12318 $as_echo_n "checking for ld used by $CC... " >&6; } 12319 case $host in 12320 *-*-mingw*) 12321 # gcc leaves a trailing carriage return which upsets mingw 12322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12323 *) 12324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12325 esac 12326 case $ac_prog in 12327 # Accept absolute paths. 12328 [\\/]* | ?:[\\/]*) 12329 re_direlt='/[^/][^/]*/\.\./' 12330 # Canonicalize the pathname of ld 12331 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12332 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12333 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12334 done 12335 test -z "$LD" && LD="$ac_prog" 12336 ;; 12337 "") 12338 # If it fails, then pretend we aren't using GCC. 12339 ac_prog=ld 12340 ;; 12341 *) 12342 # If it is relative, then search for the first ld in PATH. 12343 with_gnu_ld=unknown 12344 ;; 12345 esac 12346 elif test "$with_gnu_ld" = yes; then 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12348 $as_echo_n "checking for GNU ld... " >&6; } 12349 else 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12351 $as_echo_n "checking for non-GNU ld... " >&6; } 12352 fi 12353 if test "${lt_cv_path_LD+set}" = set; then : 12354 $as_echo_n "(cached) " >&6 12355 else 12356 if test -z "$LD"; then 12357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12358 for ac_dir in $PATH; do 12359 IFS="$lt_save_ifs" 12360 test -z "$ac_dir" && ac_dir=. 12361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12362 lt_cv_path_LD="$ac_dir/$ac_prog" 12363 # Check to see if the program is GNU ld. I'd rather use --version, 12364 # but apparently some variants of GNU ld only accept -v. 12365 # Break only if it was the GNU/non-GNU ld that we prefer. 12366 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12367 *GNU* | *'with BFD'*) 12368 test "$with_gnu_ld" != no && break 12369 ;; 12370 *) 12371 test "$with_gnu_ld" != yes && break 12372 ;; 12373 esac 12374 fi 12375 done 12376 IFS="$lt_save_ifs" 12377 else 12378 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12379 fi 12380 fi 12381 12382 LD="$lt_cv_path_LD" 12383 if test -n "$LD"; then 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12385 $as_echo "$LD" >&6; } 12386 else 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12388 $as_echo "no" >&6; } 12389 fi 12390 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12392 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12393 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 12394 $as_echo_n "(cached) " >&6 12395 else 12396 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12397 case `$LD -v 2>&1 </dev/null` in 12398 *GNU* | *'with BFD'*) 12399 lt_cv_prog_gnu_ld=yes 12400 ;; 12401 *) 12402 lt_cv_prog_gnu_ld=no 12403 ;; 12404 esac 12405 fi 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12407 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 12408 with_gnu_ld=$lt_cv_prog_gnu_ld 12409 12410 12411 12412 12413 12414 12415 12416 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12417 # archiving commands below assume that GNU ld is being used. 12418 if test "$with_gnu_ld" = yes; then 12419 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12420 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12421 12422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12423 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12424 12425 # If archive_cmds runs LD, not CC, wlarc should be empty 12426 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12427 # investigate it a little bit more. (MM) 12428 wlarc='${wl}' 12429 12430 # ancient GNU ld didn't support --whole-archive et. al. 12431 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12432 $GREP 'no-whole-archive' > /dev/null; then 12433 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12434 else 12435 whole_archive_flag_spec_CXX= 12436 fi 12437 else 12438 with_gnu_ld=no 12439 wlarc= 12440 12441 # A generic and very simple default shared library creation 12442 # command for GNU C++ for the case where it uses the native 12443 # linker, instead of GNU ld. If possible, this setting should 12444 # overridden to take advantage of the native linker features on 12445 # the platform it is being used on. 12446 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12447 fi 12448 12449 # Commands to make compiler produce verbose output that lists 12450 # what "hidden" libraries, object files and flags are used when 12451 # linking a shared library. 12452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12453 12454 else 12455 GXX=no 12456 with_gnu_ld=no 12457 wlarc= 12458 fi 12459 12460 # PORTME: fill in a description of your system's C++ link characteristics 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12462 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12463 ld_shlibs_CXX=yes 12464 case $host_os in 12465 aix3*) 12466 # FIXME: insert proper C++ library support 12467 ld_shlibs_CXX=no 12468 ;; 12469 aix[4-9]*) 12470 if test "$host_cpu" = ia64; then 12471 # On IA64, the linker does run time linking by default, so we don't 12472 # have to do anything special. 12473 aix_use_runtimelinking=no 12474 exp_sym_flag='-Bexport' 12475 no_entry_flag="" 12476 else 12477 aix_use_runtimelinking=no 12478 12479 # Test if we are trying to use run time linking or normal 12480 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12481 # need to do runtime linking. 12482 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12483 for ld_flag in $LDFLAGS; do 12484 case $ld_flag in 12485 *-brtl*) 12486 aix_use_runtimelinking=yes 12487 break 12488 ;; 12489 esac 12490 done 12491 ;; 12492 esac 12493 12494 exp_sym_flag='-bexport' 12495 no_entry_flag='-bnoentry' 12496 fi 12497 12498 # When large executables or shared objects are built, AIX ld can 12499 # have problems creating the table of contents. If linking a library 12500 # or program results in "error TOC overflow" add -mminimal-toc to 12501 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12502 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12503 12504 archive_cmds_CXX='' 12505 hardcode_direct_CXX=yes 12506 hardcode_direct_absolute_CXX=yes 12507 hardcode_libdir_separator_CXX=':' 12508 link_all_deplibs_CXX=yes 12509 file_list_spec_CXX='${wl}-f,' 12510 12511 if test "$GXX" = yes; then 12512 case $host_os in aix4.[012]|aix4.[012].*) 12513 # We only want to do this on AIX 4.2 and lower, the check 12514 # below for broken collect2 doesn't work under 4.3+ 12515 collect2name=`${CC} -print-prog-name=collect2` 12516 if test -f "$collect2name" && 12517 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12518 then 12519 # We have reworked collect2 12520 : 12521 else 12522 # We have old collect2 12523 hardcode_direct_CXX=unsupported 12524 # It fails to find uninstalled libraries when the uninstalled 12525 # path is not listed in the libpath. Setting hardcode_minus_L 12526 # to unsupported forces relinking 12527 hardcode_minus_L_CXX=yes 12528 hardcode_libdir_flag_spec_CXX='-L$libdir' 12529 hardcode_libdir_separator_CXX= 12530 fi 12531 esac 12532 shared_flag='-shared' 12533 if test "$aix_use_runtimelinking" = yes; then 12534 shared_flag="$shared_flag "'${wl}-G' 12535 fi 12536 else 12537 # not using gcc 12538 if test "$host_cpu" = ia64; then 12539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12540 # chokes on -Wl,-G. The following line is correct: 12541 shared_flag='-G' 12542 else 12543 if test "$aix_use_runtimelinking" = yes; then 12544 shared_flag='${wl}-G' 12545 else 12546 shared_flag='${wl}-bM:SRE' 12547 fi 12548 fi 12549 fi 12550 12551 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12552 # It seems that -bexpall does not export symbols beginning with 12553 # underscore (_), so it is better to generate a list of symbols to 12554 # export. 12555 always_export_symbols_CXX=yes 12556 if test "$aix_use_runtimelinking" = yes; then 12557 # Warning - without using the other runtime loading flags (-brtl), 12558 # -berok will link without error, but may produce a broken library. 12559 allow_undefined_flag_CXX='-berok' 12560 # Determine the default libpath from the value encoded in an empty 12561 # executable. 12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12563 /* end confdefs.h. */ 12564 12565 int 12566 main () 12567 { 12568 12569 ; 12570 return 0; 12571 } 12572 _ACEOF 12573 if ac_fn_cxx_try_link "$LINENO"; then : 12574 12575 lt_aix_libpath_sed=' 12576 /Import File Strings/,/^$/ { 12577 /^0/ { 12578 s/^0 *\(.*\)$/\1/ 12579 p 12580 } 12581 }' 12582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12583 # Check for a 64-bit object if we didn't find anything. 12584 if test -z "$aix_libpath"; then 12585 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12586 fi 12587 fi 12588 rm -f core conftest.err conftest.$ac_objext \ 12589 conftest$ac_exeext conftest.$ac_ext 12590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12591 12592 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12593 12594 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12595 else 12596 if test "$host_cpu" = ia64; then 12597 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12598 allow_undefined_flag_CXX="-z nodefs" 12599 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" 12600 else 12601 # Determine the default libpath from the value encoded in an 12602 # empty executable. 12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12604 /* end confdefs.h. */ 12605 12606 int 12607 main () 12608 { 12609 12610 ; 12611 return 0; 12612 } 12613 _ACEOF 12614 if ac_fn_cxx_try_link "$LINENO"; then : 12615 12616 lt_aix_libpath_sed=' 12617 /Import File Strings/,/^$/ { 12618 /^0/ { 12619 s/^0 *\(.*\)$/\1/ 12620 p 12621 } 12622 }' 12623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12624 # Check for a 64-bit object if we didn't find anything. 12625 if test -z "$aix_libpath"; then 12626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12627 fi 12628 fi 12629 rm -f core conftest.err conftest.$ac_objext \ 12630 conftest$ac_exeext conftest.$ac_ext 12631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12632 12633 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12634 # Warning - without using the other run time loading flags, 12635 # -berok will link without error, but may produce a broken library. 12636 no_undefined_flag_CXX=' ${wl}-bernotok' 12637 allow_undefined_flag_CXX=' ${wl}-berok' 12638 if test "$with_gnu_ld" = yes; then 12639 # We only use this code for GNU lds that support --whole-archive. 12640 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12641 else 12642 # Exported symbols can be pulled into shared objects from archives 12643 whole_archive_flag_spec_CXX='$convenience' 12644 fi 12645 archive_cmds_need_lc_CXX=yes 12646 # This is similar to how AIX traditionally builds its shared 12647 # libraries. 12648 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12649 fi 12650 fi 12651 ;; 12652 12653 beos*) 12654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12655 allow_undefined_flag_CXX=unsupported 12656 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 12657 # support --undefined. This deserves some investigation. FIXME 12658 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12659 else 12660 ld_shlibs_CXX=no 12661 fi 12662 ;; 12663 12664 chorus*) 12665 case $cc_basename in 12666 *) 12667 # FIXME: insert proper C++ library support 12668 ld_shlibs_CXX=no 12669 ;; 12670 esac 12671 ;; 12672 12673 cygwin* | mingw* | pw32* | cegcc*) 12674 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12675 # as there is no search path for DLLs. 12676 hardcode_libdir_flag_spec_CXX='-L$libdir' 12677 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12678 allow_undefined_flag_CXX=unsupported 12679 always_export_symbols_CXX=no 12680 enable_shared_with_static_runtimes_CXX=yes 12681 12682 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12683 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' 12684 # If the export-symbols file already is a .def file (1st line 12685 # is EXPORTS), use it as is; otherwise, prepend... 12686 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12687 cp $export_symbols $output_objdir/$soname.def; 12688 else 12689 echo EXPORTS > $output_objdir/$soname.def; 12690 cat $export_symbols >> $output_objdir/$soname.def; 12691 fi~ 12692 $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' 12693 else 12694 ld_shlibs_CXX=no 12695 fi 12696 ;; 12697 darwin* | rhapsody*) 12698 12699 12700 archive_cmds_need_lc_CXX=no 12701 hardcode_direct_CXX=no 12702 hardcode_automatic_CXX=yes 12703 hardcode_shlibpath_var_CXX=unsupported 12704 if test "$lt_cv_ld_force_load" = "yes"; then 12705 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\"`' 12706 else 12707 whole_archive_flag_spec_CXX='' 12708 fi 12709 link_all_deplibs_CXX=yes 12710 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12711 case $cc_basename in 12712 ifort*) _lt_dar_can_shared=yes ;; 12713 *) _lt_dar_can_shared=$GCC ;; 12714 esac 12715 if test "$_lt_dar_can_shared" = "yes"; then 12716 output_verbose_link_cmd=func_echo_all 12717 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}" 12718 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12719 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}" 12720 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}" 12721 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12722 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}" 12723 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}" 12724 fi 12725 12726 else 12727 ld_shlibs_CXX=no 12728 fi 12729 12730 ;; 12731 12732 dgux*) 12733 case $cc_basename in 12734 ec++*) 12735 # FIXME: insert proper C++ library support 12736 ld_shlibs_CXX=no 12737 ;; 12738 ghcx*) 12739 # Green Hills C++ Compiler 12740 # FIXME: insert proper C++ library support 12741 ld_shlibs_CXX=no 12742 ;; 12743 *) 12744 # FIXME: insert proper C++ library support 12745 ld_shlibs_CXX=no 12746 ;; 12747 esac 12748 ;; 12749 12750 freebsd2.*) 12751 # C++ shared libraries reported to be fairly broken before 12752 # switch to ELF 12753 ld_shlibs_CXX=no 12754 ;; 12755 12756 freebsd-elf*) 12757 archive_cmds_need_lc_CXX=no 12758 ;; 12759 12760 freebsd* | dragonfly*) 12761 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12762 # conventions 12763 ld_shlibs_CXX=yes 12764 ;; 12765 12766 gnu*) 12767 ;; 12768 12769 haiku*) 12770 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12771 link_all_deplibs_CXX=yes 12772 ;; 12773 12774 hpux9*) 12775 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12776 hardcode_libdir_separator_CXX=: 12777 export_dynamic_flag_spec_CXX='${wl}-E' 12778 hardcode_direct_CXX=yes 12779 hardcode_minus_L_CXX=yes # Not in the search PATH, 12780 # but as the default 12781 # location of the library. 12782 12783 case $cc_basename in 12784 CC*) 12785 # FIXME: insert proper C++ library support 12786 ld_shlibs_CXX=no 12787 ;; 12788 aCC*) 12789 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12790 # Commands to make compiler produce verbose output that lists 12791 # what "hidden" libraries, object files and flags are used when 12792 # linking a shared library. 12793 # 12794 # There doesn't appear to be a way to prevent this compiler from 12795 # explicitly linking system object files so we need to strip them 12796 # from the output so that they don't get included in the library 12797 # dependencies. 12798 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"' 12799 ;; 12800 *) 12801 if test "$GXX" = yes; then 12802 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12803 else 12804 # FIXME: insert proper C++ library support 12805 ld_shlibs_CXX=no 12806 fi 12807 ;; 12808 esac 12809 ;; 12810 12811 hpux10*|hpux11*) 12812 if test $with_gnu_ld = no; then 12813 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12814 hardcode_libdir_separator_CXX=: 12815 12816 case $host_cpu in 12817 hppa*64*|ia64*) 12818 ;; 12819 *) 12820 export_dynamic_flag_spec_CXX='${wl}-E' 12821 ;; 12822 esac 12823 fi 12824 case $host_cpu in 12825 hppa*64*|ia64*) 12826 hardcode_direct_CXX=no 12827 hardcode_shlibpath_var_CXX=no 12828 ;; 12829 *) 12830 hardcode_direct_CXX=yes 12831 hardcode_direct_absolute_CXX=yes 12832 hardcode_minus_L_CXX=yes # Not in the search PATH, 12833 # but as the default 12834 # location of the library. 12835 ;; 12836 esac 12837 12838 case $cc_basename in 12839 CC*) 12840 # FIXME: insert proper C++ library support 12841 ld_shlibs_CXX=no 12842 ;; 12843 aCC*) 12844 case $host_cpu in 12845 hppa*64*) 12846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12847 ;; 12848 ia64*) 12849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12850 ;; 12851 *) 12852 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12853 ;; 12854 esac 12855 # Commands to make compiler produce verbose output that lists 12856 # what "hidden" libraries, object files and flags are used when 12857 # linking a shared library. 12858 # 12859 # There doesn't appear to be a way to prevent this compiler from 12860 # explicitly linking system object files so we need to strip them 12861 # from the output so that they don't get included in the library 12862 # dependencies. 12863 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"' 12864 ;; 12865 *) 12866 if test "$GXX" = yes; then 12867 if test $with_gnu_ld = no; then 12868 case $host_cpu in 12869 hppa*64*) 12870 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12871 ;; 12872 ia64*) 12873 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname