1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for dams 4.3.4. 4# 5# Report bugs to <sagara@csis.u-tokyo.ac.jp>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 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 16DUALCASE=1; export DUALCASE # for MKS sh 17if 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 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='dams' 747PACKAGE_TARNAME='dams' 748PACKAGE_VERSION='4.3.4' 749PACKAGE_STRING='dams 4.3.4' 750PACKAGE_BUGREPORT='sagara@csis.u-tokyo.ac.jp' 751 752ac_unique_file="lib/itaiji.cpp.in" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='am__EXEEXT_FALSE 790am__EXEEXT_TRUE 791LTLIBOBJS 792LIBOBJS 793CXXCPP 794CPP 795OTOOL64 796OTOOL 797LIPO 798NMEDIT 799DSYMUTIL 800lt_ECHO 801RANLIB 802AR 803OBJDUMP 804LN_S 805NM 806ac_ct_DUMPBIN 807DUMPBIN 808LD 809FGREP 810EGREP 811GREP 812SED 813host_os 814host_vendor 815host_cpu 816host 817build_os 818build_vendor 819build_cpu 820build 821LIBTOOL 822am__fastdepCC_FALSE 823am__fastdepCC_TRUE 824CCDEPMODE 825ac_ct_CC 826CFLAGS 827CC 828am__fastdepCXX_FALSE 829am__fastdepCXX_TRUE 830CXXDEPMODE 831AMDEPBACKSLASH 832AMDEP_FALSE 833AMDEP_TRUE 834am__quote 835am__include 836DEPDIR 837OBJEXT 838EXEEXT 839ac_ct_CXX 840CPPFLAGS 841LDFLAGS 842CXXFLAGS 843CXX 844LIB_VERSION_INFO 845am__untar 846am__tar 847AMTAR 848am__leading_dot 849SET_MAKE 850AWK 851mkdir_p 852MKDIR_P 853INSTALL_STRIP_PROGRAM 854STRIP 855install_sh 856MAKEINFO 857AUTOHEADER 858AUTOMAKE 859AUTOCONF 860ACLOCAL 861VERSION 862PACKAGE 863CYGPATH_W 864am__isrc 865INSTALL_DATA 866INSTALL_SCRIPT 867INSTALL_PROGRAM 868target_alias 869host_alias 870build_alias 871LIBS 872ECHO_T 873ECHO_N 874ECHO_C 875DEFS 876mandir 877localedir 878libdir 879psdir 880pdfdir 881dvidir 882htmldir 883infodir 884docdir 885oldincludedir 886includedir 887localstatedir 888sharedstatedir 889sysconfdir 890datadir 891datarootdir 892libexecdir 893sbindir 894bindir 895program_transform_name 896prefix 897exec_prefix 898PACKAGE_BUGREPORT 899PACKAGE_STRING 900PACKAGE_VERSION 901PACKAGE_TARNAME 902PACKAGE_NAME 903PATH_SEPARATOR 904SHELL' 905ac_subst_files='' 906ac_user_opts=' 907enable_option_checking 908enable_dependency_tracking 909enable_shared 910enable_static 911with_pic 912enable_fast_install 913with_gnu_ld 914enable_libtool_lock 915' 916 ac_precious_vars='build_alias 917host_alias 918target_alias 919CXX 920CXXFLAGS 921LDFLAGS 922LIBS 923CPPFLAGS 924CCC 925CC 926CFLAGS 927CPP 928CXXCPP' 929 930 931# Initialize some variables set by options. 932ac_init_help= 933ac_init_version=false 934ac_unrecognized_opts= 935ac_unrecognized_sep= 936# The variables have the same names as the options, with 937# dashes changed to underlines. 938cache_file=/dev/null 939exec_prefix=NONE 940no_create= 941no_recursion= 942prefix=NONE 943program_prefix=NONE 944program_suffix=NONE 945program_transform_name=s,x,x, 946silent= 947site= 948srcdir= 949verbose= 950x_includes=NONE 951x_libraries=NONE 952 953# Installation directory options. 954# These are left unexpanded so users can "make install exec_prefix=/foo" 955# and all the variables that are supposed to be based on exec_prefix 956# by default will actually change. 957# Use braces instead of parens because sh, perl, etc. also accept them. 958# (The list follows the same order as the GNU Coding Standards.) 959bindir='${exec_prefix}/bin' 960sbindir='${exec_prefix}/sbin' 961libexecdir='${exec_prefix}/libexec' 962datarootdir='${prefix}/share' 963datadir='${datarootdir}' 964sysconfdir='${prefix}/etc' 965sharedstatedir='${prefix}/com' 966localstatedir='${prefix}/var' 967includedir='${prefix}/include' 968oldincludedir='/usr/include' 969docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 970infodir='${datarootdir}/info' 971htmldir='${docdir}' 972dvidir='${docdir}' 973pdfdir='${docdir}' 974psdir='${docdir}' 975libdir='${exec_prefix}/lib' 976localedir='${datarootdir}/locale' 977mandir='${datarootdir}/man' 978 979ac_prev= 980ac_dashdash= 981for ac_option 982do 983 # If the previous option needs an argument, assign it. 984 if test -n "$ac_prev"; then 985 eval $ac_prev=\$ac_option 986 ac_prev= 987 continue 988 fi 989 990 case $ac_option in 991 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 992 *) ac_optarg=yes ;; 993 esac 994 995 # Accept the important Cygnus configure options, so we can diagnose typos. 996 997 case $ac_dashdash$ac_option in 998 --) 999 ac_dashdash=yes ;; 1000 1001 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1002 ac_prev=bindir ;; 1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1004 bindir=$ac_optarg ;; 1005 1006 -build | --build | --buil | --bui | --bu) 1007 ac_prev=build_alias ;; 1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1009 build_alias=$ac_optarg ;; 1010 1011 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1013 ac_prev=cache_file ;; 1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1016 cache_file=$ac_optarg ;; 1017 1018 --config-cache | -C) 1019 cache_file=config.cache ;; 1020 1021 -datadir | --datadir | --datadi | --datad) 1022 ac_prev=datadir ;; 1023 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1024 datadir=$ac_optarg ;; 1025 1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1027 | --dataroo | --dataro | --datar) 1028 ac_prev=datarootdir ;; 1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1031 datarootdir=$ac_optarg ;; 1032 1033 -disable-* | --disable-*) 1034 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1035 # Reject names that are not valid shell variable names. 1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1037 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1038 { (exit 1); exit 1; }; } 1039 ac_useropt_orig=$ac_useropt 1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1041 case $ac_user_opts in 1042 *" 1043"enable_$ac_useropt" 1044"*) ;; 1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1046 ac_unrecognized_sep=', ';; 1047 esac 1048 eval enable_$ac_useropt=no ;; 1049 1050 -docdir | --docdir | --docdi | --doc | --do) 1051 ac_prev=docdir ;; 1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1053 docdir=$ac_optarg ;; 1054 1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1056 ac_prev=dvidir ;; 1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1058 dvidir=$ac_optarg ;; 1059 1060 -enable-* | --enable-*) 1061 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1062 # Reject names that are not valid shell variable names. 1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1064 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1065 { (exit 1); exit 1; }; } 1066 ac_useropt_orig=$ac_useropt 1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1068 case $ac_user_opts in 1069 *" 1070"enable_$ac_useropt" 1071"*) ;; 1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1073 ac_unrecognized_sep=', ';; 1074 esac 1075 eval enable_$ac_useropt=\$ac_optarg ;; 1076 1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1079 | --exec | --exe | --ex) 1080 ac_prev=exec_prefix ;; 1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1083 | --exec=* | --exe=* | --ex=*) 1084 exec_prefix=$ac_optarg ;; 1085 1086 -gas | --gas | --ga | --g) 1087 # Obsolete; use --with-gas. 1088 with_gas=yes ;; 1089 1090 -help | --help | --hel | --he | -h) 1091 ac_init_help=long ;; 1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1093 ac_init_help=recursive ;; 1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1095 ac_init_help=short ;; 1096 1097 -host | --host | --hos | --ho) 1098 ac_prev=host_alias ;; 1099 -host=* | --host=* | --hos=* | --ho=*) 1100 host_alias=$ac_optarg ;; 1101 1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1103 ac_prev=htmldir ;; 1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1105 | --ht=*) 1106 htmldir=$ac_optarg ;; 1107 1108 -includedir | --includedir | --includedi | --included | --include \ 1109 | --includ | --inclu | --incl | --inc) 1110 ac_prev=includedir ;; 1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1112 | --includ=* | --inclu=* | --incl=* | --inc=*) 1113 includedir=$ac_optarg ;; 1114 1115 -infodir | --infodir | --infodi | --infod | --info | --inf) 1116 ac_prev=infodir ;; 1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1118 infodir=$ac_optarg ;; 1119 1120 -libdir | --libdir | --libdi | --libd) 1121 ac_prev=libdir ;; 1122 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1123 libdir=$ac_optarg ;; 1124 1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1126 | --libexe | --libex | --libe) 1127 ac_prev=libexecdir ;; 1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1129 | --libexe=* | --libex=* | --libe=*) 1130 libexecdir=$ac_optarg ;; 1131 1132 -localedir | --localedir | --localedi | --localed | --locale) 1133 ac_prev=localedir ;; 1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1135 localedir=$ac_optarg ;; 1136 1137 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1138 | --localstate | --localstat | --localsta | --localst | --locals) 1139 ac_prev=localstatedir ;; 1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1142 localstatedir=$ac_optarg ;; 1143 1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1145 ac_prev=mandir ;; 1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1147 mandir=$ac_optarg ;; 1148 1149 -nfp | --nfp | --nf) 1150 # Obsolete; use --without-fp. 1151 with_fp=no ;; 1152 1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1154 | --no-cr | --no-c | -n) 1155 no_create=yes ;; 1156 1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1159 no_recursion=yes ;; 1160 1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1163 | --oldin | --oldi | --old | --ol | --o) 1164 ac_prev=oldincludedir ;; 1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1168 oldincludedir=$ac_optarg ;; 1169 1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1171 ac_prev=prefix ;; 1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1173 prefix=$ac_optarg ;; 1174 1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1176 | --program-pre | --program-pr | --program-p) 1177 ac_prev=program_prefix ;; 1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1180 program_prefix=$ac_optarg ;; 1181 1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1183 | --program-suf | --program-su | --program-s) 1184 ac_prev=program_suffix ;; 1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1187 program_suffix=$ac_optarg ;; 1188 1189 -program-transform-name | --program-transform-name \ 1190 | --program-transform-nam | --program-transform-na \ 1191 | --program-transform-n | --program-transform- \ 1192 | --program-transform | --program-transfor \ 1193 | --program-transfo | --program-transf \ 1194 | --program-trans | --program-tran \ 1195 | --progr-tra | --program-tr | --program-t) 1196 ac_prev=program_transform_name ;; 1197 -program-transform-name=* | --program-transform-name=* \ 1198 | --program-transform-nam=* | --program-transform-na=* \ 1199 | --program-transform-n=* | --program-transform-=* \ 1200 | --program-transform=* | --program-transfor=* \ 1201 | --program-transfo=* | --program-transf=* \ 1202 | --program-trans=* | --program-tran=* \ 1203 | --progr-tra=* | --program-tr=* | --program-t=*) 1204 program_transform_name=$ac_optarg ;; 1205 1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1207 ac_prev=pdfdir ;; 1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1209 pdfdir=$ac_optarg ;; 1210 1211 -psdir | --psdir | --psdi | --psd | --ps) 1212 ac_prev=psdir ;; 1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1214 psdir=$ac_optarg ;; 1215 1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1217 | -silent | --silent | --silen | --sile | --sil) 1218 silent=yes ;; 1219 1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1221 ac_prev=sbindir ;; 1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1223 | --sbi=* | --sb=*) 1224 sbindir=$ac_optarg ;; 1225 1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1228 | --sharedst | --shareds | --shared | --share | --shar \ 1229 | --sha | --sh) 1230 ac_prev=sharedstatedir ;; 1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1234 | --sha=* | --sh=*) 1235 sharedstatedir=$ac_optarg ;; 1236 1237 -site | --site | --sit) 1238 ac_prev=site ;; 1239 -site=* | --site=* | --sit=*) 1240 site=$ac_optarg ;; 1241 1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1243 ac_prev=srcdir ;; 1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1245 srcdir=$ac_optarg ;; 1246 1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1248 | --syscon | --sysco | --sysc | --sys | --sy) 1249 ac_prev=sysconfdir ;; 1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1252 sysconfdir=$ac_optarg ;; 1253 1254 -target | --target | --targe | --targ | --tar | --ta | --t) 1255 ac_prev=target_alias ;; 1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1257 target_alias=$ac_optarg ;; 1258 1259 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1260 verbose=yes ;; 1261 1262 -version | --version | --versio | --versi | --vers | -V) 1263 ac_init_version=: ;; 1264 1265 -with-* | --with-*) 1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1267 # Reject names that are not valid shell variable names. 1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1269 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1270 { (exit 1); exit 1; }; } 1271 ac_useropt_orig=$ac_useropt 1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1273 case $ac_user_opts in 1274 *" 1275"with_$ac_useropt" 1276"*) ;; 1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1278 ac_unrecognized_sep=', ';; 1279 esac 1280 eval with_$ac_useropt=\$ac_optarg ;; 1281 1282 -without-* | --without-*) 1283 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1284 # Reject names that are not valid shell variable names. 1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1286 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1287 { (exit 1); exit 1; }; } 1288 ac_useropt_orig=$ac_useropt 1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1290 case $ac_user_opts in 1291 *" 1292"with_$ac_useropt" 1293"*) ;; 1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1295 ac_unrecognized_sep=', ';; 1296 esac 1297 eval with_$ac_useropt=no ;; 1298 1299 --x) 1300 # Obsolete; use --with-x. 1301 with_x=yes ;; 1302 1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1304 | --x-incl | --x-inc | --x-in | --x-i) 1305 ac_prev=x_includes ;; 1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1308 x_includes=$ac_optarg ;; 1309 1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1312 ac_prev=x_libraries ;; 1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1315 x_libraries=$ac_optarg ;; 1316 1317 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1318Try \`$0 --help' for more information." >&2 1319 { (exit 1); exit 1; }; } 1320 ;; 1321 1322 *=*) 1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1324 # Reject names that are not valid shell variable names. 1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1326 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1327 { (exit 1); exit 1; }; } 1328 eval $ac_envvar=\$ac_optarg 1329 export $ac_envvar ;; 1330 1331 *) 1332 # FIXME: should be removed in autoconf 3.0. 1333 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1335 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1337 ;; 1338 1339 esac 1340done 1341 1342if test -n "$ac_prev"; then 1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1344 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1345 { (exit 1); exit 1; }; } 1346fi 1347 1348if test -n "$ac_unrecognized_opts"; then 1349 case $enable_option_checking in 1350 no) ;; 1351 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1352 { (exit 1); exit 1; }; } ;; 1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1354 esac 1355fi 1356 1357# Check all directory arguments for consistency. 1358for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1359 datadir sysconfdir sharedstatedir localstatedir includedir \ 1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1361 libdir localedir mandir 1362do 1363 eval ac_val=\$$ac_var 1364 # Remove trailing slashes. 1365 case $ac_val in 1366 */ ) 1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1368 eval $ac_var=\$ac_val;; 1369 esac 1370 # Be sure to have absolute directory names. 1371 case $ac_val in 1372 [\\/$]* | ?:[\\/]* ) continue;; 1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1374 esac 1375 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1376 { (exit 1); exit 1; }; } 1377done 1378 1379# There might be people who depend on the old broken behavior: `$host' 1380# used to hold the argument of --host etc. 1381# FIXME: To remove some day. 1382build=$build_alias 1383host=$host_alias 1384target=$target_alias 1385 1386# FIXME: To remove some day. 1387if test "x$host_alias" != x; then 1388 if test "x$build_alias" = x; then 1389 cross_compiling=maybe 1390 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1391 If a cross compiler is detected then cross compile mode will be used." >&2 1392 elif test "x$build_alias" != "x$host_alias"; then 1393 cross_compiling=yes 1394 fi 1395fi 1396 1397ac_tool_prefix= 1398test -n "$host_alias" && ac_tool_prefix=$host_alias- 1399 1400test "$silent" = yes && exec 6>/dev/null 1401 1402 1403ac_pwd=`pwd` && test -n "$ac_pwd" && 1404ac_ls_di=`ls -di .` && 1405ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1406 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1407 { (exit 1); exit 1; }; } 1408test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1409 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1410 { (exit 1); exit 1; }; } 1411 1412 1413# Find the source files, if location was not specified. 1414if test -z "$srcdir"; then 1415 ac_srcdir_defaulted=yes 1416 # Try the directory containing this script, then the parent directory. 1417 ac_confdir=`$as_dirname -- "$as_myself" || 1418$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1419 X"$as_myself" : 'X\(//\)[^/]' \| \ 1420 X"$as_myself" : 'X\(//\)$' \| \ 1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1422$as_echo X"$as_myself" | 1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1424 s//\1/ 1425 q 1426 } 1427 /^X\(\/\/\)[^/].*/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\/\)$/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\).*/{ 1436 s//\1/ 1437 q 1438 } 1439 s/.*/./; q'` 1440 srcdir=$ac_confdir 1441 if test ! -r "$srcdir/$ac_unique_file"; then 1442 srcdir=.. 1443 fi 1444else 1445 ac_srcdir_defaulted=no 1446fi 1447if test ! -r "$srcdir/$ac_unique_file"; then 1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1449 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1450 { (exit 1); exit 1; }; } 1451fi 1452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1453ac_abs_confdir=`( 1454 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1455 { (exit 1); exit 1; }; } 1456 pwd)` 1457# When building in place, set srcdir=. 1458if test "$ac_abs_confdir" = "$ac_pwd"; then 1459 srcdir=. 1460fi 1461# Remove unnecessary trailing slashes from srcdir. 1462# Double slashes in file names in object file debugging info 1463# mess up M-x gdb in Emacs. 1464case $srcdir in 1465*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1466esac 1467for ac_var in $ac_precious_vars; do 1468 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1469 eval ac_env_${ac_var}_value=\$${ac_var} 1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1471 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1472done 1473 1474# 1475# Report the --help message. 1476# 1477if test "$ac_init_help" = "long"; then 1478 # Omit some internal or obsolete options to make the list less imposing. 1479 # This message is too long to be a string in the A/UX 3.1 sh. 1480 cat <<_ACEOF 1481\`configure' configures dams 4.3.4 to adapt to many kinds of systems. 1482 1483Usage: $0 [OPTION]... [VAR=VALUE]... 1484 1485To assign environment variables (e.g., CC, CFLAGS...), specify them as 1486VAR=VALUE. See below for descriptions of some of the useful variables. 1487 1488Defaults for the options are specified in brackets. 1489 1490Configuration: 1491 -h, --help display this help and exit 1492 --help=short display options specific to this package 1493 --help=recursive display the short help of all the included packages 1494 -V, --version display version information and exit 1495 -q, --quiet, --silent do not print \`checking...' messages 1496 --cache-file=FILE cache test results in FILE [disabled] 1497 -C, --config-cache alias for \`--cache-file=config.cache' 1498 -n, --no-create do not create output files 1499 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1500 1501Installation directories: 1502 --prefix=PREFIX install architecture-independent files in PREFIX 1503 [$ac_default_prefix] 1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1505 [PREFIX] 1506 1507By default, \`make install' will install all the files in 1508\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1509an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1510for instance \`--prefix=\$HOME'. 1511 1512For better control, use the options below. 1513 1514Fine tuning of the installation directories: 1515 --bindir=DIR user executables [EPREFIX/bin] 1516 --sbindir=DIR system admin executables [EPREFIX/sbin] 1517 --libexecdir=DIR program executables [EPREFIX/libexec] 1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1521 --libdir=DIR object code libraries [EPREFIX/lib] 1522 --includedir=DIR C header files [PREFIX/include] 1523 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1526 --infodir=DIR info documentation [DATAROOTDIR/info] 1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1528 --mandir=DIR man documentation [DATAROOTDIR/man] 1529 --docdir=DIR documentation root [DATAROOTDIR/doc/dams] 1530 --htmldir=DIR html documentation [DOCDIR] 1531 --dvidir=DIR dvi documentation [DOCDIR] 1532 --pdfdir=DIR pdf documentation [DOCDIR] 1533 --psdir=DIR ps documentation [DOCDIR] 1534_ACEOF 1535 1536 cat <<\_ACEOF 1537 1538Program names: 1539 --program-prefix=PREFIX prepend PREFIX to installed program names 1540 --program-suffix=SUFFIX append SUFFIX to installed program names 1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1542 1543System types: 1544 --build=BUILD configure for building on BUILD [guessed] 1545 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1546_ACEOF 1547fi 1548 1549if test -n "$ac_init_help"; then 1550 case $ac_init_help in 1551 short | recursive ) echo "Configuration of dams 4.3.4:";; 1552 esac 1553 cat <<\_ACEOF 1554 1555Optional Features: 1556 --disable-option-checking ignore unrecognized --enable/--with options 1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1559 --disable-dependency-tracking speeds up one-time build 1560 --enable-dependency-tracking do not reject slow dependency extractors 1561 --enable-shared[=PKGS] build shared libraries [default=yes] 1562 --enable-static[=PKGS] build static libraries [default=yes] 1563 --enable-fast-install[=PKGS] 1564 optimize for fast installation [default=yes] 1565 --disable-libtool-lock avoid locking (might break parallel builds) 1566 1567Optional Packages: 1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1570 --with-pic try to use only PIC/non-PIC objects [default=use 1571 both] 1572 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1573 1574Some influential environment variables: 1575 CXX C++ compiler command 1576 CXXFLAGS C++ compiler flags 1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1578 nonstandard directory <lib dir> 1579 LIBS libraries to pass to the linker, e.g. -l<library> 1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1581 you have headers in a nonstandard directory <include dir> 1582 CC C compiler command 1583 CFLAGS C compiler flags 1584 CPP C preprocessor 1585 CXXCPP C++ preprocessor 1586 1587Use these variables to override the choices made by `configure' or to help 1588it to find libraries and programs with nonstandard names/locations. 1589 1590Report bugs to <sagara@csis.u-tokyo.ac.jp>. 1591_ACEOF 1592ac_status=$? 1593fi 1594 1595if test "$ac_init_help" = "recursive"; then 1596 # If there are subdirs, report their specific --help. 1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1598 test -d "$ac_dir" || 1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1600 continue 1601 ac_builddir=. 1602 1603case "$ac_dir" in 1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1605*) 1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1607 # A ".." for each directory in $ac_dir_suffix. 1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1609 case $ac_top_builddir_sub in 1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1612 esac ;; 1613esac 1614ac_abs_top_builddir=$ac_pwd 1615ac_abs_builddir=$ac_pwd$ac_dir_suffix 1616# for backward compatibility: 1617ac_top_builddir=$ac_top_build_prefix 1618 1619case $srcdir in 1620 .) # We are building in place. 1621 ac_srcdir=. 1622 ac_top_srcdir=$ac_top_builddir_sub 1623 ac_abs_top_srcdir=$ac_pwd ;; 1624 [\\/]* | ?:[\\/]* ) # Absolute name. 1625 ac_srcdir=$srcdir$ac_dir_suffix; 1626 ac_top_srcdir=$srcdir 1627 ac_abs_top_srcdir=$srcdir ;; 1628 *) # Relative name. 1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1630 ac_top_srcdir=$ac_top_build_prefix$srcdir 1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1632esac 1633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1634 1635 cd "$ac_dir" || { ac_status=$?; continue; } 1636 # Check for guested configure. 1637 if test -f "$ac_srcdir/configure.gnu"; then 1638 echo && 1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1640 elif test -f "$ac_srcdir/configure"; then 1641 echo && 1642 $SHELL "$ac_srcdir/configure" --help=recursive 1643 else 1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1645 fi || ac_status=$? 1646 cd "$ac_pwd" || { ac_status=$?; break; } 1647 done 1648fi 1649 1650test -n "$ac_init_help" && exit $ac_status 1651if $ac_init_version; then 1652 cat <<\_ACEOF 1653dams configure 4.3.4 1654generated by GNU Autoconf 2.63 1655 1656Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16572002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1658This configure script is free software; the Free Software Foundation 1659gives unlimited permission to copy, distribute and modify it. 1660_ACEOF 1661 exit 1662fi 1663cat >config.log <<_ACEOF 1664This file contains any messages produced by compilers while 1665running configure, to aid debugging if configure makes a mistake. 1666 1667It was created by dams $as_me 4.3.4, which was 1668generated by GNU Autoconf 2.63. Invocation command line was 1669 1670 $ $0 $@ 1671 1672_ACEOF 1673exec 5>>config.log 1674{ 1675cat <<_ASUNAME 1676## --------- ## 1677## Platform. ## 1678## --------- ## 1679 1680hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1681uname -m = `(uname -m) 2>/dev/null || echo unknown` 1682uname -r = `(uname -r) 2>/dev/null || echo unknown` 1683uname -s = `(uname -s) 2>/dev/null || echo unknown` 1684uname -v = `(uname -v) 2>/dev/null || echo unknown` 1685 1686/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1687/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1688 1689/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1690/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1691/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1692/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1693/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1694/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1695/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1696 1697_ASUNAME 1698 1699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1700for as_dir in $PATH 1701do 1702 IFS=$as_save_IFS 1703 test -z "$as_dir" && as_dir=. 1704 $as_echo "PATH: $as_dir" 1705done 1706IFS=$as_save_IFS 1707 1708} >&5 1709 1710cat >&5 <<_ACEOF 1711 1712 1713## ----------- ## 1714## Core tests. ## 1715## ----------- ## 1716 1717_ACEOF 1718 1719 1720# Keep a trace of the command line. 1721# Strip out --no-create and --no-recursion so they do not pile up. 1722# Strip out --silent because we don't want to record it for future runs. 1723# Also quote any args containing shell meta-characters. 1724# Make two passes to allow for proper duplicate-argument suppression. 1725ac_configure_args= 1726ac_configure_args0= 1727ac_configure_args1= 1728ac_must_keep_next=false 1729for ac_pass in 1 2 1730do 1731 for ac_arg 1732 do 1733 case $ac_arg in 1734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1736 | -silent | --silent | --silen | --sile | --sil) 1737 continue ;; 1738 *\'*) 1739 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1740 esac 1741 case $ac_pass in 1742 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1743 2) 1744 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1745 if test $ac_must_keep_next = true; then 1746 ac_must_keep_next=false # Got value, back to normal. 1747 else 1748 case $ac_arg in 1749 *=* | --config-cache | -C | -disable-* | --disable-* \ 1750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1752 | -with-* | --with-* | -without-* | --without-* | --x) 1753 case "$ac_configure_args0 " in 1754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1755 esac 1756 ;; 1757 -* ) ac_must_keep_next=true ;; 1758 esac 1759 fi 1760 ac_configure_args="$ac_configure_args '$ac_arg'" 1761 ;; 1762 esac 1763 done 1764done 1765$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1766$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1767 1768# When interrupted or exit'd, cleanup temporary files, and complete 1769# config.log. We remove comments because anyway the quotes in there 1770# would cause problems or look ugly. 1771# WARNING: Use '\'' to represent an apostrophe within the trap. 1772# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1773trap 'exit_status=$? 1774 # Save into config.log some information that might help in debugging. 1775 { 1776 echo 1777 1778 cat <<\_ASBOX 1779## ---------------- ## 1780## Cache variables. ## 1781## ---------------- ## 1782_ASBOX 1783 echo 1784 # The following way of writing the cache mishandles newlines in values, 1785( 1786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1787 eval ac_val=\$$ac_var 1788 case $ac_val in #( 1789 *${as_nl}*) 1790 case $ac_var in #( 1791 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1792$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1793 esac 1794 case $ac_var in #( 1795 _ | IFS | as_nl) ;; #( 1796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1797 *) $as_unset $ac_var ;; 1798 esac ;; 1799 esac 1800 done 1801 (set) 2>&1 | 1802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1803 *${as_nl}ac_space=\ *) 1804 sed -n \ 1805 "s/'\''/'\''\\\\'\'''\''/g; 1806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1807 ;; #( 1808 *) 1809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1810 ;; 1811 esac | 1812 sort 1813) 1814 echo 1815 1816 cat <<\_ASBOX 1817## ----------------- ## 1818## Output variables. ## 1819## ----------------- ## 1820_ASBOX 1821 echo 1822 for ac_var in $ac_subst_vars 1823 do 1824 eval ac_val=\$$ac_var 1825 case $ac_val in 1826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1827 esac 1828 $as_echo "$ac_var='\''$ac_val'\''" 1829 done | sort 1830 echo 1831 1832 if test -n "$ac_subst_files"; then 1833 cat <<\_ASBOX 1834## ------------------- ## 1835## File substitutions. ## 1836## ------------------- ## 1837_ASBOX 1838 echo 1839 for ac_var in $ac_subst_files 1840 do 1841 eval ac_val=\$$ac_var 1842 case $ac_val in 1843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1844 esac 1845 $as_echo "$ac_var='\''$ac_val'\''" 1846 done | sort 1847 echo 1848 fi 1849 1850 if test -s confdefs.h; then 1851 cat <<\_ASBOX 1852## ----------- ## 1853## confdefs.h. ## 1854## ----------- ## 1855_ASBOX 1856 echo 1857 cat confdefs.h 1858 echo 1859 fi 1860 test "$ac_signal" != 0 && 1861 $as_echo "$as_me: caught signal $ac_signal" 1862 $as_echo "$as_me: exit $exit_status" 1863 } >&5 1864 rm -f core *.core core.conftest.* && 1865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1866 exit $exit_status 1867' 0 1868for ac_signal in 1 2 13 15; do 1869 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1870done 1871ac_signal=0 1872 1873# confdefs.h avoids OS command line length limits that DEFS can exceed. 1874rm -f -r conftest* confdefs.h 1875 1876# Predefined preprocessor variables. 1877 1878cat >>confdefs.h <<_ACEOF 1879#define PACKAGE_NAME "$PACKAGE_NAME" 1880_ACEOF 1881 1882 1883cat >>confdefs.h <<_ACEOF 1884#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1885_ACEOF 1886 1887 1888cat >>confdefs.h <<_ACEOF 1889#define PACKAGE_VERSION "$PACKAGE_VERSION" 1890_ACEOF 1891 1892 1893cat >>confdefs.h <<_ACEOF 1894#define PACKAGE_STRING "$PACKAGE_STRING" 1895_ACEOF 1896 1897 1898cat >>confdefs.h <<_ACEOF 1899#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1900_ACEOF 1901 1902 1903# Let the site file select an alternate cache file if it wants to. 1904# Prefer an explicitly selected file to automatically selected ones. 1905ac_site_file1=NONE 1906ac_site_file2=NONE 1907if test -n "$CONFIG_SITE"; then 1908 ac_site_file1=$CONFIG_SITE 1909elif test "x$prefix" != xNONE; then 1910 ac_site_file1=$prefix/share/config.site 1911 ac_site_file2=$prefix/etc/config.site 1912else 1913 ac_site_file1=$ac_default_prefix/share/config.site 1914 ac_site_file2=$ac_default_prefix/etc/config.site 1915fi 1916for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1917do 1918 test "x$ac_site_file" = xNONE && continue 1919 if test -r "$ac_site_file"; then 1920 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1921$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1922 sed 's/^/| /' "$ac_site_file" >&5 1923 . "$ac_site_file" 1924 fi 1925done 1926 1927if test -r "$cache_file"; then 1928 # Some versions of bash will fail to source /dev/null (special 1929 # files actually), so we avoid doing that. 1930 if test -f "$cache_file"; then 1931 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1932$as_echo "$as_me: loading cache $cache_file" >&6;} 1933 case $cache_file in 1934 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1935 *) . "./$cache_file";; 1936 esac 1937 fi 1938else 1939 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1940$as_echo "$as_me: creating cache $cache_file" >&6;} 1941 >$cache_file 1942fi 1943 1944# Check that the precious variables saved in the cache have kept the same 1945# value. 1946ac_cache_corrupted=false 1947for ac_var in $ac_precious_vars; do 1948 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1949 eval ac_new_set=\$ac_env_${ac_var}_set 1950 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1951 eval ac_new_val=\$ac_env_${ac_var}_value 1952 case $ac_old_set,$ac_new_set in 1953 set,) 1954 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1955$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1956 ac_cache_corrupted=: ;; 1957 ,set) 1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1959$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1960 ac_cache_corrupted=: ;; 1961 ,);; 1962 *) 1963 if test "x$ac_old_val" != "x$ac_new_val"; then 1964 # differences in whitespace do not lead to failure. 1965 ac_old_val_w=`echo x $ac_old_val` 1966 ac_new_val_w=`echo x $ac_new_val` 1967 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1969$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1970 ac_cache_corrupted=: 1971 else 1972 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1973$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1974 eval $ac_var=\$ac_old_val 1975 fi 1976 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1977$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1978 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1979$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1980 fi;; 1981 esac 1982 # Pass precious variables to config.status. 1983 if test "$ac_new_set" = set; then 1984 case $ac_new_val in 1985 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1986 *) ac_arg=$ac_var=$ac_new_val ;; 1987 esac 1988 case " $ac_configure_args " in 1989 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1990 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1991 esac 1992 fi 1993done 1994if $ac_cache_corrupted; then 1995 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1997 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1998$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1999 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2000$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2001 { (exit 1); exit 1; }; } 2002fi 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028ac_ext=c 2029ac_cpp='$CPP $CPPFLAGS' 2030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2032ac_compiler_gnu=$ac_cv_c_compiler_gnu 2033 2034 2035am__api_version='1.11' 2036 2037ac_aux_dir= 2038for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2039 if test -f "$ac_dir/install-sh"; then 2040 ac_aux_dir=$ac_dir 2041 ac_install_sh="$ac_aux_dir/install-sh -c" 2042 break 2043 elif test -f "$ac_dir/install.sh"; then 2044 ac_aux_dir=$ac_dir 2045 ac_install_sh="$ac_aux_dir/install.sh -c" 2046 break 2047 elif test -f "$ac_dir/shtool"; then 2048 ac_aux_dir=$ac_dir 2049 ac_install_sh="$ac_aux_dir/shtool install -c" 2050 break 2051 fi 2052done 2053if test -z "$ac_aux_dir"; then 2054 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2055$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2056 { (exit 1); exit 1; }; } 2057fi 2058 2059# These three variables are undocumented and unsupported, 2060# and are intended to be withdrawn in a future Autoconf release. 2061# They can cause serious problems if a builder's source tree is in a directory 2062# whose full name contains unusual characters. 2063ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2064ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2065ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2066 2067 2068# Find a good install program. We prefer a C program (faster), 2069# so one script is as good as another. But avoid the broken or 2070# incompatible versions: 2071# SysV /etc/install, /usr/sbin/install 2072# SunOS /usr/etc/install 2073# IRIX /sbin/install 2074# AIX /bin/install 2075# AmigaOS /C/install, which installs bootblocks on floppy discs 2076# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2077# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2078# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2079# OS/2's system install, which has a completely different semantic 2080# ./install, which can be erroneously created by make from ./install.sh. 2081# Reject install programs that cannot install multiple files. 2082{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2083$as_echo_n "checking for a BSD-compatible install... " >&6; } 2084if test -z "$INSTALL"; then 2085if test "${ac_cv_path_install+set}" = set; then 2086 $as_echo_n "(cached) " >&6 2087else 2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2089for as_dir in $PATH 2090do 2091 IFS=$as_save_IFS 2092 test -z "$as_dir" && as_dir=. 2093 # Account for people who put trailing slashes in PATH elements. 2094case $as_dir/ in 2095 ./ | .// | /cC/* | \ 2096 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2097 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2098 /usr/ucb/* ) ;; 2099 *) 2100 # OSF1 and SCO ODT 3.0 have their own names for install. 2101 # Don't use installbsd from OSF since it installs stuff as root 2102 # by default. 2103 for ac_prog in ginstall scoinst install; do 2104 for ac_exec_ext in '' $ac_executable_extensions; do 2105 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2106 if test $ac_prog = install && 2107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2108 # AIX install. It has an incompatible calling convention. 2109 : 2110 elif test $ac_prog = install && 2111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2112 # program-specific install script used by HP pwplus--don't use. 2113 : 2114 else 2115 rm -rf conftest.one conftest.two conftest.dir 2116 echo one > conftest.one 2117 echo two > conftest.two 2118 mkdir conftest.dir 2119 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2120 test -s conftest.one && test -s conftest.two && 2121 test -s conftest.dir/conftest.one && 2122 test -s conftest.dir/conftest.two 2123 then 2124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2125 break 3 2126 fi 2127 fi 2128 fi 2129 done 2130 done 2131 ;; 2132esac 2133 2134done 2135IFS=$as_save_IFS 2136 2137rm -rf conftest.one conftest.two conftest.dir 2138 2139fi 2140 if test "${ac_cv_path_install+set}" = set; then 2141 INSTALL=$ac_cv_path_install 2142 else 2143 # As a last resort, use the slow shell script. Don't cache a 2144 # value for INSTALL within a source directory, because that will 2145 # break other packages using the cache if that directory is 2146 # removed, or if the value is a relative name. 2147 INSTALL=$ac_install_sh 2148 fi 2149fi 2150{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2151$as_echo "$INSTALL" >&6; } 2152 2153# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2154# It thinks the first close brace ends the variable substitution. 2155test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2156 2157test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2158 2159test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2160 2161{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2162$as_echo_n "checking whether build environment is sane... " >&6; } 2163# Just in case 2164sleep 1 2165echo timestamp > conftest.file 2166# Reject unsafe characters in $srcdir or the absolute working directory 2167# name. Accept space and tab only in the latter. 2168am_lf=' 2169' 2170case `pwd` in 2171 *[\\\"\#\$\&\'\`$am_lf]*) 2172 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2173$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2174 { (exit 1); exit 1; }; };; 2175esac 2176case $srcdir in 2177 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2178 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2179$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2180 { (exit 1); exit 1; }; };; 2181esac 2182 2183# Do `set' in a subshell so we don't clobber the current shell's 2184# arguments. Must try -L first in case configure is actually a 2185# symlink; some systems play weird games with the mod time of symlinks 2186# (eg FreeBSD returns the mod time of the symlink's containing 2187# directory). 2188if ( 2189 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2190 if test "$*" = "X"; then 2191 # -L didn't work. 2192 set X `ls -t "$srcdir/configure" conftest.file` 2193 fi 2194 rm -f conftest.file 2195 if test "$*" != "X $srcdir/configure conftest.file" \ 2196 && test "$*" != "X conftest.file $srcdir/configure"; then 2197 2198 # If neither matched, then we have a broken ls. This can happen 2199 # if, for instance, CONFIG_SHELL is bash and it inherits a 2200 # broken ls alias from the environment. This has actually 2201 # happened. Such a system could not be considered "sane". 2202 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2203alias in your environment" >&5 2204$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2205alias in your environment" >&2;} 2206 { (exit 1); exit 1; }; } 2207 fi 2208 2209 test "$2" = conftest.file 2210 ) 2211then 2212 # Ok. 2213 : 2214else 2215 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2216Check your system clock" >&5 2217$as_echo "$as_me: error: newly created file is older than distributed files! 2218Check your system clock" >&2;} 2219 { (exit 1); exit 1; }; } 2220fi 2221{ $as_echo "$as_me:$LINENO: result: yes" >&5 2222$as_echo "yes" >&6; } 2223test "$program_prefix" != NONE && 2224 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2225# Use a double $ so make ignores it. 2226test "$program_suffix" != NONE && 2227 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2228# Double any \ or $. 2229# By default was `s,x,x', remove it if useless. 2230ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2231program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2232 2233# expand $ac_aux_dir to an absolute path 2234am_aux_dir=`cd $ac_aux_dir && pwd` 2235 2236if test x"${MISSING+set}" != xset; then 2237 case $am_aux_dir in 2238 *\ * | *\ *) 2239 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2240 *) 2241 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2242 esac 2243fi 2244# Use eval to expand $SHELL 2245if eval "$MISSING --run true"; then 2246 am_missing_run="$MISSING --run " 2247else 2248 am_missing_run= 2249 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2250$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2251fi 2252 2253if test x"${install_sh}" != xset; then 2254 case $am_aux_dir in 2255 *\ * | *\ *) 2256 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2257 *) 2258 install_sh="\${SHELL} $am_aux_dir/install-sh" 2259 esac 2260fi 2261 2262# Installed binaries are usually stripped using `strip' when the user 2263# run `make install-strip'. However `strip' might not be the right 2264# tool to use in cross-compilation environments, therefore Automake 2265# will honor the `STRIP' environment variable to overrule this program. 2266if test "$cross_compiling" != no; then 2267 if test -n "$ac_tool_prefix"; then 2268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2269set dummy ${ac_tool_prefix}strip; ac_word=$2 2270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2271$as_echo_n "checking for $ac_word... " >&6; } 2272if test "${ac_cv_prog_STRIP+set}" = set; then 2273 $as_echo_n "(cached) " >&6 2274else 2275 if test -n "$STRIP"; then 2276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2277else 2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2279for as_dir in $PATH 2280do 2281 IFS=$as_save_IFS 2282 test -z "$as_dir" && as_dir=. 2283 for ac_exec_ext in '' $ac_executable_extensions; do 2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2285 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2287 break 2 2288 fi 2289done 2290done 2291IFS=$as_save_IFS 2292 2293fi 2294fi 2295STRIP=$ac_cv_prog_STRIP 2296if test -n "$STRIP"; then 2297 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2298$as_echo "$STRIP" >&6; } 2299else 2300 { $as_echo "$as_me:$LINENO: result: no" >&5 2301$as_echo "no" >&6; } 2302fi 2303 2304 2305fi 2306if test -z "$ac_cv_prog_STRIP"; then 2307 ac_ct_STRIP=$STRIP 2308 # Extract the first word of "strip", so it can be a program name with args. 2309set dummy strip; ac_word=$2 2310{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2311$as_echo_n "checking for $ac_word... " >&6; } 2312if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2313 $as_echo_n "(cached) " >&6 2314else 2315 if test -n "$ac_ct_STRIP"; then 2316 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2317else 2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2319for as_dir in $PATH 2320do 2321 IFS=$as_save_IFS 2322 test -z "$as_dir" && as_dir=. 2323 for ac_exec_ext in '' $ac_executable_extensions; do 2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2325 ac_cv_prog_ac_ct_STRIP="strip" 2326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2327 break 2 2328 fi 2329done 2330done 2331IFS=$as_save_IFS 2332 2333fi 2334fi 2335ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2336if test -n "$ac_ct_STRIP"; then 2337 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2338$as_echo "$ac_ct_STRIP" >&6; } 2339else 2340 { $as_echo "$as_me:$LINENO: result: no" >&5 2341$as_echo "no" >&6; } 2342fi 2343 2344 if test "x$ac_ct_STRIP" = x; then 2345 STRIP=":" 2346 else 2347 case $cross_compiling:$ac_tool_warned in 2348yes:) 2349{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2351ac_tool_warned=yes ;; 2352esac 2353 STRIP=$ac_ct_STRIP 2354 fi 2355else 2356 STRIP="$ac_cv_prog_STRIP" 2357fi 2358 2359fi 2360INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2361 2362{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2363$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2364if test -z "$MKDIR_P"; then 2365 if test "${ac_cv_path_mkdir+set}" = set; then 2366 $as_echo_n "(cached) " >&6 2367else 2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2370do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 for ac_prog in mkdir gmkdir; do 2374 for ac_exec_ext in '' $ac_executable_extensions; do 2375 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2376 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2377 'mkdir (GNU coreutils) '* | \ 2378 'mkdir (coreutils) '* | \ 2379 'mkdir (fileutils) '4.1*) 2380 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2381 break 3;; 2382 esac 2383 done 2384 done 2385done 2386IFS=$as_save_IFS 2387 2388fi 2389 2390 if test "${ac_cv_path_mkdir+set}" = set; then 2391 MKDIR_P="$ac_cv_path_mkdir -p" 2392 else 2393 # As a last resort, use the slow shell script. Don't cache a 2394 # value for MKDIR_P within a source directory, because that will 2395 # break other packages using the cache if that directory is 2396 # removed, or if the value is a relative name. 2397 test -d ./--version && rmdir ./--version 2398 MKDIR_P="$ac_install_sh -d" 2399 fi 2400fi 2401{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2402$as_echo "$MKDIR_P" >&6; } 2403 2404mkdir_p="$MKDIR_P" 2405case $mkdir_p in 2406 [\\/$]* | ?:[\\/]*) ;; 2407 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2408esac 2409 2410for ac_prog in gawk mawk nawk awk 2411do 2412 # Extract the first word of "$ac_prog", so it can be a program name with args. 2413set dummy $ac_prog; ac_word=$2 2414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2415$as_echo_n "checking for $ac_word... " >&6; } 2416if test "${ac_cv_prog_AWK+set}" = set; then 2417 $as_echo_n "(cached) " >&6 2418else 2419 if test -n "$AWK"; then 2420 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2421else 2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2423for as_dir in $PATH 2424do 2425 IFS=$as_save_IFS 2426 test -z "$as_dir" && as_dir=. 2427 for ac_exec_ext in '' $ac_executable_extensions; do 2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2429 ac_cv_prog_AWK="$ac_prog" 2430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2431 break 2 2432 fi 2433done 2434done 2435IFS=$as_save_IFS 2436 2437fi 2438fi 2439AWK=$ac_cv_prog_AWK 2440if test -n "$AWK"; then 2441 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2442$as_echo "$AWK" >&6; } 2443else 2444 { $as_echo "$as_me:$LINENO: result: no" >&5 2445$as_echo "no" >&6; } 2446fi 2447 2448 2449 test -n "$AWK" && break 2450done 2451 2452{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2453$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2454set x ${MAKE-make} 2455ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2456if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2457 $as_echo_n "(cached) " >&6 2458else 2459 cat >conftest.make <<\_ACEOF 2460SHELL = /bin/sh 2461all: 2462 @echo '@@@%%%=$(MAKE)=@@@%%%' 2463_ACEOF 2464# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2465case `${MAKE-make} -f conftest.make 2>/dev/null` in 2466 *@@@%%%=?*=@@@%%%*) 2467 eval ac_cv_prog_make_${ac_make}_set=yes;; 2468 *) 2469 eval ac_cv_prog_make_${ac_make}_set=no;; 2470esac 2471rm -f conftest.make 2472fi 2473if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2474 { $as_echo "$as_me:$LINENO: result: yes" >&5 2475$as_echo "yes" >&6; } 2476 SET_MAKE= 2477else 2478 { $as_echo "$as_me:$LINENO: result: no" >&5 2479$as_echo "no" >&6; } 2480 SET_MAKE="MAKE=${MAKE-make}" 2481fi 2482 2483rm -rf .tst 2>/dev/null 2484mkdir .tst 2>/dev/null 2485if test -d .tst; then 2486 am__leading_dot=. 2487else 2488 am__leading_dot=_ 2489fi 2490rmdir .tst 2>/dev/null 2491 2492if test "`cd $srcdir && pwd`" != "`pwd`"; then 2493 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2494 # is not polluted with repeated "-I." 2495 am__isrc=' -I$(srcdir)' 2496 # test to see if srcdir already configured 2497 if test -f $srcdir/config.status; then 2498 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2499$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2500 { (exit 1); exit 1; }; } 2501 fi 2502fi 2503 2504# test whether we have cygpath 2505if test -z "$CYGPATH_W"; then 2506 if (cygpath --version) >/dev/null 2>/dev/null; then 2507 CYGPATH_W='cygpath -w' 2508 else 2509 CYGPATH_W=echo 2510 fi 2511fi 2512 2513 2514# Define the identity of the package. 2515 PACKAGE=dams 2516 VERSION=4.3.4 2517 2518 2519cat >>confdefs.h <<_ACEOF 2520#define PACKAGE "$PACKAGE" 2521_ACEOF 2522 2523 2524cat >>confdefs.h <<_ACEOF 2525#define VERSION "$VERSION" 2526_ACEOF 2527 2528# Some tools Automake needs. 2529 2530ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2531 2532 2533AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2534 2535 2536AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2537 2538 2539AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2540 2541 2542MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2543 2544# We need awk for the "check" target. The system "awk" is bad on 2545# some platforms. 2546# Always define AMTAR for backward compatibility. 2547 2548AMTAR=${AMTAR-"${am_missing_run}tar"} 2549 2550am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2551 2552 2553 2554 2555 2556 2557ac_config_headers="$ac_config_headers include/config.h" 2558 2559 2560 2561# library version 2562LIB_VERSION_INFO='4.3.4' 2563 2564 2565# Checks for programs. 2566ac_ext=cpp 2567ac_cpp='$CXXCPP $CPPFLAGS' 2568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2571if test -z "$CXX"; then 2572 if test -n "$CCC"; then 2573 CXX=$CCC 2574 else 2575 if test -n "$ac_tool_prefix"; then 2576 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2577 do 2578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2579set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2580{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2581$as_echo_n "checking for $ac_word... " >&6; } 2582if test "${ac_cv_prog_CXX+set}" = set; then 2583 $as_echo_n "(cached) " >&6 2584else 2585 if test -n "$CXX"; then 2586 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2595 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605CXX=$ac_cv_prog_CXX 2606if test -n "$CXX"; then 2607 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 2608$as_echo "$CXX" >&6; } 2609else 2610 { $as_echo "$as_me:$LINENO: result: no" >&5 2611$as_echo "no" >&6; } 2612fi 2613 2614 2615 test -n "$CXX" && break 2616 done 2617fi 2618if test -z "$CXX"; then 2619 ac_ct_CXX=$CXX 2620 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2621do 2622 # Extract the first word of "$ac_prog", so it can be a program name with args. 2623set dummy $ac_prog; ac_word=$2 2624{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2625$as_echo_n "checking for $ac_word... " >&6; } 2626if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2627 $as_echo_n "(cached) " >&6 2628else 2629 if test -n "$ac_ct_CXX"; then 2630 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2631else 2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2633for as_dir in $PATH 2634do 2635 IFS=$as_save_IFS 2636 test -z "$as_dir" && as_dir=. 2637 for ac_exec_ext in '' $ac_executable_extensions; do 2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2639 ac_cv_prog_ac_ct_CXX="$ac_prog" 2640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2641 break 2 2642 fi 2643done 2644done 2645IFS=$as_save_IFS 2646 2647fi 2648fi 2649ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2650if test -n "$ac_ct_CXX"; then 2651 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2652$as_echo "$ac_ct_CXX" >&6; } 2653else 2654 { $as_echo "$as_me:$LINENO: result: no" >&5 2655$as_echo "no" >&6; } 2656fi 2657 2658 2659 test -n "$ac_ct_CXX" && break 2660done 2661 2662 if test "x$ac_ct_CXX" = x; then 2663 CXX="g++" 2664 else 2665 case $cross_compiling:$ac_tool_warned in 2666yes:) 2667{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2669ac_tool_warned=yes ;; 2670esac 2671 CXX=$ac_ct_CXX 2672 fi 2673fi 2674 2675 fi 2676fi 2677# Provide some information about the compiler. 2678$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2679set X $ac_compile 2680ac_compiler=$2 2681{ (ac_try="$ac_compiler --version >&5" 2682case "(($ac_try" in 2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2684 *) ac_try_echo=$ac_try;; 2685esac 2686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2687$as_echo "$ac_try_echo") >&5 2688 (eval "$ac_compiler --version >&5") 2>&5 2689 ac_status=$? 2690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2691 (exit $ac_status); } 2692{ (ac_try="$ac_compiler -v >&5" 2693case "(($ac_try" in 2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2695 *) ac_try_echo=$ac_try;; 2696esac 2697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2698$as_echo "$ac_try_echo") >&5 2699 (eval "$ac_compiler -v >&5") 2>&5 2700 ac_status=$? 2701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2702 (exit $ac_status); } 2703{ (ac_try="$ac_compiler -V >&5" 2704case "(($ac_try" in 2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2706 *) ac_try_echo=$ac_try;; 2707esac 2708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2709$as_echo "$ac_try_echo") >&5 2710 (eval "$ac_compiler -V >&5") 2>&5 2711 ac_status=$? 2712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2713 (exit $ac_status); } 2714 2715cat >conftest.$ac_ext <<_ACEOF 2716/* confdefs.h. */ 2717_ACEOF 2718cat confdefs.h >>conftest.$ac_ext 2719cat >>conftest.$ac_ext <<_ACEOF 2720/* end confdefs.h. */ 2721 2722int 2723main () 2724{ 2725 2726 ; 2727 return 0; 2728} 2729_ACEOF 2730ac_clean_files_save=$ac_clean_files 2731ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2732# Try to create an executable without -o first, disregard a.out. 2733# It will help us diagnose broken compilers, and finding out an intuition 2734# of exeext. 2735{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 2736$as_echo_n "checking for C++ compiler default output file name... " >&6; } 2737ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2738 2739# The possible output files: 2740ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2741 2742ac_rmfiles= 2743for ac_file in $ac_files 2744do 2745 case $ac_file in 2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2747 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2748 esac 2749done 2750rm -f $ac_rmfiles 2751 2752if { (ac_try="$ac_link_default" 2753case "(($ac_try" in 2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2755 *) ac_try_echo=$ac_try;; 2756esac 2757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2758$as_echo "$ac_try_echo") >&5 2759 (eval "$ac_link_default") 2>&5 2760 ac_status=$? 2761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); }; then 2763 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2764# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2765# in a Makefile. We should not override ac_cv_exeext if it was cached, 2766# so that the user can short-circuit this test for compilers unknown to 2767# Autoconf. 2768for ac_file in $ac_files '' 2769do 2770 test -f "$ac_file" || continue 2771 case $ac_file in 2772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2773 ;; 2774 [ab].out ) 2775 # We found the default executable, but exeext='' is most 2776 # certainly right. 2777 break;; 2778 *.* ) 2779 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2780 then :; else 2781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2782 fi 2783 # We set ac_cv_exeext here because the later test for it is not 2784 # safe: cross compilers may not add the suffix if given an `-o' 2785 # argument, so we may need to know it at that point already. 2786 # Even if this section looks crufty: it has the advantage of 2787 # actually working. 2788 break;; 2789 * ) 2790 break;; 2791 esac 2792done 2793test "$ac_cv_exeext" = no && ac_cv_exeext= 2794 2795else 2796 ac_file='' 2797fi 2798 2799{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2800$as_echo "$ac_file" >&6; } 2801if test -z "$ac_file"; then 2802 $as_echo "$as_me: failed program was:" >&5 2803sed 's/^/| /' conftest.$ac_ext >&5 2804 2805{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2807{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2808See \`config.log' for more details." >&5 2809$as_echo "$as_me: error: C++ compiler cannot create executables 2810See \`config.log' for more details." >&2;} 2811 { (exit 77); exit 77; }; }; } 2812fi 2813 2814ac_exeext=$ac_cv_exeext 2815 2816# Check that the compiler produces executables we can run. If not, either 2817# the compiler is broken, or we cross compile. 2818{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2819$as_echo_n "checking whether the C++ compiler works... " >&6; } 2820# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2821# If not cross compiling, check that we can run a simple program. 2822if test "$cross_compiling" != yes; then 2823 if { ac_try='./$ac_file' 2824 { (case "(($ac_try" in 2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2826 *) ac_try_echo=$ac_try;; 2827esac 2828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2829$as_echo "$ac_try_echo") >&5 2830 (eval "$ac_try") 2>&5 2831 ac_status=$? 2832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2833 (exit $ac_status); }; }; then 2834 cross_compiling=no 2835 else 2836 if test "$cross_compiling" = maybe; then 2837 cross_compiling=yes 2838 else 2839 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2841{ { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2842If you meant to cross compile, use \`--host'. 2843See \`config.log' for more details." >&5 2844$as_echo "$as_me: error: cannot run C++ compiled programs. 2845If you meant to cross compile, use \`--host'. 2846See \`config.log' for more details." >&2;} 2847 { (exit 1); exit 1; }; }; } 2848 fi 2849 fi 2850fi 2851{ $as_echo "$as_me:$LINENO: result: yes" >&5 2852$as_echo "yes" >&6; } 2853 2854rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2855ac_clean_files=$ac_clean_files_save 2856# Check that the compiler produces executables we can run. If not, either 2857# the compiler is broken, or we cross compile. 2858{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2859$as_echo_n "checking whether we are cross compiling... " >&6; } 2860{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2861$as_echo "$cross_compiling" >&6; } 2862 2863{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2864$as_echo_n "checking for suffix of executables... " >&6; } 2865if { (ac_try="$ac_link" 2866case "(($ac_try" in 2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2868 *) ac_try_echo=$ac_try;; 2869esac 2870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2871$as_echo "$ac_try_echo") >&5 2872 (eval "$ac_link") 2>&5 2873 ac_status=$? 2874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2875 (exit $ac_status); }; then 2876 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2877# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2878# work properly (i.e., refer to `conftest.exe'), while it won't with 2879# `rm'. 2880for ac_file in conftest.exe conftest conftest.*; do 2881 test -f "$ac_file" || continue 2882 case $ac_file in 2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2884 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2885 break;; 2886 * ) break;; 2887 esac 2888done 2889else 2890 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2892{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2893See \`config.log' for more details." >&5 2894$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2895See \`config.log' for more details." >&2;} 2896 { (exit 1); exit 1; }; }; } 2897fi 2898 2899rm -f conftest$ac_cv_exeext 2900{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2901$as_echo "$ac_cv_exeext" >&6; } 2902 2903rm -f conftest.$ac_ext 2904EXEEXT=$ac_cv_exeext 2905ac_exeext=$EXEEXT 2906{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2907$as_echo_n "checking for suffix of object files... " >&6; } 2908if test "${ac_cv_objext+set}" = set; then 2909 $as_echo_n "(cached) " >&6 2910else 2911 cat >conftest.$ac_ext <<_ACEOF 2912/* confdefs.h. */ 2913_ACEOF 2914cat confdefs.h >>conftest.$ac_ext 2915cat >>conftest.$ac_ext <<_ACEOF 2916/* end confdefs.h. */ 2917 2918int 2919main () 2920{ 2921 2922 ; 2923 return 0; 2924} 2925_ACEOF 2926rm -f conftest.o conftest.obj 2927if { (ac_try="$ac_compile" 2928case "(($ac_try" in 2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2930 *) ac_try_echo=$ac_try;; 2931esac 2932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2933$as_echo "$ac_try_echo") >&5 2934 (eval "$ac_compile") 2>&5 2935 ac_status=$? 2936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2937 (exit $ac_status); }; then 2938 for ac_file in conftest.o conftest.obj conftest.*; do 2939 test -f "$ac_file" || continue; 2940 case $ac_file in 2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2943 break;; 2944 esac 2945done 2946else 2947 $as_echo "$as_me: failed program was:" >&5 2948sed 's/^/| /' conftest.$ac_ext >&5 2949 2950{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2951$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2952{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2953See \`config.log' for more details." >&5 2954$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2955See \`config.log' for more details." >&2;} 2956 { (exit 1); exit 1; }; }; } 2957fi 2958 2959rm -f conftest.$ac_cv_objext conftest.$ac_ext 2960fi 2961{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2962$as_echo "$ac_cv_objext" >&6; } 2963OBJEXT=$ac_cv_objext 2964ac_objext=$OBJEXT 2965{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2966$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 2967if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2968 $as_echo_n "(cached) " >&6 2969else 2970 cat >conftest.$ac_ext <<_ACEOF 2971/* confdefs.h. */ 2972_ACEOF 2973cat confdefs.h >>conftest.$ac_ext 2974cat >>conftest.$ac_ext <<_ACEOF 2975/* end confdefs.h. */ 2976 2977int 2978main () 2979{ 2980#ifndef __GNUC__ 2981 choke me 2982#endif 2983 2984 ; 2985 return 0; 2986} 2987_ACEOF 2988rm -f conftest.$ac_objext 2989if { (ac_try="$ac_compile" 2990case "(($ac_try" in 2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2992 *) ac_try_echo=$ac_try;; 2993esac 2994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2995$as_echo "$ac_try_echo") >&5 2996 (eval "$ac_compile") 2>conftest.er1 2997 ac_status=$? 2998 grep -v '^ *+' conftest.er1 >conftest.err 2999 rm -f conftest.er1 3000 cat conftest.err >&5 3001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3002 (exit $ac_status); } && { 3003 test -z "$ac_cxx_werror_flag" || 3004 test ! -s conftest.err 3005 } && test -s conftest.$ac_objext; then 3006 ac_compiler_gnu=yes 3007else 3008 $as_echo "$as_me: failed program was:" >&5 3009sed 's/^/| /' conftest.$ac_ext >&5 3010 3011 ac_compiler_gnu=no 3012fi 3013 3014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3015ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3016 3017fi 3018{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3019$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3020if test $ac_compiler_gnu = yes; then 3021 GXX=yes 3022else 3023 GXX= 3024fi 3025ac_test_CXXFLAGS=${CXXFLAGS+set} 3026ac_save_CXXFLAGS=$CXXFLAGS 3027{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3028$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3029if test "${ac_cv_prog_cxx_g+set}" = set; then 3030 $as_echo_n "(cached) " >&6 3031else 3032 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3033 ac_cxx_werror_flag=yes 3034 ac_cv_prog_cxx_g=no 3035 CXXFLAGS="-g" 3036 cat >conftest.$ac_ext <<_ACEOF 3037/* confdefs.h. */ 3038_ACEOF 3039cat confdefs.h >>conftest.$ac_ext 3040cat >>conftest.$ac_ext <<_ACEOF 3041/* end confdefs.h. */ 3042 3043int 3044main () 3045{ 3046 3047 ; 3048 return 0; 3049} 3050_ACEOF 3051rm -f conftest.$ac_objext 3052if { (ac_try="$ac_compile" 3053case "(($ac_try" in 3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3055 *) ac_try_echo=$ac_try;; 3056esac 3057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3058$as_echo "$ac_try_echo") >&5 3059 (eval "$ac_compile") 2>conftest.er1 3060 ac_status=$? 3061 grep -v '^ *+' conftest.er1 >conftest.err 3062 rm -f conftest.er1 3063 cat conftest.err >&5 3064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3065 (exit $ac_status); } && { 3066 test -z "$ac_cxx_werror_flag" || 3067 test ! -s conftest.err 3068 } && test -s conftest.$ac_objext; then 3069 ac_cv_prog_cxx_g=yes 3070else 3071 $as_echo "$as_me: failed program was:" >&5 3072sed 's/^/| /' conftest.$ac_ext >&5 3073 3074 CXXFLAGS="" 3075 cat >conftest.$ac_ext <<_ACEOF 3076/* confdefs.h. */ 3077_ACEOF 3078cat confdefs.h >>conftest.$ac_ext 3079cat >>conftest.$ac_ext <<_ACEOF 3080/* end confdefs.h. */ 3081 3082int 3083main () 3084{ 3085 3086 ; 3087 return 0; 3088} 3089_ACEOF 3090rm -f conftest.$ac_objext 3091if { (ac_try="$ac_compile" 3092case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3097$as_echo "$ac_try_echo") >&5 3098 (eval "$ac_compile") 2>conftest.er1 3099 ac_status=$? 3100 grep -v '^ *+' conftest.er1 >conftest.err 3101 rm -f conftest.er1 3102 cat conftest.err >&5 3103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3104 (exit $ac_status); } && { 3105 test -z "$ac_cxx_werror_flag" || 3106 test ! -s conftest.err 3107 } && test -s conftest.$ac_objext; then 3108 : 3109else 3110 $as_echo "$as_me: failed program was:" >&5 3111sed 's/^/| /' conftest.$ac_ext >&5 3112 3113 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3114 CXXFLAGS="-g" 3115 cat >conftest.$ac_ext <<_ACEOF 3116/* confdefs.h. */ 3117_ACEOF 3118cat confdefs.h >>conftest.$ac_ext 3119cat >>conftest.$ac_ext <<_ACEOF 3120/* end confdefs.h. */ 3121 3122int 3123main () 3124{ 3125 3126 ; 3127 return 0; 3128} 3129_ACEOF 3130rm -f conftest.$ac_objext 3131if { (ac_try="$ac_compile" 3132case "(($ac_try" in 3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3134 *) ac_try_echo=$ac_try;; 3135esac 3136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3137$as_echo "$ac_try_echo") >&5 3138 (eval "$ac_compile") 2>conftest.er1 3139 ac_status=$? 3140 grep -v '^ *+' conftest.er1 >conftest.err 3141 rm -f conftest.er1 3142 cat conftest.err >&5 3143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 (exit $ac_status); } && { 3145 test -z "$ac_cxx_werror_flag" || 3146 test ! -s conftest.err 3147 } && test -s conftest.$ac_objext; then 3148 ac_cv_prog_cxx_g=yes 3149else 3150 $as_echo "$as_me: failed program was:" >&5 3151sed 's/^/| /' conftest.$ac_ext >&5 3152 3153 3154fi 3155 3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3157fi 3158 3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3160fi 3161 3162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3163 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3164fi 3165{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3166$as_echo "$ac_cv_prog_cxx_g" >&6; } 3167if test "$ac_test_CXXFLAGS" = set; then 3168 CXXFLAGS=$ac_save_CXXFLAGS 3169elif test $ac_cv_prog_cxx_g = yes; then 3170 if test "$GXX" = yes; then 3171 CXXFLAGS="-g -O2" 3172 else 3173 CXXFLAGS="-g" 3174 fi 3175else 3176 if test "$GXX" = yes; then 3177 CXXFLAGS="-O2" 3178 else 3179 CXXFLAGS= 3180 fi 3181fi 3182ac_ext=c 3183ac_cpp='$CPP $CPPFLAGS' 3184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3186ac_compiler_gnu=$ac_cv_c_compiler_gnu 3187DEPDIR="${am__leading_dot}deps" 3188 3189ac_config_commands="$ac_config_commands depfiles" 3190 3191 3192am_make=${MAKE-make} 3193cat > confinc << 'END' 3194am__doit: 3195 @echo this is the am__doit target 3196.PHONY: am__doit 3197END 3198# If we don't find an include directive, just comment out the code. 3199{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3200$as_echo_n "checking for style of include used by $am_make... " >&6; } 3201am__include="#" 3202am__quote= 3203_am_result=none 3204# First try GNU make style include. 3205echo "include confinc" > confmf 3206# Ignore all kinds of additional output from `make'. 3207case `$am_make -s -f confmf 2> /dev/null` in #( 3208*the\ am__doit\ target*) 3209 am__include=include 3210 am__quote= 3211 _am_result=GNU 3212 ;; 3213esac 3214# Now try BSD make style include. 3215if test "$am__include" = "#"; then 3216 echo '.include "confinc"' > confmf 3217 case `$am_make -s -f confmf 2> /dev/null` in #( 3218 *the\ am__doit\ target*) 3219 am__include=.include 3220 am__quote="\"" 3221 _am_result=BSD 3222 ;; 3223 esac 3224fi 3225 3226 3227{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3228$as_echo "$_am_result" >&6; } 3229rm -f confinc confmf 3230 3231# Check whether --enable-dependency-tracking was given. 3232if test "${enable_dependency_tracking+set}" = set; then 3233 enableval=$enable_dependency_tracking; 3234fi 3235 3236if test "x$enable_dependency_tracking" != xno; then 3237 am_depcomp="$ac_aux_dir/depcomp" 3238 AMDEPBACKSLASH='\' 3239fi 3240 if test "x$enable_dependency_tracking" != xno; then 3241 AMDEP_TRUE= 3242 AMDEP_FALSE='#' 3243else 3244 AMDEP_TRUE='#' 3245 AMDEP_FALSE= 3246fi 3247 3248 3249 3250depcc="$CXX" am_compiler_list= 3251 3252{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3253$as_echo_n "checking dependency style of $depcc... " >&6; } 3254if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3255 $as_echo_n "(cached) " >&6 3256else 3257 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3258 # We make a subdir and do the tests there. Otherwise we can end up 3259 # making bogus files that we don't know about and never remove. For 3260 # instance it was reported that on HP-UX the gcc test will end up 3261 # making a dummy file named `D' -- because `-MD' means `put the output 3262 # in D'. 3263 mkdir conftest.dir 3264 # Copy depcomp to subdir because otherwise we won't find it if we're 3265 # using a relative directory. 3266 cp "$am_depcomp" conftest.dir 3267 cd conftest.dir 3268 # We will build objects and dependencies in a subdirectory because 3269 # it helps to detect inapplicable dependency modes. For instance 3270 # both Tru64's cc and ICC support -MD to output dependencies as a 3271 # side effect of compilation, but ICC will put the dependencies in 3272 # the current directory while Tru64 will put them in the object 3273 # directory. 3274 mkdir sub 3275 3276 am_cv_CXX_dependencies_compiler_type=none 3277 if test "$am_compiler_list" = ""; then 3278 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3279 fi 3280 am__universal=false 3281 case " $depcc " in #( 3282 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3283 esac 3284 3285 for depmode in $am_compiler_list; do 3286 # Setup a source with many dependencies, because some compilers 3287 # like to wrap large dependency lists on column 80 (with \), and 3288 # we should not choose a depcomp mode which is confused by this. 3289 # 3290 # We need to recreate these files for each test, as the compiler may 3291 # overwrite some of them when testing with obscure command lines. 3292 # This happens at least with the AIX C compiler. 3293 : > sub/conftest.c 3294 for i in 1 2 3 4 5 6; do 3295 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3296 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3297 # Solaris 8's {/usr,}/bin/sh. 3298 touch sub/conftst$i.h 3299 done 3300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3301 3302 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3303 # mode. It turns out that the SunPro C++ compiler does not properly 3304 # handle `-M -o', and we need to detect this. Also, some Intel 3305 # versions had trouble with output in subdirs 3306 am__obj=sub/conftest.${OBJEXT-o} 3307 am__minus_obj="-o $am__obj" 3308 case $depmode in 3309 gcc) 3310 # This depmode causes a compiler race in universal mode. 3311 test "$am__universal" = false || continue 3312 ;; 3313 nosideeffect) 3314 # after this tag, mechanisms are not by side-effect, so they'll 3315 # only be used when explicitly requested 3316 if test "x$enable_dependency_tracking" = xyes; then 3317 continue 3318 else 3319 break 3320 fi 3321 ;; 3322 msvisualcpp | msvcmsys) 3323 # This compiler won't grok `-c -o', but also, the minuso test has 3324 # not run yet. These depmodes are late enough in the game, and 3325 # so weak that their functioning should not be impacted. 3326 am__obj=conftest.${OBJEXT-o} 3327 am__minus_obj= 3328 ;; 3329 none) break ;; 3330 esac 3331 if depmode=$depmode \ 3332 source=sub/conftest.c object=$am__obj \ 3333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3335 >/dev/null 2>conftest.err && 3336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3340 # icc doesn't choke on unknown options, it will just issue warnings 3341 # or remarks (even with -Werror). So we grep stderr for any message 3342 # that says an option was ignored or not supported. 3343 # When given -MP, icc 7.0 and 7.1 complain thusly: 3344 # icc: Command line warning: ignoring option '-M'; no argument required 3345 # The diagnosis changed in icc 8.0: 3346 # icc: Command line remark: option '-MP' not supported 3347 if (grep 'ignoring option' conftest.err || 3348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3349 am_cv_CXX_dependencies_compiler_type=$depmode 3350 break 3351 fi 3352 fi 3353 done 3354 3355 cd .. 3356 rm -rf conftest.dir 3357else 3358 am_cv_CXX_dependencies_compiler_type=none 3359fi 3360 3361fi 3362{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3363$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3364CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3365 3366 if 3367 test "x$enable_dependency_tracking" != xno \ 3368 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3369 am__fastdepCXX_TRUE= 3370 am__fastdepCXX_FALSE='#' 3371else 3372 am__fastdepCXX_TRUE='#' 3373 am__fastdepCXX_FALSE= 3374fi 3375 3376 3377ac_ext=c 3378ac_cpp='$CPP $CPPFLAGS' 3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3381ac_compiler_gnu=$ac_cv_c_compiler_gnu 3382if test -n "$ac_tool_prefix"; then 3383 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3384set dummy ${ac_tool_prefix}gcc; ac_word=$2 3385{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3386$as_echo_n "checking for $ac_word... " >&6; } 3387if test "${ac_cv_prog_CC+set}" = set; then 3388 $as_echo_n "(cached) " >&6 3389else 3390 if test -n "$CC"; then 3391 ac_cv_prog_CC="$CC" # Let the user override the test. 3392else 3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3394for as_dir in $PATH 3395do 3396 IFS=$as_save_IFS 3397 test -z "$as_dir" && as_dir=. 3398 for ac_exec_ext in '' $ac_executable_extensions; do 3399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3400 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3402 break 2 3403 fi 3404done 3405done 3406IFS=$as_save_IFS 3407 3408fi 3409fi 3410CC=$ac_cv_prog_CC 3411if test -n "$CC"; then 3412 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3413$as_echo "$CC" >&6; } 3414else 3415 { $as_echo "$as_me:$LINENO: result: no" >&5 3416$as_echo "no" >&6; } 3417fi 3418 3419 3420fi 3421if test -z "$ac_cv_prog_CC"; then 3422 ac_ct_CC=$CC 3423 # Extract the first word of "gcc", so it can be a program name with args. 3424set dummy gcc; ac_word=$2 3425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3426$as_echo_n "checking for $ac_word... " >&6; } 3427if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3428 $as_echo_n "(cached) " >&6 3429else 3430 if test -n "$ac_ct_CC"; then 3431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3432else 3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3434for as_dir in $PATH 3435do 3436 IFS=$as_save_IFS 3437 test -z "$as_dir" && as_dir=. 3438 for ac_exec_ext in '' $ac_executable_extensions; do 3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3440 ac_cv_prog_ac_ct_CC="gcc" 3441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3442 break 2 3443 fi 3444done 3445done 3446IFS=$as_save_IFS 3447 3448fi 3449fi 3450ac_ct_CC=$ac_cv_prog_ac_ct_CC 3451if test -n "$ac_ct_CC"; then 3452 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3453$as_echo "$ac_ct_CC" >&6; } 3454else 3455 { $as_echo "$as_me:$LINENO: result: no" >&5 3456$as_echo "no" >&6; } 3457fi 3458 3459 if test "x$ac_ct_CC" = x; then 3460 CC="" 3461 else 3462 case $cross_compiling:$ac_tool_warned in 3463yes:) 3464{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3466ac_tool_warned=yes ;; 3467esac 3468 CC=$ac_ct_CC 3469 fi 3470else 3471 CC="$ac_cv_prog_CC" 3472fi 3473 3474if test -z "$CC"; then 3475 if test -n "$ac_tool_prefix"; then 3476 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3477set dummy ${ac_tool_prefix}cc; ac_word=$2 3478{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3479$as_echo_n "checking for $ac_word... " >&6; } 3480if test "${ac_cv_prog_CC+set}" = set; then 3481 $as_echo_n "(cached) " >&6 3482else 3483 if test -n "$CC"; then 3484 ac_cv_prog_CC="$CC" # Let the user override the test. 3485else 3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487for as_dir in $PATH 3488do 3489 IFS=$as_save_IFS 3490 test -z "$as_dir" && as_dir=. 3491 for ac_exec_ext in '' $ac_executable_extensions; do 3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3493 ac_cv_prog_CC="${ac_tool_prefix}cc" 3494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3495 break 2 3496 fi 3497done 3498done 3499IFS=$as_save_IFS 3500 3501fi 3502fi 3503CC=$ac_cv_prog_CC 3504if test -n "$CC"; then 3505 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3506$as_echo "$CC" >&6; } 3507else 3508 { $as_echo "$as_me:$LINENO: result: no" >&5 3509$as_echo "no" >&6; } 3510fi 3511 3512 3513 fi 3514fi 3515if test -z "$CC"; then 3516 # Extract the first word of "cc", so it can be a program name with args. 3517set dummy cc; ac_word=$2 3518{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3519$as_echo_n "checking for $ac_word... " >&6; } 3520if test "${ac_cv_prog_CC+set}" = set; then 3521 $as_echo_n "(cached) " >&6 3522else 3523 if test -n "$CC"; then 3524 ac_cv_prog_CC="$CC" # Let the user override the test. 3525else 3526 ac_prog_rejected=no 3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3528for as_dir in $PATH 3529do 3530 IFS=$as_save_IFS 3531 test -z "$as_dir" && as_dir=. 3532 for ac_exec_ext in '' $ac_executable_extensions; do 3533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3534 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3535 ac_prog_rejected=yes 3536 continue 3537 fi 3538 ac_cv_prog_CC="cc" 3539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3540 break 2 3541 fi 3542done 3543done 3544IFS=$as_save_IFS 3545 3546if test $ac_prog_rejected = yes; then 3547 # We found a bogon in the path, so make sure we never use it. 3548 set dummy $ac_cv_prog_CC 3549 shift 3550 if test $# != 0; then 3551 # We chose a different compiler from the bogus one. 3552 # However, it has the same basename, so the bogon will be chosen 3553 # first if we set CC to just the basename; use the full file name. 3554 shift 3555 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3556 fi 3557fi 3558fi 3559fi 3560CC=$ac_cv_prog_CC 3561if test -n "$CC"; then 3562 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3563$as_echo "$CC" >&6; } 3564else 3565 { $as_echo "$as_me:$LINENO: result: no" >&5 3566$as_echo "no" >&6; } 3567fi 3568 3569 3570fi 3571if test -z "$CC"; then 3572 if test -n "$ac_tool_prefix"; then 3573 for ac_prog in cl.exe 3574 do 3575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3576set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3577{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3578$as_echo_n "checking for $ac_word... " >&6; } 3579if test "${ac_cv_prog_CC+set}" = set; then 3580 $as_echo_n "(cached) " >&6 3581else 3582 if test -n "$CC"; then 3583 ac_cv_prog_CC="$CC" # Let the user override the test. 3584else 3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3586for as_dir in $PATH 3587do 3588 IFS=$as_save_IFS 3589 test -z "$as_dir" && as_dir=. 3590 for ac_exec_ext in '' $ac_executable_extensions; do 3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3592 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3594 break 2 3595 fi 3596done 3597done 3598IFS=$as_save_IFS 3599 3600fi 3601fi 3602CC=$ac_cv_prog_CC 3603if test -n "$CC"; then 3604 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3605$as_echo "$CC" >&6; } 3606else 3607 { $as_echo "$as_me:$LINENO: result: no" >&5 3608$as_echo "no" >&6; } 3609fi 3610 3611 3612 test -n "$CC" && break 3613 done 3614fi 3615if test -z "$CC"; then 3616 ac_ct_CC=$CC 3617 for ac_prog in cl.exe 3618do 3619 # Extract the first word of "$ac_prog", so it can be a program name with args. 3620set dummy $ac_prog; ac_word=$2 3621{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3622$as_echo_n "checking for $ac_word... " >&6; } 3623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3624 $as_echo_n "(cached) " >&6 3625else 3626 if test -n "$ac_ct_CC"; then 3627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3628else 3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3630for as_dir in $PATH 3631do 3632 IFS=$as_save_IFS 3633 test -z "$as_dir" && as_dir=. 3634 for ac_exec_ext in '' $ac_executable_extensions; do 3635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3636 ac_cv_prog_ac_ct_CC="$ac_prog" 3637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3638 break 2 3639 fi 3640done 3641done 3642IFS=$as_save_IFS 3643 3644fi 3645fi 3646ac_ct_CC=$ac_cv_prog_ac_ct_CC 3647if test -n "$ac_ct_CC"; then 3648 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3649$as_echo "$ac_ct_CC" >&6; } 3650else 3651 { $as_echo "$as_me:$LINENO: result: no" >&5 3652$as_echo "no" >&6; } 3653fi 3654 3655 3656 test -n "$ac_ct_CC" && break 3657done 3658 3659 if test "x$ac_ct_CC" = x; then 3660 CC="" 3661 else 3662 case $cross_compiling:$ac_tool_warned in 3663yes:) 3664{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3666ac_tool_warned=yes ;; 3667esac 3668 CC=$ac_ct_CC 3669 fi 3670fi 3671 3672fi 3673 3674 3675test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3677{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3678See \`config.log' for more details." >&5 3679$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3680See \`config.log' for more details." >&2;} 3681 { (exit 1); exit 1; }; }; } 3682 3683# Provide some information about the compiler. 3684$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3685set X $ac_compile 3686ac_compiler=$2 3687{ (ac_try="$ac_compiler --version >&5" 3688case "(($ac_try" in 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3690 *) ac_try_echo=$ac_try;; 3691esac 3692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3693$as_echo "$ac_try_echo") >&5 3694 (eval "$ac_compiler --version >&5") 2>&5 3695 ac_status=$? 3696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3697 (exit $ac_status); } 3698{ (ac_try="$ac_compiler -v >&5" 3699case "(($ac_try" in 3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3701 *) ac_try_echo=$ac_try;; 3702esac 3703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3704$as_echo "$ac_try_echo") >&5 3705 (eval "$ac_compiler -v >&5") 2>&5 3706 ac_status=$? 3707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3708 (exit $ac_status); } 3709{ (ac_try="$ac_compiler -V >&5" 3710case "(($ac_try" in 3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3712 *) ac_try_echo=$ac_try;; 3713esac 3714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3715$as_echo "$ac_try_echo") >&5 3716 (eval "$ac_compiler -V >&5") 2>&5 3717 ac_status=$? 3718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3719 (exit $ac_status); } 3720 3721{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3722$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3723if test "${ac_cv_c_compiler_gnu+set}" = set; then 3724 $as_echo_n "(cached) " >&6 3725else 3726 cat >conftest.$ac_ext <<_ACEOF 3727/* confdefs.h. */ 3728_ACEOF 3729cat confdefs.h >>conftest.$ac_ext 3730cat >>conftest.$ac_ext <<_ACEOF 3731/* end confdefs.h. */ 3732 3733int 3734main () 3735{ 3736#ifndef __GNUC__ 3737 choke me 3738#endif 3739 3740 ; 3741 return 0; 3742} 3743_ACEOF 3744rm -f conftest.$ac_objext 3745if { (ac_try="$ac_compile" 3746case "(($ac_try" in 3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3748 *) ac_try_echo=$ac_try;; 3749esac 3750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3751$as_echo "$ac_try_echo") >&5 3752 (eval "$ac_compile") 2>conftest.er1 3753 ac_status=$? 3754 grep -v '^ *+' conftest.er1 >conftest.err 3755 rm -f conftest.er1 3756 cat conftest.err >&5 3757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3758 (exit $ac_status); } && { 3759 test -z "$ac_c_werror_flag" || 3760 test ! -s conftest.err 3761 } && test -s conftest.$ac_objext; then 3762 ac_compiler_gnu=yes 3763else 3764 $as_echo "$as_me: failed program was:" >&5 3765sed 's/^/| /' conftest.$ac_ext >&5 3766 3767 ac_compiler_gnu=no 3768fi 3769 3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3771ac_cv_c_compiler_gnu=$ac_compiler_gnu 3772 3773fi 3774{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3775$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3776if test $ac_compiler_gnu = yes; then 3777 GCC=yes 3778else 3779 GCC= 3780fi 3781ac_test_CFLAGS=${CFLAGS+set} 3782ac_save_CFLAGS=$CFLAGS 3783{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3784$as_echo_n "checking whether $CC accepts -g... " >&6; } 3785if test "${ac_cv_prog_cc_g+set}" = set; then 3786 $as_echo_n "(cached) " >&6 3787else 3788 ac_save_c_werror_flag=$ac_c_werror_flag 3789 ac_c_werror_flag=yes 3790 ac_cv_prog_cc_g=no 3791 CFLAGS="-g" 3792 cat >conftest.$ac_ext <<_ACEOF 3793/* confdefs.h. */ 3794_ACEOF 3795cat confdefs.h >>conftest.$ac_ext 3796cat >>conftest.$ac_ext <<_ACEOF 3797/* end confdefs.h. */ 3798 3799int 3800main () 3801{ 3802 3803 ; 3804 return 0; 3805} 3806_ACEOF 3807rm -f conftest.$ac_objext 3808if { (ac_try="$ac_compile" 3809case "(($ac_try" in 3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3811 *) ac_try_echo=$ac_try;; 3812esac 3813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3814$as_echo "$ac_try_echo") >&5 3815 (eval "$ac_compile") 2>conftest.er1 3816 ac_status=$? 3817 grep -v '^ *+' conftest.er1 >conftest.err 3818 rm -f conftest.er1 3819 cat conftest.err >&5 3820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3821 (exit $ac_status); } && { 3822 test -z "$ac_c_werror_flag" || 3823 test ! -s conftest.err 3824 } && test -s conftest.$ac_objext; then 3825 ac_cv_prog_cc_g=yes 3826else 3827 $as_echo "$as_me: failed program was:" >&5 3828sed 's/^/| /' conftest.$ac_ext >&5 3829 3830 CFLAGS="" 3831 cat >conftest.$ac_ext <<_ACEOF 3832/* confdefs.h. */ 3833_ACEOF 3834cat confdefs.h >>conftest.$ac_ext 3835cat >>conftest.$ac_ext <<_ACEOF 3836/* end confdefs.h. */ 3837 3838int 3839main () 3840{ 3841 3842 ; 3843 return 0; 3844} 3845_ACEOF 3846rm -f conftest.$ac_objext 3847if { (ac_try="$ac_compile" 3848case "(($ac_try" in 3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3850 *) ac_try_echo=$ac_try;; 3851esac 3852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3853$as_echo "$ac_try_echo") >&5 3854 (eval "$ac_compile") 2>conftest.er1 3855 ac_status=$? 3856 grep -v '^ *+' conftest.er1 >conftest.err 3857 rm -f conftest.er1 3858 cat conftest.err >&5 3859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); } && { 3861 test -z "$ac_c_werror_flag" || 3862 test ! -s conftest.err 3863 } && test -s conftest.$ac_objext; then 3864 : 3865else 3866 $as_echo "$as_me: failed program was:" >&5 3867sed 's/^/| /' conftest.$ac_ext >&5 3868 3869 ac_c_werror_flag=$ac_save_c_werror_flag 3870 CFLAGS="-g" 3871 cat >conftest.$ac_ext <<_ACEOF 3872/* confdefs.h. */ 3873_ACEOF 3874cat confdefs.h >>conftest.$ac_ext 3875cat >>conftest.$ac_ext <<_ACEOF 3876/* end confdefs.h. */ 3877 3878int 3879main () 3880{ 3881 3882 ; 3883 return 0; 3884} 3885_ACEOF 3886rm -f conftest.$ac_objext 3887if { (ac_try="$ac_compile" 3888case "(($ac_try" in 3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3890 *) ac_try_echo=$ac_try;; 3891esac 3892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3893$as_echo "$ac_try_echo") >&5 3894 (eval "$ac_compile") 2>conftest.er1 3895 ac_status=$? 3896 grep -v '^ *+' conftest.er1 >conftest.err 3897 rm -f conftest.er1 3898 cat conftest.err >&5 3899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3900 (exit $ac_status); } && { 3901 test -z "$ac_c_werror_flag" || 3902 test ! -s conftest.err 3903 } && test -s conftest.$ac_objext; then 3904 ac_cv_prog_cc_g=yes 3905else 3906 $as_echo "$as_me: failed program was:" >&5 3907sed 's/^/| /' conftest.$ac_ext >&5 3908 3909 3910fi 3911 3912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3913fi 3914 3915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3916fi 3917 3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3919 ac_c_werror_flag=$ac_save_c_werror_flag 3920fi 3921{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3922$as_echo "$ac_cv_prog_cc_g" >&6; } 3923if test "$ac_test_CFLAGS" = set; then 3924 CFLAGS=$ac_save_CFLAGS 3925elif test $ac_cv_prog_cc_g = yes; then 3926 if test "$GCC" = yes; then 3927 CFLAGS="-g -O2" 3928 else 3929 CFLAGS="-g" 3930 fi 3931else 3932 if test "$GCC" = yes; then 3933 CFLAGS="-O2" 3934 else 3935 CFLAGS= 3936 fi 3937fi 3938{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3939$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3940if test "${ac_cv_prog_cc_c89+set}" = set; then 3941 $as_echo_n "(cached) " >&6 3942else 3943 ac_cv_prog_cc_c89=no 3944ac_save_CC=$CC 3945cat >conftest.$ac_ext <<_ACEOF 3946/* confdefs.h. */ 3947_ACEOF 3948cat confdefs.h >>conftest.$ac_ext 3949cat >>conftest.$ac_ext <<_ACEOF 3950/* end confdefs.h. */ 3951#include <stdarg.h> 3952#include <stdio.h> 3953#include <sys/types.h> 3954#include <sys/stat.h> 3955/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3956struct buf { int x; }; 3957FILE * (*rcsopen) (struct buf *, struct stat *, int); 3958static char *e (p, i) 3959 char **p; 3960 int i; 3961{ 3962 return p[i]; 3963} 3964static char *f (char * (*g) (char **, int), char **p, ...) 3965{ 3966 char *s; 3967 va_list v; 3968 va_start (v,p); 3969 s = g (p, va_arg (v,int)); 3970 va_end (v); 3971 return s; 3972} 3973 3974/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3975 function prototypes and stuff, but not '\xHH' hex character constants. 3976 These don't provoke an error unfortunately, instead are silently treated 3977 as 'x'. The following induces an error, until -std is added to get 3978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3979 array size at least. It's necessary to write '\x00'==0 to get something 3980 that's true only with -std. */ 3981int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3982 3983/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3984 inside strings and character constants. */ 3985#define FOO(x) 'x' 3986int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3987 3988int test (int i, double x); 3989struct s1 {int (*f) (int a);}; 3990struct s2 {int (*f) (double a);}; 3991int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3992int argc; 3993char **argv; 3994int 3995main () 3996{ 3997return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3998 ; 3999 return 0; 4000} 4001_ACEOF 4002for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4004do 4005 CC="$ac_save_CC $ac_arg" 4006 rm -f conftest.$ac_objext 4007if { (ac_try="$ac_compile" 4008case "(($ac_try" in 4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4010 *) ac_try_echo=$ac_try;; 4011esac 4012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4013$as_echo "$ac_try_echo") >&5 4014 (eval "$ac_compile") 2>conftest.er1 4015 ac_status=$? 4016 grep -v '^ *+' conftest.er1 >conftest.err 4017 rm -f conftest.er1 4018 cat conftest.err >&5 4019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4020 (exit $ac_status); } && { 4021 test -z "$ac_c_werror_flag" || 4022 test ! -s conftest.err 4023 } && test -s conftest.$ac_objext; then 4024 ac_cv_prog_cc_c89=$ac_arg 4025else 4026 $as_echo "$as_me: failed program was:" >&5 4027sed 's/^/| /' conftest.$ac_ext >&5 4028 4029 4030fi 4031 4032rm -f core conftest.err conftest.$ac_objext 4033 test "x$ac_cv_prog_cc_c89" != "xno" && break 4034done 4035rm -f conftest.$ac_ext 4036CC=$ac_save_CC 4037 4038fi 4039# AC_CACHE_VAL 4040case "x$ac_cv_prog_cc_c89" in 4041 x) 4042 { $as_echo "$as_me:$LINENO: result: none needed" >&5 4043$as_echo "none needed" >&6; } ;; 4044 xno) 4045 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4046$as_echo "unsupported" >&6; } ;; 4047 *) 4048 CC="$CC $ac_cv_prog_cc_c89" 4049 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4050$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4051esac 4052 4053 4054ac_ext=c 4055ac_cpp='$CPP $CPPFLAGS' 4056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4058ac_compiler_gnu=$ac_cv_c_compiler_gnu 4059 4060depcc="$CC" am_compiler_list= 4061 4062{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4063$as_echo_n "checking dependency style of $depcc... " >&6; } 4064if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4065 $as_echo_n "(cached) " >&6 4066else 4067 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4068 # We make a subdir and do the tests there. Otherwise we can end up 4069 # making bogus files that we don't know about and never remove. For 4070 # instance it was reported that on HP-UX the gcc test will end up 4071 # making a dummy file named `D' -- because `-MD' means `put the output 4072 # in D'. 4073 mkdir conftest.dir 4074 # Copy depcomp to subdir because otherwise we won't find it if we're 4075 # using a relative directory. 4076 cp "$am_depcomp" conftest.dir 4077 cd conftest.dir 4078 # We will build objects and dependencies in a subdirectory because 4079 # it helps to detect inapplicable dependency modes. For instance 4080 # both Tru64's cc and ICC support -MD to output dependencies as a 4081 # side effect of compilation, but ICC will put the dependencies in 4082 # the current directory while Tru64 will put them in the object 4083 # directory. 4084 mkdir sub 4085 4086 am_cv_CC_dependencies_compiler_type=none 4087 if test "$am_compiler_list" = ""; then 4088 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4089 fi 4090 am__universal=false 4091 case " $depcc " in #( 4092 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4093 esac 4094 4095 for depmode in $am_compiler_list; do 4096 # Setup a source with many dependencies, because some compilers 4097 # like to wrap large dependency lists on column 80 (with \), and 4098 # we should not choose a depcomp mode which is confused by this. 4099 # 4100 # We need to recreate these files for each test, as the compiler may 4101 # overwrite some of them when testing with obscure command lines. 4102 # This happens at least with the AIX C compiler. 4103 : > sub/conftest.c 4104 for i in 1 2 3 4 5 6; do 4105 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4106 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4107 # Solaris 8's {/usr,}/bin/sh. 4108 touch sub/conftst$i.h 4109 done 4110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4111 4112 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4113 # mode. It turns out that the SunPro C++ compiler does not properly 4114 # handle `-M -o', and we need to detect this. Also, some Intel 4115 # versions had trouble with output in subdirs 4116 am__obj=sub/conftest.${OBJEXT-o} 4117 am__minus_obj="-o $am__obj" 4118 case $depmode in 4119 gcc) 4120 # This depmode causes a compiler race in universal mode. 4121 test "$am__universal" = false || continue 4122 ;; 4123 nosideeffect) 4124 # after this tag, mechanisms are not by side-effect, so they'll 4125 # only be used when explicitly requested 4126 if test "x$enable_dependency_tracking" = xyes; then 4127 continue 4128 else 4129 break 4130 fi 4131 ;; 4132 msvisualcpp | msvcmsys) 4133 # This compiler won't grok `-c -o', but also, the minuso test has 4134 # not run yet. These depmodes are late enough in the game, and 4135 # so weak that their functioning should not be impacted. 4136 am__obj=conftest.${OBJEXT-o} 4137 am__minus_obj= 4138 ;; 4139 none) break ;; 4140 esac 4141 if depmode=$depmode \ 4142 source=sub/conftest.c object=$am__obj \ 4143 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4144 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4145 >/dev/null 2>conftest.err && 4146 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4147 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4148 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4149 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4150 # icc doesn't choke on unknown options, it will just issue warnings 4151 # or remarks (even with -Werror). So we grep stderr for any message 4152 # that says an option was ignored or not supported. 4153 # When given -MP, icc 7.0 and 7.1 complain thusly: 4154 # icc: Command line warning: ignoring option '-M'; no argument required 4155 # The diagnosis changed in icc 8.0: 4156 # icc: Command line remark: option '-MP' not supported 4157 if (grep 'ignoring option' conftest.err || 4158 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4159 am_cv_CC_dependencies_compiler_type=$depmode 4160 break 4161 fi 4162 fi 4163 done 4164 4165 cd .. 4166 rm -rf conftest.dir 4167else 4168 am_cv_CC_dependencies_compiler_type=none 4169fi 4170 4171fi 4172{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4173$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4174CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4175 4176 if 4177 test "x$enable_dependency_tracking" != xno \ 4178 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4179 am__fastdepCC_TRUE= 4180 am__fastdepCC_FALSE='#' 4181else 4182 am__fastdepCC_TRUE='#' 4183 am__fastdepCC_FALSE= 4184fi 4185 4186 4187{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4188$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4189set x ${MAKE-make} 4190ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4191if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4192 $as_echo_n "(cached) " >&6 4193else 4194 cat >conftest.make <<\_ACEOF 4195SHELL = /bin/sh 4196all: 4197 @echo '@@@%%%=$(MAKE)=@@@%%%' 4198_ACEOF 4199# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4200case `${MAKE-make} -f conftest.make 2>/dev/null` in 4201 *@@@%%%=?*=@@@%%%*) 4202 eval ac_cv_prog_make_${ac_make}_set=yes;; 4203 *) 4204 eval ac_cv_prog_make_${ac_make}_set=no;; 4205esac 4206rm -f conftest.make 4207fi 4208if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4209 { $as_echo "$as_me:$LINENO: result: yes" >&5 4210$as_echo "yes" >&6; } 4211 SET_MAKE= 4212else 4213 { $as_echo "$as_me:$LINENO: result: no" >&5 4214$as_echo "no" >&6; } 4215 SET_MAKE="MAKE=${MAKE-make}" 4216fi 4217 4218case `pwd` in 4219 *\ * | *\ *) 4220 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4221$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4222esac 4223 4224 4225 4226macro_version='2.2.6b' 4227macro_revision='1.3017' 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241ltmain="$ac_aux_dir/ltmain.sh" 4242 4243# Make sure we can run config.sub. 4244$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4245 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4246$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4247 { (exit 1); exit 1; }; } 4248 4249{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4250$as_echo_n "checking build system type... " >&6; } 4251if test "${ac_cv_build+set}" = set; then 4252 $as_echo_n "(cached) " >&6 4253else 4254 ac_build_alias=$build_alias 4255test "x$ac_build_alias" = x && 4256 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4257test "x$ac_build_alias" = x && 4258 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4259$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4260 { (exit 1); exit 1; }; } 4261ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4262 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4263$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4264 { (exit 1); exit 1; }; } 4265 4266fi 4267{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4268$as_echo "$ac_cv_build" >&6; } 4269case $ac_cv_build in 4270*-*-*) ;; 4271*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4272$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4273 { (exit 1); exit 1; }; };; 4274esac 4275build=$ac_cv_build 4276ac_save_IFS=$IFS; IFS='-' 4277set x $ac_cv_build 4278shift 4279build_cpu=$1 4280build_vendor=$2 4281shift; shift 4282# Remember, the first character of IFS is used to create $*, 4283# except with old shells: 4284build_os=$* 4285IFS=$ac_save_IFS 4286case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4287 4288 4289{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4290$as_echo_n "checking host system type... " >&6; } 4291if test "${ac_cv_host+set}" = set; then 4292 $as_echo_n "(cached) " >&6 4293else 4294 if test "x$host_alias" = x; then 4295 ac_cv_host=$ac_cv_build 4296else 4297 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4298 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4299$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4300 { (exit 1); exit 1; }; } 4301fi 4302 4303fi 4304{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4305$as_echo "$ac_cv_host" >&6; } 4306case $ac_cv_host in 4307*-*-*) ;; 4308*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4309$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4310 { (exit 1); exit 1; }; };; 4311esac 4312host=$ac_cv_host 4313ac_save_IFS=$IFS; IFS='-' 4314set x $ac_cv_host 4315shift 4316host_cpu=$1 4317host_vendor=$2 4318shift; shift 4319# Remember, the first character of IFS is used to create $*, 4320# except with old shells: 4321host_os=$* 4322IFS=$ac_save_IFS 4323case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4324 4325 4326{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4327$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4328if test "${ac_cv_path_SED+set}" = set; then 4329 $as_echo_n "(cached) " >&6 4330else 4331 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4332 for ac_i in 1 2 3 4 5 6 7; do 4333 ac_script="$ac_script$as_nl$ac_script" 4334 done 4335 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4336 $as_unset ac_script || ac_script= 4337 if test -z "$SED"; then 4338 ac_path_SED_found=false 4339 # Loop through the user's path and test for each of PROGNAME-LIST 4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4341for as_dir in $PATH 4342do 4343 IFS=$as_save_IFS 4344 test -z "$as_dir" && as_dir=. 4345 for ac_prog in sed gsed; do 4346 for ac_exec_ext in '' $ac_executable_extensions; do 4347 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4348 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4349# Check for GNU ac_path_SED and select it if it is found. 4350 # Check for GNU $ac_path_SED 4351case `"$ac_path_SED" --version 2>&1` in 4352*GNU*) 4353 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4354*) 4355 ac_count=0 4356 $as_echo_n 0123456789 >"conftest.in" 4357 while : 4358 do 4359 cat "conftest.in" "conftest.in" >"conftest.tmp" 4360 mv "conftest.tmp" "conftest.in" 4361 cp "conftest.in" "conftest.nl" 4362 $as_echo '' >> "conftest.nl" 4363 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4365 ac_count=`expr $ac_count + 1` 4366 if test $ac_count -gt ${ac_path_SED_max-0}; then 4367 # Best one so far, save it but keep looking for a better one 4368 ac_cv_path_SED="$ac_path_SED" 4369 ac_path_SED_max=$ac_count 4370 fi 4371 # 10*(2^10) chars as input seems more than enough 4372 test $ac_count -gt 10 && break 4373 done 4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4375esac 4376 4377 $ac_path_SED_found && break 3 4378 done 4379 done 4380done 4381IFS=$as_save_IFS 4382 if test -z "$ac_cv_path_SED"; then 4383 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4384$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4385 { (exit 1); exit 1; }; } 4386 fi 4387else 4388 ac_cv_path_SED=$SED 4389fi 4390 4391fi 4392{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4393$as_echo "$ac_cv_path_SED" >&6; } 4394 SED="$ac_cv_path_SED" 4395 rm -f conftest.sed 4396 4397test -z "$SED" && SED=sed 4398Xsed="$SED -e 1s/^X//" 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4411$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4412if test "${ac_cv_path_GREP+set}" = set; then 4413 $as_echo_n "(cached) " >&6 4414else 4415 if test -z "$GREP"; then 4416 ac_path_GREP_found=false 4417 # Loop through the user's path and test for each of PROGNAME-LIST 4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4419for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4420do 4421 IFS=$as_save_IFS 4422 test -z "$as_dir" && as_dir=. 4423 for ac_prog in grep ggrep; do 4424 for ac_exec_ext in '' $ac_executable_extensions; do 4425 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4426 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4427# Check for GNU ac_path_GREP and select it if it is found. 4428 # Check for GNU $ac_path_GREP 4429case `"$ac_path_GREP" --version 2>&1` in 4430*GNU*) 4431 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4432*) 4433 ac_count=0 4434 $as_echo_n 0123456789 >"conftest.in" 4435 while : 4436 do 4437 cat "conftest.in" "conftest.in" >"conftest.tmp" 4438 mv "conftest.tmp" "conftest.in" 4439 cp "conftest.in" "conftest.nl" 4440 $as_echo 'GREP' >> "conftest.nl" 4441 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4443 ac_count=`expr $ac_count + 1` 4444 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4445 # Best one so far, save it but keep looking for a better one 4446 ac_cv_path_GREP="$ac_path_GREP" 4447 ac_path_GREP_max=$ac_count 4448 fi 4449 # 10*(2^10) chars as input seems more than enough 4450 test $ac_count -gt 10 && break 4451 done 4452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4453esac 4454 4455 $ac_path_GREP_found && break 3 4456 done 4457 done 4458done 4459IFS=$as_save_IFS 4460 if test -z "$ac_cv_path_GREP"; then 4461 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4462$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4463 { (exit 1); exit 1; }; } 4464 fi 4465else 4466 ac_cv_path_GREP=$GREP 4467fi 4468 4469fi 4470{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4471$as_echo "$ac_cv_path_GREP" >&6; } 4472 GREP="$ac_cv_path_GREP" 4473 4474 4475{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4476$as_echo_n "checking for egrep... " >&6; } 4477if test "${ac_cv_path_EGREP+set}" = set; then 4478 $as_echo_n "(cached) " >&6 4479else 4480 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4481 then ac_cv_path_EGREP="$GREP -E" 4482 else 4483 if test -z "$EGREP"; then 4484 ac_path_EGREP_found=false 4485 # Loop through the user's path and test for each of PROGNAME-LIST 4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4487for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4488do 4489 IFS=$as_save_IFS 4490 test -z "$as_dir" && as_dir=. 4491 for ac_prog in egrep; do 4492 for ac_exec_ext in '' $ac_executable_extensions; do 4493 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4494 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4495# Check for GNU ac_path_EGREP and select it if it is found. 4496 # Check for GNU $ac_path_EGREP 4497case `"$ac_path_EGREP" --version 2>&1` in 4498*GNU*) 4499 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4500*) 4501 ac_count=0 4502 $as_echo_n 0123456789 >"conftest.in" 4503 while : 4504 do 4505 cat "conftest.in" "conftest.in" >"conftest.tmp" 4506 mv "conftest.tmp" "conftest.in" 4507 cp "conftest.in" "conftest.nl" 4508 $as_echo 'EGREP' >> "conftest.nl" 4509 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4511 ac_count=`expr $ac_count + 1` 4512 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4513 # Best one so far, save it but keep looking for a better one 4514 ac_cv_path_EGREP="$ac_path_EGREP" 4515 ac_path_EGREP_max=$ac_count 4516 fi 4517 # 10*(2^10) chars as input seems more than enough 4518 test $ac_count -gt 10 && break 4519 done 4520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4521esac 4522 4523 $ac_path_EGREP_found && break 3 4524 done 4525 done 4526done 4527IFS=$as_save_IFS 4528 if test -z "$ac_cv_path_EGREP"; then 4529 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4530$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4531 { (exit 1); exit 1; }; } 4532 fi 4533else 4534 ac_cv_path_EGREP=$EGREP 4535fi 4536 4537 fi 4538fi 4539{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4540$as_echo "$ac_cv_path_EGREP" >&6; } 4541 EGREP="$ac_cv_path_EGREP" 4542 4543 4544{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4545$as_echo_n "checking for fgrep... " >&6; } 4546if test "${ac_cv_path_FGREP+set}" = set; then 4547 $as_echo_n "(cached) " >&6 4548else 4549 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4550 then ac_cv_path_FGREP="$GREP -F" 4551 else 4552 if test -z "$FGREP"; then 4553 ac_path_FGREP_found=false 4554 # Loop through the user's path and test for each of PROGNAME-LIST 4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4556for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4557do 4558 IFS=$as_save_IFS 4559 test -z "$as_dir" && as_dir=. 4560 for ac_prog in fgrep; do 4561 for ac_exec_ext in '' $ac_executable_extensions; do 4562 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4563 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4564# Check for GNU ac_path_FGREP and select it if it is found. 4565 # Check for GNU $ac_path_FGREP 4566case `"$ac_path_FGREP" --version 2>&1` in 4567*GNU*) 4568 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4569*) 4570 ac_count=0 4571 $as_echo_n 0123456789 >"conftest.in" 4572 while : 4573 do 4574 cat "conftest.in" "conftest.in" >"conftest.tmp" 4575 mv "conftest.tmp" "conftest.in" 4576 cp "conftest.in" "conftest.nl" 4577 $as_echo 'FGREP' >> "conftest.nl" 4578 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4580 ac_count=`expr $ac_count + 1` 4581 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4582 # Best one so far, save it but keep looking for a better one 4583 ac_cv_path_FGREP="$ac_path_FGREP" 4584 ac_path_FGREP_max=$ac_count 4585 fi 4586 # 10*(2^10) chars as input seems more than enough 4587 test $ac_count -gt 10 && break 4588 done 4589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4590esac 4591 4592 $ac_path_FGREP_found && break 3 4593 done 4594 done 4595done 4596IFS=$as_save_IFS 4597 if test -z "$ac_cv_path_FGREP"; then 4598 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4599$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4600 { (exit 1); exit 1; }; } 4601 fi 4602else 4603 ac_cv_path_FGREP=$FGREP 4604fi 4605 4606 fi 4607fi 4608{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4609$as_echo "$ac_cv_path_FGREP" >&6; } 4610 FGREP="$ac_cv_path_FGREP" 4611 4612 4613test -z "$GREP" && GREP=grep 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633# Check whether --with-gnu-ld was given. 4634if test "${with_gnu_ld+set}" = set; then 4635 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4636else 4637 with_gnu_ld=no 4638fi 4639 4640ac_prog=ld 4641if test "$GCC" = yes; then 4642 # Check if gcc -print-prog-name=ld gives a path. 4643 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4644$as_echo_n "checking for ld used by $CC... " >&6; } 4645 case $host in 4646 *-*-mingw*) 4647 # gcc leaves a trailing carriage return which upsets mingw 4648 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4649 *) 4650 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4651 esac 4652 case $ac_prog in 4653 # Accept absolute paths. 4654 [\\/]* | ?:[\\/]*) 4655 re_direlt='/[^/][^/]*/\.\./' 4656 # Canonicalize the pathname of ld 4657 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4658 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4659 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4660 done 4661 test -z "$LD" && LD="$ac_prog" 4662 ;; 4663 "") 4664 # If it fails, then pretend we aren't using GCC. 4665 ac_prog=ld 4666 ;; 4667 *) 4668 # If it is relative, then search for the first ld in PATH. 4669 with_gnu_ld=unknown 4670 ;; 4671 esac 4672elif test "$with_gnu_ld" = yes; then 4673 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4674$as_echo_n "checking for GNU ld... " >&6; } 4675else 4676 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4677$as_echo_n "checking for non-GNU ld... " >&6; } 4678fi 4679if test "${lt_cv_path_LD+set}" = set; then 4680 $as_echo_n "(cached) " >&6 4681else 4682 if test -z "$LD"; then 4683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4684 for ac_dir in $PATH; do 4685 IFS="$lt_save_ifs" 4686 test -z "$ac_dir" && ac_dir=. 4687 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4688 lt_cv_path_LD="$ac_dir/$ac_prog" 4689 # Check to see if the program is GNU ld. I'd rather use --version, 4690 # but apparently some variants of GNU ld only accept -v. 4691 # Break only if it was the GNU/non-GNU ld that we prefer. 4692 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4693 *GNU* | *'with BFD'*) 4694 test "$with_gnu_ld" != no && break 4695 ;; 4696 *) 4697 test "$with_gnu_ld" != yes && break 4698 ;; 4699 esac 4700 fi 4701 done 4702 IFS="$lt_save_ifs" 4703else 4704 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4705fi 4706fi 4707 4708LD="$lt_cv_path_LD" 4709if test -n "$LD"; then 4710 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4711$as_echo "$LD" >&6; } 4712else 4713 { $as_echo "$as_me:$LINENO: result: no" >&5 4714$as_echo "no" >&6; } 4715fi 4716test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4717$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4718 { (exit 1); exit 1; }; } 4719{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4720$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4721if test "${lt_cv_prog_gnu_ld+set}" = set; then 4722 $as_echo_n "(cached) " >&6 4723else 4724 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4725case `$LD -v 2>&1 </dev/null` in 4726*GNU* | *'with BFD'*) 4727 lt_cv_prog_gnu_ld=yes 4728 ;; 4729*) 4730 lt_cv_prog_gnu_ld=no 4731 ;; 4732esac 4733fi 4734{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4735$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4736with_gnu_ld=$lt_cv_prog_gnu_ld 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4747$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4748if test "${lt_cv_path_NM+set}" = set; then 4749 $as_echo_n "(cached) " >&6 4750else 4751 if test -n "$NM"; then 4752 # Let the user override the test. 4753 lt_cv_path_NM="$NM" 4754else 4755 lt_nm_to_check="${ac_tool_prefix}nm" 4756 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4757 lt_nm_to_check="$lt_nm_to_check nm" 4758 fi 4759 for lt_tmp_nm in $lt_nm_to_check; do 4760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4761 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4762 IFS="$lt_save_ifs" 4763 test -z "$ac_dir" && ac_dir=. 4764 tmp_nm="$ac_dir/$lt_tmp_nm" 4765 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4766 # Check to see if the nm accepts a BSD-compat flag. 4767 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4768 # nm: unknown option "B" ignored 4769 # Tru64's nm complains that /dev/null is an invalid object file 4770 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4771 */dev/null* | *'Invalid file or object type'*) 4772 lt_cv_path_NM="$tmp_nm -B" 4773 break 4774 ;; 4775 *) 4776 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4777 */dev/null*) 4778 lt_cv_path_NM="$tmp_nm -p" 4779 break 4780 ;; 4781 *) 4782 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4783 continue # so that we can try to find one that supports BSD flags 4784 ;; 4785 esac 4786 ;; 4787 esac 4788 fi 4789 done 4790 IFS="$lt_save_ifs" 4791 done 4792 : ${lt_cv_path_NM=no} 4793fi 4794fi 4795{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4796$as_echo "$lt_cv_path_NM" >&6; } 4797if test "$lt_cv_path_NM" != "no"; then 4798 NM="$lt_cv_path_NM" 4799else 4800 # Didn't find any BSD compatible name lister, look for dumpbin. 4801 if test -n "$ac_tool_prefix"; then 4802 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4803 do 4804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4805set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4806{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4807$as_echo_n "checking for $ac_word... " >&6; } 4808if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4809 $as_echo_n "(cached) " >&6 4810else 4811 if test -n "$DUMPBIN"; then 4812 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4813else 4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4815for as_dir in $PATH 4816do 4817 IFS=$as_save_IFS 4818 test -z "$as_dir" && as_dir=. 4819 for ac_exec_ext in '' $ac_executable_extensions; do 4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4821 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4823 break 2 4824 fi 4825done 4826done 4827IFS=$as_save_IFS 4828 4829fi 4830fi 4831DUMPBIN=$ac_cv_prog_DUMPBIN 4832if test -n "$DUMPBIN"; then 4833 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4834$as_echo "$DUMPBIN" >&6; } 4835else 4836 { $as_echo "$as_me:$LINENO: result: no" >&5 4837$as_echo "no" >&6; } 4838fi 4839 4840 4841 test -n "$DUMPBIN" && break 4842 done 4843fi 4844if test -z "$DUMPBIN"; then 4845 ac_ct_DUMPBIN=$DUMPBIN 4846 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4847do 4848 # Extract the first word of "$ac_prog", so it can be a program name with args. 4849set dummy $ac_prog; ac_word=$2 4850{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4851$as_echo_n "checking for $ac_word... " >&6; } 4852if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4853 $as_echo_n "(cached) " >&6 4854else 4855 if test -n "$ac_ct_DUMPBIN"; then 4856 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4857else 4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4859for as_dir in $PATH 4860do 4861 IFS=$as_save_IFS 4862 test -z "$as_dir" && as_dir=. 4863 for ac_exec_ext in '' $ac_executable_extensions; do 4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4865 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4866 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4867 break 2 4868 fi 4869done 4870done 4871IFS=$as_save_IFS 4872 4873fi 4874fi 4875ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4876if test -n "$ac_ct_DUMPBIN"; then 4877 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4878$as_echo "$ac_ct_DUMPBIN" >&6; } 4879else 4880 { $as_echo "$as_me:$LINENO: result: no" >&5 4881$as_echo "no" >&6; } 4882fi 4883 4884 4885 test -n "$ac_ct_DUMPBIN" && break 4886done 4887 4888 if test "x$ac_ct_DUMPBIN" = x; then 4889 DUMPBIN=":" 4890 else 4891 case $cross_compiling:$ac_tool_warned in 4892yes:) 4893{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4895ac_tool_warned=yes ;; 4896esac 4897 DUMPBIN=$ac_ct_DUMPBIN 4898 fi 4899fi 4900 4901 4902 if test "$DUMPBIN" != ":"; then 4903 NM="$DUMPBIN" 4904 fi 4905fi 4906test -z "$NM" && NM=nm 4907 4908 4909 4910 4911 4912 4913{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4914$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4915if test "${lt_cv_nm_interface+set}" = set; then 4916 $as_echo_n "(cached) " >&6 4917else 4918 lt_cv_nm_interface="BSD nm" 4919 echo "int some_variable = 0;" > conftest.$ac_ext 4920 (eval echo "\"\$as_me:4920: $ac_compile\"" >&5) 4921 (eval "$ac_compile" 2>conftest.err) 4922 cat conftest.err >&5 4923 (eval echo "\"\$as_me:4923: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4924 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4925 cat conftest.err >&5 4926 (eval echo "\"\$as_me:4926: output\"" >&5) 4927 cat conftest.out >&5 4928 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4929 lt_cv_nm_interface="MS dumpbin" 4930 fi 4931 rm -f conftest* 4932fi 4933{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4934$as_echo "$lt_cv_nm_interface" >&6; } 4935 4936{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4937$as_echo_n "checking whether ln -s works... " >&6; } 4938LN_S=$as_ln_s 4939if test "$LN_S" = "ln -s"; then 4940 { $as_echo "$as_me:$LINENO: result: yes" >&5 4941$as_echo "yes" >&6; } 4942else 4943 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4944$as_echo "no, using $LN_S" >&6; } 4945fi 4946 4947# find the maximum length of command line arguments 4948{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4949$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4950if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4951 $as_echo_n "(cached) " >&6 4952else 4953 i=0 4954 teststring="ABCD" 4955 4956 case $build_os in 4957 msdosdjgpp*) 4958 # On DJGPP, this test can blow up pretty badly due to problems in libc 4959 # (any single argument exceeding 2000 bytes causes a buffer overrun 4960 # during glob expansion). Even if it were fixed, the result of this 4961 # check would be larger than it should be. 4962 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4963 ;; 4964 4965 gnu*) 4966 # Under GNU Hurd, this test is not required because there is 4967 # no limit to the length of command line arguments. 4968 # Libtool will interpret -1 as no limit whatsoever 4969 lt_cv_sys_max_cmd_len=-1; 4970 ;; 4971 4972 cygwin* | mingw* | cegcc*) 4973 # On Win9x/ME, this test blows up -- it succeeds, but takes 4974 # about 5 minutes as the teststring grows exponentially. 4975 # Worse, since 9x/ME are not pre-emptively multitasking, 4976 # you end up with a "frozen" computer, even though with patience 4977 # the test eventually succeeds (with a max line length of 256k). 4978 # Instead, let's just punt: use the minimum linelength reported by 4979 # all of the supported platforms: 8192 (on NT/2K/XP). 4980 lt_cv_sys_max_cmd_len=8192; 4981 ;; 4982 4983 amigaos*) 4984 # On AmigaOS with pdksh, this test takes hours, literally. 4985 # So we just punt and use a minimum line length of 8192. 4986 lt_cv_sys_max_cmd_len=8192; 4987 ;; 4988 4989 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4990 # This has been around since 386BSD, at least. Likely further. 4991 if test -x /sbin/sysctl; then 4992 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4993 elif test -x /usr/sbin/sysctl; then 4994 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4995 else 4996 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4997 fi 4998 # And add a safety zone 4999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5001 ;; 5002 5003 interix*) 5004 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5005 lt_cv_sys_max_cmd_len=196608 5006 ;; 5007 5008 osf*) 5009 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5010 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5011 # nice to cause kernel panics so lets avoid the loop below. 5012 # First set a reasonable default. 5013 lt_cv_sys_max_cmd_len=16384 5014 # 5015 if test -x /sbin/sysconfig; then 5016 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5017 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5018 esac 5019 fi 5020 ;; 5021 sco3.2v5*) 5022 lt_cv_sys_max_cmd_len=102400 5023 ;; 5024 sysv5* | sco5v6* | sysv4.2uw2*) 5025 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5026 if test -n "$kargmax"; then 5027 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5028 else 5029 lt_cv_sys_max_cmd_len=32768 5030 fi 5031 ;; 5032 *) 5033 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5034 if test -n "$lt_cv_sys_max_cmd_len"; then 5035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5037 else 5038 # Make teststring a little bigger before we do anything with it. 5039 # a 1K string should be a reasonable start. 5040 for i in 1 2 3 4 5 6 7 8 ; do 5041 teststring=$teststring$teststring 5042 done 5043 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5044 # If test is not a shell built-in, we'll probably end up computing a 5045 # maximum length that is only half of the actual maximum length, but 5046 # we can't tell. 5047 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5048 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5049 test $i != 17 # 1/2 MB should be enough 5050 do 5051 i=`expr $i + 1` 5052 teststring=$teststring$teststring 5053 done 5054 # Only check the string length outside the loop. 5055 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5056 teststring= 5057 # Add a significant safety factor because C++ compilers can tack on 5058 # massive amounts of additional arguments before passing them to the 5059 # linker. It appears as though 1/2 is a usable value. 5060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5061 fi 5062 ;; 5063 esac 5064 5065fi 5066 5067if test -n $lt_cv_sys_max_cmd_len ; then 5068 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5069$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5070else 5071 { $as_echo "$as_me:$LINENO: result: none" >&5 5072$as_echo "none" >&6; } 5073fi 5074max_cmd_len=$lt_cv_sys_max_cmd_len 5075 5076 5077 5078 5079 5080 5081: ${CP="cp -f"} 5082: ${MV="mv -f"} 5083: ${RM="rm -f"} 5084 5085{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5086$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5087# Try some XSI features 5088xsi_shell=no 5089( _lt_dummy="a/b/c" 5090 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5091 = c,a/b,, \ 5092 && eval 'test $(( 1 + 1 )) -eq 2 \ 5093 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5094 && xsi_shell=yes 5095{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5096$as_echo "$xsi_shell" >&6; } 5097 5098 5099{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5100$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5101lt_shell_append=no 5102( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5103 >/dev/null 2>&1 \ 5104 && lt_shell_append=yes 5105{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5106$as_echo "$lt_shell_append" >&6; } 5107 5108 5109if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5110 lt_unset=unset 5111else 5112 lt_unset=false 5113fi 5114 5115 5116 5117 5118 5119# test EBCDIC or ASCII 5120case `echo X|tr X '\101'` in 5121 A) # ASCII based system 5122 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5123 lt_SP2NL='tr \040 \012' 5124 lt_NL2SP='tr \015\012 \040\040' 5125 ;; 5126 *) # EBCDIC based system 5127 lt_SP2NL='tr \100 \n' 5128 lt_NL2SP='tr \r\n \100\100' 5129 ;; 5130esac 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5141$as_echo_n "checking for $LD option to reload object files... " >&6; } 5142if test "${lt_cv_ld_reload_flag+set}" = set; then 5143 $as_echo_n "(cached) " >&6 5144else 5145 lt_cv_ld_reload_flag='-r' 5146fi 5147{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5148$as_echo "$lt_cv_ld_reload_flag" >&6; } 5149reload_flag=$lt_cv_ld_reload_flag 5150case $reload_flag in 5151"" | " "*) ;; 5152*) reload_flag=" $reload_flag" ;; 5153esac 5154reload_cmds='$LD$reload_flag -o $output$reload_objs' 5155case $host_os in 5156 darwin*) 5157 if test "$GCC" = yes; then 5158 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5159 else 5160 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5161 fi 5162 ;; 5163esac 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173if test -n "$ac_tool_prefix"; then 5174 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5175set dummy ${ac_tool_prefix}objdump; ac_word=$2 5176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5177$as_echo_n "checking for $ac_word... " >&6; } 5178if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5179 $as_echo_n "(cached) " >&6 5180else 5181 if test -n "$OBJDUMP"; then 5182 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5183else 5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5185for as_dir in $PATH 5186do 5187 IFS=$as_save_IFS 5188 test -z "$as_dir" && as_dir=. 5189 for ac_exec_ext in '' $ac_executable_extensions; do 5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5191 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5193 break 2 5194 fi 5195done 5196done 5197IFS=$as_save_IFS 5198 5199fi 5200fi 5201OBJDUMP=$ac_cv_prog_OBJDUMP 5202if test -n "$OBJDUMP"; then 5203 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5204$as_echo "$OBJDUMP" >&6; } 5205else 5206 { $as_echo "$as_me:$LINENO: result: no" >&5 5207$as_echo "no" >&6; } 5208fi 5209 5210 5211fi 5212if test -z "$ac_cv_prog_OBJDUMP"; then 5213 ac_ct_OBJDUMP=$OBJDUMP 5214 # Extract the first word of "objdump", so it can be a program name with args. 5215set dummy objdump; ac_word=$2 5216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5217$as_echo_n "checking for $ac_word... " >&6; } 5218if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5219 $as_echo_n "(cached) " >&6 5220else 5221 if test -n "$ac_ct_OBJDUMP"; then 5222 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5223else 5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5225for as_dir in $PATH 5226do 5227 IFS=$as_save_IFS 5228 test -z "$as_dir" && as_dir=. 5229 for ac_exec_ext in '' $ac_executable_extensions; do 5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5231 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5233 break 2 5234 fi 5235done 5236done 5237IFS=$as_save_IFS 5238 5239fi 5240fi 5241ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5242if test -n "$ac_ct_OBJDUMP"; then 5243 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5244$as_echo "$ac_ct_OBJDUMP" >&6; } 5245else 5246 { $as_echo "$as_me:$LINENO: result: no" >&5 5247$as_echo "no" >&6; } 5248fi 5249 5250 if test "x$ac_ct_OBJDUMP" = x; then 5251 OBJDUMP="false" 5252 else 5253 case $cross_compiling:$ac_tool_warned in 5254yes:) 5255{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5257ac_tool_warned=yes ;; 5258esac 5259 OBJDUMP=$ac_ct_OBJDUMP 5260 fi 5261else 5262 OBJDUMP="$ac_cv_prog_OBJDUMP" 5263fi 5264 5265test -z "$OBJDUMP" && OBJDUMP=objdump 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5276$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5277if test "${lt_cv_deplibs_check_method+set}" = set; then 5278 $as_echo_n "(cached) " >&6 5279else 5280 lt_cv_file_magic_cmd='$MAGIC_CMD' 5281lt_cv_file_magic_test_file= 5282lt_cv_deplibs_check_method='unknown' 5283# Need to set the preceding variable on all platforms that support 5284# interlibrary dependencies. 5285# 'none' -- dependencies not supported. 5286# `unknown' -- same as none, but documents that we really don't know. 5287# 'pass_all' -- all dependencies passed with no checks. 5288# 'test_compile' -- check by making test program. 5289# 'file_magic [[regex]]' -- check by looking for files in library path 5290# which responds to the $file_magic_cmd with a given extended regex. 5291# If you have `file' or equivalent on your system and you're not sure 5292# whether `pass_all' will *always* work, you probably want this one. 5293 5294case $host_os in 5295aix[4-9]*) 5296 lt_cv_deplibs_check_method=pass_all 5297 ;; 5298 5299beos*) 5300 lt_cv_deplibs_check_method=pass_all 5301 ;; 5302 5303bsdi[45]*) 5304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5305 lt_cv_file_magic_cmd='/usr/bin/file -L' 5306 lt_cv_file_magic_test_file=/shlib/libc.so 5307 ;; 5308 5309cygwin*) 5310 # func_win32_libid is a shell function defined in ltmain.sh 5311 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5312 lt_cv_file_magic_cmd='func_win32_libid' 5313 ;; 5314 5315mingw* | pw32*) 5316 # Base MSYS/MinGW do not provide the 'file' command needed by 5317 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5318 # unless we find 'file', for example because we are cross-compiling. 5319 if ( file / ) >/dev/null 2>&1; then 5320 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5321 lt_cv_file_magic_cmd='func_win32_libid' 5322 else 5323 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5324 lt_cv_file_magic_cmd='$OBJDUMP -f' 5325 fi 5326 ;; 5327 5328cegcc) 5329 # use the weaker test based on 'objdump'. See mingw*. 5330 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5331 lt_cv_file_magic_cmd='$OBJDUMP -f' 5332 ;; 5333 5334darwin* | rhapsody*) 5335 lt_cv_deplibs_check_method=pass_all 5336 ;; 5337 5338freebsd* | dragonfly*) 5339 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5340 case $host_cpu in 5341 i*86 ) 5342 # Not sure whether the presence of OpenBSD here was a mistake. 5343 # Let's accept both of them until this is cleared up. 5344 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5345 lt_cv_file_magic_cmd=/usr/bin/file 5346 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5347 ;; 5348 esac 5349 else 5350 lt_cv_deplibs_check_method=pass_all 5351 fi 5352 ;; 5353 5354gnu*) 5355 lt_cv_deplibs_check_method=pass_all 5356 ;; 5357 5358hpux10.20* | hpux11*) 5359 lt_cv_file_magic_cmd=/usr/bin/file 5360 case $host_cpu in 5361 ia64*) 5362 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5363 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5364 ;; 5365 hppa*64*) 5366 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 5367 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5368 ;; 5369 *) 5370 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5371 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5372 ;; 5373 esac 5374 ;; 5375 5376interix[3-9]*) 5377 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5379 ;; 5380 5381irix5* | irix6* | nonstopux*) 5382 case $LD in 5383 *-32|*"-32 ") libmagic=32-bit;; 5384 *-n32|*"-n32 ") libmagic=N32;; 5385 *-64|*"-64 ") libmagic=64-bit;; 5386 *) libmagic=never-match;; 5387 esac 5388 lt_cv_deplibs_check_method=pass_all 5389 ;; 5390 5391# This must be Linux ELF. 5392linux* | k*bsd*-gnu) 5393 lt_cv_deplibs_check_method=pass_all 5394 ;; 5395 5396netbsd*) 5397 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5399 else 5400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5401 fi 5402 ;; 5403 5404newos6*) 5405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5406 lt_cv_file_magic_cmd=/usr/bin/file 5407 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5408 ;; 5409 5410*nto* | *qnx*) 5411 lt_cv_deplibs_check_method=pass_all 5412 ;; 5413 5414openbsd*) 5415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5417 else 5418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5419 fi 5420 ;; 5421 5422osf3* | osf4* | osf5*) 5423 lt_cv_deplibs_check_method=pass_all 5424 ;; 5425 5426rdos*) 5427 lt_cv_deplibs_check_method=pass_all 5428 ;; 5429 5430solaris*) 5431 lt_cv_deplibs_check_method=pass_all 5432 ;; 5433 5434sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5435 lt_cv_deplibs_check_method=pass_all 5436 ;; 5437 5438sysv4 | sysv4.3*) 5439 case $host_vendor in 5440 motorola) 5441 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]' 5442 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5443 ;; 5444 ncr) 5445 lt_cv_deplibs_check_method=pass_all 5446 ;; 5447 sequent) 5448 lt_cv_file_magic_cmd='/bin/file' 5449 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5450 ;; 5451 sni) 5452 lt_cv_file_magic_cmd='/bin/file' 5453 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5454 lt_cv_file_magic_test_file=/lib/libc.so 5455 ;; 5456 siemens) 5457 lt_cv_deplibs_check_method=pass_all 5458 ;; 5459 pc) 5460 lt_cv_deplibs_check_method=pass_all 5461 ;; 5462 esac 5463 ;; 5464 5465tpf*) 5466 lt_cv_deplibs_check_method=pass_all 5467 ;; 5468esac 5469 5470fi 5471{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5472$as_echo "$lt_cv_deplibs_check_method" >&6; } 5473file_magic_cmd=$lt_cv_file_magic_cmd 5474deplibs_check_method=$lt_cv_deplibs_check_method 5475test -z "$deplibs_check_method" && deplibs_check_method=unknown 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488if test -n "$ac_tool_prefix"; then 5489 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5490set dummy ${ac_tool_prefix}ar; ac_word=$2 5491{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5492$as_echo_n "checking for $ac_word... " >&6; } 5493if test "${ac_cv_prog_AR+set}" = set; then 5494 $as_echo_n "(cached) " >&6 5495else 5496 if test -n "$AR"; then 5497 ac_cv_prog_AR="$AR" # Let the user override the test. 5498else 5499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5500for as_dir in $PATH 5501do 5502 IFS=$as_save_IFS 5503 test -z "$as_dir" && as_dir=. 5504 for ac_exec_ext in '' $ac_executable_extensions; do 5505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5506 ac_cv_prog_AR="${ac_tool_prefix}ar" 5507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5508 break 2 5509 fi 5510done 5511done 5512IFS=$as_save_IFS 5513 5514fi 5515fi 5516AR=$ac_cv_prog_AR 5517if test -n "$AR"; then 5518 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5519$as_echo "$AR" >&6; } 5520else 5521 { $as_echo "$as_me:$LINENO: result: no" >&5 5522$as_echo "no" >&6; } 5523fi 5524 5525 5526fi 5527if test -z "$ac_cv_prog_AR"; then 5528 ac_ct_AR=$AR 5529 # Extract the first word of "ar", so it can be a program name with args. 5530set dummy ar; ac_word=$2 5531{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5532$as_echo_n "checking for $ac_word... " >&6; } 5533if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5534 $as_echo_n "(cached) " >&6 5535else 5536 if test -n "$ac_ct_AR"; then 5537 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5538else 5539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5540for as_dir in $PATH 5541do 5542 IFS=$as_save_IFS 5543 test -z "$as_dir" && as_dir=. 5544 for ac_exec_ext in '' $ac_executable_extensions; do 5545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5546 ac_cv_prog_ac_ct_AR="ar" 5547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5548 break 2 5549 fi 5550done 5551done 5552IFS=$as_save_IFS 5553 5554fi 5555fi 5556ac_ct_AR=$ac_cv_prog_ac_ct_AR 5557if test -n "$ac_ct_AR"; then 5558 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5559$as_echo "$ac_ct_AR" >&6; } 5560else 5561 { $as_echo "$as_me:$LINENO: result: no" >&5 5562$as_echo "no" >&6; } 5563fi 5564 5565 if test "x$ac_ct_AR" = x; then 5566 AR="false" 5567 else 5568 case $cross_compiling:$ac_tool_warned in 5569yes:) 5570{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5572ac_tool_warned=yes ;; 5573esac 5574 AR=$ac_ct_AR 5575 fi 5576else 5577 AR="$ac_cv_prog_AR" 5578fi 5579 5580test -z "$AR" && AR=ar 5581test -z "$AR_FLAGS" && AR_FLAGS=cru 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593if test -n "$ac_tool_prefix"; then 5594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5595set dummy ${ac_tool_prefix}strip; ac_word=$2 5596{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5597$as_echo_n "checking for $ac_word... " >&6; } 5598if test "${ac_cv_prog_STRIP+set}" = set; then 5599 $as_echo_n "(cached) " >&6 5600else 5601 if test -n "$STRIP"; then 5602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5603else 5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5605for as_dir in $PATH 5606do 5607 IFS=$as_save_IFS 5608 test -z "$as_dir" && as_dir=. 5609 for ac_exec_ext in '' $ac_executable_extensions; do 5610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5611 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5613 break 2 5614 fi 5615done 5616done 5617IFS=$as_save_IFS 5618 5619fi 5620fi 5621STRIP=$ac_cv_prog_STRIP 5622if test -n "$STRIP"; then 5623 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5624$as_echo "$STRIP" >&6; } 5625else 5626 { $as_echo "$as_me:$LINENO: result: no" >&5 5627$as_echo "no" >&6; } 5628fi 5629 5630 5631fi 5632if test -z "$ac_cv_prog_STRIP"; then 5633 ac_ct_STRIP=$STRIP 5634 # Extract the first word of "strip", so it can be a program name with args. 5635set dummy strip; ac_word=$2 5636{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5637$as_echo_n "checking for $ac_word... " >&6; } 5638if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5639 $as_echo_n "(cached) " >&6 5640else 5641 if test -n "$ac_ct_STRIP"; then 5642 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5643else 5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5645for as_dir in $PATH 5646do 5647 IFS=$as_save_IFS 5648 test -z "$as_dir" && as_dir=. 5649 for ac_exec_ext in '' $ac_executable_extensions; do 5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5651 ac_cv_prog_ac_ct_STRIP="strip" 5652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5653 break 2 5654 fi 5655done 5656done 5657IFS=$as_save_IFS 5658 5659fi 5660fi 5661ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5662if test -n "$ac_ct_STRIP"; then 5663 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5664$as_echo "$ac_ct_STRIP" >&6; } 5665else 5666 { $as_echo "$as_me:$LINENO: result: no" >&5 5667$as_echo "no" >&6; } 5668fi 5669 5670 if test "x$ac_ct_STRIP" = x; then 5671 STRIP=":" 5672 else 5673 case $cross_compiling:$ac_tool_warned in 5674yes:) 5675{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5677ac_tool_warned=yes ;; 5678esac 5679 STRIP=$ac_ct_STRIP 5680 fi 5681else 5682 STRIP="$ac_cv_prog_STRIP" 5683fi 5684 5685test -z "$STRIP" && STRIP=: 5686 5687 5688 5689 5690 5691 5692if test -n "$ac_tool_prefix"; then 5693 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5694set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5696$as_echo_n "checking for $ac_word... " >&6; } 5697if test "${ac_cv_prog_RANLIB+set}" = set; then 5698 $as_echo_n "(cached) " >&6 5699else 5700 if test -n "$RANLIB"; then 5701 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5702else 5703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5704for as_dir in $PATH 5705do 5706 IFS=$as_save_IFS 5707 test -z "$as_dir" && as_dir=. 5708 for ac_exec_ext in '' $ac_executable_extensions; do 5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5710 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5712 break 2 5713 fi 5714done 5715done 5716IFS=$as_save_IFS 5717 5718fi 5719fi 5720RANLIB=$ac_cv_prog_RANLIB 5721if test -n "$RANLIB"; then 5722 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5723$as_echo "$RANLIB" >&6; } 5724else 5725 { $as_echo "$as_me:$LINENO: result: no" >&5 5726$as_echo "no" >&6; } 5727fi 5728 5729 5730fi 5731if test -z "$ac_cv_prog_RANLIB"; then 5732 ac_ct_RANLIB=$RANLIB 5733 # Extract the first word of "ranlib", so it can be a program name with args. 5734set dummy ranlib; ac_word=$2 5735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5736$as_echo_n "checking for $ac_word... " >&6; } 5737if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5738 $as_echo_n "(cached) " >&6 5739else 5740 if test -n "$ac_ct_RANLIB"; then 5741 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5742else 5743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5744for as_dir in $PATH 5745do 5746 IFS=$as_save_IFS 5747 test -z "$as_dir" && as_dir=. 5748 for ac_exec_ext in '' $ac_executable_extensions; do 5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5750 ac_cv_prog_ac_ct_RANLIB="ranlib" 5751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5752 break 2 5753 fi 5754done 5755done 5756IFS=$as_save_IFS 5757 5758fi 5759fi 5760ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5761if test -n "$ac_ct_RANLIB"; then 5762 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5763$as_echo "$ac_ct_RANLIB" >&6; } 5764else 5765 { $as_echo "$as_me:$LINENO: result: no" >&5 5766$as_echo "no" >&6; } 5767fi 5768 5769 if test "x$ac_ct_RANLIB" = x; then 5770 RANLIB=":" 5771 else 5772 case $cross_compiling:$ac_tool_warned in 5773yes:) 5774{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5776ac_tool_warned=yes ;; 5777esac 5778 RANLIB=$ac_ct_RANLIB 5779 fi 5780else 5781 RANLIB="$ac_cv_prog_RANLIB" 5782fi 5783 5784test -z "$RANLIB" && RANLIB=: 5785 5786 5787 5788 5789 5790 5791# Determine commands to create old-style static archives. 5792old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5793old_postinstall_cmds='chmod 644 $oldlib' 5794old_postuninstall_cmds= 5795 5796if test -n "$RANLIB"; then 5797 case $host_os in 5798 openbsd*) 5799 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5800 ;; 5801 *) 5802 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5803 ;; 5804 esac 5805 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5806fi 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841# If no C compiler was specified, use CC. 5842LTCC=${LTCC-"$CC"} 5843 5844# If no C compiler flags were specified, use CFLAGS. 5845LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5846 5847# Allow CC to be a program name with arguments. 5848compiler=$CC 5849 5850 5851# Check for command to grab the raw symbol name followed by C symbol from nm. 5852{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5853$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5854if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5855 $as_echo_n "(cached) " >&6 5856else 5857 5858# These are sane defaults that work on at least a few old systems. 5859# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5860 5861# Character class describing NM global symbol codes. 5862symcode='[BCDEGRST]' 5863 5864# Regexp to match symbols that can be accessed directly from C. 5865sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5866 5867# Define system-specific variables. 5868case $host_os in 5869aix*) 5870 symcode='[BCDT]' 5871 ;; 5872cygwin* | mingw* | pw32* | cegcc*) 5873 symcode='[ABCDGISTW]' 5874 ;; 5875hpux*) 5876 if test "$host_cpu" = ia64; then 5877 symcode='[ABCDEGRST]' 5878 fi 5879 ;; 5880irix* | nonstopux*) 5881 symcode='[BCDEGRST]' 5882 ;; 5883osf*) 5884 symcode='[BCDEGQRST]' 5885 ;; 5886solaris*) 5887 symcode='[BDRT]' 5888 ;; 5889sco3.2v5*) 5890 symcode='[DT]' 5891 ;; 5892sysv4.2uw2*) 5893 symcode='[DT]' 5894 ;; 5895sysv5* | sco5v6* | unixware* | OpenUNIX*) 5896 symcode='[ABDT]' 5897 ;; 5898sysv4) 5899 symcode='[DFNSTU]' 5900 ;; 5901esac 5902 5903# If we're using GNU nm, then use its standard symbol codes. 5904case `$NM -V 2>&1` in 5905*GNU* | *'with BFD'*) 5906 symcode='[ABCDGIRSTW]' ;; 5907esac 5908 5909# Transform an extracted symbol line into a proper C declaration. 5910# Some systems (esp. on ia64) link data and code symbols differently, 5911# so use this general approach. 5912lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5913 5914# Transform an extracted symbol line into symbol name and symbol address 5915lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5916lt_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'" 5917 5918# Handle CRLF in mingw tool chain 5919opt_cr= 5920case $build_os in 5921mingw*) 5922 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5923 ;; 5924esac 5925 5926# Try without a prefix underscore, then with it. 5927for ac_symprfx in "" "_"; do 5928 5929 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5930 symxfrm="\\1 $ac_symprfx\\2 \\2" 5931 5932 # Write the raw and C identifiers. 5933 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5934 # Fake it for dumpbin and say T for any non-static function 5935 # and D for any global variable. 5936 # Also find C++ and __fastcall symbols from MSVC++, 5937 # which start with @ or ?. 5938 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5939" {last_section=section; section=\$ 3};"\ 5940" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5941" \$ 0!~/External *\|/{next};"\ 5942" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5943" {if(hide[section]) next};"\ 5944" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5945" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5946" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5947" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5948" ' prfx=^$ac_symprfx" 5949 else 5950 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5951 fi 5952 5953 # Check to see that the pipe works correctly. 5954 pipe_works=no 5955 5956 rm -f conftest* 5957 cat > conftest.$ac_ext <<_LT_EOF 5958#ifdef __cplusplus 5959extern "C" { 5960#endif 5961char nm_test_var; 5962void nm_test_func(void); 5963void nm_test_func(void){} 5964#ifdef __cplusplus 5965} 5966#endif 5967int main(){nm_test_var='a';nm_test_func();return(0);} 5968_LT_EOF 5969 5970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5971 (eval $ac_compile) 2>&5 5972 ac_status=$? 5973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5974 (exit $ac_status); }; then 5975 # Now try to grab the symbols. 5976 nlist=conftest.nm 5977 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5978 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5979 ac_status=$? 5980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5981 (exit $ac_status); } && test -s "$nlist"; then 5982 # Try sorting and uniquifying the output. 5983 if sort "$nlist" | uniq > "$nlist"T; then 5984 mv -f "$nlist"T "$nlist" 5985 else 5986 rm -f "$nlist"T 5987 fi 5988 5989 # Make sure that we snagged all the symbols we need. 5990 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5991 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5992 cat <<_LT_EOF > conftest.$ac_ext 5993#ifdef __cplusplus 5994extern "C" { 5995#endif 5996 5997_LT_EOF 5998 # Now generate the symbol file. 5999 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6000 6001 cat <<_LT_EOF >> conftest.$ac_ext 6002 6003/* The mapping between symbol names and symbols. */ 6004const struct { 6005 const char *name; 6006 void *address; 6007} 6008lt__PROGRAM__LTX_preloaded_symbols[] = 6009{ 6010 { "@PROGRAM@", (void *) 0 }, 6011_LT_EOF 6012 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6013 cat <<\_LT_EOF >> conftest.$ac_ext 6014 {0, (void *) 0} 6015}; 6016 6017/* This works around a problem in FreeBSD linker */ 6018#ifdef FREEBSD_WORKAROUND 6019static const void *lt_preloaded_setup() { 6020 return lt__PROGRAM__LTX_preloaded_symbols; 6021} 6022#endif 6023 6024#ifdef __cplusplus 6025} 6026#endif 6027_LT_EOF 6028 # Now try linking the two files. 6029 mv conftest.$ac_objext conftstm.$ac_objext 6030 lt_save_LIBS="$LIBS" 6031 lt_save_CFLAGS="$CFLAGS" 6032 LIBS="conftstm.$ac_objext" 6033 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6035 (eval $ac_link) 2>&5 6036 ac_status=$? 6037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6038 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6039 pipe_works=yes 6040 fi 6041 LIBS="$lt_save_LIBS" 6042 CFLAGS="$lt_save_CFLAGS" 6043 else 6044 echo "cannot find nm_test_func in $nlist" >&5 6045 fi 6046 else 6047 echo "cannot find nm_test_var in $nlist" >&5 6048 fi 6049 else 6050 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6051 fi 6052 else 6053 echo "$progname: failed program was:" >&5 6054 cat conftest.$ac_ext >&5 6055 fi 6056 rm -rf conftest* conftst* 6057 6058 # Do not use the global_symbol_pipe unless it works. 6059 if test "$pipe_works" = yes; then 6060 break 6061 else 6062 lt_cv_sys_global_symbol_pipe= 6063 fi 6064done 6065 6066fi 6067 6068if test -z "$lt_cv_sys_global_symbol_pipe"; then 6069 lt_cv_sys_global_symbol_to_cdecl= 6070fi 6071if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6072 { $as_echo "$as_me:$LINENO: result: failed" >&5 6073$as_echo "failed" >&6; } 6074else 6075 { $as_echo "$as_me:$LINENO: result: ok" >&5 6076$as_echo "ok" >&6; } 6077fi 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101# Check whether --enable-libtool-lock was given. 6102if test "${enable_libtool_lock+set}" = set; then 6103 enableval=$enable_libtool_lock; 6104fi 6105 6106test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6107 6108# Some flags need to be propagated to the compiler or linker for good 6109# libtool support. 6110case $host in 6111ia64-*-hpux*) 6112 # Find out which ABI we are using. 6113 echo 'int i;' > conftest.$ac_ext 6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6115 (eval $ac_compile) 2>&5 6116 ac_status=$? 6117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6118 (exit $ac_status); }; then 6119 case `/usr/bin/file conftest.$ac_objext` in 6120 *ELF-32*) 6121 HPUX_IA64_MODE="32" 6122 ;; 6123 *ELF-64*) 6124 HPUX_IA64_MODE="64" 6125 ;; 6126 esac 6127 fi 6128 rm -rf conftest* 6129 ;; 6130*-*-irix6*) 6131 # Find out which ABI we are using. 6132 echo '#line 6132 "configure"' > conftest.$ac_ext 6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6134 (eval $ac_compile) 2>&5 6135 ac_status=$? 6136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6137 (exit $ac_status); }; then 6138 if test "$lt_cv_prog_gnu_ld" = yes; then 6139 case `/usr/bin/file conftest.$ac_objext` in 6140 *32-bit*) 6141 LD="${LD-ld} -melf32bsmip" 6142 ;; 6143 *N32*) 6144 LD="${LD-ld} -melf32bmipn32" 6145 ;; 6146 *64-bit*) 6147 LD="${LD-ld} -melf64bmip" 6148 ;; 6149 esac 6150 else 6151 case `/usr/bin/file conftest.$ac_objext` in 6152 *32-bit*) 6153 LD="${LD-ld} -32" 6154 ;; 6155 *N32*) 6156 LD="${LD-ld} -n32" 6157 ;; 6158 *64-bit*) 6159 LD="${LD-ld} -64" 6160 ;; 6161 esac 6162 fi 6163 fi 6164 rm -rf conftest* 6165 ;; 6166 6167x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6168s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6169 # Find out which ABI we are using. 6170 echo 'int i;' > conftest.$ac_ext 6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6172 (eval $ac_compile) 2>&5 6173 ac_status=$? 6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6175 (exit $ac_status); }; then 6176 case `/usr/bin/file conftest.o` in 6177 *32-bit*) 6178 case $host in 6179 x86_64-*kfreebsd*-gnu) 6180 LD="${LD-ld} -m elf_i386_fbsd" 6181 ;; 6182 x86_64-*linux*) 6183 LD="${LD-ld} -m elf_i386" 6184 ;; 6185 ppc64-*linux*|powerpc64-*linux*) 6186 LD="${LD-ld} -m elf32ppclinux" 6187 ;; 6188 s390x-*linux*) 6189 LD="${LD-ld} -m elf_s390" 6190 ;; 6191 sparc64-*linux*) 6192 LD="${LD-ld} -m elf32_sparc" 6193 ;; 6194 esac 6195 ;; 6196 *64-bit*) 6197 case $host in 6198 x86_64-*kfreebsd*-gnu) 6199 LD="${LD-ld} -m elf_x86_64_fbsd" 6200 ;; 6201 x86_64-*linux*) 6202 LD="${LD-ld} -m elf_x86_64" 6203 ;; 6204 ppc*-*linux*|powerpc*-*linux*) 6205 LD="${LD-ld} -m elf64ppc" 6206 ;; 6207 s390*-*linux*|s390*-*tpf*) 6208 LD="${LD-ld} -m elf64_s390" 6209 ;; 6210 sparc*-*linux*) 6211 LD="${LD-ld} -m elf64_sparc" 6212 ;; 6213 esac 6214 ;; 6215 esac 6216 fi 6217 rm -rf conftest* 6218 ;; 6219 6220*-*-sco3.2v5*) 6221 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6222 SAVE_CFLAGS="$CFLAGS" 6223 CFLAGS="$CFLAGS -belf" 6224 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6225$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6226if test "${lt_cv_cc_needs_belf+set}" = set; then 6227 $as_echo_n "(cached) " >&6 6228else 6229 ac_ext=c 6230ac_cpp='$CPP $CPPFLAGS' 6231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6233ac_compiler_gnu=$ac_cv_c_compiler_gnu 6234 6235 cat >conftest.$ac_ext <<_ACEOF 6236/* confdefs.h. */ 6237_ACEOF 6238cat confdefs.h >>conftest.$ac_ext 6239cat >>conftest.$ac_ext <<_ACEOF 6240/* end confdefs.h. */ 6241 6242int 6243main () 6244{ 6245 6246 ; 6247 return 0; 6248} 6249_ACEOF 6250rm -f conftest.$ac_objext conftest$ac_exeext 6251if { (ac_try="$ac_link" 6252case "(($ac_try" in 6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6254 *) ac_try_echo=$ac_try;; 6255esac 6256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6257$as_echo "$ac_try_echo") >&5 6258 (eval "$ac_link") 2>conftest.er1 6259 ac_status=$? 6260 grep -v '^ *+' conftest.er1 >conftest.err 6261 rm -f conftest.er1 6262 cat conftest.err >&5 6263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6264 (exit $ac_status); } && { 6265 test -z "$ac_c_werror_flag" || 6266 test ! -s conftest.err 6267 } && test -s conftest$ac_exeext && { 6268 test "$cross_compiling" = yes || 6269 $as_test_x conftest$ac_exeext 6270 }; then 6271 lt_cv_cc_needs_belf=yes 6272else 6273 $as_echo "$as_me: failed program was:" >&5 6274sed 's/^/| /' conftest.$ac_ext >&5 6275 6276 lt_cv_cc_needs_belf=no 6277fi 6278 6279rm -rf conftest.dSYM 6280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6281 conftest$ac_exeext conftest.$ac_ext 6282 ac_ext=c 6283ac_cpp='$CPP $CPPFLAGS' 6284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6286ac_compiler_gnu=$ac_cv_c_compiler_gnu 6287 6288fi 6289{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6290$as_echo "$lt_cv_cc_needs_belf" >&6; } 6291 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6292 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6293 CFLAGS="$SAVE_CFLAGS" 6294 fi 6295 ;; 6296sparc*-*solaris*) 6297 # Find out which ABI we are using. 6298 echo 'int i;' > conftest.$ac_ext 6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6300 (eval $ac_compile) 2>&5 6301 ac_status=$? 6302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6303 (exit $ac_status); }; then 6304 case `/usr/bin/file conftest.o` in 6305 *64-bit*) 6306 case $lt_cv_prog_gnu_ld in 6307 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6308 *) 6309 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6310 LD="${LD-ld} -64" 6311 fi 6312 ;; 6313 esac 6314 ;; 6315 esac 6316 fi 6317 rm -rf conftest* 6318 ;; 6319esac 6320 6321need_locks="$enable_libtool_lock" 6322 6323 6324 case $host_os in 6325 rhapsody* | darwin*) 6326 if test -n "$ac_tool_prefix"; then 6327 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6328set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6330$as_echo_n "checking for $ac_word... " >&6; } 6331if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6332 $as_echo_n "(cached) " >&6 6333else 6334 if test -n "$DSYMUTIL"; then 6335 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6336else 6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6338for as_dir in $PATH 6339do 6340 IFS=$as_save_IFS 6341 test -z "$as_dir" && as_dir=. 6342 for ac_exec_ext in '' $ac_executable_extensions; do 6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6344 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6346 break 2 6347 fi 6348done 6349done 6350IFS=$as_save_IFS 6351 6352fi 6353fi 6354DSYMUTIL=$ac_cv_prog_DSYMUTIL 6355if test -n "$DSYMUTIL"; then 6356 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6357$as_echo "$DSYMUTIL" >&6; } 6358else 6359 { $as_echo "$as_me:$LINENO: result: no" >&5 6360$as_echo "no" >&6; } 6361fi 6362 6363 6364fi 6365if test -z "$ac_cv_prog_DSYMUTIL"; then 6366 ac_ct_DSYMUTIL=$DSYMUTIL 6367 # Extract the first word of "dsymutil", so it can be a program name with args. 6368set dummy dsymutil; ac_word=$2 6369{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6370$as_echo_n "checking for $ac_word... " >&6; } 6371if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6372 $as_echo_n "(cached) " >&6 6373else 6374 if test -n "$ac_ct_DSYMUTIL"; then 6375 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6376else 6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6378for as_dir in $PATH 6379do 6380 IFS=$as_save_IFS 6381 test -z "$as_dir" && as_dir=. 6382 for ac_exec_ext in '' $ac_executable_extensions; do 6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6384 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6386 break 2 6387 fi 6388done 6389done 6390IFS=$as_save_IFS 6391 6392fi 6393fi 6394ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6395if test -n "$ac_ct_DSYMUTIL"; then 6396 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6397$as_echo "$ac_ct_DSYMUTIL" >&6; } 6398else 6399 { $as_echo "$as_me:$LINENO: result: no" >&5 6400$as_echo "no" >&6; } 6401fi 6402 6403 if test "x$ac_ct_DSYMUTIL" = x; then 6404 DSYMUTIL=":" 6405 else 6406 case $cross_compiling:$ac_tool_warned in 6407yes:) 6408{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6410ac_tool_warned=yes ;; 6411esac 6412 DSYMUTIL=$ac_ct_DSYMUTIL 6413 fi 6414else 6415 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6416fi 6417 6418 if test -n "$ac_tool_prefix"; then 6419 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6420set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6422$as_echo_n "checking for $ac_word... " >&6; } 6423if test "${ac_cv_prog_NMEDIT+set}" = set; then 6424 $as_echo_n "(cached) " >&6 6425else 6426 if test -n "$NMEDIT"; then 6427 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6428else 6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6436 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440done 6441done 6442IFS=$as_save_IFS 6443 6444fi 6445fi 6446NMEDIT=$ac_cv_prog_NMEDIT 6447if test -n "$NMEDIT"; then 6448 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6449$as_echo "$NMEDIT" >&6; } 6450else 6451 { $as_echo "$as_me:$LINENO: result: no" >&5 6452$as_echo "no" >&6; } 6453fi 6454 6455 6456fi 6457if test -z "$ac_cv_prog_NMEDIT"; then 6458 ac_ct_NMEDIT=$NMEDIT 6459 # Extract the first word of "nmedit", so it can be a program name with args. 6460set dummy nmedit; ac_word=$2 6461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6462$as_echo_n "checking for $ac_word... " >&6; } 6463if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6464 $as_echo_n "(cached) " >&6 6465else 6466 if test -n "$ac_ct_NMEDIT"; then 6467 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6468else 6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6470for as_dir in $PATH 6471do 6472 IFS=$as_save_IFS 6473 test -z "$as_dir" && as_dir=. 6474 for ac_exec_ext in '' $ac_executable_extensions; do 6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6476 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6478 break 2 6479 fi 6480done 6481done 6482IFS=$as_save_IFS 6483 6484fi 6485fi 6486ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6487if test -n "$ac_ct_NMEDIT"; then 6488 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6489$as_echo "$ac_ct_NMEDIT" >&6; } 6490else 6491 { $as_echo "$as_me:$LINENO: result: no" >&5 6492$as_echo "no" >&6; } 6493fi 6494 6495 if test "x$ac_ct_NMEDIT" = x; then 6496 NMEDIT=":" 6497 else 6498 case $cross_compiling:$ac_tool_warned in 6499yes:) 6500{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6502ac_tool_warned=yes ;; 6503esac 6504 NMEDIT=$ac_ct_NMEDIT 6505 fi 6506else 6507 NMEDIT="$ac_cv_prog_NMEDIT" 6508fi 6509 6510 if test -n "$ac_tool_prefix"; then 6511 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6512set dummy ${ac_tool_prefix}lipo; ac_word=$2 6513{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6514$as_echo_n "checking for $ac_word... " >&6; } 6515if test "${ac_cv_prog_LIPO+set}" = set; then 6516 $as_echo_n "(cached) " >&6 6517else 6518 if test -n "$LIPO"; then 6519 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6520else 6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6522for as_dir in $PATH 6523do 6524 IFS=$as_save_IFS 6525 test -z "$as_dir" && as_dir=. 6526 for ac_exec_ext in '' $ac_executable_extensions; do 6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6528 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6530 break 2 6531 fi 6532done 6533done 6534IFS=$as_save_IFS 6535 6536fi 6537fi 6538LIPO=$ac_cv_prog_LIPO 6539if test -n "$LIPO"; then 6540 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6541$as_echo "$LIPO" >&6; } 6542else 6543 { $as_echo "$as_me:$LINENO: result: no" >&5 6544$as_echo "no" >&6; } 6545fi 6546 6547 6548fi 6549if test -z "$ac_cv_prog_LIPO"; then 6550 ac_ct_LIPO=$LIPO 6551 # Extract the first word of "lipo", so it can be a program name with args. 6552set dummy lipo; ac_word=$2 6553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6554$as_echo_n "checking for $ac_word... " >&6; } 6555if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6556 $as_echo_n "(cached) " >&6 6557else 6558 if test -n "$ac_ct_LIPO"; then 6559 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6560else 6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6562for as_dir in $PATH 6563do 6564 IFS=$as_save_IFS 6565 test -z "$as_dir" && as_dir=. 6566 for ac_exec_ext in '' $ac_executable_extensions; do 6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6568 ac_cv_prog_ac_ct_LIPO="lipo" 6569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6570 break 2 6571 fi 6572done 6573done 6574IFS=$as_save_IFS 6575 6576fi 6577fi 6578ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6579if test -n "$ac_ct_LIPO"; then 6580 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6581$as_echo "$ac_ct_LIPO" >&6; } 6582else 6583 { $as_echo "$as_me:$LINENO: result: no" >&5 6584$as_echo "no" >&6; } 6585fi 6586 6587 if test "x$ac_ct_LIPO" = x; then 6588 LIPO=":" 6589 else 6590 case $cross_compiling:$ac_tool_warned in 6591yes:) 6592{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6594ac_tool_warned=yes ;; 6595esac 6596 LIPO=$ac_ct_LIPO 6597 fi 6598else 6599 LIPO="$ac_cv_prog_LIPO" 6600fi 6601 6602 if test -n "$ac_tool_prefix"; then 6603 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6604set dummy ${ac_tool_prefix}otool; ac_word=$2 6605{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6606$as_echo_n "checking for $ac_word... " >&6; } 6607if test "${ac_cv_prog_OTOOL+set}" = set; then 6608 $as_echo_n "(cached) " >&6 6609else 6610 if test -n "$OTOOL"; then 6611 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6612else 6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6614for as_dir in $PATH 6615do 6616 IFS=$as_save_IFS 6617 test -z "$as_dir" && as_dir=. 6618 for ac_exec_ext in '' $ac_executable_extensions; do 6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6620 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6622 break 2 6623 fi 6624done 6625done 6626IFS=$as_save_IFS 6627 6628fi 6629fi 6630OTOOL=$ac_cv_prog_OTOOL 6631if test -n "$OTOOL"; then 6632 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6633$as_echo "$OTOOL" >&6; } 6634else 6635 { $as_echo "$as_me:$LINENO: result: no" >&5 6636$as_echo "no" >&6; } 6637fi 6638 6639 6640fi 6641if test -z "$ac_cv_prog_OTOOL"; then 6642 ac_ct_OTOOL=$OTOOL 6643 # Extract the first word of "otool", so it can be a program name with args. 6644set dummy otool; ac_word=$2 6645{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6646$as_echo_n "checking for $ac_word... " >&6; } 6647if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6648 $as_echo_n "(cached) " >&6 6649else 6650 if test -n "$ac_ct_OTOOL"; then 6651 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6652else 6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6654for as_dir in $PATH 6655do 6656 IFS=$as_save_IFS 6657 test -z "$as_dir" && as_dir=. 6658 for ac_exec_ext in '' $ac_executable_extensions; do 6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6660 ac_cv_prog_ac_ct_OTOOL="otool" 6661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6662 break 2 6663 fi 6664done 6665done 6666IFS=$as_save_IFS 6667 6668fi 6669fi 6670ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6671if test -n "$ac_ct_OTOOL"; then 6672 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6673$as_echo "$ac_ct_OTOOL" >&6; } 6674else 6675 { $as_echo "$as_me:$LINENO: result: no" >&5 6676$as_echo "no" >&6; } 6677fi 6678 6679 if test "x$ac_ct_OTOOL" = x; then 6680 OTOOL=":" 6681 else 6682 case $cross_compiling:$ac_tool_warned in 6683yes:) 6684{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6686ac_tool_warned=yes ;; 6687esac 6688 OTOOL=$ac_ct_OTOOL 6689 fi 6690else 6691 OTOOL="$ac_cv_prog_OTOOL" 6692fi 6693 6694 if test -n "$ac_tool_prefix"; then 6695 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6696set dummy ${ac_tool_prefix}otool64; ac_word=$2 6697{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6698$as_echo_n "checking for $ac_word... " >&6; } 6699if test "${ac_cv_prog_OTOOL64+set}" = set; then 6700 $as_echo_n "(cached) " >&6 6701else 6702 if test -n "$OTOOL64"; then 6703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6704else 6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6706for as_dir in $PATH 6707do 6708 IFS=$as_save_IFS 6709 test -z "$as_dir" && as_dir=. 6710 for ac_exec_ext in '' $ac_executable_extensions; do 6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6712 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6714 break 2 6715 fi 6716done 6717done 6718IFS=$as_save_IFS 6719 6720fi 6721fi 6722OTOOL64=$ac_cv_prog_OTOOL64 6723if test -n "$OTOOL64"; then 6724 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6725$as_echo "$OTOOL64" >&6; } 6726else 6727 { $as_echo "$as_me:$LINENO: result: no" >&5 6728$as_echo "no" >&6; } 6729fi 6730 6731 6732fi 6733if test -z "$ac_cv_prog_OTOOL64"; then 6734 ac_ct_OTOOL64=$OTOOL64 6735 # Extract the first word of "otool64", so it can be a program name with args. 6736set dummy otool64; ac_word=$2 6737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6738$as_echo_n "checking for $ac_word... " >&6; } 6739if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6740 $as_echo_n "(cached) " >&6 6741else 6742 if test -n "$ac_ct_OTOOL64"; then 6743 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6744else 6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6746for as_dir in $PATH 6747do 6748 IFS=$as_save_IFS 6749 test -z "$as_dir" && as_dir=. 6750 for ac_exec_ext in '' $ac_executable_extensions; do 6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6752 ac_cv_prog_ac_ct_OTOOL64="otool64" 6753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6754 break 2 6755 fi 6756done 6757done 6758IFS=$as_save_IFS 6759 6760fi 6761fi 6762ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6763if test -n "$ac_ct_OTOOL64"; then 6764 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6765$as_echo "$ac_ct_OTOOL64" >&6; } 6766else 6767 { $as_echo "$as_me:$LINENO: result: no" >&5 6768$as_echo "no" >&6; } 6769fi 6770 6771 if test "x$ac_ct_OTOOL64" = x; then 6772 OTOOL64=":" 6773 else 6774 case $cross_compiling:$ac_tool_warned in 6775yes:) 6776{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6778ac_tool_warned=yes ;; 6779esac 6780 OTOOL64=$ac_ct_OTOOL64 6781 fi 6782else 6783 OTOOL64="$ac_cv_prog_OTOOL64" 6784fi 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6813$as_echo_n "checking for -single_module linker flag... " >&6; } 6814if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6815 $as_echo_n "(cached) " >&6 6816else 6817 lt_cv_apple_cc_single_mod=no 6818 if test -z "${LT_MULTI_MODULE}"; then 6819 # By default we will add the -single_module flag. You can override 6820 # by either setting the environment variable LT_MULTI_MODULE 6821 # non-empty at configure time, or by adding -multi_module to the 6822 # link flags. 6823 rm -rf libconftest.dylib* 6824 echo "int foo(void){return 1;}" > conftest.c 6825 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6826-dynamiclib -Wl,-single_module conftest.c" >&5 6827 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6828 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6829 _lt_result=$? 6830 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6831 lt_cv_apple_cc_single_mod=yes 6832 else 6833 cat conftest.err >&5 6834 fi 6835 rm -rf libconftest.dylib* 6836 rm -f conftest.* 6837 fi 6838fi 6839{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6840$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6841 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6842$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6843if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6844 $as_echo_n "(cached) " >&6 6845else 6846 lt_cv_ld_exported_symbols_list=no 6847 save_LDFLAGS=$LDFLAGS 6848 echo "_main" > conftest.sym 6849 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6850 cat >conftest.$ac_ext <<_ACEOF 6851/* confdefs.h. */ 6852_ACEOF 6853cat confdefs.h >>conftest.$ac_ext 6854cat >>conftest.$ac_ext <<_ACEOF 6855/* end confdefs.h. */ 6856 6857int 6858main () 6859{ 6860 6861 ; 6862 return 0; 6863} 6864_ACEOF 6865rm -f conftest.$ac_objext conftest$ac_exeext 6866if { (ac_try="$ac_link" 6867case "(($ac_try" in 6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6869 *) ac_try_echo=$ac_try;; 6870esac 6871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6872$as_echo "$ac_try_echo") >&5 6873 (eval "$ac_link") 2>conftest.er1 6874 ac_status=$? 6875 grep -v '^ *+' conftest.er1 >conftest.err 6876 rm -f conftest.er1 6877 cat conftest.err >&5 6878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6879 (exit $ac_status); } && { 6880 test -z "$ac_c_werror_flag" || 6881 test ! -s conftest.err 6882 } && test -s conftest$ac_exeext && { 6883 test "$cross_compiling" = yes || 6884 $as_test_x conftest$ac_exeext 6885 }; then 6886 lt_cv_ld_exported_symbols_list=yes 6887else 6888 $as_echo "$as_me: failed program was:" >&5 6889sed 's/^/| /' conftest.$ac_ext >&5 6890 6891 lt_cv_ld_exported_symbols_list=no 6892fi 6893 6894rm -rf conftest.dSYM 6895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6896 conftest$ac_exeext conftest.$ac_ext 6897 LDFLAGS="$save_LDFLAGS" 6898 6899fi 6900{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6901$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6902 case $host_os in 6903 rhapsody* | darwin1.[012]) 6904 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6905 darwin1.*) 6906 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6907 darwin*) # darwin 5.x on 6908 # if running on 10.5 or later, the deployment target defaults 6909 # to the OS version, if on x86, and 10.4, the deployment 6910 # target defaults to 10.4. Don't you love it? 6911 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6912 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6913 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6914 10.[012]*) 6915 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6916 10.*) 6917 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6918 esac 6919 ;; 6920 esac 6921 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6922 _lt_dar_single_mod='$single_module' 6923 fi 6924 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6925 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6926 else 6927 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6928 fi 6929 if test "$DSYMUTIL" != ":"; then 6930 _lt_dsymutil='~$DSYMUTIL $lib || :' 6931 else 6932 _lt_dsymutil= 6933 fi 6934 ;; 6935 esac 6936 6937ac_ext=c 6938ac_cpp='$CPP $CPPFLAGS' 6939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6941ac_compiler_gnu=$ac_cv_c_compiler_gnu 6942{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6943$as_echo_n "checking how to run the C preprocessor... " >&6; } 6944# On Suns, sometimes $CPP names a directory. 6945if test -n "$CPP" && test -d "$CPP"; then 6946 CPP= 6947fi 6948if test -z "$CPP"; then 6949 if test "${ac_cv_prog_CPP+set}" = set; then 6950 $as_echo_n "(cached) " >&6 6951else 6952 # Double quotes because CPP needs to be expanded 6953 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6954 do 6955 ac_preproc_ok=false 6956for ac_c_preproc_warn_flag in '' yes 6957do 6958 # Use a header file that comes with gcc, so configuring glibc 6959 # with a fresh cross-compiler works. 6960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6961 # <limits.h> exists even on freestanding compilers. 6962 # On the NeXT, cc -E runs the code through the compiler's parser, 6963 # not just through cpp. "Syntax error" is here to catch this case. 6964 cat >conftest.$ac_ext <<_ACEOF 6965/* confdefs.h. */ 6966_ACEOF 6967cat confdefs.h >>conftest.$ac_ext 6968cat >>conftest.$ac_ext <<_ACEOF 6969/* end confdefs.h. */ 6970#ifdef __STDC__ 6971# include <limits.h> 6972#else 6973# include <assert.h> 6974#endif 6975 Syntax error 6976_ACEOF 6977if { (ac_try="$ac_cpp conftest.$ac_ext" 6978case "(($ac_try" in 6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6980 *) ac_try_echo=$ac_try;; 6981esac 6982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6983$as_echo "$ac_try_echo") >&5 6984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6985 ac_status=$? 6986 grep -v '^ *+' conftest.er1 >conftest.err 6987 rm -f conftest.er1 6988 cat conftest.err >&5 6989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6990 (exit $ac_status); } >/dev/null && { 6991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6992 test ! -s conftest.err 6993 }; then 6994 : 6995else 6996 $as_echo "$as_me: failed program was:" >&5 6997sed 's/^/| /' conftest.$ac_ext >&5 6998 6999 # Broken: fails on valid input. 7000continue 7001fi 7002 7003rm -f conftest.err conftest.$ac_ext 7004 7005 # OK, works on sane cases. Now check whether nonexistent headers 7006 # can be detected and how. 7007 cat >conftest.$ac_ext <<_ACEOF 7008/* confdefs.h. */ 7009_ACEOF 7010cat confdefs.h >>conftest.$ac_ext 7011cat >>conftest.$ac_ext <<_ACEOF 7012/* end confdefs.h. */ 7013#include <ac_nonexistent.h> 7014_ACEOF 7015if { (ac_try="$ac_cpp conftest.$ac_ext" 7016case "(($ac_try" in 7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7018 *) ac_try_echo=$ac_try;; 7019esac 7020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7021$as_echo "$ac_try_echo") >&5 7022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7023 ac_status=$? 7024 grep -v '^ *+' conftest.er1 >conftest.err 7025 rm -f conftest.er1 7026 cat conftest.err >&5 7027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7028 (exit $ac_status); } >/dev/null && { 7029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7030 test ! -s conftest.err 7031 }; then 7032 # Broken: success on invalid input. 7033continue 7034else 7035 $as_echo "$as_me: failed program was:" >&5 7036sed 's/^/| /' conftest.$ac_ext >&5 7037 7038 # Passes both tests. 7039ac_preproc_ok=: 7040break 7041fi 7042 7043rm -f conftest.err conftest.$ac_ext 7044 7045done 7046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7047rm -f conftest.err conftest.$ac_ext 7048if $ac_preproc_ok; then 7049 break 7050fi 7051 7052 done 7053 ac_cv_prog_CPP=$CPP 7054 7055fi 7056 CPP=$ac_cv_prog_CPP 7057else 7058 ac_cv_prog_CPP=$CPP 7059fi 7060{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 7061$as_echo "$CPP" >&6; } 7062ac_preproc_ok=false 7063for ac_c_preproc_warn_flag in '' yes 7064do 7065 # Use a header file that comes with gcc, so configuring glibc 7066 # with a fresh cross-compiler works. 7067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7068 # <limits.h> exists even on freestanding compilers. 7069 # On the NeXT, cc -E runs the code through the compiler's parser, 7070 # not just through cpp. "Syntax error" is here to catch this case. 7071 cat >conftest.$ac_ext <<_ACEOF 7072/* confdefs.h. */ 7073_ACEOF 7074cat confdefs.h >>conftest.$ac_ext 7075cat >>conftest.$ac_ext <<_ACEOF 7076/* end confdefs.h. */ 7077#ifdef __STDC__ 7078# include <limits.h> 7079#else 7080# include <assert.h> 7081#endif 7082 Syntax error 7083_ACEOF 7084if { (ac_try="$ac_cpp conftest.$ac_ext" 7085case "(($ac_try" in 7086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7087 *) ac_try_echo=$ac_try;; 7088esac 7089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7090$as_echo "$ac_try_echo") >&5 7091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7092 ac_status=$? 7093 grep -v '^ *+' conftest.er1 >conftest.err 7094 rm -f conftest.er1 7095 cat conftest.err >&5 7096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7097 (exit $ac_status); } >/dev/null && { 7098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7099 test ! -s conftest.err 7100 }; then 7101 : 7102else 7103 $as_echo "$as_me: failed program was:" >&5 7104sed 's/^/| /' conftest.$ac_ext >&5 7105 7106 # Broken: fails on valid input. 7107continue 7108fi 7109 7110rm -f conftest.err conftest.$ac_ext 7111 7112 # OK, works on sane cases. Now check whether nonexistent headers 7113 # can be detected and how. 7114 cat >conftest.$ac_ext <<_ACEOF 7115/* confdefs.h. */ 7116_ACEOF 7117cat confdefs.h >>conftest.$ac_ext 7118cat >>conftest.$ac_ext <<_ACEOF 7119/* end confdefs.h. */ 7120#include <ac_nonexistent.h> 7121_ACEOF 7122if { (ac_try="$ac_cpp conftest.$ac_ext" 7123case "(($ac_try" in 7124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7125 *) ac_try_echo=$ac_try;; 7126esac 7127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7128$as_echo "$ac_try_echo") >&5 7129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7130 ac_status=$? 7131 grep -v '^ *+' conftest.er1 >conftest.err 7132 rm -f conftest.er1 7133 cat conftest.err >&5 7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7135 (exit $ac_status); } >/dev/null && { 7136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7137 test ! -s conftest.err 7138 }; then 7139 # Broken: success on invalid input. 7140continue 7141else 7142 $as_echo "$as_me: failed program was:" >&5 7143sed 's/^/| /' conftest.$ac_ext >&5 7144 7145 # Passes both tests. 7146ac_preproc_ok=: 7147break 7148fi 7149 7150rm -f conftest.err conftest.$ac_ext 7151 7152done 7153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7154rm -f conftest.err conftest.$ac_ext 7155if $ac_preproc_ok; then 7156 : 7157else 7158 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 7159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7160{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 7161See \`config.log' for more details." >&5 7162$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 7163See \`config.log' for more details." >&2;} 7164 { (exit 1); exit 1; }; }; } 7165fi 7166 7167ac_ext=c 7168ac_cpp='$CPP $CPPFLAGS' 7169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7171ac_compiler_gnu=$ac_cv_c_compiler_gnu 7172 7173 7174{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7175$as_echo_n "checking for ANSI C header files... " >&6; } 7176if test "${ac_cv_header_stdc+set}" = set; then 7177 $as_echo_n "(cached) " >&6 7178else 7179 cat >conftest.$ac_ext <<_ACEOF 7180/* confdefs.h. */ 7181_ACEOF 7182cat confdefs.h >>conftest.$ac_ext 7183cat >>conftest.$ac_ext <<_ACEOF 7184/* end confdefs.h. */ 7185#include <stdlib.h> 7186#include <stdarg.h> 7187#include <string.h> 7188#include <float.h> 7189 7190int 7191main () 7192{ 7193 7194 ; 7195 return 0; 7196} 7197_ACEOF 7198rm -f conftest.$ac_objext 7199if { (ac_try="$ac_compile" 7200case "(($ac_try" in 7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7202 *) ac_try_echo=$ac_try;; 7203esac 7204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7205$as_echo "$ac_try_echo") >&5 7206 (eval "$ac_compile") 2>conftest.er1 7207 ac_status=$? 7208 grep -v '^ *+' conftest.er1 >conftest.err 7209 rm -f conftest.er1 7210 cat conftest.err >&5 7211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7212 (exit $ac_status); } && { 7213 test -z "$ac_c_werror_flag" || 7214 test ! -s conftest.err 7215 } && test -s conftest.$ac_objext; then 7216 ac_cv_header_stdc=yes 7217else 7218 $as_echo "$as_me: failed program was:" >&5 7219sed 's/^/| /' conftest.$ac_ext >&5 7220 7221 ac_cv_header_stdc=no 7222fi 7223 7224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7225 7226if test $ac_cv_header_stdc = yes; then 7227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7228 cat >conftest.$ac_ext <<_ACEOF 7229/* confdefs.h. */ 7230_ACEOF 7231cat confdefs.h >>conftest.$ac_ext 7232cat >>conftest.$ac_ext <<_ACEOF 7233/* end confdefs.h. */ 7234#include <string.h> 7235 7236_ACEOF 7237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7238 $EGREP "memchr" >/dev/null 2>&1; then 7239 : 7240else 7241 ac_cv_header_stdc=no 7242fi 7243rm -f conftest* 7244 7245fi 7246 7247if test $ac_cv_header_stdc = yes; then 7248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7249 cat >conftest.$ac_ext <<_ACEOF 7250/* confdefs.h. */ 7251_ACEOF 7252cat confdefs.h >>conftest.$ac_ext 7253cat >>conftest.$ac_ext <<_ACEOF 7254/* end confdefs.h. */ 7255#include <stdlib.h> 7256 7257_ACEOF 7258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7259 $EGREP "free" >/dev/null 2>&1; then 7260 : 7261else 7262 ac_cv_header_stdc=no 7263fi 7264rm -f conftest* 7265 7266fi 7267 7268if test $ac_cv_header_stdc = yes; then 7269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7270 if test "$cross_compiling" = yes; then 7271 : 7272else 7273 cat >conftest.$ac_ext <<_ACEOF 7274/* confdefs.h. */ 7275_ACEOF 7276cat confdefs.h >>conftest.$ac_ext 7277cat >>conftest.$ac_ext <<_ACEOF 7278/* end confdefs.h. */ 7279#include <ctype.h> 7280#include <stdlib.h> 7281#if ((' ' & 0x0FF) == 0x020) 7282# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7283# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7284#else 7285# define ISLOWER(c) \ 7286 (('a' <= (c) && (c) <= 'i') \ 7287 || ('j' <= (c) && (c) <= 'r') \ 7288 || ('s' <= (c) && (c) <= 'z')) 7289# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7290#endif 7291 7292#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7293int 7294main () 7295{ 7296 int i; 7297 for (i = 0; i < 256; i++) 7298 if (XOR (islower (i), ISLOWER (i)) 7299 || toupper (i) != TOUPPER (i)) 7300 return 2; 7301 return 0; 7302} 7303_ACEOF 7304rm -f conftest$ac_exeext 7305if { (ac_try="$ac_link" 7306case "(($ac_try" in 7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7308 *) ac_try_echo=$ac_try;; 7309esac 7310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7311$as_echo "$ac_try_echo") >&5 7312 (eval "$ac_link") 2>&5 7313 ac_status=$? 7314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7316 { (case "(($ac_try" in 7317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7318 *) ac_try_echo=$ac_try;; 7319esac 7320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7321$as_echo "$ac_try_echo") >&5 7322 (eval "$ac_try") 2>&5 7323 ac_status=$? 7324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7325 (exit $ac_status); }; }; then 7326 : 7327else 7328 $as_echo "$as_me: program exited with status $ac_status" >&5 7329$as_echo "$as_me: failed program was:" >&5 7330sed 's/^/| /' conftest.$ac_ext >&5 7331 7332( exit $ac_status ) 7333ac_cv_header_stdc=no 7334fi 7335rm -rf conftest.dSYM 7336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7337fi 7338 7339 7340fi 7341fi 7342{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7343$as_echo "$ac_cv_header_stdc" >&6; } 7344if test $ac_cv_header_stdc = yes; then 7345 7346cat >>confdefs.h <<\_ACEOF 7347#define STDC_HEADERS 1 7348_ACEOF 7349 7350fi 7351 7352# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7363 inttypes.h stdint.h unistd.h 7364do 7365as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7366{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7367$as_echo_n "checking for $ac_header... " >&6; } 7368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7369 $as_echo_n "(cached) " >&6 7370else 7371 cat >conftest.$ac_ext <<_ACEOF 7372/* confdefs.h. */ 7373_ACEOF 7374cat confdefs.h >>conftest.$ac_ext 7375cat >>conftest.$ac_ext <<_ACEOF 7376/* end confdefs.h. */ 7377$ac_includes_default 7378 7379#include <$ac_header> 7380_ACEOF 7381rm -f conftest.$ac_objext 7382if { (ac_try="$ac_compile" 7383case "(($ac_try" in 7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7385 *) ac_try_echo=$ac_try;; 7386esac 7387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7388$as_echo "$ac_try_echo") >&5 7389 (eval "$ac_compile") 2>conftest.er1 7390 ac_status=$? 7391 grep -v '^ *+' conftest.er1 >conftest.err 7392 rm -f conftest.er1 7393 cat conftest.err >&5 7394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7395 (exit $ac_status); } && { 7396 test -z "$ac_c_werror_flag" || 7397 test ! -s conftest.err 7398 } && test -s conftest.$ac_objext; then 7399 eval "$as_ac_Header=yes" 7400else 7401 $as_echo "$as_me: failed program was:" >&5 7402sed 's/^/| /' conftest.$ac_ext >&5 7403 7404 eval "$as_ac_Header=no" 7405fi 7406 7407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7408fi 7409ac_res=`eval 'as_val=${'$as_ac_Header'} 7410 $as_echo "$as_val"'` 7411 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7412$as_echo "$ac_res" >&6; } 7413as_val=`eval 'as_val=${'$as_ac_Header'} 7414 $as_echo "$as_val"'` 7415 if test "x$as_val" = x""yes; then 7416 cat >>confdefs.h <<_ACEOF 7417#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7418_ACEOF 7419 7420fi 7421 7422done 7423 7424 7425 7426for ac_header in dlfcn.h 7427do 7428as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7429{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7430$as_echo_n "checking for $ac_header... " >&6; } 7431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7432 $as_echo_n "(cached) " >&6 7433else 7434 cat >conftest.$ac_ext <<_ACEOF 7435/* confdefs.h. */ 7436_ACEOF 7437cat confdefs.h >>conftest.$ac_ext 7438cat >>conftest.$ac_ext <<_ACEOF 7439/* end confdefs.h. */ 7440$ac_includes_default 7441 7442#include <$ac_header> 7443_ACEOF 7444rm -f conftest.$ac_objext 7445if { (ac_try="$ac_compile" 7446case "(($ac_try" in 7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7448 *) ac_try_echo=$ac_try;; 7449esac 7450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7451$as_echo "$ac_try_echo") >&5 7452 (eval "$ac_compile") 2>conftest.er1 7453 ac_status=$? 7454 grep -v '^ *+' conftest.er1 >conftest.err 7455 rm -f conftest.er1 7456 cat conftest.err >&5 7457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7458 (exit $ac_status); } && { 7459 test -z "$ac_c_werror_flag" || 7460 test ! -s conftest.err 7461 } && test -s conftest.$ac_objext; then 7462 eval "$as_ac_Header=yes" 7463else 7464 $as_echo "$as_me: failed program was:" >&5 7465sed 's/^/| /' conftest.$ac_ext >&5 7466 7467 eval "$as_ac_Header=no" 7468fi 7469 7470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7471fi 7472ac_res=`eval 'as_val=${'$as_ac_Header'} 7473 $as_echo "$as_val"'` 7474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7475$as_echo "$ac_res" >&6; } 7476as_val=`eval 'as_val=${'$as_ac_Header'} 7477 $as_echo "$as_val"'` 7478 if test "x$as_val" = x""yes; then 7479 cat >>confdefs.h <<_ACEOF 7480#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7481_ACEOF 7482 7483fi 7484 7485done 7486 7487 7488 7489ac_ext=cpp 7490ac_cpp='$CXXCPP $CPPFLAGS' 7491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7494if test -z "$CXX"; then 7495 if test -n "$CCC"; then 7496 CXX=$CCC 7497 else 7498 if test -n "$ac_tool_prefix"; then 7499 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7500 do 7501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7502set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7503{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7504$as_echo_n "checking for $ac_word... " >&6; } 7505if test "${ac_cv_prog_CXX+set}" = set; then 7506 $as_echo_n "(cached) " >&6 7507else 7508 if test -n "$CXX"; then 7509 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7510else 7511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7512for as_dir in $PATH 7513do 7514 IFS=$as_save_IFS 7515 test -z "$as_dir" && as_dir=. 7516 for ac_exec_ext in '' $ac_executable_extensions; do 7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7518 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7520 break 2 7521 fi 7522done 7523done 7524IFS=$as_save_IFS 7525 7526fi 7527fi 7528CXX=$ac_cv_prog_CXX 7529if test -n "$CXX"; then 7530 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 7531$as_echo "$CXX" >&6; } 7532else 7533 { $as_echo "$as_me:$LINENO: result: no" >&5 7534$as_echo "no" >&6; } 7535fi 7536 7537 7538 test -n "$CXX" && break 7539 done 7540fi 7541if test -z "$CXX"; then 7542 ac_ct_CXX=$CXX 7543 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7544do 7545 # Extract the first word of "$ac_prog", so it can be a program name with args. 7546set dummy $ac_prog; ac_word=$2 7547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7548$as_echo_n "checking for $ac_word... " >&6; } 7549if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7550 $as_echo_n "(cached) " >&6 7551else 7552 if test -n "$ac_ct_CXX"; then 7553 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7554else 7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556for as_dir in $PATH 7557do 7558 IFS=$as_save_IFS 7559 test -z "$as_dir" && as_dir=. 7560 for ac_exec_ext in '' $ac_executable_extensions; do 7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7562 ac_cv_prog_ac_ct_CXX="$ac_prog" 7563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7564 break 2 7565 fi 7566done 7567done 7568IFS=$as_save_IFS 7569 7570fi 7571fi 7572ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7573if test -n "$ac_ct_CXX"; then 7574 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 7575$as_echo "$ac_ct_CXX" >&6; } 7576else 7577 { $as_echo "$as_me:$LINENO: result: no" >&5 7578$as_echo "no" >&6; } 7579fi 7580 7581 7582 test -n "$ac_ct_CXX" && break 7583done 7584 7585 if test "x$ac_ct_CXX" = x; then 7586 CXX="g++" 7587 else 7588 case $cross_compiling:$ac_tool_warned in 7589yes:) 7590{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7592ac_tool_warned=yes ;; 7593esac 7594 CXX=$ac_ct_CXX 7595 fi 7596fi 7597 7598 fi 7599fi 7600# Provide some information about the compiler. 7601$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 7602set X $ac_compile 7603ac_compiler=$2 7604{ (ac_try="$ac_compiler --version >&5" 7605case "(($ac_try" in 7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7607 *) ac_try_echo=$ac_try;; 7608esac 7609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7610$as_echo "$ac_try_echo") >&5 7611 (eval "$ac_compiler --version >&5") 2>&5 7612 ac_status=$? 7613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7614 (exit $ac_status); } 7615{ (ac_try="$ac_compiler -v >&5" 7616case "(($ac_try" in 7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7618 *) ac_try_echo=$ac_try;; 7619esac 7620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7621$as_echo "$ac_try_echo") >&5 7622 (eval "$ac_compiler -v >&5") 2>&5 7623 ac_status=$? 7624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7625 (exit $ac_status); } 7626{ (ac_try="$ac_compiler -V >&5" 7627case "(($ac_try" in 7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7629 *) ac_try_echo=$ac_try;; 7630esac 7631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7632$as_echo "$ac_try_echo") >&5 7633 (eval "$ac_compiler -V >&5") 2>&5 7634 ac_status=$? 7635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7636 (exit $ac_status); } 7637 7638{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7639$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7640if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7641 $as_echo_n "(cached) " >&6 7642else 7643 cat >conftest.$ac_ext <<_ACEOF 7644/* confdefs.h. */ 7645_ACEOF 7646cat confdefs.h >>conftest.$ac_ext 7647cat >>conftest.$ac_ext <<_ACEOF 7648/* end confdefs.h. */ 7649 7650int 7651main () 7652{ 7653#ifndef __GNUC__ 7654 choke me 7655#endif 7656 7657 ; 7658 return 0; 7659} 7660_ACEOF 7661rm -f conftest.$ac_objext 7662if { (ac_try="$ac_compile" 7663case "(($ac_try" in 7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7665 *) ac_try_echo=$ac_try;; 7666esac 7667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7668$as_echo "$ac_try_echo") >&5 7669 (eval "$ac_compile") 2>conftest.er1 7670 ac_status=$? 7671 grep -v '^ *+' conftest.er1 >conftest.err 7672 rm -f conftest.er1 7673 cat conftest.err >&5 7674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7675 (exit $ac_status); } && { 7676 test -z "$ac_cxx_werror_flag" || 7677 test ! -s conftest.err 7678 } && test -s conftest.$ac_objext; then 7679 ac_compiler_gnu=yes 7680else 7681 $as_echo "$as_me: failed program was:" >&5 7682sed 's/^/| /' conftest.$ac_ext >&5 7683 7684 ac_compiler_gnu=no 7685fi 7686 7687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7688ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7689 7690fi 7691{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7692$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7693if test $ac_compiler_gnu = yes; then 7694 GXX=yes 7695else 7696 GXX= 7697fi 7698ac_test_CXXFLAGS=${CXXFLAGS+set} 7699ac_save_CXXFLAGS=$CXXFLAGS 7700{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7701$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7702if test "${ac_cv_prog_cxx_g+set}" = set; then 7703 $as_echo_n "(cached) " >&6 7704else 7705 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7706 ac_cxx_werror_flag=yes 7707 ac_cv_prog_cxx_g=no 7708 CXXFLAGS="-g" 7709 cat >conftest.$ac_ext <<_ACEOF 7710/* confdefs.h. */ 7711_ACEOF 7712cat confdefs.h >>conftest.$ac_ext 7713cat >>conftest.$ac_ext <<_ACEOF 7714/* end confdefs.h. */ 7715 7716int 7717main () 7718{ 7719 7720 ; 7721 return 0; 7722} 7723_ACEOF 7724rm -f conftest.$ac_objext 7725if { (ac_try="$ac_compile" 7726case "(($ac_try" in 7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7728 *) ac_try_echo=$ac_try;; 7729esac 7730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7731$as_echo "$ac_try_echo") >&5 7732 (eval "$ac_compile") 2>conftest.er1 7733 ac_status=$? 7734 grep -v '^ *+' conftest.er1 >conftest.err 7735 rm -f conftest.er1 7736 cat conftest.err >&5 7737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7738 (exit $ac_status); } && { 7739 test -z "$ac_cxx_werror_flag" || 7740 test ! -s conftest.err 7741 } && test -s conftest.$ac_objext; then 7742 ac_cv_prog_cxx_g=yes 7743else 7744 $as_echo "$as_me: failed program was:" >&5 7745sed 's/^/| /' conftest.$ac_ext >&5 7746 7747 CXXFLAGS="" 7748 cat >conftest.$ac_ext <<_ACEOF 7749/* confdefs.h. */ 7750_ACEOF 7751cat confdefs.h >>conftest.$ac_ext 7752cat >>conftest.$ac_ext <<_ACEOF 7753/* end confdefs.h. */ 7754 7755int 7756main () 7757{ 7758 7759 ; 7760 return 0; 7761} 7762_ACEOF 7763rm -f conftest.$ac_objext 7764if { (ac_try="$ac_compile" 7765case "(($ac_try" in 7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7767 *) ac_try_echo=$ac_try;; 7768esac 7769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7770$as_echo "$ac_try_echo") >&5 7771 (eval "$ac_compile") 2>conftest.er1 7772 ac_status=$? 7773 grep -v '^ *+' conftest.er1 >conftest.err 7774 rm -f conftest.er1 7775 cat conftest.err >&5 7776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7777 (exit $ac_status); } && { 7778 test -z "$ac_cxx_werror_flag" || 7779 test ! -s conftest.err 7780 } && test -s conftest.$ac_objext; then 7781 : 7782else 7783 $as_echo "$as_me: failed program was:" >&5 7784sed 's/^/| /' conftest.$ac_ext >&5 7785 7786 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7787 CXXFLAGS="-g" 7788 cat >conftest.$ac_ext <<_ACEOF 7789/* confdefs.h. */ 7790_ACEOF 7791cat confdefs.h >>conftest.$ac_ext 7792cat >>conftest.$ac_ext <<_ACEOF 7793/* end confdefs.h. */ 7794 7795int 7796main () 7797{ 7798 7799 ; 7800 return 0; 7801} 7802_ACEOF 7803rm -f conftest.$ac_objext 7804if { (ac_try="$ac_compile" 7805case "(($ac_try" in 7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7807 *) ac_try_echo=$ac_try;; 7808esac 7809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7810$as_echo "$ac_try_echo") >&5 7811 (eval "$ac_compile") 2>conftest.er1 7812 ac_status=$? 7813 grep -v '^ *+' conftest.er1 >conftest.err 7814 rm -f conftest.er1 7815 cat conftest.err >&5 7816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7817 (exit $ac_status); } && { 7818 test -z "$ac_cxx_werror_flag" || 7819 test ! -s conftest.err 7820 } && test -s conftest.$ac_objext; then 7821 ac_cv_prog_cxx_g=yes 7822else 7823 $as_echo "$as_me: failed program was:" >&5 7824sed 's/^/| /' conftest.$ac_ext >&5 7825 7826 7827fi 7828 7829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7830fi 7831 7832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7833fi 7834 7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7836 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7837fi 7838{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 7839$as_echo "$ac_cv_prog_cxx_g" >&6; } 7840if test "$ac_test_CXXFLAGS" = set; then 7841 CXXFLAGS=$ac_save_CXXFLAGS 7842elif test $ac_cv_prog_cxx_g = yes; then 7843 if test "$GXX" = yes; then 7844 CXXFLAGS="-g -O2" 7845 else 7846 CXXFLAGS="-g" 7847 fi 7848else 7849 if test "$GXX" = yes; then 7850 CXXFLAGS="-O2" 7851 else 7852 CXXFLAGS= 7853 fi 7854fi 7855ac_ext=c 7856ac_cpp='$CPP $CPPFLAGS' 7857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7859ac_compiler_gnu=$ac_cv_c_compiler_gnu 7860 7861depcc="$CXX" am_compiler_list= 7862 7863{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 7864$as_echo_n "checking dependency style of $depcc... " >&6; } 7865if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 7866 $as_echo_n "(cached) " >&6 7867else 7868 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7869 # We make a subdir and do the tests there. Otherwise we can end up 7870 # making bogus files that we don't know about and never remove. For 7871 # instance it was reported that on HP-UX the gcc test will end up 7872 # making a dummy file named `D' -- because `-MD' means `put the output 7873 # in D'. 7874 mkdir conftest.dir 7875 # Copy depcomp to subdir because otherwise we won't find it if we're 7876 # using a relative directory. 7877 cp "$am_depcomp" conftest.dir 7878 cd conftest.dir 7879 # We will build objects and dependencies in a subdirectory because 7880 # it helps to detect inapplicable dependency modes. For instance 7881 # both Tru64's cc and ICC support -MD to output dependencies as a 7882 # side effect of compilation, but ICC will put the dependencies in 7883 # the current directory while Tru64 will put them in the object 7884 # directory. 7885 mkdir sub 7886 7887 am_cv_CXX_dependencies_compiler_type=none 7888 if test "$am_compiler_list" = ""; then 7889 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7890 fi 7891 am__universal=false 7892 case " $depcc " in #( 7893 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7894 esac 7895 7896 for depmode in $am_compiler_list; do 7897 # Setup a source with many dependencies, because some compilers 7898 # like to wrap large dependency lists on column 80 (with \), and 7899 # we should not choose a depcomp mode which is confused by this. 7900 # 7901 # We need to recreate these files for each test, as the compiler may 7902 # overwrite some of them when testing with obscure command lines. 7903 # This happens at least with the AIX C compiler. 7904 : > sub/conftest.c 7905 for i in 1 2 3 4 5 6; do 7906 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7907 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7908 # Solaris 8's {/usr,}/bin/sh. 7909 touch sub/conftst$i.h 7910 done 7911 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7912 7913 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7914 # mode. It turns out that the SunPro C++ compiler does not properly 7915 # handle `-M -o', and we need to detect this. Also, some Intel 7916 # versions had trouble with output in subdirs 7917 am__obj=sub/conftest.${OBJEXT-o} 7918 am__minus_obj="-o $am__obj" 7919 case $depmode in 7920 gcc) 7921 # This depmode causes a compiler race in universal mode. 7922 test "$am__universal" = false || continue 7923 ;; 7924 nosideeffect) 7925 # after this tag, mechanisms are not by side-effect, so they'll 7926 # only be used when explicitly requested 7927 if test "x$enable_dependency_tracking" = xyes; then 7928 continue 7929 else 7930 break 7931 fi 7932 ;; 7933 msvisualcpp | msvcmsys) 7934 # This compiler won't grok `-c -o', but also, the minuso test has 7935 # not run yet. These depmodes are late enough in the game, and 7936 # so weak that their functioning should not be impacted. 7937 am__obj=conftest.${OBJEXT-o} 7938 am__minus_obj= 7939 ;; 7940 none) break ;; 7941 esac 7942 if depmode=$depmode \ 7943 source=sub/conftest.c object=$am__obj \ 7944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7946 >/dev/null 2>conftest.err && 7947 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7948 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7949 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7950 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7951 # icc doesn't choke on unknown options, it will just issue warnings 7952 # or remarks (even with -Werror). So we grep stderr for any message 7953 # that says an option was ignored or not supported. 7954 # When given -MP, icc 7.0 and 7.1 complain thusly: 7955 # icc: Command line warning: ignoring option '-M'; no argument required 7956 # The diagnosis changed in icc 8.0: 7957 # icc: Command line remark: option '-MP' not supported 7958 if (grep 'ignoring option' conftest.err || 7959 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7960 am_cv_CXX_dependencies_compiler_type=$depmode 7961 break 7962 fi 7963 fi 7964 done 7965 7966 cd .. 7967 rm -rf conftest.dir 7968else 7969 am_cv_CXX_dependencies_compiler_type=none 7970fi 7971 7972fi 7973{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 7974$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7975CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7976 7977 if 7978 test "x$enable_dependency_tracking" != xno \ 7979 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7980 am__fastdepCXX_TRUE= 7981 am__fastdepCXX_FALSE='#' 7982else 7983 am__fastdepCXX_TRUE='#' 7984 am__fastdepCXX_FALSE= 7985fi 7986 7987 7988if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7989 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7990 (test "X$CXX" != "Xg++"))) ; then 7991 ac_ext=cpp 7992ac_cpp='$CXXCPP $CPPFLAGS' 7993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7996{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7997$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 7998if test -z "$CXXCPP"; then 7999 if test "${ac_cv_prog_CXXCPP+set}" = set; then 8000 $as_echo_n "(cached) " >&6 8001else 8002 # Double quotes because CXXCPP needs to be expanded 8003 for CXXCPP in "$CXX -E" "/lib/cpp" 8004 do 8005 ac_preproc_ok=false 8006for ac_cxx_preproc_warn_flag in '' yes 8007do 8008 # Use a header file that comes with gcc, so configuring glibc 8009 # with a fresh cross-compiler works. 8010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8011 # <limits.h> exists even on freestanding compilers. 8012 # On the NeXT, cc -E runs the code through the compiler's parser, 8013 # not just through cpp. "Syntax error" is here to catch this case. 8014 cat >conftest.$ac_ext <<_ACEOF 8015/* confdefs.h. */ 8016_ACEOF 8017cat confdefs.h >>conftest.$ac_ext 8018cat >>conftest.$ac_ext <<_ACEOF 8019/* end confdefs.h. */ 8020#ifdef __STDC__ 8021# include <limits.h> 8022#else 8023# include <assert.h> 8024#endif 8025 Syntax error 8026_ACEOF 8027if { (ac_try="$ac_cpp conftest.$ac_ext" 8028case "(($ac_try" in 8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8030 *) ac_try_echo=$ac_try;; 8031esac 8032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8033$as_echo "$ac_try_echo") >&5 8034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8035 ac_status=$? 8036 grep -v '^ *+' conftest.er1 >conftest.err 8037 rm -f conftest.er1 8038 cat conftest.err >&5 8039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8040 (exit $ac_status); } >/dev/null && { 8041 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8042 test ! -s conftest.err 8043 }; then 8044 : 8045else 8046 $as_echo "$as_me: failed program was:" >&5 8047sed 's/^/| /' conftest.$ac_ext >&5 8048 8049 # Broken: fails on valid input. 8050continue 8051fi 8052 8053rm -f conftest.err conftest.$ac_ext 8054 8055 # OK, works on sane cases. Now check whether nonexistent headers 8056 # can be detected and how. 8057 cat >conftest.$ac_ext <<_ACEOF 8058/* confdefs.h. */ 8059_ACEOF 8060cat confdefs.h >>conftest.$ac_ext 8061cat >>conftest.$ac_ext <<_ACEOF 8062/* end confdefs.h. */ 8063#include <ac_nonexistent.h> 8064_ACEOF 8065if { (ac_try="$ac_cpp conftest.$ac_ext" 8066case "(($ac_try" in 8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8068 *) ac_try_echo=$ac_try;; 8069esac 8070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8071$as_echo "$ac_try_echo") >&5 8072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8073 ac_status=$? 8074 grep -v '^ *+' conftest.er1 >conftest.err 8075 rm -f conftest.er1 8076 cat conftest.err >&5 8077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8078 (exit $ac_status); } >/dev/null && { 8079 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8080 test ! -s conftest.err 8081 }; then 8082 # Broken: success on invalid input. 8083continue 8084else 8085 $as_echo "$as_me: failed program was:" >&5 8086sed 's/^/| /' conftest.$ac_ext >&5 8087 8088 # Passes both tests. 8089ac_preproc_ok=: 8090break 8091fi 8092 8093rm -f conftest.err conftest.$ac_ext 8094 8095done 8096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8097rm -f conftest.err conftest.$ac_ext 8098if $ac_preproc_ok; then 8099 break 8100fi 8101 8102 done 8103 ac_cv_prog_CXXCPP=$CXXCPP 8104 8105fi 8106 CXXCPP=$ac_cv_prog_CXXCPP 8107else 8108 ac_cv_prog_CXXCPP=$CXXCPP 8109fi 8110{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 8111$as_echo "$CXXCPP" >&6; } 8112ac_preproc_ok=false 8113for ac_cxx_preproc_warn_flag in '' yes 8114do 8115 # Use a header file that comes with gcc, so configuring glibc 8116 # with a fresh cross-compiler works. 8117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8118 # <limits.h> exists even on freestanding compilers. 8119 # On the NeXT, cc -E runs the code through the compiler's parser, 8120 # not just through cpp. "Syntax error" is here to catch this case. 8121 cat >conftest.$ac_ext <<_ACEOF 8122/* confdefs.h. */ 8123_ACEOF 8124cat confdefs.h >>conftest.$ac_ext 8125cat >>conftest.$ac_ext <<_ACEOF 8126/* end confdefs.h. */ 8127#ifdef __STDC__ 8128# include <limits.h> 8129#else 8130# include <assert.h> 8131#endif 8132 Syntax error 8133_ACEOF 8134if { (ac_try="$ac_cpp conftest.$ac_ext" 8135case "(($ac_try" in 8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8137 *) ac_try_echo=$ac_try;; 8138esac 8139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8140$as_echo "$ac_try_echo") >&5 8141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8142 ac_status=$? 8143 grep -v '^ *+' conftest.er1 >conftest.err 8144 rm -f conftest.er1 8145 cat conftest.err >&5 8146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8147 (exit $ac_status); } >/dev/null && { 8148 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8149 test ! -s conftest.err 8150 }; then 8151 : 8152else 8153 $as_echo "$as_me: failed program was:" >&5 8154sed 's/^/| /' conftest.$ac_ext >&5 8155 8156 # Broken: fails on valid input. 8157continue 8158fi 8159 8160rm -f conftest.err conftest.$ac_ext 8161 8162 # OK, works on sane cases. Now check whether nonexistent headers 8163 # can be detected and how. 8164 cat >conftest.$ac_ext <<_ACEOF 8165/* confdefs.h. */ 8166_ACEOF 8167cat confdefs.h >>conftest.$ac_ext 8168cat >>conftest.$ac_ext <<_ACEOF 8169/* end confdefs.h. */ 8170#include <ac_nonexistent.h> 8171_ACEOF 8172if { (ac_try="$ac_cpp conftest.$ac_ext" 8173case "(($ac_try" in 8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8175 *) ac_try_echo=$ac_try;; 8176esac 8177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8178$as_echo "$ac_try_echo") >&5 8179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8180 ac_status=$? 8181 grep -v '^ *+' conftest.er1 >conftest.err 8182 rm -f conftest.er1 8183 cat conftest.err >&5 8184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8185 (exit $ac_status); } >/dev/null && { 8186 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8187 test ! -s conftest.err 8188 }; then 8189 # Broken: success on invalid input. 8190continue 8191else 8192 $as_echo "$as_me: failed program was:" >&5 8193sed 's/^/| /' conftest.$ac_ext >&5 8194 8195 # Passes both tests. 8196ac_preproc_ok=: 8197break 8198fi 8199 8200rm -f conftest.err conftest.$ac_ext 8201 8202done 8203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8204rm -f conftest.err conftest.$ac_ext 8205if $ac_preproc_ok; then 8206 : 8207else 8208 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 8209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8210_lt_caught_CXX_error=yes; } 8211fi 8212 8213ac_ext=c 8214ac_cpp='$CPP $CPPFLAGS' 8215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8217ac_compiler_gnu=$ac_cv_c_compiler_gnu 8218 8219else 8220 _lt_caught_CXX_error=yes 8221fi 8222 8223 8224 8225 8226 8227# Set options 8228 8229 8230 8231 enable_dlopen=no 8232 8233 8234 enable_win32_dll=no 8235 8236 8237 # Check whether --enable-shared was given. 8238if test "${enable_shared+set}" = set; then 8239 enableval=$enable_shared; p=${PACKAGE-default} 8240 case $enableval in 8241 yes) enable_shared=yes ;; 8242 no) enable_shared=no ;; 8243 *) 8244 enable_shared=no 8245 # Look at the argument we got. We use all the common list separators. 8246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8247 for pkg in $enableval; do 8248 IFS="$lt_save_ifs" 8249 if test "X$pkg" = "X$p"; then 8250 enable_shared=yes 8251 fi 8252 done 8253 IFS="$lt_save_ifs" 8254 ;; 8255 esac 8256else 8257 enable_shared=yes 8258fi 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 # Check whether --enable-static was given. 8269if test "${enable_static+set}" = set; then 8270 enableval=$enable_static; p=${PACKAGE-default} 8271 case $enableval in 8272 yes) enable_static=yes ;; 8273 no) enable_static=no ;; 8274 *) 8275 enable_static=no 8276 # Look at the argument we got. We use all the common list separators. 8277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8278 for pkg in $enableval; do 8279 IFS="$lt_save_ifs" 8280 if test "X$pkg" = "X$p"; then 8281 enable_static=yes 8282 fi 8283 done 8284 IFS="$lt_save_ifs" 8285 ;; 8286 esac 8287else 8288 enable_static=yes 8289fi 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300# Check whether --with-pic was given. 8301if test "${with_pic+set}" = set; then 8302 withval=$with_pic; pic_mode="$withval" 8303else 8304 pic_mode=default 8305fi 8306 8307 8308test -z "$pic_mode" && pic_mode=default 8309 8310 8311 8312 8313 8314 8315 8316 # Check whether --enable-fast-install was given. 8317if test "${enable_fast_install+set}" = set; then 8318 enableval=$enable_fast_install; p=${PACKAGE-default} 8319 case $enableval in 8320 yes) enable_fast_install=yes ;; 8321 no) enable_fast_install=no ;; 8322 *) 8323 enable_fast_install=no 8324 # Look at the argument we got. We use all the common list separators. 8325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8326 for pkg in $enableval; do 8327 IFS="$lt_save_ifs" 8328 if test "X$pkg" = "X$p"; then 8329 enable_fast_install=yes 8330 fi 8331 done 8332 IFS="$lt_save_ifs" 8333 ;; 8334 esac 8335else 8336 enable_fast_install=yes 8337fi 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349# This can be used to rebuild libtool when needed 8350LIBTOOL_DEPS="$ltmain" 8351 8352# Always use our own libtool. 8353LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379test -z "$LN_S" && LN_S="ln -s" 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394if test -n "${ZSH_VERSION+set}" ; then 8395 setopt NO_GLOB_SUBST 8396fi 8397 8398{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 8399$as_echo_n "checking for objdir... " >&6; } 8400if test "${lt_cv_objdir+set}" = set; then 8401 $as_echo_n "(cached) " >&6 8402else 8403 rm -f .libs 2>/dev/null 8404mkdir .libs 2>/dev/null 8405if test -d .libs; then 8406 lt_cv_objdir=.libs 8407else 8408 # MS-DOS does not allow filenames that begin with a dot. 8409 lt_cv_objdir=_libs 8410fi 8411rmdir .libs 2>/dev/null 8412fi 8413{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8414$as_echo "$lt_cv_objdir" >&6; } 8415objdir=$lt_cv_objdir 8416 8417 8418 8419 8420 8421cat >>confdefs.h <<_ACEOF 8422#define LT_OBJDIR "$lt_cv_objdir/" 8423_ACEOF 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441case $host_os in 8442aix3*) 8443 # AIX sometimes has problems with the GCC collect2 program. For some 8444 # reason, if we set the COLLECT_NAMES environment variable, the problems 8445 # vanish in a puff of smoke. 8446 if test "X${COLLECT_NAMES+set}" != Xset; then 8447 COLLECT_NAMES= 8448 export COLLECT_NAMES 8449 fi 8450 ;; 8451esac 8452 8453# Sed substitution that helps us do robust quoting. It backslashifies 8454# metacharacters that are still active within double-quoted strings. 8455sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8456 8457# Same as above, but do not quote variable references. 8458double_quote_subst='s/\(["`\\]\)/\\\1/g' 8459 8460# Sed substitution to delay expansion of an escaped shell variable in a 8461# double_quote_subst'ed string. 8462delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8463 8464# Sed substitution to delay expansion of an escaped single quote. 8465delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8466 8467# Sed substitution to avoid accidental globbing in evaled expressions 8468no_glob_subst='s/\*/\\\*/g' 8469 8470# Global variables: 8471ofile=libtool 8472can_build_shared=yes 8473 8474# All known linkers require a `.a' archive for static linking (except MSVC, 8475# which needs '.lib'). 8476libext=a 8477 8478with_gnu_ld="$lt_cv_prog_gnu_ld" 8479 8480old_CC="$CC" 8481old_CFLAGS="$CFLAGS" 8482 8483# Set sane defaults for various variables 8484test -z "$CC" && CC=cc 8485test -z "$LTCC" && LTCC=$CC 8486test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8487test -z "$LD" && LD=ld 8488test -z "$ac_objext" && ac_objext=o 8489 8490for cc_temp in $compiler""; do 8491 case $cc_temp in 8492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8494 \-*) ;; 8495 *) break;; 8496 esac 8497done 8498cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8499 8500 8501# Only perform the check for file, if the check method requires it 8502test -z "$MAGIC_CMD" && MAGIC_CMD=file 8503case $deplibs_check_method in 8504file_magic*) 8505 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8506 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8507$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8508if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8509 $as_echo_n "(cached) " >&6 8510else 8511 case $MAGIC_CMD in 8512[\\/*] | ?:[\\/]*) 8513 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8514 ;; 8515*) 8516 lt_save_MAGIC_CMD="$MAGIC_CMD" 8517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8518 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8519 for ac_dir in $ac_dummy; do 8520 IFS="$lt_save_ifs" 8521 test -z "$ac_dir" && ac_dir=. 8522 if test -f $ac_dir/${ac_tool_prefix}file; then 8523 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8524 if test -n "$file_magic_test_file"; then 8525 case $deplibs_check_method in 8526 "file_magic "*) 8527 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8530 $EGREP "$file_magic_regex" > /dev/null; then 8531 : 8532 else 8533 cat <<_LT_EOF 1>&2 8534 8535*** Warning: the command libtool uses to detect shared libraries, 8536*** $file_magic_cmd, produces output that libtool cannot recognize. 8537*** The result is that libtool may fail to recognize shared libraries 8538*** as such. This will affect the creation of libtool libraries that 8539*** depend on shared libraries, but programs linked with such libtool 8540*** libraries will work regardless of this problem. Nevertheless, you 8541*** may want to report the problem to your system manager and/or to 8542*** bug-libtool@gnu.org 8543 8544_LT_EOF 8545 fi ;; 8546 esac 8547 fi 8548 break 8549 fi 8550 done 8551 IFS="$lt_save_ifs" 8552 MAGIC_CMD="$lt_save_MAGIC_CMD" 8553 ;; 8554esac 8555fi 8556 8557MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8558if test -n "$MAGIC_CMD"; then 8559 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8560$as_echo "$MAGIC_CMD" >&6; } 8561else 8562 { $as_echo "$as_me:$LINENO: result: no" >&5 8563$as_echo "no" >&6; } 8564fi 8565 8566 8567 8568 8569 8570if test -z "$lt_cv_path_MAGIC_CMD"; then 8571 if test -n "$ac_tool_prefix"; then 8572 { $as_echo "$as_me:$LINENO: checking for file" >&5 8573$as_echo_n "checking for file... " >&6; } 8574if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8575 $as_echo_n "(cached) " >&6 8576else 8577 case $MAGIC_CMD in 8578[\\/*] | ?:[\\/]*) 8579 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8580 ;; 8581*) 8582 lt_save_MAGIC_CMD="$MAGIC_CMD" 8583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8584 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8585 for ac_dir in $ac_dummy; do 8586 IFS="$lt_save_ifs" 8587 test -z "$ac_dir" && ac_dir=. 8588 if test -f $ac_dir/file; then 8589 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8590 if test -n "$file_magic_test_file"; then 8591 case $deplibs_check_method in 8592 "file_magic "*) 8593 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8595 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8596 $EGREP "$file_magic_regex" > /dev/null; then 8597 : 8598 else 8599 cat <<_LT_EOF 1>&2 8600 8601*** Warning: the command libtool uses to detect shared libraries, 8602*** $file_magic_cmd, produces output that libtool cannot recognize. 8603*** The result is that libtool may fail to recognize shared libraries 8604*** as such. This will affect the creation of libtool libraries that 8605*** depend on shared libraries, but programs linked with such libtool 8606*** libraries will work regardless of this problem. Nevertheless, you 8607*** may want to report the problem to your system manager and/or to 8608*** bug-libtool@gnu.org 8609 8610_LT_EOF 8611 fi ;; 8612 esac 8613 fi 8614 break 8615 fi 8616 done 8617 IFS="$lt_save_ifs" 8618 MAGIC_CMD="$lt_save_MAGIC_CMD" 8619 ;; 8620esac 8621fi 8622 8623MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8624if test -n "$MAGIC_CMD"; then 8625 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8626$as_echo "$MAGIC_CMD" >&6; } 8627else 8628 { $as_echo "$as_me:$LINENO: result: no" >&5 8629$as_echo "no" >&6; } 8630fi 8631 8632 8633 else 8634 MAGIC_CMD=: 8635 fi 8636fi 8637 8638 fi 8639 ;; 8640esac 8641 8642# Use C for the default configuration in the libtool script 8643 8644lt_save_CC="$CC" 8645ac_ext=c 8646ac_cpp='$CPP $CPPFLAGS' 8647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8649ac_compiler_gnu=$ac_cv_c_compiler_gnu 8650 8651 8652# Source file extension for C test sources. 8653ac_ext=c 8654 8655# Object file extension for compiled C test sources. 8656objext=o 8657objext=$objext 8658 8659# Code to be used in simple compile tests 8660lt_simple_compile_test_code="int some_variable = 0;" 8661 8662# Code to be used in simple link tests 8663lt_simple_link_test_code='int main(){return(0);}' 8664 8665 8666 8667 8668 8669 8670 8671# If no C compiler was specified, use CC. 8672LTCC=${LTCC-"$CC"} 8673 8674# If no C compiler flags were specified, use CFLAGS. 8675LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8676 8677# Allow CC to be a program name with arguments. 8678compiler=$CC 8679 8680# Save the default compiler, since it gets overwritten when the other 8681# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8682compiler_DEFAULT=$CC 8683 8684# save warnings/boilerplate of simple test code 8685ac_outfile=conftest.$ac_objext 8686echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8687eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8688_lt_compiler_boilerplate=`cat conftest.err` 8689$RM conftest* 8690 8691ac_outfile=conftest.$ac_objext 8692echo "$lt_simple_link_test_code" >conftest.$ac_ext 8693eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8694_lt_linker_boilerplate=`cat conftest.err` 8695$RM -r conftest* 8696 8697 8698if test -n "$compiler"; then 8699 8700lt_prog_compiler_no_builtin_flag= 8701 8702if test "$GCC" = yes; then 8703 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8704 8705 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8706$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8707if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8708 $as_echo_n "(cached) " >&6 8709else 8710 lt_cv_prog_compiler_rtti_exceptions=no 8711 ac_outfile=conftest.$ac_objext 8712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8713 lt_compiler_flag="-fno-rtti -fno-exceptions" 8714 # Insert the option either (1) after the last *FLAGS variable, or 8715 # (2) before a word containing "conftest.", or (3) at the end. 8716 # Note that $ac_compile itself does not contain backslashes and begins 8717 # with a dollar sign (not a hyphen), so the echo should work correctly. 8718 # The option is referenced via a variable to avoid confusing sed. 8719 lt_compile=`echo "$ac_compile" | $SED \ 8720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8722 -e 's:$: $lt_compiler_flag:'` 8723 (eval echo "\"\$as_me:8723: $lt_compile\"" >&5) 8724 (eval "$lt_compile" 2>conftest.err) 8725 ac_status=$? 8726 cat conftest.err >&5 8727 echo "$as_me:8727: \$? = $ac_status" >&5 8728 if (exit $ac_status) && test -s "$ac_outfile"; then 8729 # The compiler can only warn and ignore the option if not recognized 8730 # So say no if there are warnings other than the usual output. 8731 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8733 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8734 lt_cv_prog_compiler_rtti_exceptions=yes 8735 fi 8736 fi 8737 $RM conftest* 8738 8739fi 8740{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8741$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8742 8743if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8744 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8745else 8746 : 8747fi 8748 8749fi 8750 8751 8752 8753 8754 8755 8756 lt_prog_compiler_wl= 8757lt_prog_compiler_pic= 8758lt_prog_compiler_static= 8759 8760{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8761$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8762 8763 if test "$GCC" = yes; then 8764 lt_prog_compiler_wl='-Wl,' 8765 lt_prog_compiler_static='-static' 8766 8767 case $host_os in 8768 aix*) 8769 # All AIX code is PIC. 8770 if test "$host_cpu" = ia64; then 8771 # AIX 5 now supports IA64 processor 8772 lt_prog_compiler_static='-Bstatic' 8773 fi 8774 ;; 8775 8776 amigaos*) 8777 case $host_cpu in 8778 powerpc) 8779 # see comment about AmigaOS4 .so support 8780 lt_prog_compiler_pic='-fPIC' 8781 ;; 8782 m68k) 8783 # FIXME: we need at least 68020 code to build shared libraries, but 8784 # adding the `-m68020' flag to GCC prevents building anything better, 8785 # like `-m68040'. 8786 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8787 ;; 8788 esac 8789 ;; 8790 8791 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8792 # PIC is the default for these OSes. 8793 ;; 8794 8795 mingw* | cygwin* | pw32* | os2* | cegcc*) 8796 # This hack is so that the source file can tell whether it is being 8797 # built for inclusion in a dll (and should export symbols for example). 8798 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8799 # (--disable-auto-import) libraries 8800 lt_prog_compiler_pic='-DDLL_EXPORT' 8801 ;; 8802 8803 darwin* | rhapsody*) 8804 # PIC is the default on this platform 8805 # Common symbols not allowed in MH_DYLIB files 8806 lt_prog_compiler_pic='-fno-common' 8807 ;; 8808 8809 hpux*) 8810 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8811 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8812 # sets the default TLS model and affects inlining. 8813 case $host_cpu in 8814 hppa*64*) 8815 # +Z the default 8816 ;; 8817 *) 8818 lt_prog_compiler_pic='-fPIC' 8819 ;; 8820 esac 8821 ;; 8822 8823 interix[3-9]*) 8824 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8825 # Instead, we relocate shared libraries at runtime. 8826 ;; 8827 8828 msdosdjgpp*) 8829 # Just because we use GCC doesn't mean we suddenly get shared libraries 8830 # on systems that don't support them. 8831 lt_prog_compiler_can_build_shared=no 8832 enable_shared=no 8833 ;; 8834 8835 *nto* | *qnx*) 8836 # QNX uses GNU C++, but need to define -shared option too, otherwise 8837 # it will coredump. 8838 lt_prog_compiler_pic='-fPIC -shared' 8839 ;; 8840 8841 sysv4*MP*) 8842 if test -d /usr/nec; then 8843 lt_prog_compiler_pic=-Kconform_pic 8844 fi 8845 ;; 8846 8847 *) 8848 lt_prog_compiler_pic='-fPIC' 8849 ;; 8850 esac 8851 else 8852 # PORTME Check for flag to pass linker flags through the system compiler. 8853 case $host_os in 8854 aix*) 8855 lt_prog_compiler_wl='-Wl,' 8856 if test "$host_cpu" = ia64; then 8857 # AIX 5 now supports IA64 processor 8858 lt_prog_compiler_static='-Bstatic' 8859 else 8860 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8861 fi 8862 ;; 8863 8864 mingw* | cygwin* | pw32* | os2* | cegcc*) 8865 # This hack is so that the source file can tell whether it is being 8866 # built for inclusion in a dll (and should export symbols for example). 8867 lt_prog_compiler_pic='-DDLL_EXPORT' 8868 ;; 8869 8870 hpux9* | hpux10* | hpux11*) 8871 lt_prog_compiler_wl='-Wl,' 8872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8873 # not for PA HP-UX. 8874 case $host_cpu in 8875 hppa*64*|ia64*) 8876 # +Z the default 8877 ;; 8878 *) 8879 lt_prog_compiler_pic='+Z' 8880 ;; 8881 esac 8882 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8883 lt_prog_compiler_static='${wl}-a ${wl}archive' 8884 ;; 8885 8886 irix5* | irix6* | nonstopux*) 8887 lt_prog_compiler_wl='-Wl,' 8888 # PIC (with -KPIC) is the default. 8889 lt_prog_compiler_static='-non_shared' 8890 ;; 8891 8892 linux* | k*bsd*-gnu) 8893 case $cc_basename in 8894 # old Intel for x86_64 which still supported -KPIC. 8895 ecc*) 8896 lt_prog_compiler_wl='-Wl,' 8897 lt_prog_compiler_pic='-KPIC' 8898 lt_prog_compiler_static='-static' 8899 ;; 8900 # icc used to be incompatible with GCC. 8901 # ICC 10 doesn't accept -KPIC any more. 8902 icc* | ifort*) 8903 lt_prog_compiler_wl='-Wl,' 8904 lt_prog_compiler_pic='-fPIC' 8905 lt_prog_compiler_static='-static' 8906 ;; 8907 # Lahey Fortran 8.1. 8908 lf95*) 8909 lt_prog_compiler_wl='-Wl,' 8910 lt_prog_compiler_pic='--shared' 8911 lt_prog_compiler_static='--static' 8912 ;; 8913 pgcc* | pgf77* | pgf90* | pgf95*) 8914 # Portland Group compilers (*not* the Pentium gcc compiler, 8915 # which looks to be a dead project) 8916 lt_prog_compiler_wl='-Wl,' 8917 lt_prog_compiler_pic='-fpic' 8918 lt_prog_compiler_static='-Bstatic' 8919 ;; 8920 ccc*) 8921 lt_prog_compiler_wl='-Wl,' 8922 # All Alpha code is PIC. 8923 lt_prog_compiler_static='-non_shared' 8924 ;; 8925 xl*) 8926 # IBM XL C 8.0/Fortran 10.1 on PPC 8927 lt_prog_compiler_wl='-Wl,' 8928 lt_prog_compiler_pic='-qpic' 8929 lt_prog_compiler_static='-qstaticlink' 8930 ;; 8931 *) 8932 case `$CC -V 2>&1 | sed 5q` in 8933 *Sun\ C*) 8934 # Sun C 5.9 8935 lt_prog_compiler_pic='-KPIC' 8936 lt_prog_compiler_static='-Bstatic' 8937 lt_prog_compiler_wl='-Wl,' 8938 ;; 8939 *Sun\ F*) 8940 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8941 lt_prog_compiler_pic='-KPIC' 8942 lt_prog_compiler_static='-Bstatic' 8943 lt_prog_compiler_wl='' 8944 ;; 8945 esac 8946 ;; 8947 esac 8948 ;; 8949 8950 newsos6) 8951 lt_prog_compiler_pic='-KPIC' 8952 lt_prog_compiler_static='-Bstatic' 8953 ;; 8954 8955 *nto* | *qnx*) 8956 # QNX uses GNU C++, but need to define -shared option too, otherwise 8957 # it will coredump. 8958 lt_prog_compiler_pic='-fPIC -shared' 8959 ;; 8960 8961 osf3* | osf4* | osf5*) 8962 lt_prog_compiler_wl='-Wl,' 8963 # All OSF/1 code is PIC. 8964 lt_prog_compiler_static='-non_shared' 8965 ;; 8966 8967 rdos*) 8968 lt_prog_compiler_static='-non_shared' 8969 ;; 8970 8971 solaris*) 8972 lt_prog_compiler_pic='-KPIC' 8973 lt_prog_compiler_static='-Bstatic' 8974 case $cc_basename in 8975 f77* | f90* | f95*) 8976 lt_prog_compiler_wl='-Qoption ld ';; 8977 *) 8978 lt_prog_compiler_wl='-Wl,';; 8979 esac 8980 ;; 8981 8982 sunos4*) 8983 lt_prog_compiler_wl='-Qoption ld ' 8984 lt_prog_compiler_pic='-PIC' 8985 lt_prog_compiler_static='-Bstatic' 8986 ;; 8987 8988 sysv4 | sysv4.2uw2* | sysv4.3*) 8989 lt_prog_compiler_wl='-Wl,' 8990 lt_prog_compiler_pic='-KPIC' 8991 lt_prog_compiler_static='-Bstatic' 8992 ;; 8993 8994 sysv4*MP*) 8995 if test -d /usr/nec ;then 8996 lt_prog_compiler_pic='-Kconform_pic' 8997 lt_prog_compiler_static='-Bstatic' 8998 fi 8999 ;; 9000 9001 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9002 lt_prog_compiler_wl='-Wl,' 9003 lt_prog_compiler_pic='-KPIC' 9004 lt_prog_compiler_static='-Bstatic' 9005 ;; 9006 9007 unicos*) 9008 lt_prog_compiler_wl='-Wl,' 9009 lt_prog_compiler_can_build_shared=no 9010 ;; 9011 9012 uts4*) 9013 lt_prog_compiler_pic='-pic' 9014 lt_prog_compiler_static='-Bstatic' 9015 ;; 9016 9017 *) 9018 lt_prog_compiler_can_build_shared=no 9019 ;; 9020 esac 9021 fi 9022 9023case $host_os in 9024 # For platforms which do not support PIC, -DPIC is meaningless: 9025 *djgpp*) 9026 lt_prog_compiler_pic= 9027 ;; 9028 *) 9029 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9030 ;; 9031esac 9032{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9033$as_echo "$lt_prog_compiler_pic" >&6; } 9034 9035 9036 9037 9038 9039 9040# 9041# Check to make sure the PIC flag actually works. 9042# 9043if test -n "$lt_prog_compiler_pic"; then 9044 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9045$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9046if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 9047 $as_echo_n "(cached) " >&6 9048else 9049 lt_cv_prog_compiler_pic_works=no 9050 ac_outfile=conftest.$ac_objext 9051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9052 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9053 # Insert the option either (1) after the last *FLAGS variable, or 9054 # (2) before a word containing "conftest.", or (3) at the end. 9055 # Note that $ac_compile itself does not contain backslashes and begins 9056 # with a dollar sign (not a hyphen), so the echo should work correctly. 9057 # The option is referenced via a variable to avoid confusing sed. 9058 lt_compile=`echo "$ac_compile" | $SED \ 9059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9061 -e 's:$: $lt_compiler_flag:'` 9062 (eval echo "\"\$as_me:9062: $lt_compile\"" >&5) 9063 (eval "$lt_compile" 2>conftest.err) 9064 ac_status=$? 9065 cat conftest.err >&5 9066 echo "$as_me:9066: \$? = $ac_status" >&5 9067 if (exit $ac_status) && test -s "$ac_outfile"; then 9068 # The compiler can only warn and ignore the option if not recognized 9069 # So say no if there are warnings other than the usual output. 9070 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9072 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9073 lt_cv_prog_compiler_pic_works=yes 9074 fi 9075 fi 9076 $RM conftest* 9077 9078fi 9079{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 9080$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9081 9082if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9083 case $lt_prog_compiler_pic in 9084 "" | " "*) ;; 9085 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9086 esac 9087else 9088 lt_prog_compiler_pic= 9089 lt_prog_compiler_can_build_shared=no 9090fi 9091 9092fi 9093 9094 9095 9096 9097 9098 9099# 9100# Check to make sure the static flag actually works. 9101# 9102wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9103{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9104$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9105if test "${lt_cv_prog_compiler_static_works+set}" = set; then 9106 $as_echo_n "(cached) " >&6 9107else 9108 lt_cv_prog_compiler_static_works=no 9109 save_LDFLAGS="$LDFLAGS" 9110 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9111 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9113 # The linker can only warn and ignore the option if not recognized 9114 # So say no if there are warnings 9115 if test -s conftest.err; then 9116 # Append any errors to the config.log. 9117 cat conftest.err 1>&5 9118 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9120 if diff conftest.exp conftest.er2 >/dev/null; then 9121 lt_cv_prog_compiler_static_works=yes 9122 fi 9123 else 9124 lt_cv_prog_compiler_static_works=yes 9125 fi 9126 fi 9127 $RM -r conftest* 9128 LDFLAGS="$save_LDFLAGS" 9129 9130fi 9131{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 9132$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9133 9134if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9135 : 9136else 9137 lt_prog_compiler_static= 9138fi 9139 9140 9141 9142 9143 9144 9145 9146 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9147$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9148if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9149 $as_echo_n "(cached) " >&6 9150else 9151 lt_cv_prog_compiler_c_o=no 9152 $RM -r conftest 2>/dev/null 9153 mkdir conftest 9154 cd conftest 9155 mkdir out 9156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9157 9158 lt_compiler_flag="-o out/conftest2.$ac_objext" 9159 # Insert the option either (1) after the last *FLAGS variable, or 9160 # (2) before a word containing "conftest.", or (3) at the end. 9161 # Note that $ac_compile itself does not contain backslashes and begins 9162 # with a dollar sign (not a hyphen), so the echo should work correctly. 9163 lt_compile=`echo "$ac_compile" | $SED \ 9164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9166 -e 's:$: $lt_compiler_flag:'` 9167 (eval echo "\"\$as_me:9167: $lt_compile\"" >&5) 9168 (eval "$lt_compile" 2>out/conftest.err) 9169 ac_status=$? 9170 cat out/conftest.err >&5 9171 echo "$as_me:9171: \$? = $ac_status" >&5 9172 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9173 then 9174 # The compiler can only warn and ignore the option if not recognized 9175 # So say no if there are warnings 9176 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9179 lt_cv_prog_compiler_c_o=yes 9180 fi 9181 fi 9182 chmod u+w . 2>&5 9183 $RM conftest* 9184 # SGI C++ compiler will create directory out/ii_files/ for 9185 # template instantiation 9186 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9187 $RM out/* && rmdir out 9188 cd .. 9189 $RM -r conftest 9190 $RM conftest* 9191 9192fi 9193{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9194$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9195 9196 9197 9198 9199 9200 9201 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9202$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9203if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9204 $as_echo_n "(cached) " >&6 9205else 9206 lt_cv_prog_compiler_c_o=no 9207 $RM -r conftest 2>/dev/null 9208 mkdir conftest 9209 cd conftest 9210 mkdir out 9211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9212 9213 lt_compiler_flag="-o out/conftest2.$ac_objext" 9214 # Insert the option either (1) after the last *FLAGS variable, or 9215 # (2) before a word containing "conftest.", or (3) at the end. 9216 # Note that $ac_compile itself does not contain backslashes and begins 9217 # with a dollar sign (not a hyphen), so the echo should work correctly. 9218 lt_compile=`echo "$ac_compile" | $SED \ 9219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9221 -e 's:$: $lt_compiler_flag:'` 9222 (eval echo "\"\$as_me:9222: $lt_compile\"" >&5) 9223 (eval "$lt_compile" 2>out/conftest.err) 9224 ac_status=$? 9225 cat out/conftest.err >&5 9226 echo "$as_me:9226: \$? = $ac_status" >&5 9227 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9228 then 9229 # The compiler can only warn and ignore the option if not recognized 9230 # So say no if there are warnings 9231 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9234 lt_cv_prog_compiler_c_o=yes 9235 fi 9236 fi 9237 chmod u+w . 2>&5 9238 $RM conftest* 9239 # SGI C++ compiler will create directory out/ii_files/ for 9240 # template instantiation 9241 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9242 $RM out/* && rmdir out 9243 cd .. 9244 $RM -r conftest 9245 $RM conftest* 9246 9247fi 9248{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9249$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9250 9251 9252 9253 9254hard_links="nottested" 9255if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9256 # do not overwrite the value of need_locks provided by the user 9257 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9258$as_echo_n "checking if we can lock with hard links... " >&6; } 9259 hard_links=yes 9260 $RM conftest* 9261 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9262 touch conftest.a 9263 ln conftest.a conftest.b 2>&5 || hard_links=no 9264 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9265 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 9266$as_echo "$hard_links" >&6; } 9267 if test "$hard_links" = no; then 9268 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9269$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9270 need_locks=warn 9271 fi 9272else 9273 need_locks=no 9274fi 9275 9276 9277 9278 9279 9280 9281 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9282$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9283 9284 runpath_var= 9285 allow_undefined_flag= 9286 always_export_symbols=no 9287 archive_cmds= 9288 archive_expsym_cmds= 9289 compiler_needs_object=no 9290 enable_shared_with_static_runtimes=no 9291 export_dynamic_flag_spec= 9292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9293 hardcode_automatic=no 9294 hardcode_direct=no 9295 hardcode_direct_absolute=no 9296 hardcode_libdir_flag_spec= 9297 hardcode_libdir_flag_spec_ld= 9298 hardcode_libdir_separator= 9299 hardcode_minus_L=no 9300 hardcode_shlibpath_var=unsupported 9301 inherit_rpath=no 9302 link_all_deplibs=unknown 9303 module_cmds= 9304 module_expsym_cmds= 9305 old_archive_from_new_cmds= 9306 old_archive_from_expsyms_cmds= 9307 thread_safe_flag_spec= 9308 whole_archive_flag_spec= 9309 # include_expsyms should be a list of space-separated symbols to be *always* 9310 # included in the symbol list 9311 include_expsyms= 9312 # exclude_expsyms can be an extended regexp of symbols to exclude 9313 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9314 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9315 # as well as any symbol that contains `d'. 9316 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9317 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9318 # platforms (ab)use it in PIC code, but their linkers get confused if 9319 # the symbol is explicitly referenced. Since portable code cannot 9320 # rely on this symbol name, it's probably fine to never include it in 9321 # preloaded symbol tables. 9322 # Exclude shared library initialization/finalization symbols. 9323 extract_expsyms_cmds= 9324 9325 case $host_os in 9326 cygwin* | mingw* | pw32* | cegcc*) 9327 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9328 # When not using gcc, we currently assume that we are using 9329 # Microsoft Visual C++. 9330 if test "$GCC" != yes; then 9331 with_gnu_ld=no 9332 fi 9333 ;; 9334 interix*) 9335 # we just hope/assume this is gcc and not c89 (= MSVC++) 9336 with_gnu_ld=yes 9337 ;; 9338 openbsd*) 9339 with_gnu_ld=no 9340 ;; 9341 esac 9342 9343 ld_shlibs=yes 9344 if test "$with_gnu_ld" = yes; then 9345 # If archive_cmds runs LD, not CC, wlarc should be empty 9346 wlarc='${wl}' 9347 9348 # Set some defaults for GNU ld with shared library support. These 9349 # are reset later if shared libraries are not supported. Putting them 9350 # here allows them to be overridden if necessary. 9351 runpath_var=LD_RUN_PATH 9352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9353 export_dynamic_flag_spec='${wl}--export-dynamic' 9354 # ancient GNU ld didn't support --whole-archive et. al. 9355 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9356 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9357 else 9358 whole_archive_flag_spec= 9359 fi 9360 supports_anon_versioning=no 9361 case `$LD -v 2>&1` in 9362 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9363 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9364 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9365 *\ 2.11.*) ;; # other 2.11 versions 9366 *) supports_anon_versioning=yes ;; 9367 esac 9368 9369 # See if GNU ld supports shared libraries. 9370 case $host_os in 9371 aix[3-9]*) 9372 # On AIX/PPC, the GNU linker is very broken 9373 if test "$host_cpu" != ia64; then 9374 ld_shlibs=no 9375 cat <<_LT_EOF 1>&2 9376 9377*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9378*** to be unable to reliably create shared libraries on AIX. 9379*** Therefore, libtool is disabling shared libraries support. If you 9380*** really care for shared libraries, you may want to modify your PATH 9381*** so that a non-GNU linker is found, and then restart. 9382 9383_LT_EOF 9384 fi 9385 ;; 9386 9387 amigaos*) 9388 case $host_cpu in 9389 powerpc) 9390 # see comment about AmigaOS4 .so support 9391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9392 archive_expsym_cmds='' 9393 ;; 9394 m68k) 9395 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)' 9396 hardcode_libdir_flag_spec='-L$libdir' 9397 hardcode_minus_L=yes 9398 ;; 9399 esac 9400 ;; 9401 9402 beos*) 9403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9404 allow_undefined_flag=unsupported 9405 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9406 # support --undefined. This deserves some investigation. FIXME 9407 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9408 else 9409 ld_shlibs=no 9410 fi 9411 ;; 9412 9413 cygwin* | mingw* | pw32* | cegcc*) 9414 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9415 # as there is no search path for DLLs. 9416 hardcode_libdir_flag_spec='-L$libdir' 9417 allow_undefined_flag=unsupported 9418 always_export_symbols=no 9419 enable_shared_with_static_runtimes=yes 9420 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9421 9422 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9424 # If the export-symbols file already is a .def file (1st line 9425 # is EXPORTS), use it as is; otherwise, prepend... 9426 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9427 cp $export_symbols $output_objdir/$soname.def; 9428 else 9429 echo EXPORTS > $output_objdir/$soname.def; 9430 cat $export_symbols >> $output_objdir/$soname.def; 9431 fi~ 9432 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9433 else 9434 ld_shlibs=no 9435 fi 9436 ;; 9437 9438 interix[3-9]*) 9439 hardcode_direct=no 9440 hardcode_shlibpath_var=no 9441 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9442 export_dynamic_flag_spec='${wl}-E' 9443 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9444 # Instead, shared libraries are loaded at an image base (0x10000000 by 9445 # default) and relocated if they conflict, which is a slow very memory 9446 # consuming and fragmenting process. To avoid this, we pick a random, 9447 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9448 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9449 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9450 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' 9451 ;; 9452 9453 gnu* | linux* | tpf* | k*bsd*-gnu) 9454 tmp_diet=no 9455 if test "$host_os" = linux-dietlibc; then 9456 case $cc_basename in 9457 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9458 esac 9459 fi 9460 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9461 && test "$tmp_diet" = no 9462 then 9463 tmp_addflag= 9464 tmp_sharedflag='-shared' 9465 case $cc_basename,$host_cpu in 9466 pgcc*) # Portland Group C compiler 9467 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9468 tmp_addflag=' $pic_flag' 9469 ;; 9470 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9471 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9472 tmp_addflag=' $pic_flag -Mnomain' ;; 9473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9474 tmp_addflag=' -i_dynamic' ;; 9475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9476 tmp_addflag=' -i_dynamic -nofor_main' ;; 9477 ifc* | ifort*) # Intel Fortran compiler 9478 tmp_addflag=' -nofor_main' ;; 9479 lf95*) # Lahey Fortran 8.1 9480 whole_archive_flag_spec= 9481 tmp_sharedflag='--shared' ;; 9482 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9483 tmp_sharedflag='-qmkshrobj' 9484 tmp_addflag= ;; 9485 esac 9486 case `$CC -V 2>&1 | sed 5q` in 9487 *Sun\ C*) # Sun C 5.9 9488 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9489 compiler_needs_object=yes 9490 tmp_sharedflag='-G' ;; 9491 *Sun\ F*) # Sun Fortran 8.3 9492 tmp_sharedflag='-G' ;; 9493 esac 9494 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9495 9496 if test "x$supports_anon_versioning" = xyes; then 9497 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9499 echo "local: *; };" >> $output_objdir/$libname.ver~ 9500 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9501 fi 9502 9503 case $cc_basename in 9504 xlf*) 9505 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9506 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9507 hardcode_libdir_flag_spec= 9508 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9509 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9510 if test "x$supports_anon_versioning" = xyes; then 9511 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9513 echo "local: *; };" >> $output_objdir/$libname.ver~ 9514 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9515 fi 9516 ;; 9517 esac 9518 else 9519 ld_shlibs=no 9520 fi 9521 ;; 9522 9523 netbsd*) 9524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9525 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9526 wlarc= 9527 else 9528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9530 fi 9531 ;; 9532 9533 solaris*) 9534 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9535 ld_shlibs=no 9536 cat <<_LT_EOF 1>&2 9537 9538*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9539*** create shared libraries on Solaris systems. Therefore, libtool 9540*** is disabling shared libraries support. We urge you to upgrade GNU 9541*** binutils to release 2.9.1 or newer. Another option is to modify 9542*** your PATH or compiler configuration so that the native linker is 9543*** used, and then restart. 9544 9545_LT_EOF 9546 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9549 else 9550 ld_shlibs=no 9551 fi 9552 ;; 9553 9554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9555 case `$LD -v 2>&1` in 9556 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9557 ld_shlibs=no 9558 cat <<_LT_EOF 1>&2 9559 9560*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9561*** reliably create shared libraries on SCO systems. Therefore, libtool 9562*** is disabling shared libraries support. We urge you to upgrade GNU 9563*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9564*** your PATH or compiler configuration so that the native linker is 9565*** used, and then restart. 9566 9567_LT_EOF 9568 ;; 9569 *) 9570 # For security reasons, it is highly recommended that you always 9571 # use absolute paths for naming shared libraries, and exclude the 9572 # DT_RUNPATH tag from executables and libraries. But doing so 9573 # requires that you compile everything twice, which is a pain. 9574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9578 else 9579 ld_shlibs=no 9580 fi 9581 ;; 9582 esac 9583 ;; 9584 9585 sunos4*) 9586 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9587 wlarc= 9588 hardcode_direct=yes 9589 hardcode_shlibpath_var=no 9590 ;; 9591 9592 *) 9593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9595 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9596 else 9597 ld_shlibs=no 9598 fi 9599 ;; 9600 esac 9601 9602 if test "$ld_shlibs" = no; then 9603 runpath_var= 9604 hardcode_libdir_flag_spec= 9605 export_dynamic_flag_spec= 9606 whole_archive_flag_spec= 9607 fi 9608 else 9609 # PORTME fill in a description of your system's linker (not GNU ld) 9610 case $host_os in 9611 aix3*) 9612 allow_undefined_flag=unsupported 9613 always_export_symbols=yes 9614 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' 9615 # Note: this linker hardcodes the directories in LIBPATH if there 9616 # are no directories specified by -L. 9617 hardcode_minus_L=yes 9618 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9619 # Neither direct hardcoding nor static linking is supported with a 9620 # broken collect2. 9621 hardcode_direct=unsupported 9622 fi 9623 ;; 9624 9625 aix[4-9]*) 9626 if test "$host_cpu" = ia64; then 9627 # On IA64, the linker does run time linking by default, so we don't 9628 # have to do anything special. 9629 aix_use_runtimelinking=no 9630 exp_sym_flag='-Bexport' 9631 no_entry_flag="" 9632 else 9633 # If we're using GNU nm, then we don't want the "-C" option. 9634 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9635 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9636 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9637 else 9638 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' 9639 fi 9640 aix_use_runtimelinking=no 9641 9642 # Test if we are trying to use run time linking or normal 9643 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9644 # need to do runtime linking. 9645 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9646 for ld_flag in $LDFLAGS; do 9647 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9648 aix_use_runtimelinking=yes 9649 break 9650 fi 9651 done 9652 ;; 9653 esac 9654 9655 exp_sym_flag='-bexport' 9656 no_entry_flag='-bnoentry' 9657 fi 9658 9659 # When large executables or shared objects are built, AIX ld can 9660 # have problems creating the table of contents. If linking a library 9661 # or program results in "error TOC overflow" add -mminimal-toc to 9662 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9663 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9664 9665 archive_cmds='' 9666 hardcode_direct=yes 9667 hardcode_direct_absolute=yes 9668 hardcode_libdir_separator=':' 9669 link_all_deplibs=yes 9670 file_list_spec='${wl}-f,' 9671 9672 if test "$GCC" = yes; then 9673 case $host_os in aix4.[012]|aix4.[012].*) 9674 # We only want to do this on AIX 4.2 and lower, the check 9675 # below for broken collect2 doesn't work under 4.3+ 9676 collect2name=`${CC} -print-prog-name=collect2` 9677 if test -f "$collect2name" && 9678 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9679 then 9680 # We have reworked collect2 9681 : 9682 else 9683 # We have old collect2 9684 hardcode_direct=unsupported 9685 # It fails to find uninstalled libraries when the uninstalled 9686 # path is not listed in the libpath. Setting hardcode_minus_L 9687 # to unsupported forces relinking 9688 hardcode_minus_L=yes 9689 hardcode_libdir_flag_spec='-L$libdir' 9690 hardcode_libdir_separator= 9691 fi 9692 ;; 9693 esac 9694 shared_flag='-shared' 9695 if test "$aix_use_runtimelinking" = yes; then 9696 shared_flag="$shared_flag "'${wl}-G' 9697 fi 9698 else 9699 # not using gcc 9700 if test "$host_cpu" = ia64; then 9701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9702 # chokes on -Wl,-G. The following line is correct: 9703 shared_flag='-G' 9704 else 9705 if test "$aix_use_runtimelinking" = yes; then 9706 shared_flag='${wl}-G' 9707 else 9708 shared_flag='${wl}-bM:SRE' 9709 fi 9710 fi 9711 fi 9712 9713 export_dynamic_flag_spec='${wl}-bexpall' 9714 # It seems that -bexpall does not export symbols beginning with 9715 # underscore (_), so it is better to generate a list of symbols to export. 9716 always_export_symbols=yes 9717 if test "$aix_use_runtimelinking" = yes; then 9718 # Warning - without using the other runtime loading flags (-brtl), 9719 # -berok will link without error, but may produce a broken library. 9720 allow_undefined_flag='-berok' 9721 # Determine the default libpath from the value encoded in an 9722 # empty executable. 9723 cat >conftest.$ac_ext <<_ACEOF 9724/* confdefs.h. */ 9725_ACEOF 9726cat confdefs.h >>conftest.$ac_ext 9727cat >>conftest.$ac_ext <<_ACEOF 9728/* end confdefs.h. */ 9729 9730int 9731main () 9732{ 9733 9734 ; 9735 return 0; 9736} 9737_ACEOF 9738rm -f conftest.$ac_objext conftest$ac_exeext 9739if { (ac_try="$ac_link" 9740case "(($ac_try" in 9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9742 *) ac_try_echo=$ac_try;; 9743esac 9744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9745$as_echo "$ac_try_echo") >&5 9746 (eval "$ac_link") 2>conftest.er1 9747 ac_status=$? 9748 grep -v '^ *+' conftest.er1 >conftest.err 9749 rm -f conftest.er1 9750 cat conftest.err >&5 9751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9752 (exit $ac_status); } && { 9753 test -z "$ac_c_werror_flag" || 9754 test ! -s conftest.err 9755 } && test -s conftest$ac_exeext && { 9756 test "$cross_compiling" = yes || 9757 $as_test_x conftest$ac_exeext 9758 }; then 9759 9760lt_aix_libpath_sed=' 9761 /Import File Strings/,/^$/ { 9762 /^0/ { 9763 s/^0 *\(.*\)$/\1/ 9764 p 9765 } 9766 }' 9767aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9768# Check for a 64-bit object if we didn't find anything. 9769if test -z "$aix_libpath"; then 9770 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9771fi 9772else 9773 $as_echo "$as_me: failed program was:" >&5 9774sed 's/^/| /' conftest.$ac_ext >&5 9775 9776 9777fi 9778 9779rm -rf conftest.dSYM 9780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9781 conftest$ac_exeext conftest.$ac_ext 9782if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9783 9784 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9785 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9786 else 9787 if test "$host_cpu" = ia64; then 9788 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9789 allow_undefined_flag="-z nodefs" 9790 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" 9791 else 9792 # Determine the default libpath from the value encoded in an 9793 # empty executable. 9794 cat >conftest.$ac_ext <<_ACEOF 9795/* confdefs.h. */ 9796_ACEOF 9797cat confdefs.h >>conftest.$ac_ext 9798cat >>conftest.$ac_ext <<_ACEOF 9799/* end confdefs.h. */ 9800 9801int 9802main () 9803{ 9804 9805 ; 9806 return 0; 9807} 9808_ACEOF 9809rm -f conftest.$ac_objext conftest$ac_exeext 9810if { (ac_try="$ac_link" 9811case "(($ac_try" in 9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9813 *) ac_try_echo=$ac_try;; 9814esac 9815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9816$as_echo "$ac_try_echo") >&5 9817 (eval "$ac_link") 2>conftest.er1 9818 ac_status=$? 9819 grep -v '^ *+' conftest.er1 >conftest.err 9820 rm -f conftest.er1 9821 cat conftest.err >&5 9822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9823 (exit $ac_status); } && { 9824 test -z "$ac_c_werror_flag" || 9825 test ! -s conftest.err 9826 } && test -s conftest$ac_exeext && { 9827 test "$cross_compiling" = yes || 9828 $as_test_x conftest$ac_exeext 9829 }; then 9830 9831lt_aix_libpath_sed=' 9832 /Import File Strings/,/^$/ { 9833 /^0/ { 9834 s/^0 *\(.*\)$/\1/ 9835 p 9836 } 9837 }' 9838aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9839# Check for a 64-bit object if we didn't find anything. 9840if test -z "$aix_libpath"; then 9841 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9842fi 9843else 9844 $as_echo "$as_me: failed program was:" >&5 9845sed 's/^/| /' conftest.$ac_ext >&5 9846 9847 9848fi 9849 9850rm -rf conftest.dSYM 9851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9852 conftest$ac_exeext conftest.$ac_ext 9853if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9854 9855 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9856 # Warning - without using the other run time loading flags, 9857 # -berok will link without error, but may produce a broken library. 9858 no_undefined_flag=' ${wl}-bernotok' 9859 allow_undefined_flag=' ${wl}-berok' 9860 # Exported symbols can be pulled into shared objects from archives 9861 whole_archive_flag_spec='$convenience' 9862 archive_cmds_need_lc=yes 9863 # This is similar to how AIX traditionally builds its shared libraries. 9864 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' 9865 fi 9866 fi 9867 ;; 9868 9869 amigaos*) 9870 case $host_cpu in 9871 powerpc) 9872 # see comment about AmigaOS4 .so support 9873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9874 archive_expsym_cmds='' 9875 ;; 9876 m68k) 9877 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)' 9878 hardcode_libdir_flag_spec='-L$libdir' 9879 hardcode_minus_L=yes 9880 ;; 9881 esac 9882 ;; 9883 9884 bsdi[45]*) 9885 export_dynamic_flag_spec=-rdynamic 9886 ;; 9887 9888 cygwin* | mingw* | pw32* | cegcc*) 9889 # When not using gcc, we currently assume that we are using 9890 # Microsoft Visual C++. 9891 # hardcode_libdir_flag_spec is actually meaningless, as there is 9892 # no search path for DLLs. 9893 hardcode_libdir_flag_spec=' ' 9894 allow_undefined_flag=unsupported 9895 # Tell ltmain to make .lib files, not .a files. 9896 libext=lib 9897 # Tell ltmain to make .dll files, not .so files. 9898 shrext_cmds=".dll" 9899 # FIXME: Setting linknames here is a bad hack. 9900 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9901 # The linker will automatically build a .lib file if we build a DLL. 9902 old_archive_from_new_cmds='true' 9903 # FIXME: Should let the user specify the lib program. 9904 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9905 fix_srcfile_path='`cygpath -w "$srcfile"`' 9906 enable_shared_with_static_runtimes=yes 9907 ;; 9908 9909 darwin* | rhapsody*) 9910 9911 9912 archive_cmds_need_lc=no 9913 hardcode_direct=no 9914 hardcode_automatic=yes 9915 hardcode_shlibpath_var=unsupported 9916 whole_archive_flag_spec='' 9917 link_all_deplibs=yes 9918 allow_undefined_flag="$_lt_dar_allow_undefined" 9919 case $cc_basename in 9920 ifort*) _lt_dar_can_shared=yes ;; 9921 *) _lt_dar_can_shared=$GCC ;; 9922 esac 9923 if test "$_lt_dar_can_shared" = "yes"; then 9924 output_verbose_link_cmd=echo 9925 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9926 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9927 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}" 9928 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}" 9929 9930 else 9931 ld_shlibs=no 9932 fi 9933 9934 ;; 9935 9936 dgux*) 9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9938 hardcode_libdir_flag_spec='-L$libdir' 9939 hardcode_shlibpath_var=no 9940 ;; 9941 9942 freebsd1*) 9943 ld_shlibs=no 9944 ;; 9945 9946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9947 # support. Future versions do this automatically, but an explicit c++rt0.o 9948 # does not break anything, and helps significantly (at the cost of a little 9949 # extra space). 9950 freebsd2.2*) 9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9952 hardcode_libdir_flag_spec='-R$libdir' 9953 hardcode_direct=yes 9954 hardcode_shlibpath_var=no 9955 ;; 9956 9957 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9958 freebsd2*) 9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9960 hardcode_direct=yes 9961 hardcode_minus_L=yes 9962 hardcode_shlibpath_var=no 9963 ;; 9964 9965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9966 freebsd* | dragonfly*) 9967 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9968 hardcode_libdir_flag_spec='-R$libdir' 9969 hardcode_direct=yes 9970 hardcode_shlibpath_var=no 9971 ;; 9972 9973 hpux9*) 9974 if test "$GCC" = yes; then 9975 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' 9976 else 9977 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' 9978 fi 9979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9980 hardcode_libdir_separator=: 9981 hardcode_direct=yes 9982 9983 # hardcode_minus_L: Not really in the search PATH, 9984 # but as the default location of the library. 9985 hardcode_minus_L=yes 9986 export_dynamic_flag_spec='${wl}-E' 9987 ;; 9988 9989 hpux10*) 9990 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9992 else 9993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9994 fi 9995 if test "$with_gnu_ld" = no; then 9996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9997 hardcode_libdir_flag_spec_ld='+b $libdir' 9998 hardcode_libdir_separator=: 9999 hardcode_direct=yes 10000 hardcode_direct_absolute=yes 10001 export_dynamic_flag_spec='${wl}-E' 10002 # hardcode_minus_L: Not really in the search PATH, 10003 # but as the default location of the library. 10004 hardcode_minus_L=yes 10005 fi 10006 ;; 10007 10008 hpux11*) 10009 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10010 case $host_cpu in 10011 hppa*64*) 10012 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10013 ;; 10014 ia64*) 10015 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10016 ;; 10017 *) 10018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10019 ;; 10020 esac 10021 else 10022 case $host_cpu in 10023 hppa*64*) 10024 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10025 ;; 10026 ia64*) 10027 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10028 ;; 10029 *) 10030 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10031 ;; 10032 esac 10033 fi 10034 if test "$with_gnu_ld" = no; then 10035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10036 hardcode_libdir_separator=: 10037 10038 case $host_cpu in 10039 hppa*64*|ia64*) 10040 hardcode_direct=no 10041 hardcode_shlibpath_var=no 10042 ;; 10043 *) 10044 hardcode_direct=yes 10045 hardcode_direct_absolute=yes 10046 export_dynamic_flag_spec='${wl}-E' 10047 10048 # hardcode_minus_L: Not really in the search PATH, 10049 # but as the default location of the library. 10050 hardcode_minus_L=yes 10051 ;; 10052 esac 10053 fi 10054 ;; 10055 10056 irix5* | irix6* | nonstopux*) 10057 if test "$GCC" = yes; then 10058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10059 # Try to use the -exported_symbol ld option, if it does not 10060 # work, assume that -exports_file does not work either and 10061 # implicitly export all symbols. 10062 save_LDFLAGS="$LDFLAGS" 10063 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10064 cat >conftest.$ac_ext <<_ACEOF 10065int foo(void) {} 10066_ACEOF 10067rm -f conftest.$ac_objext conftest$ac_exeext 10068if { (ac_try="$ac_link" 10069case "(($ac_try" in 10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10071 *) ac_try_echo=$ac_try;; 10072esac 10073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10074$as_echo "$ac_try_echo") >&5 10075 (eval "$ac_link") 2>conftest.er1 10076 ac_status=$? 10077 grep -v '^ *+' conftest.er1 >conftest.err 10078 rm -f conftest.er1 10079 cat conftest.err >&5 10080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10081 (exit $ac_status); } && { 10082 test -z "$ac_c_werror_flag" || 10083 test ! -s conftest.err 10084 } && test -s conftest$ac_exeext && { 10085 test "$cross_compiling" = yes || 10086 $as_test_x conftest$ac_exeext 10087 }; then 10088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10089 10090else 10091 $as_echo "$as_me: failed program was:" >&5 10092sed 's/^/| /' conftest.$ac_ext >&5 10093 10094 10095fi 10096 10097rm -rf conftest.dSYM 10098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10099 conftest$ac_exeext conftest.$ac_ext 10100 LDFLAGS="$save_LDFLAGS" 10101 else 10102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10103 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10104 fi 10105 archive_cmds_need_lc='no' 10106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10107 hardcode_libdir_separator=: 10108 inherit_rpath=yes 10109 link_all_deplibs=yes 10110 ;; 10111 10112 netbsd*) 10113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10115 else 10116 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10117 fi 10118 hardcode_libdir_flag_spec='-R$libdir' 10119 hardcode_direct=yes 10120 hardcode_shlibpath_var=no 10121 ;; 10122 10123 newsos6) 10124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10125 hardcode_direct=yes 10126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10127 hardcode_libdir_separator=: 10128 hardcode_shlibpath_var=no 10129 ;; 10130 10131 *nto* | *qnx*) 10132 ;; 10133 10134 openbsd*) 10135 if test -f /usr/libexec/ld.so; then 10136 hardcode_direct=yes 10137 hardcode_shlibpath_var=no 10138 hardcode_direct_absolute=yes 10139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10141 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10142 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10143 export_dynamic_flag_spec='${wl}-E' 10144 else 10145 case $host_os in 10146 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10148 hardcode_libdir_flag_spec='-R$libdir' 10149 ;; 10150 *) 10151 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10153 ;; 10154 esac 10155 fi 10156 else 10157 ld_shlibs=no 10158 fi 10159 ;; 10160 10161 os2*) 10162 hardcode_libdir_flag_spec='-L$libdir' 10163 hardcode_minus_L=yes 10164 allow_undefined_flag=unsupported 10165 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' 10166 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10167 ;; 10168 10169 osf3*) 10170 if test "$GCC" = yes; then 10171 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10172 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10173 else 10174 allow_undefined_flag=' -expect_unresolved \*' 10175 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10176 fi 10177 archive_cmds_need_lc='no' 10178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10179 hardcode_libdir_separator=: 10180 ;; 10181 10182 osf4* | osf5*) # as osf3* with the addition of -msym flag 10183 if test "$GCC" = yes; then 10184 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10185 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10187 else 10188 allow_undefined_flag=' -expect_unresolved \*' 10189 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10190 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~ 10191 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10192 10193 # Both c and cxx compiler support -rpath directly 10194 hardcode_libdir_flag_spec='-rpath $libdir' 10195 fi 10196 archive_cmds_need_lc='no' 10197 hardcode_libdir_separator=: 10198 ;; 10199 10200 solaris*) 10201 no_undefined_flag=' -z defs' 10202 if test "$GCC" = yes; then 10203 wlarc='${wl}' 10204 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10205 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10206 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10207 else 10208 case `$CC -V 2>&1` in 10209 *"Compilers 5.0"*) 10210 wlarc='' 10211 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10212 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10214 ;; 10215 *) 10216 wlarc='${wl}' 10217 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10218 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10219 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10220 ;; 10221 esac 10222 fi 10223 hardcode_libdir_flag_spec='-R$libdir' 10224 hardcode_shlibpath_var=no 10225 case $host_os in 10226 solaris2.[0-5] | solaris2.[0-5].*) ;; 10227 *) 10228 # The compiler driver will combine and reorder linker options, 10229 # but understands `-z linker_flag'. GCC discards it without `$wl', 10230 # but is careful enough not to reorder. 10231 # Supported since Solaris 2.6 (maybe 2.5.1?) 10232 if test "$GCC" = yes; then 10233 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10234 else 10235 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10236 fi 10237 ;; 10238 esac 10239 link_all_deplibs=yes 10240 ;; 10241 10242 sunos4*) 10243 if test "x$host_vendor" = xsequent; then 10244 # Use $CC to link under sequent, because it throws in some extra .o 10245 # files that make .init and .fini sections work. 10246 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10247 else 10248 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10249 fi 10250 hardcode_libdir_flag_spec='-L$libdir' 10251 hardcode_direct=yes 10252 hardcode_minus_L=yes 10253 hardcode_shlibpath_var=no 10254 ;; 10255 10256 sysv4) 10257 case $host_vendor in 10258 sni) 10259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10260 hardcode_direct=yes # is this really true??? 10261 ;; 10262 siemens) 10263 ## LD is ld it makes a PLAMLIB 10264 ## CC just makes a GrossModule. 10265 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10266 reload_cmds='$CC -r -o $output$reload_objs' 10267 hardcode_direct=no 10268 ;; 10269 motorola) 10270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10271 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10272 ;; 10273 esac 10274 runpath_var='LD_RUN_PATH' 10275 hardcode_shlibpath_var=no 10276 ;; 10277 10278 sysv4.3*) 10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10280 hardcode_shlibpath_var=no 10281 export_dynamic_flag_spec='-Bexport' 10282 ;; 10283 10284 sysv4*MP*) 10285 if test -d /usr/nec; then 10286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10287 hardcode_shlibpath_var=no 10288 runpath_var=LD_RUN_PATH 10289 hardcode_runpath_var=yes 10290 ld_shlibs=yes 10291 fi 10292 ;; 10293 10294 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10295 no_undefined_flag='${wl}-z,text' 10296 archive_cmds_need_lc=no 10297 hardcode_shlibpath_var=no 10298 runpath_var='LD_RUN_PATH' 10299 10300 if test "$GCC" = yes; then 10301 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10302 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10303 else 10304 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10305 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10306 fi 10307 ;; 10308 10309 sysv5* | sco3.2v5* | sco5v6*) 10310 # Note: We can NOT use -z defs as we might desire, because we do not 10311 # link with -lc, and that would cause any symbols used from libc to 10312 # always be unresolved, which means just about no library would 10313 # ever link correctly. If we're not using GNU ld we use -z text 10314 # though, which does catch some bad symbols but isn't as heavy-handed 10315 # as -z defs. 10316 no_undefined_flag='${wl}-z,text' 10317 allow_undefined_flag='${wl}-z,nodefs' 10318 archive_cmds_need_lc=no 10319 hardcode_shlibpath_var=no 10320 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10321 hardcode_libdir_separator=':' 10322 link_all_deplibs=yes 10323 export_dynamic_flag_spec='${wl}-Bexport' 10324 runpath_var='LD_RUN_PATH' 10325 10326 if test "$GCC" = yes; then 10327 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10328 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10329 else 10330 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10331 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10332 fi 10333 ;; 10334 10335 uts4*) 10336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10337 hardcode_libdir_flag_spec='-L$libdir' 10338 hardcode_shlibpath_var=no 10339 ;; 10340 10341 *) 10342 ld_shlibs=no 10343 ;; 10344 esac 10345 10346 if test x$host_vendor = xsni; then 10347 case $host in 10348 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10349 export_dynamic_flag_spec='${wl}-Blargedynsym' 10350 ;; 10351 esac 10352 fi 10353 fi 10354 10355{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10356$as_echo "$ld_shlibs" >&6; } 10357test "$ld_shlibs" = no && can_build_shared=no 10358 10359with_gnu_ld=$with_gnu_ld 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375# 10376# Do we need to explicitly link libc? 10377# 10378case "x$archive_cmds_need_lc" in 10379x|xyes) 10380 # Assume -lc should be added 10381 archive_cmds_need_lc=yes 10382 10383 if test "$enable_shared" = yes && test "$GCC" = yes; then 10384 case $archive_cmds in 10385 *'~'*) 10386 # FIXME: we may have to deal with multi-command sequences. 10387 ;; 10388 '$CC '*) 10389 # Test whether the compiler implicitly links with -lc since on some 10390 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10391 # to ld, don't add -lc before -lgcc. 10392 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10393$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10394 $RM conftest* 10395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10396 10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10398 (eval $ac_compile) 2>&5 10399 ac_status=$? 10400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10401 (exit $ac_status); } 2>conftest.err; then 10402 soname=conftest 10403 lib=conftest 10404 libobjs=conftest.$ac_objext 10405 deplibs= 10406 wl=$lt_prog_compiler_wl 10407 pic_flag=$lt_prog_compiler_pic 10408 compiler_flags=-v 10409 linker_flags=-v 10410 verstring= 10411 output_objdir=. 10412 libname=conftest 10413 lt_save_allow_undefined_flag=$allow_undefined_flag 10414 allow_undefined_flag= 10415 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10416 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10417 ac_status=$? 10418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10419 (exit $ac_status); } 10420 then 10421 archive_cmds_need_lc=no 10422 else 10423 archive_cmds_need_lc=yes 10424 fi 10425 allow_undefined_flag=$lt_save_allow_undefined_flag 10426 else 10427 cat conftest.err 1>&5 10428 fi 10429 $RM conftest* 10430 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10431$as_echo "$archive_cmds_need_lc" >&6; } 10432 ;; 10433 esac 10434 fi 10435 ;; 10436esac 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10595$as_echo_n "checking dynamic linker characteristics... " >&6; } 10596 10597if test "$GCC" = yes; then 10598 case $host_os in 10599 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10600 *) lt_awk_arg="/^libraries:/" ;; 10601 esac 10602 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10603 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10604 # if the path contains ";" then we assume it to be the separator 10605 # otherwise default to the standard path separator (i.e. ":") - it is 10606 # assumed that no part of a normal pathname contains ";" but that should 10607 # okay in the real world where ";" in dirpaths is itself problematic. 10608 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10609 else 10610 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10611 fi 10612 # Ok, now we have the path, separated by spaces, we can step through it 10613 # and add multilib dir if necessary. 10614 lt_tmp_lt_search_path_spec= 10615 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10616 for lt_sys_path in $lt_search_path_spec; do 10617 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10618 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10619 else 10620 test -d "$lt_sys_path" && \ 10621 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10622 fi 10623 done 10624 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10625BEGIN {RS=" "; FS="/|\n";} { 10626 lt_foo=""; 10627 lt_count=0; 10628 for (lt_i = NF; lt_i > 0; lt_i--) { 10629 if ($lt_i != "" && $lt_i != ".") { 10630 if ($lt_i == "..") { 10631 lt_count++; 10632 } else { 10633 if (lt_count == 0) { 10634 lt_foo="/" $lt_i lt_foo; 10635 } else { 10636 lt_count--; 10637 } 10638 } 10639 } 10640 } 10641 if (lt_foo != "") { lt_freq[lt_foo]++; } 10642 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10643}'` 10644 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10645else 10646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10647fi 10648library_names_spec= 10649libname_spec='lib$name' 10650soname_spec= 10651shrext_cmds=".so" 10652postinstall_cmds= 10653postuninstall_cmds= 10654finish_cmds= 10655finish_eval= 10656shlibpath_var= 10657shlibpath_overrides_runpath=unknown 10658version_type=none 10659dynamic_linker="$host_os ld.so" 10660sys_lib_dlsearch_path_spec="/lib /usr/lib" 10661need_lib_prefix=unknown 10662hardcode_into_libs=no 10663 10664# when you set need_version to no, make sure it does not cause -set_version 10665# flags to be left without arguments 10666need_version=unknown 10667 10668case $host_os in 10669aix3*) 10670 version_type=linux 10671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10672 shlibpath_var=LIBPATH 10673 10674 # AIX 3 has no versioning support, so we append a major version to the name. 10675 soname_spec='${libname}${release}${shared_ext}$major' 10676 ;; 10677 10678aix[4-9]*) 10679 version_type=linux 10680 need_lib_prefix=no 10681 need_version=no 10682 hardcode_into_libs=yes 10683 if test "$host_cpu" = ia64; then 10684 # AIX 5 supports IA64 10685 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10686 shlibpath_var=LD_LIBRARY_PATH 10687 else 10688 # With GCC up to 2.95.x, collect2 would create an import file 10689 # for dependence libraries. The import file would start with 10690 # the line `#! .'. This would cause the generated library to 10691 # depend on `.', always an invalid library. This was fixed in 10692 # development snapshots of GCC prior to 3.0. 10693 case $host_os in 10694 aix4 | aix4.[01] | aix4.[01].*) 10695 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10696 echo ' yes ' 10697 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10698 : 10699 else 10700 can_build_shared=no 10701 fi 10702 ;; 10703 esac 10704 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10705 # soname into executable. Probably we can add versioning support to 10706 # collect2, so additional links can be useful in future. 10707 if test "$aix_use_runtimelinking" = yes; then 10708 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10709 # instead of lib<name>.a to let people know that these are not 10710 # typical AIX shared libraries. 10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10712 else 10713 # We preserve .a as extension for shared libraries through AIX4.2 10714 # and later when we are not doing run time linking. 10715 library_names_spec='${libname}${release}.a $libname.a' 10716 soname_spec='${libname}${release}${shared_ext}$major' 10717 fi 10718 shlibpath_var=LIBPATH 10719 fi 10720 ;; 10721 10722amigaos*) 10723 case $host_cpu in 10724 powerpc) 10725 # Since July 2007 AmigaOS4 officially supports .so libraries. 10726 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10728 ;; 10729 m68k) 10730 library_names_spec='$libname.ixlibrary $libname.a' 10731 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10732 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' 10733 ;; 10734 esac 10735 ;; 10736 10737beos*) 10738 library_names_spec='${libname}${shared_ext}' 10739 dynamic_linker="$host_os ld.so" 10740 shlibpath_var=LIBRARY_PATH 10741 ;; 10742 10743bsdi[45]*) 10744 version_type=linux 10745 need_version=no 10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10747 soname_spec='${libname}${release}${shared_ext}$major' 10748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10749 shlibpath_var=LD_LIBRARY_PATH 10750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10752 # the default ld.so.conf also contains /usr/contrib/lib and 10753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10754 # libtool to hard-code these into programs 10755 ;; 10756 10757cygwin* | mingw* | pw32* | cegcc*) 10758 version_type=windows 10759 shrext_cmds=".dll" 10760 need_version=no 10761 need_lib_prefix=no 10762 10763 case $GCC,$host_os in 10764 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10765 library_names_spec='$libname.dll.a' 10766 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10767 postinstall_cmds='base_file=`basename \${file}`~ 10768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10769 dldir=$destdir/`dirname \$dlpath`~ 10770 test -d \$dldir || mkdir -p \$dldir~ 10771 $install_prog $dir/$dlname \$dldir/$dlname~ 10772 chmod a+x \$dldir/$dlname~ 10773 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10774 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10775 fi' 10776 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10777 dlpath=$dir/\$dldll~ 10778 $RM \$dlpath' 10779 shlibpath_overrides_runpath=yes 10780 10781 case $host_os in 10782 cygwin*) 10783 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10784 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10785 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10786 ;; 10787 mingw* | cegcc*) 10788 # MinGW DLLs use traditional 'lib' prefix 10789 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10790 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10791 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10792 # It is most probably a Windows format PATH printed by 10793 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10794 # path with ; separators, and with drive letters. We can handle the 10795 # drive letters (cygwin fileutils understands them), so leave them, 10796 # especially as we might pass files found there to a mingw objdump, 10797 # which wouldn't understand a cygwinified path. Ahh. 10798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10799 else 10800 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10801 fi 10802 ;; 10803 pw32*) 10804 # pw32 DLLs use 'pw' prefix rather than 'lib' 10805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10806 ;; 10807 esac 10808 ;; 10809 10810 *) 10811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10812 ;; 10813 esac 10814 dynamic_linker='Win32 ld.exe' 10815 # FIXME: first we should search . and the directory the executable is in 10816 shlibpath_var=PATH 10817 ;; 10818 10819darwin* | rhapsody*) 10820 dynamic_linker="$host_os dyld" 10821 version_type=darwin 10822 need_lib_prefix=no 10823 need_version=no 10824 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10825 soname_spec='${libname}${release}${major}$shared_ext' 10826 shlibpath_overrides_runpath=yes 10827 shlibpath_var=DYLD_LIBRARY_PATH 10828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10829 10830 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10832 ;; 10833 10834dgux*) 10835 version_type=linux 10836 need_lib_prefix=no 10837 need_version=no 10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10839 soname_spec='${libname}${release}${shared_ext}$major' 10840 shlibpath_var=LD_LIBRARY_PATH 10841 ;; 10842 10843freebsd1*) 10844 dynamic_linker=no 10845 ;; 10846 10847freebsd* | dragonfly*) 10848 # DragonFly does not have aout. When/if they implement a new 10849 # versioning mechanism, adjust this. 10850 if test -x /usr/bin/objformat; then 10851 objformat=`/usr/bin/objformat` 10852 else 10853 case $host_os in 10854 freebsd[123]*) objformat=aout ;; 10855 *) objformat=elf ;; 10856 esac 10857 fi 10858 version_type=freebsd-$objformat 10859 case $version_type in 10860 freebsd-elf*) 10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10862 need_version=no 10863 need_lib_prefix=no 10864 ;; 10865 freebsd-*) 10866 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10867 need_version=yes 10868 ;; 10869 esac 10870 shlibpath_var=LD_LIBRARY_PATH 10871 case $host_os in 10872 freebsd2*) 10873 shlibpath_overrides_runpath=yes 10874 ;; 10875 freebsd3.[01]* | freebsdelf3.[01]*) 10876 shlibpath_overrides_runpath=yes 10877 hardcode_into_libs=yes 10878 ;; 10879 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10880 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10881 shlibpath_overrides_runpath=no 10882 hardcode_into_libs=yes 10883 ;; 10884 *) # from 4.6 on, and DragonFly 10885 shlibpath_overrides_runpath=yes 10886 hardcode_into_libs=yes 10887 ;; 10888 esac 10889 ;; 10890 10891gnu*) 10892 version_type=linux 10893 need_lib_prefix=no 10894 need_version=no 10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10896 soname_spec='${libname}${release}${shared_ext}$major' 10897 shlibpath_var=LD_LIBRARY_PATH 10898 hardcode_into_libs=yes 10899 ;; 10900 10901hpux9* | hpux10* | hpux11*) 10902 # Give a soname corresponding to the major version so that dld.sl refuses to 10903 # link against other versions. 10904 version_type=sunos 10905 need_lib_prefix=no 10906 need_version=no 10907 case $host_cpu in 10908 ia64*) 10909 shrext_cmds='.so' 10910 hardcode_into_libs=yes 10911 dynamic_linker="$host_os dld.so" 10912 shlibpath_var=LD_LIBRARY_PATH 10913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10915 soname_spec='${libname}${release}${shared_ext}$major' 10916 if test "X$HPUX_IA64_MODE" = X32; then 10917 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10918 else 10919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10920 fi 10921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10922 ;; 10923 hppa*64*) 10924 shrext_cmds='.sl' 10925 hardcode_into_libs=yes 10926 dynamic_linker="$host_os dld.sl" 10927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10930 soname_spec='${libname}${release}${shared_ext}$major' 10931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10933 ;; 10934 *) 10935 shrext_cmds='.sl' 10936 dynamic_linker="$host_os dld.sl" 10937 shlibpath_var=SHLIB_PATH 10938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 10942 esac 10943 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10944 postinstall_cmds='chmod 555 $lib' 10945 ;; 10946 10947interix[3-9]*) 10948 version_type=linux 10949 need_lib_prefix=no 10950 need_version=no 10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10952 soname_spec='${libname}${release}${shared_ext}$major' 10953 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10954 shlibpath_var=LD_LIBRARY_PATH 10955 shlibpath_overrides_runpath=no 10956 hardcode_into_libs=yes 10957 ;; 10958 10959irix5* | irix6* | nonstopux*) 10960 case $host_os in 10961 nonstopux*) version_type=nonstopux ;; 10962 *) 10963 if test "$lt_cv_prog_gnu_ld" = yes; then 10964 version_type=linux 10965 else 10966 version_type=irix 10967 fi ;; 10968 esac 10969 need_lib_prefix=no 10970 need_version=no 10971 soname_spec='${libname}${release}${shared_ext}$major' 10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10973 case $host_os in 10974 irix5* | nonstopux*) 10975 libsuff= shlibsuff= 10976 ;; 10977 *) 10978 case $LD in # libtool.m4 will add one of these switches to LD 10979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10980 libsuff= shlibsuff= libmagic=32-bit;; 10981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10982 libsuff=32 shlibsuff=N32 libmagic=N32;; 10983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10984 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10985 *) libsuff= shlibsuff= libmagic=never-match;; 10986 esac 10987 ;; 10988 esac 10989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10990 shlibpath_overrides_runpath=no 10991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10993 hardcode_into_libs=yes 10994 ;; 10995 10996# No shared lib support for Linux oldld, aout, or coff. 10997linux*oldld* | linux*aout* | linux*coff*) 10998 dynamic_linker=no 10999 ;; 11000 11001# This must be Linux ELF. 11002linux* | k*bsd*-gnu) 11003 version_type=linux 11004 need_lib_prefix=no 11005 need_version=no 11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11007 soname_spec='${libname}${release}${shared_ext}$major' 11008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11009 shlibpath_var=LD_LIBRARY_PATH 11010 shlibpath_overrides_runpath=no 11011 # Some binutils ld are patched to set DT_RUNPATH 11012 save_LDFLAGS=$LDFLAGS 11013 save_libdir=$libdir 11014 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11015 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11016 cat >conftest.$ac_ext <<_ACEOF 11017/* confdefs.h. */ 11018_ACEOF 11019cat confdefs.h >>conftest.$ac_ext 11020cat >>conftest.$ac_ext <<_ACEOF 11021/* end confdefs.h. */ 11022 11023int 11024main () 11025{ 11026 11027 ; 11028 return 0; 11029} 11030_ACEOF 11031rm -f conftest.$ac_objext conftest$ac_exeext 11032if { (ac_try="$ac_link" 11033case "(($ac_try" in 11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11035 *) ac_try_echo=$ac_try;; 11036esac 11037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11038$as_echo "$ac_try_echo") >&5 11039 (eval "$ac_link") 2>conftest.er1 11040 ac_status=$? 11041 grep -v '^ *+' conftest.er1 >conftest.err 11042 rm -f conftest.er1 11043 cat conftest.err >&5 11044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11045 (exit $ac_status); } && { 11046 test -z "$ac_c_werror_flag" || 11047 test ! -s conftest.err 11048 } && test -s conftest$ac_exeext && { 11049 test "$cross_compiling" = yes || 11050 $as_test_x conftest$ac_exeext 11051 }; then 11052 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 11053 shlibpath_overrides_runpath=yes 11054fi 11055 11056else 11057 $as_echo "$as_me: failed program was:" >&5 11058sed 's/^/| /' conftest.$ac_ext >&5 11059 11060 11061fi 11062 11063rm -rf conftest.dSYM 11064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11065 conftest$ac_exeext conftest.$ac_ext 11066 LDFLAGS=$save_LDFLAGS 11067 libdir=$save_libdir 11068 11069 # This implies no fast_install, which is unacceptable. 11070 # Some rework will be needed to allow for fast_install 11071 # before this can be enabled. 11072 hardcode_into_libs=yes 11073 11074 # Add ABI-specific directories to the system library path. 11075 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11076 11077 # Append ld.so.conf contents to the search path 11078 if test -f /etc/ld.so.conf; then 11079 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;/^$/d' | tr '\n' ' '` 11080 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11081 fi 11082 11083 # We used to test for /lib/ld.so.1 and disable shared libraries on 11084 # powerpc, because MkLinux only supported shared libraries with the 11085 # GNU dynamic linker. Since this was broken with cross compilers, 11086 # most powerpc-linux boxes support dynamic linking these days and 11087 # people can always --disable-shared, the test was removed, and we 11088 # assume the GNU/Linux dynamic linker is in use. 11089 dynamic_linker='GNU/Linux ld.so' 11090 ;; 11091 11092netbsd*) 11093 version_type=sunos 11094 need_lib_prefix=no 11095 need_version=no 11096 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11099 dynamic_linker='NetBSD (a.out) ld.so' 11100 else 11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11102 soname_spec='${libname}${release}${shared_ext}$major' 11103 dynamic_linker='NetBSD ld.elf_so' 11104 fi 11105 shlibpath_var=LD_LIBRARY_PATH 11106 shlibpath_overrides_runpath=yes 11107 hardcode_into_libs=yes 11108 ;; 11109 11110newsos6) 11111 version_type=linux 11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11113 shlibpath_var=LD_LIBRARY_PATH 11114 shlibpath_overrides_runpath=yes 11115 ;; 11116 11117*nto* | *qnx*) 11118 version_type=qnx 11119 need_lib_prefix=no 11120 need_version=no 11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11122 soname_spec='${libname}${release}${shared_ext}$major' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 shlibpath_overrides_runpath=no 11125 hardcode_into_libs=yes 11126 dynamic_linker='ldqnx.so' 11127 ;; 11128 11129openbsd*) 11130 version_type=sunos 11131 sys_lib_dlsearch_path_spec="/usr/lib" 11132 need_lib_prefix=no 11133 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11134 case $host_os in 11135 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11136 *) need_version=no ;; 11137 esac 11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11140 shlibpath_var=LD_LIBRARY_PATH 11141 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11142 case $host_os in 11143 openbsd2.[89] | openbsd2.[89].*) 11144 shlibpath_overrides_runpath=no 11145 ;; 11146 *) 11147 shlibpath_overrides_runpath=yes 11148 ;; 11149 esac 11150 else 11151 shlibpath_overrides_runpath=yes 11152 fi 11153 ;; 11154 11155os2*) 11156 libname_spec='$name' 11157 shrext_cmds=".dll" 11158 need_lib_prefix=no 11159 library_names_spec='$libname${shared_ext} $libname.a' 11160 dynamic_linker='OS/2 ld.exe' 11161 shlibpath_var=LIBPATH 11162 ;; 11163 11164osf3* | osf4* | osf5*) 11165 version_type=osf 11166 need_lib_prefix=no 11167 need_version=no 11168 soname_spec='${libname}${release}${shared_ext}$major' 11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11170 shlibpath_var=LD_LIBRARY_PATH 11171 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11172 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11173 ;; 11174 11175rdos*) 11176 dynamic_linker=no 11177 ;; 11178 11179solaris*) 11180 version_type=linux 11181 need_lib_prefix=no 11182 need_version=no 11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11184 soname_spec='${libname}${release}${shared_ext}$major' 11185 shlibpath_var=LD_LIBRARY_PATH 11186 shlibpath_overrides_runpath=yes 11187 hardcode_into_libs=yes 11188 # ldd complains unless libraries are executable 11189 postinstall_cmds='chmod +x $lib' 11190 ;; 11191 11192sunos4*) 11193 version_type=sunos 11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11195 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11196 shlibpath_var=LD_LIBRARY_PATH 11197 shlibpath_overrides_runpath=yes 11198 if test "$with_gnu_ld" = yes; then 11199 need_lib_prefix=no 11200 fi 11201 need_version=yes 11202 ;; 11203 11204sysv4 | sysv4.3*) 11205 version_type=linux 11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11207 soname_spec='${libname}${release}${shared_ext}$major' 11208 shlibpath_var=LD_LIBRARY_PATH 11209 case $host_vendor in 11210 sni) 11211 shlibpath_overrides_runpath=no 11212 need_lib_prefix=no 11213 runpath_var=LD_RUN_PATH 11214 ;; 11215 siemens) 11216 need_lib_prefix=no 11217 ;; 11218 motorola) 11219 need_lib_prefix=no 11220 need_version=no 11221 shlibpath_overrides_runpath=no 11222 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11223 ;; 11224 esac 11225 ;; 11226 11227sysv4*MP*) 11228 if test -d /usr/nec ;then 11229 version_type=linux 11230 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11231 soname_spec='$libname${shared_ext}.$major' 11232 shlibpath_var=LD_LIBRARY_PATH 11233 fi 11234 ;; 11235 11236sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11237 version_type=freebsd-elf 11238 need_lib_prefix=no 11239 need_version=no 11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11241 soname_spec='${libname}${release}${shared_ext}$major' 11242 shlibpath_var=LD_LIBRARY_PATH 11243 shlibpath_overrides_runpath=yes 11244 hardcode_into_libs=yes 11245 if test "$with_gnu_ld" = yes; then 11246 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11247 else 11248 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11249 case $host_os in 11250 sco3.2v5*) 11251 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11252 ;; 11253 esac 11254 fi 11255 sys_lib_dlsearch_path_spec='/usr/lib' 11256 ;; 11257 11258tpf*) 11259 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11260 version_type=linux 11261 need_lib_prefix=no 11262 need_version=no 11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11264 shlibpath_var=LD_LIBRARY_PATH 11265 shlibpath_overrides_runpath=no 11266 hardcode_into_libs=yes 11267 ;; 11268 11269uts4*) 11270 version_type=linux 11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11272 soname_spec='${libname}${release}${shared_ext}$major' 11273 shlibpath_var=LD_LIBRARY_PATH 11274 ;; 11275 11276*) 11277 dynamic_linker=no 11278 ;; 11279esac 11280{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11281$as_echo "$dynamic_linker" >&6; } 11282test "$dynamic_linker" = no && can_build_shared=no 11283 11284variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11285if test "$GCC" = yes; then 11286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11287fi 11288 11289if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11290 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11291fi 11292if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11293 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11294fi 11295 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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11383$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11384hardcode_action= 11385if test -n "$hardcode_libdir_flag_spec" || 11386 test -n "$runpath_var" || 11387 test "X$hardcode_automatic" = "Xyes" ; then 11388 11389 # We can hardcode non-existent directories. 11390 if test "$hardcode_direct" != no && 11391 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11392 # have to relink, otherwise we might link with an installed library 11393 # when we should be linking with a yet-to-be-installed one 11394 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11395 test "$hardcode_minus_L" != no; then 11396 # Linking always hardcodes the temporary library directory. 11397 hardcode_action=relink 11398 else 11399 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11400 hardcode_action=immediate 11401 fi 11402else 11403 # We cannot hardcode anything, or else we can only hardcode existing 11404 # directories. 11405 hardcode_action=unsupported 11406fi 11407{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 11408$as_echo "$hardcode_action" >&6; } 11409 11410if test "$hardcode_action" = relink || 11411 test "$inherit_rpath" = yes; then 11412 # Fast installation is not supported 11413 enable_fast_install=no 11414elif test "$shlibpath_overrides_runpath" = yes || 11415 test "$enable_shared" = no; then 11416 # Fast installation is not necessary 11417 enable_fast_install=needless 11418fi 11419 11420 11421 11422 11423 11424 11425 if test "x$enable_dlopen" != xyes; then 11426 enable_dlopen=unknown 11427 enable_dlopen_self=unknown 11428 enable_dlopen_self_static=unknown 11429else 11430 lt_cv_dlopen=no 11431 lt_cv_dlopen_libs= 11432 11433 case $host_os in 11434 beos*) 11435 lt_cv_dlopen="load_add_on" 11436 lt_cv_dlopen_libs= 11437 lt_cv_dlopen_self=yes 11438 ;; 11439 11440 mingw* | pw32* | cegcc*) 11441 lt_cv_dlopen="LoadLibrary" 11442 lt_cv_dlopen_libs= 11443 ;; 11444 11445 cygwin*) 11446 lt_cv_dlopen="dlopen" 11447 lt_cv_dlopen_libs= 11448 ;; 11449 11450 darwin*) 11451 # if libdl is installed we need to link against it 11452 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11453$as_echo_n "checking for dlopen in -ldl... " >&6; } 11454if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11455 $as_echo_n "(cached) " >&6 11456else 11457 ac_check_lib_save_LIBS=$LIBS 11458LIBS="-ldl $LIBS" 11459cat >conftest.$ac_ext <<_ACEOF 11460/* confdefs.h. */ 11461_ACEOF 11462cat confdefs.h >>conftest.$ac_ext 11463cat >>conftest.$ac_ext <<_ACEOF 11464/* end confdefs.h. */ 11465 11466/* Override any GCC internal prototype to avoid an error. 11467 Use char because int might match the return type of a GCC 11468 builtin and then its argument prototype would still apply. */ 11469#ifdef __cplusplus 11470extern "C" 11471#endif 11472char dlopen (); 11473int 11474main () 11475{ 11476return dlopen (); 11477 ; 11478 return 0; 11479} 11480_ACEOF 11481rm -f conftest.$ac_objext conftest$ac_exeext 11482if { (ac_try="$ac_link" 11483case "(($ac_try" in 11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11485 *) ac_try_echo=$ac_try;; 11486esac 11487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11488$as_echo "$ac_try_echo") >&5 11489 (eval "$ac_link") 2>conftest.er1 11490 ac_status=$? 11491 grep -v '^ *+' conftest.er1 >conftest.err 11492 rm -f conftest.er1 11493 cat conftest.err >&5 11494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11495 (exit $ac_status); } && { 11496 test -z "$ac_c_werror_flag" || 11497 test ! -s conftest.err 11498 } && test -s conftest$ac_exeext && { 11499 test "$cross_compiling" = yes || 11500 $as_test_x conftest$ac_exeext 11501 }; then 11502 ac_cv_lib_dl_dlopen=yes 11503else 11504 $as_echo "$as_me: failed program was:" >&5 11505sed 's/^/| /' conftest.$ac_ext >&5 11506 11507 ac_cv_lib_dl_dlopen=no 11508fi 11509 11510rm -rf conftest.dSYM 11511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11512 conftest$ac_exeext conftest.$ac_ext 11513LIBS=$ac_check_lib_save_LIBS 11514fi 11515{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11516$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11517if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11519else 11520 11521 lt_cv_dlopen="dyld" 11522 lt_cv_dlopen_libs= 11523 lt_cv_dlopen_self=yes 11524 11525fi 11526 11527 ;; 11528 11529 *) 11530 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11531$as_echo_n "checking for shl_load... " >&6; } 11532if test "${ac_cv_func_shl_load+set}" = set; then 11533 $as_echo_n "(cached) " >&6 11534else 11535 cat >conftest.$ac_ext <<_ACEOF 11536/* confdefs.h. */ 11537_ACEOF 11538cat confdefs.h >>conftest.$ac_ext 11539cat >>conftest.$ac_ext <<_ACEOF 11540/* end confdefs.h. */ 11541/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11542 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11543#define shl_load innocuous_shl_load 11544 11545/* System header to define __stub macros and hopefully few prototypes, 11546 which can conflict with char shl_load (); below. 11547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11548 <limits.h> exists even on freestanding compilers. */ 11549 11550#ifdef __STDC__ 11551# include <limits.h> 11552#else 11553# include <assert.h> 11554#endif 11555 11556#undef shl_load 11557 11558/* Override any GCC internal prototype to avoid an error. 11559 Use char because int might match the return type of a GCC 11560 builtin and then its argument prototype would still apply. */ 11561#ifdef __cplusplus 11562extern "C" 11563#endif 11564char shl_load (); 11565/* The GNU C library defines this for functions which it implements 11566 to always fail with ENOSYS. Some functions are actually named 11567 something starting with __ and the normal name is an alias. */ 11568#if defined __stub_shl_load || defined __stub___shl_load 11569choke me 11570#endif 11571 11572int 11573main () 11574{ 11575return shl_load (); 11576 ; 11577 return 0; 11578} 11579_ACEOF 11580rm -f conftest.$ac_objext conftest$ac_exeext 11581if { (ac_try="$ac_link" 11582case "(($ac_try" in 11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11584 *) ac_try_echo=$ac_try;; 11585esac 11586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11587$as_echo "$ac_try_echo") >&5 11588 (eval "$ac_link") 2>conftest.er1 11589 ac_status=$? 11590 grep -v '^ *+' conftest.er1 >conftest.err 11591 rm -f conftest.er1 11592 cat conftest.err >&5 11593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11594 (exit $ac_status); } && { 11595 test -z "$ac_c_werror_flag" || 11596 test ! -s conftest.err 11597 } && test -s conftest$ac_exeext && { 11598 test "$cross_compiling" = yes || 11599 $as_test_x conftest$ac_exeext 11600 }; then 11601 ac_cv_func_shl_load=yes 11602else 11603 $as_echo "$as_me: failed program was:" >&5 11604sed 's/^/| /' conftest.$ac_ext >&5 11605 11606 ac_cv_func_shl_load=no 11607fi 11608 11609rm -rf conftest.dSYM 11610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11611 conftest$ac_exeext conftest.$ac_ext 11612fi 11613{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11614$as_echo "$ac_cv_func_shl_load" >&6; } 11615if test "x$ac_cv_func_shl_load" = x""yes; then 11616 lt_cv_dlopen="shl_load" 11617else 11618 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11619$as_echo_n "checking for shl_load in -ldld... " >&6; } 11620if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11621 $as_echo_n "(cached) " >&6 11622else 11623 ac_check_lib_save_LIBS=$LIBS 11624LIBS="-ldld $LIBS" 11625cat >conftest.$ac_ext <<_ACEOF 11626/* confdefs.h. */ 11627_ACEOF 11628cat confdefs.h >>conftest.$ac_ext 11629cat >>conftest.$ac_ext <<_ACEOF 11630/* end confdefs.h. */ 11631 11632/* Override any GCC internal prototype to avoid an error. 11633 Use char because int might match the return type of a GCC 11634 builtin and then its argument prototype would still apply. */ 11635#ifdef __cplusplus 11636extern "C" 11637#endif 11638char shl_load (); 11639int 11640main () 11641{ 11642return shl_load (); 11643 ; 11644 return 0; 11645} 11646_ACEOF 11647rm -f conftest.$ac_objext conftest$ac_exeext 11648if { (ac_try="$ac_link" 11649case "(($ac_try" in 11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11651 *) ac_try_echo=$ac_try;; 11652esac 11653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11654$as_echo "$ac_try_echo") >&5 11655 (eval "$ac_link") 2>conftest.er1 11656 ac_status=$? 11657 grep -v '^ *+' conftest.er1 >conftest.err 11658 rm -f conftest.er1 11659 cat conftest.err >&5 11660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11661 (exit $ac_status); } && { 11662 test -z "$ac_c_werror_flag" || 11663 test ! -s conftest.err 11664 } && test -s conftest$ac_exeext && { 11665 test "$cross_compiling" = yes || 11666 $as_test_x conftest$ac_exeext 11667 }; then 11668 ac_cv_lib_dld_shl_load=yes 11669else 11670 $as_echo "$as_me: failed program was:" >&5 11671sed 's/^/| /' conftest.$ac_ext >&5 11672 11673 ac_cv_lib_dld_shl_load=no 11674fi 11675 11676rm -rf conftest.dSYM 11677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11678 conftest$ac_exeext conftest.$ac_ext 11679LIBS=$ac_check_lib_save_LIBS 11680fi 11681{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11682$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11683if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11684 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11685else 11686 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11687$as_echo_n "checking for dlopen... " >&6; } 11688if test "${ac_cv_func_dlopen+set}" = set; then 11689 $as_echo_n "(cached) " >&6 11690else 11691 cat >conftest.$ac_ext <<_ACEOF 11692/* confdefs.h. */ 11693_ACEOF 11694cat confdefs.h >>conftest.$ac_ext 11695cat >>conftest.$ac_ext <<_ACEOF 11696/* end confdefs.h. */ 11697/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11698 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11699#define dlopen innocuous_dlopen 11700 11701/* System header to define __stub macros and hopefully few prototypes, 11702 which can conflict with char dlopen (); below. 11703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11704 <limits.h> exists even on freestanding compilers. */ 11705 11706#ifdef __STDC__ 11707# include <limits.h> 11708#else 11709# include <assert.h> 11710#endif 11711 11712#undef dlopen 11713 11714/* Override any GCC internal prototype to avoid an error. 11715 Use char because int might match the return type of a GCC 11716 builtin and then its argument prototype would still apply. */ 11717#ifdef __cplusplus 11718extern "C" 11719#endif 11720char dlopen (); 11721/* The GNU C library defines this for functions which it implements 11722 to always fail with ENOSYS. Some functions are actually named 11723 something starting with __ and the normal name is an alias. */ 11724#if defined __stub_dlopen || defined __stub___dlopen 11725choke me 11726#endif 11727 11728int 11729main () 11730{ 11731return dlopen (); 11732 ; 11733 return 0; 11734} 11735_ACEOF 11736rm -f conftest.$ac_objext conftest$ac_exeext 11737if { (ac_try="$ac_link" 11738case "(($ac_try" in 11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11740 *) ac_try_echo=$ac_try;; 11741esac 11742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11743$as_echo "$ac_try_echo") >&5 11744 (eval "$ac_link") 2>conftest.er1 11745 ac_status=$? 11746 grep -v '^ *+' conftest.er1 >conftest.err 11747 rm -f conftest.er1 11748 cat conftest.err >&5 11749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11750 (exit $ac_status); } && { 11751 test -z "$ac_c_werror_flag" || 11752 test ! -s conftest.err 11753 } && test -s conftest$ac_exeext && { 11754 test "$cross_compiling" = yes || 11755 $as_test_x conftest$ac_exeext 11756 }; then 11757 ac_cv_func_dlopen=yes 11758else 11759 $as_echo "$as_me: failed program was:" >&5 11760sed 's/^/| /' conftest.$ac_ext >&5 11761 11762 ac_cv_func_dlopen=no 11763fi 11764 11765rm -rf conftest.dSYM 11766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11767 conftest$ac_exeext conftest.$ac_ext 11768fi 11769{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11770$as_echo "$ac_cv_func_dlopen" >&6; } 11771if test "x$ac_cv_func_dlopen" = x""yes; then 11772 lt_cv_dlopen="dlopen" 11773else 11774 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11775$as_echo_n "checking for dlopen in -ldl... " >&6; } 11776if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11777 $as_echo_n "(cached) " >&6 11778else 11779 ac_check_lib_save_LIBS=$LIBS 11780LIBS="-ldl $LIBS" 11781cat >conftest.$ac_ext <<_ACEOF 11782/* confdefs.h. */ 11783_ACEOF 11784cat confdefs.h >>conftest.$ac_ext 11785cat >>conftest.$ac_ext <<_ACEOF 11786/* end confdefs.h. */ 11787 11788/* Override any GCC internal prototype to avoid an error. 11789 Use char because int might match the return type of a GCC 11790 builtin and then its argument prototype would still apply. */ 11791#ifdef __cplusplus 11792extern "C" 11793#endif 11794char dlopen (); 11795int 11796main () 11797{ 11798return dlopen (); 11799 ; 11800 return 0; 11801} 11802_ACEOF 11803rm -f conftest.$ac_objext conftest$ac_exeext 11804if { (ac_try="$ac_link" 11805case "(($ac_try" in 11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11807 *) ac_try_echo=$ac_try;; 11808esac 11809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11810$as_echo "$ac_try_echo") >&5 11811 (eval "$ac_link") 2>conftest.er1 11812 ac_status=$? 11813 grep -v '^ *+' conftest.er1 >conftest.err 11814 rm -f conftest.er1 11815 cat conftest.err >&5 11816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11817 (exit $ac_status); } && { 11818 test -z "$ac_c_werror_flag" || 11819 test ! -s conftest.err 11820 } && test -s conftest$ac_exeext && { 11821 test "$cross_compiling" = yes || 11822 $as_test_x conftest$ac_exeext 11823 }; then 11824 ac_cv_lib_dl_dlopen=yes 11825else 11826 $as_echo "$as_me: failed program was:" >&5 11827sed 's/^/| /' conftest.$ac_ext >&5 11828 11829 ac_cv_lib_dl_dlopen=no 11830fi 11831 11832rm -rf conftest.dSYM 11833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11834 conftest$ac_exeext conftest.$ac_ext 11835LIBS=$ac_check_lib_save_LIBS 11836fi 11837{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11838$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11839if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11840 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11841else 11842 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11843$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11844if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11845 $as_echo_n "(cached) " >&6 11846else 11847 ac_check_lib_save_LIBS=$LIBS 11848LIBS="-lsvld $LIBS" 11849cat >conftest.$ac_ext <<_ACEOF 11850/* confdefs.h. */ 11851_ACEOF 11852cat confdefs.h >>conftest.$ac_ext 11853cat >>conftest.$ac_ext <<_ACEOF 11854/* end confdefs.h. */ 11855 11856/* Override any GCC internal prototype to avoid an error. 11857 Use char because int might match the return type of a GCC 11858 builtin and then its argument prototype would still apply. */ 11859#ifdef __cplusplus 11860extern "C" 11861#endif 11862char dlopen (); 11863int 11864main () 11865{ 11866return dlopen (); 11867 ; 11868 return 0; 11869} 11870_ACEOF 11871rm -f conftest.$ac_objext conftest$ac_exeext 11872if { (ac_try="$ac_link" 11873case "(($ac_try" in 11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11875 *) ac_try_echo=$ac_try;; 11876esac 11877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11878$as_echo "$ac_try_echo") >&5 11879 (eval "$ac_link") 2>conftest.er1 11880 ac_status=$? 11881 grep -v '^ *+' conftest.er1 >conftest.err 11882 rm -f conftest.er1 11883 cat conftest.err >&5 11884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11885 (exit $ac_status); } && { 11886 test -z "$ac_c_werror_flag" || 11887 test ! -s conftest.err 11888 } && test -s conftest$ac_exeext && { 11889 test "$cross_compiling" = yes || 11890 $as_test_x conftest$ac_exeext 11891 }; then 11892 ac_cv_lib_svld_dlopen=yes 11893else 11894 $as_echo "$as_me: failed program was:" >&5 11895sed 's/^/| /' conftest.$ac_ext >&5 11896 11897 ac_cv_lib_svld_dlopen=no 11898fi 11899 11900rm -rf conftest.dSYM 11901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11902 conftest$ac_exeext conftest.$ac_ext 11903LIBS=$ac_check_lib_save_LIBS 11904fi 11905{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11906$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11907if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11909else 11910 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11911$as_echo_n "checking for dld_link in -ldld... " >&6; } 11912if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11913 $as_echo_n "(cached) " >&6 11914else 11915 ac_check_lib_save_LIBS=$LIBS 11916LIBS="-ldld $LIBS" 11917cat >conftest.$ac_ext <<_ACEOF 11918/* confdefs.h. */ 11919_ACEOF 11920cat confdefs.h >>conftest.$ac_ext 11921cat >>conftest.$ac_ext <<_ACEOF 11922/* end confdefs.h. */ 11923 11924/* Override any GCC internal prototype to avoid an error. 11925 Use char because int might match the return type of a GCC 11926 builtin and then its argument prototype would still apply. */ 11927#ifdef __cplusplus 11928extern "C" 11929#endif 11930char dld_link (); 11931int 11932main () 11933{ 11934return dld_link (); 11935 ; 11936 return 0; 11937} 11938_ACEOF 11939rm -f conftest.$ac_objext conftest$ac_exeext 11940if { (ac_try="$ac_link" 11941case "(($ac_try" in 11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11943 *) ac_try_echo=$ac_try;; 11944esac 11945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11946$as_echo "$ac_try_echo") >&5 11947 (eval "$ac_link") 2>conftest.er1 11948 ac_status=$? 11949 grep -v '^ *+' conftest.er1 >conftest.err 11950 rm -f conftest.er1 11951 cat conftest.err >&5 11952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11953 (exit $ac_status); } && { 11954 test -z "$ac_c_werror_flag" || 11955 test ! -s conftest.err 11956 } && test -s conftest$ac_exeext && { 11957 test "$cross_compiling" = yes || 11958 $as_test_x conftest$ac_exeext 11959 }; then 11960 ac_cv_lib_dld_dld_link=yes 11961else 11962 $as_echo "$as_me: failed program was:" >&5 11963sed 's/^/| /' conftest.$ac_ext >&5 11964 11965 ac_cv_lib_dld_dld_link=no 11966fi 11967 11968rm -rf conftest.dSYM 11969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11970 conftest$ac_exeext conftest.$ac_ext 11971LIBS=$ac_check_lib_save_LIBS 11972fi 11973{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11974$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11975if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11976 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11977fi 11978 11979 11980fi 11981 11982 11983fi 11984 11985 11986fi 11987 11988 11989fi 11990 11991 11992fi 11993 11994 ;; 11995 esac 11996 11997 if test "x$lt_cv_dlopen" != xno; then 11998 enable_dlopen=yes 11999 else 12000 enable_dlopen=no 12001 fi 12002 12003 case $lt_cv_dlopen in 12004 dlopen) 12005 save_CPPFLAGS="$CPPFLAGS" 12006 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12007 12008 save_LDFLAGS="$LDFLAGS" 12009 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12010 12011 save_LIBS="$LIBS" 12012 LIBS="$lt_cv_dlopen_libs $LIBS" 12013 12014 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12015$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12016if test "${lt_cv_dlopen_self+set}" = set; then 12017 $as_echo_n "(cached) " >&6 12018else 12019 if test "$cross_compiling" = yes; then : 12020 lt_cv_dlopen_self=cross 12021else 12022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12023 lt_status=$lt_dlunknown 12024 cat > conftest.$ac_ext <<_LT_EOF 12025#line 12025 "configure" 12026#include "confdefs.h" 12027 12028#if HAVE_DLFCN_H 12029#include <dlfcn.h> 12030#endif 12031 12032#include <stdio.h> 12033 12034#ifdef RTLD_GLOBAL 12035# define LT_DLGLOBAL RTLD_GLOBAL 12036#else 12037# ifdef DL_GLOBAL 12038# define LT_DLGLOBAL DL_GLOBAL 12039# else 12040# define LT_DLGLOBAL 0 12041# endif 12042#endif 12043 12044/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12045 find out it does not work in some platform. */ 12046#ifndef LT_DLLAZY_OR_NOW 12047# ifdef RTLD_LAZY 12048# define LT_DLLAZY_OR_NOW RTLD_LAZY 12049# else 12050# ifdef DL_LAZY 12051# define LT_DLLAZY_OR_NOW DL_LAZY 12052# else 12053# ifdef RTLD_NOW 12054# define LT_DLLAZY_OR_NOW RTLD_NOW 12055# else 12056# ifdef DL_NOW 12057# define LT_DLLAZY_OR_NOW DL_NOW 12058# else 12059# define LT_DLLAZY_OR_NOW 0 12060# endif 12061# endif 12062# endif 12063# endif 12064#endif 12065 12066void fnord() { int i=42;} 12067int main () 12068{ 12069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12070 int status = $lt_dlunknown; 12071 12072 if (self) 12073 { 12074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12075 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12076 /* dlclose (self); */ 12077 } 12078 else 12079 puts (dlerror ()); 12080 12081 return status; 12082} 12083_LT_EOF 12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12085 (eval $ac_link) 2>&5 12086 ac_status=$? 12087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12088 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12089 (./conftest; exit; ) >&5 2>/dev/null 12090 lt_status=$? 12091 case x$lt_status in 12092 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12093 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12094 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12095 esac 12096 else : 12097 # compilation failed 12098 lt_cv_dlopen_self=no 12099 fi 12100fi 12101rm -fr conftest* 12102 12103 12104fi 12105{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12106$as_echo "$lt_cv_dlopen_self" >&6; } 12107 12108 if test "x$lt_cv_dlopen_self" = xyes; then 12109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12110 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12111$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12112if test "${lt_cv_dlopen_self_static+set}" = set; then 12113 $as_echo_n "(cached) " >&6 12114else 12115 if test "$cross_compiling" = yes; then : 12116 lt_cv_dlopen_self_static=cross 12117else 12118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12119 lt_status=$lt_dlunknown 12120 cat > conftest.$ac_ext <<_LT_EOF 12121#line 12121 "configure" 12122#include "confdefs.h" 12123 12124#if HAVE_DLFCN_H 12125#include <dlfcn.h> 12126#endif 12127 12128#include <stdio.h> 12129 12130#ifdef RTLD_GLOBAL 12131# define LT_DLGLOBAL RTLD_GLOBAL 12132#else 12133# ifdef DL_GLOBAL 12134# define LT_DLGLOBAL DL_GLOBAL 12135# else 12136# define LT_DLGLOBAL 0 12137# endif 12138#endif 12139 12140/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12141 find out it does not work in some platform. */ 12142#ifndef LT_DLLAZY_OR_NOW 12143# ifdef RTLD_LAZY 12144# define LT_DLLAZY_OR_NOW RTLD_LAZY 12145# else 12146# ifdef DL_LAZY 12147# define LT_DLLAZY_OR_NOW DL_LAZY 12148# else 12149# ifdef RTLD_NOW 12150# define LT_DLLAZY_OR_NOW RTLD_NOW 12151# else 12152# ifdef DL_NOW 12153# define LT_DLLAZY_OR_NOW DL_NOW 12154# else 12155# define LT_DLLAZY_OR_NOW 0 12156# endif 12157# endif 12158# endif 12159# endif 12160#endif 12161 12162void fnord() { int i=42;} 12163int main () 12164{ 12165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12166 int status = $lt_dlunknown; 12167 12168 if (self) 12169 { 12170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12171 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12172 /* dlclose (self); */ 12173 } 12174 else 12175 puts (dlerror ()); 12176 12177 return status; 12178} 12179_LT_EOF 12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12181 (eval $ac_link) 2>&5 12182 ac_status=$? 12183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12184 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12185 (./conftest; exit; ) >&5 2>/dev/null 12186 lt_status=$? 12187 case x$lt_status in 12188 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12189 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12190 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12191 esac 12192 else : 12193 # compilation failed 12194 lt_cv_dlopen_self_static=no 12195 fi 12196fi 12197rm -fr conftest* 12198 12199 12200fi 12201{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12202$as_echo "$lt_cv_dlopen_self_static" >&6; } 12203 fi 12204 12205 CPPFLAGS="$save_CPPFLAGS" 12206 LDFLAGS="$save_LDFLAGS" 12207 LIBS="$save_LIBS" 12208 ;; 12209 esac 12210 12211 case $lt_cv_dlopen_self in 12212 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12213 *) enable_dlopen_self=unknown ;; 12214 esac 12215 12216 case $lt_cv_dlopen_self_static in 12217 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12218 *) enable_dlopen_self_static=unknown ;; 12219 esac 12220fi 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238striplib= 12239old_striplib= 12240{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12241$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12242if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12243 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12244 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12245 { $as_echo "$as_me:$LINENO: result: yes" >&5 12246$as_echo "yes" >&6; } 12247else 12248# FIXME - insert some real tests, host_os isn't really good enough 12249 case $host_os in 12250 darwin*) 12251 if test -n "$STRIP" ; then 12252 striplib="$STRIP -x" 12253 old_striplib="$STRIP -S" 12254 { $as_echo "$as_me:$LINENO: result: yes" >&5 12255$as_echo "yes" >&6; } 12256 else 12257 { $as_echo "$as_me:$LINENO: result: no" >&5 12258$as_echo "no" >&6; } 12259 fi 12260 ;; 12261 *) 12262 { $as_echo "$as_me:$LINENO: result: no" >&5 12263$as_echo "no" >&6; } 12264 ;; 12265 esac 12266fi 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 # Report which library types will actually be built 12280 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12281$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12282 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 12283$as_echo "$can_build_shared" >&6; } 12284 12285 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12286$as_echo_n "checking whether to build shared libraries... " >&6; } 12287 test "$can_build_shared" = "no" && enable_shared=no 12288 12289 # On AIX, shared libraries and static libraries use the same namespace, and 12290 # are all built from PIC. 12291 case $host_os in 12292 aix3*) 12293 test "$enable_shared" = yes && enable_static=no 12294 if test -n "$RANLIB"; then 12295 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12296 postinstall_cmds='$RANLIB $lib' 12297 fi 12298 ;; 12299 12300 aix[4-9]*) 12301 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12302 test "$enable_shared" = yes && enable_static=no 12303 fi 12304 ;; 12305 esac 12306 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 12307$as_echo "$enable_shared" >&6; } 12308 12309 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12310$as_echo_n "checking whether to build static libraries... " >&6; } 12311 # Make sure either enable_shared or enable_static is yes. 12312 test "$enable_shared" = yes || enable_static=yes 12313 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 12314$as_echo "$enable_static" >&6; } 12315 12316 12317 12318 12319fi 12320ac_ext=c 12321ac_cpp='$CPP $CPPFLAGS' 12322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12324ac_compiler_gnu=$ac_cv_c_compiler_gnu 12325 12326CC="$lt_save_CC" 12327 12328 12329ac_ext=cpp 12330ac_cpp='$CXXCPP $CPPFLAGS' 12331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12334 12335archive_cmds_need_lc_CXX=no 12336allow_undefined_flag_CXX= 12337always_export_symbols_CXX=no 12338archive_expsym_cmds_CXX= 12339compiler_needs_object_CXX=no 12340export_dynamic_flag_spec_CXX= 12341hardcode_direct_CXX=no 12342hardcode_direct_absolute_CXX=no 12343hardcode_libdir_flag_spec_CXX= 12344hardcode_libdir_flag_spec_ld_CXX= 12345hardcode_libdir_separator_CXX= 12346hardcode_minus_L_CXX=no 12347hardcode_shlibpath_var_CXX=unsupported 12348hardcode_automatic_CXX=no 12349inherit_rpath_CXX=no 12350module_cmds_CXX= 12351module_expsym_cmds_CXX= 12352link_all_deplibs_CXX=unknown 12353old_archive_cmds_CXX=$old_archive_cmds 12354no_undefined_flag_CXX= 12355whole_archive_flag_spec_CXX= 12356enable_shared_with_static_runtimes_CXX=no 12357 12358# Source file extension for C++ test sources. 12359ac_ext=cpp 12360 12361# Object file extension for compiled C++ test sources. 12362objext=o 12363objext_CXX=$objext 12364 12365# No sense in running all these tests if we already determined that 12366# the CXX compiler isn't working. Some variables (like enable_shared) 12367# are currently assumed to apply to all compilers on this platform, 12368# and will be corrupted by setting them based on a non-working compiler. 12369if test "$_lt_caught_CXX_error" != yes; then 12370 # Code to be used in simple compile tests 12371 lt_simple_compile_test_code="int some_variable = 0;" 12372 12373 # Code to be used in simple link tests 12374 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12375 12376 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12377 12378 12379 12380 12381 12382 12383# If no C compiler was specified, use CC. 12384LTCC=${LTCC-"$CC"} 12385 12386# If no C compiler flags were specified, use CFLAGS. 12387LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12388 12389# Allow CC to be a program name with arguments. 12390compiler=$CC 12391 12392 12393 # save warnings/boilerplate of simple test code 12394 ac_outfile=conftest.$ac_objext 12395echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12396eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12397_lt_compiler_boilerplate=`cat conftest.err` 12398$RM conftest* 12399 12400 ac_outfile=conftest.$ac_objext 12401echo "$lt_simple_link_test_code" >conftest.$ac_ext 12402eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12403_lt_linker_boilerplate=`cat conftest.err` 12404$RM -r conftest* 12405 12406 12407 # Allow CC to be a program name with arguments. 12408 lt_save_CC=$CC 12409 lt_save_LD=$LD 12410 lt_save_GCC=$GCC 12411 GCC=$GXX 12412 lt_save_with_gnu_ld=$with_gnu_ld 12413 lt_save_path_LD=$lt_cv_path_LD 12414 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12415 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12416 else 12417 $as_unset lt_cv_prog_gnu_ld 12418 fi 12419 if test -n "${lt_cv_path_LDCXX+set}"; then 12420 lt_cv_path_LD=$lt_cv_path_LDCXX 12421 else 12422 $as_unset lt_cv_path_LD 12423 fi 12424 test -z "${LDCXX+set}" || LD=$LDCXX 12425 CC=${CXX-"c++"} 12426 compiler=$CC 12427 compiler_CXX=$CC 12428 for cc_temp in $compiler""; do 12429 case $cc_temp in 12430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12432 \-*) ;; 12433 *) break;; 12434 esac 12435done 12436cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12437 12438 12439 if test -n "$compiler"; then 12440 # We don't want -fno-exception when compiling C++ code, so set the 12441 # no_builtin_flag separately 12442 if test "$GXX" = yes; then 12443 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12444 else 12445 lt_prog_compiler_no_builtin_flag_CXX= 12446 fi 12447 12448 if test "$GXX" = yes; then 12449 # Set up default GNU C++ configuration 12450 12451 12452 12453# Check whether --with-gnu-ld was given. 12454if test "${with_gnu_ld+set}" = set; then 12455 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12456else 12457 with_gnu_ld=no 12458fi 12459 12460ac_prog=ld 12461if test "$GCC" = yes; then 12462 # Check if gcc -print-prog-name=ld gives a path. 12463 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12464$as_echo_n "checking for ld used by $CC... " >&6; } 12465 case $host in 12466 *-*-mingw*) 12467 # gcc leaves a trailing carriage return which upsets mingw 12468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12469 *) 12470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12471 esac 12472 case $ac_prog in 12473 # Accept absolute paths. 12474 [\\/]* | ?:[\\/]*) 12475 re_direlt='/[^/][^/]*/\.\./' 12476 # Canonicalize the pathname of ld 12477 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12478 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12479 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12480 done 12481 test -z "$LD" && LD="$ac_prog" 12482 ;; 12483 "") 12484 # If it fails, then pretend we aren't using GCC. 12485 ac_prog=ld 12486 ;; 12487 *) 12488 # If it is relative, then search for the first ld in PATH. 12489 with_gnu_ld=unknown 12490 ;; 12491 esac 12492elif test "$with_gnu_ld" = yes; then 12493 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 12494$as_echo_n "checking for GNU ld... " >&6; } 12495else 12496 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12497$as_echo_n "checking for non-GNU ld... " >&6; } 12498fi 12499if test "${lt_cv_path_LD+set}" = set; then 12500 $as_echo_n "(cached) " >&6 12501else 12502 if test -z "$LD"; then 12503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12504 for ac_dir in $PATH; do 12505 IFS="$lt_save_ifs" 12506 test -z "$ac_dir" && ac_dir=. 12507 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12508 lt_cv_path_LD="$ac_dir/$ac_prog" 12509 # Check to see if the program is GNU ld. I'd rather use --version, 12510 # but apparently some variants of GNU ld only accept -v. 12511 # Break only if it was the GNU/non-GNU ld that we prefer. 12512 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12513 *GNU* | *'with BFD'*) 12514 test "$with_gnu_ld" != no && break 12515 ;; 12516 *) 12517 test "$with_gnu_ld" != yes && break 12518 ;; 12519 esac 12520 fi 12521 done 12522 IFS="$lt_save_ifs" 12523else 12524 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12525fi 12526fi 12527 12528LD="$lt_cv_path_LD" 12529if test -n "$LD"; then 12530 { $as_echo "$as_me:$LINENO: result: $LD" >&5 12531$as_echo "$LD" >&6; } 12532else 12533 { $as_echo "$as_me:$LINENO: result: no" >&5 12534$as_echo "no" >&6; } 12535fi 12536test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12537$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12538 { (exit 1); exit 1; }; } 12539{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12540$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12541if test "${lt_cv_prog_gnu_ld+set}" = set; then 12542 $as_echo_n "(cached) " >&6 12543else 12544 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12545case `$LD -v 2>&1 </dev/null` in 12546*GNU* | *'with BFD'*) 12547 lt_cv_prog_gnu_ld=yes 12548 ;; 12549*) 12550 lt_cv_prog_gnu_ld=no 12551 ;; 12552esac 12553fi 12554{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12555$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12556with_gnu_ld=$lt_cv_prog_gnu_ld 12557 12558 12559 12560 12561 12562 12563 12564 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12565 # archiving commands below assume that GNU ld is being used. 12566 if test "$with_gnu_ld" = yes; then 12567 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12568 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' 12569 12570 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12571 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12572 12573 # If archive_cmds runs LD, not CC, wlarc should be empty 12574 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12575 # investigate it a little bit more. (MM) 12576 wlarc='${wl}' 12577 12578 # ancient GNU ld didn't support --whole-archive et. al. 12579 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12580 $GREP 'no-whole-archive' > /dev/null; then 12581 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12582 else 12583 whole_archive_flag_spec_CXX= 12584 fi 12585 else 12586 with_gnu_ld=no 12587 wlarc= 12588 12589 # A generic and very simple default shared library creation 12590 # command for GNU C++ for the case where it uses the native 12591 # linker, instead of GNU ld. If possible, this setting should 12592 # overridden to take advantage of the native linker features on 12593 # the platform it is being used on. 12594 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12595 fi 12596 12597 # Commands to make compiler produce verbose output that lists 12598 # what "hidden" libraries, object files and flags are used when 12599 # linking a shared library. 12600 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12601 12602 else 12603 GXX=no 12604 with_gnu_ld=no 12605 wlarc= 12606 fi 12607 12608 # PORTME: fill in a description of your system's C++ link characteristics 12609 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12610$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12611 ld_shlibs_CXX=yes 12612 case $host_os in 12613 aix3*) 12614 # FIXME: insert proper C++ library support 12615 ld_shlibs_CXX=no 12616 ;; 12617 aix[4-9]*) 12618 if test "$host_cpu" = ia64; then 12619 # On IA64, the linker does run time linking by default, so we don't 12620 # have to do anything special. 12621 aix_use_runtimelinking=no 12622 exp_sym_flag='-Bexport' 12623 no_entry_flag="" 12624 else 12625 aix_use_runtimelinking=no 12626 12627 # Test if we are trying to use run time linking or normal 12628 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12629 # need to do runtime linking. 12630 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12631 for ld_flag in $LDFLAGS; do 12632 case $ld_flag in 12633 *-brtl*) 12634 aix_use_runtimelinking=yes 12635 break 12636 ;; 12637 esac 12638 done 12639 ;; 12640 esac 12641 12642 exp_sym_flag='-bexport' 12643 no_entry_flag='-bnoentry' 12644 fi 12645 12646 # When large executables or shared objects are built, AIX ld can 12647 # have problems creating the table of contents. If linking a library 12648 # or program results in "error TOC overflow" add -mminimal-toc to 12649 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12650 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12651 12652 archive_cmds_CXX='' 12653 hardcode_direct_CXX=yes 12654 hardcode_direct_absolute_CXX=yes 12655 hardcode_libdir_separator_CXX=':' 12656 link_all_deplibs_CXX=yes 12657 file_list_spec_CXX='${wl}-f,' 12658 12659 if test "$GXX" = yes; then 12660 case $host_os in aix4.[012]|aix4.[012].*) 12661 # We only want to do this on AIX 4.2 and lower, the check 12662 # below for broken collect2 doesn't work under 4.3+ 12663 collect2name=`${CC} -print-prog-name=collect2` 12664 if test -f "$collect2name" && 12665 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12666 then 12667 # We have reworked collect2 12668 : 12669 else 12670 # We have old collect2 12671 hardcode_direct_CXX=unsupported 12672 # It fails to find uninstalled libraries when the uninstalled 12673 # path is not listed in the libpath. Setting hardcode_minus_L 12674 # to unsupported forces relinking 12675 hardcode_minus_L_CXX=yes 12676 hardcode_libdir_flag_spec_CXX='-L$libdir' 12677 hardcode_libdir_separator_CXX= 12678 fi 12679 esac 12680 shared_flag='-shared' 12681 if test "$aix_use_runtimelinking" = yes; then 12682 shared_flag="$shared_flag "'${wl}-G' 12683 fi 12684 else 12685 # not using gcc 12686 if test "$host_cpu" = ia64; then 12687 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12688 # chokes on -Wl,-G. The following line is correct: 12689 shared_flag='-G' 12690 else 12691 if test "$aix_use_runtimelinking" = yes; then 12692 shared_flag='${wl}-G' 12693 else 12694 shared_flag='${wl}-bM:SRE' 12695 fi 12696 fi 12697 fi 12698 12699 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12700 # It seems that -bexpall does not export symbols beginning with 12701 # underscore (_), so it is better to generate a list of symbols to 12702 # export. 12703 always_export_symbols_CXX=yes 12704 if test "$aix_use_runtimelinking" = yes; then 12705 # Warning - without using the other runtime loading flags (-brtl), 12706 # -berok will link without error, but may produce a broken library. 12707 allow_undefined_flag_CXX='-berok' 12708 # Determine the default libpath from the value encoded in an empty 12709 # executable. 12710 cat >conftest.$ac_ext <<_ACEOF 12711/* confdefs.h. */ 12712_ACEOF 12713cat confdefs.h >>conftest.$ac_ext 12714cat >>conftest.$ac_ext <<_ACEOF 12715/* end confdefs.h. */ 12716 12717int 12718main () 12719{ 12720 12721 ; 12722 return 0; 12723} 12724_ACEOF 12725rm -f conftest.$ac_objext conftest$ac_exeext 12726if { (ac_try="$ac_link" 12727case "(($ac_try" in 12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12729 *) ac_try_echo=$ac_try;; 12730esac 12731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12732$as_echo "$ac_try_echo") >&5 12733 (eval "$ac_link") 2>conftest.er1 12734 ac_status=$? 12735 grep -v '^ *+' conftest.er1 >conftest.err 12736 rm -f conftest.er1 12737 cat conftest.err >&5 12738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12739 (exit $ac_status); } && { 12740 test -z "$ac_cxx_werror_flag" || 12741 test ! -s conftest.err 12742 } && test -s conftest$ac_exeext && { 12743 test "$cross_compiling" = yes || 12744 $as_test_x conftest$ac_exeext 12745 }; then 12746 12747lt_aix_libpath_sed=' 12748 /Import File Strings/,/^$/ { 12749 /^0/ { 12750 s/^0 *\(.*\)$/\1/ 12751 p 12752 } 12753 }' 12754aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12755# Check for a 64-bit object if we didn't find anything. 12756if test -z "$aix_libpath"; then 12757 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12758fi 12759else 12760 $as_echo "$as_me: failed program was:" >&5 12761sed 's/^/| /' conftest.$ac_ext >&5 12762 12763 12764fi 12765 12766rm -rf conftest.dSYM 12767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12768 conftest$ac_exeext conftest.$ac_ext 12769if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12770 12771 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12772 12773 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12774 else 12775 if test "$host_cpu" = ia64; then 12776 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12777 allow_undefined_flag_CXX="-z nodefs" 12778 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" 12779 else 12780 # Determine the default libpath from the value encoded in an 12781 # empty executable. 12782 cat >conftest.$ac_ext <<_ACEOF 12783/* confdefs.h. */ 12784_ACEOF 12785cat confdefs.h >>conftest.$ac_ext 12786cat >>conftest.$ac_ext <<_ACEOF 12787/* end confdefs.h. */ 12788 12789int 12790main () 12791{ 12792 12793 ; 12794 return 0; 12795} 12796_ACEOF 12797rm -f conftest.$ac_objext conftest$ac_exeext 12798if { (ac_try="$ac_link" 12799case "(($ac_try" in 12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12801 *) ac_try_echo=$ac_try;; 12802esac 12803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12804$as_echo "$ac_try_echo") >&5 12805 (eval "$ac_link") 2>conftest.er1 12806 ac_status=$? 12807 grep -v '^ *+' conftest.er1 >conftest.err 12808 rm -f conftest.er1 12809 cat conftest.err >&5 12810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12811 (exit $ac_status); } && { 12812 test -z "$ac_cxx_werror_flag" || 12813 test ! -s conftest.err 12814 } && test -s conftest$ac_exeext && { 12815 test "$cross_compiling" = yes || 12816 $as_test_x conftest$ac_exeext 12817 }; then 12818 12819lt_aix_libpath_sed=' 12820 /Import File Strings/,/^$/ { 12821 /^0/ { 12822 s/^0 *\(.*\)$/\1/ 12823 p 12824 } 12825 }' 12826aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12827# Check for a 64-bit object if we didn't find anything. 12828if test -z "$aix_libpath"; then 12829 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12830fi 12831else 12832 $as_echo "$as_me: failed program was:" >&5 12833sed 's/^/| /' conftest.$ac_ext >&5 12834 12835 12836fi 12837 12838rm -rf conftest.dSYM 12839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12840 conftest$ac_exeext conftest.$ac_ext 12841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12842 12843 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12844 # Warning - without using the other run time loading flags, 12845 # -berok will link without error, but may produce a broken library. 12846 no_undefined_flag_CXX=' ${wl}-bernotok' 12847 allow_undefined_flag_CXX=' ${wl}-berok' 12848 # Exported symbols can be pulled into shared objects from archives 12849 whole_archive_flag_spec_CXX='$convenience' 12850 archive_cmds_need_lc_CXX=yes 12851 # This is similar to how AIX traditionally builds its shared 12852 # libraries. 12853 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' 12854 fi 12855 fi 12856 ;; 12857 12858 beos*) 12859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12860 allow_undefined_flag_CXX=unsupported 12861 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12862 # support --undefined. This deserves some investigation. FIXME 12863 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12864 else 12865 ld_shlibs_CXX=no 12866 fi 12867 ;; 12868 12869 chorus*) 12870 case $cc_basename in 12871 *) 12872 # FIXME: insert proper C++ library support 12873 ld_shlibs_CXX=no 12874 ;; 12875 esac 12876 ;; 12877 12878 cygwin* | mingw* | pw32* | cegcc*) 12879 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12880 # as there is no search path for DLLs. 12881 hardcode_libdir_flag_spec_CXX='-L$libdir' 12882 allow_undefined_flag_CXX=unsupported 12883 always_export_symbols_CXX=no 12884 enable_shared_with_static_runtimes_CXX=yes 12885 12886 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12887 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' 12888 # If the export-symbols file already is a .def file (1st line 12889 # is EXPORTS), use it as is; otherwise, prepend... 12890 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12891 cp $export_symbols $output_objdir/$soname.def; 12892 else 12893 echo EXPORTS > $output_objdir/$soname.def; 12894 cat $export_symbols >> $output_objdir/$soname.def; 12895 fi~ 12896 $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' 12897 else 12898 ld_shlibs_CXX=no 12899 fi 12900 ;; 12901 darwin* | rhapsody*) 12902 12903 12904 archive_cmds_need_lc_CXX=no 12905 hardcode_direct_CXX=no 12906 hardcode_automatic_CXX=yes 12907 hardcode_shlibpath_var_CXX=unsupported 12908 whole_archive_flag_spec_CXX='' 12909 link_all_deplibs_CXX=yes 12910 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12911 case $cc_basename in 12912 ifort*) _lt_dar_can_shared=yes ;; 12913 *) _lt_dar_can_shared=$GCC ;; 12914 esac 12915 if test "$_lt_dar_can_shared" = "yes"; then 12916 output_verbose_link_cmd=echo 12917 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}" 12918 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12919 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}" 12920 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}" 12921 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12922 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}" 12923 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}" 12924 fi 12925 12926 else 12927 ld_shlibs_CXX=no 12928 fi 12929 12930 ;; 12931 12932 dgux*) 12933 case $cc_basename in 12934 ec++*) 12935 # FIXME: insert proper C++ library support 12936 ld_shlibs_CXX=no 12937 ;; 12938 ghcx*) 12939 # Green Hills C++ Compiler 12940 # FIXME: insert proper C++ library support 12941 ld_shlibs_CXX=no 12942 ;; 12943 *) 12944 # FIXME: insert proper C++ library support 12945 ld_shlibs_CXX=no 12946 ;; 12947 esac 12948 ;; 12949 12950 freebsd[12]*) 12951 # C++ shared libraries reported to be fairly broken before 12952 # switch to ELF 12953 ld_shlibs_CXX=no 12954 ;; 12955 12956 freebsd-elf*) 12957 archive_cmds_need_lc_CXX=no 12958 ;; 12959 12960 freebsd* | dragonfly*) 12961 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12962 # conventions 12963 ld_shlibs_CXX=yes 12964 ;; 12965 12966 gnu*) 12967 ;; 12968 12969 hpux9*) 12970 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12971 hardcode_libdir_separator_CXX=: 12972 export_dynamic_flag_spec_CXX='${wl}-E' 12973 hardcode_direct_CXX=yes 12974 hardcode_minus_L_CXX=yes # Not in the search PATH, 12975 # but as the default 12976 # location of the library. 12977 12978 case $cc_basename in 12979 CC*) 12980 # FIXME: insert proper C++ library support 12981 ld_shlibs_CXX=no 12982 ;; 12983 aCC*) 12984 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' 12985 # Commands to make compiler produce verbose output that lists 12986 # what "hidden" libraries, object files and flags are used when 12987 # linking a shared library. 12988 # 12989 # There doesn't appear to be a way to prevent this compiler from 12990 # explicitly linking system object files so we need to strip them 12991 # from the output so that they don't get included in the library 12992 # dependencies. 12993 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; $ECHO "X$list" | $Xsed' 12994 ;; 12995 *) 12996 if test "$GXX" = yes; then 12997 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' 12998 else 12999 # FIXME: insert proper C++ library support 13000 ld_shlibs_CXX=no 13001 fi 13002 ;; 13003 esac 13004 ;; 13005 13006 hpux10*|hpux11*) 13007 if test $with_gnu_ld = no; then 13008 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13009 hardcode_libdir_separator_CXX=: 13010 13011 case $host_cpu in 13012 hppa*64*|ia64*) 13013 ;; 13014 *) 13015 export_dynamic_flag_spec_CXX='${wl}-E' 13016 ;; 13017 esac 13018 fi 13019 case $host_cpu in 13020 hppa*64*|ia64*) 13021 hardcode_direct_CXX=no 13022 hardcode_shlibpath_var_CXX=no 13023 ;; 13024 *) 13025 hardcode_direct_CXX=yes 13026 hardcode_direct_absolute_CXX=yes 13027 hardcode_minus_L_CXX=yes # Not in the search PATH, 13028 # but as the default 13029 # location of the library. 13030 ;; 13031 esac 13032 13033 case $cc_basename in 13034 CC*) 13035 # FIXME: insert proper C++ library support 13036 ld_shlibs_CXX=no 13037 ;; 13038 aCC*) 13039 case $host_cpu in 13040 hppa*64*) 13041 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13042 ;; 13043 ia64*) 13044 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13045 ;; 13046 *) 13047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13048 ;; 13049 esac 13050 # Commands to make compiler produce verbose output that lists 13051 # what "hidden" libraries, object files and flags are used when 13052 # linking a shared library. 13053 # 13054 # There doesn't appear to be a way to prevent this compiler from 13055 # explicitly linking system object files so we need to strip them 13056 # from the output so that they don't get included in the library 13057 # dependencies. 13058 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; $ECHO "X$list" | $Xsed' 13059 ;; 13060 *) 13061 if test "$GXX" = yes; then 13062 if test $with_gnu_ld = no; then 13063 case $host_cpu in 13064 hppa*64*) 13065 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13066 ;; 13067 ia64*) 13068 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13069 ;; 13070 *) 13071 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13072 ;; 13073 esac 13074 fi 13075 else 13076 # FIXME: insert proper C++ library support 13077 ld_shlibs_CXX=no 13078 fi 13079 ;; 13080 esac 13081 ;; 13082 13083 interix[3-9]*) 13084 hardcode_direct_CXX=no 13085 hardcode_shlibpath_var_CXX=no 13086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13087 export_dynamic_flag_spec_CXX='${wl}-E' 13088 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13089 # Instead, shared libraries are loaded at an image base (0x10000000 by 13090 # default) and relocated if they conflict, which is a slow very memory 13091 # consuming and fragmenting process. To avoid this, we pick a random, 13092 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13093 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13094 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13095 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13096 ;; 13097 irix5* | irix6*) 13098 case $cc_basename in 13099 CC*) 13100 # SGI C++ 13101 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13102 13103 # Archives containing C++ object files must be created using 13104 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13105 # necessary to make sure instantiated templates are included 13106 # in the archive. 13107 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13108 ;; 13109 *) 13110 if test "$GXX" = yes; then 13111 if test "$with_gnu_ld" = no; then 13112 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13113 else 13114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 13115 fi 13116 fi 13117 link_all_deplibs_CXX=yes 13118 ;; 13119 esac 13120 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13121 hardcode_libdir_separator_CXX=: 13122 inherit_rpath_CXX=yes 13123 ;; 13124 13125 linux* | k*bsd*-gnu) 13126 case $cc_basename in 13127 KCC*) 13128 # Kuck and Associates, Inc. (KAI) C++ Compiler 13129 13130 # KCC will only create a shared library if the output file 13131 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13132 # to its proper name (with version) after linking. 13133 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13134 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13135 # Commands to make compiler produce verbose output that lists 13136 # what "hidden" libraries, object files and flags are used when 13137 # linking a shared library. 13138 # 13139 # There doesn't appear to be a way to prevent this compiler from 13140 # explicitly linking system object files so we need to strip them 13141 # from the output so that they don't get included in the library 13142 # dependencies. 13143 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13144 13145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13146 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13147 13148 # Archives containing C++ object files must be created using 13149 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13150 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13151 ;; 13152 icpc* | ecpc* ) 13153 # Intel C++ 13154 with_gnu_ld=yes 13155 # version 8.0 and above of icpc choke on multiply defined symbols 13156 # if we add $predep_objects and $postdep_objects, however 7.1 and 13157 # earlier do not add the objects themselves. 13158 case `$CC -V 2>&1` in 13159 *"Version 7."*) 13160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13161 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13162 ;; 13163 *) # Version 8.0 or newer 13164 tmp_idyn= 13165 case $host_cpu in 13166 ia64*) tmp_idyn=' -i_dynamic';; 13167 esac 13168 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13169 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13170 ;; 13171 esac 13172 archive_cmds_need_lc_CXX=no 13173 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13175 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13176 ;; 13177 pgCC* | pgcpp*) 13178 # Portland Group C++ compiler 13179 case `$CC -V` in 13180 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 13181 prelink_cmds_CXX='tpldir=Template.dir~ 13182 rm -rf $tpldir~ 13183 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13184 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 13185 old_archive_cmds_CXX='tpldir=Template.dir~ 13186 rm -rf $tpldir~ 13187 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13188 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 13189 $RANLIB $oldlib' 13190 archive_cmds_CXX='tpldir=Template.dir~ 13191 rm -rf $tpldir~ 13192 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13193 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13194 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13195 rm -rf $tpldir~ 13196 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13197 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13198 ;; 13199 *) # Version 6 will use weak symbols 13200 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13201 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13202 ;; 13203 esac 13204 13205 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13207 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 13208 ;; 13209 cxx*) 13210 # Compaq C++ 13211 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13212 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13213 13214 runpath_var=LD_RUN_PATH 13215 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13216 hardcode_libdir_separator_CXX=: 13217 13218 # Commands to make compiler produce verbose output that lists 13219 # what "hidden" libraries, object files and flags are used when 13220 # linking a shared library. 13221 # 13222 # There doesn't appear to be a way to prevent this compiler from 13223 # explicitly linking system object files so we need to strip them 13224 # from the output so that they don't get included in the library 13225 # dependencies. 13226 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13227 ;; 13228 xl*) 13229 # IBM XL 8.0 on PPC, with GNU ld 13230 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13231 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13232 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13233 if test "x$supports_anon_versioning" = xyes; then 13234 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13236 echo "local: *; };" >> $output_objdir/$libname.ver~ 13237 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13238 fi 13239 ;; 13240 *) 13241 case `$CC -V 2>&1 | sed 5q` in 13242 *Sun\ C*) 13243 # Sun C++ 5.9 13244 no_undefined_flag_CXX=' -zdefs' 13245 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13246 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13247 hardcode_libdir_flag_spec_CXX='-R$libdir' 13248 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 13249 compiler_needs_object_CXX=yes 13250 13251 # Not sure whether something based on 13252 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13253 # would be better. 13254 output_verbose_link_cmd='echo' 13255 13256 # Archives containing C++ object files must be created using 13257 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13258 # necessary to make sure instantiated templates are included 13259 # in the archive. 13260 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13261 ;; 13262 esac 13263 ;; 13264 esac 13265 ;; 13266 13267 lynxos*) 13268 # FIXME: insert proper C++ library support 13269 ld_shlibs_CXX=no 13270 ;; 13271 13272 m88k*) 13273 # FIXME: insert proper C++ library support 13274 ld_shlibs_CXX=no 13275 ;; 13276 13277 mvs*) 13278 case $cc_basename in 13279 cxx*) 13280 # FIXME: insert proper C++ library support 13281 ld_shlibs_CXX=no 13282 ;; 13283 *) 13284 # FIXME: insert proper C++ library support 13285 ld_shlibs_CXX=no 13286 ;; 13287 esac 13288 ;; 13289 13290 netbsd*) 13291 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13292 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13293 wlarc= 13294 hardcode_libdir_flag_spec_CXX='-R$libdir' 13295 hardcode_direct_CXX=yes 13296 hardcode_shlibpath_var_CXX=no 13297 fi 13298 # Workaround some broken pre-1.5 toolchains 13299 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13300 ;; 13301 13302 *nto* | *qnx*) 13303 ld_shlibs_CXX=yes 13304 ;; 13305 13306 openbsd2*) 13307 # C++ shared libraries are fairly broken 13308 ld_shlibs_CXX=no 13309 ;; 13310 13311 openbsd*) 13312 if test -f /usr/libexec/ld.so; then 13313 hardcode_direct_CXX=yes 13314 hardcode_shlibpath_var_CXX=no 13315 hardcode_direct_absolute_CXX=yes 13316 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13317 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13319 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13320 export_dynamic_flag_spec_CXX='${wl}-E' 13321 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13322 fi 13323 output_verbose_link_cmd=echo 13324 else 13325 ld_shlibs_CXX=no 13326 fi 13327 ;; 13328 13329 osf3* | osf4* | osf5*) 13330 case $cc_basename in 13331 KCC*) 13332 # Kuck and Associates, Inc. (KAI) C++ Compiler 13333 13334 # KCC will only create a shared library if the output file 13335 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13336 # to its proper name (with version) after linking. 13337 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13338 13339 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13340 hardcode_libdir_separator_CXX=: 13341 13342 # Archives containing C++ object files must be created using 13343 # the KAI C++ compiler. 13344 case $host in 13345 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13346 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13347 esac 13348 ;; 13349 RCC*) 13350 # Rational C++ 2.4.1 13351 # FIXME: insert proper C++ library support 13352 ld_shlibs_CXX=no 13353 ;; 13354 cxx*) 13355 case $host in 13356 osf3*) 13357 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13358 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13359 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13360 ;; 13361 *) 13362 allow_undefined_flag_CXX=' -expect_unresolved \*' 13363 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13364 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13365 echo "-hidden">> $lib.exp~ 13366 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 13367 $RM $lib.exp' 13368 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13369 ;; 13370 esac 13371 13372 hardcode_libdir_separator_CXX=: 13373 13374 # Commands to make compiler produce verbose output that lists 13375 # what "hidden" libraries, object files and flags are used when 13376 # linking a shared library. 13377 # 13378 # There doesn't appear to be a way to prevent this compiler from 13379 # explicitly linking system object files so we need to strip them 13380 # from the output so that they don't get included in the library 13381 # dependencies. 13382 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13383 ;; 13384 *) 13385 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13386 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13387 case $host in 13388 osf3*) 13389 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13390 ;; 13391 *) 13392 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13393 ;; 13394 esac 13395 13396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13397 hardcode_libdir_separator_CXX=: 13398 13399 # Commands to make compiler produce verbose output that lists 13400 # what "hidden" libraries, object files and flags are used when 13401 # linking a shared library. 13402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13403 13404 else 13405 # FIXME: insert proper C++ library support 13406 ld_shlibs_CXX=no 13407 fi 13408 ;; 13409 esac 13410 ;; 13411 13412 psos*) 13413 # FIXME: insert proper C++ library support 13414 ld_shlibs_CXX=no 13415 ;; 13416 13417 sunos4*) 13418 case $cc_basename in 13419 CC*) 13420 # Sun C++ 4.x 13421 # FIXME: insert proper C++ library support 13422 ld_shlibs_CXX=no 13423 ;; 13424 lcc*) 13425 # Lucid 13426 # FIXME: insert proper C++ library support 13427 ld_shlibs_CXX=no 13428 ;; 13429 *) 13430 # FIXME: insert proper C++ library support 13431 ld_shlibs_CXX=no 13432 ;; 13433 esac 13434 ;; 13435 13436 solaris*) 13437 case $cc_basename in 13438 CC*) 13439 # Sun C++ 4.2, 5.x and Centerline C++ 13440 archive_cmds_need_lc_CXX=yes 13441 no_undefined_flag_CXX=' -zdefs' 13442 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13443 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13444 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13445 13446 hardcode_libdir_flag_spec_CXX='-R$libdir' 13447 hardcode_shlibpath_var_CXX=no 13448 case $host_os in 13449 solaris2.[0-5] | solaris2.[0-5].*) ;; 13450 *) 13451 # The compiler driver will combine and reorder linker options, 13452 # but understands `-z linker_flag'. 13453 # Supported since Solaris 2.6 (maybe 2.5.1?) 13454 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13455 ;; 13456 esac 13457 link_all_deplibs_CXX=yes 13458 13459 output_verbose_link_cmd='echo' 13460 13461 # Archives containing C++ object files must be created using 13462 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13463 # necessary to make sure instantiated templates are included 13464 # in the archive. 13465 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13466 ;; 13467 gcx*) 13468 # Green Hills C++ Compiler 13469 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13470 13471 # The C++ compiler must be used to create the archive. 13472 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13473 ;; 13474 *) 13475 # GNU C++ compiler with Solaris linker 13476 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13477 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13478 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13479 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13480 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13481 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13482 13483 # Commands to make compiler produce verbose output that lists 13484 # what "hidden" libraries, object files and flags are used when 13485 # linking a shared library. 13486 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13487 else 13488 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13489 # platform. 13490 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13491 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13492 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13493 13494 # Commands to make compiler produce verbose output that lists 13495 # what "hidden" libraries, object files and flags are used when 13496 # linking a shared library. 13497 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13498 fi 13499 13500 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13501 case $host_os in 13502 solaris2.[0-5] | solaris2.[0-5].*) ;; 13503 *) 13504 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13505 ;; 13506 esac 13507 fi 13508 ;; 13509 esac 13510 ;; 13511 13512 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13513 no_undefined_flag_CXX='${wl}-z,text' 13514 archive_cmds_need_lc_CXX=no 13515 hardcode_shlibpath_var_CXX=no 13516 runpath_var='LD_RUN_PATH' 13517 13518 case $cc_basename in 13519 CC*) 13520 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13521 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13522 ;; 13523 *) 13524 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13525 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13526 ;; 13527 esac 13528 ;; 13529 13530 sysv5* | sco3.2v5* | sco5v6*) 13531 # Note: We can NOT use -z defs as we might desire, because we do not 13532 # link with -lc, and that would cause any symbols used from libc to 13533 # always be unresolved, which means just about no library would 13534 # ever link correctly. If we're not using GNU ld we use -z text 13535 # though, which does catch some bad symbols but isn't as heavy-handed 13536 # as -z defs. 13537 no_undefined_flag_CXX='${wl}-z,text' 13538 allow_undefined_flag_CXX='${wl}-z,nodefs' 13539 archive_cmds_need_lc_CXX=no 13540 hardcode_shlibpath_var_CXX=no 13541 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13542 hardcode_libdir_separator_CXX=':' 13543 link_all_deplibs_CXX=yes 13544 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13545 runpath_var='LD_RUN_PATH' 13546 13547 case $cc_basename in 13548 CC*) 13549 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13550 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13551 ;; 13552 *) 13553 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13554 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13555 ;; 13556 esac 13557 ;; 13558 13559 tandem*) 13560 case $cc_basename in 13561 NCC*) 13562 # NonStop-UX NCC 3.20 13563 # FIXME: insert proper C++ library support 13564 ld_shlibs_CXX=no 13565 ;; 13566 *) 13567 # FIXME: insert proper C++ library support 13568 ld_shlibs_CXX=no 13569 ;; 13570 esac 13571 ;; 13572 13573 vxworks*) 13574 # FIXME: insert proper C++ library support 13575 ld_shlibs_CXX=no 13576 ;; 13577 13578 *) 13579 # FIXME: insert proper C++ library support 13580 ld_shlibs_CXX=no 13581 ;; 13582 esac 13583 13584 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13585$as_echo "$ld_shlibs_CXX" >&6; } 13586 test "$ld_shlibs_CXX" = no && can_build_shared=no 13587 13588 GCC_CXX="$GXX" 13589 LD_CXX="$LD" 13590 13591 ## CAVEAT EMPTOR: 13592 ## There is no encapsulation within the following macros, do not change 13593 ## the running order or otherwise move them around unless you know exactly 13594 ## what you are doing... 13595 # Dependencies to place before and after the object being linked: 13596predep_objects_CXX= 13597postdep_objects_CXX= 13598predeps_CXX= 13599postdeps_CXX= 13600compiler_lib_search_path_CXX= 13601 13602cat > conftest.$ac_ext <<_LT_EOF 13603class Foo 13604{ 13605public: 13606 Foo (void) { a = 0; } 13607private: 13608 int a; 13609}; 13610_LT_EOF 13611 13612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13613 (eval $ac_compile) 2>&5 13614 ac_status=$? 13615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13616 (exit $ac_status); }; then 13617 # Parse the compiler output and extract the necessary 13618 # objects, libraries and library flags. 13619 13620 # Sentinel used to keep track of whether or not we are before 13621 # the conftest object file. 13622 pre_test_object_deps_done=no 13623 13624 for p in `eval "$output_verbose_link_cmd"`; do 13625 case $p in 13626 13627 -L* | -R* | -l*) 13628 # Some compilers place space between "-{L,R}" and the path. 13629 # Remove the space. 13630 if test $p = "-L" || 13631 test $p = "-R"; then 13632 prev=$p 13633 continue 13634 else 13635 prev= 13636 fi 13637 13638 if test "$pre_test_object_deps_done" = no; then 13639 case $p in 13640 -L* | -R*) 13641 # Internal compiler library paths should come after those 13642 # provided the user. The postdeps already come after the 13643 # user supplied libs so there is no need to process them. 13644 if test -z "$compiler_lib_search_path_CXX"; then 13645 compiler_lib_search_path_CXX="${prev}${p}" 13646 else 13647 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13648 fi 13649 ;; 13650 # The "-l" case would never come before the object being 13651 # linked, so don't bother handling this case. 13652 esac 13653 else 13654 if test -z "$postdeps_CXX"; then 13655 postdeps_CXX="${prev}${p}" 13656 else 13657 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13658 fi 13659 fi 13660 ;; 13661 13662 *.$objext) 13663 # This assumes that the test object file only shows up 13664 # once in the compiler output. 13665 if test "$p" = "conftest.$objext"; then 13666 pre_test_object_deps_done=yes 13667 continue 13668 fi 13669 13670 if test "$pre_test_object_deps_done" = no; then 13671 if test -z "$predep_objects_CXX"; then 13672 predep_objects_CXX="$p" 13673 else 13674 predep_objects_CXX="$predep_objects_CXX $p" 13675 fi 13676 else 13677 if test -z "$postdep_objects_CXX"; then 13678 postdep_objects_CXX="$p" 13679 else 13680 postdep_objects_CXX="$postdep_objects_CXX $p" 13681 fi 13682 fi 13683 ;; 13684 13685 *) ;; # Ignore the rest. 13686 13687 esac 13688 done 13689 13690 # Clean up. 13691 rm -f a.out a.exe 13692else 13693 echo "libtool.m4: error: problem compiling CXX test program" 13694fi 13695 13696$RM -f confest.$objext 13697 13698# PORTME: override above test on systems where it is broken 13699case $host_os in 13700interix[3-9]*) 13701 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13702 # hack all around it, let's just trust "g++" to DTRT. 13703 predep_objects_CXX= 13704 postdep_objects_CXX= 13705 postdeps_CXX= 13706 ;; 13707 13708linux*) 13709 case `$CC -V 2>&1 | sed 5q` in 13710 *Sun\ C*) 13711 # Sun C++ 5.9 13712 13713 # The more standards-conforming stlport4 library is 13714 # incompatible with the Cstd library. Avoid specifying 13715 # it if it's in CXXFLAGS. Ignore libCrun as 13716 # -library=stlport4 depends on it. 13717 case " $CXX $CXXFLAGS " in 13718 *" -library=stlport4 "*) 13719 solaris_use_stlport4=yes 13720 ;; 13721 esac 13722 13723 if test "$solaris_use_stlport4" != yes; then 13724 postdeps_CXX='-library=Cstd -library=Crun' 13725 fi 13726 ;; 13727 esac 13728 ;; 13729 13730solaris*) 13731 case $cc_basename in 13732 CC*) 13733 # The more standards-conforming stlport4 library is 13734 # incompatible with the Cstd library. Avoid specifying 13735 # it if it's in CXXFLAGS. Ignore libCrun as 13736 # -library=stlport4 depends on it. 13737 case " $CXX $CXXFLAGS " in 13738 *" -library=stlport4 "*) 13739 solaris_use_stlport4=yes 13740 ;; 13741 esac 13742 13743 # Adding this requires a known-good setup of shared libraries for 13744 # Sun compiler versions before 5.6, else PIC objects from an old 13745 # archive will be linked into the output, leading to subtle bugs. 13746 if test "$solaris_use_stlport4" != yes; then 13747 postdeps_CXX='-library=Cstd -library=Crun' 13748 fi 13749 ;; 13750 esac 13751 ;; 13752esac 13753 13754 13755case " $postdeps_CXX " in 13756*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13757esac 13758 compiler_lib_search_dirs_CXX= 13759if test -n "${compiler_lib_search_path_CXX}"; then 13760 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13761fi 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 lt_prog_compiler_wl_CXX= 13794lt_prog_compiler_pic_CXX= 13795lt_prog_compiler_static_CXX= 13796 13797{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13798$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13799 13800 # C++ specific cases for pic, static, wl, etc. 13801 if test "$GXX" = yes; then 13802 lt_prog_compiler_wl_CXX='-Wl,' 13803 lt_prog_compiler_static_CXX='-static' 13804 13805 case $host_os in 13806 aix*) 13807 # All AIX code is PIC. 13808 if test "$host_cpu" = ia64; then 13809 # AIX 5 now supports IA64 processor 13810 lt_prog_compiler_static_CXX='-Bstatic' 13811 fi 13812 ;; 13813 13814 amigaos*) 13815 case $host_cpu in 13816 powerpc) 13817 # see comment about AmigaOS4 .so support 13818 lt_prog_compiler_pic_CXX='-fPIC' 13819 ;; 13820 m68k) 13821 # FIXME: we need at least 68020 code to build shared libraries, but 13822 # adding the `-m68020' flag to GCC prevents building anything better, 13823 # like `-m68040'. 13824 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13825 ;; 13826 esac 13827 ;; 13828 13829 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13830 # PIC is the default for these OSes. 13831 ;; 13832 mingw* | cygwin* | os2* | pw32* | cegcc*) 13833 # This hack is so that the source file can tell whether it is being 13834 # built for inclusion in a dll (and should export symbols for example). 13835 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13836 # (--disable-auto-import) libraries 13837 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13838 ;; 13839 darwin* | rhapsody*) 13840 # PIC is the default on this platform 13841 # Common symbols not allowed in MH_DYLIB files 13842 lt_prog_compiler_pic_CXX='-fno-common' 13843 ;; 13844 *djgpp*) 13845 # DJGPP does not support shared libraries at all 13846 lt_prog_compiler_pic_CXX= 13847 ;; 13848 interix[3-9]*) 13849 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13850 # Instead, we relocate shared libraries at runtime. 13851 ;; 13852 sysv4*MP*) 13853 if test -d /usr/nec; then 13854 lt_prog_compiler_pic_CXX=-Kconform_pic 13855 fi 13856 ;; 13857 hpux*) 13858 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13859 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13860 # sets the default TLS model and affects inlining. 13861 case $host_cpu in 13862 hppa*64*) 13863 ;; 13864 *) 13865 lt_prog_compiler_pic_CXX='-fPIC' 13866 ;; 13867 esac 13868 ;; 13869 *qnx* | *nto*) 13870 # QNX uses GNU C++, but need to define -shared option too, otherwise 13871 # it will coredump. 13872 lt_prog_compiler_pic_CXX='-fPIC -shared' 13873 ;; 13874 *) 13875 lt_prog_compiler_pic_CXX='-fPIC' 13876 ;; 13877 esac 13878 else 13879 case $host_os in 13880 aix[4-9]*) 13881 # All AIX code is PIC. 13882 if test "$host_cpu" = ia64; then 13883 # AIX 5 now supports IA64 processor 13884 lt_prog_compiler_static_CXX='-Bstatic' 13885 else 13886 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13887 fi 13888 ;; 13889 chorus*) 13890 case $cc_basename in 13891 cxch68*) 13892 # Green Hills C++ Compiler 13893 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 13894 ;; 13895 esac 13896 ;; 13897 dgux*) 13898 case $cc_basename in 13899 ec++*) 13900 lt_prog_compiler_pic_CXX='-KPIC' 13901 ;; 13902 ghcx*) 13903 # Green Hills C++ Compiler 13904 lt_prog_compiler_pic_CXX='-pic' 13905 ;; 13906 *) 13907 ;; 13908 esac 13909 ;; 13910 freebsd* | dragonfly*) 13911 # FreeBSD uses GNU C++ 13912 ;; 13913 hpux9* | hpux10* | hpux11*) 13914 case $cc_basename in 13915 CC*) 13916 lt_prog_compiler_wl_CXX='-Wl,' 13917 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13918 if test "$host_cpu" != ia64; then 13919 lt_prog_compiler_pic_CXX='+Z' 13920 fi 13921 ;; 13922 aCC*) 13923 lt_prog_compiler_wl_CXX='-Wl,' 13924 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13925 case $host_cpu in 13926 hppa*64*|ia64*) 13927 # +Z the default 13928 ;; 13929 *) 13930 lt_prog_compiler_pic_CXX='+Z' 13931 ;; 13932 esac 13933 ;; 13934 *) 13935 ;; 13936 esac 13937 ;; 13938 interix*) 13939 # This is c89, which is MS Visual C++ (no shared libs) 13940 # Anyone wants to do a port? 13941 ;; 13942 irix5* | irix6* | nonstopux*) 13943 case $cc_basename in 13944 CC*) 13945 lt_prog_compiler_wl_CXX='-Wl,' 13946 lt_prog_compiler_static_CXX='-non_shared' 13947 # CC pic flag -KPIC is the default. 13948 ;; 13949 *) 13950 ;; 13951 esac 13952 ;; 13953 linux* | k*bsd*-gnu) 13954 case $cc_basename in 13955 KCC*) 13956 # KAI C++ Compiler 13957 lt_prog_compiler_wl_CXX='--backend -Wl,' 13958 lt_prog_compiler_pic_CXX='-fPIC' 13959 ;; 13960 ecpc* ) 13961 # old Intel C++ for x86_64 which still supported -KPIC. 13962 lt_prog_compiler_wl_CXX='-Wl,' 13963 lt_prog_compiler_pic_CXX='-KPIC' 13964 lt_prog_compiler_static_CXX='-static' 13965 ;; 13966 icpc* ) 13967 # Intel C++, used to be incompatible with GCC. 13968 # ICC 10 doesn't accept -KPIC any more. 13969 lt_prog_compiler_wl_CXX='-Wl,' 13970 lt_prog_compiler_pic_CXX='-fPIC' 13971 lt_prog_compiler_static_CXX='-static' 13972 ;; 13973 pgCC* | pgcpp*) 13974 # Portland Group C++ compiler 13975 lt_prog_compiler_wl_CXX='-Wl,' 13976 lt_prog_compiler_pic_CXX='-fpic' 13977 lt_prog_compiler_static_CXX='-Bstatic' 13978 ;; 13979 cxx*) 13980 # Compaq C++ 13981 # Make sure the PIC flag is empty. It appears that all Alpha 13982 # Linux and Compaq Tru64 Unix objects are PIC. 13983 lt_prog_compiler_pic_CXX= 13984 lt_prog_compiler_static_CXX='-non_shared' 13985 ;; 13986 xlc* | xlC*) 13987 # IBM XL 8.0 on PPC 13988 lt_prog_compiler_wl_CXX='-Wl,' 13989 lt_prog_compiler_pic_CXX='-qpic' 13990 lt_prog_compiler_static_CXX='-qstaticlink' 13991 ;; 13992 *) 13993 case `$CC -V 2>&1 | sed 5q` in 13994 *Sun\ C*) 13995 # Sun C++ 5.9 13996 lt_prog_compiler_pic_CXX='-KPIC' 13997 lt_prog_compiler_static_CXX='-Bstatic' 13998 lt_prog_compiler_wl_CXX='-Qoption ld ' 13999 ;; 14000 esac 14001 ;; 14002 esac 14003 ;; 14004 lynxos*) 14005 ;; 14006 m88k*) 14007 ;; 14008 mvs*) 14009 case $cc_basename in 14010 cxx*) 14011 lt_prog_compiler_pic_CXX='-W c,exportall' 14012 ;; 14013 *) 14014 ;; 14015 esac 14016 ;; 14017 netbsd*) 14018 ;; 14019 *qnx* | *nto*) 14020 # QNX uses GNU C++, but need to define -shared option too, otherwise 14021 # it will coredump. 14022 lt_prog_compiler_pic_CXX='-fPIC -shared' 14023 ;; 14024 osf3* | osf4* | osf5*) 14025 case $cc_basename in 14026 KCC*) 14027 lt_prog_compiler_wl_CXX='--backend -Wl,' 14028 ;; 14029 RCC*) 14030 # Rational C++ 2.4.1 14031 lt_prog_compiler_pic_CXX='-pic' 14032 ;; 14033 cxx*) 14034 # Digital/Compaq C++ 14035 lt_prog_compiler_wl_CXX='-Wl,' 14036 # Make sure the PIC flag is empty. It appears that all Alpha 14037 # Linux and Compaq Tru64 Unix objects are PIC. 14038 lt_prog_compiler_pic_CXX= 14039 lt_prog_compiler_static_CXX='-non_shared' 14040 ;; 14041 *) 14042 ;; 14043 esac 14044 ;; 14045 psos*) 14046 ;; 14047 solaris*) 14048 case $cc_basename in 14049 CC*) 14050 # Sun C++ 4.2, 5.x and Centerline C++ 14051 lt_prog_compiler_pic_CXX='-KPIC' 14052 lt_prog_compiler_static_CXX='-Bstatic' 14053 lt_prog_compiler_wl_CXX='-Qoption ld ' 14054 ;; 14055 gcx*) 14056 # Green Hills C++ Compiler 14057 lt_prog_compiler_pic_CXX='-PIC' 14058 ;; 14059 *) 14060 ;; 14061 esac 14062 ;; 14063 sunos4*) 14064 case $cc_basename in 14065 CC*) 14066 # Sun C++ 4.x 14067 lt_prog_compiler_pic_CXX='-pic' 14068 lt_prog_compiler_static_CXX='-Bstatic' 14069 ;; 14070 lcc*) 14071 # Lucid 14072 lt_prog_compiler_pic_CXX='-pic' 14073 ;; 14074 *) 14075 ;; 14076 esac 14077 ;; 14078 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14079 case $cc_basename in 14080 CC*) 14081 lt_prog_compiler_wl_CXX='-Wl,' 14082 lt_prog_compiler_pic_CXX='-KPIC' 14083 lt_prog_compiler_static_CXX='-Bstatic' 14084 ;; 14085 esac 14086 ;; 14087 tandem*) 14088 case $cc_basename in 14089 NCC*) 14090 # NonStop-UX NCC 3.20 14091 lt_prog_compiler_pic_CXX='-KPIC' 14092 ;; 14093 *) 14094 ;; 14095 esac 14096 ;; 14097 vxworks*) 14098 ;; 14099 *) 14100 lt_prog_compiler_can_build_shared_CXX=no 14101 ;; 14102 esac 14103 fi 14104 14105case $host_os in 14106 # For platforms which do not support PIC, -DPIC is meaningless: 14107 *djgpp*) 14108 lt_prog_compiler_pic_CXX= 14109 ;; 14110 *) 14111 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14112 ;; 14113esac 14114{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 14115$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 14116 14117 14118 14119# 14120# Check to make sure the PIC flag actually works. 14121# 14122if test -n "$lt_prog_compiler_pic_CXX"; then 14123 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14124$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14125if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 14126 $as_echo_n "(cached) " >&6 14127else 14128 lt_cv_prog_compiler_pic_works_CXX=no 14129 ac_outfile=conftest.$ac_objext 14130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14131 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14132 # Insert the option either (1) after the last *FLAGS variable, or 14133 # (2) before a word containing "conftest.", or (3) at the end. 14134 # Note that $ac_compile itself does not contain backslashes and begins 14135 # with a dollar sign (not a hyphen), so the echo should work correctly. 14136 # The option is referenced via a variable to avoid confusing sed. 14137 lt_compile=`echo "$ac_compile" | $SED \ 14138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14140 -e 's:$: $lt_compiler_flag:'` 14141 (eval echo "\"\$as_me:14141: $lt_compile\"" >&5) 14142 (eval "$lt_compile" 2>conftest.err) 14143 ac_status=$? 14144 cat conftest.err >&5 14145 echo "$as_me:14145: \$? = $ac_status" >&5 14146 if (exit $ac_status) && test -s "$ac_outfile"; then 14147 # The compiler can only warn and ignore the option if not recognized 14148 # So say no if there are warnings other than the usual output. 14149 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14152 lt_cv_prog_compiler_pic_works_CXX=yes 14153 fi 14154 fi 14155 $RM conftest* 14156 14157fi 14158{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14159$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14160 14161if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14162 case $lt_prog_compiler_pic_CXX in 14163 "" | " "*) ;; 14164 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14165 esac 14166else 14167 lt_prog_compiler_pic_CXX= 14168 lt_prog_compiler_can_build_shared_CXX=no 14169fi 14170 14171fi 14172 14173 14174 14175# 14176# Check to make sure the static flag actually works. 14177# 14178wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14179{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14180$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14181if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 14182 $as_echo_n "(cached) " >&6 14183else 14184 lt_cv_prog_compiler_static_works_CXX=no 14185 save_LDFLAGS="$LDFLAGS" 14186 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14187 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14188 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14189 # The linker can only warn and ignore the option if not recognized 14190 # So say no if there are warnings 14191 if test -s conftest.err; then 14192 # Append any errors to the config.log. 14193 cat conftest.err 1>&5 14194 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14196 if diff conftest.exp conftest.er2 >/dev/null; then 14197 lt_cv_prog_compiler_static_works_CXX=yes 14198 fi 14199 else 14200 lt_cv_prog_compiler_static_works_CXX=yes 14201 fi 14202 fi 14203 $RM -r conftest* 14204 LDFLAGS="$save_LDFLAGS" 14205 14206fi 14207{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14208$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14209 14210if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14211 : 14212else 14213 lt_prog_compiler_static_CXX= 14214fi 14215 14216 14217 14218 14219 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14220$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14221if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14222 $as_echo_n "(cached) " >&6 14223else 14224 lt_cv_prog_compiler_c_o_CXX=no 14225 $RM -r conftest 2>/dev/null 14226 mkdir conftest 14227 cd conftest 14228 mkdir out 14229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14230 14231 lt_compiler_flag="-o out/conftest2.$ac_objext" 14232 # Insert the option either (1) after the last *FLAGS variable, or 14233 # (2) before a word containing "conftest.", or (3) at the end. 14234 # Note that $ac_compile itself does not contain backslashes and begins 14235 # with a dollar sign (not a hyphen), so the echo should work correctly. 14236 lt_compile=`echo "$ac_compile" | $SED \ 14237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14239 -e 's:$: $lt_compiler_flag:'` 14240 (eval echo "\"\$as_me:14240: $lt_compile\"" >&5) 14241 (eval "$lt_compile" 2>out/conftest.err) 14242 ac_status=$? 14243 cat out/conftest.err >&5 14244 echo "$as_me:14244: \$? = $ac_status" >&5 14245 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14246 then 14247 # The compiler can only warn and ignore the option if not recognized 14248 # So say no if there are warnings 14249 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14250 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14251 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14252 lt_cv_prog_compiler_c_o_CXX=yes 14253 fi 14254 fi 14255 chmod u+w . 2>&5 14256 $RM conftest* 14257 # SGI C++ compiler will create directory out/ii_files/ for 14258 # template instantiation 14259 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14260 $RM out/* && rmdir out 14261 cd .. 14262 $RM -r conftest 14263 $RM conftest* 14264 14265fi 14266{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14267$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14268 14269 14270 14271 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14272$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14273if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14274 $as_echo_n "(cached) " >&6 14275else 14276 lt_cv_prog_compiler_c_o_CXX=no 14277 $RM -r conftest 2>/dev/null 14278 mkdir conftest 14279 cd conftest 14280 mkdir out 14281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14282 14283 lt_compiler_flag="-o out/conftest2.$ac_objext" 14284 # Insert the option either (1) after the last *FLAGS variable, or 14285 # (2) before a word containing "conftest.", or (3) at the end. 14286 # Note that $ac_compile itself does not contain backslashes and begins 14287 # with a dollar sign (not a hyphen), so the echo should work correctly. 14288 lt_compile=`echo "$ac_compile" | $SED \ 14289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14291 -e 's:$: $lt_compiler_flag:'` 14292 (eval echo "\"\$as_me:14292: $lt_compile\"" >&5) 14293 (eval "$lt_compile" 2>out/conftest.err) 14294 ac_status=$? 14295 cat out/conftest.err >&5 14296 echo "$as_me:14296: \$? = $ac_status" >&5 14297 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14298 then 14299 # The compiler can only warn and ignore the option if not recognized 14300 # So say no if there are warnings 14301 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14304 lt_cv_prog_compiler_c_o_CXX=yes 14305 fi 14306 fi 14307 chmod u+w . 2>&5 14308 $RM conftest* 14309 # SGI C++ compiler will create directory out/ii_files/ for 14310 # template instantiation 14311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14312 $RM out/* && rmdir out 14313 cd .. 14314 $RM -r conftest 14315 $RM conftest* 14316 14317fi 14318{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14319$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14320 14321 14322 14323 14324hard_links="nottested" 14325if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14326 # do not overwrite the value of need_locks provided by the user 14327 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14328$as_echo_n "checking if we can lock with hard links... " >&6; } 14329 hard_links=yes 14330 $RM conftest* 14331 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14332 touch conftest.a 14333 ln conftest.a conftest.b 2>&5 || hard_links=no 14334 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14335 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14336$as_echo "$hard_links" >&6; } 14337 if test "$hard_links" = no; then 14338 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14339$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14340 need_locks=warn 14341 fi 14342else 14343 need_locks=no 14344fi 14345 14346 14347 14348 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14349$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14350 14351 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14352 case $host_os in 14353 aix[4-9]*) 14354 # If we're using GNU nm, then we don't want the "-C" option. 14355 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14356 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14357 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14358 else 14359 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14360 fi 14361 ;; 14362 pw32*) 14363 export_symbols_cmds_CXX="$ltdll_cmds" 14364 ;; 14365 cygwin* | mingw* | cegcc*) 14366 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14367 ;; 14368 *) 14369 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14370 ;; 14371 esac 14372 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14373 14374{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14375$as_echo "$ld_shlibs_CXX" >&6; } 14376test "$ld_shlibs_CXX" = no && can_build_shared=no 14377 14378with_gnu_ld_CXX=$with_gnu_ld 14379 14380 14381 14382 14383 14384 14385# 14386# Do we need to explicitly link libc? 14387# 14388case "x$archive_cmds_need_lc_CXX" in 14389x|xyes) 14390 # Assume -lc should be added 14391 archive_cmds_need_lc_CXX=yes 14392 14393 if test "$enable_shared" = yes && test "$GCC" = yes; then 14394 case $archive_cmds_CXX in 14395 *'~'*) 14396 # FIXME: we may have to deal with multi-command sequences. 14397 ;; 14398 '$CC '*) 14399 # Test whether the compiler implicitly links with -lc since on some 14400 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14401 # to ld, don't add -lc before -lgcc. 14402 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14403$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14404 $RM conftest* 14405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14406 14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14408 (eval $ac_compile) 2>&5 14409 ac_status=$? 14410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14411 (exit $ac_status); } 2>conftest.err; then 14412 soname=conftest 14413 lib=conftest 14414 libobjs=conftest.$ac_objext 14415 deplibs= 14416 wl=$lt_prog_compiler_wl_CXX 14417 pic_flag=$lt_prog_compiler_pic_CXX 14418 compiler_flags=-v 14419 linker_flags=-v 14420 verstring= 14421 output_objdir=. 14422 libname=conftest 14423 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14424 allow_undefined_flag_CXX= 14425 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 14426 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14427 ac_status=$? 14428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14429 (exit $ac_status); } 14430 then 14431 archive_cmds_need_lc_CXX=no 14432 else 14433 archive_cmds_need_lc_CXX=yes 14434 fi 14435 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14436 else 14437 cat conftest.err 1>&5 14438 fi 14439 $RM conftest* 14440 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14441$as_echo "$archive_cmds_need_lc_CXX" >&6; } 14442 ;; 14443 esac 14444 fi 14445 ;; 14446esac 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14512$as_echo_n "checking dynamic linker characteristics... " >&6; } 14513 14514library_names_spec= 14515libname_spec='lib$name' 14516soname_spec= 14517shrext_cmds=".so" 14518postinstall_cmds= 14519postuninstall_cmds= 14520finish_cmds= 14521finish_eval= 14522shlibpath_var= 14523shlibpath_overrides_runpath=unknown 14524version_type=none 14525dynamic_linker="$host_os ld.so" 14526sys_lib_dlsearch_path_spec="/lib /usr/lib" 14527need_lib_prefix=unknown 14528hardcode_into_libs=no 14529 14530# when you set need_version to no, make sure it does not cause -set_version 14531# flags to be left without arguments 14532need_version=unknown 14533 14534case $host_os in 14535aix3*) 14536 version_type=linux 14537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14538 shlibpath_var=LIBPATH 14539 14540 # AIX 3 has no versioning support, so we append a major version to the name. 14541 soname_spec='${libname}${release}${shared_ext}$major' 14542 ;; 14543 14544aix[4-9]*) 14545 version_type=linux 14546 need_lib_prefix=no 14547 need_version=no 14548 hardcode_into_libs=yes 14549 if test "$host_cpu" = ia64; then 14550 # AIX 5 supports IA64 14551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14552 shlibpath_var=LD_LIBRARY_PATH 14553 else 14554 # With GCC up to 2.95.x, collect2 would create an import file 14555 # for dependence libraries. The import file would start with 14556 # the line `#! .'. This would cause the generated library to 14557 # depend on `.', always an invalid library. This was fixed in 14558 # development snapshots of GCC prior to 3.0. 14559 case $host_os in 14560 aix4 | aix4.[01] | aix4.[01].*) 14561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14562 echo ' yes ' 14563 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14564 : 14565 else 14566 can_build_shared=no 14567 fi 14568 ;; 14569 esac 14570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14571 # soname into executable. Probably we can add versioning support to 14572 # collect2, so additional links can be useful in future. 14573 if test "$aix_use_runtimelinking" = yes; then 14574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14575 # instead of lib<name>.a to let people know that these are not 14576 # typical AIX shared libraries. 14577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14578 else 14579 # We preserve .a as extension for shared libraries through AIX4.2 14580 # and later when we are not doing run time linking. 14581 library_names_spec='${libname}${release}.a $libname.a' 14582 soname_spec='${libname}${release}${shared_ext}$major' 14583 fi 14584 shlibpath_var=LIBPATH 14585 fi 14586 ;; 14587 14588amigaos*) 14589 case $host_cpu in 14590 powerpc) 14591 # Since July 2007 AmigaOS4 officially supports .so libraries. 14592 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14594 ;; 14595 m68k) 14596 library_names_spec='$libname.ixlibrary $libname.a' 14597 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14598 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' 14599 ;; 14600 esac 14601 ;; 14602 14603beos*) 14604 library_names_spec='${libname}${shared_ext}' 14605 dynamic_linker="$host_os ld.so" 14606 shlibpath_var=LIBRARY_PATH 14607 ;; 14608 14609bsdi[45]*) 14610 version_type=linux 14611 need_version=no 14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14613 soname_spec='${libname}${release}${shared_ext}$major' 14614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14615 shlibpath_var=LD_LIBRARY_PATH 14616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14618 # the default ld.so.conf also contains /usr/contrib/lib and 14619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14620 # libtool to hard-code these into programs 14621 ;; 14622 14623cygwin* | mingw* | pw32* | cegcc*) 14624 version_type=windows 14625 shrext_cmds=".dll" 14626 need_version=no 14627 need_lib_prefix=no 14628 14629 case $GCC,$host_os in 14630 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14631 library_names_spec='$libname.dll.a' 14632 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14633 postinstall_cmds='base_file=`basename \${file}`~ 14634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14635 dldir=$destdir/`dirname \$dlpath`~ 14636 test -d \$dldir || mkdir -p \$dldir~ 14637 $install_prog $dir/$dlname \$dldir/$dlname~ 14638 chmod a+x \$dldir/$dlname~ 14639 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14640 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14641 fi' 14642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14643 dlpath=$dir/\$dldll~ 14644 $RM \$dlpath' 14645 shlibpath_overrides_runpath=yes 14646 14647 case $host_os in 14648 cygwin*) 14649 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14651 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14652 ;; 14653 mingw* | cegcc*) 14654 # MinGW DLLs use traditional 'lib' prefix 14655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14656 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14657 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14658 # It is most probably a Windows format PATH printed by 14659 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14660 # path with ; separators, and with drive letters. We can handle the 14661 # drive letters (cygwin fileutils understands them), so leave them, 14662 # especially as we might pass files found there to a mingw objdump, 14663 # which wouldn't understand a cygwinified path. Ahh. 14664 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14665 else 14666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14667 fi 14668 ;; 14669 pw32*) 14670 # pw32 DLLs use 'pw' prefix rather than 'lib' 14671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14672 ;; 14673 esac 14674 ;; 14675 14676 *) 14677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14678 ;; 14679 esac 14680 dynamic_linker='Win32 ld.exe' 14681 # FIXME: first we should search . and the directory the executable is in 14682 shlibpath_var=PATH 14683 ;; 14684 14685darwin* | rhapsody*) 14686 dynamic_linker="$host_os dyld" 14687 version_type=darwin 14688 need_lib_prefix=no 14689 need_version=no 14690 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14691 soname_spec='${libname}${release}${major}$shared_ext' 14692 shlibpath_overrides_runpath=yes 14693 shlibpath_var=DYLD_LIBRARY_PATH 14694 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14695 14696 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14697 ;; 14698 14699dgux*) 14700 version_type=linux 14701 need_lib_prefix=no 14702 need_version=no 14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14704 soname_spec='${libname}${release}${shared_ext}$major' 14705 shlibpath_var=LD_LIBRARY_PATH 14706 ;; 14707 14708freebsd1*) 14709 dynamic_linker=no 14710 ;; 14711 14712freebsd* | dragonfly*) 14713 # DragonFly does not have aout. When/if they implement a new 14714 # versioning mechanism, adjust this. 14715 if test -x /usr/bin/objformat; then 14716 objformat=`/usr/bin/objformat` 14717 else 14718 case $host_os in 14719 freebsd[123]*) objformat=aout ;; 14720 *) objformat=elf ;; 14721 esac 14722 fi 14723 version_type=freebsd-$objformat 14724 case $version_type in 14725 freebsd-elf*) 14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14727 need_version=no 14728 need_lib_prefix=no 14729 ;; 14730 freebsd-*) 14731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14732 need_version=yes 14733 ;; 14734 esac 14735 shlibpath_var=LD_LIBRARY_PATH 14736 case $host_os in 14737 freebsd2*) 14738 shlibpath_overrides_runpath=yes 14739 ;; 14740 freebsd3.[01]* | freebsdelf3.[01]*) 14741 shlibpath_overrides_runpath=yes 14742 hardcode_into_libs=yes 14743 ;; 14744 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14745 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14746 shlibpath_overrides_runpath=no 14747 hardcode_into_libs=yes 14748 ;; 14749 *) # from 4.6 on, and DragonFly 14750 shlibpath_overrides_runpath=yes 14751 hardcode_into_libs=yes 14752 ;; 14753 esac 14754 ;; 14755 14756gnu*) 14757 version_type=linux 14758 need_lib_prefix=no 14759 need_version=no 14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14761 soname_spec='${libname}${release}${shared_ext}$major' 14762 shlibpath_var=LD_LIBRARY_PATH 14763 hardcode_into_libs=yes 14764 ;; 14765 14766hpux9* | hpux10* | hpux11*) 14767 # Give a soname corresponding to the major version so that dld.sl refuses to 14768 # link against other versions. 14769 version_type=sunos 14770 need_lib_prefix=no 14771 need_version=no 14772 case $host_cpu in 14773 ia64*) 14774 shrext_cmds='.so' 14775 hardcode_into_libs=yes 14776 dynamic_linker="$host_os dld.so" 14777 shlibpath_var=LD_LIBRARY_PATH 14778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14780 soname_spec='${libname}${release}${shared_ext}$major' 14781 if test "X$HPUX_IA64_MODE" = X32; then 14782 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14783 else 14784 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14785 fi 14786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14787 ;; 14788 hppa*64*) 14789 shrext_cmds='.sl' 14790 hardcode_into_libs=yes 14791 dynamic_linker="$host_os dld.sl" 14792 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14795 soname_spec='${libname}${release}${shared_ext}$major' 14796 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14798 ;; 14799 *) 14800 shrext_cmds='.sl' 14801 dynamic_linker="$host_os dld.sl" 14802 shlibpath_var=SHLIB_PATH 14803 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14805 soname_spec='${libname}${release}${shared_ext}$major' 14806 ;; 14807 esac 14808 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14809 postinstall_cmds='chmod 555 $lib' 14810 ;; 14811 14812interix[3-9]*) 14813 version_type=linux 14814 need_lib_prefix=no 14815 need_version=no 14816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14817 soname_spec='${libname}${release}${shared_ext}$major' 14818 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14819 shlibpath_var=LD_LIBRARY_PATH 14820 shlibpath_overrides_runpath=no 14821 hardcode_into_libs=yes 14822 ;; 14823 14824irix5* | irix6* | nonstopux*) 14825 case $host_os in 14826 nonstopux*) version_type=nonstopux ;; 14827 *) 14828 if test "$lt_cv_prog_gnu_ld" = yes; then 14829 version_type=linux 14830 else 14831 version_type=irix 14832 fi ;; 14833 esac 14834 need_lib_prefix=no 14835 need_version=no 14836 soname_spec='${libname}${release}${shared_ext}$major' 14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14838 case $host_os in 14839 irix5* | nonstopux*) 14840 libsuff= shlibsuff= 14841 ;; 14842 *) 14843 case $LD in # libtool.m4 will add one of these switches to LD 14844 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14845 libsuff= shlibsuff= libmagic=32-bit;; 14846 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14847 libsuff=32 shlibsuff=N32 libmagic=N32;; 14848 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14849 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14850 *) libsuff= shlibsuff= libmagic=never-match;; 14851 esac 14852 ;; 14853 esac 14854 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14855 shlibpath_overrides_runpath=no 14856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14858 hardcode_into_libs=yes 14859 ;; 14860 14861# No shared lib support for Linux oldld, aout, or coff. 14862linux*oldld* | linux*aout* | linux*coff*) 14863 dynamic_linker=no 14864 ;; 14865 14866# This must be Linux ELF. 14867linux* | k*bsd*-gnu) 14868 version_type=linux 14869 need_lib_prefix=no 14870 need_version=no 14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14872 soname_spec='${libname}${release}${shared_ext}$major' 14873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14874 shlibpath_var=LD_LIBRARY_PATH 14875 shlibpath_overrides_runpath=no 14876 # Some binutils ld are patched to set DT_RUNPATH 14877 save_LDFLAGS=$LDFLAGS 14878 save_libdir=$libdir 14879 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14880 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14881 cat >conftest.$ac_ext <<_ACEOF 14882/* confdefs.h. */ 14883_ACEOF 14884cat confdefs.h >>conftest.$ac_ext 14885cat >>conftest.$ac_ext <<_ACEOF 14886/* end confdefs.h. */ 14887 14888int 14889main () 14890{ 14891 14892 ; 14893 return 0; 14894} 14895_ACEOF 14896rm -f conftest.$ac_objext conftest$ac_exeext 14897if { (ac_try="$ac_link" 14898case "(($ac_try" in 14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14900 *) ac_try_echo=$ac_try;; 14901esac 14902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14903$as_echo "$ac_try_echo") >&5 14904 (eval "$ac_link") 2>conftest.er1 14905 ac_status=$? 14906 grep -v '^ *+' conftest.er1 >conftest.err 14907 rm -f conftest.er1 14908 cat conftest.err >&5 14909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14910 (exit $ac_status); } && { 14911 test -z "$ac_cxx_werror_flag" || 14912 test ! -s conftest.err 14913 } && test -s conftest$ac_exeext && { 14914 test "$cross_compiling" = yes || 14915 $as_test_x conftest$ac_exeext 14916 }; then 14917 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 14918 shlibpath_overrides_runpath=yes 14919fi 14920 14921else 14922 $as_echo "$as_me: failed program was:" >&5 14923sed 's/^/| /' conftest.$ac_ext >&5 14924 14925 14926fi 14927 14928rm -rf conftest.dSYM 14929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14930 conftest$ac_exeext conftest.$ac_ext 14931 LDFLAGS=$save_LDFLAGS 14932 libdir=$save_libdir 14933 14934 # This implies no fast_install, which is unacceptable. 14935 # Some rework will be needed to allow for fast_install 14936 # before this can be enabled. 14937 hardcode_into_libs=yes 14938 14939 # Add ABI-specific directories to the system library path. 14940 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 14941 14942 # Append ld.so.conf contents to the search path 14943 if test -f /etc/ld.so.conf; then 14944 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;/^$/d' | tr '\n' ' '` 14945 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 14946 fi 14947 14948 # We used to test for /lib/ld.so.1 and disable shared libraries on 14949 # powerpc, because MkLinux only supported shared libraries with the 14950 # GNU dynamic linker. Since this was broken with cross compilers, 14951 # most powerpc-linux boxes support dynamic linking these days and 14952 # people can always --disable-shared, the test was removed, and we 14953 # assume the GNU/Linux dynamic linker is in use. 14954 dynamic_linker='GNU/Linux ld.so' 14955 ;; 14956 14957netbsd*) 14958 version_type=sunos 14959 need_lib_prefix=no 14960 need_version=no 14961 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14964 dynamic_linker='NetBSD (a.out) ld.so' 14965 else 14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14967 soname_spec='${libname}${release}${shared_ext}$major' 14968 dynamic_linker='NetBSD ld.elf_so' 14969 fi 14970 shlibpath_var=LD_LIBRARY_PATH 14971 shlibpath_overrides_runpath=yes 14972 hardcode_into_libs=yes 14973 ;; 14974 14975newsos6) 14976 version_type=linux 14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14978 shlibpath_var=LD_LIBRARY_PATH 14979 shlibpath_overrides_runpath=yes 14980 ;; 14981 14982*nto* | *qnx*) 14983 version_type=qnx 14984 need_lib_prefix=no 14985 need_version=no 14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14987 soname_spec='${libname}${release}${shared_ext}$major' 14988 shlibpath_var=LD_LIBRARY_PATH 14989 shlibpath_overrides_runpath=no 14990 hardcode_into_libs=yes 14991 dynamic_linker='ldqnx.so' 14992 ;; 14993 14994openbsd*) 14995 version_type=sunos 14996 sys_lib_dlsearch_path_spec="/usr/lib" 14997 need_lib_prefix=no 14998 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14999 case $host_os in 15000 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15001 *) need_version=no ;; 15002 esac 15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15005 shlibpath_var=LD_LIBRARY_PATH 15006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15007 case $host_os in 15008 openbsd2.[89] | openbsd2.[89].*) 15009 shlibpath_overrides_runpath=no 15010 ;; 15011 *) 15012 shlibpath_overrides_runpath=yes 15013 ;; 15014 esac 15015 else 15016 shlibpath_overrides_runpath=yes 15017 fi 15018 ;; 15019 15020os2*) 15021 libname_spec='$name' 15022 shrext_cmds=".dll" 15023 need_lib_prefix=no 15024 library_names_spec='$libname${shared_ext} $libname.a' 15025 dynamic_linker='OS/2 ld.exe' 15026 shlibpath_var=LIBPATH 15027 ;; 15028 15029osf3* | osf4* | osf5*) 15030 version_type=osf 15031 need_lib_prefix=no 15032 need_version=no 15033 soname_spec='${libname}${release}${shared_ext}$major' 15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15035 shlibpath_var=LD_LIBRARY_PATH 15036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15037 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15038 ;; 15039 15040rdos*) 15041 dynamic_linker=no 15042 ;; 15043 15044solaris*) 15045 version_type=linux 15046 need_lib_prefix=no 15047 need_version=no 15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15049 soname_spec='${libname}${release}${shared_ext}$major' 15050 shlibpath_var=LD_LIBRARY_PATH 15051 shlibpath_overrides_runpath=yes 15052 hardcode_into_libs=yes 15053 # ldd complains unless libraries are executable 15054 postinstall_cmds='chmod +x $lib' 15055 ;; 15056 15057sunos4*) 15058 version_type=sunos 15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15061 shlibpath_var=LD_LIBRARY_PATH 15062 shlibpath_overrides_runpath=yes 15063 if test "$with_gnu_ld" = yes; then 15064 need_lib_prefix=no 15065 fi 15066 need_version=yes 15067 ;; 15068 15069sysv4 | sysv4.3*) 15070 version_type=linux 15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15072 soname_spec='${libname}${release}${shared_ext}$major' 15073 shlibpath_var=LD_LIBRARY_PATH 15074 case $host_vendor in 15075 sni) 15076 shlibpath_overrides_runpath=no 15077 need_lib_prefix=no 15078 runpath_var=LD_RUN_PATH 15079 ;; 15080 siemens) 15081 need_lib_prefix=no 15082 ;; 15083 motorola) 15084 need_lib_prefix=no 15085 need_version=no 15086 shlibpath_overrides_runpath=no 15087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15088 ;; 15089 esac 15090 ;; 15091 15092sysv4*MP*) 15093 if test -d /usr/nec ;then 15094 version_type=linux 15095 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15096 soname_spec='$libname${shared_ext}.$major' 15097 shlibpath_var=LD_LIBRARY_PATH 15098 fi 15099 ;; 15100 15101sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15102 version_type=freebsd-elf 15103 need_lib_prefix=no 15104 need_version=no 15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15106 soname_spec='${libname}${release}${shared_ext}$major' 15107 shlibpath_var=LD_LIBRARY_PATH 15108 shlibpath_overrides_runpath=yes 15109 hardcode_into_libs=yes 15110 if test "$with_gnu_ld" = yes; then 15111 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15112 else 15113 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15114 case $host_os in 15115 sco3.2v5*) 15116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15117 ;; 15118 esac 15119 fi 15120 sys_lib_dlsearch_path_spec='/usr/lib' 15121 ;; 15122 15123tpf*) 15124 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15125 version_type=linux 15126 need_lib_prefix=no 15127 need_version=no 15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15129 shlibpath_var=LD_LIBRARY_PATH 15130 shlibpath_overrides_runpath=no 15131 hardcode_into_libs=yes 15132 ;; 15133 15134uts4*) 15135 version_type=linux 15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15137 soname_spec='${libname}${release}${shared_ext}$major' 15138 shlibpath_var=LD_LIBRARY_PATH 15139 ;; 15140 15141*) 15142 dynamic_linker=no 15143 ;; 15144esac 15145{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15146$as_echo "$dynamic_linker" >&6; } 15147test "$dynamic_linker" = no && can_build_shared=no 15148 15149variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15150if test "$GCC" = yes; then 15151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15152fi 15153 15154if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15155 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15156fi 15157if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15158 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15159fi 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15197$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15198hardcode_action_CXX= 15199if test -n "$hardcode_libdir_flag_spec_CXX" || 15200 test -n "$runpath_var_CXX" || 15201 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15202 15203 # We can hardcode non-existent directories. 15204 if test "$hardcode_direct_CXX" != no && 15205 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15206 # have to relink, otherwise we might link with an installed library 15207 # when we should be linking with a yet-to-be-installed one 15208 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15209 test "$hardcode_minus_L_CXX" != no; then 15210 # Linking always hardcodes the temporary library directory. 15211 hardcode_action_CXX=relink 15212 else 15213 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15214 hardcode_action_CXX=immediate 15215 fi 15216else 15217 # We cannot hardcode anything, or else we can only hardcode existing 15218 # directories. 15219 hardcode_action_CXX=unsupported 15220fi 15221{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 15222$as_echo "$hardcode_action_CXX" >&6; } 15223 15224if test "$hardcode_action_CXX" = relink || 15225 test "$inherit_rpath_CXX" = yes; then 15226 # Fast installation is not supported 15227 enable_fast_install=no 15228elif test "$shlibpath_overrides_runpath" = yes || 15229 test "$enable_shared" = no; then 15230 # Fast installation is not necessary 15231 enable_fast_install=needless 15232fi 15233 15234 15235 15236 15237 15238 15239 15240 fi # test -n "$compiler" 15241 15242 CC=$lt_save_CC 15243 LDCXX=$LD 15244 LD=$lt_save_LD 15245 GCC=$lt_save_GCC 15246 with_gnu_ld=$lt_save_with_gnu_ld 15247 lt_cv_path_LDCXX=$lt_cv_path_LD 15248 lt_cv_path_LD=$lt_save_path_LD 15249 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15250 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15251fi # test "$_lt_caught_CXX_error" != yes 15252 15253ac_ext=c 15254ac_cpp='$CPP $CPPFLAGS' 15255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15257ac_compiler_gnu=$ac_cv_c_compiler_gnu 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 ac_config_commands="$ac_config_commands libtool" 15272 15273 15274 15275 15276# Only expand once: 15277 15278 15279 15280# Checks for libraries. 15281 15282{ $as_echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5 15283$as_echo_n "checking for libiconv_open in -liconv... " >&6; } 15284if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then 15285 $as_echo_n "(cached) " >&6 15286else 15287 ac_check_lib_save_LIBS=$LIBS 15288LIBS="-liconv $LIBS" 15289cat >conftest.$ac_ext <<_ACEOF 15290/* confdefs.h. */ 15291_ACEOF 15292cat confdefs.h >>conftest.$ac_ext 15293cat >>conftest.$ac_ext <<_ACEOF 15294/* end confdefs.h. */ 15295 15296/* Override any GCC internal prototype to avoid an error. 15297 Use char because int might match the return type of a GCC 15298 builtin and then its argument prototype would still apply. */ 15299#ifdef __cplusplus 15300extern "C" 15301#endif 15302char libiconv_open (); 15303int 15304main () 15305{ 15306return libiconv_open (); 15307 ; 15308 return 0; 15309} 15310_ACEOF 15311rm -f conftest.$ac_objext conftest$ac_exeext 15312if { (ac_try="$ac_link" 15313case "(($ac_try" in 15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15315 *) ac_try_echo=$ac_try;; 15316esac 15317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15318$as_echo "$ac_try_echo") >&5 15319 (eval "$ac_link") 2>conftest.er1 15320 ac_status=$? 15321 grep -v '^ *+' conftest.er1 >conftest.err 15322 rm -f conftest.er1 15323 cat conftest.err >&5 15324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15325 (exit $ac_status); } && { 15326 test -z "$ac_c_werror_flag" || 15327 test ! -s conftest.err 15328 } && test -s conftest$ac_exeext && { 15329 test "$cross_compiling" = yes || 15330 $as_test_x conftest$ac_exeext 15331 }; then 15332 ac_cv_lib_iconv_libiconv_open=yes 15333else 15334 $as_echo "$as_me: failed program was:" >&5 15335sed 's/^/| /' conftest.$ac_ext >&5 15336 15337 ac_cv_lib_iconv_libiconv_open=no 15338fi 15339 15340rm -rf conftest.dSYM 15341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15342 conftest$ac_exeext conftest.$ac_ext 15343LIBS=$ac_check_lib_save_LIBS 15344fi 15345{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5 15346$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } 15347if test "x$ac_cv_lib_iconv_libiconv_open" = x""yes; then 15348 cat >>confdefs.h <<_ACEOF 15349#define HAVE_LIBICONV 1 15350_ACEOF 15351 15352 LIBS="-liconv $LIBS" 15353 15354fi 15355 15356 15357# Checks for header files. 15358{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 15359$as_echo_n "checking for ANSI C header files... " >&6; } 15360if test "${ac_cv_header_stdc+set}" = set; then 15361 $as_echo_n "(cached) " >&6 15362else 15363 cat >conftest.$ac_ext <<_ACEOF 15364/* confdefs.h. */ 15365_ACEOF 15366cat confdefs.h >>conftest.$ac_ext 15367cat >>conftest.$ac_ext <<_ACEOF 15368/* end confdefs.h. */ 15369#include <stdlib.h> 15370#include <stdarg.h> 15371#include <string.h> 15372#include <float.h> 15373 15374int 15375main () 15376{ 15377 15378 ; 15379 return 0; 15380} 15381_ACEOF 15382rm -f conftest.$ac_objext 15383if { (ac_try="$ac_compile" 15384case "(($ac_try" in 15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15386 *) ac_try_echo=$ac_try;; 15387esac 15388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15389$as_echo "$ac_try_echo") >&5 15390 (eval "$ac_compile") 2>conftest.er1 15391 ac_status=$? 15392 grep -v '^ *+' conftest.er1 >conftest.err 15393 rm -f conftest.er1 15394 cat conftest.err >&5 15395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15396 (exit $ac_status); } && { 15397 test -z "$ac_c_werror_flag" || 15398 test ! -s conftest.err 15399 } && test -s conftest.$ac_objext; then 15400 ac_cv_header_stdc=yes 15401else 15402 $as_echo "$as_me: failed program was:" >&5 15403sed 's/^/| /' conftest.$ac_ext >&5 15404 15405 ac_cv_header_stdc=no 15406fi 15407 15408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15409 15410if test $ac_cv_header_stdc = yes; then 15411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15412 cat >conftest.$ac_ext <<_ACEOF 15413/* confdefs.h. */ 15414_ACEOF 15415cat confdefs.h >>conftest.$ac_ext 15416cat >>conftest.$ac_ext <<_ACEOF 15417/* end confdefs.h. */ 15418#include <string.h> 15419 15420_ACEOF 15421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15422 $EGREP "memchr" >/dev/null 2>&1; then 15423 : 15424else 15425 ac_cv_header_stdc=no 15426fi 15427rm -f conftest* 15428 15429fi 15430 15431if test $ac_cv_header_stdc = yes; then 15432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15433 cat >conftest.$ac_ext <<_ACEOF 15434/* confdefs.h. */ 15435_ACEOF 15436cat confdefs.h >>conftest.$ac_ext 15437cat >>conftest.$ac_ext <<_ACEOF 15438/* end confdefs.h. */ 15439#include <stdlib.h> 15440 15441_ACEOF 15442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15443 $EGREP "free" >/dev/null 2>&1; then 15444 : 15445else 15446 ac_cv_header_stdc=no 15447fi 15448rm -f conftest* 15449 15450fi 15451 15452if test $ac_cv_header_stdc = yes; then 15453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15454 if test "$cross_compiling" = yes; then 15455 : 15456else 15457 cat >conftest.$ac_ext <<_ACEOF 15458/* confdefs.h. */ 15459_ACEOF 15460cat confdefs.h >>conftest.$ac_ext 15461cat >>conftest.$ac_ext <<_ACEOF 15462/* end confdefs.h. */ 15463#include <ctype.h> 15464#include <stdlib.h> 15465#if ((' ' & 0x0FF) == 0x020) 15466# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15467# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15468#else 15469# define ISLOWER(c) \ 15470 (('a' <= (c) && (c) <= 'i') \ 15471 || ('j' <= (c) && (c) <= 'r') \ 15472 || ('s' <= (c) && (c) <= 'z')) 15473# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15474#endif 15475 15476#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15477int 15478main () 15479{ 15480 int i; 15481 for (i = 0; i < 256; i++) 15482 if (XOR (islower (i), ISLOWER (i)) 15483 || toupper (i) != TOUPPER (i)) 15484 return 2; 15485 return 0; 15486} 15487_ACEOF 15488rm -f conftest$ac_exeext 15489if { (ac_try="$ac_link" 15490case "(($ac_try" in 15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15492 *) ac_try_echo=$ac_try;; 15493esac 15494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15495$as_echo "$ac_try_echo") >&5 15496 (eval "$ac_link") 2>&5 15497 ac_status=$? 15498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15500 { (case "(($ac_try" in 15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15502 *) ac_try_echo=$ac_try;; 15503esac 15504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15505$as_echo "$ac_try_echo") >&5 15506 (eval "$ac_try") 2>&5 15507 ac_status=$? 15508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15509 (exit $ac_status); }; }; then 15510 : 15511else 15512 $as_echo "$as_me: program exited with status $ac_status" >&5 15513$as_echo "$as_me: failed program was:" >&5 15514sed 's/^/| /' conftest.$ac_ext >&5 15515 15516( exit $ac_status ) 15517ac_cv_header_stdc=no 15518fi 15519rm -rf conftest.dSYM 15520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15521fi 15522 15523 15524fi 15525fi 15526{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 15527$as_echo "$ac_cv_header_stdc" >&6; } 15528if test $ac_cv_header_stdc = yes; then 15529 15530cat >>confdefs.h <<\_ACEOF 15531#define STDC_HEADERS 1 15532_ACEOF 15533 15534fi 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547for ac_header in arpa/inet.h fcntl.h limits.h memory.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h 15548do 15549as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15551 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15552$as_echo_n "checking for $ac_header... " >&6; } 15553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15554 $as_echo_n "(cached) " >&6 15555fi 15556ac_res=`eval 'as_val=${'$as_ac_Header'} 15557 $as_echo "$as_val"'` 15558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15559$as_echo "$ac_res" >&6; } 15560else 15561 # Is the header compilable? 15562{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 15563$as_echo_n "checking $ac_header usability... " >&6; } 15564cat >conftest.$ac_ext <<_ACEOF 15565/* confdefs.h. */ 15566_ACEOF 15567cat confdefs.h >>conftest.$ac_ext 15568cat >>conftest.$ac_ext <<_ACEOF 15569/* end confdefs.h. */ 15570$ac_includes_default 15571#include <$ac_header> 15572_ACEOF 15573rm -f conftest.$ac_objext 15574if { (ac_try="$ac_compile" 15575case "(($ac_try" in 15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15577 *) ac_try_echo=$ac_try;; 15578esac 15579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15580$as_echo "$ac_try_echo") >&5 15581 (eval "$ac_compile") 2>conftest.er1 15582 ac_status=$? 15583 grep -v '^ *+' conftest.er1 >conftest.err 15584 rm -f conftest.er1 15585 cat conftest.err >&5 15586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15587 (exit $ac_status); } && { 15588 test -z "$ac_c_werror_flag" || 15589 test ! -s conftest.err 15590 } && test -s conftest.$ac_objext; then 15591 ac_header_compiler=yes 15592else 15593 $as_echo "$as_me: failed program was:" >&5 15594sed 's/^/| /' conftest.$ac_ext >&5 15595 15596 ac_header_compiler=no 15597fi 15598 15599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15600{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15601$as_echo "$ac_header_compiler" >&6; } 15602 15603# Is the header present? 15604{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 15605$as_echo_n "checking $ac_header presence... " >&6; } 15606cat >conftest.$ac_ext <<_ACEOF 15607/* confdefs.h. */ 15608_ACEOF 15609cat confdefs.h >>conftest.$ac_ext 15610cat >>conftest.$ac_ext <<_ACEOF 15611/* end confdefs.h. */ 15612#include <$ac_header> 15613_ACEOF 15614if { (ac_try="$ac_cpp conftest.$ac_ext" 15615case "(($ac_try" in 15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15617 *) ac_try_echo=$ac_try;; 15618esac 15619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15620$as_echo "$ac_try_echo") >&5 15621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15622 ac_status=$? 15623 grep -v '^ *+' conftest.er1 >conftest.err 15624 rm -f conftest.er1 15625 cat conftest.err >&5 15626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15627 (exit $ac_status); } >/dev/null && { 15628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15629 test ! -s conftest.err 15630 }; then 15631 ac_header_preproc=yes 15632else 15633 $as_echo "$as_me: failed program was:" >&5 15634sed 's/^/| /' conftest.$ac_ext >&5 15635 15636 ac_header_preproc=no 15637fi 15638 15639rm -f conftest.err conftest.$ac_ext 15640{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15641$as_echo "$ac_header_preproc" >&6; } 15642 15643# So? What about this header? 15644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15645 yes:no: ) 15646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15647$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15649$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15650 ac_header_preproc=yes 15651 ;; 15652 no:yes:* ) 15653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15654$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15656$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15658$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15660$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15662$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15664$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15665 ( cat <<\_ASBOX 15666## ---------------------------------------- ## 15667## Report this to sagara@csis.u-tokyo.ac.jp ## 15668## ---------------------------------------- ## 15669_ASBOX 15670 ) | sed "s/^/$as_me: WARNING: /" >&2 15671 ;; 15672esac 15673{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15674$as_echo_n "checking for $ac_header... " >&6; } 15675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15676 $as_echo_n "(cached) " >&6 15677else 15678 eval "$as_ac_Header=\$ac_header_preproc" 15679fi 15680ac_res=`eval 'as_val=${'$as_ac_Header'} 15681 $as_echo "$as_val"'` 15682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15683$as_echo "$ac_res" >&6; } 15684 15685fi 15686as_val=`eval 'as_val=${'$as_ac_Header'} 15687 $as_echo "$as_val"'` 15688 if test "x$as_val" = x""yes; then 15689 cat >>confdefs.h <<_ACEOF 15690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15691_ACEOF 15692 15693fi 15694 15695done 15696 15697 15698# Checks for typedefs, structures, and compiler characteristics. 15699{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 15700$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 15701if test "${ac_cv_header_stdbool_h+set}" = set; then 15702 $as_echo_n "(cached) " >&6 15703else 15704 cat >conftest.$ac_ext <<_ACEOF 15705/* confdefs.h. */ 15706_ACEOF 15707cat confdefs.h >>conftest.$ac_ext 15708cat >>conftest.$ac_ext <<_ACEOF 15709/* end confdefs.h. */ 15710 15711#include <stdbool.h> 15712#ifndef bool 15713 "error: bool is not defined" 15714#endif 15715#ifndef false 15716 "error: false is not defined" 15717#endif 15718#if false 15719 "error: false is not 0" 15720#endif 15721#ifndef true 15722 "error: true is not defined" 15723#endif 15724#if true != 1 15725 "error: true is not 1" 15726#endif 15727#ifndef __bool_true_false_are_defined 15728 "error: __bool_true_false_are_defined is not defined" 15729#endif 15730 15731 struct s { _Bool s: 1; _Bool t; } s; 15732 15733 char a[true == 1 ? 1 : -1]; 15734 char b[false == 0 ? 1 : -1]; 15735 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 15736 char d[(bool) 0.5 == true ? 1 : -1]; 15737 bool e = &s; 15738 char f[(_Bool) 0.0 == false ? 1 : -1]; 15739 char g[true]; 15740 char h[sizeof (_Bool)]; 15741 char i[sizeof s.t]; 15742 enum { j = false, k = true, l = false * true, m = true * 256 }; 15743 /* The following fails for 15744 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 15745 _Bool n[m]; 15746 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 15747 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 15748# if defined __xlc__ || defined __GNUC__ 15749 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 15750 reported by James Lemley on 2005-10-05; see 15751 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 15752 This test is not quite right, since xlc is allowed to 15753 reject this program, as the initializer for xlcbug is 15754 not one of the forms that C requires support for. 15755 However, doing the test right would require a runtime 15756 test, and that would make cross-compilation harder. 15757 Let us hope that IBM fixes the xlc bug, and also adds 15758 support for this kind of constant expression. In the 15759 meantime, this test will reject xlc, which is OK, since 15760 our stdbool.h substitute should suffice. We also test 15761 this with GCC, where it should work, to detect more 15762 quickly whether someone messes up the test in the 15763 future. */ 15764 char digs[] = "0123456789"; 15765 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 15766# endif 15767 /* Catch a bug in an HP-UX C compiler. See 15768 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 15769 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 15770 */ 15771 _Bool q = true; 15772 _Bool *pq = &q; 15773 15774int 15775main () 15776{ 15777 15778 *pq |= q; 15779 *pq |= ! q; 15780 /* Refer to every declared value, to avoid compiler optimizations. */ 15781 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 15782 + !m + !n + !o + !p + !q + !pq); 15783 15784 ; 15785 return 0; 15786} 15787_ACEOF 15788rm -f conftest.$ac_objext 15789if { (ac_try="$ac_compile" 15790case "(($ac_try" in 15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15792 *) ac_try_echo=$ac_try;; 15793esac 15794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15795$as_echo "$ac_try_echo") >&5 15796 (eval "$ac_compile") 2>conftest.er1 15797 ac_status=$? 15798 grep -v '^ *+' conftest.er1 >conftest.err 15799 rm -f conftest.er1 15800 cat conftest.err >&5 15801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15802 (exit $ac_status); } && { 15803 test -z "$ac_c_werror_flag" || 15804 test ! -s conftest.err 15805 } && test -s conftest.$ac_objext; then 15806 ac_cv_header_stdbool_h=yes 15807else 15808 $as_echo "$as_me: failed program was:" >&5 15809sed 's/^/| /' conftest.$ac_ext >&5 15810 15811 ac_cv_header_stdbool_h=no 15812fi 15813 15814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15815fi 15816{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 15817$as_echo "$ac_cv_header_stdbool_h" >&6; } 15818{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5 15819$as_echo_n "checking for _Bool... " >&6; } 15820if test "${ac_cv_type__Bool+set}" = set; then 15821 $as_echo_n "(cached) " >&6 15822else 15823 ac_cv_type__Bool=no 15824cat >conftest.$ac_ext <<_ACEOF 15825/* confdefs.h. */ 15826_ACEOF 15827cat confdefs.h >>conftest.$ac_ext 15828cat >>conftest.$ac_ext <<_ACEOF 15829/* end confdefs.h. */ 15830$ac_includes_default 15831int 15832main () 15833{ 15834if (sizeof (_Bool)) 15835 return 0; 15836 ; 15837 return 0; 15838} 15839_ACEOF 15840rm -f conftest.$ac_objext 15841if { (ac_try="$ac_compile" 15842case "(($ac_try" in 15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15844 *) ac_try_echo=$ac_try;; 15845esac 15846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15847$as_echo "$ac_try_echo") >&5 15848 (eval "$ac_compile") 2>conftest.er1 15849 ac_status=$? 15850 grep -v '^ *+' conftest.er1 >conftest.err 15851 rm -f conftest.er1 15852 cat conftest.err >&5 15853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15854 (exit $ac_status); } && { 15855 test -z "$ac_c_werror_flag" || 15856 test ! -s conftest.err 15857 } && test -s conftest.$ac_objext; then 15858 cat >conftest.$ac_ext <<_ACEOF 15859/* confdefs.h. */ 15860_ACEOF 15861cat confdefs.h >>conftest.$ac_ext 15862cat >>conftest.$ac_ext <<_ACEOF 15863/* end confdefs.h. */ 15864$ac_includes_default 15865int 15866main () 15867{ 15868if (sizeof ((_Bool))) 15869 return 0; 15870 ; 15871 return 0; 15872} 15873_ACEOF 15874rm -f conftest.$ac_objext 15875if { (ac_try="$ac_compile" 15876case "(($ac_try" in 15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15878 *) ac_try_echo=$ac_try;; 15879esac 15880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15881$as_echo "$ac_try_echo") >&5 15882 (eval "$ac_compile") 2>conftest.er1 15883 ac_status=$? 15884 grep -v '^ *+' conftest.er1 >conftest.err 15885 rm -f conftest.er1 15886 cat conftest.err >&5 15887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15888 (exit $ac_status); } && { 15889 test -z "$ac_c_werror_flag" || 15890 test ! -s conftest.err 15891 } && test -s conftest.$ac_objext; then 15892 : 15893else 15894 $as_echo "$as_me: failed program was:" >&5 15895sed 's/^/| /' conftest.$ac_ext >&5 15896 15897 ac_cv_type__Bool=yes 15898fi 15899 15900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15901else 15902 $as_echo "$as_me: failed program was:" >&5 15903sed 's/^/| /' conftest.$ac_ext >&5 15904 15905 15906fi 15907 15908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15909fi 15910{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 15911$as_echo "$ac_cv_type__Bool" >&6; } 15912if test "x$ac_cv_type__Bool" = x""yes; then 15913 15914cat >>confdefs.h <<_ACEOF 15915#define HAVE__BOOL 1 15916_ACEOF 15917 15918 15919fi 15920 15921if test $ac_cv_header_stdbool_h = yes; then 15922 15923cat >>confdefs.h <<\_ACEOF 15924#define HAVE_STDBOOL_H 1 15925_ACEOF 15926 15927fi 15928 15929{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 15930$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15931if test "${ac_cv_c_const+set}" = set; then 15932 $as_echo_n "(cached) " >&6 15933else 15934 cat >conftest.$ac_ext <<_ACEOF 15935/* confdefs.h. */ 15936_ACEOF 15937cat confdefs.h >>conftest.$ac_ext 15938cat >>conftest.$ac_ext <<_ACEOF 15939/* end confdefs.h. */ 15940 15941int 15942main () 15943{ 15944/* FIXME: Include the comments suggested by Paul. */ 15945#ifndef __cplusplus 15946 /* Ultrix mips cc rejects this. */ 15947 typedef int charset[2]; 15948 const charset cs; 15949 /* SunOS 4.1.1 cc rejects this. */ 15950 char const *const *pcpcc; 15951 char **ppc; 15952 /* NEC SVR4.0.2 mips cc rejects this. */ 15953 struct point {int x, y;}; 15954 static struct point const zero = {0,0}; 15955 /* AIX XL C 1.02.0.0 rejects this. 15956 It does not let you subtract one const X* pointer from another in 15957 an arm of an if-expression whose if-part is not a constant 15958 expression */ 15959 const char *g = "string"; 15960 pcpcc = &g + (g ? g-g : 0); 15961 /* HPUX 7.0 cc rejects these. */ 15962 ++pcpcc; 15963 ppc = (char**) pcpcc; 15964 pcpcc = (char const *const *) ppc; 15965 { /* SCO 3.2v4 cc rejects this. */ 15966 char *t; 15967 char const *s = 0 ? (char *) 0 : (char const *) 0; 15968 15969 *t++ = 0; 15970 if (s) return 0; 15971 } 15972 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15973 int x[] = {25, 17}; 15974 const int *foo = &x[0]; 15975 ++foo; 15976 } 15977 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15978 typedef const int *iptr; 15979 iptr p = 0; 15980 ++p; 15981 } 15982 { /* AIX XL C 1.02.0.0 rejects this saying 15983 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15984 struct s { int j; const int *ap[3]; }; 15985 struct s *b; b->j = 5; 15986 } 15987 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15988 const int foo = 10; 15989 if (!foo) return 0; 15990 } 15991 return !cs[0] && !zero.x; 15992#endif 15993 15994 ; 15995 return 0; 15996} 15997_ACEOF 15998rm -f conftest.$ac_objext 15999if { (ac_try="$ac_compile" 16000case "(($ac_try" in 16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16002 *) ac_try_echo=$ac_try;; 16003esac 16004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16005$as_echo "$ac_try_echo") >&5 16006 (eval "$ac_compile") 2>conftest.er1 16007 ac_status=$? 16008 grep -v '^ *+' conftest.er1 >conftest.err 16009 rm -f conftest.er1 16010 cat conftest.err >&5 16011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16012 (exit $ac_status); } && { 16013 test -z "$ac_c_werror_flag" || 16014 test ! -s conftest.err 16015 } && test -s conftest.$ac_objext; then 16016 ac_cv_c_const=yes 16017else 16018 $as_echo "$as_me: failed program was:" >&5 16019sed 's/^/| /' conftest.$ac_ext >&5 16020 16021 ac_cv_c_const=no 16022fi 16023 16024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16025fi 16026{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 16027$as_echo "$ac_cv_c_const" >&6; } 16028if test $ac_cv_c_const = no; then 16029 16030cat >>confdefs.h <<\_ACEOF 16031#define const /**/ 16032_ACEOF 16033 16034fi 16035 16036{ $as_echo "$as_me:$LINENO: checking for inline" >&5 16037$as_echo_n "checking for inline... " >&6; } 16038if test "${ac_cv_c_inline+set}" = set; then 16039 $as_echo_n "(cached) " >&6 16040else 16041 ac_cv_c_inline=no 16042for ac_kw in inline __inline__ __inline; do 16043 cat >conftest.$ac_ext <<_ACEOF 16044/* confdefs.h. */ 16045_ACEOF 16046cat confdefs.h >>conftest.$ac_ext 16047cat >>conftest.$ac_ext <<_ACEOF 16048/* end confdefs.h. */ 16049#ifndef __cplusplus 16050typedef int foo_t; 16051static $ac_kw foo_t static_foo () {return 0; } 16052$ac_kw foo_t foo () {return 0; } 16053#endif 16054 16055_ACEOF 16056rm -f conftest.$ac_objext 16057if { (ac_try="$ac_compile" 16058case "(($ac_try" in 16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16060 *) ac_try_echo=$ac_try;; 16061esac 16062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16063$as_echo "$ac_try_echo") >&5 16064 (eval "$ac_compile") 2>conftest.er1 16065 ac_status=$? 16066 grep -v '^ *+' conftest.er1 >conftest.err 16067 rm -f conftest.er1 16068 cat conftest.err >&5 16069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16070 (exit $ac_status); } && { 16071 test -z "$ac_c_werror_flag" || 16072 test ! -s conftest.err 16073 } && test -s conftest.$ac_objext; then 16074 ac_cv_c_inline=$ac_kw 16075else 16076 $as_echo "$as_me: failed program was:" >&5 16077sed 's/^/| /' conftest.$ac_ext >&5 16078 16079 16080fi 16081 16082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16083 test "$ac_cv_c_inline" != no && break 16084done 16085 16086fi 16087{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 16088$as_echo "$ac_cv_c_inline" >&6; } 16089 16090 16091case $ac_cv_c_inline in 16092 inline | yes) ;; 16093 *) 16094 case $ac_cv_c_inline in 16095 no) ac_val=;; 16096 *) ac_val=$ac_cv_c_inline;; 16097 esac 16098 cat >>confdefs.h <<_ACEOF 16099#ifndef __cplusplus 16100#define inline $ac_val 16101#endif 16102_ACEOF 16103 ;; 16104esac 16105 16106{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 16107$as_echo_n "checking for size_t... " >&6; } 16108if test "${ac_cv_type_size_t+set}" = set; then 16109 $as_echo_n "(cached) " >&6 16110else 16111 ac_cv_type_size_t=no 16112cat >conftest.$ac_ext <<_ACEOF 16113/* confdefs.h. */ 16114_ACEOF 16115cat confdefs.h >>conftest.$ac_ext 16116cat >>conftest.$ac_ext <<_ACEOF 16117/* end confdefs.h. */ 16118$ac_includes_default 16119int 16120main () 16121{ 16122if (sizeof (size_t)) 16123 return 0; 16124 ; 16125 return 0; 16126} 16127_ACEOF 16128rm -f conftest.$ac_objext 16129if { (ac_try="$ac_compile" 16130case "(($ac_try" in 16131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16132 *) ac_try_echo=$ac_try;; 16133esac 16134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16135$as_echo "$ac_try_echo") >&5 16136 (eval "$ac_compile") 2>conftest.er1 16137 ac_status=$? 16138 grep -v '^ *+' conftest.er1 >conftest.err 16139 rm -f conftest.er1 16140 cat conftest.err >&5 16141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16142 (exit $ac_status); } && { 16143 test -z "$ac_c_werror_flag" || 16144 test ! -s conftest.err 16145 } && test -s conftest.$ac_objext; then 16146 cat >conftest.$ac_ext <<_ACEOF 16147/* confdefs.h. */ 16148_ACEOF 16149cat confdefs.h >>conftest.$ac_ext 16150cat >>conftest.$ac_ext <<_ACEOF 16151/* end confdefs.h. */ 16152$ac_includes_default 16153int 16154main () 16155{ 16156if (sizeof ((size_t))) 16157 return 0; 16158 ; 16159 return 0; 16160} 16161_ACEOF 16162rm -f conftest.$ac_objext 16163if { (ac_try="$ac_compile" 16164case "(($ac_try" in 16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16166 *) ac_try_echo=$ac_try;; 16167esac 16168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16169$as_echo "$ac_try_echo") >&5 16170 (eval "$ac_compile") 2>conftest.er1 16171 ac_status=$? 16172 grep -v '^ *+' conftest.er1 >conftest.err 16173 rm -f conftest.er1 16174 cat conftest.err >&5 16175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16176 (exit $ac_status); } && { 16177 test -z "$ac_c_werror_flag" || 16178 test ! -s conftest.err 16179 } && test -s conftest.$ac_objext; then 16180 : 16181else 16182 $as_echo "$as_me: failed program was:" >&5 16183sed 's/^/| /' conftest.$ac_ext >&5 16184 16185 ac_cv_type_size_t=yes 16186fi 16187 16188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16189else 16190 $as_echo "$as_me: failed program was:" >&5 16191sed 's/^/| /' conftest.$ac_ext >&5 16192 16193 16194fi 16195 16196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16197fi 16198{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16199$as_echo "$ac_cv_type_size_t" >&6; } 16200if test "x$ac_cv_type_size_t" = x""yes; then 16201 : 16202else 16203 16204cat >>confdefs.h <<_ACEOF 16205#define size_t unsigned int 16206_ACEOF 16207 16208fi 16209 16210{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 16211$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16212if test "${ac_cv_header_time+set}" = set; then 16213 $as_echo_n "(cached) " >&6 16214else 16215 cat >conftest.$ac_ext <<_ACEOF 16216/* confdefs.h. */ 16217_ACEOF 16218cat confdefs.h >>conftest.$ac_ext 16219cat >>conftest.$ac_ext <<_ACEOF 16220/* end confdefs.h. */ 16221#include <sys/types.h> 16222#include <sys/time.h> 16223#include <time.h> 16224 16225int 16226main () 16227{ 16228if ((struct tm *) 0) 16229return 0; 16230 ; 16231 return 0; 16232} 16233_ACEOF 16234rm -f conftest.$ac_objext 16235if { (ac_try="$ac_compile" 16236case "(($ac_try" in 16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16238 *) ac_try_echo=$ac_try;; 16239esac 16240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16241$as_echo "$ac_try_echo") >&5 16242 (eval "$ac_compile") 2>conftest.er1 16243 ac_status=$? 16244 grep -v '^ *+' conftest.er1 >conftest.err 16245 rm -f conftest.er1 16246 cat conftest.err >&5 16247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16248 (exit $ac_status); } && { 16249 test -z "$ac_c_werror_flag" || 16250 test ! -s conftest.err 16251 } && test -s conftest.$ac_objext; then 16252 ac_cv_header_time=yes 16253else 16254 $as_echo "$as_me: failed program was:" >&5 16255sed 's/^/| /' conftest.$ac_ext >&5 16256 16257 ac_cv_header_time=no 16258fi 16259 16260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16261fi 16262{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 16263$as_echo "$ac_cv_header_time" >&6; } 16264if test $ac_cv_header_time = yes; then 16265 16266cat >>confdefs.h <<\_ACEOF 16267#define TIME_WITH_SYS_TIME 1 16268_ACEOF 16269 16270fi 16271 16272 16273# Checks for library functions. 16274 16275for ac_header in stdlib.h 16276do 16277as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16279 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16280$as_echo_n "checking for $ac_header... " >&6; } 16281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16282 $as_echo_n "(cached) " >&6 16283fi 16284ac_res=`eval 'as_val=${'$as_ac_Header'} 16285 $as_echo "$as_val"'` 16286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16287$as_echo "$ac_res" >&6; } 16288else 16289 # Is the header compilable? 16290{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16291$as_echo_n "checking $ac_header usability... " >&6; } 16292cat >conftest.$ac_ext <<_ACEOF 16293/* confdefs.h. */ 16294_ACEOF 16295cat confdefs.h >>conftest.$ac_ext 16296cat >>conftest.$ac_ext <<_ACEOF 16297/* end confdefs.h. */ 16298$ac_includes_default 16299#include <$ac_header> 16300_ACEOF 16301rm -f conftest.$ac_objext 16302if { (ac_try="$ac_compile" 16303case "(($ac_try" in 16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16305 *) ac_try_echo=$ac_try;; 16306esac 16307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16308$as_echo "$ac_try_echo") >&5 16309 (eval "$ac_compile") 2>conftest.er1 16310 ac_status=$? 16311 grep -v '^ *+' conftest.er1 >conftest.err 16312 rm -f conftest.er1 16313 cat conftest.err >&5 16314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16315 (exit $ac_status); } && { 16316 test -z "$ac_c_werror_flag" || 16317 test ! -s conftest.err 16318 } && test -s conftest.$ac_objext; then 16319 ac_header_compiler=yes 16320else 16321 $as_echo "$as_me: failed program was:" >&5 16322sed 's/^/| /' conftest.$ac_ext >&5 16323 16324 ac_header_compiler=no 16325fi 16326 16327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16328{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16329$as_echo "$ac_header_compiler" >&6; } 16330 16331# Is the header present? 16332{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16333$as_echo_n "checking $ac_header presence... " >&6; } 16334cat >conftest.$ac_ext <<_ACEOF 16335/* confdefs.h. */ 16336_ACEOF 16337cat confdefs.h >>conftest.$ac_ext 16338cat >>conftest.$ac_ext <<_ACEOF 16339/* end confdefs.h. */ 16340#include <$ac_header> 16341_ACEOF 16342if { (ac_try="$ac_cpp conftest.$ac_ext" 16343case "(($ac_try" in 16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16345 *) ac_try_echo=$ac_try;; 16346esac 16347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16348$as_echo "$ac_try_echo") >&5 16349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16350 ac_status=$? 16351 grep -v '^ *+' conftest.er1 >conftest.err 16352 rm -f conftest.er1 16353 cat conftest.err >&5 16354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16355 (exit $ac_status); } >/dev/null && { 16356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16357 test ! -s conftest.err 16358 }; then 16359 ac_header_preproc=yes 16360else 16361 $as_echo "$as_me: failed program was:" >&5 16362sed 's/^/| /' conftest.$ac_ext >&5 16363 16364 ac_header_preproc=no 16365fi 16366 16367rm -f conftest.err conftest.$ac_ext 16368{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16369$as_echo "$ac_header_preproc" >&6; } 16370 16371# So? What about this header? 16372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16373 yes:no: ) 16374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16375$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16377$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16378 ac_header_preproc=yes 16379 ;; 16380 no:yes:* ) 16381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16382$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16384$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16386$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16388$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16390$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16392$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16393 ( cat <<\_ASBOX 16394## ---------------------------------------- ## 16395## Report this to sagara@csis.u-tokyo.ac.jp ## 16396## ---------------------------------------- ## 16397_ASBOX 16398 ) | sed "s/^/$as_me: WARNING: /" >&2 16399 ;; 16400esac 16401{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16402$as_echo_n "checking for $ac_header... " >&6; } 16403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16404 $as_echo_n "(cached) " >&6 16405else 16406 eval "$as_ac_Header=\$ac_header_preproc" 16407fi 16408ac_res=`eval 'as_val=${'$as_ac_Header'} 16409 $as_echo "$as_val"'` 16410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16411$as_echo "$ac_res" >&6; } 16412 16413fi 16414as_val=`eval 'as_val=${'$as_ac_Header'} 16415 $as_echo "$as_val"'` 16416 if test "x$as_val" = x""yes; then 16417 cat >>confdefs.h <<_ACEOF 16418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16419_ACEOF 16420 16421fi 16422 16423done 16424 16425{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 16426$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 16427if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 16428 $as_echo_n "(cached) " >&6 16429else 16430 if test "$cross_compiling" = yes; then 16431 ac_cv_func_malloc_0_nonnull=no 16432else 16433 cat >conftest.$ac_ext <<_ACEOF 16434/* confdefs.h. */ 16435_ACEOF 16436cat confdefs.h >>conftest.$ac_ext 16437cat >>conftest.$ac_ext <<_ACEOF 16438/* end confdefs.h. */ 16439#if defined STDC_HEADERS || defined HAVE_STDLIB_H 16440# include <stdlib.h> 16441#else 16442char *malloc (); 16443#endif 16444 16445int 16446main () 16447{ 16448return ! malloc (0); 16449 ; 16450 return 0; 16451} 16452_ACEOF 16453rm -f conftest$ac_exeext 16454if { (ac_try="$ac_link" 16455case "(($ac_try" in 16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16457 *) ac_try_echo=$ac_try;; 16458esac 16459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16460$as_echo "$ac_try_echo") >&5 16461 (eval "$ac_link") 2>&5 16462 ac_status=$? 16463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16465 { (case "(($ac_try" in 16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16467 *) ac_try_echo=$ac_try;; 16468esac 16469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16470$as_echo "$ac_try_echo") >&5 16471 (eval "$ac_try") 2>&5 16472 ac_status=$? 16473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16474 (exit $ac_status); }; }; then 16475 ac_cv_func_malloc_0_nonnull=yes 16476else 16477 $as_echo "$as_me: program exited with status $ac_status" >&5 16478$as_echo "$as_me: failed program was:" >&5 16479sed 's/^/| /' conftest.$ac_ext >&5 16480 16481( exit $ac_status ) 16482ac_cv_func_malloc_0_nonnull=no 16483fi 16484rm -rf conftest.dSYM 16485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16486fi 16487 16488 16489fi 16490{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 16491$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 16492if test $ac_cv_func_malloc_0_nonnull = yes; then 16493 16494cat >>confdefs.h <<\_ACEOF 16495#define HAVE_MALLOC 1 16496_ACEOF 16497 16498else 16499 cat >>confdefs.h <<\_ACEOF 16500#define HAVE_MALLOC 0 16501_ACEOF 16502 16503 case " $LIBOBJS " in 16504 *" malloc.$ac_objext "* ) ;; 16505 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16506 ;; 16507esac 16508 16509 16510cat >>confdefs.h <<\_ACEOF 16511#define malloc rpl_malloc 16512_ACEOF 16513 16514fi 16515 16516 16517 16518 16519 16520for ac_header in stdlib.h unistd.h 16521do 16522as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16525$as_echo_n "checking for $ac_header... " >&6; } 16526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16527 $as_echo_n "(cached) " >&6 16528fi 16529ac_res=`eval 'as_val=${'$as_ac_Header'} 16530 $as_echo "$as_val"'` 16531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16532$as_echo "$ac_res" >&6; } 16533else 16534 # Is the header compilable? 16535{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16536$as_echo_n "checking $ac_header usability... " >&6; } 16537cat >conftest.$ac_ext <<_ACEOF 16538/* confdefs.h. */ 16539_ACEOF 16540cat confdefs.h >>conftest.$ac_ext 16541cat >>conftest.$ac_ext <<_ACEOF 16542/* end confdefs.h. */ 16543$ac_includes_default 16544#include <$ac_header> 16545_ACEOF 16546rm -f conftest.$ac_objext 16547if { (ac_try="$ac_compile" 16548case "(($ac_try" in 16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16550 *) ac_try_echo=$ac_try;; 16551esac 16552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16553$as_echo "$ac_try_echo") >&5 16554 (eval "$ac_compile") 2>conftest.er1 16555 ac_status=$? 16556 grep -v '^ *+' conftest.er1 >conftest.err 16557 rm -f conftest.er1 16558 cat conftest.err >&5 16559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16560 (exit $ac_status); } && { 16561 test -z "$ac_c_werror_flag" || 16562 test ! -s conftest.err 16563 } && test -s conftest.$ac_objext; then 16564 ac_header_compiler=yes 16565else 16566 $as_echo "$as_me: failed program was:" >&5 16567sed 's/^/| /' conftest.$ac_ext >&5 16568 16569 ac_header_compiler=no 16570fi 16571 16572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16573{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16574$as_echo "$ac_header_compiler" >&6; } 16575 16576# Is the header present? 16577{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16578$as_echo_n "checking $ac_header presence... " >&6; } 16579cat >conftest.$ac_ext <<_ACEOF 16580/* confdefs.h. */ 16581_ACEOF 16582cat confdefs.h >>conftest.$ac_ext 16583cat >>conftest.$ac_ext <<_ACEOF 16584/* end confdefs.h. */ 16585#include <$ac_header> 16586_ACEOF 16587if { (ac_try="$ac_cpp conftest.$ac_ext" 16588case "(($ac_try" in 16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16590 *) ac_try_echo=$ac_try;; 16591esac 16592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16593$as_echo "$ac_try_echo") >&5 16594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16595 ac_status=$? 16596 grep -v '^ *+' conftest.er1 >conftest.err 16597 rm -f conftest.er1 16598 cat conftest.err >&5 16599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16600 (exit $ac_status); } >/dev/null && { 16601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16602 test ! -s conftest.err 16603 }; then 16604 ac_header_preproc=yes 16605else 16606 $as_echo "$as_me: failed program was:" >&5 16607sed 's/^/| /' conftest.$ac_ext >&5 16608 16609 ac_header_preproc=no 16610fi 16611 16612rm -f conftest.err conftest.$ac_ext 16613{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16614$as_echo "$ac_header_preproc" >&6; } 16615 16616# So? What about this header? 16617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16618 yes:no: ) 16619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16620$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16622$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16623 ac_header_preproc=yes 16624 ;; 16625 no:yes:* ) 16626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16627$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16629$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16631$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16633$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16635$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16637$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16638 ( cat <<\_ASBOX 16639## ---------------------------------------- ## 16640## Report this to sagara@csis.u-tokyo.ac.jp ## 16641## ---------------------------------------- ## 16642_ASBOX 16643 ) | sed "s/^/$as_me: WARNING: /" >&2 16644 ;; 16645esac 16646{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16647$as_echo_n "checking for $ac_header... " >&6; } 16648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16649 $as_echo_n "(cached) " >&6 16650else 16651 eval "$as_ac_Header=\$ac_header_preproc" 16652fi 16653ac_res=`eval 'as_val=${'$as_ac_Header'} 16654 $as_echo "$as_val"'` 16655 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16656$as_echo "$ac_res" >&6; } 16657 16658fi 16659as_val=`eval 'as_val=${'$as_ac_Header'} 16660 $as_echo "$as_val"'` 16661 if test "x$as_val" = x""yes; then 16662 cat >>confdefs.h <<_ACEOF 16663#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16664_ACEOF 16665 16666fi 16667 16668done 16669 16670 16671for ac_func in getpagesize 16672do 16673as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16674{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 16675$as_echo_n "checking for $ac_func... " >&6; } 16676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16677 $as_echo_n "(cached) " >&6 16678else 16679 cat >conftest.$ac_ext <<_ACEOF 16680/* confdefs.h. */ 16681_ACEOF 16682cat confdefs.h >>conftest.$ac_ext 16683cat >>conftest.$ac_ext <<_ACEOF 16684/* end confdefs.h. */ 16685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16686 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16687#define $ac_func innocuous_$ac_func 16688 16689/* System header to define __stub macros and hopefully few prototypes, 16690 which can conflict with char $ac_func (); below. 16691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16692 <limits.h> exists even on freestanding compilers. */ 16693 16694#ifdef __STDC__ 16695# include <limits.h> 16696#else 16697# include <assert.h> 16698#endif 16699 16700#undef $ac_func 16701 16702/* Override any GCC internal prototype to avoid an error. 16703 Use char because int might match the return type of a GCC 16704 builtin and then its argument prototype would still apply. */ 16705#ifdef __cplusplus 16706extern "C" 16707#endif 16708char $ac_func (); 16709/* The GNU C library defines this for functions which it implements 16710 to always fail with ENOSYS. Some functions are actually named 16711 something starting with __ and the normal name is an alias. */ 16712#if defined __stub_$ac_func || defined __stub___$ac_func 16713choke me 16714#endif 16715 16716int 16717main () 16718{ 16719return $ac_func (); 16720 ; 16721 return 0; 16722} 16723_ACEOF 16724rm -f conftest.$ac_objext conftest$ac_exeext 16725if { (ac_try="$ac_link" 16726case "(($ac_try" in 16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16728 *) ac_try_echo=$ac_try;; 16729esac 16730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16731$as_echo "$ac_try_echo") >&5 16732 (eval "$ac_link") 2>conftest.er1 16733 ac_status=$? 16734 grep -v '^ *+' conftest.er1 >conftest.err 16735 rm -f conftest.er1 16736 cat conftest.err >&5 16737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16738 (exit $ac_status); } && { 16739 test -z "$ac_c_werror_flag" || 16740 test ! -s conftest.err 16741 } && test -s conftest$ac_exeext && { 16742 test "$cross_compiling" = yes || 16743 $as_test_x conftest$ac_exeext 16744 }; then 16745 eval "$as_ac_var=yes" 16746else 16747 $as_echo "$as_me: failed program was:" >&5 16748sed 's/^/| /' conftest.$ac_ext >&5 16749 16750 eval "$as_ac_var=no" 16751fi 16752 16753rm -rf conftest.dSYM 16754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16755 conftest$ac_exeext conftest.$ac_ext 16756fi 16757ac_res=`eval 'as_val=${'$as_ac_var'} 16758 $as_echo "$as_val"'` 16759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16760$as_echo "$ac_res" >&6; } 16761as_val=`eval 'as_val=${'$as_ac_var'} 16762 $as_echo "$as_val"'` 16763 if test "x$as_val" = x""yes; then 16764 cat >>confdefs.h <<_ACEOF 16765#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16766_ACEOF 16767 16768fi 16769done 16770 16771{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5 16772$as_echo_n "checking for working mmap... " >&6; } 16773if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 16774 $as_echo_n "(cached) " >&6 16775else 16776 if test "$cross_compiling" = yes; then 16777 ac_cv_func_mmap_fixed_mapped=no 16778else 16779 cat >conftest.$ac_ext <<_ACEOF 16780/* confdefs.h. */ 16781_ACEOF 16782cat confdefs.h >>conftest.$ac_ext 16783cat >>conftest.$ac_ext <<_ACEOF 16784/* end confdefs.h. */ 16785$ac_includes_default 16786/* malloc might have been renamed as rpl_malloc. */ 16787#undef malloc 16788 16789/* Thanks to Mike Haertel and Jim Avera for this test. 16790 Here is a matrix of mmap possibilities: 16791 mmap private not fixed 16792 mmap private fixed at somewhere currently unmapped 16793 mmap private fixed at somewhere already mapped 16794 mmap shared not fixed 16795 mmap shared fixed at somewhere currently unmapped 16796 mmap shared fixed at somewhere already mapped 16797 For private mappings, we should verify that changes cannot be read() 16798 back from the file, nor mmap's back from the file at a different 16799 address. (There have been systems where private was not correctly 16800 implemented like the infamous i386 svr4.0, and systems where the 16801 VM page cache was not coherent with the file system buffer cache 16802 like early versions of FreeBSD and possibly contemporary NetBSD.) 16803 For shared mappings, we should conversely verify that changes get 16804 propagated back to all the places they're supposed to be. 16805 16806 Grep wants private fixed already mapped. 16807 The main things grep needs to know about mmap are: 16808 * does it exist and is it safe to write into the mmap'd area 16809 * how to use it (BSD variants) */ 16810 16811#include <fcntl.h> 16812#include <sys/mman.h> 16813 16814#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 16815char *malloc (); 16816#endif 16817 16818/* This mess was copied from the GNU getpagesize.h. */ 16819#ifndef HAVE_GETPAGESIZE 16820/* Assume that all systems that can run configure have sys/param.h. */ 16821# ifndef HAVE_SYS_PARAM_H 16822# define HAVE_SYS_PARAM_H 1 16823# endif 16824 16825# ifdef _SC_PAGESIZE 16826# define getpagesize() sysconf(_SC_PAGESIZE) 16827# else /* no _SC_PAGESIZE */ 16828# ifdef HAVE_SYS_PARAM_H 16829# include <sys/param.h> 16830# ifdef EXEC_PAGESIZE 16831# define getpagesize() EXEC_PAGESIZE 16832# else /* no EXEC_PAGESIZE */ 16833# ifdef NBPG 16834# define getpagesize() NBPG * CLSIZE 16835# ifndef CLSIZE 16836# define CLSIZE 1 16837# endif /* no CLSIZE */ 16838# else /* no NBPG */ 16839# ifdef NBPC 16840# define getpagesize() NBPC 16841# else /* no NBPC */ 16842# ifdef PAGESIZE 16843# define getpagesize() PAGESIZE 16844# endif /* PAGESIZE */ 16845# endif /* no NBPC */ 16846# endif /* no NBPG */ 16847# endif /* no EXEC_PAGESIZE */ 16848# else /* no HAVE_SYS_PARAM_H */ 16849# define getpagesize() 8192 /* punt totally */ 16850# endif /* no HAVE_SYS_PARAM_H */ 16851# endif /* no _SC_PAGESIZE */ 16852 16853#endif /* no HAVE_GETPAGESIZE */ 16854 16855int 16856main () 16857{ 16858 char *data, *data2, *data3; 16859 int i, pagesize; 16860 int fd; 16861 16862 pagesize = getpagesize (); 16863 16864 /* First, make a file with some known garbage in it. */ 16865 data = (char *) malloc (pagesize); 16866 if (!data) 16867 return 1; 16868 for (i = 0; i < pagesize; ++i) 16869 *(data + i) = rand (); 16870 umask (0); 16871 fd = creat ("conftest.mmap", 0600); 16872 if (fd < 0) 16873 return 1; 16874 if (write (fd, data, pagesize) != pagesize) 16875 return 1; 16876 close (fd); 16877 16878 /* Next, try to mmap the file at a fixed address which already has 16879 something else allocated at it. If we can, also make sure that 16880 we see the same garbage. */ 16881 fd = open ("conftest.mmap", O_RDWR); 16882 if (fd < 0) 16883 return 1; 16884 data2 = (char *) malloc (2 * pagesize); 16885 if (!data2) 16886 return 1; 16887 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 16888 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 16889 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 16890 return 1; 16891 for (i = 0; i < pagesize; ++i) 16892 if (*(data + i) != *(data2 + i)) 16893 return 1; 16894 16895 /* Finally, make sure that changes to the mapped area do not 16896 percolate back to the file as seen by read(). (This is a bug on 16897 some variants of i386 svr4.0.) */ 16898 for (i = 0; i < pagesize; ++i) 16899 *(data2 + i) = *(data2 + i) + 1; 16900 data3 = (char *) malloc (pagesize); 16901 if (!data3) 16902 return 1; 16903 if (read (fd, data3, pagesize) != pagesize) 16904 return 1; 16905 for (i = 0; i < pagesize; ++i) 16906 if (*(data + i) != *(data3 + i)) 16907 return 1; 16908 close (fd); 16909 return 0; 16910} 16911_ACEOF 16912rm -f conftest$ac_exeext 16913if { (ac_try="$ac_link" 16914case "(($ac_try" in 16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16916 *) ac_try_echo=$ac_try;; 16917esac 16918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16919$as_echo "$ac_try_echo") >&5 16920 (eval "$ac_link") 2>&5 16921 ac_status=$? 16922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16924 { (case "(($ac_try" in 16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16926 *) ac_try_echo=$ac_try;; 16927esac 16928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16929$as_echo "$ac_try_echo") >&5 16930 (eval "$ac_try") 2>&5 16931 ac_status=$? 16932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16933 (exit $ac_status); }; }; then 16934 ac_cv_func_mmap_fixed_mapped=yes 16935else 16936 $as_echo "$as_me: program exited with status $ac_status" >&5 16937$as_echo "$as_me: failed program was:" >&5 16938sed 's/^/| /' conftest.$ac_ext >&5 16939 16940( exit $ac_status ) 16941ac_cv_func_mmap_fixed_mapped=no 16942fi 16943rm -rf conftest.dSYM 16944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16945fi 16946 16947 16948fi 16949{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 16950$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 16951if test $ac_cv_func_mmap_fixed_mapped = yes; then 16952 16953cat >>confdefs.h <<\_ACEOF 16954#define HAVE_MMAP 1 16955_ACEOF 16956 16957fi 16958rm -f conftest.mmap 16959 16960 16961for ac_header in stdlib.h 16962do 16963as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16966$as_echo_n "checking for $ac_header... " >&6; } 16967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16968 $as_echo_n "(cached) " >&6 16969fi 16970ac_res=`eval 'as_val=${'$as_ac_Header'} 16971 $as_echo "$as_val"'` 16972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16973$as_echo "$ac_res" >&6; } 16974else 16975 # Is the header compilable? 16976{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16977$as_echo_n "checking $ac_header usability... " >&6; } 16978cat >conftest.$ac_ext <<_ACEOF 16979/* confdefs.h. */ 16980_ACEOF 16981cat confdefs.h >>conftest.$ac_ext 16982cat >>conftest.$ac_ext <<_ACEOF 16983/* end confdefs.h. */ 16984$ac_includes_default 16985#include <$ac_header> 16986_ACEOF 16987rm -f conftest.$ac_objext 16988if { (ac_try="$ac_compile" 16989case "(($ac_try" in 16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16991 *) ac_try_echo=$ac_try;; 16992esac 16993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16994$as_echo "$ac_try_echo") >&5 16995 (eval "$ac_compile") 2>conftest.er1 16996 ac_status=$? 16997 grep -v '^ *+' conftest.er1 >conftest.err 16998 rm -f conftest.er1 16999 cat conftest.err >&5 17000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17001 (exit $ac_status); } && { 17002 test -z "$ac_c_werror_flag" || 17003 test ! -s conftest.err 17004 } && test -s conftest.$ac_objext; then 17005 ac_header_compiler=yes 17006else 17007 $as_echo "$as_me: failed program was:" >&5 17008sed 's/^/| /' conftest.$ac_ext >&5 17009 17010 ac_header_compiler=no 17011fi 17012 17013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17014{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17015$as_echo "$ac_header_compiler" >&6; } 17016 17017# Is the header present? 17018{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 17019$as_echo_n "checking $ac_header presence... " >&6; } 17020cat >conftest.$ac_ext <<_ACEOF 17021/* confdefs.h. */ 17022_ACEOF 17023cat confdefs.h >>conftest.$ac_ext 17024cat >>conftest.$ac_ext <<_ACEOF 17025/* end confdefs.h. */ 17026#include <$ac_header> 17027_ACEOF 17028if { (ac_try="$ac_cpp conftest.$ac_ext" 17029case "(($ac_try" in 17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17031 *) ac_try_echo=$ac_try;; 17032esac 17033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17034$as_echo "$ac_try_echo") >&5 17035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17036 ac_status=$? 17037 grep -v '^ *+' conftest.er1 >conftest.err 17038 rm -f conftest.er1 17039 cat conftest.err >&5 17040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17041 (exit $ac_status); } >/dev/null && { 17042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 17043 test ! -s conftest.err 17044 }; then 17045 ac_header_preproc=yes 17046else 17047 $as_echo "$as_me: failed program was:" >&5 17048sed 's/^/| /' conftest.$ac_ext >&5 17049 17050 ac_header_preproc=no 17051fi 17052 17053rm -f conftest.err conftest.$ac_ext 17054{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17055$as_echo "$ac_header_preproc" >&6; } 17056 17057# So? What about this header? 17058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17059 yes:no: ) 17060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17061$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17063$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17064 ac_header_preproc=yes 17065 ;; 17066 no:yes:* ) 17067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17068$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17070$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17072$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17074$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17076$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17078$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17079 ( cat <<\_ASBOX 17080## ---------------------------------------- ## 17081## Report this to sagara@csis.u-tokyo.ac.jp ## 17082## ---------------------------------------- ## 17083_ASBOX 17084 ) | sed "s/^/$as_me: WARNING: /" >&2 17085 ;; 17086esac 17087{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 17088$as_echo_n "checking for $ac_header... " >&6; } 17089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17090 $as_echo_n "(cached) " >&6 17091else 17092 eval "$as_ac_Header=\$ac_header_preproc" 17093fi 17094ac_res=`eval 'as_val=${'$as_ac_Header'} 17095 $as_echo "$as_val"'` 17096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17097$as_echo "$ac_res" >&6; } 17098 17099fi 17100as_val=`eval 'as_val=${'$as_ac_Header'} 17101 $as_echo "$as_val"'` 17102 if test "x$as_val" = x""yes; then 17103 cat >>confdefs.h <<_ACEOF 17104#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17105_ACEOF 17106 17107fi 17108 17109done 17110 17111{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 17112$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 17113if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 17114 $as_echo_n "(cached) " >&6 17115else 17116 if test "$cross_compiling" = yes; then 17117 ac_cv_func_realloc_0_nonnull=no 17118else 17119 cat >conftest.$ac_ext <<_ACEOF 17120/* confdefs.h. */ 17121_ACEOF 17122cat confdefs.h >>conftest.$ac_ext 17123cat >>conftest.$ac_ext <<_ACEOF 17124/* end confdefs.h. */ 17125#if defined STDC_HEADERS || defined HAVE_STDLIB_H 17126# include <stdlib.h> 17127#else 17128char *realloc (); 17129#endif 17130 17131int 17132main () 17133{ 17134return ! realloc (0, 0); 17135 ; 17136 return 0; 17137} 17138_ACEOF 17139rm -f conftest$ac_exeext 17140if { (ac_try="$ac_link" 17141case "(($ac_try" in 17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17143 *) ac_try_echo=$ac_try;; 17144esac 17145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17146$as_echo "$ac_try_echo") >&5 17147 (eval "$ac_link") 2>&5 17148 ac_status=$? 17149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17151 { (case "(($ac_try" in 17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17153 *) ac_try_echo=$ac_try;; 17154esac 17155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17156$as_echo "$ac_try_echo") >&5 17157 (eval "$ac_try") 2>&5 17158 ac_status=$? 17159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17160 (exit $ac_status); }; }; then 17161 ac_cv_func_realloc_0_nonnull=yes 17162else 17163 $as_echo "$as_me: program exited with status $ac_status" >&5 17164$as_echo "$as_me: failed program was:" >&5 17165sed 's/^/| /' conftest.$ac_ext >&5 17166 17167( exit $ac_status ) 17168ac_cv_func_realloc_0_nonnull=no 17169fi 17170rm -rf conftest.dSYM 17171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17172fi 17173 17174 17175fi 17176{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 17177$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 17178if test $ac_cv_func_realloc_0_nonnull = yes; then 17179 17180cat >>confdefs.h <<\_ACEOF 17181#define HAVE_REALLOC 1 17182_ACEOF 17183 17184else 17185 cat >>confdefs.h <<\_ACEOF 17186#define HAVE_REALLOC 0 17187_ACEOF 17188 17189 case " $LIBOBJS " in 17190 *" realloc.$ac_objext "* ) ;; 17191 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 17192 ;; 17193esac 17194 17195 17196cat >>confdefs.h <<\_ACEOF 17197#define realloc rpl_realloc 17198_ACEOF 17199 17200fi 17201 17202 17203 17204{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 17205$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } 17206if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then 17207 $as_echo_n "(cached) " >&6 17208else 17209 rm -f conftest.sym conftest.file 17210echo >conftest.file 17211if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 17212 if test "$cross_compiling" = yes; then 17213 ac_cv_func_lstat_dereferences_slashed_symlink=no 17214else 17215 cat >conftest.$ac_ext <<_ACEOF 17216/* confdefs.h. */ 17217_ACEOF 17218cat confdefs.h >>conftest.$ac_ext 17219cat >>conftest.$ac_ext <<_ACEOF 17220/* end confdefs.h. */ 17221$ac_includes_default 17222int 17223main () 17224{ 17225struct stat sbuf; 17226 /* Linux will dereference the symlink and fail. 17227 That is better in the sense that it means we will not 17228 have to compile and use the lstat wrapper. */ 17229 return lstat ("conftest.sym/", &sbuf) == 0; 17230 ; 17231 return 0; 17232} 17233_ACEOF 17234rm -f conftest$ac_exeext 17235if { (ac_try="$ac_link" 17236case "(($ac_try" in 17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17238 *) ac_try_echo=$ac_try;; 17239esac 17240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17241$as_echo "$ac_try_echo") >&5 17242 (eval "$ac_link") 2>&5 17243 ac_status=$? 17244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17246 { (case "(($ac_try" in 17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17248 *) ac_try_echo=$ac_try;; 17249esac 17250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17251$as_echo "$ac_try_echo") >&5 17252 (eval "$ac_try") 2>&5 17253 ac_status=$? 17254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17255 (exit $ac_status); }; }; then 17256 ac_cv_func_lstat_dereferences_slashed_symlink=yes 17257else 17258 $as_echo "$as_me: program exited with status $ac_status" >&5 17259$as_echo "$as_me: failed program was:" >&5 17260sed 's/^/| /' conftest.$ac_ext >&5 17261 17262( exit $ac_status ) 17263ac_cv_func_lstat_dereferences_slashed_symlink=no 17264fi 17265rm -rf conftest.dSYM 17266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17267fi 17268 17269 17270else 17271 # If the `ln -s' command failed, then we probably don't even 17272 # have an lstat function. 17273 ac_cv_func_lstat_dereferences_slashed_symlink=no 17274fi 17275rm -f conftest.sym conftest.file 17276 17277fi 17278{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 17279$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 17280 17281test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 17282 17283cat >>confdefs.h <<_ACEOF 17284#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 17285_ACEOF 17286 17287 17288if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then 17289 case " $LIBOBJS " in 17290 *" lstat.$ac_objext "* ) ;; 17291 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 17292 ;; 17293esac 17294 17295fi 17296 17297{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 17298$as_echo_n "checking whether stat accepts an empty string... " >&6; } 17299if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then 17300 $as_echo_n "(cached) " >&6 17301else 17302 if test "$cross_compiling" = yes; then 17303 ac_cv_func_stat_empty_string_bug=yes 17304else 17305 cat >conftest.$ac_ext <<_ACEOF 17306/* confdefs.h. */ 17307_ACEOF 17308cat confdefs.h >>conftest.$ac_ext 17309cat >>conftest.$ac_ext <<_ACEOF 17310/* end confdefs.h. */ 17311$ac_includes_default 17312int 17313main () 17314{ 17315struct stat sbuf; 17316 return stat ("", &sbuf) == 0; 17317 ; 17318 return 0; 17319} 17320_ACEOF 17321rm -f conftest$ac_exeext 17322if { (ac_try="$ac_link" 17323case "(($ac_try" in 17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17325 *) ac_try_echo=$ac_try;; 17326esac 17327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17328$as_echo "$ac_try_echo") >&5 17329 (eval "$ac_link") 2>&5 17330 ac_status=$? 17331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17333 { (case "(($ac_try" in 17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17335 *) ac_try_echo=$ac_try;; 17336esac 17337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17338$as_echo "$ac_try_echo") >&5 17339 (eval "$ac_try") 2>&5 17340 ac_status=$? 17341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17342 (exit $ac_status); }; }; then 17343 ac_cv_func_stat_empty_string_bug=no 17344else 17345 $as_echo "$as_me: program exited with status $ac_status" >&5 17346$as_echo "$as_me: failed program was:" >&5 17347sed 's/^/| /' conftest.$ac_ext >&5 17348 17349( exit $ac_status ) 17350ac_cv_func_stat_empty_string_bug=yes 17351fi 17352rm -rf conftest.dSYM 17353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17354fi 17355 17356 17357fi 17358{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 17359$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 17360if test $ac_cv_func_stat_empty_string_bug = yes; then 17361 case " $LIBOBJS " in 17362 *" stat.$ac_objext "* ) ;; 17363 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 17364 ;; 17365esac 17366 17367 17368cat >>confdefs.h <<_ACEOF 17369#define HAVE_STAT_EMPTY_STRING_BUG 1 17370_ACEOF 17371 17372fi 17373 17374 17375 17376 17377 17378for ac_func in gettimeofday memmove memset munmap 17379do 17380as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17381{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 17382$as_echo_n "checking for $ac_func... " >&6; } 17383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17384 $as_echo_n "(cached) " >&6 17385else 17386 cat >conftest.$ac_ext <<_ACEOF 17387/* confdefs.h. */ 17388_ACEOF 17389cat confdefs.h >>conftest.$ac_ext 17390cat >>conftest.$ac_ext <<_ACEOF 17391/* end confdefs.h. */ 17392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17393 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17394#define $ac_func innocuous_$ac_func 17395 17396/* System header to define __stub macros and hopefully few prototypes, 17397 which can conflict with char $ac_func (); below. 17398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17399 <limits.h> exists even on freestanding compilers. */ 17400 17401#ifdef __STDC__ 17402# include <limits.h> 17403#else 17404# include <assert.h> 17405#endif 17406 17407#undef $ac_func 17408 17409/* Override any GCC internal prototype to avoid an error. 17410 Use char because int might match the return type of a GCC 17411 builtin and then its argument prototype would still apply. */ 17412#ifdef __cplusplus 17413extern "C" 17414#endif 17415char $ac_func (); 17416/* The GNU C library defines this for functions which it implements 17417 to always fail with ENOSYS. Some functions are actually named 17418 something starting with __ and the normal name is an alias. */ 17419#if defined __stub_$ac_func || defined __stub___$ac_func 17420choke me 17421#endif 17422 17423int 17424main () 17425{ 17426return $ac_func (); 17427 ; 17428 return 0; 17429} 17430_ACEOF 17431rm -f conftest.$ac_objext conftest$ac_exeext 17432if { (ac_try="$ac_link" 17433case "(($ac_try" in 17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17435 *) ac_try_echo=$ac_try;; 17436esac 17437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17438$as_echo "$ac_try_echo") >&5 17439 (eval "$ac_link") 2>conftest.er1 17440 ac_status=$? 17441 grep -v '^ *+' conftest.er1 >conftest.err 17442 rm -f conftest.er1 17443 cat conftest.err >&5 17444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17445 (exit $ac_status); } && { 17446 test -z "$ac_c_werror_flag" || 17447 test ! -s conftest.err 17448 } && test -s conftest$ac_exeext && { 17449 test "$cross_compiling" = yes || 17450 $as_test_x conftest$ac_exeext 17451 }; then 17452 eval "$as_ac_var=yes" 17453else 17454 $as_echo "$as_me: failed program was:" >&5 17455sed 's/^/| /' conftest.$ac_ext >&5 17456 17457 eval "$as_ac_var=no" 17458fi 17459 17460rm -rf conftest.dSYM 17461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17462 conftest$ac_exeext conftest.$ac_ext 17463fi 17464ac_res=`eval 'as_val=${'$as_ac_var'} 17465 $as_echo "$as_val"'` 17466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17467$as_echo "$ac_res" >&6; } 17468as_val=`eval 'as_val=${'$as_ac_var'} 17469 $as_echo "$as_val"'` 17470 if test "x$as_val" = x""yes; then 17471 cat >>confdefs.h <<_ACEOF 17472#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17473_ACEOF 17474 17475fi 17476done 17477 17478 17479ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile dams_makedic/Makefile src/Makefile php-extension/Makefile" 17480 17481cat >confcache <<\_ACEOF 17482# This file is a shell script that caches the results of configure 17483# tests run on this system so they can be shared between configure 17484# scripts and configure runs, see configure's option --config-cache. 17485# It is not useful on other systems. If it contains results you don't 17486# want to keep, you may remove or edit it. 17487# 17488# config.status only pays attention to the cache file if you give it 17489# the --recheck option to rerun configure. 17490# 17491# `ac_cv_env_foo' variables (set or unset) will be overridden when 17492# loading this file, other *unset* `ac_cv_foo' will be assigned the 17493# following values. 17494 17495_ACEOF 17496 17497# The following way of writing the cache mishandles newlines in values, 17498# but we know of no workaround that is simple, portable, and efficient. 17499# So, we kill variables containing newlines. 17500# Ultrix sh set writes to stderr and can't be redirected directly, 17501# and sets the high bit in the cache file unless we assign to the vars. 17502( 17503 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17504 eval ac_val=\$$ac_var 17505 case $ac_val in #( 17506 *${as_nl}*) 17507 case $ac_var in #( 17508 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 17509$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17510 esac 17511 case $ac_var in #( 17512 _ | IFS | as_nl) ;; #( 17513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17514 *) $as_unset $ac_var ;; 17515 esac ;; 17516 esac 17517 done 17518 17519 (set) 2>&1 | 17520 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17521 *${as_nl}ac_space=\ *) 17522 # `set' does not quote correctly, so add quotes (double-quote 17523 # substitution turns \\\\ into \\, and sed turns \\ into \). 17524 sed -n \ 17525 "s/'/'\\\\''/g; 17526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17527 ;; #( 17528 *) 17529 # `set' quotes correctly as required by POSIX, so do not add quotes. 17530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17531 ;; 17532 esac | 17533 sort 17534) | 17535 sed ' 17536 /^ac_cv_env_/b end 17537 t clear 17538 :clear 17539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17540 t end 17541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17542 :end' >>confcache 17543if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17544 if test -w "$cache_file"; then 17545 test "x$cache_file" != "x/dev/null" && 17546 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 17547$as_echo "$as_me: updating cache $cache_file" >&6;} 17548 cat confcache >$cache_file 17549 else 17550 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 17551$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17552 fi 17553fi 17554rm -f confcache 17555 17556test "x$prefix" = xNONE && prefix=$ac_default_prefix 17557# Let make expand exec_prefix. 17558test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17559 17560DEFS=-DHAVE_CONFIG_H 17561 17562ac_libobjs= 17563ac_ltlibobjs= 17564for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17565 # 1. Remove the extension, and $U if already installed. 17566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17567 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17569 # will be set to the directory where LIBOBJS objects are built. 17570 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17571 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 17572done 17573LIBOBJS=$ac_libobjs 17574 17575LTLIBOBJS=$ac_ltlibobjs 17576 17577 17578 if test -n "$EXEEXT"; then 17579 am__EXEEXT_TRUE= 17580 am__EXEEXT_FALSE='#' 17581else 17582 am__EXEEXT_TRUE='#' 17583 am__EXEEXT_FALSE= 17584fi 17585 17586if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17587 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 17588Usually this means the macro was only invoked conditionally." >&5 17589$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 17590Usually this means the macro was only invoked conditionally." >&2;} 17591 { (exit 1); exit 1; }; } 17592fi 17593if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17594 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 17595Usually this means the macro was only invoked conditionally." >&5 17596$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 17597Usually this means the macro was only invoked conditionally." >&2;} 17598 { (exit 1); exit 1; }; } 17599fi 17600if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17601 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 17602Usually this means the macro was only invoked conditionally." >&5 17603$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 17604Usually this means the macro was only invoked conditionally." >&2;} 17605 { (exit 1); exit 1; }; } 17606fi 17607if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17608 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 17609Usually this means the macro was only invoked conditionally." >&5 17610$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 17611Usually this means the macro was only invoked conditionally." >&2;} 17612 { (exit 1); exit 1; }; } 17613fi 17614 17615: ${CONFIG_STATUS=./config.status} 17616ac_write_fail=0 17617ac_clean_files_save=$ac_clean_files 17618ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17619{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 17620$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17621cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17622#! $SHELL 17623# Generated by $as_me. 17624# Run this file to recreate the current configuration. 17625# Compiler output produced by configure, useful for debugging 17626# configure, is in config.log if it exists. 17627 17628debug=false 17629ac_cs_recheck=false 17630ac_cs_silent=false 17631SHELL=\${CONFIG_SHELL-$SHELL} 17632_ACEOF 17633 17634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17635## --------------------- ## 17636## M4sh Initialization. ## 17637## --------------------- ## 17638 17639# Be more Bourne compatible 17640DUALCASE=1; export DUALCASE # for MKS sh 17641if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17642 emulate sh 17643 NULLCMD=: 17644 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17645 # is contrary to our usage. Disable this feature. 17646 alias -g '${1+"$@"}'='"$@"' 17647 setopt NO_GLOB_SUBST 17648else 17649 case `(set -o) 2>/dev/null` in 17650 *posix*) set -o posix ;; 17651esac 17652 17653fi 17654 17655 17656 17657 17658# PATH needs CR 17659# Avoid depending upon Character Ranges. 17660as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17661as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17662as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17663as_cr_digits='0123456789' 17664as_cr_alnum=$as_cr_Letters$as_cr_digits 17665 17666as_nl=' 17667' 17668export as_nl 17669# Printing a long string crashes Solaris 7 /usr/bin/printf. 17670as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17671as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17672as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17673if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17674 as_echo='printf %s\n' 17675 as_echo_n='printf %s' 17676else 17677 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17678 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17679 as_echo_n='/usr/ucb/echo -n' 17680 else 17681 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17682 as_echo_n_body='eval 17683 arg=$1; 17684 case $arg in 17685 *"$as_nl"*) 17686 expr "X$arg" : "X\\(.*\\)$as_nl"; 17687 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17688 esac; 17689 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17690 ' 17691 export as_echo_n_body 17692 as_echo_n='sh -c $as_echo_n_body as_echo' 17693 fi 17694 export as_echo_body 17695 as_echo='sh -c $as_echo_body as_echo' 17696fi 17697 17698# The user is always right. 17699if test "${PATH_SEPARATOR+set}" != set; then 17700 PATH_SEPARATOR=: 17701 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17702 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17703 PATH_SEPARATOR=';' 17704 } 17705fi 17706 17707# Support unset when possible. 17708if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 17709 as_unset=unset 17710else 17711 as_unset=false 17712fi 17713 17714 17715# IFS 17716# We need space, tab and new line, in precisely that order. Quoting is 17717# there to prevent editors from complaining about space-tab. 17718# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17719# splitting by setting IFS to empty value.) 17720IFS=" "" $as_nl" 17721 17722# Find who we are. Look in the path if we contain no directory separator. 17723case $0 in 17724 *[\\/]* ) as_myself=$0 ;; 17725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17726for as_dir in $PATH 17727do 17728 IFS=$as_save_IFS 17729 test -z "$as_dir" && as_dir=. 17730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17731done 17732IFS=$as_save_IFS 17733 17734 ;; 17735esac 17736# We did not find ourselves, most probably we were run as `sh COMMAND' 17737# in which case we are not to be found in the path. 17738if test "x$as_myself" = x; then 17739 as_myself=$0 17740fi 17741if test ! -f "$as_myself"; then 17742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17743 { (exit 1); exit 1; } 17744fi 17745 17746# Work around bugs in pre-3.0 UWIN ksh. 17747for as_var in ENV MAIL MAILPATH 17748do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 17749done 17750PS1='$ ' 17751PS2='> ' 17752PS4='+ ' 17753 17754# NLS nuisances. 17755LC_ALL=C 17756export LC_ALL 17757LANGUAGE=C 17758export LANGUAGE 17759 17760# Required to use basename. 17761if expr a : '\(a\)' >/dev/null 2>&1 && 17762 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17763 as_expr=expr 17764else 17765 as_expr=false 17766fi 17767 17768if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17769 as_basename=basename 17770else 17771 as_basename=false 17772fi 17773 17774 17775# Name of the executable. 17776as_me=`$as_basename -- "$0" || 17777$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17778 X"$0" : 'X\(//\)$' \| \ 17779 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17780$as_echo X/"$0" | 17781 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17782 s//\1/ 17783 q 17784 } 17785 /^X\/\(\/\/\)$/{ 17786 s//\1/ 17787 q 17788 } 17789 /^X\/\(\/\).*/{ 17790 s//\1/ 17791 q 17792 } 17793 s/.*/./; q'` 17794 17795# CDPATH. 17796$as_unset CDPATH 17797 17798 17799 17800 as_lineno_1=$LINENO 17801 as_lineno_2=$LINENO 17802 test "x$as_lineno_1" != "x$as_lineno_2" && 17803 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 17804 17805 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 17806 # uniformly replaced by the line number. The first 'sed' inserts a 17807 # line-number line after each line using $LINENO; the second 'sed' 17808 # does the real work. The second script uses 'N' to pair each 17809 # line-number line with the line containing $LINENO, and appends 17810 # trailing '-' during substitution so that $LINENO is not a special 17811 # case at line end. 17812 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 17813 # scripts with optimization help from Paolo Bonzini. Blame Lee 17814 # E. McMahon (1931-1989) for sed's syntax. :-) 17815 sed -n ' 17816 p 17817 /[$]LINENO/= 17818 ' <$as_myself | 17819 sed ' 17820 s/[$]LINENO.*/&-/ 17821 t lineno 17822 b 17823 :lineno 17824 N 17825 :loop 17826 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 17827 t loop 17828 s/-\n.*// 17829 ' >$as_me.lineno && 17830 chmod +x "$as_me.lineno" || 17831 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 17832 { (exit 1); exit 1; }; } 17833 17834 # Don't try to exec as it changes $[0], causing all sort of problems 17835 # (the dirname of $[0] is not the place where we might find the 17836 # original and so on. Autoconf is especially sensitive to this). 17837 . "./$as_me.lineno" 17838 # Exit status is that of the last command. 17839 exit 17840} 17841 17842 17843if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17844 as_dirname=dirname 17845else 17846 as_dirname=false 17847fi 17848 17849ECHO_C= ECHO_N= ECHO_T= 17850case `echo -n x` in 17851-n*) 17852 case `echo 'x\c'` in 17853 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17854 *) ECHO_C='\c';; 17855 esac;; 17856*) 17857 ECHO_N='-n';; 17858esac 17859if expr a : '\(a\)' >/dev/null 2>&1 && 17860 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17861 as_expr=expr 17862else 17863 as_expr=false 17864fi 17865 17866rm -f conf$$ conf$$.exe conf$$.file 17867if test -d conf$$.dir; then 17868 rm -f conf$$.dir/conf$$.file 17869else 17870 rm -f conf$$.dir 17871 mkdir conf$$.dir 2>/dev/null 17872fi 17873if (echo >conf$$.file) 2>/dev/null; then 17874 if ln -s conf$$.file conf$$ 2>/dev/null; then 17875 as_ln_s='ln -s' 17876 # ... but there are two gotchas: 17877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17879 # In both cases, we have to default to `cp -p'. 17880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17881 as_ln_s='cp -p' 17882 elif ln conf$$.file conf$$ 2>/dev/null; then 17883 as_ln_s=ln 17884 else 17885 as_ln_s='cp -p' 17886 fi 17887else 17888 as_ln_s='cp -p' 17889fi 17890rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17891rmdir conf$$.dir 2>/dev/null 17892 17893if mkdir -p . 2>/dev/null; then 17894 as_mkdir_p=: 17895else 17896 test -d ./-p && rmdir ./-p 17897 as_mkdir_p=false 17898fi 17899 17900if test -x / >/dev/null 2>&1; then 17901 as_test_x='test -x' 17902else 17903 if ls -dL / >/dev/null 2>&1; then 17904 as_ls_L_option=L 17905 else 17906 as_ls_L_option= 17907 fi 17908 as_test_x=' 17909 eval sh -c '\'' 17910 if test -d "$1"; then 17911 test -d "$1/."; 17912 else 17913 case $1 in 17914 -*)set "./$1";; 17915 esac; 17916 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 17917 ???[sx]*):;;*)false;;esac;fi 17918 '\'' sh 17919 ' 17920fi 17921as_executable_p=$as_test_x 17922 17923# Sed expression to map a string onto a valid CPP name. 17924as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17925 17926# Sed expression to map a string onto a valid variable name. 17927as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17928 17929 17930exec 6>&1 17931 17932# Save the log message, to keep $[0] and so on meaningful, and to 17933# report actual input values of CONFIG_FILES etc. instead of their 17934# values after options handling. 17935ac_log=" 17936This file was extended by dams $as_me 4.3.4, which was 17937generated by GNU Autoconf 2.63. Invocation command line was 17938 17939 CONFIG_FILES = $CONFIG_FILES 17940 CONFIG_HEADERS = $CONFIG_HEADERS 17941 CONFIG_LINKS = $CONFIG_LINKS 17942 CONFIG_COMMANDS = $CONFIG_COMMANDS 17943 $ $0 $@ 17944 17945on `(hostname || uname -n) 2>/dev/null | sed 1q` 17946" 17947 17948_ACEOF 17949 17950case $ac_config_files in *" 17951"*) set x $ac_config_files; shift; ac_config_files=$*;; 17952esac 17953 17954case $ac_config_headers in *" 17955"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17956esac 17957 17958 17959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17960# Files that config.status was made for. 17961config_files="$ac_config_files" 17962config_headers="$ac_config_headers" 17963config_commands="$ac_config_commands" 17964 17965_ACEOF 17966 17967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17968ac_cs_usage="\ 17969\`$as_me' instantiates files from templates according to the 17970current configuration. 17971 17972Usage: $0 [OPTION]... [FILE]... 17973 17974 -h, --help print this help, then exit 17975 -V, --version print version number and configuration settings, then exit 17976 -q, --quiet, --silent 17977 do not print progress messages 17978 -d, --debug don't remove temporary files 17979 --recheck update $as_me by reconfiguring in the same conditions 17980 --file=FILE[:TEMPLATE] 17981 instantiate the configuration file FILE 17982 --header=FILE[:TEMPLATE] 17983 instantiate the configuration header FILE 17984 17985Configuration files: 17986$config_files 17987 17988Configuration headers: 17989$config_headers 17990 17991Configuration commands: 17992$config_commands 17993 17994Report bugs to <bug-autoconf@gnu.org>." 17995 17996_ACEOF 17997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17998ac_cs_version="\\ 17999dams config.status 4.3.4 18000configured by $0, generated by GNU Autoconf 2.63, 18001 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 18002 18003Copyright (C) 2008 Free Software Foundation, Inc. 18004This config.status script is free software; the Free Software Foundation 18005gives unlimited permission to copy, distribute and modify it." 18006 18007ac_pwd='$ac_pwd' 18008srcdir='$srcdir' 18009INSTALL='$INSTALL' 18010MKDIR_P='$MKDIR_P' 18011AWK='$AWK' 18012test -n "\$AWK" || AWK=awk 18013_ACEOF 18014 18015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18016# The default lists apply if the user does not specify any file. 18017ac_need_defaults=: 18018while test $# != 0 18019do 18020 case $1 in 18021 --*=*) 18022 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18023 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18024 ac_shift=: 18025 ;; 18026 *) 18027 ac_option=$1 18028 ac_optarg=$2 18029 ac_shift=shift 18030 ;; 18031 esac 18032 18033 case $ac_option in 18034 # Handling of the options. 18035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18036 ac_cs_recheck=: ;; 18037 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18038 $as_echo "$ac_cs_version"; exit ;; 18039 --debug | --debu | --deb | --de | --d | -d ) 18040 debug=: ;; 18041 --file | --fil | --fi | --f ) 18042 $ac_shift 18043 case $ac_optarg in 18044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18045 esac 18046 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 18047 ac_need_defaults=false;; 18048 --header | --heade | --head | --hea ) 18049 $ac_shift 18050 case $ac_optarg in 18051 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18052 esac 18053 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 18054 ac_need_defaults=false;; 18055 --he | --h) 18056 # Conflict between --help and --header 18057 { $as_echo "$as_me: error: ambiguous option: $1 18058Try \`$0 --help' for more information." >&2 18059 { (exit 1); exit 1; }; };; 18060 --help | --hel | -h ) 18061 $as_echo "$ac_cs_usage"; exit ;; 18062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18063 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18064 ac_cs_silent=: ;; 18065 18066 # This is an error. 18067 -*) { $as_echo "$as_me: error: unrecognized option: $1 18068Try \`$0 --help' for more information." >&2 18069 { (exit 1); exit 1; }; } ;; 18070 18071 *) ac_config_targets="$ac_config_targets $1" 18072 ac_need_defaults=false ;; 18073 18074 esac 18075 shift 18076done 18077 18078ac_configure_extra_args= 18079 18080if $ac_cs_silent; then 18081 exec 6>/dev/null 18082 ac_configure_extra_args="$ac_configure_extra_args --silent" 18083fi 18084 18085_ACEOF 18086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18087if \$ac_cs_recheck; then 18088 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18089 shift 18090 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18091 CONFIG_SHELL='$SHELL' 18092 export CONFIG_SHELL 18093 exec "\$@" 18094fi 18095 18096_ACEOF 18097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18098exec 5>>config.log 18099{ 18100 echo 18101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18102## Running $as_me. ## 18103_ASBOX 18104 $as_echo "$ac_log" 18105} >&5 18106 18107_ACEOF 18108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18109# 18110# INIT-COMMANDS 18111# 18112AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18113 18114 18115# The HP-UX ksh and POSIX shell print the target directory to stdout 18116# if CDPATH is set. 18117(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18118 18119sed_quote_subst='$sed_quote_subst' 18120double_quote_subst='$double_quote_subst' 18121delay_variable_subst='$delay_variable_subst' 18122macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 18123macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 18124enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 18125enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 18126pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 18127enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 18128host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 18129host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 18130host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 18131build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 18132build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 18133build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 18134SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 18135Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 18136GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 18137EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 18138FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 18139LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 18140NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 18141LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 18142max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 18143ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 18144exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 18145lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 18146lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 18147lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 18148reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 18149reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18150OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 18151deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 18152file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 18153AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 18154AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 18155STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 18156RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 18157old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18158old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18159old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18160CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 18161CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 18162compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 18163GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 18164lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 18165lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 18166lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 18167lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 18168objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 18169SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 18170ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 18171MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 18172lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 18173lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 18174lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 18175lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 18176lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 18177need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 18178DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 18179NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 18180LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 18181OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 18182OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 18183libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 18184shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18185extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18186archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 18187enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 18188export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 18189whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 18190compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 18191old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18192old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18193archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18194archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18195module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18196module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18197with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 18198allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 18199no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 18200hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 18201hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 18202hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 18203hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 18204hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 18205hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 18206hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 18207hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 18208inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 18209link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 18210fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 18211always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 18212export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18213exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 18214include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 18215prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18216file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 18217variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 18218need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 18219need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 18220version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 18221runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 18222shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 18223shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 18224libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 18225library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 18226soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 18227postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18228postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18229finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18230finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 18231hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 18232sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 18233sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 18234hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 18235enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 18236enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 18237enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 18238old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 18239striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 18240compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 18241predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 18242postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 18243predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 18244postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 18245compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 18246LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18247old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18248compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18249GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18250lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18251lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18252lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18253lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18254lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18255archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18256enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18257export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18258whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18259compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18260old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18261old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18262archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18263archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18264module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18265module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18266with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18267allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18268no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18269hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18270hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18271hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18272hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18273hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18274hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18275hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18276hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18277inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18278link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18279fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18280always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18281export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18282exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18283include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18284prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18285file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18286hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18287compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18288predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18289postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18290predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18291postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18292compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18293 18294LTCC='$LTCC' 18295LTCFLAGS='$LTCFLAGS' 18296compiler='$compiler_DEFAULT' 18297 18298# Quote evaled strings. 18299for var in SED \ 18300GREP \ 18301EGREP \ 18302FGREP \ 18303LD \ 18304NM \ 18305LN_S \ 18306lt_SP2NL \ 18307lt_NL2SP \ 18308reload_flag \ 18309OBJDUMP \ 18310deplibs_check_method \ 18311file_magic_cmd \ 18312AR \ 18313AR_FLAGS \ 18314STRIP \ 18315RANLIB \ 18316CC \ 18317CFLAGS \ 18318compiler \ 18319lt_cv_sys_global_symbol_pipe \ 18320lt_cv_sys_global_symbol_to_cdecl \ 18321lt_cv_sys_global_symbol_to_c_name_address \ 18322lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18323SHELL \ 18324ECHO \ 18325lt_prog_compiler_no_builtin_flag \ 18326lt_prog_compiler_wl \ 18327lt_prog_compiler_pic \ 18328lt_prog_compiler_static \ 18329lt_cv_prog_compiler_c_o \ 18330need_locks \ 18331DSYMUTIL \ 18332NMEDIT \ 18333LIPO \ 18334OTOOL \ 18335OTOOL64 \ 18336shrext_cmds \ 18337export_dynamic_flag_spec \ 18338whole_archive_flag_spec \ 18339compiler_needs_object \ 18340with_gnu_ld \ 18341allow_undefined_flag \ 18342no_undefined_flag \ 18343hardcode_libdir_flag_spec \ 18344hardcode_libdir_flag_spec_ld \ 18345hardcode_libdir_separator \ 18346fix_srcfile_path \ 18347exclude_expsyms \ 18348include_expsyms \ 18349file_list_spec \ 18350variables_saved_for_relink \ 18351libname_spec \ 18352library_names_spec \ 18353soname_spec \ 18354finish_eval \ 18355old_striplib \ 18356striplib \ 18357compiler_lib_search_dirs \ 18358predep_objects \ 18359postdep_objects \ 18360predeps \ 18361postdeps \ 18362compiler_lib_search_path \ 18363LD_CXX \ 18364compiler_CXX \ 18365lt_prog_compiler_no_builtin_flag_CXX \ 18366lt_prog_compiler_wl_CXX \ 18367lt_prog_compiler_pic_CXX \ 18368lt_prog_compiler_static_CXX \ 18369lt_cv_prog_compiler_c_o_CXX \ 18370export_dynamic_flag_spec_CXX \ 18371whole_archive_flag_spec_CXX \ 18372compiler_needs_object_CXX \ 18373with_gnu_ld_CXX \ 18374allow_undefined_flag_CXX \ 18375no_undefined_flag_CXX \ 18376hardcode_libdir_flag_spec_CXX \ 18377hardcode_libdir_flag_spec_ld_CXX \ 18378hardcode_libdir_separator_CXX \ 18379fix_srcfile_path_CXX \ 18380exclude_expsyms_CXX \ 18381include_expsyms_CXX \ 18382file_list_spec_CXX \ 18383compiler_lib_search_dirs_CXX \ 18384predep_objects_CXX \ 18385postdep_objects_CXX \ 18386predeps_CXX \ 18387postdeps_CXX \ 18388compiler_lib_search_path_CXX; do 18389 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 18390 *[\\\\\\\`\\"\\\$]*) 18391 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18392 ;; 18393 *) 18394 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18395 ;; 18396 esac 18397done 18398 18399# Double-quote double-evaled strings. 18400for var in reload_cmds \ 18401old_postinstall_cmds \ 18402old_postuninstall_cmds \ 18403old_archive_cmds \ 18404extract_expsyms_cmds \ 18405old_archive_from_new_cmds \ 18406old_archive_from_expsyms_cmds \ 18407archive_cmds \ 18408archive_expsym_cmds \ 18409module_cmds \ 18410module_expsym_cmds \ 18411export_symbols_cmds \ 18412prelink_cmds \ 18413postinstall_cmds \ 18414postuninstall_cmds \ 18415finish_cmds \ 18416sys_lib_search_path_spec \ 18417sys_lib_dlsearch_path_spec \ 18418old_archive_cmds_CXX \ 18419old_archive_from_new_cmds_CXX \ 18420old_archive_from_expsyms_cmds_CXX \ 18421archive_cmds_CXX \ 18422archive_expsym_cmds_CXX \ 18423module_cmds_CXX \ 18424module_expsym_cmds_CXX \ 18425export_symbols_cmds_CXX \ 18426prelink_cmds_CXX; do 18427 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 18428 *[\\\\\\\`\\"\\\$]*) 18429 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18430 ;; 18431 *) 18432 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18433 ;; 18434 esac 18435done 18436 18437# Fix-up fallback echo if it was mangled by the above quoting rules. 18438case \$lt_ECHO in 18439*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 18440 ;; 18441esac 18442 18443ac_aux_dir='$ac_aux_dir' 18444xsi_shell='$xsi_shell' 18445lt_shell_append='$lt_shell_append' 18446 18447# See if we are running on zsh, and set the options which allow our 18448# commands through without removal of \ escapes INIT. 18449if test -n "\${ZSH_VERSION+set}" ; then 18450 setopt NO_GLOB_SUBST 18451fi 18452 18453 18454 PACKAGE='$PACKAGE' 18455 VERSION='$VERSION' 18456 TIMESTAMP='$TIMESTAMP' 18457 RM='$RM' 18458 ofile='$ofile' 18459 18460 18461 18462 18463 18464 18465_ACEOF 18466 18467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18468 18469# Handling of arguments. 18470for ac_config_target in $ac_config_targets 18471do 18472 case $ac_config_target in 18473 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 18474 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18475 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18476 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18477 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 18478 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 18479 "dams_makedic/Makefile") CONFIG_FILES="$CONFIG_FILES dams_makedic/Makefile" ;; 18480 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18481 "php-extension/Makefile") CONFIG_FILES="$CONFIG_FILES php-extension/Makefile" ;; 18482 18483 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 18484$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 18485 { (exit 1); exit 1; }; };; 18486 esac 18487done 18488 18489 18490# If the user did not use the arguments to specify the items to instantiate, 18491# then the envvar interface is used. Set only those that are not. 18492# We use the long form for the default assignment because of an extremely 18493# bizarre bug on SunOS 4.1.3. 18494if $ac_need_defaults; then 18495 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18496 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18497 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18498fi 18499 18500# Have a temporary directory for convenience. Make it in the build tree 18501# simply because there is no reason against having it here, and in addition, 18502# creating and moving files from /tmp can sometimes cause problems. 18503# Hook for its removal unless debugging. 18504# Note that there is a small window in which the directory will not be cleaned: 18505# after its creation but before its name has been assigned to `$tmp'. 18506$debug || 18507{ 18508 tmp= 18509 trap 'exit_status=$? 18510 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 18511' 0 18512 trap '{ (exit 1); exit 1; }' 1 2 13 15 18513} 18514# Create a (secure) tmp directory for tmp files. 18515 18516{ 18517 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18518 test -n "$tmp" && test -d "$tmp" 18519} || 18520{ 18521 tmp=./conf$$-$RANDOM 18522 (umask 077 && mkdir "$tmp") 18523} || 18524{ 18525 $as_echo "$as_me: cannot create a temporary directory in ." >&2 18526 { (exit 1); exit 1; } 18527} 18528 18529# Set up the scripts for CONFIG_FILES section. 18530# No need to generate them if there are no CONFIG_FILES. 18531# This happens for instance with `./config.status config.h'. 18532if test -n "$CONFIG_FILES"; then 18533 18534 18535ac_cr=' 18536' 18537ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18538if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18539 ac_cs_awk_cr='\\r' 18540else 18541 ac_cs_awk_cr=$ac_cr 18542fi 18543 18544echo 'BEGIN {' >"$tmp/subs1.awk" && 18545_ACEOF 18546 18547 18548{ 18549 echo "cat >conf$$subs.awk <<_ACEOF" && 18550 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18551 echo "_ACEOF" 18552} >conf$$subs.sh || 18553 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 18554$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 18555 { (exit 1); exit 1; }; } 18556ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 18557ac_delim='%!_!# ' 18558for ac_last_try in false false false false false :; do 18559 . ./conf$$subs.sh || 18560 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 18561$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 18562 { (exit 1); exit 1; }; } 18563 18564 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18565 if test $ac_delim_n = $ac_delim_num; then 18566 break 18567 elif $ac_last_try; then 18568 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 18569$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 18570 { (exit 1); exit 1; }; } 18571 else 18572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18573 fi 18574done 18575rm -f conf$$subs.sh 18576 18577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18578cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 18579_ACEOF 18580sed -n ' 18581h 18582s/^/S["/; s/!.*/"]=/ 18583p 18584g 18585s/^[^!]*!// 18586:repl 18587t repl 18588s/'"$ac_delim"'$// 18589t delim 18590:nl 18591h 18592s/\(.\{148\}\).*/\1/ 18593t more1 18594s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18595p 18596n 18597b repl 18598:more1 18599s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18600p 18601g 18602s/.\{148\}// 18603t nl 18604:delim 18605h 18606s/\(.\{148\}\).*/\1/ 18607t more2 18608s/["\\]/\\&/g; s/^/"/; s/$/"/ 18609p 18610b 18611:more2 18612s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18613p 18614g 18615s/.\{148\}// 18616t delim 18617' <conf$$subs.awk | sed ' 18618/^[^""]/{ 18619 N 18620 s/\n// 18621} 18622' >>$CONFIG_STATUS || ac_write_fail=1 18623rm -f conf$$subs.awk 18624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18625_ACAWK 18626cat >>"\$tmp/subs1.awk" <<_ACAWK && 18627 for (key in S) S_is_set[key] = 1 18628 FS = "" 18629 18630} 18631{ 18632 line = $ 0 18633 nfields = split(line, field, "@") 18634 substed = 0 18635 len = length(field[1]) 18636 for (i = 2; i < nfields; i++) { 18637 key = field[i] 18638 keylen = length(key) 18639 if (S_is_set[key]) { 18640 value = S[key] 18641 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18642 len += length(value) + length(field[++i]) 18643 substed = 1 18644 } else 18645 len += 1 + keylen 18646 } 18647 18648 print line 18649} 18650 18651_ACAWK 18652_ACEOF 18653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18654if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18655 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18656else 18657 cat 18658fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 18659 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 18660$as_echo "$as_me: error: could not setup config files machinery" >&2;} 18661 { (exit 1); exit 1; }; } 18662_ACEOF 18663 18664# VPATH may cause trouble with some makes, so we remove $(srcdir), 18665# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 18666# trailing colons and then remove the whole line if VPATH becomes empty 18667# (actually we leave an empty line to preserve line numbers). 18668if test "x$srcdir" = x.; then 18669 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 18670s/:*\$(srcdir):*/:/ 18671s/:*\${srcdir}:*/:/ 18672s/:*@srcdir@:*/:/ 18673s/^\([^=]*=[ ]*\):*/\1/ 18674s/:*$// 18675s/^[^=]*=[ ]*$// 18676}' 18677fi 18678 18679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18680fi # test -n "$CONFIG_FILES" 18681 18682# Set up the scripts for CONFIG_HEADERS section. 18683# No need to generate them if there are no CONFIG_HEADERS. 18684# This happens for instance with `./config.status Makefile'. 18685if test -n "$CONFIG_HEADERS"; then 18686cat >"$tmp/defines.awk" <<\_ACAWK || 18687BEGIN { 18688_ACEOF 18689 18690# Transform confdefs.h into an awk script `defines.awk', embedded as 18691# here-document in config.status, that substitutes the proper values into 18692# config.h.in to produce config.h. 18693 18694# Create a delimiter string that does not exist in confdefs.h, to ease 18695# handling of long lines. 18696ac_delim='%!_!# ' 18697for ac_last_try in false false :; do 18698 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 18699 if test -z "$ac_t"; then 18700 break 18701 elif $ac_last_try; then 18702 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 18703$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 18704 { (exit 1); exit 1; }; } 18705 else 18706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18707 fi 18708done 18709 18710# For the awk script, D is an array of macro values keyed by name, 18711# likewise P contains macro parameters if any. Preserve backslash 18712# newline sequences. 18713 18714ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18715sed -n ' 18716s/.\{148\}/&'"$ac_delim"'/g 18717t rset 18718:rset 18719s/^[ ]*#[ ]*define[ ][ ]*/ / 18720t def 18721d 18722:def 18723s/\\$// 18724t bsnl 18725s/["\\]/\\&/g 18726s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18727D["\1"]=" \3"/p 18728s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18729d 18730:bsnl 18731s/["\\]/\\&/g 18732s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18733D["\1"]=" \3\\\\\\n"\\/p 18734t cont 18735s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18736t cont 18737d 18738:cont 18739n 18740s/.\{148\}/&'"$ac_delim"'/g 18741t clear 18742:clear 18743s/\\$// 18744t bsnlc 18745s/["\\]/\\&/g; s/^/"/; s/$/"/p 18746d 18747:bsnlc 18748s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18749b cont 18750' <confdefs.h | sed ' 18751s/'"$ac_delim"'/"\\\ 18752"/g' >>$CONFIG_STATUS || ac_write_fail=1 18753 18754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18755 for (key in D) D_is_set[key] = 1 18756 FS = "" 18757} 18758/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18759 line = \$ 0 18760 split(line, arg, " ") 18761 if (arg[1] == "#") { 18762 defundef = arg[2] 18763 mac1 = arg[3] 18764 } else { 18765 defundef = substr(arg[1], 2) 18766 mac1 = arg[2] 18767 } 18768 split(mac1, mac2, "(") #) 18769 macro = mac2[1] 18770 prefix = substr(line, 1, index(line, defundef) - 1) 18771 if (D_is_set[macro]) { 18772 # Preserve the white space surrounding the "#". 18773 print prefix "define", macro P[macro] D[macro] 18774 next 18775 } else { 18776 # Replace #undef with comments. This is necessary, for example, 18777 # in the case of _POSIX_SOURCE, which is predefined and required 18778 # on some systems where configure will not decide to define it. 18779 if (defundef == "undef") { 18780 print "/*", prefix defundef, macro, "*/" 18781 next 18782 } 18783 } 18784} 18785{ print } 18786_ACAWK 18787_ACEOF 18788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18789 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 18790$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 18791 { (exit 1); exit 1; }; } 18792fi # test -n "$CONFIG_HEADERS" 18793 18794 18795eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18796shift 18797for ac_tag 18798do 18799 case $ac_tag in 18800 :[FHLC]) ac_mode=$ac_tag; continue;; 18801 esac 18802 case $ac_mode$ac_tag in 18803 :[FHL]*:*);; 18804 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 18805$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 18806 { (exit 1); exit 1; }; };; 18807 :[FH]-) ac_tag=-:-;; 18808 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18809 esac 18810 ac_save_IFS=$IFS 18811 IFS=: 18812 set x $ac_tag 18813 IFS=$ac_save_IFS 18814 shift 18815 ac_file=$1 18816 shift 18817 18818 case $ac_mode in 18819 :L) ac_source=$1;; 18820 :[FH]) 18821 ac_file_inputs= 18822 for ac_f 18823 do 18824 case $ac_f in 18825 -) ac_f="$tmp/stdin";; 18826 *) # Look for the file first in the build tree, then in the source tree 18827 # (if the path is not absolute). The absolute path cannot be DOS-style, 18828 # because $ac_f cannot contain `:'. 18829 test -f "$ac_f" || 18830 case $ac_f in 18831 [\\/$]*) false;; 18832 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18833 esac || 18834 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 18835$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 18836 { (exit 1); exit 1; }; };; 18837 esac 18838 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18839 ac_file_inputs="$ac_file_inputs '$ac_f'" 18840 done 18841 18842 # Let's still pretend it is `configure' which instantiates (i.e., don't 18843 # use $as_me), people would be surprised to read: 18844 # /* config.h. Generated by config.status. */ 18845 configure_input='Generated from '` 18846 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18847 `' by configure.' 18848 if test x"$ac_file" != x-; then 18849 configure_input="$ac_file. $configure_input" 18850 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 18851$as_echo "$as_me: creating $ac_file" >&6;} 18852 fi 18853 # Neutralize special characters interpreted by sed in replacement strings. 18854 case $configure_input in #( 18855 *\&* | *\|* | *\\* ) 18856 ac_sed_conf_input=`$as_echo "$configure_input" | 18857 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18858 *) ac_sed_conf_input=$configure_input;; 18859 esac 18860 18861 case $ac_tag in 18862 *:-:* | *:-) cat >"$tmp/stdin" \ 18863 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 18864$as_echo "$as_me: error: could not create $ac_file" >&2;} 18865 { (exit 1); exit 1; }; } ;; 18866 esac 18867 ;; 18868 esac 18869 18870 ac_dir=`$as_dirname -- "$ac_file" || 18871$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18872 X"$ac_file" : 'X\(//\)[^/]' \| \ 18873 X"$ac_file" : 'X\(//\)$' \| \ 18874 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18875$as_echo X"$ac_file" | 18876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18877 s//\1/ 18878 q 18879 } 18880 /^X\(\/\/\)[^/].*/{ 18881 s//\1/ 18882 q 18883 } 18884 /^X\(\/\/\)$/{ 18885 s//\1/ 18886 q 18887 } 18888 /^X\(\/\).*/{ 18889 s//\1/ 18890 q 18891 } 18892 s/.*/./; q'` 18893 { as_dir="$ac_dir" 18894 case $as_dir in #( 18895 -*) as_dir=./$as_dir;; 18896 esac 18897 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 18898 as_dirs= 18899 while :; do 18900 case $as_dir in #( 18901 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18902 *) as_qdir=$as_dir;; 18903 esac 18904 as_dirs="'$as_qdir' $as_dirs" 18905 as_dir=`$as_dirname -- "$as_dir" || 18906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18907 X"$as_dir" : 'X\(//\)[^/]' \| \ 18908 X"$as_dir" : 'X\(//\)$' \| \ 18909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18910$as_echo X"$as_dir" | 18911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18912 s//\1/ 18913 q 18914 } 18915 /^X\(\/\/\)[^/].*/{ 18916 s//\1/ 18917 q 18918 } 18919 /^X\(\/\/\)$/{ 18920 s//\1/ 18921 q 18922 } 18923 /^X\(\/\).*/{ 18924 s//\1/ 18925 q 18926 } 18927 s/.*/./; q'` 18928 test -d "$as_dir" && break 18929 done 18930 test -z "$as_dirs" || eval "mkdir $as_dirs" 18931 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 18932$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 18933 { (exit 1); exit 1; }; }; } 18934 ac_builddir=. 18935 18936case "$ac_dir" in 18937.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18938*) 18939 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18940 # A ".." for each directory in $ac_dir_suffix. 18941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18942 case $ac_top_builddir_sub in 18943 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18944 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18945 esac ;; 18946esac 18947ac_abs_top_builddir=$ac_pwd 18948ac_abs_builddir=$ac_pwd$ac_dir_suffix 18949# for backward compatibility: 18950ac_top_builddir=$ac_top_build_prefix 18951 18952case $srcdir in 18953 .) # We are building in place. 18954 ac_srcdir=. 18955 ac_top_srcdir=$ac_top_builddir_sub 18956 ac_abs_top_srcdir=$ac_pwd ;; 18957 [\\/]* | ?:[\\/]* ) # Absolute name. 18958 ac_srcdir=$srcdir$ac_dir_suffix; 18959 ac_top_srcdir=$srcdir 18960 ac_abs_top_srcdir=$srcdir ;; 18961 *) # Relative name. 18962 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18963 ac_top_srcdir=$ac_top_build_prefix$srcdir 18964 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18965esac 18966ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18967 18968 18969 case $ac_mode in 18970 :F) 18971 # 18972 # CONFIG_FILE 18973 # 18974 18975 case $INSTALL in 18976 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18977 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18978 esac 18979 ac_MKDIR_P=$MKDIR_P 18980 case $MKDIR_P in 18981 [\\/$]* | ?:[\\/]* ) ;; 18982 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18983 esac 18984_ACEOF 18985 18986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18987# If the template does not know about datarootdir, expand it. 18988# FIXME: This hack should be removed a few years after 2.60. 18989ac_datarootdir_hack=; ac_datarootdir_seen= 18990 18991ac_sed_dataroot=' 18992/datarootdir/ { 18993 p 18994 q 18995} 18996/@datadir@/p 18997/@docdir@/p 18998/@infodir@/p 18999/@localedir@/p 19000/@mandir@/p 19001' 19002case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19003*datarootdir*) ac_datarootdir_seen=yes;; 19004*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19005 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19006$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19007_ACEOF 19008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19009 ac_datarootdir_hack=' 19010 s&@datadir@&$datadir&g 19011 s&@docdir@&$docdir&g 19012 s&@infodir@&$infodir&g 19013 s&@localedir@&$localedir&g 19014 s&@mandir@&$mandir&g 19015 s&\\\${datarootdir}&$datarootdir&g' ;; 19016esac 19017_ACEOF 19018 19019# Neutralize VPATH when `$srcdir' = `.'. 19020# Shell code in configure.ac might set extrasub. 19021# FIXME: do we really want to maintain this feature? 19022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19023ac_sed_extra="$ac_vpsub 19024$extrasub 19025_ACEOF 19026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19027:t 19028/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19029s|@configure_input@|$ac_sed_conf_input|;t t 19030s&@top_builddir@&$ac_top_builddir_sub&;t t 19031s&@top_build_prefix@&$ac_top_build_prefix&;t t 19032s&@srcdir@&$ac_srcdir&;t t 19033s&@abs_srcdir@&$ac_abs_srcdir&;t t 19034s&@top_srcdir@&$ac_top_srcdir&;t t 19035s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19036s&@builddir@&$ac_builddir&;t t 19037s&@abs_builddir@&$ac_abs_builddir&;t t 19038s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19039s&@INSTALL@&$ac_INSTALL&;t t 19040s&@MKDIR_P@&$ac_MKDIR_P&;t t 19041$ac_datarootdir_hack 19042" 19043eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 19044 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 19045$as_echo "$as_me: error: could not create $ac_file" >&2;} 19046 { (exit 1); exit 1; }; } 19047 19048test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19049 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 19050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 19051 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19052which seems to be undefined. Please make sure it is defined." >&5 19053$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19054which seems to be undefined. Please make sure it is defined." >&2;} 19055 19056 rm -f "$tmp/stdin" 19057 case $ac_file in 19058 -) cat "$tmp/out" && rm -f "$tmp/out";; 19059 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 19060 esac \ 19061 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 19062$as_echo "$as_me: error: could not create $ac_file" >&2;} 19063 { (exit 1); exit 1; }; } 19064 ;; 19065 :H) 19066 # 19067 # CONFIG_HEADER 19068 # 19069 if test x"$ac_file" != x-; then 19070 { 19071 $as_echo "/* $configure_input */" \ 19072 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 19073 } >"$tmp/config.h" \ 19074 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 19075$as_echo "$as_me: error: could not create $ac_file" >&2;} 19076 { (exit 1); exit 1; }; } 19077 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 19078 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 19079$as_echo "$as_me: $ac_file is unchanged" >&6;} 19080 else 19081 rm -f "$ac_file" 19082 mv "$tmp/config.h" "$ac_file" \ 19083 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 19084$as_echo "$as_me: error: could not create $ac_file" >&2;} 19085 { (exit 1); exit 1; }; } 19086 fi 19087 else 19088 $as_echo "/* $configure_input */" \ 19089 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 19090 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 19091$as_echo "$as_me: error: could not create -" >&2;} 19092 { (exit 1); exit 1; }; } 19093 fi 19094# Compute "$ac_file"'s index in $config_headers. 19095_am_arg="$ac_file" 19096_am_stamp_count=1 19097for _am_header in $config_headers :; do 19098 case $_am_header in 19099 $_am_arg | $_am_arg:* ) 19100 break ;; 19101 * ) 19102 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19103 esac 19104done 19105echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19106$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19107 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19108 X"$_am_arg" : 'X\(//\)$' \| \ 19109 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19110$as_echo X"$_am_arg" | 19111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19112 s//\1/ 19113 q 19114 } 19115 /^X\(\/\/\)[^/].*/{ 19116 s//\1/ 19117 q 19118 } 19119 /^X\(\/\/\)$/{ 19120 s//\1/ 19121 q 19122 } 19123 /^X\(\/\).*/{ 19124 s//\1/ 19125 q 19126 } 19127 s/.*/./; q'`/stamp-h$_am_stamp_count 19128 ;; 19129 19130 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 19131$as_echo "$as_me: executing $ac_file commands" >&6;} 19132 ;; 19133 esac 19134 19135 19136 case $ac_file$ac_mode in 19137 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19138 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19139 # are listed without --file. Let's play safe and only enable the eval 19140 # if we detect the quoting. 19141 case $CONFIG_FILES in 19142 *\'*) eval set x "$CONFIG_FILES" ;; 19143 *) set x $CONFIG_FILES ;; 19144 esac 19145 shift 19146 for mf 19147 do 19148 # Strip MF so we end up with the name of the file. 19149 mf=`echo "$mf" | sed -e 's/:.*$//'` 19150 # Check whether this is an Automake generated Makefile or not. 19151 # We used to match only the files named `Makefile.in', but 19152 # some people rename them; so instead we look at the file content. 19153 # Grep'ing the first line is not enough: some people post-process 19154 # each Makefile.in and add a new line on top of each file to say so. 19155 # Grep'ing the whole file is not good either: AIX grep has a line 19156 # limit of 2048, but all sed's we know have understand at least 4000. 19157 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19158 dirpart=`$as_dirname -- "$mf" || 19159$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19160 X"$mf" : 'X\(//\)[^/]' \| \ 19161 X"$mf" : 'X\(//\)$' \| \ 19162 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19163$as_echo X"$mf" | 19164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19165 s//\1/ 19166 q 19167 } 19168 /^X\(\/\/\)[^/].*/{ 19169 s//\1/ 19170 q 19171 } 19172 /^X\(\/\/\)$/{ 19173 s//\1/ 19174 q 19175 } 19176 /^X\(\/\).*/{ 19177 s//\1/ 19178 q 19179 } 19180 s/.*/./; q'` 19181 else 19182 continue 19183 fi 19184 # Extract the definition of DEPDIR, am__include, and am__quote 19185 # from the Makefile without running `make'. 19186 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19187 test -z "$DEPDIR" && continue 19188 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19189 test -z "am__include" && continue 19190 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19191 # When using ansi2knr, U may be empty or an underscore; expand it 19192 U=`sed -n 's/^U = //p' < "$mf"` 19193 # Find all dependency output files, they are included files with 19194 # $(DEPDIR) in their names. We invoke sed twice because it is the 19195 # simplest approach to changing $(DEPDIR) to its actual value in the 19196 # expansion. 19197 for file in `sed -n " 19198 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19199 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19200 # Make sure the directory exists. 19201 test -f "$dirpart/$file" && continue 19202 fdir=`$as_dirname -- "$file" || 19203$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19204 X"$file" : 'X\(//\)[^/]' \| \ 19205 X"$file" : 'X\(//\)$' \| \ 19206 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19207$as_echo X"$file" | 19208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19209 s//\1/ 19210 q 19211 } 19212 /^X\(\/\/\)[^/].*/{ 19213 s//\1/ 19214 q 19215 } 19216 /^X\(\/\/\)$/{ 19217 s//\1/ 19218 q 19219 } 19220 /^X\(\/\).*/{ 19221 s//\1/ 19222 q 19223 } 19224 s/.*/./; q'` 19225 { as_dir=$dirpart/$fdir 19226 case $as_dir in #( 19227 -*) as_dir=./$as_dir;; 19228 esac 19229 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 19230 as_dirs= 19231 while :; do 19232 case $as_dir in #( 19233 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19234 *) as_qdir=$as_dir;; 19235 esac 19236 as_dirs="'$as_qdir' $as_dirs" 19237 as_dir=`$as_dirname -- "$as_dir" || 19238$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19239 X"$as_dir" : 'X\(//\)[^/]' \| \ 19240 X"$as_dir" : 'X\(//\)$' \| \ 19241 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19242$as_echo X"$as_dir" | 19243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19244 s//\1/ 19245 q 19246 } 19247 /^X\(\/\/\)[^/].*/{ 19248 s//\1/ 19249 q 19250 } 19251 /^X\(\/\/\)$/{ 19252 s//\1/ 19253 q 19254 } 19255 /^X\(\/\).*/{ 19256 s//\1/ 19257 q 19258 } 19259 s/.*/./; q'` 19260 test -d "$as_dir" && break 19261 done 19262 test -z "$as_dirs" || eval "mkdir $as_dirs" 19263 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 19264$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 19265 { (exit 1); exit 1; }; }; } 19266 # echo "creating $dirpart/$file" 19267 echo '# dummy' > "$dirpart/$file" 19268 done 19269 done 19270} 19271 ;; 19272 "libtool":C) 19273 19274 # See if we are running on zsh, and set the options which allow our 19275 # commands through without removal of \ escapes. 19276 if test -n "${ZSH_VERSION+set}" ; then 19277 setopt NO_GLOB_SUBST 19278 fi 19279 19280 cfgfile="${ofile}T" 19281 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19282 $RM "$cfgfile" 19283 19284 cat <<_LT_EOF >> "$cfgfile" 19285#! $SHELL 19286 19287# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19288# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19289# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19290# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19291# 19292# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19293# 2006, 2007, 2008 Free Software Foundation, Inc. 19294# Written by Gordon Matzigkeit, 1996 19295# 19296# This file is part of GNU Libtool. 19297# 19298# GNU Libtool is free software; you can redistribute it and/or 19299# modify it under the terms of the GNU General Public License as 19300# published by the Free Software Foundation; either version 2 of 19301# the License, or (at your option) any later version. 19302# 19303# As a special exception to the GNU General Public License, 19304# if you distribute this file as part of a program or library that 19305# is built using GNU Libtool, you may include this file under the 19306# same distribution terms that you use for the rest of that program. 19307# 19308# GNU Libtool is distributed in the hope that it will be useful, 19309# but WITHOUT ANY WARRANTY; without even the implied warranty of 19310# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19311# GNU General Public License for more details. 19312# 19313# You should have received a copy of the GNU General Public License 19314# along with GNU Libtool; see the file COPYING. If not, a copy 19315# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19316# obtained by writing to the Free Software Foundation, Inc., 19317# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19318 19319 19320# The names of the tagged configurations supported by this script. 19321available_tags="CXX " 19322 19323# ### BEGIN LIBTOOL CONFIG 19324 19325# Which release of libtool.m4 was used? 19326macro_version=$macro_version 19327macro_revision=$macro_revision 19328 19329# Whether or not to build shared libraries. 19330build_libtool_libs=$enable_shared 19331 19332# Whether or not to build static libraries. 19333build_old_libs=$enable_static 19334 19335# What type of objects to build. 19336pic_mode=$pic_mode 19337 19338# Whether or not to optimize for fast installation. 19339fast_install=$enable_fast_install 19340 19341# The host system. 19342host_alias=$host_alias 19343host=$host 19344host_os=$host_os 19345 19346# The build system. 19347build_alias=$build_alias 19348build=$build 19349build_os=$build_os 19350 19351# A sed program that does not truncate output. 19352SED=$lt_SED 19353 19354# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19355Xsed="\$SED -e 1s/^X//" 19356 19357# A grep program that handles long lines. 19358GREP=$lt_GREP 19359 19360# An ERE matcher. 19361EGREP=$lt_EGREP 19362 19363# A literal string matcher. 19364FGREP=$lt_FGREP 19365 19366# A BSD- or MS-compatible name lister. 19367NM=$lt_NM 19368 19369# Whether we need soft or hard links. 19370LN_S=$lt_LN_S 19371 19372# What is the maximum length of a command? 19373max_cmd_len=$max_cmd_len 19374 19375# Object file suffix (normally "o"). 19376objext=$ac_objext 19377 19378# Executable file suffix (normally ""). 19379exeext=$exeext 19380 19381# whether the shell understands "unset". 19382lt_unset=$lt_unset 19383 19384# turn spaces into newlines. 19385SP2NL=$lt_lt_SP2NL 19386 19387# turn newlines into spaces. 19388NL2SP=$lt_lt_NL2SP 19389 19390# How to create reloadable object files. 19391reload_flag=$lt_reload_flag 19392reload_cmds=$lt_reload_cmds 19393 19394# An object symbol dumper. 19395OBJDUMP=$lt_OBJDUMP 19396 19397# Method to check whether dependent libraries are shared objects. 19398deplibs_check_method=$lt_deplibs_check_method 19399 19400# Command to use when deplibs_check_method == "file_magic". 19401file_magic_cmd=$lt_file_magic_cmd 19402 19403# The archiver. 19404AR=$lt_AR 19405AR_FLAGS=$lt_AR_FLAGS 19406 19407# A symbol stripping program. 19408STRIP=$lt_STRIP 19409 19410# Commands used to install an old-style archive. 19411RANLIB=$lt_RANLIB 19412old_postinstall_cmds=$lt_old_postinstall_cmds 19413old_postuninstall_cmds=$lt_old_postuninstall_cmds 19414 19415# A C compiler. 19416LTCC=$lt_CC 19417 19418# LTCC compiler flags. 19419LTCFLAGS=$lt_CFLAGS 19420 19421# Take the output of nm and produce a listing of raw symbols and C names. 19422global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19423 19424# Transform the output of nm in a proper C declaration. 19425global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19426 19427# Transform the output of nm in a C name address pair. 19428global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19429 19430# Transform the output of nm in a C name address pair when lib prefix is needed. 19431global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19432 19433# The name of the directory that contains temporary libtool files. 19434objdir=$objdir 19435 19436# Shell to use when invoking shell scripts. 19437SHELL=$lt_SHELL 19438 19439# An echo program that does not interpret backslashes. 19440ECHO=$lt_ECHO 19441 19442# Used to examine libraries when file_magic_cmd begins with "file". 19443MAGIC_CMD=$MAGIC_CMD 19444 19445# Must we lock files when doing compilation? 19446need_locks=$lt_need_locks 19447 19448# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19449DSYMUTIL=$lt_DSYMUTIL 19450 19451# Tool to change global to local symbols on Mac OS X. 19452NMEDIT=$lt_NMEDIT 19453 19454# Tool to manipulate fat objects and archives on Mac OS X. 19455LIPO=$lt_LIPO 19456 19457# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19458OTOOL=$lt_OTOOL 19459 19460# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19461OTOOL64=$lt_OTOOL64 19462 19463# Old archive suffix (normally "a"). 19464libext=$libext 19465 19466# Shared library suffix (normally ".so"). 19467shrext_cmds=$lt_shrext_cmds 19468 19469# The commands to extract the exported symbol list from a shared archive. 19470extract_expsyms_cmds=$lt_extract_expsyms_cmds 19471 19472# Variables whose values should be saved in libtool wrapper scripts and 19473# restored at link time. 19474variables_saved_for_relink=$lt_variables_saved_for_relink 19475 19476# Do we need the "lib" prefix for modules? 19477need_lib_prefix=$need_lib_prefix 19478 19479# Do we need a version for libraries? 19480need_version=$need_version 19481 19482# Library versioning type. 19483version_type=$version_type 19484 19485# Shared library runtime path variable. 19486runpath_var=$runpath_var 19487 19488# Shared library path variable. 19489shlibpath_var=$shlibpath_var 19490 19491# Is shlibpath searched before the hard-coded library search path? 19492shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19493 19494# Format of library name prefix. 19495libname_spec=$lt_libname_spec 19496 19497# List of archive names. First name is the real one, the rest are links. 19498# The last name is the one that the linker finds with -lNAME 19499library_names_spec=$lt_library_names_spec 19500 19501# The coded name of the library, if different from the real name. 19502soname_spec=$lt_soname_spec 19503 19504# Command to use after installation of a shared archive. 19505postinstall_cmds=$lt_postinstall_cmds 19506 19507# Command to use after uninstallation of a shared archive. 19508postuninstall_cmds=$lt_postuninstall_cmds 19509 19510# Commands used to finish a libtool library installation in a directory. 19511finish_cmds=$lt_finish_cmds 19512 19513# As "finish_cmds", except a single script fragment to be evaled but 19514# not shown. 19515finish_eval=$lt_finish_eval 19516 19517# Whether we should hardcode library paths into libraries. 19518hardcode_into_libs=$hardcode_into_libs 19519 19520# Compile-time system search path for libraries. 19521sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19522 19523# Run-time system search path for libraries. 19524sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19525 19526# Whether dlopen is supported. 19527dlopen_support=$enable_dlopen 19528 19529# Whether dlopen of programs is supported. 19530dlopen_self=$enable_dlopen_self 19531 19532# Whether dlopen of statically linked programs is supported. 19533dlopen_self_static=$enable_dlopen_self_static 19534 19535# Commands to strip libraries. 19536old_striplib=$lt_old_striplib 19537striplib=$lt_striplib 19538 19539 19540# The linker used to build libraries. 19541LD=$lt_LD 19542 19543# Commands used to build an old-style archive. 19544old_archive_cmds=$lt_old_archive_cmds 19545 19546# A language specific compiler. 19547CC=$lt_compiler 19548 19549# Is the compiler the GNU compiler? 19550with_gcc=$GCC 19551 19552# Compiler flag to turn off builtin functions. 19553no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19554 19555# How to pass a linker flag through the compiler. 19556wl=$lt_lt_prog_compiler_wl 19557 19558# Additional compiler flags for building library objects. 19559pic_flag=$lt_lt_prog_compiler_pic 19560 19561# Compiler flag to prevent dynamic linking. 19562link_static_flag=$lt_lt_prog_compiler_static 19563 19564# Does compiler simultaneously support -c and -o options? 19565compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19566 19567# Whether or not to add -lc for building shared libraries. 19568build_libtool_need_lc=$archive_cmds_need_lc 19569 19570# Whether or not to disallow shared libs when runtime libs are static. 19571allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19572 19573# Compiler flag to allow reflexive dlopens. 19574export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19575 19576# Compiler flag to generate shared objects directly from archives. 19577whole_archive_flag_spec=$lt_whole_archive_flag_spec 19578 19579# Whether the compiler copes with passing no objects directly. 19580compiler_needs_object=$lt_compiler_needs_object 19581 19582# Create an old-style archive from a shared archive. 19583old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19584 19585# Create a temporary old-style archive to link instead of a shared archive. 19586old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19587 19588# Commands used to build a shared archive. 19589archive_cmds=$lt_archive_cmds 19590archive_expsym_cmds=$lt_archive_expsym_cmds 19591 19592# Commands used to build a loadable module if different from building 19593# a shared archive. 19594module_cmds=$lt_module_cmds 19595module_expsym_cmds=$lt_module_expsym_cmds 19596 19597# Whether we are building with GNU ld or not. 19598with_gnu_ld=$lt_with_gnu_ld 19599 19600# Flag that allows shared libraries with undefined symbols to be built. 19601allow_undefined_flag=$lt_allow_undefined_flag 19602 19603# Flag that enforces no undefined symbols. 19604no_undefined_flag=$lt_no_undefined_flag 19605 19606# Flag to hardcode \$libdir into a binary during linking. 19607# This must work even if \$libdir does not exist 19608hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19609 19610# If ld is used when linking, flag to hardcode \$libdir into a binary 19611# during linking. This must work even if \$libdir does not exist. 19612hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19613 19614# Whether we need a single "-rpath" flag with a separated argument. 19615hardcode_libdir_separator=$lt_hardcode_libdir_separator 19616 19617# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19618# DIR into the resulting binary. 19619hardcode_direct=$hardcode_direct 19620 19621# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19622# DIR into the resulting binary and the resulting library dependency is 19623# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19624# library is relocated. 19625hardcode_direct_absolute=$hardcode_direct_absolute 19626 19627# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19628# into the resulting binary. 19629hardcode_minus_L=$hardcode_minus_L 19630 19631# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19632# into the resulting binary. 19633hardcode_shlibpath_var=$hardcode_shlibpath_var 19634 19635# Set to "yes" if building a shared library automatically hardcodes DIR 19636# into the library and all subsequent libraries and executables linked 19637# against it. 19638hardcode_automatic=$hardcode_automatic 19639 19640# Set to yes if linker adds runtime paths of dependent libraries 19641# to runtime path list. 19642inherit_rpath=$inherit_rpath 19643 19644# Whether libtool must link a program against all its dependency libraries. 19645link_all_deplibs=$link_all_deplibs 19646 19647# Fix the shell variable \$srcfile for the compiler. 19648fix_srcfile_path=$lt_fix_srcfile_path 19649 19650# Set to "yes" if exported symbols are required. 19651always_export_symbols=$always_export_symbols 19652 19653# The commands to list exported symbols. 19654export_symbols_cmds=$lt_export_symbols_cmds 19655 19656# Symbols that should not be listed in the preloaded symbols. 19657exclude_expsyms=$lt_exclude_expsyms 19658 19659# Symbols that must always be exported. 19660include_expsyms=$lt_include_expsyms 19661 19662# Commands necessary for linking programs (against libraries) with templates. 19663prelink_cmds=$lt_prelink_cmds 19664 19665# Specify filename containing input files. 19666file_list_spec=$lt_file_list_spec 19667 19668# How to hardcode a shared library path into an executable. 19669hardcode_action=$hardcode_action 19670 19671# The directories searched by this compiler when creating a shared library. 19672compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19673 19674# Dependencies to place before and after the objects being linked to 19675# create a shared library. 19676predep_objects=$lt_predep_objects 19677postdep_objects=$lt_postdep_objects 19678predeps=$lt_predeps 19679postdeps=$lt_postdeps 19680 19681# The library search path used internally by the compiler when linking 19682# a shared library. 19683compiler_lib_search_path=$lt_compiler_lib_search_path 19684 19685# ### END LIBTOOL CONFIG 19686 19687_LT_EOF 19688 19689 case $host_os in 19690 aix3*) 19691 cat <<\_LT_EOF >> "$cfgfile" 19692# AIX sometimes has problems with the GCC collect2 program. For some 19693# reason, if we set the COLLECT_NAMES environment variable, the problems 19694# vanish in a puff of smoke. 19695if test "X${COLLECT_NAMES+set}" != Xset; then 19696 COLLECT_NAMES= 19697 export COLLECT_NAMES 19698fi 19699_LT_EOF 19700 ;; 19701 esac 19702 19703 19704ltmain="$ac_aux_dir/ltmain.sh" 19705 19706 19707 # We use sed instead of cat because bash on DJGPP gets confused if 19708 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19709 # text mode, it properly converts lines to CR/LF. This bash problem 19710 # is reportedly fixed, but why not run on old versions too? 19711 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19712 || (rm -f "$cfgfile"; exit 1) 19713 19714 case $xsi_shell in 19715 yes) 19716 cat << \_LT_EOF >> "$cfgfile" 19717 19718# func_dirname file append nondir_replacement 19719# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19720# otherwise set result to NONDIR_REPLACEMENT. 19721func_dirname () 19722{ 19723 case ${1} in 19724 */*) func_dirname_result="${1%/*}${2}" ;; 19725 * ) func_dirname_result="${3}" ;; 19726 esac 19727} 19728 19729# func_basename file 19730func_basename () 19731{ 19732 func_basename_result="${1##*/}" 19733} 19734 19735# func_dirname_and_basename file append nondir_replacement 19736# perform func_basename and func_dirname in a single function 19737# call: 19738# dirname: Compute the dirname of FILE. If nonempty, 19739# add APPEND to the result, otherwise set result 19740# to NONDIR_REPLACEMENT. 19741# value returned in "$func_dirname_result" 19742# basename: Compute filename of FILE. 19743# value retuned in "$func_basename_result" 19744# Implementation must be kept synchronized with func_dirname 19745# and func_basename. For efficiency, we do not delegate to 19746# those functions but instead duplicate the functionality here. 19747func_dirname_and_basename () 19748{ 19749 case ${1} in 19750 */*) func_dirname_result="${1%/*}${2}" ;; 19751 * ) func_dirname_result="${3}" ;; 19752 esac 19753 func_basename_result="${1##*/}" 19754} 19755 19756# func_stripname prefix suffix name 19757# strip PREFIX and SUFFIX off of NAME. 19758# PREFIX and SUFFIX must not contain globbing or regex special 19759# characters, hashes, percent signs, but SUFFIX may contain a leading 19760# dot (in which case that matches only a dot). 19761func_stripname () 19762{ 19763 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19764 # positional parameters, so assign one to ordinary parameter first. 19765 func_stripname_result=${3} 19766 func_stripname_result=${func_stripname_result#"${1}"} 19767 func_stripname_result=${func_stripname_result%"${2}"} 19768} 19769 19770# func_opt_split 19771func_opt_split () 19772{ 19773 func_opt_split_opt=${1%%=*} 19774 func_opt_split_arg=${1#*=} 19775} 19776 19777# func_lo2o object 19778func_lo2o () 19779{ 19780 case ${1} in 19781 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19782 *) func_lo2o_result=${1} ;; 19783 esac 19784} 19785 19786# func_xform libobj-or-source 19787func_xform () 19788{ 19789 func_xform_result=${1%.*}.lo 19790} 19791 19792# func_arith arithmetic-term... 19793func_arith () 19794{ 19795 func_arith_result=$(( $* )) 19796} 19797 19798# func_len string 19799# STRING may not start with a hyphen. 19800func_len () 19801{ 19802 func_len_result=${#1} 19803} 19804 19805_LT_EOF 19806 ;; 19807 *) # Bourne compatible functions. 19808 cat << \_LT_EOF >> "$cfgfile" 19809 19810# func_dirname file append nondir_replacement 19811# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19812# otherwise set result to NONDIR_REPLACEMENT. 19813func_dirname () 19814{ 19815 # Extract subdirectory from the argument. 19816 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 19817 if test "X$func_dirname_result" = "X${1}"; then 19818 func_dirname_result="${3}" 19819 else 19820 func_dirname_result="$func_dirname_result${2}" 19821 fi 19822} 19823 19824# func_basename file 19825func_basename () 19826{ 19827 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 19828} 19829 19830 19831# func_stripname prefix suffix name 19832# strip PREFIX and SUFFIX off of NAME. 19833# PREFIX and SUFFIX must not contain globbing or regex special 19834# characters, hashes, percent signs, but SUFFIX may contain a leading 19835# dot (in which case that matches only a dot). 19836# func_strip_suffix prefix name 19837func_stripname () 19838{ 19839 case ${2} in 19840 .*) func_stripname_result=`$ECHO "X${3}" \ 19841 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 19842 *) func_stripname_result=`$ECHO "X${3}" \ 19843 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 19844 esac 19845} 19846 19847# sed scripts: 19848my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19849my_sed_long_arg='1s/^-[^=]*=//' 19850 19851# func_opt_split 19852func_opt_split () 19853{ 19854 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 19855 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 19856} 19857 19858# func_lo2o object 19859func_lo2o () 19860{ 19861 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 19862} 19863 19864# func_xform libobj-or-source 19865func_xform () 19866{ 19867 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 19868} 19869 19870# func_arith arithmetic-term... 19871func_arith () 19872{ 19873 func_arith_result=`expr "$@"` 19874} 19875 19876# func_len string 19877# STRING may not start with a hyphen. 19878func_len () 19879{ 19880 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19881} 19882 19883_LT_EOF 19884esac 19885 19886case $lt_shell_append in 19887 yes) 19888 cat << \_LT_EOF >> "$cfgfile" 19889 19890# func_append var value 19891# Append VALUE to the end of shell variable VAR. 19892func_append () 19893{ 19894 eval "$1+=\$2" 19895} 19896_LT_EOF 19897 ;; 19898 *) 19899 cat << \_LT_EOF >> "$cfgfile" 19900 19901# func_append var value 19902# Append VALUE to the end of shell variable VAR. 19903func_append () 19904{ 19905 eval "$1=\$$1\$2" 19906} 19907 19908_LT_EOF 19909 ;; 19910 esac 19911 19912 19913 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19914 || (rm -f "$cfgfile"; exit 1) 19915 19916 mv -f "$cfgfile" "$ofile" || 19917 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19918 chmod +x "$ofile" 19919 19920 19921 cat <<_LT_EOF >> "$ofile" 19922 19923# ### BEGIN LIBTOOL TAG CONFIG: CXX 19924 19925# The linker used to build libraries. 19926LD=$lt_LD_CXX 19927 19928# Commands used to build an old-style archive. 19929old_archive_cmds=$lt_old_archive_cmds_CXX 19930 19931# A language specific compiler. 19932CC=$lt_compiler_CXX 19933 19934# Is the compiler the GNU compiler? 19935with_gcc=$GCC_CXX 19936 19937# Compiler flag to turn off builtin functions. 19938no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19939 19940# How to pass a linker flag through the compiler. 19941wl=$lt_lt_prog_compiler_wl_CXX 19942 19943# Additional compiler flags for building library objects. 19944pic_flag=$lt_lt_prog_compiler_pic_CXX 19945 19946# Compiler flag to prevent dynamic linking. 19947link_static_flag=$lt_lt_prog_compiler_static_CXX 19948 19949# Does compiler simultaneously support -c and -o options? 19950compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19951 19952# Whether or not to add -lc for building shared libraries. 19953build_libtool_need_lc=$archive_cmds_need_lc_CXX 19954 19955# Whether or not to disallow shared libs when runtime libs are static. 19956allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19957 19958# Compiler flag to allow reflexive dlopens. 19959export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19960 19961# Compiler flag to generate shared objects directly from archives. 19962whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19963 19964# Whether the compiler copes with passing no objects directly. 19965compiler_needs_object=$lt_compiler_needs_object_CXX 19966 19967# Create an old-style archive from a shared archive. 19968old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19969 19970# Create a temporary old-style archive to link instead of a shared archive. 19971old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19972 19973# Commands used to build a shared archive. 19974archive_cmds=$lt_archive_cmds_CXX 19975archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19976 19977# Commands used to build a loadable module if different from building 19978# a shared archive. 19979module_cmds=$lt_module_cmds_CXX 19980module_expsym_cmds=$lt_module_expsym_cmds_CXX 19981 19982# Whether we are building with GNU ld or not. 19983with_gnu_ld=$lt_with_gnu_ld_CXX 19984 19985# Flag that allows shared libraries with undefined symbols to be built. 19986allow_undefined_flag=$lt_allow_undefined_flag_CXX 19987 19988# Flag that enforces no undefined symbols. 19989no_undefined_flag=$lt_no_undefined_flag_CXX 19990 19991# Flag to hardcode \$libdir into a binary during linking. 19992# This must work even if \$libdir does not exist 19993hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19994 19995# If ld is used when linking, flag to hardcode \$libdir into a binary 19996# during linking. This must work even if \$libdir does not exist. 19997hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 19998 19999# Whether we need a single "-rpath" flag with a separated argument. 20000hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20001 20002# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20003# DIR into the resulting binary. 20004hardcode_direct=$hardcode_direct_CXX 20005 20006# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20007# DIR into the resulting binary and the resulting library dependency is 20008# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20009# library is relocated. 20010hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20011 20012# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20013# into the resulting binary. 20014hardcode_minus_L=$hardcode_minus_L_CXX 20015 20016# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20017# into the resulting binary. 20018hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20019 20020# Set to "yes" if building a shared library automatically hardcodes DIR 20021# into the library and all subsequent libraries and executables linked 20022# against it. 20023hardcode_automatic=$hardcode_automatic_CXX 20024 20025# Set to yes if linker adds runtime paths of dependent libraries 20026# to runtime path list. 20027inherit_rpath=$inherit_rpath_CXX 20028 20029# Whether libtool must link a program against all its dependency libraries. 20030link_all_deplibs=$link_all_deplibs_CXX 20031 20032# Fix the shell variable \$srcfile for the compiler. 20033fix_srcfile_path=$lt_fix_srcfile_path_CXX 20034 20035# Set to "yes" if exported symbols are required. 20036always_export_symbols=$always_export_symbols_CXX 20037 20038# The commands to list exported symbols. 20039export_symbols_cmds=$lt_export_symbols_cmds_CXX 20040 20041# Symbols that should not be listed in the preloaded symbols. 20042exclude_expsyms=$lt_exclude_expsyms_CXX 20043 20044# Symbols that must always be exported. 20045include_expsyms=$lt_include_expsyms_CXX 20046 20047# Commands necessary for linking programs (against libraries) with templates. 20048prelink_cmds=$lt_prelink_cmds_CXX 20049 20050# Specify filename containing input files. 20051file_list_spec=$lt_file_list_spec_CXX 20052 20053# How to hardcode a shared library path into an executable. 20054hardcode_action=$hardcode_action_CXX 20055 20056# The directories searched by this compiler when creating a shared library. 20057compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20058 20059# Dependencies to place before and after the objects being linked to 20060# create a shared library. 20061predep_objects=$lt_predep_objects_CXX 20062postdep_objects=$lt_postdep_objects_CXX 20063predeps=$lt_predeps_CXX 20064postdeps=$lt_postdeps_CXX 20065 20066# The library search path used internally by the compiler when linking 20067# a shared library. 20068compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20069 20070# ### END LIBTOOL TAG CONFIG: CXX 20071_LT_EOF 20072 20073 ;; 20074 20075 esac 20076done # for ac_tag 20077 20078 20079{ (exit 0); exit 0; } 20080_ACEOF 20081chmod +x $CONFIG_STATUS 20082ac_clean_files=$ac_clean_files_save 20083 20084test $ac_write_fail = 0 || 20085 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 20086$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 20087 { (exit 1); exit 1; }; } 20088 20089 20090# configure is writing to config.log, and then calls config.status. 20091# config.status does its own redirection, appending to config.log. 20092# Unfortunately, on DOS this fails, as config.log is still kept open 20093# by configure, so config.status won't be able to write to it; its 20094# output is simply discarded. So we exec the FD to /dev/null, 20095# effectively closing config.log, so it can be properly (re)opened and 20096# appended to by config.status. When coming back to configure, we 20097# need to make the FD available again. 20098if test "$no_create" != yes; then 20099 ac_cs_success=: 20100 ac_config_status_args= 20101 test "$silent" = yes && 20102 ac_config_status_args="$ac_config_status_args --quiet" 20103 exec 5>/dev/null 20104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20105 exec 5>>config.log 20106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20107 # would make configure fail if this is the last instruction. 20108 $ac_cs_success || { (exit 1); exit 1; } 20109fi 20110if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20111 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20112$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20113fi 20114 20115