1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for chmlib 0.40. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574 575# Check that we are running under the correct shell. 576SHELL=${CONFIG_SHELL-/bin/sh} 577 578case X$lt_ECHO in 579X*--fallback-echo) 580 # Remove one level of quotation (which was required for Make). 581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 582 ;; 583esac 584 585ECHO=${lt_ECHO-echo} 586if test "X$1" = X--no-reexec; then 587 # Discard the --no-reexec flag, and continue. 588 shift 589elif test "X$1" = X--fallback-echo; then 590 # Avoid inline document here, it may be left over 591 : 592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 593 # Yippee, $ECHO works! 594 : 595else 596 # Restart under the correct shell. 597 exec $SHELL "$0" --no-reexec ${1+"$@"} 598fi 599 600if test "X$1" = X--fallback-echo; then 601 # used as fallback echo 602 shift 603 cat <<_LT_EOF 604$* 605_LT_EOF 606 exit 0 607fi 608 609# The HP-UX ksh and POSIX shell print the target directory to stdout 610# if CDPATH is set. 611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 612 613if test -z "$lt_ECHO"; then 614 if test "X${echo_test_string+set}" != Xset; then 615 # find a string as large as possible, as long as the shell can cope with it 616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 618 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 620 then 621 break 622 fi 623 done 624 fi 625 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 : 630 else 631 # The Solaris, AIX, and Digital Unix default echo programs unquote 632 # backslashes. This makes it impossible to quote backslashes using 633 # echo "$something" | sed 's/\\/\\\\/g' 634 # 635 # So, first we look for a working echo in the user's PATH. 636 637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 638 for dir in $PATH /usr/ucb; do 639 IFS="$lt_save_ifs" 640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$dir/echo" 645 break 646 fi 647 done 648 IFS="$lt_save_ifs" 649 650 if test "X$ECHO" = Xecho; then 651 # We didn't find a better echo, so look for alternatives. 652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 654 test "X$echo_testing_string" = "X$echo_test_string"; then 655 # This shell has a builtin print -r that does the trick. 656 ECHO='print -r' 657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 658 test "X$CONFIG_SHELL" != X/bin/ksh; then 659 # If we have ksh, try running configure again with it. 660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 661 export ORIGINAL_CONFIG_SHELL 662 CONFIG_SHELL=/bin/ksh 663 export CONFIG_SHELL 664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 665 else 666 # Try using printf. 667 ECHO='printf %s\n' 668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 670 test "X$echo_testing_string" = "X$echo_test_string"; then 671 # Cool, printf works 672 : 673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 674 test "X$echo_testing_string" = 'X\t' && 675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 676 test "X$echo_testing_string" = "X$echo_test_string"; then 677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 678 export CONFIG_SHELL 679 SHELL="$CONFIG_SHELL" 680 export SHELL 681 ECHO="$CONFIG_SHELL $0 --fallback-echo" 682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 683 test "X$echo_testing_string" = 'X\t' && 684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 685 test "X$echo_testing_string" = "X$echo_test_string"; then 686 ECHO="$CONFIG_SHELL $0 --fallback-echo" 687 else 688 # maybe with a smaller string... 689 prev=: 690 691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 693 then 694 break 695 fi 696 prev="$cmd" 697 done 698 699 if test "$prev" != 'sed 50q "$0"'; then 700 echo_test_string=`eval $prev` 701 export echo_test_string 702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 703 else 704 # Oops. We lost completely, so just stick with echo. 705 ECHO=echo 706 fi 707 fi 708 fi 709 fi 710 fi 711fi 712 713# Copy echo and quote the copy suitably for passing to libtool from 714# the Makefile, instead of quoting the original, which is used later. 715lt_ECHO=$ECHO 716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 718fi 719 720 721 722 723exec 7<&0 </dev/null 6>&1 724 725# Name of the host. 726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 727# so uname gets run too. 728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 729 730# 731# Initializations. 732# 733ac_default_prefix=/usr/local 734ac_clean_files= 735ac_config_libobj_dir=. 736LIBOBJS= 737cross_compiling=no 738subdirs= 739MFLAGS= 740MAKEFLAGS= 741SHELL=${CONFIG_SHELL-/bin/sh} 742 743# Identity of this package. 744PACKAGE_NAME='chmlib' 745PACKAGE_TARNAME='chmlib' 746PACKAGE_VERSION='0.40' 747PACKAGE_STRING='chmlib 0.40' 748PACKAGE_BUGREPORT='' 749 750ac_unique_file="src/chm_lib.c" 751# Factoring default headers for most tests. 752ac_includes_default="\ 753#include <stdio.h> 754#ifdef HAVE_SYS_TYPES_H 755# include <sys/types.h> 756#endif 757#ifdef HAVE_SYS_STAT_H 758# include <sys/stat.h> 759#endif 760#ifdef STDC_HEADERS 761# include <stdlib.h> 762# include <stddef.h> 763#else 764# ifdef HAVE_STDLIB_H 765# include <stdlib.h> 766# endif 767#endif 768#ifdef HAVE_STRING_H 769# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 770# include <memory.h> 771# endif 772# include <string.h> 773#endif 774#ifdef HAVE_STRINGS_H 775# include <strings.h> 776#endif 777#ifdef HAVE_INTTYPES_H 778# include <inttypes.h> 779#endif 780#ifdef HAVE_STDINT_H 781# include <stdint.h> 782#endif 783#ifdef HAVE_UNISTD_H 784# include <unistd.h> 785#endif" 786 787ac_subst_vars='LTLIBOBJS 788INSTALL_STRIP 789install_group 790install_user 791LIBOBJS 792DMALLOC_DISABLE 793CHM_USE_IO64 794CHM_USE_PREAD 795CHM_MT 796EXAMPLES 797EXAMPLES_FALSE 798EXAMPLES_TRUE 799CPP 800OTOOL64 801OTOOL 802LIPO 803NMEDIT 804DSYMUTIL 805lt_ECHO 806RANLIB 807AR 808OBJDUMP 809LN_S 810NM 811ac_ct_DUMPBIN 812DUMPBIN 813LIBTOOL 814LD 815FGREP 816EGREP 817GREP 818SED 819host_os 820host_vendor 821host_cpu 822host 823build_os 824build_vendor 825build_cpu 826build 827am__fastdepCC_FALSE 828am__fastdepCC_TRUE 829CCDEPMODE 830AMDEPBACKSLASH 831AMDEP_FALSE 832AMDEP_TRUE 833am__quote 834am__include 835DEPDIR 836OBJEXT 837EXEEXT 838ac_ct_CC 839CPPFLAGS 840LDFLAGS 841CFLAGS 842CC 843MAINT 844MAINTAINER_MODE_FALSE 845MAINTAINER_MODE_TRUE 846am__untar 847am__tar 848AMTAR 849am__leading_dot 850SET_MAKE 851AWK 852mkdir_p 853MKDIR_P 854INSTALL_STRIP_PROGRAM 855STRIP 856install_sh 857MAKEINFO 858AUTOHEADER 859AUTOMAKE 860AUTOCONF 861ACLOCAL 862VERSION 863PACKAGE 864CYGPATH_W 865am__isrc 866INSTALL_DATA 867INSTALL_SCRIPT 868INSTALL_PROGRAM 869target_alias 870host_alias 871build_alias 872LIBS 873ECHO_T 874ECHO_N 875ECHO_C 876DEFS 877mandir 878localedir 879libdir 880psdir 881pdfdir 882dvidir 883htmldir 884infodir 885docdir 886oldincludedir 887includedir 888localstatedir 889sharedstatedir 890sysconfdir 891datadir 892datarootdir 893libexecdir 894sbindir 895bindir 896program_transform_name 897prefix 898exec_prefix 899PACKAGE_BUGREPORT 900PACKAGE_STRING 901PACKAGE_VERSION 902PACKAGE_TARNAME 903PACKAGE_NAME 904PATH_SEPARATOR 905SHELL' 906ac_subst_files='' 907ac_user_opts=' 908enable_option_checking 909enable_maintainer_mode 910enable_dependency_tracking 911with_gnu_ld 912enable_shared 913enable_static 914with_pic 915enable_fast_install 916enable_libtool_lock 917enable_devel 918enable_pthread 919enable_io64 920enable_pread 921enable_dmalloc 922enable_examples 923' 924 ac_precious_vars='build_alias 925host_alias 926target_alias 927CC 928CFLAGS 929LDFLAGS 930LIBS 931CPPFLAGS 932CPP' 933 934 935# Initialize some variables set by options. 936ac_init_help= 937ac_init_version=false 938ac_unrecognized_opts= 939ac_unrecognized_sep= 940# The variables have the same names as the options, with 941# dashes changed to underlines. 942cache_file=/dev/null 943exec_prefix=NONE 944no_create= 945no_recursion= 946prefix=NONE 947program_prefix=NONE 948program_suffix=NONE 949program_transform_name=s,x,x, 950silent= 951site= 952srcdir= 953verbose= 954x_includes=NONE 955x_libraries=NONE 956 957# Installation directory options. 958# These are left unexpanded so users can "make install exec_prefix=/foo" 959# and all the variables that are supposed to be based on exec_prefix 960# by default will actually change. 961# Use braces instead of parens because sh, perl, etc. also accept them. 962# (The list follows the same order as the GNU Coding Standards.) 963bindir='${exec_prefix}/bin' 964sbindir='${exec_prefix}/sbin' 965libexecdir='${exec_prefix}/libexec' 966datarootdir='${prefix}/share' 967datadir='${datarootdir}' 968sysconfdir='${prefix}/etc' 969sharedstatedir='${prefix}/com' 970localstatedir='${prefix}/var' 971includedir='${prefix}/include' 972oldincludedir='/usr/include' 973docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 974infodir='${datarootdir}/info' 975htmldir='${docdir}' 976dvidir='${docdir}' 977pdfdir='${docdir}' 978psdir='${docdir}' 979libdir='${exec_prefix}/lib' 980localedir='${datarootdir}/locale' 981mandir='${datarootdir}/man' 982 983ac_prev= 984ac_dashdash= 985for ac_option 986do 987 # If the previous option needs an argument, assign it. 988 if test -n "$ac_prev"; then 989 eval $ac_prev=\$ac_option 990 ac_prev= 991 continue 992 fi 993 994 case $ac_option in 995 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 996 *) ac_optarg=yes ;; 997 esac 998 999 # Accept the important Cygnus configure options, so we can diagnose typos. 1000 1001 case $ac_dashdash$ac_option in 1002 --) 1003 ac_dashdash=yes ;; 1004 1005 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1006 ac_prev=bindir ;; 1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1008 bindir=$ac_optarg ;; 1009 1010 -build | --build | --buil | --bui | --bu) 1011 ac_prev=build_alias ;; 1012 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1013 build_alias=$ac_optarg ;; 1014 1015 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1017 ac_prev=cache_file ;; 1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1020 cache_file=$ac_optarg ;; 1021 1022 --config-cache | -C) 1023 cache_file=config.cache ;; 1024 1025 -datadir | --datadir | --datadi | --datad) 1026 ac_prev=datadir ;; 1027 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1028 datadir=$ac_optarg ;; 1029 1030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1031 | --dataroo | --dataro | --datar) 1032 ac_prev=datarootdir ;; 1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1035 datarootdir=$ac_optarg ;; 1036 1037 -disable-* | --disable-*) 1038 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1041 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1042 { (exit 1); exit 1; }; } 1043 ac_useropt_orig=$ac_useropt 1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1045 case $ac_user_opts in 1046 *" 1047"enable_$ac_useropt" 1048"*) ;; 1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1050 ac_unrecognized_sep=', ';; 1051 esac 1052 eval enable_$ac_useropt=no ;; 1053 1054 -docdir | --docdir | --docdi | --doc | --do) 1055 ac_prev=docdir ;; 1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1057 docdir=$ac_optarg ;; 1058 1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1060 ac_prev=dvidir ;; 1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1062 dvidir=$ac_optarg ;; 1063 1064 -enable-* | --enable-*) 1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1068 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1069 { (exit 1); exit 1; }; } 1070 ac_useropt_orig=$ac_useropt 1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1072 case $ac_user_opts in 1073 *" 1074"enable_$ac_useropt" 1075"*) ;; 1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1077 ac_unrecognized_sep=', ';; 1078 esac 1079 eval enable_$ac_useropt=\$ac_optarg ;; 1080 1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1083 | --exec | --exe | --ex) 1084 ac_prev=exec_prefix ;; 1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1087 | --exec=* | --exe=* | --ex=*) 1088 exec_prefix=$ac_optarg ;; 1089 1090 -gas | --gas | --ga | --g) 1091 # Obsolete; use --with-gas. 1092 with_gas=yes ;; 1093 1094 -help | --help | --hel | --he | -h) 1095 ac_init_help=long ;; 1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1097 ac_init_help=recursive ;; 1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1099 ac_init_help=short ;; 1100 1101 -host | --host | --hos | --ho) 1102 ac_prev=host_alias ;; 1103 -host=* | --host=* | --hos=* | --ho=*) 1104 host_alias=$ac_optarg ;; 1105 1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1107 ac_prev=htmldir ;; 1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1109 | --ht=*) 1110 htmldir=$ac_optarg ;; 1111 1112 -includedir | --includedir | --includedi | --included | --include \ 1113 | --includ | --inclu | --incl | --inc) 1114 ac_prev=includedir ;; 1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1116 | --includ=* | --inclu=* | --incl=* | --inc=*) 1117 includedir=$ac_optarg ;; 1118 1119 -infodir | --infodir | --infodi | --infod | --info | --inf) 1120 ac_prev=infodir ;; 1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1122 infodir=$ac_optarg ;; 1123 1124 -libdir | --libdir | --libdi | --libd) 1125 ac_prev=libdir ;; 1126 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1127 libdir=$ac_optarg ;; 1128 1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1130 | --libexe | --libex | --libe) 1131 ac_prev=libexecdir ;; 1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1133 | --libexe=* | --libex=* | --libe=*) 1134 libexecdir=$ac_optarg ;; 1135 1136 -localedir | --localedir | --localedi | --localed | --locale) 1137 ac_prev=localedir ;; 1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1139 localedir=$ac_optarg ;; 1140 1141 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1142 | --localstate | --localstat | --localsta | --localst | --locals) 1143 ac_prev=localstatedir ;; 1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1146 localstatedir=$ac_optarg ;; 1147 1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1149 ac_prev=mandir ;; 1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1151 mandir=$ac_optarg ;; 1152 1153 -nfp | --nfp | --nf) 1154 # Obsolete; use --without-fp. 1155 with_fp=no ;; 1156 1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1158 | --no-cr | --no-c | -n) 1159 no_create=yes ;; 1160 1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1163 no_recursion=yes ;; 1164 1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1167 | --oldin | --oldi | --old | --ol | --o) 1168 ac_prev=oldincludedir ;; 1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1172 oldincludedir=$ac_optarg ;; 1173 1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1175 ac_prev=prefix ;; 1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1177 prefix=$ac_optarg ;; 1178 1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1180 | --program-pre | --program-pr | --program-p) 1181 ac_prev=program_prefix ;; 1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1184 program_prefix=$ac_optarg ;; 1185 1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1187 | --program-suf | --program-su | --program-s) 1188 ac_prev=program_suffix ;; 1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1191 program_suffix=$ac_optarg ;; 1192 1193 -program-transform-name | --program-transform-name \ 1194 | --program-transform-nam | --program-transform-na \ 1195 | --program-transform-n | --program-transform- \ 1196 | --program-transform | --program-transfor \ 1197 | --program-transfo | --program-transf \ 1198 | --program-trans | --program-tran \ 1199 | --progr-tra | --program-tr | --program-t) 1200 ac_prev=program_transform_name ;; 1201 -program-transform-name=* | --program-transform-name=* \ 1202 | --program-transform-nam=* | --program-transform-na=* \ 1203 | --program-transform-n=* | --program-transform-=* \ 1204 | --program-transform=* | --program-transfor=* \ 1205 | --program-transfo=* | --program-transf=* \ 1206 | --program-trans=* | --program-tran=* \ 1207 | --progr-tra=* | --program-tr=* | --program-t=*) 1208 program_transform_name=$ac_optarg ;; 1209 1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1211 ac_prev=pdfdir ;; 1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1213 pdfdir=$ac_optarg ;; 1214 1215 -psdir | --psdir | --psdi | --psd | --ps) 1216 ac_prev=psdir ;; 1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1218 psdir=$ac_optarg ;; 1219 1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1221 | -silent | --silent | --silen | --sile | --sil) 1222 silent=yes ;; 1223 1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1225 ac_prev=sbindir ;; 1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1227 | --sbi=* | --sb=*) 1228 sbindir=$ac_optarg ;; 1229 1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1232 | --sharedst | --shareds | --shared | --share | --shar \ 1233 | --sha | --sh) 1234 ac_prev=sharedstatedir ;; 1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1238 | --sha=* | --sh=*) 1239 sharedstatedir=$ac_optarg ;; 1240 1241 -site | --site | --sit) 1242 ac_prev=site ;; 1243 -site=* | --site=* | --sit=*) 1244 site=$ac_optarg ;; 1245 1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1247 ac_prev=srcdir ;; 1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1249 srcdir=$ac_optarg ;; 1250 1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1252 | --syscon | --sysco | --sysc | --sys | --sy) 1253 ac_prev=sysconfdir ;; 1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1256 sysconfdir=$ac_optarg ;; 1257 1258 -target | --target | --targe | --targ | --tar | --ta | --t) 1259 ac_prev=target_alias ;; 1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1261 target_alias=$ac_optarg ;; 1262 1263 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1264 verbose=yes ;; 1265 1266 -version | --version | --versio | --versi | --vers | -V) 1267 ac_init_version=: ;; 1268 1269 -with-* | --with-*) 1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1271 # Reject names that are not valid shell variable names. 1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1273 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1274 { (exit 1); exit 1; }; } 1275 ac_useropt_orig=$ac_useropt 1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1277 case $ac_user_opts in 1278 *" 1279"with_$ac_useropt" 1280"*) ;; 1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1282 ac_unrecognized_sep=', ';; 1283 esac 1284 eval with_$ac_useropt=\$ac_optarg ;; 1285 1286 -without-* | --without-*) 1287 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1288 # Reject names that are not valid shell variable names. 1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1290 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1291 { (exit 1); exit 1; }; } 1292 ac_useropt_orig=$ac_useropt 1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1294 case $ac_user_opts in 1295 *" 1296"with_$ac_useropt" 1297"*) ;; 1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1299 ac_unrecognized_sep=', ';; 1300 esac 1301 eval with_$ac_useropt=no ;; 1302 1303 --x) 1304 # Obsolete; use --with-x. 1305 with_x=yes ;; 1306 1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1308 | --x-incl | --x-inc | --x-in | --x-i) 1309 ac_prev=x_includes ;; 1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1312 x_includes=$ac_optarg ;; 1313 1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1316 ac_prev=x_libraries ;; 1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1319 x_libraries=$ac_optarg ;; 1320 1321 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1322Try \`$0 --help' for more information." >&2 1323 { (exit 1); exit 1; }; } 1324 ;; 1325 1326 *=*) 1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1328 # Reject names that are not valid shell variable names. 1329 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1330 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1331 { (exit 1); exit 1; }; } 1332 eval $ac_envvar=\$ac_optarg 1333 export $ac_envvar ;; 1334 1335 *) 1336 # FIXME: should be removed in autoconf 3.0. 1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1340 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1341 ;; 1342 1343 esac 1344done 1345 1346if test -n "$ac_prev"; then 1347 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1348 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1349 { (exit 1); exit 1; }; } 1350fi 1351 1352if test -n "$ac_unrecognized_opts"; then 1353 case $enable_option_checking in 1354 no) ;; 1355 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1356 { (exit 1); exit 1; }; } ;; 1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1358 esac 1359fi 1360 1361# Check all directory arguments for consistency. 1362for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1363 datadir sysconfdir sharedstatedir localstatedir includedir \ 1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1365 libdir localedir mandir 1366do 1367 eval ac_val=\$$ac_var 1368 # Remove trailing slashes. 1369 case $ac_val in 1370 */ ) 1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1372 eval $ac_var=\$ac_val;; 1373 esac 1374 # Be sure to have absolute directory names. 1375 case $ac_val in 1376 [\\/$]* | ?:[\\/]* ) continue;; 1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1378 esac 1379 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1380 { (exit 1); exit 1; }; } 1381done 1382 1383# There might be people who depend on the old broken behavior: `$host' 1384# used to hold the argument of --host etc. 1385# FIXME: To remove some day. 1386build=$build_alias 1387host=$host_alias 1388target=$target_alias 1389 1390# FIXME: To remove some day. 1391if test "x$host_alias" != x; then 1392 if test "x$build_alias" = x; then 1393 cross_compiling=maybe 1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1395 If a cross compiler is detected then cross compile mode will be used." >&2 1396 elif test "x$build_alias" != "x$host_alias"; then 1397 cross_compiling=yes 1398 fi 1399fi 1400 1401ac_tool_prefix= 1402test -n "$host_alias" && ac_tool_prefix=$host_alias- 1403 1404test "$silent" = yes && exec 6>/dev/null 1405 1406 1407ac_pwd=`pwd` && test -n "$ac_pwd" && 1408ac_ls_di=`ls -di .` && 1409ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1410 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1411 { (exit 1); exit 1; }; } 1412test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1413 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1414 { (exit 1); exit 1; }; } 1415 1416 1417# Find the source files, if location was not specified. 1418if test -z "$srcdir"; then 1419 ac_srcdir_defaulted=yes 1420 # Try the directory containing this script, then the parent directory. 1421 ac_confdir=`$as_dirname -- "$as_myself" || 1422$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1423 X"$as_myself" : 'X\(//\)[^/]' \| \ 1424 X"$as_myself" : 'X\(//\)$' \| \ 1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1426$as_echo X"$as_myself" | 1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\/\)[^/].*/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\/\)$/{ 1436 s//\1/ 1437 q 1438 } 1439 /^X\(\/\).*/{ 1440 s//\1/ 1441 q 1442 } 1443 s/.*/./; q'` 1444 srcdir=$ac_confdir 1445 if test ! -r "$srcdir/$ac_unique_file"; then 1446 srcdir=.. 1447 fi 1448else 1449 ac_srcdir_defaulted=no 1450fi 1451if test ! -r "$srcdir/$ac_unique_file"; then 1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1453 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1454 { (exit 1); exit 1; }; } 1455fi 1456ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1457ac_abs_confdir=`( 1458 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1459 { (exit 1); exit 1; }; } 1460 pwd)` 1461# When building in place, set srcdir=. 1462if test "$ac_abs_confdir" = "$ac_pwd"; then 1463 srcdir=. 1464fi 1465# Remove unnecessary trailing slashes from srcdir. 1466# Double slashes in file names in object file debugging info 1467# mess up M-x gdb in Emacs. 1468case $srcdir in 1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1470esac 1471for ac_var in $ac_precious_vars; do 1472 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1473 eval ac_env_${ac_var}_value=\$${ac_var} 1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1475 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1476done 1477 1478# 1479# Report the --help message. 1480# 1481if test "$ac_init_help" = "long"; then 1482 # Omit some internal or obsolete options to make the list less imposing. 1483 # This message is too long to be a string in the A/UX 3.1 sh. 1484 cat <<_ACEOF 1485\`configure' configures chmlib 0.40 to adapt to many kinds of systems. 1486 1487Usage: $0 [OPTION]... [VAR=VALUE]... 1488 1489To assign environment variables (e.g., CC, CFLAGS...), specify them as 1490VAR=VALUE. See below for descriptions of some of the useful variables. 1491 1492Defaults for the options are specified in brackets. 1493 1494Configuration: 1495 -h, --help display this help and exit 1496 --help=short display options specific to this package 1497 --help=recursive display the short help of all the included packages 1498 -V, --version display version information and exit 1499 -q, --quiet, --silent do not print \`checking...' messages 1500 --cache-file=FILE cache test results in FILE [disabled] 1501 -C, --config-cache alias for \`--cache-file=config.cache' 1502 -n, --no-create do not create output files 1503 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1504 1505Installation directories: 1506 --prefix=PREFIX install architecture-independent files in PREFIX 1507 [$ac_default_prefix] 1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1509 [PREFIX] 1510 1511By default, \`make install' will install all the files in 1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1513an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1514for instance \`--prefix=\$HOME'. 1515 1516For better control, use the options below. 1517 1518Fine tuning of the installation directories: 1519 --bindir=DIR user executables [EPREFIX/bin] 1520 --sbindir=DIR system admin executables [EPREFIX/sbin] 1521 --libexecdir=DIR program executables [EPREFIX/libexec] 1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1525 --libdir=DIR object code libraries [EPREFIX/lib] 1526 --includedir=DIR C header files [PREFIX/include] 1527 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1530 --infodir=DIR info documentation [DATAROOTDIR/info] 1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1532 --mandir=DIR man documentation [DATAROOTDIR/man] 1533 --docdir=DIR documentation root [DATAROOTDIR/doc/chmlib] 1534 --htmldir=DIR html documentation [DOCDIR] 1535 --dvidir=DIR dvi documentation [DOCDIR] 1536 --pdfdir=DIR pdf documentation [DOCDIR] 1537 --psdir=DIR ps documentation [DOCDIR] 1538_ACEOF 1539 1540 cat <<\_ACEOF 1541 1542Program names: 1543 --program-prefix=PREFIX prepend PREFIX to installed program names 1544 --program-suffix=SUFFIX append SUFFIX to installed program names 1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1546 1547System types: 1548 --build=BUILD configure for building on BUILD [guessed] 1549 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1550_ACEOF 1551fi 1552 1553if test -n "$ac_init_help"; then 1554 case $ac_init_help in 1555 short | recursive ) echo "Configuration of chmlib 0.40:";; 1556 esac 1557 cat <<\_ACEOF 1558 1559Optional Features: 1560 --disable-option-checking ignore unrecognized --enable/--with options 1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1563 --enable-maintainer-mode enable make rules and dependencies not useful 1564 (and sometimes confusing) to the casual installer 1565 --disable-dependency-tracking speeds up one-time build 1566 --enable-dependency-tracking do not reject slow dependency extractors 1567 --enable-shared[=PKGS] build shared libraries [default=yes] 1568 --enable-static[=PKGS] build static libraries [default=yes] 1569 --enable-fast-install[=PKGS] 1570 optimize for fast installation [default=yes] 1571 --disable-libtool-lock avoid locking (might break parallel builds) 1572 --enable-devel enable code of interest to developers 1573 1574 --disable-pthread disable pthreads and do not build thread safe 1575 library 1576 1577 --disable-io64 do not build chm_lib with support of 64-bit file I/O 1578 1579 --disable-pread do not build chm_lib to use pread/pread64 for all 1580 I/O 1581 1582 --enable-dmalloc enable dmalloc 1583 1584 --enable-examples Build example programs that use chmlib 1585 1586Optional Packages: 1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1589 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1590 --with-pic try to use only PIC/non-PIC objects [default=use 1591 both] 1592 1593Some influential environment variables: 1594 CC C compiler command 1595 CFLAGS C compiler flags 1596 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1597 nonstandard directory <lib dir> 1598 LIBS libraries to pass to the linker, e.g. -l<library> 1599 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1600 you have headers in a nonstandard directory <include dir> 1601 CPP C preprocessor 1602 1603Use these variables to override the choices made by `configure' or to help 1604it to find libraries and programs with nonstandard names/locations. 1605 1606_ACEOF 1607ac_status=$? 1608fi 1609 1610if test "$ac_init_help" = "recursive"; then 1611 # If there are subdirs, report their specific --help. 1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1613 test -d "$ac_dir" || 1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1615 continue 1616 ac_builddir=. 1617 1618case "$ac_dir" in 1619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1620*) 1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1622 # A ".." for each directory in $ac_dir_suffix. 1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1624 case $ac_top_builddir_sub in 1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1627 esac ;; 1628esac 1629ac_abs_top_builddir=$ac_pwd 1630ac_abs_builddir=$ac_pwd$ac_dir_suffix 1631# for backward compatibility: 1632ac_top_builddir=$ac_top_build_prefix 1633 1634case $srcdir in 1635 .) # We are building in place. 1636 ac_srcdir=. 1637 ac_top_srcdir=$ac_top_builddir_sub 1638 ac_abs_top_srcdir=$ac_pwd ;; 1639 [\\/]* | ?:[\\/]* ) # Absolute name. 1640 ac_srcdir=$srcdir$ac_dir_suffix; 1641 ac_top_srcdir=$srcdir 1642 ac_abs_top_srcdir=$srcdir ;; 1643 *) # Relative name. 1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1645 ac_top_srcdir=$ac_top_build_prefix$srcdir 1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1647esac 1648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1649 1650 cd "$ac_dir" || { ac_status=$?; continue; } 1651 # Check for guested configure. 1652 if test -f "$ac_srcdir/configure.gnu"; then 1653 echo && 1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1655 elif test -f "$ac_srcdir/configure"; then 1656 echo && 1657 $SHELL "$ac_srcdir/configure" --help=recursive 1658 else 1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1660 fi || ac_status=$? 1661 cd "$ac_pwd" || { ac_status=$?; break; } 1662 done 1663fi 1664 1665test -n "$ac_init_help" && exit $ac_status 1666if $ac_init_version; then 1667 cat <<\_ACEOF 1668chmlib configure 0.40 1669generated by GNU Autoconf 2.63 1670 1671Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16722002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1673This configure script is free software; the Free Software Foundation 1674gives unlimited permission to copy, distribute and modify it. 1675_ACEOF 1676 exit 1677fi 1678cat >config.log <<_ACEOF 1679This file contains any messages produced by compilers while 1680running configure, to aid debugging if configure makes a mistake. 1681 1682It was created by chmlib $as_me 0.40, which was 1683generated by GNU Autoconf 2.63. Invocation command line was 1684 1685 $ $0 $@ 1686 1687_ACEOF 1688exec 5>>config.log 1689{ 1690cat <<_ASUNAME 1691## --------- ## 1692## Platform. ## 1693## --------- ## 1694 1695hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1696uname -m = `(uname -m) 2>/dev/null || echo unknown` 1697uname -r = `(uname -r) 2>/dev/null || echo unknown` 1698uname -s = `(uname -s) 2>/dev/null || echo unknown` 1699uname -v = `(uname -v) 2>/dev/null || echo unknown` 1700 1701/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1702/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1703 1704/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1705/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1706/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1707/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1708/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1709/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1710/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1711 1712_ASUNAME 1713 1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1715for as_dir in $PATH 1716do 1717 IFS=$as_save_IFS 1718 test -z "$as_dir" && as_dir=. 1719 $as_echo "PATH: $as_dir" 1720done 1721IFS=$as_save_IFS 1722 1723} >&5 1724 1725cat >&5 <<_ACEOF 1726 1727 1728## ----------- ## 1729## Core tests. ## 1730## ----------- ## 1731 1732_ACEOF 1733 1734 1735# Keep a trace of the command line. 1736# Strip out --no-create and --no-recursion so they do not pile up. 1737# Strip out --silent because we don't want to record it for future runs. 1738# Also quote any args containing shell meta-characters. 1739# Make two passes to allow for proper duplicate-argument suppression. 1740ac_configure_args= 1741ac_configure_args0= 1742ac_configure_args1= 1743ac_must_keep_next=false 1744for ac_pass in 1 2 1745do 1746 for ac_arg 1747 do 1748 case $ac_arg in 1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1751 | -silent | --silent | --silen | --sile | --sil) 1752 continue ;; 1753 *\'*) 1754 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1755 esac 1756 case $ac_pass in 1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1758 2) 1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1760 if test $ac_must_keep_next = true; then 1761 ac_must_keep_next=false # Got value, back to normal. 1762 else 1763 case $ac_arg in 1764 *=* | --config-cache | -C | -disable-* | --disable-* \ 1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1767 | -with-* | --with-* | -without-* | --without-* | --x) 1768 case "$ac_configure_args0 " in 1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1770 esac 1771 ;; 1772 -* ) ac_must_keep_next=true ;; 1773 esac 1774 fi 1775 ac_configure_args="$ac_configure_args '$ac_arg'" 1776 ;; 1777 esac 1778 done 1779done 1780$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1781$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1782 1783# When interrupted or exit'd, cleanup temporary files, and complete 1784# config.log. We remove comments because anyway the quotes in there 1785# would cause problems or look ugly. 1786# WARNING: Use '\'' to represent an apostrophe within the trap. 1787# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1788trap 'exit_status=$? 1789 # Save into config.log some information that might help in debugging. 1790 { 1791 echo 1792 1793 cat <<\_ASBOX 1794## ---------------- ## 1795## Cache variables. ## 1796## ---------------- ## 1797_ASBOX 1798 echo 1799 # The following way of writing the cache mishandles newlines in values, 1800( 1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1802 eval ac_val=\$$ac_var 1803 case $ac_val in #( 1804 *${as_nl}*) 1805 case $ac_var in #( 1806 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1807$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1808 esac 1809 case $ac_var in #( 1810 _ | IFS | as_nl) ;; #( 1811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1812 *) $as_unset $ac_var ;; 1813 esac ;; 1814 esac 1815 done 1816 (set) 2>&1 | 1817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1818 *${as_nl}ac_space=\ *) 1819 sed -n \ 1820 "s/'\''/'\''\\\\'\'''\''/g; 1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1822 ;; #( 1823 *) 1824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1825 ;; 1826 esac | 1827 sort 1828) 1829 echo 1830 1831 cat <<\_ASBOX 1832## ----------------- ## 1833## Output variables. ## 1834## ----------------- ## 1835_ASBOX 1836 echo 1837 for ac_var in $ac_subst_vars 1838 do 1839 eval ac_val=\$$ac_var 1840 case $ac_val in 1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1842 esac 1843 $as_echo "$ac_var='\''$ac_val'\''" 1844 done | sort 1845 echo 1846 1847 if test -n "$ac_subst_files"; then 1848 cat <<\_ASBOX 1849## ------------------- ## 1850## File substitutions. ## 1851## ------------------- ## 1852_ASBOX 1853 echo 1854 for ac_var in $ac_subst_files 1855 do 1856 eval ac_val=\$$ac_var 1857 case $ac_val in 1858 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1859 esac 1860 $as_echo "$ac_var='\''$ac_val'\''" 1861 done | sort 1862 echo 1863 fi 1864 1865 if test -s confdefs.h; then 1866 cat <<\_ASBOX 1867## ----------- ## 1868## confdefs.h. ## 1869## ----------- ## 1870_ASBOX 1871 echo 1872 cat confdefs.h 1873 echo 1874 fi 1875 test "$ac_signal" != 0 && 1876 $as_echo "$as_me: caught signal $ac_signal" 1877 $as_echo "$as_me: exit $exit_status" 1878 } >&5 1879 rm -f core *.core core.conftest.* && 1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1881 exit $exit_status 1882' 0 1883for ac_signal in 1 2 13 15; do 1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1885done 1886ac_signal=0 1887 1888# confdefs.h avoids OS command line length limits that DEFS can exceed. 1889rm -f -r conftest* confdefs.h 1890 1891# Predefined preprocessor variables. 1892 1893cat >>confdefs.h <<_ACEOF 1894#define PACKAGE_NAME "$PACKAGE_NAME" 1895_ACEOF 1896 1897 1898cat >>confdefs.h <<_ACEOF 1899#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1900_ACEOF 1901 1902 1903cat >>confdefs.h <<_ACEOF 1904#define PACKAGE_VERSION "$PACKAGE_VERSION" 1905_ACEOF 1906 1907 1908cat >>confdefs.h <<_ACEOF 1909#define PACKAGE_STRING "$PACKAGE_STRING" 1910_ACEOF 1911 1912 1913cat >>confdefs.h <<_ACEOF 1914#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1915_ACEOF 1916 1917 1918# Let the site file select an alternate cache file if it wants to. 1919# Prefer an explicitly selected file to automatically selected ones. 1920ac_site_file1=NONE 1921ac_site_file2=NONE 1922if test -n "$CONFIG_SITE"; then 1923 ac_site_file1=$CONFIG_SITE 1924elif test "x$prefix" != xNONE; then 1925 ac_site_file1=$prefix/share/config.site 1926 ac_site_file2=$prefix/etc/config.site 1927else 1928 ac_site_file1=$ac_default_prefix/share/config.site 1929 ac_site_file2=$ac_default_prefix/etc/config.site 1930fi 1931for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1932do 1933 test "x$ac_site_file" = xNONE && continue 1934 if test -r "$ac_site_file"; then 1935 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1936$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1937 sed 's/^/| /' "$ac_site_file" >&5 1938 . "$ac_site_file" 1939 fi 1940done 1941 1942if test -r "$cache_file"; then 1943 # Some versions of bash will fail to source /dev/null (special 1944 # files actually), so we avoid doing that. 1945 if test -f "$cache_file"; then 1946 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1947$as_echo "$as_me: loading cache $cache_file" >&6;} 1948 case $cache_file in 1949 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1950 *) . "./$cache_file";; 1951 esac 1952 fi 1953else 1954 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1955$as_echo "$as_me: creating cache $cache_file" >&6;} 1956 >$cache_file 1957fi 1958 1959# Check that the precious variables saved in the cache have kept the same 1960# value. 1961ac_cache_corrupted=false 1962for ac_var in $ac_precious_vars; do 1963 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1964 eval ac_new_set=\$ac_env_${ac_var}_set 1965 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1966 eval ac_new_val=\$ac_env_${ac_var}_value 1967 case $ac_old_set,$ac_new_set in 1968 set,) 1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1970$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1971 ac_cache_corrupted=: ;; 1972 ,set) 1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1974$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1975 ac_cache_corrupted=: ;; 1976 ,);; 1977 *) 1978 if test "x$ac_old_val" != "x$ac_new_val"; then 1979 # differences in whitespace do not lead to failure. 1980 ac_old_val_w=`echo x $ac_old_val` 1981 ac_new_val_w=`echo x $ac_new_val` 1982 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1983 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1984$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1985 ac_cache_corrupted=: 1986 else 1987 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1988$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1989 eval $ac_var=\$ac_old_val 1990 fi 1991 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1992$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1993 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1994$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1995 fi;; 1996 esac 1997 # Pass precious variables to config.status. 1998 if test "$ac_new_set" = set; then 1999 case $ac_new_val in 2000 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2001 *) ac_arg=$ac_var=$ac_new_val ;; 2002 esac 2003 case " $ac_configure_args " in 2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2006 esac 2007 fi 2008done 2009if $ac_cache_corrupted; then 2010 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2012 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2013$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2014 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2015$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2016 { (exit 1); exit 1; }; } 2017fi 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043ac_ext=c 2044ac_cpp='$CPP $CPPFLAGS' 2045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2047ac_compiler_gnu=$ac_cv_c_compiler_gnu 2048 2049 2050 2051am__api_version='1.10' 2052 2053ac_aux_dir= 2054for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2055 if test -f "$ac_dir/install-sh"; then 2056 ac_aux_dir=$ac_dir 2057 ac_install_sh="$ac_aux_dir/install-sh -c" 2058 break 2059 elif test -f "$ac_dir/install.sh"; then 2060 ac_aux_dir=$ac_dir 2061 ac_install_sh="$ac_aux_dir/install.sh -c" 2062 break 2063 elif test -f "$ac_dir/shtool"; then 2064 ac_aux_dir=$ac_dir 2065 ac_install_sh="$ac_aux_dir/shtool install -c" 2066 break 2067 fi 2068done 2069if test -z "$ac_aux_dir"; then 2070 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2071$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2072 { (exit 1); exit 1; }; } 2073fi 2074 2075# These three variables are undocumented and unsupported, 2076# and are intended to be withdrawn in a future Autoconf release. 2077# They can cause serious problems if a builder's source tree is in a directory 2078# whose full name contains unusual characters. 2079ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2080ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2081ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2082 2083 2084# Find a good install program. We prefer a C program (faster), 2085# so one script is as good as another. But avoid the broken or 2086# incompatible versions: 2087# SysV /etc/install, /usr/sbin/install 2088# SunOS /usr/etc/install 2089# IRIX /sbin/install 2090# AIX /bin/install 2091# AmigaOS /C/install, which installs bootblocks on floppy discs 2092# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2093# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2094# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2095# OS/2's system install, which has a completely different semantic 2096# ./install, which can be erroneously created by make from ./install.sh. 2097# Reject install programs that cannot install multiple files. 2098{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2099$as_echo_n "checking for a BSD-compatible install... " >&6; } 2100if test -z "$INSTALL"; then 2101if test "${ac_cv_path_install+set}" = set; then 2102 $as_echo_n "(cached) " >&6 2103else 2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2105for as_dir in $PATH 2106do 2107 IFS=$as_save_IFS 2108 test -z "$as_dir" && as_dir=. 2109 # Account for people who put trailing slashes in PATH elements. 2110case $as_dir/ in 2111 ./ | .// | /cC/* | \ 2112 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2113 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2114 /usr/ucb/* ) ;; 2115 *) 2116 # OSF1 and SCO ODT 3.0 have their own names for install. 2117 # Don't use installbsd from OSF since it installs stuff as root 2118 # by default. 2119 for ac_prog in ginstall scoinst install; do 2120 for ac_exec_ext in '' $ac_executable_extensions; do 2121 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2122 if test $ac_prog = install && 2123 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2124 # AIX install. It has an incompatible calling convention. 2125 : 2126 elif test $ac_prog = install && 2127 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2128 # program-specific install script used by HP pwplus--don't use. 2129 : 2130 else 2131 rm -rf conftest.one conftest.two conftest.dir 2132 echo one > conftest.one 2133 echo two > conftest.two 2134 mkdir conftest.dir 2135 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2136 test -s conftest.one && test -s conftest.two && 2137 test -s conftest.dir/conftest.one && 2138 test -s conftest.dir/conftest.two 2139 then 2140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2141 break 3 2142 fi 2143 fi 2144 fi 2145 done 2146 done 2147 ;; 2148esac 2149 2150done 2151IFS=$as_save_IFS 2152 2153rm -rf conftest.one conftest.two conftest.dir 2154 2155fi 2156 if test "${ac_cv_path_install+set}" = set; then 2157 INSTALL=$ac_cv_path_install 2158 else 2159 # As a last resort, use the slow shell script. Don't cache a 2160 # value for INSTALL within a source directory, because that will 2161 # break other packages using the cache if that directory is 2162 # removed, or if the value is a relative name. 2163 INSTALL=$ac_install_sh 2164 fi 2165fi 2166{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2167$as_echo "$INSTALL" >&6; } 2168 2169# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2170# It thinks the first close brace ends the variable substitution. 2171test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2172 2173test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2174 2175test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2176 2177{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2178$as_echo_n "checking whether build environment is sane... " >&6; } 2179# Just in case 2180sleep 1 2181echo timestamp > conftest.file 2182# Do `set' in a subshell so we don't clobber the current shell's 2183# arguments. Must try -L first in case configure is actually a 2184# symlink; some systems play weird games with the mod time of symlinks 2185# (eg FreeBSD returns the mod time of the symlink's containing 2186# directory). 2187if ( 2188 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2189 if test "$*" = "X"; then 2190 # -L didn't work. 2191 set X `ls -t $srcdir/configure conftest.file` 2192 fi 2193 rm -f conftest.file 2194 if test "$*" != "X $srcdir/configure conftest.file" \ 2195 && test "$*" != "X conftest.file $srcdir/configure"; then 2196 2197 # If neither matched, then we have a broken ls. This can happen 2198 # if, for instance, CONFIG_SHELL is bash and it inherits a 2199 # broken ls alias from the environment. This has actually 2200 # happened. Such a system could not be considered "sane". 2201 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2202alias in your environment" >&5 2203$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2204alias in your environment" >&2;} 2205 { (exit 1); exit 1; }; } 2206 fi 2207 2208 test "$2" = conftest.file 2209 ) 2210then 2211 # Ok. 2212 : 2213else 2214 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2215Check your system clock" >&5 2216$as_echo "$as_me: error: newly created file is older than distributed files! 2217Check your system clock" >&2;} 2218 { (exit 1); exit 1; }; } 2219fi 2220{ $as_echo "$as_me:$LINENO: result: yes" >&5 2221$as_echo "yes" >&6; } 2222test "$program_prefix" != NONE && 2223 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2224# Use a double $ so make ignores it. 2225test "$program_suffix" != NONE && 2226 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2227# Double any \ or $. 2228# By default was `s,x,x', remove it if useless. 2229ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2230program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2231 2232# expand $ac_aux_dir to an absolute path 2233am_aux_dir=`cd $ac_aux_dir && pwd` 2234 2235test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2236# Use eval to expand $SHELL 2237if eval "$MISSING --run true"; then 2238 am_missing_run="$MISSING --run " 2239else 2240 am_missing_run= 2241 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2242$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2243fi 2244 2245{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2246$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2247if test -z "$MKDIR_P"; then 2248 if test "${ac_cv_path_mkdir+set}" = set; then 2249 $as_echo_n "(cached) " >&6 2250else 2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2252for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2253do 2254 IFS=$as_save_IFS 2255 test -z "$as_dir" && as_dir=. 2256 for ac_prog in mkdir gmkdir; do 2257 for ac_exec_ext in '' $ac_executable_extensions; do 2258 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2259 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2260 'mkdir (GNU coreutils) '* | \ 2261 'mkdir (coreutils) '* | \ 2262 'mkdir (fileutils) '4.1*) 2263 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2264 break 3;; 2265 esac 2266 done 2267 done 2268done 2269IFS=$as_save_IFS 2270 2271fi 2272 2273 if test "${ac_cv_path_mkdir+set}" = set; then 2274 MKDIR_P="$ac_cv_path_mkdir -p" 2275 else 2276 # As a last resort, use the slow shell script. Don't cache a 2277 # value for MKDIR_P within a source directory, because that will 2278 # break other packages using the cache if that directory is 2279 # removed, or if the value is a relative name. 2280 test -d ./--version && rmdir ./--version 2281 MKDIR_P="$ac_install_sh -d" 2282 fi 2283fi 2284{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2285$as_echo "$MKDIR_P" >&6; } 2286 2287mkdir_p="$MKDIR_P" 2288case $mkdir_p in 2289 [\\/$]* | ?:[\\/]*) ;; 2290 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2291esac 2292 2293for ac_prog in gawk mawk nawk awk 2294do 2295 # Extract the first word of "$ac_prog", so it can be a program name with args. 2296set dummy $ac_prog; ac_word=$2 2297{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2298$as_echo_n "checking for $ac_word... " >&6; } 2299if test "${ac_cv_prog_AWK+set}" = set; then 2300 $as_echo_n "(cached) " >&6 2301else 2302 if test -n "$AWK"; then 2303 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2304else 2305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2306for as_dir in $PATH 2307do 2308 IFS=$as_save_IFS 2309 test -z "$as_dir" && as_dir=. 2310 for ac_exec_ext in '' $ac_executable_extensions; do 2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2312 ac_cv_prog_AWK="$ac_prog" 2313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2314 break 2 2315 fi 2316done 2317done 2318IFS=$as_save_IFS 2319 2320fi 2321fi 2322AWK=$ac_cv_prog_AWK 2323if test -n "$AWK"; then 2324 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2325$as_echo "$AWK" >&6; } 2326else 2327 { $as_echo "$as_me:$LINENO: result: no" >&5 2328$as_echo "no" >&6; } 2329fi 2330 2331 2332 test -n "$AWK" && break 2333done 2334 2335{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2336$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2337set x ${MAKE-make} 2338ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2339if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2340 $as_echo_n "(cached) " >&6 2341else 2342 cat >conftest.make <<\_ACEOF 2343SHELL = /bin/sh 2344all: 2345 @echo '@@@%%%=$(MAKE)=@@@%%%' 2346_ACEOF 2347# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2348case `${MAKE-make} -f conftest.make 2>/dev/null` in 2349 *@@@%%%=?*=@@@%%%*) 2350 eval ac_cv_prog_make_${ac_make}_set=yes;; 2351 *) 2352 eval ac_cv_prog_make_${ac_make}_set=no;; 2353esac 2354rm -f conftest.make 2355fi 2356if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2357 { $as_echo "$as_me:$LINENO: result: yes" >&5 2358$as_echo "yes" >&6; } 2359 SET_MAKE= 2360else 2361 { $as_echo "$as_me:$LINENO: result: no" >&5 2362$as_echo "no" >&6; } 2363 SET_MAKE="MAKE=${MAKE-make}" 2364fi 2365 2366rm -rf .tst 2>/dev/null 2367mkdir .tst 2>/dev/null 2368if test -d .tst; then 2369 am__leading_dot=. 2370else 2371 am__leading_dot=_ 2372fi 2373rmdir .tst 2>/dev/null 2374 2375if test "`cd $srcdir && pwd`" != "`pwd`"; then 2376 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2377 # is not polluted with repeated "-I." 2378 am__isrc=' -I$(srcdir)' 2379 # test to see if srcdir already configured 2380 if test -f $srcdir/config.status; then 2381 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2382$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2383 { (exit 1); exit 1; }; } 2384 fi 2385fi 2386 2387# test whether we have cygpath 2388if test -z "$CYGPATH_W"; then 2389 if (cygpath --version) >/dev/null 2>/dev/null; then 2390 CYGPATH_W='cygpath -w' 2391 else 2392 CYGPATH_W=echo 2393 fi 2394fi 2395 2396 2397# Define the identity of the package. 2398 PACKAGE='chmlib' 2399 VERSION='0.40' 2400 2401 2402cat >>confdefs.h <<_ACEOF 2403#define PACKAGE "$PACKAGE" 2404_ACEOF 2405 2406 2407cat >>confdefs.h <<_ACEOF 2408#define VERSION "$VERSION" 2409_ACEOF 2410 2411# Some tools Automake needs. 2412 2413ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2414 2415 2416AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2417 2418 2419AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2420 2421 2422AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2423 2424 2425MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2426 2427install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2428 2429# Installed binaries are usually stripped using `strip' when the user 2430# run `make install-strip'. However `strip' might not be the right 2431# tool to use in cross-compilation environments, therefore Automake 2432# will honor the `STRIP' environment variable to overrule this program. 2433if test "$cross_compiling" != no; then 2434 if test -n "$ac_tool_prefix"; then 2435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2436set dummy ${ac_tool_prefix}strip; ac_word=$2 2437{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2438$as_echo_n "checking for $ac_word... " >&6; } 2439if test "${ac_cv_prog_STRIP+set}" = set; then 2440 $as_echo_n "(cached) " >&6 2441else 2442 if test -n "$STRIP"; then 2443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2444else 2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2446for as_dir in $PATH 2447do 2448 IFS=$as_save_IFS 2449 test -z "$as_dir" && as_dir=. 2450 for ac_exec_ext in '' $ac_executable_extensions; do 2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2452 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2454 break 2 2455 fi 2456done 2457done 2458IFS=$as_save_IFS 2459 2460fi 2461fi 2462STRIP=$ac_cv_prog_STRIP 2463if test -n "$STRIP"; then 2464 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2465$as_echo "$STRIP" >&6; } 2466else 2467 { $as_echo "$as_me:$LINENO: result: no" >&5 2468$as_echo "no" >&6; } 2469fi 2470 2471 2472fi 2473if test -z "$ac_cv_prog_STRIP"; then 2474 ac_ct_STRIP=$STRIP 2475 # Extract the first word of "strip", so it can be a program name with args. 2476set dummy strip; ac_word=$2 2477{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2478$as_echo_n "checking for $ac_word... " >&6; } 2479if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2480 $as_echo_n "(cached) " >&6 2481else 2482 if test -n "$ac_ct_STRIP"; then 2483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2484else 2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2486for as_dir in $PATH 2487do 2488 IFS=$as_save_IFS 2489 test -z "$as_dir" && as_dir=. 2490 for ac_exec_ext in '' $ac_executable_extensions; do 2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2492 ac_cv_prog_ac_ct_STRIP="strip" 2493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2494 break 2 2495 fi 2496done 2497done 2498IFS=$as_save_IFS 2499 2500fi 2501fi 2502ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2503if test -n "$ac_ct_STRIP"; then 2504 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2505$as_echo "$ac_ct_STRIP" >&6; } 2506else 2507 { $as_echo "$as_me:$LINENO: result: no" >&5 2508$as_echo "no" >&6; } 2509fi 2510 2511 if test "x$ac_ct_STRIP" = x; then 2512 STRIP=":" 2513 else 2514 case $cross_compiling:$ac_tool_warned in 2515yes:) 2516{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2518ac_tool_warned=yes ;; 2519esac 2520 STRIP=$ac_ct_STRIP 2521 fi 2522else 2523 STRIP="$ac_cv_prog_STRIP" 2524fi 2525 2526fi 2527INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2528 2529# We need awk for the "check" target. The system "awk" is bad on 2530# some platforms. 2531# Always define AMTAR for backward compatibility. 2532 2533AMTAR=${AMTAR-"${am_missing_run}tar"} 2534 2535am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2536 2537 2538 2539 2540 2541{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2542$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2543 # Check whether --enable-maintainer-mode was given. 2544if test "${enable_maintainer_mode+set}" = set; then 2545 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2546else 2547 USE_MAINTAINER_MODE=no 2548fi 2549 2550 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2551$as_echo "$USE_MAINTAINER_MODE" >&6; } 2552 if test $USE_MAINTAINER_MODE = yes; then 2553 MAINTAINER_MODE_TRUE= 2554 MAINTAINER_MODE_FALSE='#' 2555else 2556 MAINTAINER_MODE_TRUE='#' 2557 MAINTAINER_MODE_FALSE= 2558fi 2559 2560 MAINT=$MAINTAINER_MODE_TRUE 2561 2562 2563 2564 2565ac_ext=c 2566ac_cpp='$CPP $CPPFLAGS' 2567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2569ac_compiler_gnu=$ac_cv_c_compiler_gnu 2570if test -n "$ac_tool_prefix"; then 2571 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2572set dummy ${ac_tool_prefix}gcc; ac_word=$2 2573{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2574$as_echo_n "checking for $ac_word... " >&6; } 2575if test "${ac_cv_prog_CC+set}" = set; then 2576 $as_echo_n "(cached) " >&6 2577else 2578 if test -n "$CC"; then 2579 ac_cv_prog_CC="$CC" # Let the user override the test. 2580else 2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2582for as_dir in $PATH 2583do 2584 IFS=$as_save_IFS 2585 test -z "$as_dir" && as_dir=. 2586 for ac_exec_ext in '' $ac_executable_extensions; do 2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2588 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2590 break 2 2591 fi 2592done 2593done 2594IFS=$as_save_IFS 2595 2596fi 2597fi 2598CC=$ac_cv_prog_CC 2599if test -n "$CC"; then 2600 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2601$as_echo "$CC" >&6; } 2602else 2603 { $as_echo "$as_me:$LINENO: result: no" >&5 2604$as_echo "no" >&6; } 2605fi 2606 2607 2608fi 2609if test -z "$ac_cv_prog_CC"; then 2610 ac_ct_CC=$CC 2611 # Extract the first word of "gcc", so it can be a program name with args. 2612set dummy gcc; ac_word=$2 2613{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2614$as_echo_n "checking for $ac_word... " >&6; } 2615if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2616 $as_echo_n "(cached) " >&6 2617else 2618 if test -n "$ac_ct_CC"; then 2619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2620else 2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622for as_dir in $PATH 2623do 2624 IFS=$as_save_IFS 2625 test -z "$as_dir" && as_dir=. 2626 for ac_exec_ext in '' $ac_executable_extensions; do 2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2628 ac_cv_prog_ac_ct_CC="gcc" 2629 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633done 2634IFS=$as_save_IFS 2635 2636fi 2637fi 2638ac_ct_CC=$ac_cv_prog_ac_ct_CC 2639if test -n "$ac_ct_CC"; then 2640 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2641$as_echo "$ac_ct_CC" >&6; } 2642else 2643 { $as_echo "$as_me:$LINENO: result: no" >&5 2644$as_echo "no" >&6; } 2645fi 2646 2647 if test "x$ac_ct_CC" = x; then 2648 CC="" 2649 else 2650 case $cross_compiling:$ac_tool_warned in 2651yes:) 2652{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2654ac_tool_warned=yes ;; 2655esac 2656 CC=$ac_ct_CC 2657 fi 2658else 2659 CC="$ac_cv_prog_CC" 2660fi 2661 2662if test -z "$CC"; then 2663 if test -n "$ac_tool_prefix"; then 2664 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2665set dummy ${ac_tool_prefix}cc; ac_word=$2 2666{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2667$as_echo_n "checking for $ac_word... " >&6; } 2668if test "${ac_cv_prog_CC+set}" = set; then 2669 $as_echo_n "(cached) " >&6 2670else 2671 if test -n "$CC"; then 2672 ac_cv_prog_CC="$CC" # Let the user override the test. 2673else 2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675for as_dir in $PATH 2676do 2677 IFS=$as_save_IFS 2678 test -z "$as_dir" && as_dir=. 2679 for ac_exec_ext in '' $ac_executable_extensions; do 2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2681 ac_cv_prog_CC="${ac_tool_prefix}cc" 2682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2683 break 2 2684 fi 2685done 2686done 2687IFS=$as_save_IFS 2688 2689fi 2690fi 2691CC=$ac_cv_prog_CC 2692if test -n "$CC"; then 2693 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2694$as_echo "$CC" >&6; } 2695else 2696 { $as_echo "$as_me:$LINENO: result: no" >&5 2697$as_echo "no" >&6; } 2698fi 2699 2700 2701 fi 2702fi 2703if test -z "$CC"; then 2704 # Extract the first word of "cc", so it can be a program name with args. 2705set dummy cc; ac_word=$2 2706{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2707$as_echo_n "checking for $ac_word... " >&6; } 2708if test "${ac_cv_prog_CC+set}" = set; then 2709 $as_echo_n "(cached) " >&6 2710else 2711 if test -n "$CC"; then 2712 ac_cv_prog_CC="$CC" # Let the user override the test. 2713else 2714 ac_prog_rejected=no 2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2716for as_dir in $PATH 2717do 2718 IFS=$as_save_IFS 2719 test -z "$as_dir" && as_dir=. 2720 for ac_exec_ext in '' $ac_executable_extensions; do 2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2722 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2723 ac_prog_rejected=yes 2724 continue 2725 fi 2726 ac_cv_prog_CC="cc" 2727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2728 break 2 2729 fi 2730done 2731done 2732IFS=$as_save_IFS 2733 2734if test $ac_prog_rejected = yes; then 2735 # We found a bogon in the path, so make sure we never use it. 2736 set dummy $ac_cv_prog_CC 2737 shift 2738 if test $# != 0; then 2739 # We chose a different compiler from the bogus one. 2740 # However, it has the same basename, so the bogon will be chosen 2741 # first if we set CC to just the basename; use the full file name. 2742 shift 2743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2744 fi 2745fi 2746fi 2747fi 2748CC=$ac_cv_prog_CC 2749if test -n "$CC"; then 2750 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2751$as_echo "$CC" >&6; } 2752else 2753 { $as_echo "$as_me:$LINENO: result: no" >&5 2754$as_echo "no" >&6; } 2755fi 2756 2757 2758fi 2759if test -z "$CC"; then 2760 if test -n "$ac_tool_prefix"; then 2761 for ac_prog in cl.exe 2762 do 2763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2764set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2765{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2766$as_echo_n "checking for $ac_word... " >&6; } 2767if test "${ac_cv_prog_CC+set}" = set; then 2768 $as_echo_n "(cached) " >&6 2769else 2770 if test -n "$CC"; then 2771 ac_cv_prog_CC="$CC" # Let the user override the test. 2772else 2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2774for as_dir in $PATH 2775do 2776 IFS=$as_save_IFS 2777 test -z "$as_dir" && as_dir=. 2778 for ac_exec_ext in '' $ac_executable_extensions; do 2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2782 break 2 2783 fi 2784done 2785done 2786IFS=$as_save_IFS 2787 2788fi 2789fi 2790CC=$ac_cv_prog_CC 2791if test -n "$CC"; then 2792 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2793$as_echo "$CC" >&6; } 2794else 2795 { $as_echo "$as_me:$LINENO: result: no" >&5 2796$as_echo "no" >&6; } 2797fi 2798 2799 2800 test -n "$CC" && break 2801 done 2802fi 2803if test -z "$CC"; then 2804 ac_ct_CC=$CC 2805 for ac_prog in cl.exe 2806do 2807 # Extract the first word of "$ac_prog", so it can be a program name with args. 2808set dummy $ac_prog; ac_word=$2 2809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2810$as_echo_n "checking for $ac_word... " >&6; } 2811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2812 $as_echo_n "(cached) " >&6 2813else 2814 if test -n "$ac_ct_CC"; then 2815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2816else 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2824 ac_cv_prog_ac_ct_CC="$ac_prog" 2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828done 2829done 2830IFS=$as_save_IFS 2831 2832fi 2833fi 2834ac_ct_CC=$ac_cv_prog_ac_ct_CC 2835if test -n "$ac_ct_CC"; then 2836 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2837$as_echo "$ac_ct_CC" >&6; } 2838else 2839 { $as_echo "$as_me:$LINENO: result: no" >&5 2840$as_echo "no" >&6; } 2841fi 2842 2843 2844 test -n "$ac_ct_CC" && break 2845done 2846 2847 if test "x$ac_ct_CC" = x; then 2848 CC="" 2849 else 2850 case $cross_compiling:$ac_tool_warned in 2851yes:) 2852{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2854ac_tool_warned=yes ;; 2855esac 2856 CC=$ac_ct_CC 2857 fi 2858fi 2859 2860fi 2861 2862 2863test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2865{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2866See \`config.log' for more details." >&5 2867$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2868See \`config.log' for more details." >&2;} 2869 { (exit 1); exit 1; }; }; } 2870 2871# Provide some information about the compiler. 2872$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2873set X $ac_compile 2874ac_compiler=$2 2875{ (ac_try="$ac_compiler --version >&5" 2876case "(($ac_try" in 2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2878 *) ac_try_echo=$ac_try;; 2879esac 2880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2881$as_echo "$ac_try_echo") >&5 2882 (eval "$ac_compiler --version >&5") 2>&5 2883 ac_status=$? 2884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2885 (exit $ac_status); } 2886{ (ac_try="$ac_compiler -v >&5" 2887case "(($ac_try" in 2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2889 *) ac_try_echo=$ac_try;; 2890esac 2891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2892$as_echo "$ac_try_echo") >&5 2893 (eval "$ac_compiler -v >&5") 2>&5 2894 ac_status=$? 2895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2896 (exit $ac_status); } 2897{ (ac_try="$ac_compiler -V >&5" 2898case "(($ac_try" in 2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2900 *) ac_try_echo=$ac_try;; 2901esac 2902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2903$as_echo "$ac_try_echo") >&5 2904 (eval "$ac_compiler -V >&5") 2>&5 2905 ac_status=$? 2906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2907 (exit $ac_status); } 2908 2909cat >conftest.$ac_ext <<_ACEOF 2910/* confdefs.h. */ 2911_ACEOF 2912cat confdefs.h >>conftest.$ac_ext 2913cat >>conftest.$ac_ext <<_ACEOF 2914/* end confdefs.h. */ 2915 2916int 2917main () 2918{ 2919 2920 ; 2921 return 0; 2922} 2923_ACEOF 2924ac_clean_files_save=$ac_clean_files 2925ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2926# Try to create an executable without -o first, disregard a.out. 2927# It will help us diagnose broken compilers, and finding out an intuition 2928# of exeext. 2929{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2930$as_echo_n "checking for C compiler default output file name... " >&6; } 2931ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2932 2933# The possible output files: 2934ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2935 2936ac_rmfiles= 2937for ac_file in $ac_files 2938do 2939 case $ac_file in 2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2941 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2942 esac 2943done 2944rm -f $ac_rmfiles 2945 2946if { (ac_try="$ac_link_default" 2947case "(($ac_try" in 2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2949 *) ac_try_echo=$ac_try;; 2950esac 2951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2952$as_echo "$ac_try_echo") >&5 2953 (eval "$ac_link_default") 2>&5 2954 ac_status=$? 2955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2956 (exit $ac_status); }; then 2957 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2958# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2959# in a Makefile. We should not override ac_cv_exeext if it was cached, 2960# so that the user can short-circuit this test for compilers unknown to 2961# Autoconf. 2962for ac_file in $ac_files '' 2963do 2964 test -f "$ac_file" || continue 2965 case $ac_file in 2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2967 ;; 2968 [ab].out ) 2969 # We found the default executable, but exeext='' is most 2970 # certainly right. 2971 break;; 2972 *.* ) 2973 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2974 then :; else 2975 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2976 fi 2977 # We set ac_cv_exeext here because the later test for it is not 2978 # safe: cross compilers may not add the suffix if given an `-o' 2979 # argument, so we may need to know it at that point already. 2980 # Even if this section looks crufty: it has the advantage of 2981 # actually working. 2982 break;; 2983 * ) 2984 break;; 2985 esac 2986done 2987test "$ac_cv_exeext" = no && ac_cv_exeext= 2988 2989else 2990 ac_file='' 2991fi 2992 2993{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2994$as_echo "$ac_file" >&6; } 2995if test -z "$ac_file"; then 2996 $as_echo "$as_me: failed program was:" >&5 2997sed 's/^/| /' conftest.$ac_ext >&5 2998 2999{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3001{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3002See \`config.log' for more details." >&5 3003$as_echo "$as_me: error: C compiler cannot create executables 3004See \`config.log' for more details." >&2;} 3005 { (exit 77); exit 77; }; }; } 3006fi 3007 3008ac_exeext=$ac_cv_exeext 3009 3010# Check that the compiler produces executables we can run. If not, either 3011# the compiler is broken, or we cross compile. 3012{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3013$as_echo_n "checking whether the C compiler works... " >&6; } 3014# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3015# If not cross compiling, check that we can run a simple program. 3016if test "$cross_compiling" != yes; then 3017 if { ac_try='./$ac_file' 3018 { (case "(($ac_try" in 3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3020 *) ac_try_echo=$ac_try;; 3021esac 3022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3023$as_echo "$ac_try_echo") >&5 3024 (eval "$ac_try") 2>&5 3025 ac_status=$? 3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027 (exit $ac_status); }; }; then 3028 cross_compiling=no 3029 else 3030 if test "$cross_compiling" = maybe; then 3031 cross_compiling=yes 3032 else 3033 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3035{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3036If you meant to cross compile, use \`--host'. 3037See \`config.log' for more details." >&5 3038$as_echo "$as_me: error: cannot run C compiled programs. 3039If you meant to cross compile, use \`--host'. 3040See \`config.log' for more details." >&2;} 3041 { (exit 1); exit 1; }; }; } 3042 fi 3043 fi 3044fi 3045{ $as_echo "$as_me:$LINENO: result: yes" >&5 3046$as_echo "yes" >&6; } 3047 3048rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3049ac_clean_files=$ac_clean_files_save 3050# Check that the compiler produces executables we can run. If not, either 3051# the compiler is broken, or we cross compile. 3052{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3053$as_echo_n "checking whether we are cross compiling... " >&6; } 3054{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3055$as_echo "$cross_compiling" >&6; } 3056 3057{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3058$as_echo_n "checking for suffix of executables... " >&6; } 3059if { (ac_try="$ac_link" 3060case "(($ac_try" in 3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3062 *) ac_try_echo=$ac_try;; 3063esac 3064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3065$as_echo "$ac_try_echo") >&5 3066 (eval "$ac_link") 2>&5 3067 ac_status=$? 3068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3069 (exit $ac_status); }; then 3070 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3071# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3072# work properly (i.e., refer to `conftest.exe'), while it won't with 3073# `rm'. 3074for ac_file in conftest.exe conftest conftest.*; do 3075 test -f "$ac_file" || continue 3076 case $ac_file in 3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3079 break;; 3080 * ) break;; 3081 esac 3082done 3083else 3084 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3086{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3087See \`config.log' for more details." >&5 3088$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3089See \`config.log' for more details." >&2;} 3090 { (exit 1); exit 1; }; }; } 3091fi 3092 3093rm -f conftest$ac_cv_exeext 3094{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3095$as_echo "$ac_cv_exeext" >&6; } 3096 3097rm -f conftest.$ac_ext 3098EXEEXT=$ac_cv_exeext 3099ac_exeext=$EXEEXT 3100{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3101$as_echo_n "checking for suffix of object files... " >&6; } 3102if test "${ac_cv_objext+set}" = set; then 3103 $as_echo_n "(cached) " >&6 3104else 3105 cat >conftest.$ac_ext <<_ACEOF 3106/* confdefs.h. */ 3107_ACEOF 3108cat confdefs.h >>conftest.$ac_ext 3109cat >>conftest.$ac_ext <<_ACEOF 3110/* end confdefs.h. */ 3111 3112int 3113main () 3114{ 3115 3116 ; 3117 return 0; 3118} 3119_ACEOF 3120rm -f conftest.o conftest.obj 3121if { (ac_try="$ac_compile" 3122case "(($ac_try" in 3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3124 *) ac_try_echo=$ac_try;; 3125esac 3126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3127$as_echo "$ac_try_echo") >&5 3128 (eval "$ac_compile") 2>&5 3129 ac_status=$? 3130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3131 (exit $ac_status); }; then 3132 for ac_file in conftest.o conftest.obj conftest.*; do 3133 test -f "$ac_file" || continue; 3134 case $ac_file in 3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3137 break;; 3138 esac 3139done 3140else 3141 $as_echo "$as_me: failed program was:" >&5 3142sed 's/^/| /' conftest.$ac_ext >&5 3143 3144{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3146{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3147See \`config.log' for more details." >&5 3148$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3149See \`config.log' for more details." >&2;} 3150 { (exit 1); exit 1; }; }; } 3151fi 3152 3153rm -f conftest.$ac_cv_objext conftest.$ac_ext 3154fi 3155{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3156$as_echo "$ac_cv_objext" >&6; } 3157OBJEXT=$ac_cv_objext 3158ac_objext=$OBJEXT 3159{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3160$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3161if test "${ac_cv_c_compiler_gnu+set}" = set; then 3162 $as_echo_n "(cached) " >&6 3163else 3164 cat >conftest.$ac_ext <<_ACEOF 3165/* confdefs.h. */ 3166_ACEOF 3167cat confdefs.h >>conftest.$ac_ext 3168cat >>conftest.$ac_ext <<_ACEOF 3169/* end confdefs.h. */ 3170 3171int 3172main () 3173{ 3174#ifndef __GNUC__ 3175 choke me 3176#endif 3177 3178 ; 3179 return 0; 3180} 3181_ACEOF 3182rm -f conftest.$ac_objext 3183if { (ac_try="$ac_compile" 3184case "(($ac_try" in 3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3186 *) ac_try_echo=$ac_try;; 3187esac 3188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3189$as_echo "$ac_try_echo") >&5 3190 (eval "$ac_compile") 2>conftest.er1 3191 ac_status=$? 3192 grep -v '^ *+' conftest.er1 >conftest.err 3193 rm -f conftest.er1 3194 cat conftest.err >&5 3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); } && { 3197 test -z "$ac_c_werror_flag" || 3198 test ! -s conftest.err 3199 } && test -s conftest.$ac_objext; then 3200 ac_compiler_gnu=yes 3201else 3202 $as_echo "$as_me: failed program was:" >&5 3203sed 's/^/| /' conftest.$ac_ext >&5 3204 3205 ac_compiler_gnu=no 3206fi 3207 3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3209ac_cv_c_compiler_gnu=$ac_compiler_gnu 3210 3211fi 3212{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3213$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3214if test $ac_compiler_gnu = yes; then 3215 GCC=yes 3216else 3217 GCC= 3218fi 3219ac_test_CFLAGS=${CFLAGS+set} 3220ac_save_CFLAGS=$CFLAGS 3221{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3222$as_echo_n "checking whether $CC accepts -g... " >&6; } 3223if test "${ac_cv_prog_cc_g+set}" = set; then 3224 $as_echo_n "(cached) " >&6 3225else 3226 ac_save_c_werror_flag=$ac_c_werror_flag 3227 ac_c_werror_flag=yes 3228 ac_cv_prog_cc_g=no 3229 CFLAGS="-g" 3230 cat >conftest.$ac_ext <<_ACEOF 3231/* confdefs.h. */ 3232_ACEOF 3233cat confdefs.h >>conftest.$ac_ext 3234cat >>conftest.$ac_ext <<_ACEOF 3235/* end confdefs.h. */ 3236 3237int 3238main () 3239{ 3240 3241 ; 3242 return 0; 3243} 3244_ACEOF 3245rm -f conftest.$ac_objext 3246if { (ac_try="$ac_compile" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3252$as_echo "$ac_try_echo") >&5 3253 (eval "$ac_compile") 2>conftest.er1 3254 ac_status=$? 3255 grep -v '^ *+' conftest.er1 >conftest.err 3256 rm -f conftest.er1 3257 cat conftest.err >&5 3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3259 (exit $ac_status); } && { 3260 test -z "$ac_c_werror_flag" || 3261 test ! -s conftest.err 3262 } && test -s conftest.$ac_objext; then 3263 ac_cv_prog_cc_g=yes 3264else 3265 $as_echo "$as_me: failed program was:" >&5 3266sed 's/^/| /' conftest.$ac_ext >&5 3267 3268 CFLAGS="" 3269 cat >conftest.$ac_ext <<_ACEOF 3270/* confdefs.h. */ 3271_ACEOF 3272cat confdefs.h >>conftest.$ac_ext 3273cat >>conftest.$ac_ext <<_ACEOF 3274/* end confdefs.h. */ 3275 3276int 3277main () 3278{ 3279 3280 ; 3281 return 0; 3282} 3283_ACEOF 3284rm -f conftest.$ac_objext 3285if { (ac_try="$ac_compile" 3286case "(($ac_try" in 3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3288 *) ac_try_echo=$ac_try;; 3289esac 3290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3291$as_echo "$ac_try_echo") >&5 3292 (eval "$ac_compile") 2>conftest.er1 3293 ac_status=$? 3294 grep -v '^ *+' conftest.er1 >conftest.err 3295 rm -f conftest.er1 3296 cat conftest.err >&5 3297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298 (exit $ac_status); } && { 3299 test -z "$ac_c_werror_flag" || 3300 test ! -s conftest.err 3301 } && test -s conftest.$ac_objext; then 3302 : 3303else 3304 $as_echo "$as_me: failed program was:" >&5 3305sed 's/^/| /' conftest.$ac_ext >&5 3306 3307 ac_c_werror_flag=$ac_save_c_werror_flag 3308 CFLAGS="-g" 3309 cat >conftest.$ac_ext <<_ACEOF 3310/* confdefs.h. */ 3311_ACEOF 3312cat confdefs.h >>conftest.$ac_ext 3313cat >>conftest.$ac_ext <<_ACEOF 3314/* end confdefs.h. */ 3315 3316int 3317main () 3318{ 3319 3320 ; 3321 return 0; 3322} 3323_ACEOF 3324rm -f conftest.$ac_objext 3325if { (ac_try="$ac_compile" 3326case "(($ac_try" in 3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3328 *) ac_try_echo=$ac_try;; 3329esac 3330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3331$as_echo "$ac_try_echo") >&5 3332 (eval "$ac_compile") 2>conftest.er1 3333 ac_status=$? 3334 grep -v '^ *+' conftest.er1 >conftest.err 3335 rm -f conftest.er1 3336 cat conftest.err >&5 3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3338 (exit $ac_status); } && { 3339 test -z "$ac_c_werror_flag" || 3340 test ! -s conftest.err 3341 } && test -s conftest.$ac_objext; then 3342 ac_cv_prog_cc_g=yes 3343else 3344 $as_echo "$as_me: failed program was:" >&5 3345sed 's/^/| /' conftest.$ac_ext >&5 3346 3347 3348fi 3349 3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3351fi 3352 3353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3354fi 3355 3356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3357 ac_c_werror_flag=$ac_save_c_werror_flag 3358fi 3359{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3360$as_echo "$ac_cv_prog_cc_g" >&6; } 3361if test "$ac_test_CFLAGS" = set; then 3362 CFLAGS=$ac_save_CFLAGS 3363elif test $ac_cv_prog_cc_g = yes; then 3364 if test "$GCC" = yes; then 3365 CFLAGS="-g -O2" 3366 else 3367 CFLAGS="-g" 3368 fi 3369else 3370 if test "$GCC" = yes; then 3371 CFLAGS="-O2" 3372 else 3373 CFLAGS= 3374 fi 3375fi 3376{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3377$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3378if test "${ac_cv_prog_cc_c89+set}" = set; then 3379 $as_echo_n "(cached) " >&6 3380else 3381 ac_cv_prog_cc_c89=no 3382ac_save_CC=$CC 3383cat >conftest.$ac_ext <<_ACEOF 3384/* confdefs.h. */ 3385_ACEOF 3386cat confdefs.h >>conftest.$ac_ext 3387cat >>conftest.$ac_ext <<_ACEOF 3388/* end confdefs.h. */ 3389#include <stdarg.h> 3390#include <stdio.h> 3391#include <sys/types.h> 3392#include <sys/stat.h> 3393/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3394struct buf { int x; }; 3395FILE * (*rcsopen) (struct buf *, struct stat *, int); 3396static char *e (p, i) 3397 char **p; 3398 int i; 3399{ 3400 return p[i]; 3401} 3402static char *f (char * (*g) (char **, int), char **p, ...) 3403{ 3404 char *s; 3405 va_list v; 3406 va_start (v,p); 3407 s = g (p, va_arg (v,int)); 3408 va_end (v); 3409 return s; 3410} 3411 3412/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3413 function prototypes and stuff, but not '\xHH' hex character constants. 3414 These don't provoke an error unfortunately, instead are silently treated 3415 as 'x'. The following induces an error, until -std is added to get 3416 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3417 array size at least. It's necessary to write '\x00'==0 to get something 3418 that's true only with -std. */ 3419int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3420 3421/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3422 inside strings and character constants. */ 3423#define FOO(x) 'x' 3424int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3425 3426int test (int i, double x); 3427struct s1 {int (*f) (int a);}; 3428struct s2 {int (*f) (double a);}; 3429int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3430int argc; 3431char **argv; 3432int 3433main () 3434{ 3435return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3436 ; 3437 return 0; 3438} 3439_ACEOF 3440for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3441 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3442do 3443 CC="$ac_save_CC $ac_arg" 3444 rm -f conftest.$ac_objext 3445if { (ac_try="$ac_compile" 3446case "(($ac_try" in 3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3448 *) ac_try_echo=$ac_try;; 3449esac 3450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3451$as_echo "$ac_try_echo") >&5 3452 (eval "$ac_compile") 2>conftest.er1 3453 ac_status=$? 3454 grep -v '^ *+' conftest.er1 >conftest.err 3455 rm -f conftest.er1 3456 cat conftest.err >&5 3457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3458 (exit $ac_status); } && { 3459 test -z "$ac_c_werror_flag" || 3460 test ! -s conftest.err 3461 } && test -s conftest.$ac_objext; then 3462 ac_cv_prog_cc_c89=$ac_arg 3463else 3464 $as_echo "$as_me: failed program was:" >&5 3465sed 's/^/| /' conftest.$ac_ext >&5 3466 3467 3468fi 3469 3470rm -f core conftest.err conftest.$ac_objext 3471 test "x$ac_cv_prog_cc_c89" != "xno" && break 3472done 3473rm -f conftest.$ac_ext 3474CC=$ac_save_CC 3475 3476fi 3477# AC_CACHE_VAL 3478case "x$ac_cv_prog_cc_c89" in 3479 x) 3480 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3481$as_echo "none needed" >&6; } ;; 3482 xno) 3483 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3484$as_echo "unsupported" >&6; } ;; 3485 *) 3486 CC="$CC $ac_cv_prog_cc_c89" 3487 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3488$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3489esac 3490 3491 3492ac_ext=c 3493ac_cpp='$CPP $CPPFLAGS' 3494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3496ac_compiler_gnu=$ac_cv_c_compiler_gnu 3497DEPDIR="${am__leading_dot}deps" 3498 3499ac_config_commands="$ac_config_commands depfiles" 3500 3501 3502am_make=${MAKE-make} 3503cat > confinc << 'END' 3504am__doit: 3505 @echo done 3506.PHONY: am__doit 3507END 3508# If we don't find an include directive, just comment out the code. 3509{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3510$as_echo_n "checking for style of include used by $am_make... " >&6; } 3511am__include="#" 3512am__quote= 3513_am_result=none 3514# First try GNU make style include. 3515echo "include confinc" > confmf 3516# We grep out `Entering directory' and `Leaving directory' 3517# messages which can occur if `w' ends up in MAKEFLAGS. 3518# In particular we don't look at `^make:' because GNU make might 3519# be invoked under some other name (usually "gmake"), in which 3520# case it prints its new name instead of `make'. 3521if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3522 am__include=include 3523 am__quote= 3524 _am_result=GNU 3525fi 3526# Now try BSD make style include. 3527if test "$am__include" = "#"; then 3528 echo '.include "confinc"' > confmf 3529 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3530 am__include=.include 3531 am__quote="\"" 3532 _am_result=BSD 3533 fi 3534fi 3535 3536 3537{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3538$as_echo "$_am_result" >&6; } 3539rm -f confinc confmf 3540 3541# Check whether --enable-dependency-tracking was given. 3542if test "${enable_dependency_tracking+set}" = set; then 3543 enableval=$enable_dependency_tracking; 3544fi 3545 3546if test "x$enable_dependency_tracking" != xno; then 3547 am_depcomp="$ac_aux_dir/depcomp" 3548 AMDEPBACKSLASH='\' 3549fi 3550 if test "x$enable_dependency_tracking" != xno; then 3551 AMDEP_TRUE= 3552 AMDEP_FALSE='#' 3553else 3554 AMDEP_TRUE='#' 3555 AMDEP_FALSE= 3556fi 3557 3558 3559 3560depcc="$CC" am_compiler_list= 3561 3562{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3563$as_echo_n "checking dependency style of $depcc... " >&6; } 3564if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3565 $as_echo_n "(cached) " >&6 3566else 3567 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3568 # We make a subdir and do the tests there. Otherwise we can end up 3569 # making bogus files that we don't know about and never remove. For 3570 # instance it was reported that on HP-UX the gcc test will end up 3571 # making a dummy file named `D' -- because `-MD' means `put the output 3572 # in D'. 3573 mkdir conftest.dir 3574 # Copy depcomp to subdir because otherwise we won't find it if we're 3575 # using a relative directory. 3576 cp "$am_depcomp" conftest.dir 3577 cd conftest.dir 3578 # We will build objects and dependencies in a subdirectory because 3579 # it helps to detect inapplicable dependency modes. For instance 3580 # both Tru64's cc and ICC support -MD to output dependencies as a 3581 # side effect of compilation, but ICC will put the dependencies in 3582 # the current directory while Tru64 will put them in the object 3583 # directory. 3584 mkdir sub 3585 3586 am_cv_CC_dependencies_compiler_type=none 3587 if test "$am_compiler_list" = ""; then 3588 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3589 fi 3590 for depmode in $am_compiler_list; do 3591 # Setup a source with many dependencies, because some compilers 3592 # like to wrap large dependency lists on column 80 (with \), and 3593 # we should not choose a depcomp mode which is confused by this. 3594 # 3595 # We need to recreate these files for each test, as the compiler may 3596 # overwrite some of them when testing with obscure command lines. 3597 # This happens at least with the AIX C compiler. 3598 : > sub/conftest.c 3599 for i in 1 2 3 4 5 6; do 3600 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3602 # Solaris 8's {/usr,}/bin/sh. 3603 touch sub/conftst$i.h 3604 done 3605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3606 3607 case $depmode in 3608 nosideeffect) 3609 # after this tag, mechanisms are not by side-effect, so they'll 3610 # only be used when explicitly requested 3611 if test "x$enable_dependency_tracking" = xyes; then 3612 continue 3613 else 3614 break 3615 fi 3616 ;; 3617 none) break ;; 3618 esac 3619 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3620 # mode. It turns out that the SunPro C++ compiler does not properly 3621 # handle `-M -o', and we need to detect this. 3622 if depmode=$depmode \ 3623 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3625 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3626 >/dev/null 2>conftest.err && 3627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3629 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3630 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3631 # icc doesn't choke on unknown options, it will just issue warnings 3632 # or remarks (even with -Werror). So we grep stderr for any message 3633 # that says an option was ignored or not supported. 3634 # When given -MP, icc 7.0 and 7.1 complain thusly: 3635 # icc: Command line warning: ignoring option '-M'; no argument required 3636 # The diagnosis changed in icc 8.0: 3637 # icc: Command line remark: option '-MP' not supported 3638 if (grep 'ignoring option' conftest.err || 3639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3640 am_cv_CC_dependencies_compiler_type=$depmode 3641 break 3642 fi 3643 fi 3644 done 3645 3646 cd .. 3647 rm -rf conftest.dir 3648else 3649 am_cv_CC_dependencies_compiler_type=none 3650fi 3651 3652fi 3653{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3654$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3655CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3656 3657 if 3658 test "x$enable_dependency_tracking" != xno \ 3659 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3660 am__fastdepCC_TRUE= 3661 am__fastdepCC_FALSE='#' 3662else 3663 am__fastdepCC_TRUE='#' 3664 am__fastdepCC_FALSE= 3665fi 3666 3667 3668# Make sure we can run config.sub. 3669$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3670 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3671$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3672 { (exit 1); exit 1; }; } 3673 3674{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3675$as_echo_n "checking build system type... " >&6; } 3676if test "${ac_cv_build+set}" = set; then 3677 $as_echo_n "(cached) " >&6 3678else 3679 ac_build_alias=$build_alias 3680test "x$ac_build_alias" = x && 3681 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3682test "x$ac_build_alias" = x && 3683 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3684$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3685 { (exit 1); exit 1; }; } 3686ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3687 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3688$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3689 { (exit 1); exit 1; }; } 3690 3691fi 3692{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3693$as_echo "$ac_cv_build" >&6; } 3694case $ac_cv_build in 3695*-*-*) ;; 3696*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3697$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3698 { (exit 1); exit 1; }; };; 3699esac 3700build=$ac_cv_build 3701ac_save_IFS=$IFS; IFS='-' 3702set x $ac_cv_build 3703shift 3704build_cpu=$1 3705build_vendor=$2 3706shift; shift 3707# Remember, the first character of IFS is used to create $*, 3708# except with old shells: 3709build_os=$* 3710IFS=$ac_save_IFS 3711case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3712 3713 3714{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3715$as_echo_n "checking host system type... " >&6; } 3716if test "${ac_cv_host+set}" = set; then 3717 $as_echo_n "(cached) " >&6 3718else 3719 if test "x$host_alias" = x; then 3720 ac_cv_host=$ac_cv_build 3721else 3722 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3723 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3724$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3725 { (exit 1); exit 1; }; } 3726fi 3727 3728fi 3729{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3730$as_echo "$ac_cv_host" >&6; } 3731case $ac_cv_host in 3732*-*-*) ;; 3733*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3734$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3735 { (exit 1); exit 1; }; };; 3736esac 3737host=$ac_cv_host 3738ac_save_IFS=$IFS; IFS='-' 3739set x $ac_cv_host 3740shift 3741host_cpu=$1 3742host_vendor=$2 3743shift; shift 3744# Remember, the first character of IFS is used to create $*, 3745# except with old shells: 3746host_os=$* 3747IFS=$ac_save_IFS 3748case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3749 3750 3751{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3752$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3753if test "${ac_cv_path_SED+set}" = set; then 3754 $as_echo_n "(cached) " >&6 3755else 3756 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3757 for ac_i in 1 2 3 4 5 6 7; do 3758 ac_script="$ac_script$as_nl$ac_script" 3759 done 3760 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3761 $as_unset ac_script || ac_script= 3762 if test -z "$SED"; then 3763 ac_path_SED_found=false 3764 # Loop through the user's path and test for each of PROGNAME-LIST 3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3766for as_dir in $PATH 3767do 3768 IFS=$as_save_IFS 3769 test -z "$as_dir" && as_dir=. 3770 for ac_prog in sed gsed; do 3771 for ac_exec_ext in '' $ac_executable_extensions; do 3772 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3773 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3774# Check for GNU ac_path_SED and select it if it is found. 3775 # Check for GNU $ac_path_SED 3776case `"$ac_path_SED" --version 2>&1` in 3777*GNU*) 3778 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3779*) 3780 ac_count=0 3781 $as_echo_n 0123456789 >"conftest.in" 3782 while : 3783 do 3784 cat "conftest.in" "conftest.in" >"conftest.tmp" 3785 mv "conftest.tmp" "conftest.in" 3786 cp "conftest.in" "conftest.nl" 3787 $as_echo '' >> "conftest.nl" 3788 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3790 ac_count=`expr $ac_count + 1` 3791 if test $ac_count -gt ${ac_path_SED_max-0}; then 3792 # Best one so far, save it but keep looking for a better one 3793 ac_cv_path_SED="$ac_path_SED" 3794 ac_path_SED_max=$ac_count 3795 fi 3796 # 10*(2^10) chars as input seems more than enough 3797 test $ac_count -gt 10 && break 3798 done 3799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3800esac 3801 3802 $ac_path_SED_found && break 3 3803 done 3804 done 3805done 3806IFS=$as_save_IFS 3807 if test -z "$ac_cv_path_SED"; then 3808 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3809$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3810 { (exit 1); exit 1; }; } 3811 fi 3812else 3813 ac_cv_path_SED=$SED 3814fi 3815 3816fi 3817{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3818$as_echo "$ac_cv_path_SED" >&6; } 3819 SED="$ac_cv_path_SED" 3820 rm -f conftest.sed 3821 3822test -z "$SED" && SED=sed 3823Xsed="$SED -e 1s/^X//" 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3836$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3837if test "${ac_cv_path_GREP+set}" = set; then 3838 $as_echo_n "(cached) " >&6 3839else 3840 if test -z "$GREP"; then 3841 ac_path_GREP_found=false 3842 # Loop through the user's path and test for each of PROGNAME-LIST 3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3844for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3845do 3846 IFS=$as_save_IFS 3847 test -z "$as_dir" && as_dir=. 3848 for ac_prog in grep ggrep; do 3849 for ac_exec_ext in '' $ac_executable_extensions; do 3850 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3851 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3852# Check for GNU ac_path_GREP and select it if it is found. 3853 # Check for GNU $ac_path_GREP 3854case `"$ac_path_GREP" --version 2>&1` in 3855*GNU*) 3856 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3857*) 3858 ac_count=0 3859 $as_echo_n 0123456789 >"conftest.in" 3860 while : 3861 do 3862 cat "conftest.in" "conftest.in" >"conftest.tmp" 3863 mv "conftest.tmp" "conftest.in" 3864 cp "conftest.in" "conftest.nl" 3865 $as_echo 'GREP' >> "conftest.nl" 3866 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3868 ac_count=`expr $ac_count + 1` 3869 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3870 # Best one so far, save it but keep looking for a better one 3871 ac_cv_path_GREP="$ac_path_GREP" 3872 ac_path_GREP_max=$ac_count 3873 fi 3874 # 10*(2^10) chars as input seems more than enough 3875 test $ac_count -gt 10 && break 3876 done 3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3878esac 3879 3880 $ac_path_GREP_found && break 3 3881 done 3882 done 3883done 3884IFS=$as_save_IFS 3885 if test -z "$ac_cv_path_GREP"; then 3886 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3887$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3888 { (exit 1); exit 1; }; } 3889 fi 3890else 3891 ac_cv_path_GREP=$GREP 3892fi 3893 3894fi 3895{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3896$as_echo "$ac_cv_path_GREP" >&6; } 3897 GREP="$ac_cv_path_GREP" 3898 3899 3900{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3901$as_echo_n "checking for egrep... " >&6; } 3902if test "${ac_cv_path_EGREP+set}" = set; then 3903 $as_echo_n "(cached) " >&6 3904else 3905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3906 then ac_cv_path_EGREP="$GREP -E" 3907 else 3908 if test -z "$EGREP"; then 3909 ac_path_EGREP_found=false 3910 # Loop through the user's path and test for each of PROGNAME-LIST 3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3912for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3913do 3914 IFS=$as_save_IFS 3915 test -z "$as_dir" && as_dir=. 3916 for ac_prog in egrep; do 3917 for ac_exec_ext in '' $ac_executable_extensions; do 3918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3919 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3920# Check for GNU ac_path_EGREP and select it if it is found. 3921 # Check for GNU $ac_path_EGREP 3922case `"$ac_path_EGREP" --version 2>&1` in 3923*GNU*) 3924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3925*) 3926 ac_count=0 3927 $as_echo_n 0123456789 >"conftest.in" 3928 while : 3929 do 3930 cat "conftest.in" "conftest.in" >"conftest.tmp" 3931 mv "conftest.tmp" "conftest.in" 3932 cp "conftest.in" "conftest.nl" 3933 $as_echo 'EGREP' >> "conftest.nl" 3934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3936 ac_count=`expr $ac_count + 1` 3937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3938 # Best one so far, save it but keep looking for a better one 3939 ac_cv_path_EGREP="$ac_path_EGREP" 3940 ac_path_EGREP_max=$ac_count 3941 fi 3942 # 10*(2^10) chars as input seems more than enough 3943 test $ac_count -gt 10 && break 3944 done 3945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3946esac 3947 3948 $ac_path_EGREP_found && break 3 3949 done 3950 done 3951done 3952IFS=$as_save_IFS 3953 if test -z "$ac_cv_path_EGREP"; then 3954 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3955$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3956 { (exit 1); exit 1; }; } 3957 fi 3958else 3959 ac_cv_path_EGREP=$EGREP 3960fi 3961 3962 fi 3963fi 3964{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3965$as_echo "$ac_cv_path_EGREP" >&6; } 3966 EGREP="$ac_cv_path_EGREP" 3967 3968 3969{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 3970$as_echo_n "checking for fgrep... " >&6; } 3971if test "${ac_cv_path_FGREP+set}" = set; then 3972 $as_echo_n "(cached) " >&6 3973else 3974 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3975 then ac_cv_path_FGREP="$GREP -F" 3976 else 3977 if test -z "$FGREP"; then 3978 ac_path_FGREP_found=false 3979 # Loop through the user's path and test for each of PROGNAME-LIST 3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3981for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3982do 3983 IFS=$as_save_IFS 3984 test -z "$as_dir" && as_dir=. 3985 for ac_prog in fgrep; do 3986 for ac_exec_ext in '' $ac_executable_extensions; do 3987 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3988 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3989# Check for GNU ac_path_FGREP and select it if it is found. 3990 # Check for GNU $ac_path_FGREP 3991case `"$ac_path_FGREP" --version 2>&1` in 3992*GNU*) 3993 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3994*) 3995 ac_count=0 3996 $as_echo_n 0123456789 >"conftest.in" 3997 while : 3998 do 3999 cat "conftest.in" "conftest.in" >"conftest.tmp" 4000 mv "conftest.tmp" "conftest.in" 4001 cp "conftest.in" "conftest.nl" 4002 $as_echo 'FGREP' >> "conftest.nl" 4003 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4005 ac_count=`expr $ac_count + 1` 4006 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4007 # Best one so far, save it but keep looking for a better one 4008 ac_cv_path_FGREP="$ac_path_FGREP" 4009 ac_path_FGREP_max=$ac_count 4010 fi 4011 # 10*(2^10) chars as input seems more than enough 4012 test $ac_count -gt 10 && break 4013 done 4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4015esac 4016 4017 $ac_path_FGREP_found && break 3 4018 done 4019 done 4020done 4021IFS=$as_save_IFS 4022 if test -z "$ac_cv_path_FGREP"; then 4023 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4024$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4025 { (exit 1); exit 1; }; } 4026 fi 4027else 4028 ac_cv_path_FGREP=$FGREP 4029fi 4030 4031 fi 4032fi 4033{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4034$as_echo "$ac_cv_path_FGREP" >&6; } 4035 FGREP="$ac_cv_path_FGREP" 4036 4037 4038test -z "$GREP" && GREP=grep 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058# Check whether --with-gnu-ld was given. 4059if test "${with_gnu_ld+set}" = set; then 4060 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4061else 4062 with_gnu_ld=no 4063fi 4064 4065ac_prog=ld 4066if test "$GCC" = yes; then 4067 # Check if gcc -print-prog-name=ld gives a path. 4068 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4069$as_echo_n "checking for ld used by $CC... " >&6; } 4070 case $host in 4071 *-*-mingw*) 4072 # gcc leaves a trailing carriage return which upsets mingw 4073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4074 *) 4075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4076 esac 4077 case $ac_prog in 4078 # Accept absolute paths. 4079 [\\/]* | ?:[\\/]*) 4080 re_direlt='/[^/][^/]*/\.\./' 4081 # Canonicalize the pathname of ld 4082 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4083 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4084 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4085 done 4086 test -z "$LD" && LD="$ac_prog" 4087 ;; 4088 "") 4089 # If it fails, then pretend we aren't using GCC. 4090 ac_prog=ld 4091 ;; 4092 *) 4093 # If it is relative, then search for the first ld in PATH. 4094 with_gnu_ld=unknown 4095 ;; 4096 esac 4097elif test "$with_gnu_ld" = yes; then 4098 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4099$as_echo_n "checking for GNU ld... " >&6; } 4100else 4101 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4102$as_echo_n "checking for non-GNU ld... " >&6; } 4103fi 4104if test "${lt_cv_path_LD+set}" = set; then 4105 $as_echo_n "(cached) " >&6 4106else 4107 if test -z "$LD"; then 4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4109 for ac_dir in $PATH; do 4110 IFS="$lt_save_ifs" 4111 test -z "$ac_dir" && ac_dir=. 4112 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4113 lt_cv_path_LD="$ac_dir/$ac_prog" 4114 # Check to see if the program is GNU ld. I'd rather use --version, 4115 # but apparently some variants of GNU ld only accept -v. 4116 # Break only if it was the GNU/non-GNU ld that we prefer. 4117 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4118 *GNU* | *'with BFD'*) 4119 test "$with_gnu_ld" != no && break 4120 ;; 4121 *) 4122 test "$with_gnu_ld" != yes && break 4123 ;; 4124 esac 4125 fi 4126 done 4127 IFS="$lt_save_ifs" 4128else 4129 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4130fi 4131fi 4132 4133LD="$lt_cv_path_LD" 4134if test -n "$LD"; then 4135 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4136$as_echo "$LD" >&6; } 4137else 4138 { $as_echo "$as_me:$LINENO: result: no" >&5 4139$as_echo "no" >&6; } 4140fi 4141test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4142$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4143 { (exit 1); exit 1; }; } 4144{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4145$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4146if test "${lt_cv_prog_gnu_ld+set}" = set; then 4147 $as_echo_n "(cached) " >&6 4148else 4149 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4150case `$LD -v 2>&1 </dev/null` in 4151*GNU* | *'with BFD'*) 4152 lt_cv_prog_gnu_ld=yes 4153 ;; 4154*) 4155 lt_cv_prog_gnu_ld=no 4156 ;; 4157esac 4158fi 4159{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4160$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4161with_gnu_ld=$lt_cv_prog_gnu_ld 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171case `pwd` in 4172 *\ * | *\ *) 4173 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4174$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4175esac 4176 4177 4178 4179macro_version='2.2.6' 4180macro_revision='1.3012' 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194ltmain="$ac_aux_dir/ltmain.sh" 4195 4196{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4197$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4198if test "${lt_cv_path_NM+set}" = set; then 4199 $as_echo_n "(cached) " >&6 4200else 4201 if test -n "$NM"; then 4202 # Let the user override the test. 4203 lt_cv_path_NM="$NM" 4204else 4205 lt_nm_to_check="${ac_tool_prefix}nm" 4206 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4207 lt_nm_to_check="$lt_nm_to_check nm" 4208 fi 4209 for lt_tmp_nm in $lt_nm_to_check; do 4210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4211 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4212 IFS="$lt_save_ifs" 4213 test -z "$ac_dir" && ac_dir=. 4214 tmp_nm="$ac_dir/$lt_tmp_nm" 4215 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4216 # Check to see if the nm accepts a BSD-compat flag. 4217 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4218 # nm: unknown option "B" ignored 4219 # Tru64's nm complains that /dev/null is an invalid object file 4220 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4221 */dev/null* | *'Invalid file or object type'*) 4222 lt_cv_path_NM="$tmp_nm -B" 4223 break 4224 ;; 4225 *) 4226 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4227 */dev/null*) 4228 lt_cv_path_NM="$tmp_nm -p" 4229 break 4230 ;; 4231 *) 4232 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4233 continue # so that we can try to find one that supports BSD flags 4234 ;; 4235 esac 4236 ;; 4237 esac 4238 fi 4239 done 4240 IFS="$lt_save_ifs" 4241 done 4242 : ${lt_cv_path_NM=no} 4243fi 4244fi 4245{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4246$as_echo "$lt_cv_path_NM" >&6; } 4247if test "$lt_cv_path_NM" != "no"; then 4248 NM="$lt_cv_path_NM" 4249else 4250 # Didn't find any BSD compatible name lister, look for dumpbin. 4251 if test -n "$ac_tool_prefix"; then 4252 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4253 do 4254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4255set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4257$as_echo_n "checking for $ac_word... " >&6; } 4258if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4259 $as_echo_n "(cached) " >&6 4260else 4261 if test -n "$DUMPBIN"; then 4262 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4263else 4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4265for as_dir in $PATH 4266do 4267 IFS=$as_save_IFS 4268 test -z "$as_dir" && as_dir=. 4269 for ac_exec_ext in '' $ac_executable_extensions; do 4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4271 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4273 break 2 4274 fi 4275done 4276done 4277IFS=$as_save_IFS 4278 4279fi 4280fi 4281DUMPBIN=$ac_cv_prog_DUMPBIN 4282if test -n "$DUMPBIN"; then 4283 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4284$as_echo "$DUMPBIN" >&6; } 4285else 4286 { $as_echo "$as_me:$LINENO: result: no" >&5 4287$as_echo "no" >&6; } 4288fi 4289 4290 4291 test -n "$DUMPBIN" && break 4292 done 4293fi 4294if test -z "$DUMPBIN"; then 4295 ac_ct_DUMPBIN=$DUMPBIN 4296 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4297do 4298 # Extract the first word of "$ac_prog", so it can be a program name with args. 4299set dummy $ac_prog; ac_word=$2 4300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4301$as_echo_n "checking for $ac_word... " >&6; } 4302if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4303 $as_echo_n "(cached) " >&6 4304else 4305 if test -n "$ac_ct_DUMPBIN"; then 4306 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4307else 4308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4309for as_dir in $PATH 4310do 4311 IFS=$as_save_IFS 4312 test -z "$as_dir" && as_dir=. 4313 for ac_exec_ext in '' $ac_executable_extensions; do 4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4315 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4317 break 2 4318 fi 4319done 4320done 4321IFS=$as_save_IFS 4322 4323fi 4324fi 4325ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4326if test -n "$ac_ct_DUMPBIN"; then 4327 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4328$as_echo "$ac_ct_DUMPBIN" >&6; } 4329else 4330 { $as_echo "$as_me:$LINENO: result: no" >&5 4331$as_echo "no" >&6; } 4332fi 4333 4334 4335 test -n "$ac_ct_DUMPBIN" && break 4336done 4337 4338 if test "x$ac_ct_DUMPBIN" = x; then 4339 DUMPBIN=":" 4340 else 4341 case $cross_compiling:$ac_tool_warned in 4342yes:) 4343{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4345ac_tool_warned=yes ;; 4346esac 4347 DUMPBIN=$ac_ct_DUMPBIN 4348 fi 4349fi 4350 4351 4352 if test "$DUMPBIN" != ":"; then 4353 NM="$DUMPBIN" 4354 fi 4355fi 4356test -z "$NM" && NM=nm 4357 4358 4359 4360 4361 4362 4363{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4364$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4365if test "${lt_cv_nm_interface+set}" = set; then 4366 $as_echo_n "(cached) " >&6 4367else 4368 lt_cv_nm_interface="BSD nm" 4369 echo "int some_variable = 0;" > conftest.$ac_ext 4370 (eval echo "\"\$as_me:4370: $ac_compile\"" >&5) 4371 (eval "$ac_compile" 2>conftest.err) 4372 cat conftest.err >&5 4373 (eval echo "\"\$as_me:4373: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4374 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4375 cat conftest.err >&5 4376 (eval echo "\"\$as_me:4376: output\"" >&5) 4377 cat conftest.out >&5 4378 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4379 lt_cv_nm_interface="MS dumpbin" 4380 fi 4381 rm -f conftest* 4382fi 4383{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4384$as_echo "$lt_cv_nm_interface" >&6; } 4385 4386{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4387$as_echo_n "checking whether ln -s works... " >&6; } 4388LN_S=$as_ln_s 4389if test "$LN_S" = "ln -s"; then 4390 { $as_echo "$as_me:$LINENO: result: yes" >&5 4391$as_echo "yes" >&6; } 4392else 4393 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4394$as_echo "no, using $LN_S" >&6; } 4395fi 4396 4397# find the maximum length of command line arguments 4398{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4399$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4400if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4401 $as_echo_n "(cached) " >&6 4402else 4403 i=0 4404 teststring="ABCD" 4405 4406 case $build_os in 4407 msdosdjgpp*) 4408 # On DJGPP, this test can blow up pretty badly due to problems in libc 4409 # (any single argument exceeding 2000 bytes causes a buffer overrun 4410 # during glob expansion). Even if it were fixed, the result of this 4411 # check would be larger than it should be. 4412 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4413 ;; 4414 4415 gnu*) 4416 # Under GNU Hurd, this test is not required because there is 4417 # no limit to the length of command line arguments. 4418 # Libtool will interpret -1 as no limit whatsoever 4419 lt_cv_sys_max_cmd_len=-1; 4420 ;; 4421 4422 cygwin* | mingw* | cegcc*) 4423 # On Win9x/ME, this test blows up -- it succeeds, but takes 4424 # about 5 minutes as the teststring grows exponentially. 4425 # Worse, since 9x/ME are not pre-emptively multitasking, 4426 # you end up with a "frozen" computer, even though with patience 4427 # the test eventually succeeds (with a max line length of 256k). 4428 # Instead, let's just punt: use the minimum linelength reported by 4429 # all of the supported platforms: 8192 (on NT/2K/XP). 4430 lt_cv_sys_max_cmd_len=8192; 4431 ;; 4432 4433 amigaos*) 4434 # On AmigaOS with pdksh, this test takes hours, literally. 4435 # So we just punt and use a minimum line length of 8192. 4436 lt_cv_sys_max_cmd_len=8192; 4437 ;; 4438 4439 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4440 # This has been around since 386BSD, at least. Likely further. 4441 if test -x /sbin/sysctl; then 4442 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4443 elif test -x /usr/sbin/sysctl; then 4444 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4445 else 4446 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4447 fi 4448 # And add a safety zone 4449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4451 ;; 4452 4453 interix*) 4454 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4455 lt_cv_sys_max_cmd_len=196608 4456 ;; 4457 4458 osf*) 4459 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4460 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4461 # nice to cause kernel panics so lets avoid the loop below. 4462 # First set a reasonable default. 4463 lt_cv_sys_max_cmd_len=16384 4464 # 4465 if test -x /sbin/sysconfig; then 4466 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4467 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4468 esac 4469 fi 4470 ;; 4471 sco3.2v5*) 4472 lt_cv_sys_max_cmd_len=102400 4473 ;; 4474 sysv5* | sco5v6* | sysv4.2uw2*) 4475 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4476 if test -n "$kargmax"; then 4477 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4478 else 4479 lt_cv_sys_max_cmd_len=32768 4480 fi 4481 ;; 4482 *) 4483 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4484 if test -n "$lt_cv_sys_max_cmd_len"; then 4485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4487 else 4488 # Make teststring a little bigger before we do anything with it. 4489 # a 1K string should be a reasonable start. 4490 for i in 1 2 3 4 5 6 7 8 ; do 4491 teststring=$teststring$teststring 4492 done 4493 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4494 # If test is not a shell built-in, we'll probably end up computing a 4495 # maximum length that is only half of the actual maximum length, but 4496 # we can't tell. 4497 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4498 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4499 test $i != 17 # 1/2 MB should be enough 4500 do 4501 i=`expr $i + 1` 4502 teststring=$teststring$teststring 4503 done 4504 # Only check the string length outside the loop. 4505 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4506 teststring= 4507 # Add a significant safety factor because C++ compilers can tack on 4508 # massive amounts of additional arguments before passing them to the 4509 # linker. It appears as though 1/2 is a usable value. 4510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4511 fi 4512 ;; 4513 esac 4514 4515fi 4516 4517if test -n $lt_cv_sys_max_cmd_len ; then 4518 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4519$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4520else 4521 { $as_echo "$as_me:$LINENO: result: none" >&5 4522$as_echo "none" >&6; } 4523fi 4524max_cmd_len=$lt_cv_sys_max_cmd_len 4525 4526 4527 4528 4529 4530 4531: ${CP="cp -f"} 4532: ${MV="mv -f"} 4533: ${RM="rm -f"} 4534 4535{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4536$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4537# Try some XSI features 4538xsi_shell=no 4539( _lt_dummy="a/b/c" 4540 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4541 = c,a/b,, \ 4542 && eval 'test $(( 1 + 1 )) -eq 2 \ 4543 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4544 && xsi_shell=yes 4545{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4546$as_echo "$xsi_shell" >&6; } 4547 4548 4549{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4550$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4551lt_shell_append=no 4552( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4553 >/dev/null 2>&1 \ 4554 && lt_shell_append=yes 4555{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4556$as_echo "$lt_shell_append" >&6; } 4557 4558 4559if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4560 lt_unset=unset 4561else 4562 lt_unset=false 4563fi 4564 4565 4566 4567 4568 4569# test EBCDIC or ASCII 4570case `echo X|tr X '\101'` in 4571 A) # ASCII based system 4572 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4573 lt_SP2NL='tr \040 \012' 4574 lt_NL2SP='tr \015\012 \040\040' 4575 ;; 4576 *) # EBCDIC based system 4577 lt_SP2NL='tr \100 \n' 4578 lt_NL2SP='tr \r\n \100\100' 4579 ;; 4580esac 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4591$as_echo_n "checking for $LD option to reload object files... " >&6; } 4592if test "${lt_cv_ld_reload_flag+set}" = set; then 4593 $as_echo_n "(cached) " >&6 4594else 4595 lt_cv_ld_reload_flag='-r' 4596fi 4597{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4598$as_echo "$lt_cv_ld_reload_flag" >&6; } 4599reload_flag=$lt_cv_ld_reload_flag 4600case $reload_flag in 4601"" | " "*) ;; 4602*) reload_flag=" $reload_flag" ;; 4603esac 4604reload_cmds='$LD$reload_flag -o $output$reload_objs' 4605case $host_os in 4606 darwin*) 4607 if test "$GCC" = yes; then 4608 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4609 else 4610 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4611 fi 4612 ;; 4613esac 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623if test -n "$ac_tool_prefix"; then 4624 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4625set dummy ${ac_tool_prefix}objdump; ac_word=$2 4626{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4627$as_echo_n "checking for $ac_word... " >&6; } 4628if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4629 $as_echo_n "(cached) " >&6 4630else 4631 if test -n "$OBJDUMP"; then 4632 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4633else 4634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4635for as_dir in $PATH 4636do 4637 IFS=$as_save_IFS 4638 test -z "$as_dir" && as_dir=. 4639 for ac_exec_ext in '' $ac_executable_extensions; do 4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4641 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4643 break 2 4644 fi 4645done 4646done 4647IFS=$as_save_IFS 4648 4649fi 4650fi 4651OBJDUMP=$ac_cv_prog_OBJDUMP 4652if test -n "$OBJDUMP"; then 4653 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4654$as_echo "$OBJDUMP" >&6; } 4655else 4656 { $as_echo "$as_me:$LINENO: result: no" >&5 4657$as_echo "no" >&6; } 4658fi 4659 4660 4661fi 4662if test -z "$ac_cv_prog_OBJDUMP"; then 4663 ac_ct_OBJDUMP=$OBJDUMP 4664 # Extract the first word of "objdump", so it can be a program name with args. 4665set dummy objdump; ac_word=$2 4666{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4667$as_echo_n "checking for $ac_word... " >&6; } 4668if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4669 $as_echo_n "(cached) " >&6 4670else 4671 if test -n "$ac_ct_OBJDUMP"; then 4672 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4673else 4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4675for as_dir in $PATH 4676do 4677 IFS=$as_save_IFS 4678 test -z "$as_dir" && as_dir=. 4679 for ac_exec_ext in '' $ac_executable_extensions; do 4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4681 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4683 break 2 4684 fi 4685done 4686done 4687IFS=$as_save_IFS 4688 4689fi 4690fi 4691ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4692if test -n "$ac_ct_OBJDUMP"; then 4693 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4694$as_echo "$ac_ct_OBJDUMP" >&6; } 4695else 4696 { $as_echo "$as_me:$LINENO: result: no" >&5 4697$as_echo "no" >&6; } 4698fi 4699 4700 if test "x$ac_ct_OBJDUMP" = x; then 4701 OBJDUMP="false" 4702 else 4703 case $cross_compiling:$ac_tool_warned in 4704yes:) 4705{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4707ac_tool_warned=yes ;; 4708esac 4709 OBJDUMP=$ac_ct_OBJDUMP 4710 fi 4711else 4712 OBJDUMP="$ac_cv_prog_OBJDUMP" 4713fi 4714 4715test -z "$OBJDUMP" && OBJDUMP=objdump 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4726$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4727if test "${lt_cv_deplibs_check_method+set}" = set; then 4728 $as_echo_n "(cached) " >&6 4729else 4730 lt_cv_file_magic_cmd='$MAGIC_CMD' 4731lt_cv_file_magic_test_file= 4732lt_cv_deplibs_check_method='unknown' 4733# Need to set the preceding variable on all platforms that support 4734# interlibrary dependencies. 4735# 'none' -- dependencies not supported. 4736# `unknown' -- same as none, but documents that we really don't know. 4737# 'pass_all' -- all dependencies passed with no checks. 4738# 'test_compile' -- check by making test program. 4739# 'file_magic [[regex]]' -- check by looking for files in library path 4740# which responds to the $file_magic_cmd with a given extended regex. 4741# If you have `file' or equivalent on your system and you're not sure 4742# whether `pass_all' will *always* work, you probably want this one. 4743 4744case $host_os in 4745aix[4-9]*) 4746 lt_cv_deplibs_check_method=pass_all 4747 ;; 4748 4749beos*) 4750 lt_cv_deplibs_check_method=pass_all 4751 ;; 4752 4753bsdi[45]*) 4754 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4755 lt_cv_file_magic_cmd='/usr/bin/file -L' 4756 lt_cv_file_magic_test_file=/shlib/libc.so 4757 ;; 4758 4759cygwin*) 4760 # func_win32_libid is a shell function defined in ltmain.sh 4761 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4762 lt_cv_file_magic_cmd='func_win32_libid' 4763 ;; 4764 4765mingw* | pw32*) 4766 # Base MSYS/MinGW do not provide the 'file' command needed by 4767 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4768 # unless we find 'file', for example because we are cross-compiling. 4769 if ( file / ) >/dev/null 2>&1; then 4770 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4771 lt_cv_file_magic_cmd='func_win32_libid' 4772 else 4773 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4774 lt_cv_file_magic_cmd='$OBJDUMP -f' 4775 fi 4776 ;; 4777 4778cegcc) 4779 # use the weaker test based on 'objdump'. See mingw*. 4780 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4781 lt_cv_file_magic_cmd='$OBJDUMP -f' 4782 ;; 4783 4784darwin* | rhapsody*) 4785 lt_cv_deplibs_check_method=pass_all 4786 ;; 4787 4788freebsd* | dragonfly*) 4789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4790 case $host_cpu in 4791 i*86 ) 4792 # Not sure whether the presence of OpenBSD here was a mistake. 4793 # Let's accept both of them until this is cleared up. 4794 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4795 lt_cv_file_magic_cmd=/usr/bin/file 4796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4797 ;; 4798 esac 4799 else 4800 lt_cv_deplibs_check_method=pass_all 4801 fi 4802 ;; 4803 4804gnu*) 4805 lt_cv_deplibs_check_method=pass_all 4806 ;; 4807 4808hpux10.20* | hpux11*) 4809 lt_cv_file_magic_cmd=/usr/bin/file 4810 case $host_cpu in 4811 ia64*) 4812 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4813 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4814 ;; 4815 hppa*64*) 4816 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]' 4817 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4818 ;; 4819 *) 4820 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4821 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4822 ;; 4823 esac 4824 ;; 4825 4826interix[3-9]*) 4827 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4829 ;; 4830 4831irix5* | irix6* | nonstopux*) 4832 case $LD in 4833 *-32|*"-32 ") libmagic=32-bit;; 4834 *-n32|*"-n32 ") libmagic=N32;; 4835 *-64|*"-64 ") libmagic=64-bit;; 4836 *) libmagic=never-match;; 4837 esac 4838 lt_cv_deplibs_check_method=pass_all 4839 ;; 4840 4841# This must be Linux ELF. 4842linux* | k*bsd*-gnu) 4843 lt_cv_deplibs_check_method=pass_all 4844 ;; 4845 4846netbsd* | netbsdelf*-gnu) 4847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4849 else 4850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4851 fi 4852 ;; 4853 4854newos6*) 4855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4856 lt_cv_file_magic_cmd=/usr/bin/file 4857 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4858 ;; 4859 4860*nto* | *qnx*) 4861 lt_cv_deplibs_check_method=pass_all 4862 ;; 4863 4864openbsd*) 4865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4867 else 4868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4869 fi 4870 ;; 4871 4872osf3* | osf4* | osf5*) 4873 lt_cv_deplibs_check_method=pass_all 4874 ;; 4875 4876rdos*) 4877 lt_cv_deplibs_check_method=pass_all 4878 ;; 4879 4880solaris*) 4881 lt_cv_deplibs_check_method=pass_all 4882 ;; 4883 4884sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4885 lt_cv_deplibs_check_method=pass_all 4886 ;; 4887 4888sysv4 | sysv4.3*) 4889 case $host_vendor in 4890 motorola) 4891 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]' 4892 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4893 ;; 4894 ncr) 4895 lt_cv_deplibs_check_method=pass_all 4896 ;; 4897 sequent) 4898 lt_cv_file_magic_cmd='/bin/file' 4899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4900 ;; 4901 sni) 4902 lt_cv_file_magic_cmd='/bin/file' 4903 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4904 lt_cv_file_magic_test_file=/lib/libc.so 4905 ;; 4906 siemens) 4907 lt_cv_deplibs_check_method=pass_all 4908 ;; 4909 pc) 4910 lt_cv_deplibs_check_method=pass_all 4911 ;; 4912 esac 4913 ;; 4914 4915tpf*) 4916 lt_cv_deplibs_check_method=pass_all 4917 ;; 4918esac 4919 4920fi 4921{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4922$as_echo "$lt_cv_deplibs_check_method" >&6; } 4923file_magic_cmd=$lt_cv_file_magic_cmd 4924deplibs_check_method=$lt_cv_deplibs_check_method 4925test -z "$deplibs_check_method" && deplibs_check_method=unknown 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938if test -n "$ac_tool_prefix"; then 4939 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4940set dummy ${ac_tool_prefix}ar; ac_word=$2 4941{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4942$as_echo_n "checking for $ac_word... " >&6; } 4943if test "${ac_cv_prog_AR+set}" = set; then 4944 $as_echo_n "(cached) " >&6 4945else 4946 if test -n "$AR"; then 4947 ac_cv_prog_AR="$AR" # Let the user override the test. 4948else 4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4950for as_dir in $PATH 4951do 4952 IFS=$as_save_IFS 4953 test -z "$as_dir" && as_dir=. 4954 for ac_exec_ext in '' $ac_executable_extensions; do 4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4956 ac_cv_prog_AR="${ac_tool_prefix}ar" 4957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4958 break 2 4959 fi 4960done 4961done 4962IFS=$as_save_IFS 4963 4964fi 4965fi 4966AR=$ac_cv_prog_AR 4967if test -n "$AR"; then 4968 { $as_echo "$as_me:$LINENO: result: $AR" >&5 4969$as_echo "$AR" >&6; } 4970else 4971 { $as_echo "$as_me:$LINENO: result: no" >&5 4972$as_echo "no" >&6; } 4973fi 4974 4975 4976fi 4977if test -z "$ac_cv_prog_AR"; then 4978 ac_ct_AR=$AR 4979 # Extract the first word of "ar", so it can be a program name with args. 4980set dummy ar; ac_word=$2 4981{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4982$as_echo_n "checking for $ac_word... " >&6; } 4983if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4984 $as_echo_n "(cached) " >&6 4985else 4986 if test -n "$ac_ct_AR"; then 4987 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4988else 4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4990for as_dir in $PATH 4991do 4992 IFS=$as_save_IFS 4993 test -z "$as_dir" && as_dir=. 4994 for ac_exec_ext in '' $ac_executable_extensions; do 4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4996 ac_cv_prog_ac_ct_AR="ar" 4997 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4998 break 2 4999 fi 5000done 5001done 5002IFS=$as_save_IFS 5003 5004fi 5005fi 5006ac_ct_AR=$ac_cv_prog_ac_ct_AR 5007if test -n "$ac_ct_AR"; then 5008 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5009$as_echo "$ac_ct_AR" >&6; } 5010else 5011 { $as_echo "$as_me:$LINENO: result: no" >&5 5012$as_echo "no" >&6; } 5013fi 5014 5015 if test "x$ac_ct_AR" = x; then 5016 AR="false" 5017 else 5018 case $cross_compiling:$ac_tool_warned in 5019yes:) 5020{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5022ac_tool_warned=yes ;; 5023esac 5024 AR=$ac_ct_AR 5025 fi 5026else 5027 AR="$ac_cv_prog_AR" 5028fi 5029 5030test -z "$AR" && AR=ar 5031test -z "$AR_FLAGS" && AR_FLAGS=cru 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043if test -n "$ac_tool_prefix"; then 5044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5045set dummy ${ac_tool_prefix}strip; ac_word=$2 5046{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5047$as_echo_n "checking for $ac_word... " >&6; } 5048if test "${ac_cv_prog_STRIP+set}" = set; then 5049 $as_echo_n "(cached) " >&6 5050else 5051 if test -n "$STRIP"; then 5052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5053else 5054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5055for as_dir in $PATH 5056do 5057 IFS=$as_save_IFS 5058 test -z "$as_dir" && as_dir=. 5059 for ac_exec_ext in '' $ac_executable_extensions; do 5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5061 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5062 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5063 break 2 5064 fi 5065done 5066done 5067IFS=$as_save_IFS 5068 5069fi 5070fi 5071STRIP=$ac_cv_prog_STRIP 5072if test -n "$STRIP"; then 5073 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5074$as_echo "$STRIP" >&6; } 5075else 5076 { $as_echo "$as_me:$LINENO: result: no" >&5 5077$as_echo "no" >&6; } 5078fi 5079 5080 5081fi 5082if test -z "$ac_cv_prog_STRIP"; then 5083 ac_ct_STRIP=$STRIP 5084 # Extract the first word of "strip", so it can be a program name with args. 5085set dummy strip; ac_word=$2 5086{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5087$as_echo_n "checking for $ac_word... " >&6; } 5088if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5089 $as_echo_n "(cached) " >&6 5090else 5091 if test -n "$ac_ct_STRIP"; then 5092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5093else 5094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5095for as_dir in $PATH 5096do 5097 IFS=$as_save_IFS 5098 test -z "$as_dir" && as_dir=. 5099 for ac_exec_ext in '' $ac_executable_extensions; do 5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5101 ac_cv_prog_ac_ct_STRIP="strip" 5102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5103 break 2 5104 fi 5105done 5106done 5107IFS=$as_save_IFS 5108 5109fi 5110fi 5111ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5112if test -n "$ac_ct_STRIP"; then 5113 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5114$as_echo "$ac_ct_STRIP" >&6; } 5115else 5116 { $as_echo "$as_me:$LINENO: result: no" >&5 5117$as_echo "no" >&6; } 5118fi 5119 5120 if test "x$ac_ct_STRIP" = x; then 5121 STRIP=":" 5122 else 5123 case $cross_compiling:$ac_tool_warned in 5124yes:) 5125{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5127ac_tool_warned=yes ;; 5128esac 5129 STRIP=$ac_ct_STRIP 5130 fi 5131else 5132 STRIP="$ac_cv_prog_STRIP" 5133fi 5134 5135test -z "$STRIP" && STRIP=: 5136 5137 5138 5139 5140 5141 5142if test -n "$ac_tool_prefix"; then 5143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5144set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5146$as_echo_n "checking for $ac_word... " >&6; } 5147if test "${ac_cv_prog_RANLIB+set}" = set; then 5148 $as_echo_n "(cached) " >&6 5149else 5150 if test -n "$RANLIB"; then 5151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5152else 5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5154for as_dir in $PATH 5155do 5156 IFS=$as_save_IFS 5157 test -z "$as_dir" && as_dir=. 5158 for ac_exec_ext in '' $ac_executable_extensions; do 5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5162 break 2 5163 fi 5164done 5165done 5166IFS=$as_save_IFS 5167 5168fi 5169fi 5170RANLIB=$ac_cv_prog_RANLIB 5171if test -n "$RANLIB"; then 5172 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5173$as_echo "$RANLIB" >&6; } 5174else 5175 { $as_echo "$as_me:$LINENO: result: no" >&5 5176$as_echo "no" >&6; } 5177fi 5178 5179 5180fi 5181if test -z "$ac_cv_prog_RANLIB"; then 5182 ac_ct_RANLIB=$RANLIB 5183 # Extract the first word of "ranlib", so it can be a program name with args. 5184set dummy ranlib; ac_word=$2 5185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5186$as_echo_n "checking for $ac_word... " >&6; } 5187if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5188 $as_echo_n "(cached) " >&6 5189else 5190 if test -n "$ac_ct_RANLIB"; then 5191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5192else 5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5194for as_dir in $PATH 5195do 5196 IFS=$as_save_IFS 5197 test -z "$as_dir" && as_dir=. 5198 for ac_exec_ext in '' $ac_executable_extensions; do 5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5200 ac_cv_prog_ac_ct_RANLIB="ranlib" 5201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5202 break 2 5203 fi 5204done 5205done 5206IFS=$as_save_IFS 5207 5208fi 5209fi 5210ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5211if test -n "$ac_ct_RANLIB"; then 5212 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5213$as_echo "$ac_ct_RANLIB" >&6; } 5214else 5215 { $as_echo "$as_me:$LINENO: result: no" >&5 5216$as_echo "no" >&6; } 5217fi 5218 5219 if test "x$ac_ct_RANLIB" = x; then 5220 RANLIB=":" 5221 else 5222 case $cross_compiling:$ac_tool_warned in 5223yes:) 5224{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5226ac_tool_warned=yes ;; 5227esac 5228 RANLIB=$ac_ct_RANLIB 5229 fi 5230else 5231 RANLIB="$ac_cv_prog_RANLIB" 5232fi 5233 5234test -z "$RANLIB" && RANLIB=: 5235 5236 5237 5238 5239 5240 5241# Determine commands to create old-style static archives. 5242old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5243old_postinstall_cmds='chmod 644 $oldlib' 5244old_postuninstall_cmds= 5245 5246if test -n "$RANLIB"; then 5247 case $host_os in 5248 openbsd*) 5249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5250 ;; 5251 *) 5252 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5253 ;; 5254 esac 5255 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5256fi 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291# If no C compiler was specified, use CC. 5292LTCC=${LTCC-"$CC"} 5293 5294# If no C compiler flags were specified, use CFLAGS. 5295LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5296 5297# Allow CC to be a program name with arguments. 5298compiler=$CC 5299 5300 5301# Check for command to grab the raw symbol name followed by C symbol from nm. 5302{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5303$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5304if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5305 $as_echo_n "(cached) " >&6 5306else 5307 5308# These are sane defaults that work on at least a few old systems. 5309# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5310 5311# Character class describing NM global symbol codes. 5312symcode='[BCDEGRST]' 5313 5314# Regexp to match symbols that can be accessed directly from C. 5315sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5316 5317# Define system-specific variables. 5318case $host_os in 5319aix*) 5320 symcode='[BCDT]' 5321 ;; 5322cygwin* | mingw* | pw32* | cegcc*) 5323 symcode='[ABCDGISTW]' 5324 ;; 5325hpux*) 5326 if test "$host_cpu" = ia64; then 5327 symcode='[ABCDEGRST]' 5328 fi 5329 ;; 5330irix* | nonstopux*) 5331 symcode='[BCDEGRST]' 5332 ;; 5333osf*) 5334 symcode='[BCDEGQRST]' 5335 ;; 5336solaris*) 5337 symcode='[BDRT]' 5338 ;; 5339sco3.2v5*) 5340 symcode='[DT]' 5341 ;; 5342sysv4.2uw2*) 5343 symcode='[DT]' 5344 ;; 5345sysv5* | sco5v6* | unixware* | OpenUNIX*) 5346 symcode='[ABDT]' 5347 ;; 5348sysv4) 5349 symcode='[DFNSTU]' 5350 ;; 5351esac 5352 5353# If we're using GNU nm, then use its standard symbol codes. 5354case `$NM -V 2>&1` in 5355*GNU* | *'with BFD'*) 5356 symcode='[ABCDGIRSTW]' ;; 5357esac 5358 5359# Transform an extracted symbol line into a proper C declaration. 5360# Some systems (esp. on ia64) link data and code symbols differently, 5361# so use this general approach. 5362lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5363 5364# Transform an extracted symbol line into symbol name and symbol address 5365lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5366lt_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'" 5367 5368# Handle CRLF in mingw tool chain 5369opt_cr= 5370case $build_os in 5371mingw*) 5372 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5373 ;; 5374esac 5375 5376# Try without a prefix underscore, then with it. 5377for ac_symprfx in "" "_"; do 5378 5379 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5380 symxfrm="\\1 $ac_symprfx\\2 \\2" 5381 5382 # Write the raw and C identifiers. 5383 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5384 # Fake it for dumpbin and say T for any non-static function 5385 # and D for any global variable. 5386 # Also find C++ and __fastcall symbols from MSVC++, 5387 # which start with @ or ?. 5388 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5389" {last_section=section; section=\$ 3};"\ 5390" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5391" \$ 0!~/External *\|/{next};"\ 5392" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5393" {if(hide[section]) next};"\ 5394" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5395" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5396" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5397" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5398" ' prfx=^$ac_symprfx" 5399 else 5400 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5401 fi 5402 5403 # Check to see that the pipe works correctly. 5404 pipe_works=no 5405 5406 rm -f conftest* 5407 cat > conftest.$ac_ext <<_LT_EOF 5408#ifdef __cplusplus 5409extern "C" { 5410#endif 5411char nm_test_var; 5412void nm_test_func(void); 5413void nm_test_func(void){} 5414#ifdef __cplusplus 5415} 5416#endif 5417int main(){nm_test_var='a';nm_test_func();return(0);} 5418_LT_EOF 5419 5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5421 (eval $ac_compile) 2>&5 5422 ac_status=$? 5423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5424 (exit $ac_status); }; then 5425 # Now try to grab the symbols. 5426 nlist=conftest.nm 5427 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5428 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5429 ac_status=$? 5430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5431 (exit $ac_status); } && test -s "$nlist"; then 5432 # Try sorting and uniquifying the output. 5433 if sort "$nlist" | uniq > "$nlist"T; then 5434 mv -f "$nlist"T "$nlist" 5435 else 5436 rm -f "$nlist"T 5437 fi 5438 5439 # Make sure that we snagged all the symbols we need. 5440 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5441 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5442 cat <<_LT_EOF > conftest.$ac_ext 5443#ifdef __cplusplus 5444extern "C" { 5445#endif 5446 5447_LT_EOF 5448 # Now generate the symbol file. 5449 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5450 5451 cat <<_LT_EOF >> conftest.$ac_ext 5452 5453/* The mapping between symbol names and symbols. */ 5454const struct { 5455 const char *name; 5456 void *address; 5457} 5458lt__PROGRAM__LTX_preloaded_symbols[] = 5459{ 5460 { "@PROGRAM@", (void *) 0 }, 5461_LT_EOF 5462 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5463 cat <<\_LT_EOF >> conftest.$ac_ext 5464 {0, (void *) 0} 5465}; 5466 5467/* This works around a problem in FreeBSD linker */ 5468#ifdef FREEBSD_WORKAROUND 5469static const void *lt_preloaded_setup() { 5470 return lt__PROGRAM__LTX_preloaded_symbols; 5471} 5472#endif 5473 5474#ifdef __cplusplus 5475} 5476#endif 5477_LT_EOF 5478 # Now try linking the two files. 5479 mv conftest.$ac_objext conftstm.$ac_objext 5480 lt_save_LIBS="$LIBS" 5481 lt_save_CFLAGS="$CFLAGS" 5482 LIBS="conftstm.$ac_objext" 5483 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5485 (eval $ac_link) 2>&5 5486 ac_status=$? 5487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5488 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5489 pipe_works=yes 5490 fi 5491 LIBS="$lt_save_LIBS" 5492 CFLAGS="$lt_save_CFLAGS" 5493 else 5494 echo "cannot find nm_test_func in $nlist" >&5 5495 fi 5496 else 5497 echo "cannot find nm_test_var in $nlist" >&5 5498 fi 5499 else 5500 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5501 fi 5502 else 5503 echo "$progname: failed program was:" >&5 5504 cat conftest.$ac_ext >&5 5505 fi 5506 rm -rf conftest* conftst* 5507 5508 # Do not use the global_symbol_pipe unless it works. 5509 if test "$pipe_works" = yes; then 5510 break 5511 else 5512 lt_cv_sys_global_symbol_pipe= 5513 fi 5514done 5515 5516fi 5517 5518if test -z "$lt_cv_sys_global_symbol_pipe"; then 5519 lt_cv_sys_global_symbol_to_cdecl= 5520fi 5521if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5522 { $as_echo "$as_me:$LINENO: result: failed" >&5 5523$as_echo "failed" >&6; } 5524else 5525 { $as_echo "$as_me:$LINENO: result: ok" >&5 5526$as_echo "ok" >&6; } 5527fi 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551# Check whether --enable-libtool-lock was given. 5552if test "${enable_libtool_lock+set}" = set; then 5553 enableval=$enable_libtool_lock; 5554fi 5555 5556test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5557 5558# Some flags need to be propagated to the compiler or linker for good 5559# libtool support. 5560case $host in 5561ia64-*-hpux*) 5562 # Find out which ABI we are using. 5563 echo 'int i;' > conftest.$ac_ext 5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5565 (eval $ac_compile) 2>&5 5566 ac_status=$? 5567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5568 (exit $ac_status); }; then 5569 case `/usr/bin/file conftest.$ac_objext` in 5570 *ELF-32*) 5571 HPUX_IA64_MODE="32" 5572 ;; 5573 *ELF-64*) 5574 HPUX_IA64_MODE="64" 5575 ;; 5576 esac 5577 fi 5578 rm -rf conftest* 5579 ;; 5580*-*-irix6*) 5581 # Find out which ABI we are using. 5582 echo '#line 5582 "configure"' > conftest.$ac_ext 5583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5584 (eval $ac_compile) 2>&5 5585 ac_status=$? 5586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5587 (exit $ac_status); }; then 5588 if test "$lt_cv_prog_gnu_ld" = yes; then 5589 case `/usr/bin/file conftest.$ac_objext` in 5590 *32-bit*) 5591 LD="${LD-ld} -melf32bsmip" 5592 ;; 5593 *N32*) 5594 LD="${LD-ld} -melf32bmipn32" 5595 ;; 5596 *64-bit*) 5597 LD="${LD-ld} -melf64bmip" 5598 ;; 5599 esac 5600 else 5601 case `/usr/bin/file conftest.$ac_objext` in 5602 *32-bit*) 5603 LD="${LD-ld} -32" 5604 ;; 5605 *N32*) 5606 LD="${LD-ld} -n32" 5607 ;; 5608 *64-bit*) 5609 LD="${LD-ld} -64" 5610 ;; 5611 esac 5612 fi 5613 fi 5614 rm -rf conftest* 5615 ;; 5616 5617x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5618s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5619 # Find out which ABI we are using. 5620 echo 'int i;' > conftest.$ac_ext 5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5622 (eval $ac_compile) 2>&5 5623 ac_status=$? 5624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5625 (exit $ac_status); }; then 5626 case `/usr/bin/file conftest.o` in 5627 *32-bit*) 5628 case $host in 5629 x86_64-*kfreebsd*-gnu) 5630 LD="${LD-ld} -m elf_i386_fbsd" 5631 ;; 5632 x86_64-*linux*) 5633 LD="${LD-ld} -m elf_i386" 5634 ;; 5635 ppc64-*linux*|powerpc64-*linux*) 5636 LD="${LD-ld} -m elf32ppclinux" 5637 ;; 5638 s390x-*linux*) 5639 LD="${LD-ld} -m elf_s390" 5640 ;; 5641 sparc64-*linux*) 5642 LD="${LD-ld} -m elf32_sparc" 5643 ;; 5644 esac 5645 ;; 5646 *64-bit*) 5647 case $host in 5648 x86_64-*kfreebsd*-gnu) 5649 LD="${LD-ld} -m elf_x86_64_fbsd" 5650 ;; 5651 x86_64-*linux*) 5652 LD="${LD-ld} -m elf_x86_64" 5653 ;; 5654 ppc*-*linux*|powerpc*-*linux*) 5655 LD="${LD-ld} -m elf64ppc" 5656 ;; 5657 s390*-*linux*|s390*-*tpf*) 5658 LD="${LD-ld} -m elf64_s390" 5659 ;; 5660 sparc*-*linux*) 5661 LD="${LD-ld} -m elf64_sparc" 5662 ;; 5663 esac 5664 ;; 5665 esac 5666 fi 5667 rm -rf conftest* 5668 ;; 5669 5670*-*-sco3.2v5*) 5671 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5672 SAVE_CFLAGS="$CFLAGS" 5673 CFLAGS="$CFLAGS -belf" 5674 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5675$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5676if test "${lt_cv_cc_needs_belf+set}" = set; then 5677 $as_echo_n "(cached) " >&6 5678else 5679 ac_ext=c 5680ac_cpp='$CPP $CPPFLAGS' 5681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5683ac_compiler_gnu=$ac_cv_c_compiler_gnu 5684 5685 cat >conftest.$ac_ext <<_ACEOF 5686/* confdefs.h. */ 5687_ACEOF 5688cat confdefs.h >>conftest.$ac_ext 5689cat >>conftest.$ac_ext <<_ACEOF 5690/* end confdefs.h. */ 5691 5692int 5693main () 5694{ 5695 5696 ; 5697 return 0; 5698} 5699_ACEOF 5700rm -f conftest.$ac_objext conftest$ac_exeext 5701if { (ac_try="$ac_link" 5702case "(($ac_try" in 5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5704 *) ac_try_echo=$ac_try;; 5705esac 5706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5707$as_echo "$ac_try_echo") >&5 5708 (eval "$ac_link") 2>conftest.er1 5709 ac_status=$? 5710 grep -v '^ *+' conftest.er1 >conftest.err 5711 rm -f conftest.er1 5712 cat conftest.err >&5 5713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5714 (exit $ac_status); } && { 5715 test -z "$ac_c_werror_flag" || 5716 test ! -s conftest.err 5717 } && test -s conftest$ac_exeext && { 5718 test "$cross_compiling" = yes || 5719 $as_test_x conftest$ac_exeext 5720 }; then 5721 lt_cv_cc_needs_belf=yes 5722else 5723 $as_echo "$as_me: failed program was:" >&5 5724sed 's/^/| /' conftest.$ac_ext >&5 5725 5726 lt_cv_cc_needs_belf=no 5727fi 5728 5729rm -rf conftest.dSYM 5730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5731 conftest$ac_exeext conftest.$ac_ext 5732 ac_ext=c 5733ac_cpp='$CPP $CPPFLAGS' 5734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5736ac_compiler_gnu=$ac_cv_c_compiler_gnu 5737 5738fi 5739{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5740$as_echo "$lt_cv_cc_needs_belf" >&6; } 5741 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5742 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5743 CFLAGS="$SAVE_CFLAGS" 5744 fi 5745 ;; 5746sparc*-*solaris*) 5747 # Find out which ABI we are using. 5748 echo 'int i;' > conftest.$ac_ext 5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5750 (eval $ac_compile) 2>&5 5751 ac_status=$? 5752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5753 (exit $ac_status); }; then 5754 case `/usr/bin/file conftest.o` in 5755 *64-bit*) 5756 case $lt_cv_prog_gnu_ld in 5757 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5758 *) 5759 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5760 LD="${LD-ld} -64" 5761 fi 5762 ;; 5763 esac 5764 ;; 5765 esac 5766 fi 5767 rm -rf conftest* 5768 ;; 5769esac 5770 5771need_locks="$enable_libtool_lock" 5772 5773 5774 case $host_os in 5775 rhapsody* | darwin*) 5776 if test -n "$ac_tool_prefix"; then 5777 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5778set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5779{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5780$as_echo_n "checking for $ac_word... " >&6; } 5781if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5782 $as_echo_n "(cached) " >&6 5783else 5784 if test -n "$DSYMUTIL"; then 5785 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5786else 5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5788for as_dir in $PATH 5789do 5790 IFS=$as_save_IFS 5791 test -z "$as_dir" && as_dir=. 5792 for ac_exec_ext in '' $ac_executable_extensions; do 5793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5794 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5796 break 2 5797 fi 5798done 5799done 5800IFS=$as_save_IFS 5801 5802fi 5803fi 5804DSYMUTIL=$ac_cv_prog_DSYMUTIL 5805if test -n "$DSYMUTIL"; then 5806 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5807$as_echo "$DSYMUTIL" >&6; } 5808else 5809 { $as_echo "$as_me:$LINENO: result: no" >&5 5810$as_echo "no" >&6; } 5811fi 5812 5813 5814fi 5815if test -z "$ac_cv_prog_DSYMUTIL"; then 5816 ac_ct_DSYMUTIL=$DSYMUTIL 5817 # Extract the first word of "dsymutil", so it can be a program name with args. 5818set dummy dsymutil; ac_word=$2 5819{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5820$as_echo_n "checking for $ac_word... " >&6; } 5821if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5822 $as_echo_n "(cached) " >&6 5823else 5824 if test -n "$ac_ct_DSYMUTIL"; then 5825 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5826else 5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5828for as_dir in $PATH 5829do 5830 IFS=$as_save_IFS 5831 test -z "$as_dir" && as_dir=. 5832 for ac_exec_ext in '' $ac_executable_extensions; do 5833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5834 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5836 break 2 5837 fi 5838done 5839done 5840IFS=$as_save_IFS 5841 5842fi 5843fi 5844ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5845if test -n "$ac_ct_DSYMUTIL"; then 5846 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5847$as_echo "$ac_ct_DSYMUTIL" >&6; } 5848else 5849 { $as_echo "$as_me:$LINENO: result: no" >&5 5850$as_echo "no" >&6; } 5851fi 5852 5853 if test "x$ac_ct_DSYMUTIL" = x; then 5854 DSYMUTIL=":" 5855 else 5856 case $cross_compiling:$ac_tool_warned in 5857yes:) 5858{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5860ac_tool_warned=yes ;; 5861esac 5862 DSYMUTIL=$ac_ct_DSYMUTIL 5863 fi 5864else 5865 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5866fi 5867 5868 if test -n "$ac_tool_prefix"; then 5869 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5870set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5871{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5872$as_echo_n "checking for $ac_word... " >&6; } 5873if test "${ac_cv_prog_NMEDIT+set}" = set; then 5874 $as_echo_n "(cached) " >&6 5875else 5876 if test -n "$NMEDIT"; then 5877 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5878else 5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5880for as_dir in $PATH 5881do 5882 IFS=$as_save_IFS 5883 test -z "$as_dir" && as_dir=. 5884 for ac_exec_ext in '' $ac_executable_extensions; do 5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5886 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5888 break 2 5889 fi 5890done 5891done 5892IFS=$as_save_IFS 5893 5894fi 5895fi 5896NMEDIT=$ac_cv_prog_NMEDIT 5897if test -n "$NMEDIT"; then 5898 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5899$as_echo "$NMEDIT" >&6; } 5900else 5901 { $as_echo "$as_me:$LINENO: result: no" >&5 5902$as_echo "no" >&6; } 5903fi 5904 5905 5906fi 5907if test -z "$ac_cv_prog_NMEDIT"; then 5908 ac_ct_NMEDIT=$NMEDIT 5909 # Extract the first word of "nmedit", so it can be a program name with args. 5910set dummy nmedit; ac_word=$2 5911{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5912$as_echo_n "checking for $ac_word... " >&6; } 5913if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5914 $as_echo_n "(cached) " >&6 5915else 5916 if test -n "$ac_ct_NMEDIT"; then 5917 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5918else 5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5920for as_dir in $PATH 5921do 5922 IFS=$as_save_IFS 5923 test -z "$as_dir" && as_dir=. 5924 for ac_exec_ext in '' $ac_executable_extensions; do 5925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5926 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5928 break 2 5929 fi 5930done 5931done 5932IFS=$as_save_IFS 5933 5934fi 5935fi 5936ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5937if test -n "$ac_ct_NMEDIT"; then 5938 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 5939$as_echo "$ac_ct_NMEDIT" >&6; } 5940else 5941 { $as_echo "$as_me:$LINENO: result: no" >&5 5942$as_echo "no" >&6; } 5943fi 5944 5945 if test "x$ac_ct_NMEDIT" = x; then 5946 NMEDIT=":" 5947 else 5948 case $cross_compiling:$ac_tool_warned in 5949yes:) 5950{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5952ac_tool_warned=yes ;; 5953esac 5954 NMEDIT=$ac_ct_NMEDIT 5955 fi 5956else 5957 NMEDIT="$ac_cv_prog_NMEDIT" 5958fi 5959 5960 if test -n "$ac_tool_prefix"; then 5961 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5962set dummy ${ac_tool_prefix}lipo; ac_word=$2 5963{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5964$as_echo_n "checking for $ac_word... " >&6; } 5965if test "${ac_cv_prog_LIPO+set}" = set; then 5966 $as_echo_n "(cached) " >&6 5967else 5968 if test -n "$LIPO"; then 5969 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5970else 5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5972for as_dir in $PATH 5973do 5974 IFS=$as_save_IFS 5975 test -z "$as_dir" && as_dir=. 5976 for ac_exec_ext in '' $ac_executable_extensions; do 5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5978 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5979 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5980 break 2 5981 fi 5982done 5983done 5984IFS=$as_save_IFS 5985 5986fi 5987fi 5988LIPO=$ac_cv_prog_LIPO 5989if test -n "$LIPO"; then 5990 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 5991$as_echo "$LIPO" >&6; } 5992else 5993 { $as_echo "$as_me:$LINENO: result: no" >&5 5994$as_echo "no" >&6; } 5995fi 5996 5997 5998fi 5999if test -z "$ac_cv_prog_LIPO"; then 6000 ac_ct_LIPO=$LIPO 6001 # Extract the first word of "lipo", so it can be a program name with args. 6002set dummy lipo; ac_word=$2 6003{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6004$as_echo_n "checking for $ac_word... " >&6; } 6005if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6006 $as_echo_n "(cached) " >&6 6007else 6008 if test -n "$ac_ct_LIPO"; then 6009 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6010else 6011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6012for as_dir in $PATH 6013do 6014 IFS=$as_save_IFS 6015 test -z "$as_dir" && as_dir=. 6016 for ac_exec_ext in '' $ac_executable_extensions; do 6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6018 ac_cv_prog_ac_ct_LIPO="lipo" 6019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6020 break 2 6021 fi 6022done 6023done 6024IFS=$as_save_IFS 6025 6026fi 6027fi 6028ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6029if test -n "$ac_ct_LIPO"; then 6030 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6031$as_echo "$ac_ct_LIPO" >&6; } 6032else 6033 { $as_echo "$as_me:$LINENO: result: no" >&5 6034$as_echo "no" >&6; } 6035fi 6036 6037 if test "x$ac_ct_LIPO" = x; then 6038 LIPO=":" 6039 else 6040 case $cross_compiling:$ac_tool_warned in 6041yes:) 6042{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6044ac_tool_warned=yes ;; 6045esac 6046 LIPO=$ac_ct_LIPO 6047 fi 6048else 6049 LIPO="$ac_cv_prog_LIPO" 6050fi 6051 6052 if test -n "$ac_tool_prefix"; then 6053 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6054set dummy ${ac_tool_prefix}otool; ac_word=$2 6055{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6056$as_echo_n "checking for $ac_word... " >&6; } 6057if test "${ac_cv_prog_OTOOL+set}" = set; then 6058 $as_echo_n "(cached) " >&6 6059else 6060 if test -n "$OTOOL"; then 6061 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6062else 6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6064for as_dir in $PATH 6065do 6066 IFS=$as_save_IFS 6067 test -z "$as_dir" && as_dir=. 6068 for ac_exec_ext in '' $ac_executable_extensions; do 6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6070 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6072 break 2 6073 fi 6074done 6075done 6076IFS=$as_save_IFS 6077 6078fi 6079fi 6080OTOOL=$ac_cv_prog_OTOOL 6081if test -n "$OTOOL"; then 6082 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6083$as_echo "$OTOOL" >&6; } 6084else 6085 { $as_echo "$as_me:$LINENO: result: no" >&5 6086$as_echo "no" >&6; } 6087fi 6088 6089 6090fi 6091if test -z "$ac_cv_prog_OTOOL"; then 6092 ac_ct_OTOOL=$OTOOL 6093 # Extract the first word of "otool", so it can be a program name with args. 6094set dummy otool; ac_word=$2 6095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6096$as_echo_n "checking for $ac_word... " >&6; } 6097if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6098 $as_echo_n "(cached) " >&6 6099else 6100 if test -n "$ac_ct_OTOOL"; then 6101 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6102else 6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104for as_dir in $PATH 6105do 6106 IFS=$as_save_IFS 6107 test -z "$as_dir" && as_dir=. 6108 for ac_exec_ext in '' $ac_executable_extensions; do 6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6110 ac_cv_prog_ac_ct_OTOOL="otool" 6111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6112 break 2 6113 fi 6114done 6115done 6116IFS=$as_save_IFS 6117 6118fi 6119fi 6120ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6121if test -n "$ac_ct_OTOOL"; then 6122 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6123$as_echo "$ac_ct_OTOOL" >&6; } 6124else 6125 { $as_echo "$as_me:$LINENO: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128 6129 if test "x$ac_ct_OTOOL" = x; then 6130 OTOOL=":" 6131 else 6132 case $cross_compiling:$ac_tool_warned in 6133yes:) 6134{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6136ac_tool_warned=yes ;; 6137esac 6138 OTOOL=$ac_ct_OTOOL 6139 fi 6140else 6141 OTOOL="$ac_cv_prog_OTOOL" 6142fi 6143 6144 if test -n "$ac_tool_prefix"; then 6145 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6146set dummy ${ac_tool_prefix}otool64; ac_word=$2 6147{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6148$as_echo_n "checking for $ac_word... " >&6; } 6149if test "${ac_cv_prog_OTOOL64+set}" = set; then 6150 $as_echo_n "(cached) " >&6 6151else 6152 if test -n "$OTOOL64"; then 6153 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6154else 6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6156for as_dir in $PATH 6157do 6158 IFS=$as_save_IFS 6159 test -z "$as_dir" && as_dir=. 6160 for ac_exec_ext in '' $ac_executable_extensions; do 6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6162 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6164 break 2 6165 fi 6166done 6167done 6168IFS=$as_save_IFS 6169 6170fi 6171fi 6172OTOOL64=$ac_cv_prog_OTOOL64 6173if test -n "$OTOOL64"; then 6174 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6175$as_echo "$OTOOL64" >&6; } 6176else 6177 { $as_echo "$as_me:$LINENO: result: no" >&5 6178$as_echo "no" >&6; } 6179fi 6180 6181 6182fi 6183if test -z "$ac_cv_prog_OTOOL64"; then 6184 ac_ct_OTOOL64=$OTOOL64 6185 # Extract the first word of "otool64", so it can be a program name with args. 6186set dummy otool64; ac_word=$2 6187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6188$as_echo_n "checking for $ac_word... " >&6; } 6189if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6190 $as_echo_n "(cached) " >&6 6191else 6192 if test -n "$ac_ct_OTOOL64"; then 6193 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 test -z "$as_dir" && as_dir=. 6200 for ac_exec_ext in '' $ac_executable_extensions; do 6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6202 ac_cv_prog_ac_ct_OTOOL64="otool64" 6203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6204 break 2 6205 fi 6206done 6207done 6208IFS=$as_save_IFS 6209 6210fi 6211fi 6212ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6213if test -n "$ac_ct_OTOOL64"; then 6214 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6215$as_echo "$ac_ct_OTOOL64" >&6; } 6216else 6217 { $as_echo "$as_me:$LINENO: result: no" >&5 6218$as_echo "no" >&6; } 6219fi 6220 6221 if test "x$ac_ct_OTOOL64" = x; then 6222 OTOOL64=":" 6223 else 6224 case $cross_compiling:$ac_tool_warned in 6225yes:) 6226{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6228ac_tool_warned=yes ;; 6229esac 6230 OTOOL64=$ac_ct_OTOOL64 6231 fi 6232else 6233 OTOOL64="$ac_cv_prog_OTOOL64" 6234fi 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6263$as_echo_n "checking for -single_module linker flag... " >&6; } 6264if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6265 $as_echo_n "(cached) " >&6 6266else 6267 lt_cv_apple_cc_single_mod=no 6268 if test -z "${LT_MULTI_MODULE}"; then 6269 # By default we will add the -single_module flag. You can override 6270 # by either setting the environment variable LT_MULTI_MODULE 6271 # non-empty at configure time, or by adding -multi_module to the 6272 # link flags. 6273 rm -rf libconftest.dylib* 6274 echo "int foo(void){return 1;}" > conftest.c 6275 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6276-dynamiclib -Wl,-single_module conftest.c" >&5 6277 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6278 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6279 _lt_result=$? 6280 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6281 lt_cv_apple_cc_single_mod=yes 6282 else 6283 cat conftest.err >&5 6284 fi 6285 rm -rf libconftest.dylib* 6286 rm -f conftest.* 6287 fi 6288fi 6289{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6290$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6291 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6292$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6293if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6294 $as_echo_n "(cached) " >&6 6295else 6296 lt_cv_ld_exported_symbols_list=no 6297 save_LDFLAGS=$LDFLAGS 6298 echo "_main" > conftest.sym 6299 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6300 cat >conftest.$ac_ext <<_ACEOF 6301/* confdefs.h. */ 6302_ACEOF 6303cat confdefs.h >>conftest.$ac_ext 6304cat >>conftest.$ac_ext <<_ACEOF 6305/* end confdefs.h. */ 6306 6307int 6308main () 6309{ 6310 6311 ; 6312 return 0; 6313} 6314_ACEOF 6315rm -f conftest.$ac_objext conftest$ac_exeext 6316if { (ac_try="$ac_link" 6317case "(($ac_try" in 6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6319 *) ac_try_echo=$ac_try;; 6320esac 6321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6322$as_echo "$ac_try_echo") >&5 6323 (eval "$ac_link") 2>conftest.er1 6324 ac_status=$? 6325 grep -v '^ *+' conftest.er1 >conftest.err 6326 rm -f conftest.er1 6327 cat conftest.err >&5 6328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6329 (exit $ac_status); } && { 6330 test -z "$ac_c_werror_flag" || 6331 test ! -s conftest.err 6332 } && test -s conftest$ac_exeext && { 6333 test "$cross_compiling" = yes || 6334 $as_test_x conftest$ac_exeext 6335 }; then 6336 lt_cv_ld_exported_symbols_list=yes 6337else 6338 $as_echo "$as_me: failed program was:" >&5 6339sed 's/^/| /' conftest.$ac_ext >&5 6340 6341 lt_cv_ld_exported_symbols_list=no 6342fi 6343 6344rm -rf conftest.dSYM 6345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6346 conftest$ac_exeext conftest.$ac_ext 6347 LDFLAGS="$save_LDFLAGS" 6348 6349fi 6350{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6351$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6352 case $host_os in 6353 rhapsody* | darwin1.[012]) 6354 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6355 darwin1.*) 6356 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6357 darwin*) # darwin 5.x on 6358 # if running on 10.5 or later, the deployment target defaults 6359 # to the OS version, if on x86, and 10.4, the deployment 6360 # target defaults to 10.4. Don't you love it? 6361 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6362 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6363 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6364 10.[012]*) 6365 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6366 10.*) 6367 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6368 esac 6369 ;; 6370 esac 6371 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6372 _lt_dar_single_mod='$single_module' 6373 fi 6374 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6375 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6376 else 6377 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6378 fi 6379 if test "$DSYMUTIL" != ":"; then 6380 _lt_dsymutil='~$DSYMUTIL $lib || :' 6381 else 6382 _lt_dsymutil= 6383 fi 6384 ;; 6385 esac 6386 6387ac_ext=c 6388ac_cpp='$CPP $CPPFLAGS' 6389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6391ac_compiler_gnu=$ac_cv_c_compiler_gnu 6392{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6393$as_echo_n "checking how to run the C preprocessor... " >&6; } 6394# On Suns, sometimes $CPP names a directory. 6395if test -n "$CPP" && test -d "$CPP"; then 6396 CPP= 6397fi 6398if test -z "$CPP"; then 6399 if test "${ac_cv_prog_CPP+set}" = set; then 6400 $as_echo_n "(cached) " >&6 6401else 6402 # Double quotes because CPP needs to be expanded 6403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6404 do 6405 ac_preproc_ok=false 6406for ac_c_preproc_warn_flag in '' yes 6407do 6408 # Use a header file that comes with gcc, so configuring glibc 6409 # with a fresh cross-compiler works. 6410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6411 # <limits.h> exists even on freestanding compilers. 6412 # On the NeXT, cc -E runs the code through the compiler's parser, 6413 # not just through cpp. "Syntax error" is here to catch this case. 6414 cat >conftest.$ac_ext <<_ACEOF 6415/* confdefs.h. */ 6416_ACEOF 6417cat confdefs.h >>conftest.$ac_ext 6418cat >>conftest.$ac_ext <<_ACEOF 6419/* end confdefs.h. */ 6420#ifdef __STDC__ 6421# include <limits.h> 6422#else 6423# include <assert.h> 6424#endif 6425 Syntax error 6426_ACEOF 6427if { (ac_try="$ac_cpp conftest.$ac_ext" 6428case "(($ac_try" in 6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6430 *) ac_try_echo=$ac_try;; 6431esac 6432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6433$as_echo "$ac_try_echo") >&5 6434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6435 ac_status=$? 6436 grep -v '^ *+' conftest.er1 >conftest.err 6437 rm -f conftest.er1 6438 cat conftest.err >&5 6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6440 (exit $ac_status); } >/dev/null && { 6441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6442 test ! -s conftest.err 6443 }; then 6444 : 6445else 6446 $as_echo "$as_me: failed program was:" >&5 6447sed 's/^/| /' conftest.$ac_ext >&5 6448 6449 # Broken: fails on valid input. 6450continue 6451fi 6452 6453rm -f conftest.err conftest.$ac_ext 6454 6455 # OK, works on sane cases. Now check whether nonexistent headers 6456 # can be detected and how. 6457 cat >conftest.$ac_ext <<_ACEOF 6458/* confdefs.h. */ 6459_ACEOF 6460cat confdefs.h >>conftest.$ac_ext 6461cat >>conftest.$ac_ext <<_ACEOF 6462/* end confdefs.h. */ 6463#include <ac_nonexistent.h> 6464_ACEOF 6465if { (ac_try="$ac_cpp conftest.$ac_ext" 6466case "(($ac_try" in 6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6468 *) ac_try_echo=$ac_try;; 6469esac 6470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6471$as_echo "$ac_try_echo") >&5 6472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6473 ac_status=$? 6474 grep -v '^ *+' conftest.er1 >conftest.err 6475 rm -f conftest.er1 6476 cat conftest.err >&5 6477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6478 (exit $ac_status); } >/dev/null && { 6479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6480 test ! -s conftest.err 6481 }; then 6482 # Broken: success on invalid input. 6483continue 6484else 6485 $as_echo "$as_me: failed program was:" >&5 6486sed 's/^/| /' conftest.$ac_ext >&5 6487 6488 # Passes both tests. 6489ac_preproc_ok=: 6490break 6491fi 6492 6493rm -f conftest.err conftest.$ac_ext 6494 6495done 6496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6497rm -f conftest.err conftest.$ac_ext 6498if $ac_preproc_ok; then 6499 break 6500fi 6501 6502 done 6503 ac_cv_prog_CPP=$CPP 6504 6505fi 6506 CPP=$ac_cv_prog_CPP 6507else 6508 ac_cv_prog_CPP=$CPP 6509fi 6510{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6511$as_echo "$CPP" >&6; } 6512ac_preproc_ok=false 6513for ac_c_preproc_warn_flag in '' yes 6514do 6515 # Use a header file that comes with gcc, so configuring glibc 6516 # with a fresh cross-compiler works. 6517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6518 # <limits.h> exists even on freestanding compilers. 6519 # On the NeXT, cc -E runs the code through the compiler's parser, 6520 # not just through cpp. "Syntax error" is here to catch this case. 6521 cat >conftest.$ac_ext <<_ACEOF 6522/* confdefs.h. */ 6523_ACEOF 6524cat confdefs.h >>conftest.$ac_ext 6525cat >>conftest.$ac_ext <<_ACEOF 6526/* end confdefs.h. */ 6527#ifdef __STDC__ 6528# include <limits.h> 6529#else 6530# include <assert.h> 6531#endif 6532 Syntax error 6533_ACEOF 6534if { (ac_try="$ac_cpp conftest.$ac_ext" 6535case "(($ac_try" in 6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6537 *) ac_try_echo=$ac_try;; 6538esac 6539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6540$as_echo "$ac_try_echo") >&5 6541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6542 ac_status=$? 6543 grep -v '^ *+' conftest.er1 >conftest.err 6544 rm -f conftest.er1 6545 cat conftest.err >&5 6546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6547 (exit $ac_status); } >/dev/null && { 6548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6549 test ! -s conftest.err 6550 }; then 6551 : 6552else 6553 $as_echo "$as_me: failed program was:" >&5 6554sed 's/^/| /' conftest.$ac_ext >&5 6555 6556 # Broken: fails on valid input. 6557continue 6558fi 6559 6560rm -f conftest.err conftest.$ac_ext 6561 6562 # OK, works on sane cases. Now check whether nonexistent headers 6563 # can be detected and how. 6564 cat >conftest.$ac_ext <<_ACEOF 6565/* confdefs.h. */ 6566_ACEOF 6567cat confdefs.h >>conftest.$ac_ext 6568cat >>conftest.$ac_ext <<_ACEOF 6569/* end confdefs.h. */ 6570#include <ac_nonexistent.h> 6571_ACEOF 6572if { (ac_try="$ac_cpp conftest.$ac_ext" 6573case "(($ac_try" in 6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6575 *) ac_try_echo=$ac_try;; 6576esac 6577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6578$as_echo "$ac_try_echo") >&5 6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6580 ac_status=$? 6581 grep -v '^ *+' conftest.er1 >conftest.err 6582 rm -f conftest.er1 6583 cat conftest.err >&5 6584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6585 (exit $ac_status); } >/dev/null && { 6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6587 test ! -s conftest.err 6588 }; then 6589 # Broken: success on invalid input. 6590continue 6591else 6592 $as_echo "$as_me: failed program was:" >&5 6593sed 's/^/| /' conftest.$ac_ext >&5 6594 6595 # Passes both tests. 6596ac_preproc_ok=: 6597break 6598fi 6599 6600rm -f conftest.err conftest.$ac_ext 6601 6602done 6603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6604rm -f conftest.err conftest.$ac_ext 6605if $ac_preproc_ok; then 6606 : 6607else 6608 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6610{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6611See \`config.log' for more details." >&5 6612$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6613See \`config.log' for more details." >&2;} 6614 { (exit 1); exit 1; }; }; } 6615fi 6616 6617ac_ext=c 6618ac_cpp='$CPP $CPPFLAGS' 6619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6621ac_compiler_gnu=$ac_cv_c_compiler_gnu 6622 6623 6624{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6625$as_echo_n "checking for ANSI C header files... " >&6; } 6626if test "${ac_cv_header_stdc+set}" = set; then 6627 $as_echo_n "(cached) " >&6 6628else 6629 cat >conftest.$ac_ext <<_ACEOF 6630/* confdefs.h. */ 6631_ACEOF 6632cat confdefs.h >>conftest.$ac_ext 6633cat >>conftest.$ac_ext <<_ACEOF 6634/* end confdefs.h. */ 6635#include <stdlib.h> 6636#include <stdarg.h> 6637#include <string.h> 6638#include <float.h> 6639 6640int 6641main () 6642{ 6643 6644 ; 6645 return 0; 6646} 6647_ACEOF 6648rm -f conftest.$ac_objext 6649if { (ac_try="$ac_compile" 6650case "(($ac_try" in 6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6652 *) ac_try_echo=$ac_try;; 6653esac 6654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6655$as_echo "$ac_try_echo") >&5 6656 (eval "$ac_compile") 2>conftest.er1 6657 ac_status=$? 6658 grep -v '^ *+' conftest.er1 >conftest.err 6659 rm -f conftest.er1 6660 cat conftest.err >&5 6661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6662 (exit $ac_status); } && { 6663 test -z "$ac_c_werror_flag" || 6664 test ! -s conftest.err 6665 } && test -s conftest.$ac_objext; then 6666 ac_cv_header_stdc=yes 6667else 6668 $as_echo "$as_me: failed program was:" >&5 6669sed 's/^/| /' conftest.$ac_ext >&5 6670 6671 ac_cv_header_stdc=no 6672fi 6673 6674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6675 6676if test $ac_cv_header_stdc = yes; then 6677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6678 cat >conftest.$ac_ext <<_ACEOF 6679/* confdefs.h. */ 6680_ACEOF 6681cat confdefs.h >>conftest.$ac_ext 6682cat >>conftest.$ac_ext <<_ACEOF 6683/* end confdefs.h. */ 6684#include <string.h> 6685 6686_ACEOF 6687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6688 $EGREP "memchr" >/dev/null 2>&1; then 6689 : 6690else 6691 ac_cv_header_stdc=no 6692fi 6693rm -f conftest* 6694 6695fi 6696 6697if test $ac_cv_header_stdc = yes; then 6698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6699 cat >conftest.$ac_ext <<_ACEOF 6700/* confdefs.h. */ 6701_ACEOF 6702cat confdefs.h >>conftest.$ac_ext 6703cat >>conftest.$ac_ext <<_ACEOF 6704/* end confdefs.h. */ 6705#include <stdlib.h> 6706 6707_ACEOF 6708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6709 $EGREP "free" >/dev/null 2>&1; then 6710 : 6711else 6712 ac_cv_header_stdc=no 6713fi 6714rm -f conftest* 6715 6716fi 6717 6718if test $ac_cv_header_stdc = yes; then 6719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6720 if test "$cross_compiling" = yes; then 6721 : 6722else 6723 cat >conftest.$ac_ext <<_ACEOF 6724/* confdefs.h. */ 6725_ACEOF 6726cat confdefs.h >>conftest.$ac_ext 6727cat >>conftest.$ac_ext <<_ACEOF 6728/* end confdefs.h. */ 6729#include <ctype.h> 6730#include <stdlib.h> 6731#if ((' ' & 0x0FF) == 0x020) 6732# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6733# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6734#else 6735# define ISLOWER(c) \ 6736 (('a' <= (c) && (c) <= 'i') \ 6737 || ('j' <= (c) && (c) <= 'r') \ 6738 || ('s' <= (c) && (c) <= 'z')) 6739# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6740#endif 6741 6742#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6743int 6744main () 6745{ 6746 int i; 6747 for (i = 0; i < 256; i++) 6748 if (XOR (islower (i), ISLOWER (i)) 6749 || toupper (i) != TOUPPER (i)) 6750 return 2; 6751 return 0; 6752} 6753_ACEOF 6754rm -f conftest$ac_exeext 6755if { (ac_try="$ac_link" 6756case "(($ac_try" in 6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6758 *) ac_try_echo=$ac_try;; 6759esac 6760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6761$as_echo "$ac_try_echo") >&5 6762 (eval "$ac_link") 2>&5 6763 ac_status=$? 6764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6766 { (case "(($ac_try" in 6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6768 *) ac_try_echo=$ac_try;; 6769esac 6770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6771$as_echo "$ac_try_echo") >&5 6772 (eval "$ac_try") 2>&5 6773 ac_status=$? 6774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6775 (exit $ac_status); }; }; then 6776 : 6777else 6778 $as_echo "$as_me: program exited with status $ac_status" >&5 6779$as_echo "$as_me: failed program was:" >&5 6780sed 's/^/| /' conftest.$ac_ext >&5 6781 6782( exit $ac_status ) 6783ac_cv_header_stdc=no 6784fi 6785rm -rf conftest.dSYM 6786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6787fi 6788 6789 6790fi 6791fi 6792{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6793$as_echo "$ac_cv_header_stdc" >&6; } 6794if test $ac_cv_header_stdc = yes; then 6795 6796cat >>confdefs.h <<\_ACEOF 6797#define STDC_HEADERS 1 6798_ACEOF 6799 6800fi 6801 6802# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6813 inttypes.h stdint.h unistd.h 6814do 6815as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6816{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6817$as_echo_n "checking for $ac_header... " >&6; } 6818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6819 $as_echo_n "(cached) " >&6 6820else 6821 cat >conftest.$ac_ext <<_ACEOF 6822/* confdefs.h. */ 6823_ACEOF 6824cat confdefs.h >>conftest.$ac_ext 6825cat >>conftest.$ac_ext <<_ACEOF 6826/* end confdefs.h. */ 6827$ac_includes_default 6828 6829#include <$ac_header> 6830_ACEOF 6831rm -f conftest.$ac_objext 6832if { (ac_try="$ac_compile" 6833case "(($ac_try" in 6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6835 *) ac_try_echo=$ac_try;; 6836esac 6837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6838$as_echo "$ac_try_echo") >&5 6839 (eval "$ac_compile") 2>conftest.er1 6840 ac_status=$? 6841 grep -v '^ *+' conftest.er1 >conftest.err 6842 rm -f conftest.er1 6843 cat conftest.err >&5 6844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6845 (exit $ac_status); } && { 6846 test -z "$ac_c_werror_flag" || 6847 test ! -s conftest.err 6848 } && test -s conftest.$ac_objext; then 6849 eval "$as_ac_Header=yes" 6850else 6851 $as_echo "$as_me: failed program was:" >&5 6852sed 's/^/| /' conftest.$ac_ext >&5 6853 6854 eval "$as_ac_Header=no" 6855fi 6856 6857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6858fi 6859ac_res=`eval 'as_val=${'$as_ac_Header'} 6860 $as_echo "$as_val"'` 6861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6862$as_echo "$ac_res" >&6; } 6863as_val=`eval 'as_val=${'$as_ac_Header'} 6864 $as_echo "$as_val"'` 6865 if test "x$as_val" = x""yes; then 6866 cat >>confdefs.h <<_ACEOF 6867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6868_ACEOF 6869 6870fi 6871 6872done 6873 6874 6875 6876for ac_header in dlfcn.h 6877do 6878as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6879{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6880$as_echo_n "checking for $ac_header... " >&6; } 6881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6882 $as_echo_n "(cached) " >&6 6883else 6884 cat >conftest.$ac_ext <<_ACEOF 6885/* confdefs.h. */ 6886_ACEOF 6887cat confdefs.h >>conftest.$ac_ext 6888cat >>conftest.$ac_ext <<_ACEOF 6889/* end confdefs.h. */ 6890$ac_includes_default 6891 6892#include <$ac_header> 6893_ACEOF 6894rm -f conftest.$ac_objext 6895if { (ac_try="$ac_compile" 6896case "(($ac_try" in 6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6898 *) ac_try_echo=$ac_try;; 6899esac 6900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6901$as_echo "$ac_try_echo") >&5 6902 (eval "$ac_compile") 2>conftest.er1 6903 ac_status=$? 6904 grep -v '^ *+' conftest.er1 >conftest.err 6905 rm -f conftest.er1 6906 cat conftest.err >&5 6907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6908 (exit $ac_status); } && { 6909 test -z "$ac_c_werror_flag" || 6910 test ! -s conftest.err 6911 } && test -s conftest.$ac_objext; then 6912 eval "$as_ac_Header=yes" 6913else 6914 $as_echo "$as_me: failed program was:" >&5 6915sed 's/^/| /' conftest.$ac_ext >&5 6916 6917 eval "$as_ac_Header=no" 6918fi 6919 6920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6921fi 6922ac_res=`eval 'as_val=${'$as_ac_Header'} 6923 $as_echo "$as_val"'` 6924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6925$as_echo "$ac_res" >&6; } 6926as_val=`eval 'as_val=${'$as_ac_Header'} 6927 $as_echo "$as_val"'` 6928 if test "x$as_val" = x""yes; then 6929 cat >>confdefs.h <<_ACEOF 6930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6931_ACEOF 6932 6933fi 6934 6935done 6936 6937 6938 6939# Set options 6940 6941 6942 6943 enable_dlopen=no 6944 6945 6946 enable_win32_dll=no 6947 6948 6949 # Check whether --enable-shared was given. 6950if test "${enable_shared+set}" = set; then 6951 enableval=$enable_shared; p=${PACKAGE-default} 6952 case $enableval in 6953 yes) enable_shared=yes ;; 6954 no) enable_shared=no ;; 6955 *) 6956 enable_shared=no 6957 # Look at the argument we got. We use all the common list separators. 6958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6959 for pkg in $enableval; do 6960 IFS="$lt_save_ifs" 6961 if test "X$pkg" = "X$p"; then 6962 enable_shared=yes 6963 fi 6964 done 6965 IFS="$lt_save_ifs" 6966 ;; 6967 esac 6968else 6969 enable_shared=yes 6970fi 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 # Check whether --enable-static was given. 6981if test "${enable_static+set}" = set; then 6982 enableval=$enable_static; p=${PACKAGE-default} 6983 case $enableval in 6984 yes) enable_static=yes ;; 6985 no) enable_static=no ;; 6986 *) 6987 enable_static=no 6988 # Look at the argument we got. We use all the common list separators. 6989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6990 for pkg in $enableval; do 6991 IFS="$lt_save_ifs" 6992 if test "X$pkg" = "X$p"; then 6993 enable_static=yes 6994 fi 6995 done 6996 IFS="$lt_save_ifs" 6997 ;; 6998 esac 6999else 7000 enable_static=yes 7001fi 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012# Check whether --with-pic was given. 7013if test "${with_pic+set}" = set; then 7014 withval=$with_pic; pic_mode="$withval" 7015else 7016 pic_mode=default 7017fi 7018 7019 7020test -z "$pic_mode" && pic_mode=default 7021 7022 7023 7024 7025 7026 7027 7028 # Check whether --enable-fast-install was given. 7029if test "${enable_fast_install+set}" = set; then 7030 enableval=$enable_fast_install; p=${PACKAGE-default} 7031 case $enableval in 7032 yes) enable_fast_install=yes ;; 7033 no) enable_fast_install=no ;; 7034 *) 7035 enable_fast_install=no 7036 # Look at the argument we got. We use all the common list separators. 7037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7038 for pkg in $enableval; do 7039 IFS="$lt_save_ifs" 7040 if test "X$pkg" = "X$p"; then 7041 enable_fast_install=yes 7042 fi 7043 done 7044 IFS="$lt_save_ifs" 7045 ;; 7046 esac 7047else 7048 enable_fast_install=yes 7049fi 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061# This can be used to rebuild libtool when needed 7062LIBTOOL_DEPS="$ltmain" 7063 7064# Always use our own libtool. 7065LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091test -z "$LN_S" && LN_S="ln -s" 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106if test -n "${ZSH_VERSION+set}" ; then 7107 setopt NO_GLOB_SUBST 7108fi 7109 7110{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7111$as_echo_n "checking for objdir... " >&6; } 7112if test "${lt_cv_objdir+set}" = set; then 7113 $as_echo_n "(cached) " >&6 7114else 7115 rm -f .libs 2>/dev/null 7116mkdir .libs 2>/dev/null 7117if test -d .libs; then 7118 lt_cv_objdir=.libs 7119else 7120 # MS-DOS does not allow filenames that begin with a dot. 7121 lt_cv_objdir=_libs 7122fi 7123rmdir .libs 2>/dev/null 7124fi 7125{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7126$as_echo "$lt_cv_objdir" >&6; } 7127objdir=$lt_cv_objdir 7128 7129 7130 7131 7132 7133cat >>confdefs.h <<_ACEOF 7134#define LT_OBJDIR "$lt_cv_objdir/" 7135_ACEOF 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153case $host_os in 7154aix3*) 7155 # AIX sometimes has problems with the GCC collect2 program. For some 7156 # reason, if we set the COLLECT_NAMES environment variable, the problems 7157 # vanish in a puff of smoke. 7158 if test "X${COLLECT_NAMES+set}" != Xset; then 7159 COLLECT_NAMES= 7160 export COLLECT_NAMES 7161 fi 7162 ;; 7163esac 7164 7165# Sed substitution that helps us do robust quoting. It backslashifies 7166# metacharacters that are still active within double-quoted strings. 7167sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7168 7169# Same as above, but do not quote variable references. 7170double_quote_subst='s/\(["`\\]\)/\\\1/g' 7171 7172# Sed substitution to delay expansion of an escaped shell variable in a 7173# double_quote_subst'ed string. 7174delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7175 7176# Sed substitution to delay expansion of an escaped single quote. 7177delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7178 7179# Sed substitution to avoid accidental globbing in evaled expressions 7180no_glob_subst='s/\*/\\\*/g' 7181 7182# Global variables: 7183ofile=libtool 7184can_build_shared=yes 7185 7186# All known linkers require a `.a' archive for static linking (except MSVC, 7187# which needs '.lib'). 7188libext=a 7189 7190with_gnu_ld="$lt_cv_prog_gnu_ld" 7191 7192old_CC="$CC" 7193old_CFLAGS="$CFLAGS" 7194 7195# Set sane defaults for various variables 7196test -z "$CC" && CC=cc 7197test -z "$LTCC" && LTCC=$CC 7198test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7199test -z "$LD" && LD=ld 7200test -z "$ac_objext" && ac_objext=o 7201 7202for cc_temp in $compiler""; do 7203 case $cc_temp in 7204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7206 \-*) ;; 7207 *) break;; 7208 esac 7209done 7210cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7211 7212 7213# Only perform the check for file, if the check method requires it 7214test -z "$MAGIC_CMD" && MAGIC_CMD=file 7215case $deplibs_check_method in 7216file_magic*) 7217 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7218 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7219$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7220if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7221 $as_echo_n "(cached) " >&6 7222else 7223 case $MAGIC_CMD in 7224[\\/*] | ?:[\\/]*) 7225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7226 ;; 7227*) 7228 lt_save_MAGIC_CMD="$MAGIC_CMD" 7229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7231 for ac_dir in $ac_dummy; do 7232 IFS="$lt_save_ifs" 7233 test -z "$ac_dir" && ac_dir=. 7234 if test -f $ac_dir/${ac_tool_prefix}file; then 7235 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7236 if test -n "$file_magic_test_file"; then 7237 case $deplibs_check_method in 7238 "file_magic "*) 7239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7242 $EGREP "$file_magic_regex" > /dev/null; then 7243 : 7244 else 7245 cat <<_LT_EOF 1>&2 7246 7247*** Warning: the command libtool uses to detect shared libraries, 7248*** $file_magic_cmd, produces output that libtool cannot recognize. 7249*** The result is that libtool may fail to recognize shared libraries 7250*** as such. This will affect the creation of libtool libraries that 7251*** depend on shared libraries, but programs linked with such libtool 7252*** libraries will work regardless of this problem. Nevertheless, you 7253*** may want to report the problem to your system manager and/or to 7254*** bug-libtool@gnu.org 7255 7256_LT_EOF 7257 fi ;; 7258 esac 7259 fi 7260 break 7261 fi 7262 done 7263 IFS="$lt_save_ifs" 7264 MAGIC_CMD="$lt_save_MAGIC_CMD" 7265 ;; 7266esac 7267fi 7268 7269MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7270if test -n "$MAGIC_CMD"; then 7271 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7272$as_echo "$MAGIC_CMD" >&6; } 7273else 7274 { $as_echo "$as_me:$LINENO: result: no" >&5 7275$as_echo "no" >&6; } 7276fi 7277 7278 7279 7280 7281 7282if test -z "$lt_cv_path_MAGIC_CMD"; then 7283 if test -n "$ac_tool_prefix"; then 7284 { $as_echo "$as_me:$LINENO: checking for file" >&5 7285$as_echo_n "checking for file... " >&6; } 7286if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7287 $as_echo_n "(cached) " >&6 7288else 7289 case $MAGIC_CMD in 7290[\\/*] | ?:[\\/]*) 7291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7292 ;; 7293*) 7294 lt_save_MAGIC_CMD="$MAGIC_CMD" 7295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7297 for ac_dir in $ac_dummy; do 7298 IFS="$lt_save_ifs" 7299 test -z "$ac_dir" && ac_dir=. 7300 if test -f $ac_dir/file; then 7301 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7302 if test -n "$file_magic_test_file"; then 7303 case $deplibs_check_method in 7304 "file_magic "*) 7305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7308 $EGREP "$file_magic_regex" > /dev/null; then 7309 : 7310 else 7311 cat <<_LT_EOF 1>&2 7312 7313*** Warning: the command libtool uses to detect shared libraries, 7314*** $file_magic_cmd, produces output that libtool cannot recognize. 7315*** The result is that libtool may fail to recognize shared libraries 7316*** as such. This will affect the creation of libtool libraries that 7317*** depend on shared libraries, but programs linked with such libtool 7318*** libraries will work regardless of this problem. Nevertheless, you 7319*** may want to report the problem to your system manager and/or to 7320*** bug-libtool@gnu.org 7321 7322_LT_EOF 7323 fi ;; 7324 esac 7325 fi 7326 break 7327 fi 7328 done 7329 IFS="$lt_save_ifs" 7330 MAGIC_CMD="$lt_save_MAGIC_CMD" 7331 ;; 7332esac 7333fi 7334 7335MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7336if test -n "$MAGIC_CMD"; then 7337 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7338$as_echo "$MAGIC_CMD" >&6; } 7339else 7340 { $as_echo "$as_me:$LINENO: result: no" >&5 7341$as_echo "no" >&6; } 7342fi 7343 7344 7345 else 7346 MAGIC_CMD=: 7347 fi 7348fi 7349 7350 fi 7351 ;; 7352esac 7353 7354# Use C for the default configuration in the libtool script 7355 7356lt_save_CC="$CC" 7357ac_ext=c 7358ac_cpp='$CPP $CPPFLAGS' 7359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7361ac_compiler_gnu=$ac_cv_c_compiler_gnu 7362 7363 7364# Source file extension for C test sources. 7365ac_ext=c 7366 7367# Object file extension for compiled C test sources. 7368objext=o 7369objext=$objext 7370 7371# Code to be used in simple compile tests 7372lt_simple_compile_test_code="int some_variable = 0;" 7373 7374# Code to be used in simple link tests 7375lt_simple_link_test_code='int main(){return(0);}' 7376 7377 7378 7379 7380 7381 7382 7383# If no C compiler was specified, use CC. 7384LTCC=${LTCC-"$CC"} 7385 7386# If no C compiler flags were specified, use CFLAGS. 7387LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7388 7389# Allow CC to be a program name with arguments. 7390compiler=$CC 7391 7392# Save the default compiler, since it gets overwritten when the other 7393# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7394compiler_DEFAULT=$CC 7395 7396# save warnings/boilerplate of simple test code 7397ac_outfile=conftest.$ac_objext 7398echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7399eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7400_lt_compiler_boilerplate=`cat conftest.err` 7401$RM conftest* 7402 7403ac_outfile=conftest.$ac_objext 7404echo "$lt_simple_link_test_code" >conftest.$ac_ext 7405eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7406_lt_linker_boilerplate=`cat conftest.err` 7407$RM -r conftest* 7408 7409 7410if test -n "$compiler"; then 7411 7412lt_prog_compiler_no_builtin_flag= 7413 7414if test "$GCC" = yes; then 7415 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7416 7417 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7418$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7419if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7420 $as_echo_n "(cached) " >&6 7421else 7422 lt_cv_prog_compiler_rtti_exceptions=no 7423 ac_outfile=conftest.$ac_objext 7424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7425 lt_compiler_flag="-fno-rtti -fno-exceptions" 7426 # Insert the option either (1) after the last *FLAGS variable, or 7427 # (2) before a word containing "conftest.", or (3) at the end. 7428 # Note that $ac_compile itself does not contain backslashes and begins 7429 # with a dollar sign (not a hyphen), so the echo should work correctly. 7430 # The option is referenced via a variable to avoid confusing sed. 7431 lt_compile=`echo "$ac_compile" | $SED \ 7432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7434 -e 's:$: $lt_compiler_flag:'` 7435 (eval echo "\"\$as_me:7435: $lt_compile\"" >&5) 7436 (eval "$lt_compile" 2>conftest.err) 7437 ac_status=$? 7438 cat conftest.err >&5 7439 echo "$as_me:7439: \$? = $ac_status" >&5 7440 if (exit $ac_status) && test -s "$ac_outfile"; then 7441 # The compiler can only warn and ignore the option if not recognized 7442 # So say no if there are warnings other than the usual output. 7443 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7446 lt_cv_prog_compiler_rtti_exceptions=yes 7447 fi 7448 fi 7449 $RM conftest* 7450 7451fi 7452{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7453$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7454 7455if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7457else 7458 : 7459fi 7460 7461fi 7462 7463 7464 7465 7466 7467 7468 lt_prog_compiler_wl= 7469lt_prog_compiler_pic= 7470lt_prog_compiler_static= 7471 7472{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7473$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7474 7475 if test "$GCC" = yes; then 7476 lt_prog_compiler_wl='-Wl,' 7477 lt_prog_compiler_static='-static' 7478 7479 case $host_os in 7480 aix*) 7481 # All AIX code is PIC. 7482 if test "$host_cpu" = ia64; then 7483 # AIX 5 now supports IA64 processor 7484 lt_prog_compiler_static='-Bstatic' 7485 fi 7486 ;; 7487 7488 amigaos*) 7489 case $host_cpu in 7490 powerpc) 7491 # see comment about AmigaOS4 .so support 7492 lt_prog_compiler_pic='-fPIC' 7493 ;; 7494 m68k) 7495 # FIXME: we need at least 68020 code to build shared libraries, but 7496 # adding the `-m68020' flag to GCC prevents building anything better, 7497 # like `-m68040'. 7498 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7499 ;; 7500 esac 7501 ;; 7502 7503 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7504 # PIC is the default for these OSes. 7505 ;; 7506 7507 mingw* | cygwin* | pw32* | os2* | cegcc*) 7508 # This hack is so that the source file can tell whether it is being 7509 # built for inclusion in a dll (and should export symbols for example). 7510 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7511 # (--disable-auto-import) libraries 7512 lt_prog_compiler_pic='-DDLL_EXPORT' 7513 ;; 7514 7515 darwin* | rhapsody*) 7516 # PIC is the default on this platform 7517 # Common symbols not allowed in MH_DYLIB files 7518 lt_prog_compiler_pic='-fno-common' 7519 ;; 7520 7521 hpux*) 7522 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7523 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7524 # sets the default TLS model and affects inlining. 7525 case $host_cpu in 7526 hppa*64*) 7527 # +Z the default 7528 ;; 7529 *) 7530 lt_prog_compiler_pic='-fPIC' 7531 ;; 7532 esac 7533 ;; 7534 7535 interix[3-9]*) 7536 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7537 # Instead, we relocate shared libraries at runtime. 7538 ;; 7539 7540 msdosdjgpp*) 7541 # Just because we use GCC doesn't mean we suddenly get shared libraries 7542 # on systems that don't support them. 7543 lt_prog_compiler_can_build_shared=no 7544 enable_shared=no 7545 ;; 7546 7547 *nto* | *qnx*) 7548 # QNX uses GNU C++, but need to define -shared option too, otherwise 7549 # it will coredump. 7550 lt_prog_compiler_pic='-fPIC -shared' 7551 ;; 7552 7553 sysv4*MP*) 7554 if test -d /usr/nec; then 7555 lt_prog_compiler_pic=-Kconform_pic 7556 fi 7557 ;; 7558 7559 *) 7560 lt_prog_compiler_pic='-fPIC' 7561 ;; 7562 esac 7563 else 7564 # PORTME Check for flag to pass linker flags through the system compiler. 7565 case $host_os in 7566 aix*) 7567 lt_prog_compiler_wl='-Wl,' 7568 if test "$host_cpu" = ia64; then 7569 # AIX 5 now supports IA64 processor 7570 lt_prog_compiler_static='-Bstatic' 7571 else 7572 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7573 fi 7574 ;; 7575 7576 mingw* | cygwin* | pw32* | os2* | cegcc*) 7577 # This hack is so that the source file can tell whether it is being 7578 # built for inclusion in a dll (and should export symbols for example). 7579 lt_prog_compiler_pic='-DDLL_EXPORT' 7580 ;; 7581 7582 hpux9* | hpux10* | hpux11*) 7583 lt_prog_compiler_wl='-Wl,' 7584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7585 # not for PA HP-UX. 7586 case $host_cpu in 7587 hppa*64*|ia64*) 7588 # +Z the default 7589 ;; 7590 *) 7591 lt_prog_compiler_pic='+Z' 7592 ;; 7593 esac 7594 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7595 lt_prog_compiler_static='${wl}-a ${wl}archive' 7596 ;; 7597 7598 irix5* | irix6* | nonstopux*) 7599 lt_prog_compiler_wl='-Wl,' 7600 # PIC (with -KPIC) is the default. 7601 lt_prog_compiler_static='-non_shared' 7602 ;; 7603 7604 linux* | k*bsd*-gnu) 7605 case $cc_basename in 7606 # old Intel for x86_64 which still supported -KPIC. 7607 ecc*) 7608 lt_prog_compiler_wl='-Wl,' 7609 lt_prog_compiler_pic='-KPIC' 7610 lt_prog_compiler_static='-static' 7611 ;; 7612 # icc used to be incompatible with GCC. 7613 # ICC 10 doesn't accept -KPIC any more. 7614 icc* | ifort*) 7615 lt_prog_compiler_wl='-Wl,' 7616 lt_prog_compiler_pic='-fPIC' 7617 lt_prog_compiler_static='-static' 7618 ;; 7619 # Lahey Fortran 8.1. 7620 lf95*) 7621 lt_prog_compiler_wl='-Wl,' 7622 lt_prog_compiler_pic='--shared' 7623 lt_prog_compiler_static='--static' 7624 ;; 7625 pgcc* | pgf77* | pgf90* | pgf95*) 7626 # Portland Group compilers (*not* the Pentium gcc compiler, 7627 # which looks to be a dead project) 7628 lt_prog_compiler_wl='-Wl,' 7629 lt_prog_compiler_pic='-fpic' 7630 lt_prog_compiler_static='-Bstatic' 7631 ;; 7632 ccc*) 7633 lt_prog_compiler_wl='-Wl,' 7634 # All Alpha code is PIC. 7635 lt_prog_compiler_static='-non_shared' 7636 ;; 7637 xl*) 7638 # IBM XL C 8.0/Fortran 10.1 on PPC 7639 lt_prog_compiler_wl='-Wl,' 7640 lt_prog_compiler_pic='-qpic' 7641 lt_prog_compiler_static='-qstaticlink' 7642 ;; 7643 *) 7644 case `$CC -V 2>&1 | sed 5q` in 7645 *Sun\ C*) 7646 # Sun C 5.9 7647 lt_prog_compiler_pic='-KPIC' 7648 lt_prog_compiler_static='-Bstatic' 7649 lt_prog_compiler_wl='-Wl,' 7650 ;; 7651 *Sun\ F*) 7652 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7653 lt_prog_compiler_pic='-KPIC' 7654 lt_prog_compiler_static='-Bstatic' 7655 lt_prog_compiler_wl='' 7656 ;; 7657 esac 7658 ;; 7659 esac 7660 ;; 7661 7662 newsos6) 7663 lt_prog_compiler_pic='-KPIC' 7664 lt_prog_compiler_static='-Bstatic' 7665 ;; 7666 7667 *nto* | *qnx*) 7668 # QNX uses GNU C++, but need to define -shared option too, otherwise 7669 # it will coredump. 7670 lt_prog_compiler_pic='-fPIC -shared' 7671 ;; 7672 7673 osf3* | osf4* | osf5*) 7674 lt_prog_compiler_wl='-Wl,' 7675 # All OSF/1 code is PIC. 7676 lt_prog_compiler_static='-non_shared' 7677 ;; 7678 7679 rdos*) 7680 lt_prog_compiler_static='-non_shared' 7681 ;; 7682 7683 solaris*) 7684 lt_prog_compiler_pic='-KPIC' 7685 lt_prog_compiler_static='-Bstatic' 7686 case $cc_basename in 7687 f77* | f90* | f95*) 7688 lt_prog_compiler_wl='-Qoption ld ';; 7689 *) 7690 lt_prog_compiler_wl='-Wl,';; 7691 esac 7692 ;; 7693 7694 sunos4*) 7695 lt_prog_compiler_wl='-Qoption ld ' 7696 lt_prog_compiler_pic='-PIC' 7697 lt_prog_compiler_static='-Bstatic' 7698 ;; 7699 7700 sysv4 | sysv4.2uw2* | sysv4.3*) 7701 lt_prog_compiler_wl='-Wl,' 7702 lt_prog_compiler_pic='-KPIC' 7703 lt_prog_compiler_static='-Bstatic' 7704 ;; 7705 7706 sysv4*MP*) 7707 if test -d /usr/nec ;then 7708 lt_prog_compiler_pic='-Kconform_pic' 7709 lt_prog_compiler_static='-Bstatic' 7710 fi 7711 ;; 7712 7713 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7714 lt_prog_compiler_wl='-Wl,' 7715 lt_prog_compiler_pic='-KPIC' 7716 lt_prog_compiler_static='-Bstatic' 7717 ;; 7718 7719 unicos*) 7720 lt_prog_compiler_wl='-Wl,' 7721 lt_prog_compiler_can_build_shared=no 7722 ;; 7723 7724 uts4*) 7725 lt_prog_compiler_pic='-pic' 7726 lt_prog_compiler_static='-Bstatic' 7727 ;; 7728 7729 *) 7730 lt_prog_compiler_can_build_shared=no 7731 ;; 7732 esac 7733 fi 7734 7735case $host_os in 7736 # For platforms which do not support PIC, -DPIC is meaningless: 7737 *djgpp*) 7738 lt_prog_compiler_pic= 7739 ;; 7740 *) 7741 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7742 ;; 7743esac 7744{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7745$as_echo "$lt_prog_compiler_pic" >&6; } 7746 7747 7748 7749 7750 7751 7752# 7753# Check to make sure the PIC flag actually works. 7754# 7755if test -n "$lt_prog_compiler_pic"; then 7756 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7757$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7758if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7759 $as_echo_n "(cached) " >&6 7760else 7761 lt_cv_prog_compiler_pic_works=no 7762 ac_outfile=conftest.$ac_objext 7763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7765 # Insert the option either (1) after the last *FLAGS variable, or 7766 # (2) before a word containing "conftest.", or (3) at the end. 7767 # Note that $ac_compile itself does not contain backslashes and begins 7768 # with a dollar sign (not a hyphen), so the echo should work correctly. 7769 # The option is referenced via a variable to avoid confusing sed. 7770 lt_compile=`echo "$ac_compile" | $SED \ 7771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7773 -e 's:$: $lt_compiler_flag:'` 7774 (eval echo "\"\$as_me:7774: $lt_compile\"" >&5) 7775 (eval "$lt_compile" 2>conftest.err) 7776 ac_status=$? 7777 cat conftest.err >&5 7778 echo "$as_me:7778: \$? = $ac_status" >&5 7779 if (exit $ac_status) && test -s "$ac_outfile"; then 7780 # The compiler can only warn and ignore the option if not recognized 7781 # So say no if there are warnings other than the usual output. 7782 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7785 lt_cv_prog_compiler_pic_works=yes 7786 fi 7787 fi 7788 $RM conftest* 7789 7790fi 7791{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7792$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7793 7794if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7795 case $lt_prog_compiler_pic in 7796 "" | " "*) ;; 7797 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7798 esac 7799else 7800 lt_prog_compiler_pic= 7801 lt_prog_compiler_can_build_shared=no 7802fi 7803 7804fi 7805 7806 7807 7808 7809 7810 7811# 7812# Check to make sure the static flag actually works. 7813# 7814wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7815{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7816$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7817if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7818 $as_echo_n "(cached) " >&6 7819else 7820 lt_cv_prog_compiler_static_works=no 7821 save_LDFLAGS="$LDFLAGS" 7822 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7823 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7824 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7825 # The linker can only warn and ignore the option if not recognized 7826 # So say no if there are warnings 7827 if test -s conftest.err; then 7828 # Append any errors to the config.log. 7829 cat conftest.err 1>&5 7830 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7832 if diff conftest.exp conftest.er2 >/dev/null; then 7833 lt_cv_prog_compiler_static_works=yes 7834 fi 7835 else 7836 lt_cv_prog_compiler_static_works=yes 7837 fi 7838 fi 7839 $RM -r conftest* 7840 LDFLAGS="$save_LDFLAGS" 7841 7842fi 7843{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7844$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7845 7846if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7847 : 7848else 7849 lt_prog_compiler_static= 7850fi 7851 7852 7853 7854 7855 7856 7857 7858 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7859$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7860if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7861 $as_echo_n "(cached) " >&6 7862else 7863 lt_cv_prog_compiler_c_o=no 7864 $RM -r conftest 2>/dev/null 7865 mkdir conftest 7866 cd conftest 7867 mkdir out 7868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7869 7870 lt_compiler_flag="-o out/conftest2.$ac_objext" 7871 # Insert the option either (1) after the last *FLAGS variable, or 7872 # (2) before a word containing "conftest.", or (3) at the end. 7873 # Note that $ac_compile itself does not contain backslashes and begins 7874 # with a dollar sign (not a hyphen), so the echo should work correctly. 7875 lt_compile=`echo "$ac_compile" | $SED \ 7876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7878 -e 's:$: $lt_compiler_flag:'` 7879 (eval echo "\"\$as_me:7879: $lt_compile\"" >&5) 7880 (eval "$lt_compile" 2>out/conftest.err) 7881 ac_status=$? 7882 cat out/conftest.err >&5 7883 echo "$as_me:7883: \$? = $ac_status" >&5 7884 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7885 then 7886 # The compiler can only warn and ignore the option if not recognized 7887 # So say no if there are warnings 7888 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7891 lt_cv_prog_compiler_c_o=yes 7892 fi 7893 fi 7894 chmod u+w . 2>&5 7895 $RM conftest* 7896 # SGI C++ compiler will create directory out/ii_files/ for 7897 # template instantiation 7898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7899 $RM out/* && rmdir out 7900 cd .. 7901 $RM -r conftest 7902 $RM conftest* 7903 7904fi 7905{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7906$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7907 7908 7909 7910 7911 7912 7913 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7914$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7915if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7916 $as_echo_n "(cached) " >&6 7917else 7918 lt_cv_prog_compiler_c_o=no 7919 $RM -r conftest 2>/dev/null 7920 mkdir conftest 7921 cd conftest 7922 mkdir out 7923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7924 7925 lt_compiler_flag="-o out/conftest2.$ac_objext" 7926 # Insert the option either (1) after the last *FLAGS variable, or 7927 # (2) before a word containing "conftest.", or (3) at the end. 7928 # Note that $ac_compile itself does not contain backslashes and begins 7929 # with a dollar sign (not a hyphen), so the echo should work correctly. 7930 lt_compile=`echo "$ac_compile" | $SED \ 7931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7933 -e 's:$: $lt_compiler_flag:'` 7934 (eval echo "\"\$as_me:7934: $lt_compile\"" >&5) 7935 (eval "$lt_compile" 2>out/conftest.err) 7936 ac_status=$? 7937 cat out/conftest.err >&5 7938 echo "$as_me:7938: \$? = $ac_status" >&5 7939 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7940 then 7941 # The compiler can only warn and ignore the option if not recognized 7942 # So say no if there are warnings 7943 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7944 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7945 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7946 lt_cv_prog_compiler_c_o=yes 7947 fi 7948 fi 7949 chmod u+w . 2>&5 7950 $RM conftest* 7951 # SGI C++ compiler will create directory out/ii_files/ for 7952 # template instantiation 7953 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7954 $RM out/* && rmdir out 7955 cd .. 7956 $RM -r conftest 7957 $RM conftest* 7958 7959fi 7960{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7961$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7962 7963 7964 7965 7966hard_links="nottested" 7967if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7968 # do not overwrite the value of need_locks provided by the user 7969 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7970$as_echo_n "checking if we can lock with hard links... " >&6; } 7971 hard_links=yes 7972 $RM conftest* 7973 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7974 touch conftest.a 7975 ln conftest.a conftest.b 2>&5 || hard_links=no 7976 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7977 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 7978$as_echo "$hard_links" >&6; } 7979 if test "$hard_links" = no; then 7980 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7981$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7982 need_locks=warn 7983 fi 7984else 7985 need_locks=no 7986fi 7987 7988 7989 7990 7991 7992 7993 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7994$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7995 7996 runpath_var= 7997 allow_undefined_flag= 7998 always_export_symbols=no 7999 archive_cmds= 8000 archive_expsym_cmds= 8001 compiler_needs_object=no 8002 enable_shared_with_static_runtimes=no 8003 export_dynamic_flag_spec= 8004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8005 hardcode_automatic=no 8006 hardcode_direct=no 8007 hardcode_direct_absolute=no 8008 hardcode_libdir_flag_spec= 8009 hardcode_libdir_flag_spec_ld= 8010 hardcode_libdir_separator= 8011 hardcode_minus_L=no 8012 hardcode_shlibpath_var=unsupported 8013 inherit_rpath=no 8014 link_all_deplibs=unknown 8015 module_cmds= 8016 module_expsym_cmds= 8017 old_archive_from_new_cmds= 8018 old_archive_from_expsyms_cmds= 8019 thread_safe_flag_spec= 8020 whole_archive_flag_spec= 8021 # include_expsyms should be a list of space-separated symbols to be *always* 8022 # included in the symbol list 8023 include_expsyms= 8024 # exclude_expsyms can be an extended regexp of symbols to exclude 8025 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8026 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8027 # as well as any symbol that contains `d'. 8028 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8029 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8030 # platforms (ab)use it in PIC code, but their linkers get confused if 8031 # the symbol is explicitly referenced. Since portable code cannot 8032 # rely on this symbol name, it's probably fine to never include it in 8033 # preloaded symbol tables. 8034 # Exclude shared library initialization/finalization symbols. 8035 extract_expsyms_cmds= 8036 8037 case $host_os in 8038 cygwin* | mingw* | pw32* | cegcc*) 8039 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8040 # When not using gcc, we currently assume that we are using 8041 # Microsoft Visual C++. 8042 if test "$GCC" != yes; then 8043 with_gnu_ld=no 8044 fi 8045 ;; 8046 interix*) 8047 # we just hope/assume this is gcc and not c89 (= MSVC++) 8048 with_gnu_ld=yes 8049 ;; 8050 openbsd*) 8051 with_gnu_ld=no 8052 ;; 8053 linux* | k*bsd*-gnu) 8054 link_all_deplibs=no 8055 ;; 8056 esac 8057 8058 ld_shlibs=yes 8059 if test "$with_gnu_ld" = yes; then 8060 # If archive_cmds runs LD, not CC, wlarc should be empty 8061 wlarc='${wl}' 8062 8063 # Set some defaults for GNU ld with shared library support. These 8064 # are reset later if shared libraries are not supported. Putting them 8065 # here allows them to be overridden if necessary. 8066 runpath_var=LD_RUN_PATH 8067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8068 export_dynamic_flag_spec='${wl}--export-dynamic' 8069 # ancient GNU ld didn't support --whole-archive et. al. 8070 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8071 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8072 else 8073 whole_archive_flag_spec= 8074 fi 8075 supports_anon_versioning=no 8076 case `$LD -v 2>&1` in 8077 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8078 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8079 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8080 *\ 2.11.*) ;; # other 2.11 versions 8081 *) supports_anon_versioning=yes ;; 8082 esac 8083 8084 # See if GNU ld supports shared libraries. 8085 case $host_os in 8086 aix[3-9]*) 8087 # On AIX/PPC, the GNU linker is very broken 8088 if test "$host_cpu" != ia64; then 8089 ld_shlibs=no 8090 cat <<_LT_EOF 1>&2 8091 8092*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8093*** to be unable to reliably create shared libraries on AIX. 8094*** Therefore, libtool is disabling shared libraries support. If you 8095*** really care for shared libraries, you may want to modify your PATH 8096*** so that a non-GNU linker is found, and then restart. 8097 8098_LT_EOF 8099 fi 8100 ;; 8101 8102 amigaos*) 8103 case $host_cpu in 8104 powerpc) 8105 # see comment about AmigaOS4 .so support 8106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8107 archive_expsym_cmds='' 8108 ;; 8109 m68k) 8110 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)' 8111 hardcode_libdir_flag_spec='-L$libdir' 8112 hardcode_minus_L=yes 8113 ;; 8114 esac 8115 ;; 8116 8117 beos*) 8118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8119 allow_undefined_flag=unsupported 8120 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8121 # support --undefined. This deserves some investigation. FIXME 8122 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8123 else 8124 ld_shlibs=no 8125 fi 8126 ;; 8127 8128 cygwin* | mingw* | pw32* | cegcc*) 8129 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8130 # as there is no search path for DLLs. 8131 hardcode_libdir_flag_spec='-L$libdir' 8132 allow_undefined_flag=unsupported 8133 always_export_symbols=no 8134 enable_shared_with_static_runtimes=yes 8135 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8136 8137 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8139 # If the export-symbols file already is a .def file (1st line 8140 # is EXPORTS), use it as is; otherwise, prepend... 8141 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8142 cp $export_symbols $output_objdir/$soname.def; 8143 else 8144 echo EXPORTS > $output_objdir/$soname.def; 8145 cat $export_symbols >> $output_objdir/$soname.def; 8146 fi~ 8147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8148 else 8149 ld_shlibs=no 8150 fi 8151 ;; 8152 8153 interix[3-9]*) 8154 hardcode_direct=no 8155 hardcode_shlibpath_var=no 8156 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8157 export_dynamic_flag_spec='${wl}-E' 8158 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8159 # Instead, shared libraries are loaded at an image base (0x10000000 by 8160 # default) and relocated if they conflict, which is a slow very memory 8161 # consuming and fragmenting process. To avoid this, we pick a random, 8162 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8163 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8164 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8165 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' 8166 ;; 8167 8168 gnu* | linux* | tpf* | k*bsd*-gnu) 8169 tmp_diet=no 8170 if test "$host_os" = linux-dietlibc; then 8171 case $cc_basename in 8172 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8173 esac 8174 fi 8175 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8176 && test "$tmp_diet" = no 8177 then 8178 tmp_addflag= 8179 tmp_sharedflag='-shared' 8180 case $cc_basename,$host_cpu in 8181 pgcc*) # Portland Group C compiler 8182 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' 8183 tmp_addflag=' $pic_flag' 8184 ;; 8185 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8186 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' 8187 tmp_addflag=' $pic_flag -Mnomain' ;; 8188 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8189 tmp_addflag=' -i_dynamic' ;; 8190 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8191 tmp_addflag=' -i_dynamic -nofor_main' ;; 8192 ifc* | ifort*) # Intel Fortran compiler 8193 tmp_addflag=' -nofor_main' ;; 8194 lf95*) # Lahey Fortran 8.1 8195 whole_archive_flag_spec= 8196 tmp_sharedflag='--shared' ;; 8197 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8198 tmp_sharedflag='-qmkshrobj' 8199 tmp_addflag= ;; 8200 esac 8201 case `$CC -V 2>&1 | sed 5q` in 8202 *Sun\ C*) # Sun C 5.9 8203 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' 8204 compiler_needs_object=yes 8205 tmp_sharedflag='-G' ;; 8206 *Sun\ F*) # Sun Fortran 8.3 8207 tmp_sharedflag='-G' ;; 8208 esac 8209 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8210 8211 if test "x$supports_anon_versioning" = xyes; then 8212 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8213 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8214 echo "local: *; };" >> $output_objdir/$libname.ver~ 8215 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8216 fi 8217 8218 case $cc_basename in 8219 xlf*) 8220 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8221 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8222 hardcode_libdir_flag_spec= 8223 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8224 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8225 if test "x$supports_anon_versioning" = xyes; then 8226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8228 echo "local: *; };" >> $output_objdir/$libname.ver~ 8229 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8230 fi 8231 ;; 8232 esac 8233 else 8234 ld_shlibs=no 8235 fi 8236 ;; 8237 8238 netbsd* | netbsdelf*-gnu) 8239 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8240 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8241 wlarc= 8242 else 8243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8245 fi 8246 ;; 8247 8248 solaris*) 8249 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8250 ld_shlibs=no 8251 cat <<_LT_EOF 1>&2 8252 8253*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8254*** create shared libraries on Solaris systems. Therefore, libtool 8255*** is disabling shared libraries support. We urge you to upgrade GNU 8256*** binutils to release 2.9.1 or newer. Another option is to modify 8257*** your PATH or compiler configuration so that the native linker is 8258*** used, and then restart. 8259 8260_LT_EOF 8261 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8264 else 8265 ld_shlibs=no 8266 fi 8267 ;; 8268 8269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8270 case `$LD -v 2>&1` in 8271 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8272 ld_shlibs=no 8273 cat <<_LT_EOF 1>&2 8274 8275*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8276*** reliably create shared libraries on SCO systems. Therefore, libtool 8277*** is disabling shared libraries support. We urge you to upgrade GNU 8278*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8279*** your PATH or compiler configuration so that the native linker is 8280*** used, and then restart. 8281 8282_LT_EOF 8283 ;; 8284 *) 8285 # For security reasons, it is highly recommended that you always 8286 # use absolute paths for naming shared libraries, and exclude the 8287 # DT_RUNPATH tag from executables and libraries. But doing so 8288 # requires that you compile everything twice, which is a pain. 8289 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8292 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8293 else 8294 ld_shlibs=no 8295 fi 8296 ;; 8297 esac 8298 ;; 8299 8300 sunos4*) 8301 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8302 wlarc= 8303 hardcode_direct=yes 8304 hardcode_shlibpath_var=no 8305 ;; 8306 8307 *) 8308 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8311 else 8312 ld_shlibs=no 8313 fi 8314 ;; 8315 esac 8316 8317 if test "$ld_shlibs" = no; then 8318 runpath_var= 8319 hardcode_libdir_flag_spec= 8320 export_dynamic_flag_spec= 8321 whole_archive_flag_spec= 8322 fi 8323 else 8324 # PORTME fill in a description of your system's linker (not GNU ld) 8325 case $host_os in 8326 aix3*) 8327 allow_undefined_flag=unsupported 8328 always_export_symbols=yes 8329 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' 8330 # Note: this linker hardcodes the directories in LIBPATH if there 8331 # are no directories specified by -L. 8332 hardcode_minus_L=yes 8333 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8334 # Neither direct hardcoding nor static linking is supported with a 8335 # broken collect2. 8336 hardcode_direct=unsupported 8337 fi 8338 ;; 8339 8340 aix[4-9]*) 8341 if test "$host_cpu" = ia64; then 8342 # On IA64, the linker does run time linking by default, so we don't 8343 # have to do anything special. 8344 aix_use_runtimelinking=no 8345 exp_sym_flag='-Bexport' 8346 no_entry_flag="" 8347 else 8348 # If we're using GNU nm, then we don't want the "-C" option. 8349 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8350 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8351 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' 8352 else 8353 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' 8354 fi 8355 aix_use_runtimelinking=no 8356 8357 # Test if we are trying to use run time linking or normal 8358 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8359 # need to do runtime linking. 8360 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8361 for ld_flag in $LDFLAGS; do 8362 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8363 aix_use_runtimelinking=yes 8364 break 8365 fi 8366 done 8367 ;; 8368 esac 8369 8370 exp_sym_flag='-bexport' 8371 no_entry_flag='-bnoentry' 8372 fi 8373 8374 # When large executables or shared objects are built, AIX ld can 8375 # have problems creating the table of contents. If linking a library 8376 # or program results in "error TOC overflow" add -mminimal-toc to 8377 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8378 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8379 8380 archive_cmds='' 8381 hardcode_direct=yes 8382 hardcode_direct_absolute=yes 8383 hardcode_libdir_separator=':' 8384 link_all_deplibs=yes 8385 file_list_spec='${wl}-f,' 8386 8387 if test "$GCC" = yes; then 8388 case $host_os in aix4.[012]|aix4.[012].*) 8389 # We only want to do this on AIX 4.2 and lower, the check 8390 # below for broken collect2 doesn't work under 4.3+ 8391 collect2name=`${CC} -print-prog-name=collect2` 8392 if test -f "$collect2name" && 8393 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8394 then 8395 # We have reworked collect2 8396 : 8397 else 8398 # We have old collect2 8399 hardcode_direct=unsupported 8400 # It fails to find uninstalled libraries when the uninstalled 8401 # path is not listed in the libpath. Setting hardcode_minus_L 8402 # to unsupported forces relinking 8403 hardcode_minus_L=yes 8404 hardcode_libdir_flag_spec='-L$libdir' 8405 hardcode_libdir_separator= 8406 fi 8407 ;; 8408 esac 8409 shared_flag='-shared' 8410 if test "$aix_use_runtimelinking" = yes; then 8411 shared_flag="$shared_flag "'${wl}-G' 8412 fi 8413 link_all_deplibs=no 8414 else 8415 # not using gcc 8416 if test "$host_cpu" = ia64; then 8417 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8418 # chokes on -Wl,-G. The following line is correct: 8419 shared_flag='-G' 8420 else 8421 if test "$aix_use_runtimelinking" = yes; then 8422 shared_flag='${wl}-G' 8423 else 8424 shared_flag='${wl}-bM:SRE' 8425 fi 8426 fi 8427 fi 8428 8429 export_dynamic_flag_spec='${wl}-bexpall' 8430 # It seems that -bexpall does not export symbols beginning with 8431 # underscore (_), so it is better to generate a list of symbols to export. 8432 always_export_symbols=yes 8433 if test "$aix_use_runtimelinking" = yes; then 8434 # Warning - without using the other runtime loading flags (-brtl), 8435 # -berok will link without error, but may produce a broken library. 8436 allow_undefined_flag='-berok' 8437 # Determine the default libpath from the value encoded in an 8438 # empty executable. 8439 cat >conftest.$ac_ext <<_ACEOF 8440/* confdefs.h. */ 8441_ACEOF 8442cat confdefs.h >>conftest.$ac_ext 8443cat >>conftest.$ac_ext <<_ACEOF 8444/* end confdefs.h. */ 8445 8446int 8447main () 8448{ 8449 8450 ; 8451 return 0; 8452} 8453_ACEOF 8454rm -f conftest.$ac_objext conftest$ac_exeext 8455if { (ac_try="$ac_link" 8456case "(($ac_try" in 8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8458 *) ac_try_echo=$ac_try;; 8459esac 8460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8461$as_echo "$ac_try_echo") >&5 8462 (eval "$ac_link") 2>conftest.er1 8463 ac_status=$? 8464 grep -v '^ *+' conftest.er1 >conftest.err 8465 rm -f conftest.er1 8466 cat conftest.err >&5 8467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8468 (exit $ac_status); } && { 8469 test -z "$ac_c_werror_flag" || 8470 test ! -s conftest.err 8471 } && test -s conftest$ac_exeext && { 8472 test "$cross_compiling" = yes || 8473 $as_test_x conftest$ac_exeext 8474 }; then 8475 8476lt_aix_libpath_sed=' 8477 /Import File Strings/,/^$/ { 8478 /^0/ { 8479 s/^0 *\(.*\)$/\1/ 8480 p 8481 } 8482 }' 8483aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8484# Check for a 64-bit object if we didn't find anything. 8485if test -z "$aix_libpath"; then 8486 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8487fi 8488else 8489 $as_echo "$as_me: failed program was:" >&5 8490sed 's/^/| /' conftest.$ac_ext >&5 8491 8492 8493fi 8494 8495rm -rf conftest.dSYM 8496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8497 conftest$ac_exeext conftest.$ac_ext 8498if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8499 8500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8501 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" 8502 else 8503 if test "$host_cpu" = ia64; then 8504 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8505 allow_undefined_flag="-z nodefs" 8506 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" 8507 else 8508 # Determine the default libpath from the value encoded in an 8509 # empty executable. 8510 cat >conftest.$ac_ext <<_ACEOF 8511/* confdefs.h. */ 8512_ACEOF 8513cat confdefs.h >>conftest.$ac_ext 8514cat >>conftest.$ac_ext <<_ACEOF 8515/* end confdefs.h. */ 8516 8517int 8518main () 8519{ 8520 8521 ; 8522 return 0; 8523} 8524_ACEOF 8525rm -f conftest.$ac_objext conftest$ac_exeext 8526if { (ac_try="$ac_link" 8527case "(($ac_try" in 8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8529 *) ac_try_echo=$ac_try;; 8530esac 8531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8532$as_echo "$ac_try_echo") >&5 8533 (eval "$ac_link") 2>conftest.er1 8534 ac_status=$? 8535 grep -v '^ *+' conftest.er1 >conftest.err 8536 rm -f conftest.er1 8537 cat conftest.err >&5 8538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8539 (exit $ac_status); } && { 8540 test -z "$ac_c_werror_flag" || 8541 test ! -s conftest.err 8542 } && test -s conftest$ac_exeext && { 8543 test "$cross_compiling" = yes || 8544 $as_test_x conftest$ac_exeext 8545 }; then 8546 8547lt_aix_libpath_sed=' 8548 /Import File Strings/,/^$/ { 8549 /^0/ { 8550 s/^0 *\(.*\)$/\1/ 8551 p 8552 } 8553 }' 8554aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8555# Check for a 64-bit object if we didn't find anything. 8556if test -z "$aix_libpath"; then 8557 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8558fi 8559else 8560 $as_echo "$as_me: failed program was:" >&5 8561sed 's/^/| /' conftest.$ac_ext >&5 8562 8563 8564fi 8565 8566rm -rf conftest.dSYM 8567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8568 conftest$ac_exeext conftest.$ac_ext 8569if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8570 8571 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8572 # Warning - without using the other run time loading flags, 8573 # -berok will link without error, but may produce a broken library. 8574 no_undefined_flag=' ${wl}-bernotok' 8575 allow_undefined_flag=' ${wl}-berok' 8576 # Exported symbols can be pulled into shared objects from archives 8577 whole_archive_flag_spec='$convenience' 8578 archive_cmds_need_lc=yes 8579 # This is similar to how AIX traditionally builds its shared libraries. 8580 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' 8581 fi 8582 fi 8583 ;; 8584 8585 amigaos*) 8586 case $host_cpu in 8587 powerpc) 8588 # see comment about AmigaOS4 .so support 8589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8590 archive_expsym_cmds='' 8591 ;; 8592 m68k) 8593 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)' 8594 hardcode_libdir_flag_spec='-L$libdir' 8595 hardcode_minus_L=yes 8596 ;; 8597 esac 8598 ;; 8599 8600 bsdi[45]*) 8601 export_dynamic_flag_spec=-rdynamic 8602 ;; 8603 8604 cygwin* | mingw* | pw32* | cegcc*) 8605 # When not using gcc, we currently assume that we are using 8606 # Microsoft Visual C++. 8607 # hardcode_libdir_flag_spec is actually meaningless, as there is 8608 # no search path for DLLs. 8609 hardcode_libdir_flag_spec=' ' 8610 allow_undefined_flag=unsupported 8611 # Tell ltmain to make .lib files, not .a files. 8612 libext=lib 8613 # Tell ltmain to make .dll files, not .so files. 8614 shrext_cmds=".dll" 8615 # FIXME: Setting linknames here is a bad hack. 8616 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8617 # The linker will automatically build a .lib file if we build a DLL. 8618 old_archive_from_new_cmds='true' 8619 # FIXME: Should let the user specify the lib program. 8620 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8621 fix_srcfile_path='`cygpath -w "$srcfile"`' 8622 enable_shared_with_static_runtimes=yes 8623 ;; 8624 8625 darwin* | rhapsody*) 8626 8627 8628 archive_cmds_need_lc=no 8629 hardcode_direct=no 8630 hardcode_automatic=yes 8631 hardcode_shlibpath_var=unsupported 8632 whole_archive_flag_spec='' 8633 link_all_deplibs=yes 8634 allow_undefined_flag="$_lt_dar_allow_undefined" 8635 case $cc_basename in 8636 ifort*) _lt_dar_can_shared=yes ;; 8637 *) _lt_dar_can_shared=$GCC ;; 8638 esac 8639 if test "$_lt_dar_can_shared" = "yes"; then 8640 output_verbose_link_cmd=echo 8641 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8642 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8643 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}" 8644 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}" 8645 8646 else 8647 ld_shlibs=no 8648 fi 8649 8650 ;; 8651 8652 dgux*) 8653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8654 hardcode_libdir_flag_spec='-L$libdir' 8655 hardcode_shlibpath_var=no 8656 ;; 8657 8658 freebsd1*) 8659 ld_shlibs=no 8660 ;; 8661 8662 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8663 # support. Future versions do this automatically, but an explicit c++rt0.o 8664 # does not break anything, and helps significantly (at the cost of a little 8665 # extra space). 8666 freebsd2.2*) 8667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8668 hardcode_libdir_flag_spec='-R$libdir' 8669 hardcode_direct=yes 8670 hardcode_shlibpath_var=no 8671 ;; 8672 8673 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8674 freebsd2*) 8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8676 hardcode_direct=yes 8677 hardcode_minus_L=yes 8678 hardcode_shlibpath_var=no 8679 ;; 8680 8681 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8682 freebsd* | dragonfly*) 8683 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8684 hardcode_libdir_flag_spec='-R$libdir' 8685 hardcode_direct=yes 8686 hardcode_shlibpath_var=no 8687 ;; 8688 8689 hpux9*) 8690 if test "$GCC" = yes; then 8691 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' 8692 else 8693 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' 8694 fi 8695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8696 hardcode_libdir_separator=: 8697 hardcode_direct=yes 8698 8699 # hardcode_minus_L: Not really in the search PATH, 8700 # but as the default location of the library. 8701 hardcode_minus_L=yes 8702 export_dynamic_flag_spec='${wl}-E' 8703 ;; 8704 8705 hpux10*) 8706 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8708 else 8709 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8710 fi 8711 if test "$with_gnu_ld" = no; then 8712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8713 hardcode_libdir_flag_spec_ld='+b $libdir' 8714 hardcode_libdir_separator=: 8715 hardcode_direct=yes 8716 hardcode_direct_absolute=yes 8717 export_dynamic_flag_spec='${wl}-E' 8718 # hardcode_minus_L: Not really in the search PATH, 8719 # but as the default location of the library. 8720 hardcode_minus_L=yes 8721 fi 8722 ;; 8723 8724 hpux11*) 8725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8726 case $host_cpu in 8727 hppa*64*) 8728 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8729 ;; 8730 ia64*) 8731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8732 ;; 8733 *) 8734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8735 ;; 8736 esac 8737 else 8738 case $host_cpu in 8739 hppa*64*) 8740 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8741 ;; 8742 ia64*) 8743 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8744 ;; 8745 *) 8746 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8747 ;; 8748 esac 8749 fi 8750 if test "$with_gnu_ld" = no; then 8751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8752 hardcode_libdir_separator=: 8753 8754 case $host_cpu in 8755 hppa*64*|ia64*) 8756 hardcode_direct=no 8757 hardcode_shlibpath_var=no 8758 ;; 8759 *) 8760 hardcode_direct=yes 8761 hardcode_direct_absolute=yes 8762 export_dynamic_flag_spec='${wl}-E' 8763 8764 # hardcode_minus_L: Not really in the search PATH, 8765 # but as the default location of the library. 8766 hardcode_minus_L=yes 8767 ;; 8768 esac 8769 fi 8770 ;; 8771 8772 irix5* | irix6* | nonstopux*) 8773 if test "$GCC" = yes; then 8774 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' 8775 # Try to use the -exported_symbol ld option, if it does not 8776 # work, assume that -exports_file does not work either and 8777 # implicitly export all symbols. 8778 save_LDFLAGS="$LDFLAGS" 8779 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8780 cat >conftest.$ac_ext <<_ACEOF 8781int foo(void) {} 8782_ACEOF 8783rm -f conftest.$ac_objext conftest$ac_exeext 8784if { (ac_try="$ac_link" 8785case "(($ac_try" in 8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8787 *) ac_try_echo=$ac_try;; 8788esac 8789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8790$as_echo "$ac_try_echo") >&5 8791 (eval "$ac_link") 2>conftest.er1 8792 ac_status=$? 8793 grep -v '^ *+' conftest.er1 >conftest.err 8794 rm -f conftest.er1 8795 cat conftest.err >&5 8796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8797 (exit $ac_status); } && { 8798 test -z "$ac_c_werror_flag" || 8799 test ! -s conftest.err 8800 } && test -s conftest$ac_exeext && { 8801 test "$cross_compiling" = yes || 8802 $as_test_x conftest$ac_exeext 8803 }; then 8804 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' 8805 8806else 8807 $as_echo "$as_me: failed program was:" >&5 8808sed 's/^/| /' conftest.$ac_ext >&5 8809 8810 8811fi 8812 8813rm -rf conftest.dSYM 8814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8815 conftest$ac_exeext conftest.$ac_ext 8816 LDFLAGS="$save_LDFLAGS" 8817 else 8818 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' 8819 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' 8820 fi 8821 archive_cmds_need_lc='no' 8822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8823 hardcode_libdir_separator=: 8824 inherit_rpath=yes 8825 link_all_deplibs=yes 8826 ;; 8827 8828 netbsd* | netbsdelf*-gnu) 8829 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8831 else 8832 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8833 fi 8834 hardcode_libdir_flag_spec='-R$libdir' 8835 hardcode_direct=yes 8836 hardcode_shlibpath_var=no 8837 ;; 8838 8839 newsos6) 8840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8841 hardcode_direct=yes 8842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8843 hardcode_libdir_separator=: 8844 hardcode_shlibpath_var=no 8845 ;; 8846 8847 *nto* | *qnx*) 8848 ;; 8849 8850 openbsd*) 8851 if test -f /usr/libexec/ld.so; then 8852 hardcode_direct=yes 8853 hardcode_shlibpath_var=no 8854 hardcode_direct_absolute=yes 8855 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8857 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8858 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8859 export_dynamic_flag_spec='${wl}-E' 8860 else 8861 case $host_os in 8862 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8864 hardcode_libdir_flag_spec='-R$libdir' 8865 ;; 8866 *) 8867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8869 ;; 8870 esac 8871 fi 8872 else 8873 ld_shlibs=no 8874 fi 8875 ;; 8876 8877 os2*) 8878 hardcode_libdir_flag_spec='-L$libdir' 8879 hardcode_minus_L=yes 8880 allow_undefined_flag=unsupported 8881 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' 8882 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8883 ;; 8884 8885 osf3*) 8886 if test "$GCC" = yes; then 8887 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8888 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' 8889 else 8890 allow_undefined_flag=' -expect_unresolved \*' 8891 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' 8892 fi 8893 archive_cmds_need_lc='no' 8894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8895 hardcode_libdir_separator=: 8896 ;; 8897 8898 osf4* | osf5*) # as osf3* with the addition of -msym flag 8899 if test "$GCC" = yes; then 8900 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8901 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' 8902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8903 else 8904 allow_undefined_flag=' -expect_unresolved \*' 8905 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' 8906 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~ 8907 $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' 8908 8909 # Both c and cxx compiler support -rpath directly 8910 hardcode_libdir_flag_spec='-rpath $libdir' 8911 fi 8912 archive_cmds_need_lc='no' 8913 hardcode_libdir_separator=: 8914 ;; 8915 8916 solaris*) 8917 no_undefined_flag=' -z defs' 8918 if test "$GCC" = yes; then 8919 wlarc='${wl}' 8920 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8921 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8922 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8923 else 8924 case `$CC -V 2>&1` in 8925 *"Compilers 5.0"*) 8926 wlarc='' 8927 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8930 ;; 8931 *) 8932 wlarc='${wl}' 8933 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8935 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8936 ;; 8937 esac 8938 fi 8939 hardcode_libdir_flag_spec='-R$libdir' 8940 hardcode_shlibpath_var=no 8941 case $host_os in 8942 solaris2.[0-5] | solaris2.[0-5].*) ;; 8943 *) 8944 # The compiler driver will combine and reorder linker options, 8945 # but understands `-z linker_flag'. GCC discards it without `$wl', 8946 # but is careful enough not to reorder. 8947 # Supported since Solaris 2.6 (maybe 2.5.1?) 8948 if test "$GCC" = yes; then 8949 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8950 else 8951 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8952 fi 8953 ;; 8954 esac 8955 link_all_deplibs=yes 8956 ;; 8957 8958 sunos4*) 8959 if test "x$host_vendor" = xsequent; then 8960 # Use $CC to link under sequent, because it throws in some extra .o 8961 # files that make .init and .fini sections work. 8962 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8963 else 8964 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8965 fi 8966 hardcode_libdir_flag_spec='-L$libdir' 8967 hardcode_direct=yes 8968 hardcode_minus_L=yes 8969 hardcode_shlibpath_var=no 8970 ;; 8971 8972 sysv4) 8973 case $host_vendor in 8974 sni) 8975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8976 hardcode_direct=yes # is this really true??? 8977 ;; 8978 siemens) 8979 ## LD is ld it makes a PLAMLIB 8980 ## CC just makes a GrossModule. 8981 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8982 reload_cmds='$CC -r -o $output$reload_objs' 8983 hardcode_direct=no 8984 ;; 8985 motorola) 8986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8987 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8988 ;; 8989 esac 8990 runpath_var='LD_RUN_PATH' 8991 hardcode_shlibpath_var=no 8992 ;; 8993 8994 sysv4.3*) 8995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8996 hardcode_shlibpath_var=no 8997 export_dynamic_flag_spec='-Bexport' 8998 ;; 8999 9000 sysv4*MP*) 9001 if test -d /usr/nec; then 9002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9003 hardcode_shlibpath_var=no 9004 runpath_var=LD_RUN_PATH 9005 hardcode_runpath_var=yes 9006 ld_shlibs=yes 9007 fi 9008 ;; 9009 9010 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9011 no_undefined_flag='${wl}-z,text' 9012 archive_cmds_need_lc=no 9013 hardcode_shlibpath_var=no 9014 runpath_var='LD_RUN_PATH' 9015 9016 if test "$GCC" = yes; then 9017 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9018 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9019 else 9020 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9021 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9022 fi 9023 ;; 9024 9025 sysv5* | sco3.2v5* | sco5v6*) 9026 # Note: We can NOT use -z defs as we might desire, because we do not 9027 # link with -lc, and that would cause any symbols used from libc to 9028 # always be unresolved, which means just about no library would 9029 # ever link correctly. If we're not using GNU ld we use -z text 9030 # though, which does catch some bad symbols but isn't as heavy-handed 9031 # as -z defs. 9032 no_undefined_flag='${wl}-z,text' 9033 allow_undefined_flag='${wl}-z,nodefs' 9034 archive_cmds_need_lc=no 9035 hardcode_shlibpath_var=no 9036 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9037 hardcode_libdir_separator=':' 9038 link_all_deplibs=yes 9039 export_dynamic_flag_spec='${wl}-Bexport' 9040 runpath_var='LD_RUN_PATH' 9041 9042 if test "$GCC" = yes; then 9043 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9044 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9045 else 9046 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9047 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9048 fi 9049 ;; 9050 9051 uts4*) 9052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9053 hardcode_libdir_flag_spec='-L$libdir' 9054 hardcode_shlibpath_var=no 9055 ;; 9056 9057 *) 9058 ld_shlibs=no 9059 ;; 9060 esac 9061 9062 if test x$host_vendor = xsni; then 9063 case $host in 9064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9065 export_dynamic_flag_spec='${wl}-Blargedynsym' 9066 ;; 9067 esac 9068 fi 9069 fi 9070 9071{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9072$as_echo "$ld_shlibs" >&6; } 9073test "$ld_shlibs" = no && can_build_shared=no 9074 9075with_gnu_ld=$with_gnu_ld 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091# 9092# Do we need to explicitly link libc? 9093# 9094case "x$archive_cmds_need_lc" in 9095x|xyes) 9096 # Assume -lc should be added 9097 archive_cmds_need_lc=yes 9098 9099 if test "$enable_shared" = yes && test "$GCC" = yes; then 9100 case $archive_cmds in 9101 *'~'*) 9102 # FIXME: we may have to deal with multi-command sequences. 9103 ;; 9104 '$CC '*) 9105 # Test whether the compiler implicitly links with -lc since on some 9106 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9107 # to ld, don't add -lc before -lgcc. 9108 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9109$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9110 $RM conftest* 9111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9112 9113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9114 (eval $ac_compile) 2>&5 9115 ac_status=$? 9116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9117 (exit $ac_status); } 2>conftest.err; then 9118 soname=conftest 9119 lib=conftest 9120 libobjs=conftest.$ac_objext 9121 deplibs= 9122 wl=$lt_prog_compiler_wl 9123 pic_flag=$lt_prog_compiler_pic 9124 compiler_flags=-v 9125 linker_flags=-v 9126 verstring= 9127 output_objdir=. 9128 libname=conftest 9129 lt_save_allow_undefined_flag=$allow_undefined_flag 9130 allow_undefined_flag= 9131 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9132 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9133 ac_status=$? 9134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9135 (exit $ac_status); } 9136 then 9137 archive_cmds_need_lc=no 9138 else 9139 archive_cmds_need_lc=yes 9140 fi 9141 allow_undefined_flag=$lt_save_allow_undefined_flag 9142 else 9143 cat conftest.err 1>&5 9144 fi 9145 $RM conftest* 9146 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9147$as_echo "$archive_cmds_need_lc" >&6; } 9148 ;; 9149 esac 9150 fi 9151 ;; 9152esac 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9311$as_echo_n "checking dynamic linker characteristics... " >&6; } 9312 9313if test "$GCC" = yes; then 9314 case $host_os in 9315 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9316 *) lt_awk_arg="/^libraries:/" ;; 9317 esac 9318 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9319 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9320 # if the path contains ";" then we assume it to be the separator 9321 # otherwise default to the standard path separator (i.e. ":") - it is 9322 # assumed that no part of a normal pathname contains ";" but that should 9323 # okay in the real world where ";" in dirpaths is itself problematic. 9324 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9325 else 9326 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9327 fi 9328 # Ok, now we have the path, separated by spaces, we can step through it 9329 # and add multilib dir if necessary. 9330 lt_tmp_lt_search_path_spec= 9331 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9332 for lt_sys_path in $lt_search_path_spec; do 9333 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9334 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9335 else 9336 test -d "$lt_sys_path" && \ 9337 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9338 fi 9339 done 9340 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9341BEGIN {RS=" "; FS="/|\n";} { 9342 lt_foo=""; 9343 lt_count=0; 9344 for (lt_i = NF; lt_i > 0; lt_i--) { 9345 if ($lt_i != "" && $lt_i != ".") { 9346 if ($lt_i == "..") { 9347 lt_count++; 9348 } else { 9349 if (lt_count == 0) { 9350 lt_foo="/" $lt_i lt_foo; 9351 } else { 9352 lt_count--; 9353 } 9354 } 9355 } 9356 } 9357 if (lt_foo != "") { lt_freq[lt_foo]++; } 9358 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9359}'` 9360 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9361else 9362 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9363fi 9364library_names_spec= 9365libname_spec='lib$name' 9366soname_spec= 9367shrext_cmds=".so" 9368postinstall_cmds= 9369postuninstall_cmds= 9370finish_cmds= 9371finish_eval= 9372shlibpath_var= 9373shlibpath_overrides_runpath=unknown 9374version_type=none 9375dynamic_linker="$host_os ld.so" 9376sys_lib_dlsearch_path_spec="/lib /usr/lib" 9377need_lib_prefix=unknown 9378hardcode_into_libs=no 9379 9380# when you set need_version to no, make sure it does not cause -set_version 9381# flags to be left without arguments 9382need_version=unknown 9383 9384case $host_os in 9385aix3*) 9386 version_type=linux 9387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9388 shlibpath_var=LIBPATH 9389 9390 # AIX 3 has no versioning support, so we append a major version to the name. 9391 soname_spec='${libname}${release}${shared_ext}$major' 9392 ;; 9393 9394aix[4-9]*) 9395 version_type=linux 9396 need_lib_prefix=no 9397 need_version=no 9398 hardcode_into_libs=yes 9399 if test "$host_cpu" = ia64; then 9400 # AIX 5 supports IA64 9401 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9402 shlibpath_var=LD_LIBRARY_PATH 9403 else 9404 # With GCC up to 2.95.x, collect2 would create an import file 9405 # for dependence libraries. The import file would start with 9406 # the line `#! .'. This would cause the generated library to 9407 # depend on `.', always an invalid library. This was fixed in 9408 # development snapshots of GCC prior to 3.0. 9409 case $host_os in 9410 aix4 | aix4.[01] | aix4.[01].*) 9411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9412 echo ' yes ' 9413 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9414 : 9415 else 9416 can_build_shared=no 9417 fi 9418 ;; 9419 esac 9420 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9421 # soname into executable. Probably we can add versioning support to 9422 # collect2, so additional links can be useful in future. 9423 if test "$aix_use_runtimelinking" = yes; then 9424 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9425 # instead of lib<name>.a to let people know that these are not 9426 # typical AIX shared libraries. 9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9428 else 9429 # We preserve .a as extension for shared libraries through AIX4.2 9430 # and later when we are not doing run time linking. 9431 library_names_spec='${libname}${release}.a $libname.a' 9432 soname_spec='${libname}${release}${shared_ext}$major' 9433 fi 9434 shlibpath_var=LIBPATH 9435 fi 9436 ;; 9437 9438amigaos*) 9439 case $host_cpu in 9440 powerpc) 9441 # Since July 2007 AmigaOS4 officially supports .so libraries. 9442 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9444 ;; 9445 m68k) 9446 library_names_spec='$libname.ixlibrary $libname.a' 9447 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9448 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' 9449 ;; 9450 esac 9451 ;; 9452 9453beos*) 9454 library_names_spec='${libname}${shared_ext}' 9455 dynamic_linker="$host_os ld.so" 9456 shlibpath_var=LIBRARY_PATH 9457 ;; 9458 9459bsdi[45]*) 9460 version_type=linux 9461 need_version=no 9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9463 soname_spec='${libname}${release}${shared_ext}$major' 9464 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9465 shlibpath_var=LD_LIBRARY_PATH 9466 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9467 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9468 # the default ld.so.conf also contains /usr/contrib/lib and 9469 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9470 # libtool to hard-code these into programs 9471 ;; 9472 9473cygwin* | mingw* | pw32* | cegcc*) 9474 version_type=windows 9475 shrext_cmds=".dll" 9476 need_version=no 9477 need_lib_prefix=no 9478 9479 case $GCC,$host_os in 9480 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9481 library_names_spec='$libname.dll.a' 9482 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9483 postinstall_cmds='base_file=`basename \${file}`~ 9484 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9485 dldir=$destdir/`dirname \$dlpath`~ 9486 test -d \$dldir || mkdir -p \$dldir~ 9487 $install_prog $dir/$dlname \$dldir/$dlname~ 9488 chmod a+x \$dldir/$dlname~ 9489 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9490 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9491 fi' 9492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9493 dlpath=$dir/\$dldll~ 9494 $RM \$dlpath' 9495 shlibpath_overrides_runpath=yes 9496 9497 case $host_os in 9498 cygwin*) 9499 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9500 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9501 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9502 ;; 9503 mingw* | cegcc*) 9504 # MinGW DLLs use traditional 'lib' prefix 9505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9506 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9507 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9508 # It is most probably a Windows format PATH printed by 9509 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9510 # path with ; separators, and with drive letters. We can handle the 9511 # drive letters (cygwin fileutils understands them), so leave them, 9512 # especially as we might pass files found there to a mingw objdump, 9513 # which wouldn't understand a cygwinified path. Ahh. 9514 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9515 else 9516 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9517 fi 9518 ;; 9519 pw32*) 9520 # pw32 DLLs use 'pw' prefix rather than 'lib' 9521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9522 ;; 9523 esac 9524 ;; 9525 9526 *) 9527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9528 ;; 9529 esac 9530 dynamic_linker='Win32 ld.exe' 9531 # FIXME: first we should search . and the directory the executable is in 9532 shlibpath_var=PATH 9533 ;; 9534 9535darwin* | rhapsody*) 9536 dynamic_linker="$host_os dyld" 9537 version_type=darwin 9538 need_lib_prefix=no 9539 need_version=no 9540 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9541 soname_spec='${libname}${release}${major}$shared_ext' 9542 shlibpath_overrides_runpath=yes 9543 shlibpath_var=DYLD_LIBRARY_PATH 9544 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9545 9546 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9547 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9548 ;; 9549 9550dgux*) 9551 version_type=linux 9552 need_lib_prefix=no 9553 need_version=no 9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9555 soname_spec='${libname}${release}${shared_ext}$major' 9556 shlibpath_var=LD_LIBRARY_PATH 9557 ;; 9558 9559freebsd1*) 9560 dynamic_linker=no 9561 ;; 9562 9563freebsd* | dragonfly*) 9564 # DragonFly does not have aout. When/if they implement a new 9565 # versioning mechanism, adjust this. 9566 if test -x /usr/bin/objformat; then 9567 objformat=`/usr/bin/objformat` 9568 else 9569 case $host_os in 9570 freebsd[123]*) objformat=aout ;; 9571 *) objformat=elf ;; 9572 esac 9573 fi 9574 version_type=freebsd-$objformat 9575 case $version_type in 9576 freebsd-elf*) 9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9578 need_version=no 9579 need_lib_prefix=no 9580 ;; 9581 freebsd-*) 9582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9583 need_version=yes 9584 ;; 9585 esac 9586 shlibpath_var=LD_LIBRARY_PATH 9587 case $host_os in 9588 freebsd2*) 9589 shlibpath_overrides_runpath=yes 9590 ;; 9591 freebsd3.[01]* | freebsdelf3.[01]*) 9592 shlibpath_overrides_runpath=yes 9593 hardcode_into_libs=yes 9594 ;; 9595 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9596 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9597 shlibpath_overrides_runpath=no 9598 hardcode_into_libs=yes 9599 ;; 9600 *) # from 4.6 on, and DragonFly 9601 shlibpath_overrides_runpath=yes 9602 hardcode_into_libs=yes 9603 ;; 9604 esac 9605 ;; 9606 9607gnu*) 9608 version_type=linux 9609 need_lib_prefix=no 9610 need_version=no 9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9612 soname_spec='${libname}${release}${shared_ext}$major' 9613 shlibpath_var=LD_LIBRARY_PATH 9614 hardcode_into_libs=yes 9615 ;; 9616 9617hpux9* | hpux10* | hpux11*) 9618 # Give a soname corresponding to the major version so that dld.sl refuses to 9619 # link against other versions. 9620 version_type=sunos 9621 need_lib_prefix=no 9622 need_version=no 9623 case $host_cpu in 9624 ia64*) 9625 shrext_cmds='.so' 9626 hardcode_into_libs=yes 9627 dynamic_linker="$host_os dld.so" 9628 shlibpath_var=LD_LIBRARY_PATH 9629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9631 soname_spec='${libname}${release}${shared_ext}$major' 9632 if test "X$HPUX_IA64_MODE" = X32; then 9633 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9634 else 9635 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9636 fi 9637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9638 ;; 9639 hppa*64*) 9640 shrext_cmds='.sl' 9641 hardcode_into_libs=yes 9642 dynamic_linker="$host_os dld.sl" 9643 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9646 soname_spec='${libname}${release}${shared_ext}$major' 9647 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9649 ;; 9650 *) 9651 shrext_cmds='.sl' 9652 dynamic_linker="$host_os dld.sl" 9653 shlibpath_var=SHLIB_PATH 9654 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9656 soname_spec='${libname}${release}${shared_ext}$major' 9657 ;; 9658 esac 9659 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9660 postinstall_cmds='chmod 555 $lib' 9661 ;; 9662 9663interix[3-9]*) 9664 version_type=linux 9665 need_lib_prefix=no 9666 need_version=no 9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9668 soname_spec='${libname}${release}${shared_ext}$major' 9669 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9670 shlibpath_var=LD_LIBRARY_PATH 9671 shlibpath_overrides_runpath=no 9672 hardcode_into_libs=yes 9673 ;; 9674 9675irix5* | irix6* | nonstopux*) 9676 case $host_os in 9677 nonstopux*) version_type=nonstopux ;; 9678 *) 9679 if test "$lt_cv_prog_gnu_ld" = yes; then 9680 version_type=linux 9681 else 9682 version_type=irix 9683 fi ;; 9684 esac 9685 need_lib_prefix=no 9686 need_version=no 9687 soname_spec='${libname}${release}${shared_ext}$major' 9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9689 case $host_os in 9690 irix5* | nonstopux*) 9691 libsuff= shlibsuff= 9692 ;; 9693 *) 9694 case $LD in # libtool.m4 will add one of these switches to LD 9695 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9696 libsuff= shlibsuff= libmagic=32-bit;; 9697 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9698 libsuff=32 shlibsuff=N32 libmagic=N32;; 9699 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9700 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9701 *) libsuff= shlibsuff= libmagic=never-match;; 9702 esac 9703 ;; 9704 esac 9705 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9706 shlibpath_overrides_runpath=no 9707 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9708 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9709 hardcode_into_libs=yes 9710 ;; 9711 9712# No shared lib support for Linux oldld, aout, or coff. 9713linux*oldld* | linux*aout* | linux*coff*) 9714 dynamic_linker=no 9715 ;; 9716 9717# This must be Linux ELF. 9718linux* | k*bsd*-gnu) 9719 version_type=linux 9720 need_lib_prefix=no 9721 need_version=no 9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9723 soname_spec='${libname}${release}${shared_ext}$major' 9724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9725 shlibpath_var=LD_LIBRARY_PATH 9726 shlibpath_overrides_runpath=no 9727 # Some binutils ld are patched to set DT_RUNPATH 9728 save_LDFLAGS=$LDFLAGS 9729 save_libdir=$libdir 9730 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9731 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9732 cat >conftest.$ac_ext <<_ACEOF 9733/* confdefs.h. */ 9734_ACEOF 9735cat confdefs.h >>conftest.$ac_ext 9736cat >>conftest.$ac_ext <<_ACEOF 9737/* end confdefs.h. */ 9738 9739int 9740main () 9741{ 9742 9743 ; 9744 return 0; 9745} 9746_ACEOF 9747rm -f conftest.$ac_objext conftest$ac_exeext 9748if { (ac_try="$ac_link" 9749case "(($ac_try" in 9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9751 *) ac_try_echo=$ac_try;; 9752esac 9753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9754$as_echo "$ac_try_echo") >&5 9755 (eval "$ac_link") 2>conftest.er1 9756 ac_status=$? 9757 grep -v '^ *+' conftest.er1 >conftest.err 9758 rm -f conftest.er1 9759 cat conftest.err >&5 9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9761 (exit $ac_status); } && { 9762 test -z "$ac_c_werror_flag" || 9763 test ! -s conftest.err 9764 } && test -s conftest$ac_exeext && { 9765 test "$cross_compiling" = yes || 9766 $as_test_x conftest$ac_exeext 9767 }; then 9768 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9769 shlibpath_overrides_runpath=yes 9770fi 9771 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 9782 LDFLAGS=$save_LDFLAGS 9783 libdir=$save_libdir 9784 9785 # This implies no fast_install, which is unacceptable. 9786 # Some rework will be needed to allow for fast_install 9787 # before this can be enabled. 9788 hardcode_into_libs=yes 9789 9790 # Append ld.so.conf contents to the search path 9791 if test -f /etc/ld.so.conf; then 9792 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' ' '` 9793 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9794 fi 9795 9796 # We used to test for /lib/ld.so.1 and disable shared libraries on 9797 # powerpc, because MkLinux only supported shared libraries with the 9798 # GNU dynamic linker. Since this was broken with cross compilers, 9799 # most powerpc-linux boxes support dynamic linking these days and 9800 # people can always --disable-shared, the test was removed, and we 9801 # assume the GNU/Linux dynamic linker is in use. 9802 dynamic_linker='GNU/Linux ld.so' 9803 ;; 9804 9805netbsdelf*-gnu) 9806 version_type=linux 9807 need_lib_prefix=no 9808 need_version=no 9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9810 soname_spec='${libname}${release}${shared_ext}$major' 9811 shlibpath_var=LD_LIBRARY_PATH 9812 shlibpath_overrides_runpath=no 9813 hardcode_into_libs=yes 9814 dynamic_linker='NetBSD ld.elf_so' 9815 ;; 9816 9817netbsd*) 9818 version_type=sunos 9819 need_lib_prefix=no 9820 need_version=no 9821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9824 dynamic_linker='NetBSD (a.out) ld.so' 9825 else 9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9827 soname_spec='${libname}${release}${shared_ext}$major' 9828 dynamic_linker='NetBSD ld.elf_so' 9829 fi 9830 shlibpath_var=LD_LIBRARY_PATH 9831 shlibpath_overrides_runpath=yes 9832 hardcode_into_libs=yes 9833 ;; 9834 9835newsos6) 9836 version_type=linux 9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9838 shlibpath_var=LD_LIBRARY_PATH 9839 shlibpath_overrides_runpath=yes 9840 ;; 9841 9842*nto* | *qnx*) 9843 version_type=qnx 9844 need_lib_prefix=no 9845 need_version=no 9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9847 soname_spec='${libname}${release}${shared_ext}$major' 9848 shlibpath_var=LD_LIBRARY_PATH 9849 shlibpath_overrides_runpath=no 9850 hardcode_into_libs=yes 9851 dynamic_linker='ldqnx.so' 9852 ;; 9853 9854openbsd*) 9855 version_type=sunos 9856 sys_lib_dlsearch_path_spec="/usr/lib" 9857 need_lib_prefix=no 9858 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9859 case $host_os in 9860 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9861 *) need_version=no ;; 9862 esac 9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9865 shlibpath_var=LD_LIBRARY_PATH 9866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9867 case $host_os in 9868 openbsd2.[89] | openbsd2.[89].*) 9869 shlibpath_overrides_runpath=no 9870 ;; 9871 *) 9872 shlibpath_overrides_runpath=yes 9873 ;; 9874 esac 9875 else 9876 shlibpath_overrides_runpath=yes 9877 fi 9878 ;; 9879 9880os2*) 9881 libname_spec='$name' 9882 shrext_cmds=".dll" 9883 need_lib_prefix=no 9884 library_names_spec='$libname${shared_ext} $libname.a' 9885 dynamic_linker='OS/2 ld.exe' 9886 shlibpath_var=LIBPATH 9887 ;; 9888 9889osf3* | osf4* | osf5*) 9890 version_type=osf 9891 need_lib_prefix=no 9892 need_version=no 9893 soname_spec='${libname}${release}${shared_ext}$major' 9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9895 shlibpath_var=LD_LIBRARY_PATH 9896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9897 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9898 ;; 9899 9900rdos*) 9901 dynamic_linker=no 9902 ;; 9903 9904solaris*) 9905 version_type=linux 9906 need_lib_prefix=no 9907 need_version=no 9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9909 soname_spec='${libname}${release}${shared_ext}$major' 9910 shlibpath_var=LD_LIBRARY_PATH 9911 shlibpath_overrides_runpath=yes 9912 hardcode_into_libs=yes 9913 # ldd complains unless libraries are executable 9914 postinstall_cmds='chmod +x $lib' 9915 ;; 9916 9917sunos4*) 9918 version_type=sunos 9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9921 shlibpath_var=LD_LIBRARY_PATH 9922 shlibpath_overrides_runpath=yes 9923 if test "$with_gnu_ld" = yes; then 9924 need_lib_prefix=no 9925 fi 9926 need_version=yes 9927 ;; 9928 9929sysv4 | sysv4.3*) 9930 version_type=linux 9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9932 soname_spec='${libname}${release}${shared_ext}$major' 9933 shlibpath_var=LD_LIBRARY_PATH 9934 case $host_vendor in 9935 sni) 9936 shlibpath_overrides_runpath=no 9937 need_lib_prefix=no 9938 runpath_var=LD_RUN_PATH 9939 ;; 9940 siemens) 9941 need_lib_prefix=no 9942 ;; 9943 motorola) 9944 need_lib_prefix=no 9945 need_version=no 9946 shlibpath_overrides_runpath=no 9947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9948 ;; 9949 esac 9950 ;; 9951 9952sysv4*MP*) 9953 if test -d /usr/nec ;then 9954 version_type=linux 9955 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9956 soname_spec='$libname${shared_ext}.$major' 9957 shlibpath_var=LD_LIBRARY_PATH 9958 fi 9959 ;; 9960 9961sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9962 version_type=freebsd-elf 9963 need_lib_prefix=no 9964 need_version=no 9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9966 soname_spec='${libname}${release}${shared_ext}$major' 9967 shlibpath_var=LD_LIBRARY_PATH 9968 shlibpath_overrides_runpath=yes 9969 hardcode_into_libs=yes 9970 if test "$with_gnu_ld" = yes; then 9971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9972 else 9973 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9974 case $host_os in 9975 sco3.2v5*) 9976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9977 ;; 9978 esac 9979 fi 9980 sys_lib_dlsearch_path_spec='/usr/lib' 9981 ;; 9982 9983tpf*) 9984 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9985 version_type=linux 9986 need_lib_prefix=no 9987 need_version=no 9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9989 shlibpath_var=LD_LIBRARY_PATH 9990 shlibpath_overrides_runpath=no 9991 hardcode_into_libs=yes 9992 ;; 9993 9994uts4*) 9995 version_type=linux 9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9997 soname_spec='${libname}${release}${shared_ext}$major' 9998 shlibpath_var=LD_LIBRARY_PATH 9999 ;; 10000 10001*) 10002 dynamic_linker=no 10003 ;; 10004esac 10005{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10006$as_echo "$dynamic_linker" >&6; } 10007test "$dynamic_linker" = no && can_build_shared=no 10008 10009variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10010if test "$GCC" = yes; then 10011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10012fi 10013 10014if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10015 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10016fi 10017if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10018 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10019fi 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10108$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10109hardcode_action= 10110if test -n "$hardcode_libdir_flag_spec" || 10111 test -n "$runpath_var" || 10112 test "X$hardcode_automatic" = "Xyes" ; then 10113 10114 # We can hardcode non-existent directories. 10115 if test "$hardcode_direct" != no && 10116 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10117 # have to relink, otherwise we might link with an installed library 10118 # when we should be linking with a yet-to-be-installed one 10119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10120 test "$hardcode_minus_L" != no; then 10121 # Linking always hardcodes the temporary library directory. 10122 hardcode_action=relink 10123 else 10124 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10125 hardcode_action=immediate 10126 fi 10127else 10128 # We cannot hardcode anything, or else we can only hardcode existing 10129 # directories. 10130 hardcode_action=unsupported 10131fi 10132{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10133$as_echo "$hardcode_action" >&6; } 10134 10135if test "$hardcode_action" = relink || 10136 test "$inherit_rpath" = yes; then 10137 # Fast installation is not supported 10138 enable_fast_install=no 10139elif test "$shlibpath_overrides_runpath" = yes || 10140 test "$enable_shared" = no; then 10141 # Fast installation is not necessary 10142 enable_fast_install=needless 10143fi 10144 10145 10146 10147 10148 10149 10150 if test "x$enable_dlopen" != xyes; then 10151 enable_dlopen=unknown 10152 enable_dlopen_self=unknown 10153 enable_dlopen_self_static=unknown 10154else 10155 lt_cv_dlopen=no 10156 lt_cv_dlopen_libs= 10157 10158 case $host_os in 10159 beos*) 10160 lt_cv_dlopen="load_add_on" 10161 lt_cv_dlopen_libs= 10162 lt_cv_dlopen_self=yes 10163 ;; 10164 10165 mingw* | pw32* | cegcc*) 10166 lt_cv_dlopen="LoadLibrary" 10167 lt_cv_dlopen_libs= 10168 ;; 10169 10170 cygwin*) 10171 lt_cv_dlopen="dlopen" 10172 lt_cv_dlopen_libs= 10173 ;; 10174 10175 darwin*) 10176 # if libdl is installed we need to link against it 10177 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10178$as_echo_n "checking for dlopen in -ldl... " >&6; } 10179if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10180 $as_echo_n "(cached) " >&6 10181else 10182 ac_check_lib_save_LIBS=$LIBS 10183LIBS="-ldl $LIBS" 10184cat >conftest.$ac_ext <<_ACEOF 10185/* confdefs.h. */ 10186_ACEOF 10187cat confdefs.h >>conftest.$ac_ext 10188cat >>conftest.$ac_ext <<_ACEOF 10189/* end confdefs.h. */ 10190 10191/* Override any GCC internal prototype to avoid an error. 10192 Use char because int might match the return type of a GCC 10193 builtin and then its argument prototype would still apply. */ 10194#ifdef __cplusplus 10195extern "C" 10196#endif 10197char dlopen (); 10198int 10199main () 10200{ 10201return dlopen (); 10202 ; 10203 return 0; 10204} 10205_ACEOF 10206rm -f conftest.$ac_objext conftest$ac_exeext 10207if { (ac_try="$ac_link" 10208case "(($ac_try" in 10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10210 *) ac_try_echo=$ac_try;; 10211esac 10212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10213$as_echo "$ac_try_echo") >&5 10214 (eval "$ac_link") 2>conftest.er1 10215 ac_status=$? 10216 grep -v '^ *+' conftest.er1 >conftest.err 10217 rm -f conftest.er1 10218 cat conftest.err >&5 10219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10220 (exit $ac_status); } && { 10221 test -z "$ac_c_werror_flag" || 10222 test ! -s conftest.err 10223 } && test -s conftest$ac_exeext && { 10224 test "$cross_compiling" = yes || 10225 $as_test_x conftest$ac_exeext 10226 }; then 10227 ac_cv_lib_dl_dlopen=yes 10228else 10229 $as_echo "$as_me: failed program was:" >&5 10230sed 's/^/| /' conftest.$ac_ext >&5 10231 10232 ac_cv_lib_dl_dlopen=no 10233fi 10234 10235rm -rf conftest.dSYM 10236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10237 conftest$ac_exeext conftest.$ac_ext 10238LIBS=$ac_check_lib_save_LIBS 10239fi 10240{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10241$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10242if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10243 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10244else 10245 10246 lt_cv_dlopen="dyld" 10247 lt_cv_dlopen_libs= 10248 lt_cv_dlopen_self=yes 10249 10250fi 10251 10252 ;; 10253 10254 *) 10255 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10256$as_echo_n "checking for shl_load... " >&6; } 10257if test "${ac_cv_func_shl_load+set}" = set; then 10258 $as_echo_n "(cached) " >&6 10259else 10260 cat >conftest.$ac_ext <<_ACEOF 10261/* confdefs.h. */ 10262_ACEOF 10263cat confdefs.h >>conftest.$ac_ext 10264cat >>conftest.$ac_ext <<_ACEOF 10265/* end confdefs.h. */ 10266/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10267 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10268#define shl_load innocuous_shl_load 10269 10270/* System header to define __stub macros and hopefully few prototypes, 10271 which can conflict with char shl_load (); below. 10272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10273 <limits.h> exists even on freestanding compilers. */ 10274 10275#ifdef __STDC__ 10276# include <limits.h> 10277#else 10278# include <assert.h> 10279#endif 10280 10281#undef shl_load 10282 10283/* Override any GCC internal prototype to avoid an error. 10284 Use char because int might match the return type of a GCC 10285 builtin and then its argument prototype would still apply. */ 10286#ifdef __cplusplus 10287extern "C" 10288#endif 10289char shl_load (); 10290/* The GNU C library defines this for functions which it implements 10291 to always fail with ENOSYS. Some functions are actually named 10292 something starting with __ and the normal name is an alias. */ 10293#if defined __stub_shl_load || defined __stub___shl_load 10294choke me 10295#endif 10296 10297int 10298main () 10299{ 10300return shl_load (); 10301 ; 10302 return 0; 10303} 10304_ACEOF 10305rm -f conftest.$ac_objext conftest$ac_exeext 10306if { (ac_try="$ac_link" 10307case "(($ac_try" in 10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10309 *) ac_try_echo=$ac_try;; 10310esac 10311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10312$as_echo "$ac_try_echo") >&5 10313 (eval "$ac_link") 2>conftest.er1 10314 ac_status=$? 10315 grep -v '^ *+' conftest.er1 >conftest.err 10316 rm -f conftest.er1 10317 cat conftest.err >&5 10318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10319 (exit $ac_status); } && { 10320 test -z "$ac_c_werror_flag" || 10321 test ! -s conftest.err 10322 } && test -s conftest$ac_exeext && { 10323 test "$cross_compiling" = yes || 10324 $as_test_x conftest$ac_exeext 10325 }; then 10326 ac_cv_func_shl_load=yes 10327else 10328 $as_echo "$as_me: failed program was:" >&5 10329sed 's/^/| /' conftest.$ac_ext >&5 10330 10331 ac_cv_func_shl_load=no 10332fi 10333 10334rm -rf conftest.dSYM 10335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10336 conftest$ac_exeext conftest.$ac_ext 10337fi 10338{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10339$as_echo "$ac_cv_func_shl_load" >&6; } 10340if test "x$ac_cv_func_shl_load" = x""yes; then 10341 lt_cv_dlopen="shl_load" 10342else 10343 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10344$as_echo_n "checking for shl_load in -ldld... " >&6; } 10345if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10346 $as_echo_n "(cached) " >&6 10347else 10348 ac_check_lib_save_LIBS=$LIBS 10349LIBS="-ldld $LIBS" 10350cat >conftest.$ac_ext <<_ACEOF 10351/* confdefs.h. */ 10352_ACEOF 10353cat confdefs.h >>conftest.$ac_ext 10354cat >>conftest.$ac_ext <<_ACEOF 10355/* end confdefs.h. */ 10356 10357/* Override any GCC internal prototype to avoid an error. 10358 Use char because int might match the return type of a GCC 10359 builtin and then its argument prototype would still apply. */ 10360#ifdef __cplusplus 10361extern "C" 10362#endif 10363char shl_load (); 10364int 10365main () 10366{ 10367return shl_load (); 10368 ; 10369 return 0; 10370} 10371_ACEOF 10372rm -f conftest.$ac_objext conftest$ac_exeext 10373if { (ac_try="$ac_link" 10374case "(($ac_try" in 10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10376 *) ac_try_echo=$ac_try;; 10377esac 10378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10379$as_echo "$ac_try_echo") >&5 10380 (eval "$ac_link") 2>conftest.er1 10381 ac_status=$? 10382 grep -v '^ *+' conftest.er1 >conftest.err 10383 rm -f conftest.er1 10384 cat conftest.err >&5 10385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10386 (exit $ac_status); } && { 10387 test -z "$ac_c_werror_flag" || 10388 test ! -s conftest.err 10389 } && test -s conftest$ac_exeext && { 10390 test "$cross_compiling" = yes || 10391 $as_test_x conftest$ac_exeext 10392 }; then 10393 ac_cv_lib_dld_shl_load=yes 10394else 10395 $as_echo "$as_me: failed program was:" >&5 10396sed 's/^/| /' conftest.$ac_ext >&5 10397 10398 ac_cv_lib_dld_shl_load=no 10399fi 10400 10401rm -rf conftest.dSYM 10402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10403 conftest$ac_exeext conftest.$ac_ext 10404LIBS=$ac_check_lib_save_LIBS 10405fi 10406{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10407$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10408if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10409 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10410else 10411 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10412$as_echo_n "checking for dlopen... " >&6; } 10413if test "${ac_cv_func_dlopen+set}" = set; then 10414 $as_echo_n "(cached) " >&6 10415else 10416 cat >conftest.$ac_ext <<_ACEOF 10417/* confdefs.h. */ 10418_ACEOF 10419cat confdefs.h >>conftest.$ac_ext 10420cat >>conftest.$ac_ext <<_ACEOF 10421/* end confdefs.h. */ 10422/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10423 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10424#define dlopen innocuous_dlopen 10425 10426/* System header to define __stub macros and hopefully few prototypes, 10427 which can conflict with char dlopen (); below. 10428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10429 <limits.h> exists even on freestanding compilers. */ 10430 10431#ifdef __STDC__ 10432# include <limits.h> 10433#else 10434# include <assert.h> 10435#endif 10436 10437#undef dlopen 10438 10439/* Override any GCC internal prototype to avoid an error. 10440 Use char because int might match the return type of a GCC 10441 builtin and then its argument prototype would still apply. */ 10442#ifdef __cplusplus 10443extern "C" 10444#endif 10445char dlopen (); 10446/* The GNU C library defines this for functions which it implements 10447 to always fail with ENOSYS. Some functions are actually named 10448 something starting with __ and the normal name is an alias. */ 10449#if defined __stub_dlopen || defined __stub___dlopen 10450choke me 10451#endif 10452 10453int 10454main () 10455{ 10456return dlopen (); 10457 ; 10458 return 0; 10459} 10460_ACEOF 10461rm -f conftest.$ac_objext conftest$ac_exeext 10462if { (ac_try="$ac_link" 10463case "(($ac_try" in 10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10465 *) ac_try_echo=$ac_try;; 10466esac 10467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10468$as_echo "$ac_try_echo") >&5 10469 (eval "$ac_link") 2>conftest.er1 10470 ac_status=$? 10471 grep -v '^ *+' conftest.er1 >conftest.err 10472 rm -f conftest.er1 10473 cat conftest.err >&5 10474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10475 (exit $ac_status); } && { 10476 test -z "$ac_c_werror_flag" || 10477 test ! -s conftest.err 10478 } && test -s conftest$ac_exeext && { 10479 test "$cross_compiling" = yes || 10480 $as_test_x conftest$ac_exeext 10481 }; then 10482 ac_cv_func_dlopen=yes 10483else 10484 $as_echo "$as_me: failed program was:" >&5 10485sed 's/^/| /' conftest.$ac_ext >&5 10486 10487 ac_cv_func_dlopen=no 10488fi 10489 10490rm -rf conftest.dSYM 10491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10492 conftest$ac_exeext conftest.$ac_ext 10493fi 10494{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10495$as_echo "$ac_cv_func_dlopen" >&6; } 10496if test "x$ac_cv_func_dlopen" = x""yes; then 10497 lt_cv_dlopen="dlopen" 10498else 10499 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10500$as_echo_n "checking for dlopen in -ldl... " >&6; } 10501if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10502 $as_echo_n "(cached) " >&6 10503else 10504 ac_check_lib_save_LIBS=$LIBS 10505LIBS="-ldl $LIBS" 10506cat >conftest.$ac_ext <<_ACEOF 10507/* confdefs.h. */ 10508_ACEOF 10509cat confdefs.h >>conftest.$ac_ext 10510cat >>conftest.$ac_ext <<_ACEOF 10511/* end confdefs.h. */ 10512 10513/* Override any GCC internal prototype to avoid an error. 10514 Use char because int might match the return type of a GCC 10515 builtin and then its argument prototype would still apply. */ 10516#ifdef __cplusplus 10517extern "C" 10518#endif 10519char dlopen (); 10520int 10521main () 10522{ 10523return dlopen (); 10524 ; 10525 return 0; 10526} 10527_ACEOF 10528rm -f conftest.$ac_objext conftest$ac_exeext 10529if { (ac_try="$ac_link" 10530case "(($ac_try" in 10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10532 *) ac_try_echo=$ac_try;; 10533esac 10534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10535$as_echo "$ac_try_echo") >&5 10536 (eval "$ac_link") 2>conftest.er1 10537 ac_status=$? 10538 grep -v '^ *+' conftest.er1 >conftest.err 10539 rm -f conftest.er1 10540 cat conftest.err >&5 10541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10542 (exit $ac_status); } && { 10543 test -z "$ac_c_werror_flag" || 10544 test ! -s conftest.err 10545 } && test -s conftest$ac_exeext && { 10546 test "$cross_compiling" = yes || 10547 $as_test_x conftest$ac_exeext 10548 }; then 10549 ac_cv_lib_dl_dlopen=yes 10550else 10551 $as_echo "$as_me: failed program was:" >&5 10552sed 's/^/| /' conftest.$ac_ext >&5 10553 10554 ac_cv_lib_dl_dlopen=no 10555fi 10556 10557rm -rf conftest.dSYM 10558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10559 conftest$ac_exeext conftest.$ac_ext 10560LIBS=$ac_check_lib_save_LIBS 10561fi 10562{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10563$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10564if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10566else 10567 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10568$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10569if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10570 $as_echo_n "(cached) " >&6 10571else 10572 ac_check_lib_save_LIBS=$LIBS 10573LIBS="-lsvld $LIBS" 10574cat >conftest.$ac_ext <<_ACEOF 10575/* confdefs.h. */ 10576_ACEOF 10577cat confdefs.h >>conftest.$ac_ext 10578cat >>conftest.$ac_ext <<_ACEOF 10579/* end confdefs.h. */ 10580 10581/* Override any GCC internal prototype to avoid an error. 10582 Use char because int might match the return type of a GCC 10583 builtin and then its argument prototype would still apply. */ 10584#ifdef __cplusplus 10585extern "C" 10586#endif 10587char dlopen (); 10588int 10589main () 10590{ 10591return dlopen (); 10592 ; 10593 return 0; 10594} 10595_ACEOF 10596rm -f conftest.$ac_objext conftest$ac_exeext 10597if { (ac_try="$ac_link" 10598case "(($ac_try" in 10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10600 *) ac_try_echo=$ac_try;; 10601esac 10602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10603$as_echo "$ac_try_echo") >&5 10604 (eval "$ac_link") 2>conftest.er1 10605 ac_status=$? 10606 grep -v '^ *+' conftest.er1 >conftest.err 10607 rm -f conftest.er1 10608 cat conftest.err >&5 10609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10610 (exit $ac_status); } && { 10611 test -z "$ac_c_werror_flag" || 10612 test ! -s conftest.err 10613 } && test -s conftest$ac_exeext && { 10614 test "$cross_compiling" = yes || 10615 $as_test_x conftest$ac_exeext 10616 }; then 10617 ac_cv_lib_svld_dlopen=yes 10618else 10619 $as_echo "$as_me: failed program was:" >&5 10620sed 's/^/| /' conftest.$ac_ext >&5 10621 10622 ac_cv_lib_svld_dlopen=no 10623fi 10624 10625rm -rf conftest.dSYM 10626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10627 conftest$ac_exeext conftest.$ac_ext 10628LIBS=$ac_check_lib_save_LIBS 10629fi 10630{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10631$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10632if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10634else 10635 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10636$as_echo_n "checking for dld_link in -ldld... " >&6; } 10637if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10638 $as_echo_n "(cached) " >&6 10639else 10640 ac_check_lib_save_LIBS=$LIBS 10641LIBS="-ldld $LIBS" 10642cat >conftest.$ac_ext <<_ACEOF 10643/* confdefs.h. */ 10644_ACEOF 10645cat confdefs.h >>conftest.$ac_ext 10646cat >>conftest.$ac_ext <<_ACEOF 10647/* end confdefs.h. */ 10648 10649/* Override any GCC internal prototype to avoid an error. 10650 Use char because int might match the return type of a GCC 10651 builtin and then its argument prototype would still apply. */ 10652#ifdef __cplusplus 10653extern "C" 10654#endif 10655char dld_link (); 10656int 10657main () 10658{ 10659return dld_link (); 10660 ; 10661 return 0; 10662} 10663_ACEOF 10664rm -f conftest.$ac_objext conftest$ac_exeext 10665if { (ac_try="$ac_link" 10666case "(($ac_try" in 10667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10668 *) ac_try_echo=$ac_try;; 10669esac 10670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10671$as_echo "$ac_try_echo") >&5 10672 (eval "$ac_link") 2>conftest.er1 10673 ac_status=$? 10674 grep -v '^ *+' conftest.er1 >conftest.err 10675 rm -f conftest.er1 10676 cat conftest.err >&5 10677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10678 (exit $ac_status); } && { 10679 test -z "$ac_c_werror_flag" || 10680 test ! -s conftest.err 10681 } && test -s conftest$ac_exeext && { 10682 test "$cross_compiling" = yes || 10683 $as_test_x conftest$ac_exeext 10684 }; then 10685 ac_cv_lib_dld_dld_link=yes 10686else 10687 $as_echo "$as_me: failed program was:" >&5 10688sed 's/^/| /' conftest.$ac_ext >&5 10689 10690 ac_cv_lib_dld_dld_link=no 10691fi 10692 10693rm -rf conftest.dSYM 10694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10695 conftest$ac_exeext conftest.$ac_ext 10696LIBS=$ac_check_lib_save_LIBS 10697fi 10698{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10699$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10700if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10701 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10702fi 10703 10704 10705fi 10706 10707 10708fi 10709 10710 10711fi 10712 10713 10714fi 10715 10716 10717fi 10718 10719 ;; 10720 esac 10721 10722 if test "x$lt_cv_dlopen" != xno; then 10723 enable_dlopen=yes 10724 else 10725 enable_dlopen=no 10726 fi 10727 10728 case $lt_cv_dlopen in 10729 dlopen) 10730 save_CPPFLAGS="$CPPFLAGS" 10731 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10732 10733 save_LDFLAGS="$LDFLAGS" 10734 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10735 10736 save_LIBS="$LIBS" 10737 LIBS="$lt_cv_dlopen_libs $LIBS" 10738 10739 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10740$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10741if test "${lt_cv_dlopen_self+set}" = set; then 10742 $as_echo_n "(cached) " >&6 10743else 10744 if test "$cross_compiling" = yes; then : 10745 lt_cv_dlopen_self=cross 10746else 10747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10748 lt_status=$lt_dlunknown 10749 cat > conftest.$ac_ext <<_LT_EOF 10750#line 10750 "configure" 10751#include "confdefs.h" 10752 10753#if HAVE_DLFCN_H 10754#include <dlfcn.h> 10755#endif 10756 10757#include <stdio.h> 10758 10759#ifdef RTLD_GLOBAL 10760# define LT_DLGLOBAL RTLD_GLOBAL 10761#else 10762# ifdef DL_GLOBAL 10763# define LT_DLGLOBAL DL_GLOBAL 10764# else 10765# define LT_DLGLOBAL 0 10766# endif 10767#endif 10768 10769/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10770 find out it does not work in some platform. */ 10771#ifndef LT_DLLAZY_OR_NOW 10772# ifdef RTLD_LAZY 10773# define LT_DLLAZY_OR_NOW RTLD_LAZY 10774# else 10775# ifdef DL_LAZY 10776# define LT_DLLAZY_OR_NOW DL_LAZY 10777# else 10778# ifdef RTLD_NOW 10779# define LT_DLLAZY_OR_NOW RTLD_NOW 10780# else 10781# ifdef DL_NOW 10782# define LT_DLLAZY_OR_NOW DL_NOW 10783# else 10784# define LT_DLLAZY_OR_NOW 0 10785# endif 10786# endif 10787# endif 10788# endif 10789#endif 10790 10791void fnord() { int i=42;} 10792int main () 10793{ 10794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10795 int status = $lt_dlunknown; 10796 10797 if (self) 10798 { 10799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10800 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10801 /* dlclose (self); */ 10802 } 10803 else 10804 puts (dlerror ()); 10805 10806 return status; 10807} 10808_LT_EOF 10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10810 (eval $ac_link) 2>&5 10811 ac_status=$? 10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10813 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10814 (./conftest; exit; ) >&5 2>/dev/null 10815 lt_status=$? 10816 case x$lt_status in 10817 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10818 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10819 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10820 esac 10821 else : 10822 # compilation failed 10823 lt_cv_dlopen_self=no 10824 fi 10825fi 10826rm -fr conftest* 10827 10828 10829fi 10830{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10831$as_echo "$lt_cv_dlopen_self" >&6; } 10832 10833 if test "x$lt_cv_dlopen_self" = xyes; then 10834 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10835 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10836$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10837if test "${lt_cv_dlopen_self_static+set}" = set; then 10838 $as_echo_n "(cached) " >&6 10839else 10840 if test "$cross_compiling" = yes; then : 10841 lt_cv_dlopen_self_static=cross 10842else 10843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10844 lt_status=$lt_dlunknown 10845 cat > conftest.$ac_ext <<_LT_EOF 10846#line 10846 "configure" 10847#include "confdefs.h" 10848 10849#if HAVE_DLFCN_H 10850#include <dlfcn.h> 10851#endif 10852 10853#include <stdio.h> 10854 10855#ifdef RTLD_GLOBAL 10856# define LT_DLGLOBAL RTLD_GLOBAL 10857#else 10858# ifdef DL_GLOBAL 10859# define LT_DLGLOBAL DL_GLOBAL 10860# else 10861# define LT_DLGLOBAL 0 10862# endif 10863#endif 10864 10865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10866 find out it does not work in some platform. */ 10867#ifndef LT_DLLAZY_OR_NOW 10868# ifdef RTLD_LAZY 10869# define LT_DLLAZY_OR_NOW RTLD_LAZY 10870# else 10871# ifdef DL_LAZY 10872# define LT_DLLAZY_OR_NOW DL_LAZY 10873# else 10874# ifdef RTLD_NOW 10875# define LT_DLLAZY_OR_NOW RTLD_NOW 10876# else 10877# ifdef DL_NOW 10878# define LT_DLLAZY_OR_NOW DL_NOW 10879# else 10880# define LT_DLLAZY_OR_NOW 0 10881# endif 10882# endif 10883# endif 10884# endif 10885#endif 10886 10887void fnord() { int i=42;} 10888int main () 10889{ 10890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10891 int status = $lt_dlunknown; 10892 10893 if (self) 10894 { 10895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10896 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10897 /* dlclose (self); */ 10898 } 10899 else 10900 puts (dlerror ()); 10901 10902 return status; 10903} 10904_LT_EOF 10905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10906 (eval $ac_link) 2>&5 10907 ac_status=$? 10908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10909 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10910 (./conftest; exit; ) >&5 2>/dev/null 10911 lt_status=$? 10912 case x$lt_status in 10913 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10914 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10915 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10916 esac 10917 else : 10918 # compilation failed 10919 lt_cv_dlopen_self_static=no 10920 fi 10921fi 10922rm -fr conftest* 10923 10924 10925fi 10926{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10927$as_echo "$lt_cv_dlopen_self_static" >&6; } 10928 fi 10929 10930 CPPFLAGS="$save_CPPFLAGS" 10931 LDFLAGS="$save_LDFLAGS" 10932 LIBS="$save_LIBS" 10933 ;; 10934 esac 10935 10936 case $lt_cv_dlopen_self in 10937 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10938 *) enable_dlopen_self=unknown ;; 10939 esac 10940 10941 case $lt_cv_dlopen_self_static in 10942 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10943 *) enable_dlopen_self_static=unknown ;; 10944 esac 10945fi 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963striplib= 10964old_striplib= 10965{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10966$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10967if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10969 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10970 { $as_echo "$as_me:$LINENO: result: yes" >&5 10971$as_echo "yes" >&6; } 10972else 10973# FIXME - insert some real tests, host_os isn't really good enough 10974 case $host_os in 10975 darwin*) 10976 if test -n "$STRIP" ; then 10977 striplib="$STRIP -x" 10978 old_striplib="$STRIP -S" 10979 { $as_echo "$as_me:$LINENO: result: yes" >&5 10980$as_echo "yes" >&6; } 10981 else 10982 { $as_echo "$as_me:$LINENO: result: no" >&5 10983$as_echo "no" >&6; } 10984 fi 10985 ;; 10986 *) 10987 { $as_echo "$as_me:$LINENO: result: no" >&5 10988$as_echo "no" >&6; } 10989 ;; 10990 esac 10991fi 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 # Report which library types will actually be built 11005 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11006$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11007 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11008$as_echo "$can_build_shared" >&6; } 11009 11010 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11011$as_echo_n "checking whether to build shared libraries... " >&6; } 11012 test "$can_build_shared" = "no" && enable_shared=no 11013 11014 # On AIX, shared libraries and static libraries use the same namespace, and 11015 # are all built from PIC. 11016 case $host_os in 11017 aix3*) 11018 test "$enable_shared" = yes && enable_static=no 11019 if test -n "$RANLIB"; then 11020 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11021 postinstall_cmds='$RANLIB $lib' 11022 fi 11023 ;; 11024 11025 aix[4-9]*) 11026 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11027 test "$enable_shared" = yes && enable_static=no 11028 fi 11029 ;; 11030 esac 11031 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11032$as_echo "$enable_shared" >&6; } 11033 11034 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11035$as_echo_n "checking whether to build static libraries... " >&6; } 11036 # Make sure either enable_shared or enable_static is yes. 11037 test "$enable_shared" = yes || enable_static=yes 11038 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11039$as_echo "$enable_static" >&6; } 11040 11041 11042 11043 11044fi 11045ac_ext=c 11046ac_cpp='$CPP $CPPFLAGS' 11047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11049ac_compiler_gnu=$ac_cv_c_compiler_gnu 11050 11051CC="$lt_save_CC" 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 ac_config_commands="$ac_config_commands libtool" 11066 11067 11068 11069 11070# Only expand once: 11071 11072 11073# Find a good install program. We prefer a C program (faster), 11074# so one script is as good as another. But avoid the broken or 11075# incompatible versions: 11076# SysV /etc/install, /usr/sbin/install 11077# SunOS /usr/etc/install 11078# IRIX /sbin/install 11079# AIX /bin/install 11080# AmigaOS /C/install, which installs bootblocks on floppy discs 11081# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11082# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11083# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11084# OS/2's system install, which has a completely different semantic 11085# ./install, which can be erroneously created by make from ./install.sh. 11086# Reject install programs that cannot install multiple files. 11087{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 11088$as_echo_n "checking for a BSD-compatible install... " >&6; } 11089if test -z "$INSTALL"; then 11090if test "${ac_cv_path_install+set}" = set; then 11091 $as_echo_n "(cached) " >&6 11092else 11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11094for as_dir in $PATH 11095do 11096 IFS=$as_save_IFS 11097 test -z "$as_dir" && as_dir=. 11098 # Account for people who put trailing slashes in PATH elements. 11099case $as_dir/ in 11100 ./ | .// | /cC/* | \ 11101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11102 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 11103 /usr/ucb/* ) ;; 11104 *) 11105 # OSF1 and SCO ODT 3.0 have their own names for install. 11106 # Don't use installbsd from OSF since it installs stuff as root 11107 # by default. 11108 for ac_prog in ginstall scoinst install; do 11109 for ac_exec_ext in '' $ac_executable_extensions; do 11110 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 11111 if test $ac_prog = install && 11112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11113 # AIX install. It has an incompatible calling convention. 11114 : 11115 elif test $ac_prog = install && 11116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11117 # program-specific install script used by HP pwplus--don't use. 11118 : 11119 else 11120 rm -rf conftest.one conftest.two conftest.dir 11121 echo one > conftest.one 11122 echo two > conftest.two 11123 mkdir conftest.dir 11124 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 11125 test -s conftest.one && test -s conftest.two && 11126 test -s conftest.dir/conftest.one && 11127 test -s conftest.dir/conftest.two 11128 then 11129 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11130 break 3 11131 fi 11132 fi 11133 fi 11134 done 11135 done 11136 ;; 11137esac 11138 11139done 11140IFS=$as_save_IFS 11141 11142rm -rf conftest.one conftest.two conftest.dir 11143 11144fi 11145 if test "${ac_cv_path_install+set}" = set; then 11146 INSTALL=$ac_cv_path_install 11147 else 11148 # As a last resort, use the slow shell script. Don't cache a 11149 # value for INSTALL within a source directory, because that will 11150 # break other packages using the cache if that directory is 11151 # removed, or if the value is a relative name. 11152 INSTALL=$ac_install_sh 11153 fi 11154fi 11155{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 11156$as_echo "$INSTALL" >&6; } 11157 11158# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11159# It thinks the first close brace ends the variable substitution. 11160test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11161 11162test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11163 11164test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11165 11166 11167 11168 11169 11170for ac_header in string.h strings.h unistd.h 11171do 11172as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11174 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11175$as_echo_n "checking for $ac_header... " >&6; } 11176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11177 $as_echo_n "(cached) " >&6 11178fi 11179ac_res=`eval 'as_val=${'$as_ac_Header'} 11180 $as_echo "$as_val"'` 11181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11182$as_echo "$ac_res" >&6; } 11183else 11184 # Is the header compilable? 11185{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11186$as_echo_n "checking $ac_header usability... " >&6; } 11187cat >conftest.$ac_ext <<_ACEOF 11188/* confdefs.h. */ 11189_ACEOF 11190cat confdefs.h >>conftest.$ac_ext 11191cat >>conftest.$ac_ext <<_ACEOF 11192/* end confdefs.h. */ 11193$ac_includes_default 11194#include <$ac_header> 11195_ACEOF 11196rm -f conftest.$ac_objext 11197if { (ac_try="$ac_compile" 11198case "(($ac_try" in 11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11200 *) ac_try_echo=$ac_try;; 11201esac 11202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11203$as_echo "$ac_try_echo") >&5 11204 (eval "$ac_compile") 2>conftest.er1 11205 ac_status=$? 11206 grep -v '^ *+' conftest.er1 >conftest.err 11207 rm -f conftest.er1 11208 cat conftest.err >&5 11209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11210 (exit $ac_status); } && { 11211 test -z "$ac_c_werror_flag" || 11212 test ! -s conftest.err 11213 } && test -s conftest.$ac_objext; then 11214 ac_header_compiler=yes 11215else 11216 $as_echo "$as_me: failed program was:" >&5 11217sed 's/^/| /' conftest.$ac_ext >&5 11218 11219 ac_header_compiler=no 11220fi 11221 11222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11223{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11224$as_echo "$ac_header_compiler" >&6; } 11225 11226# Is the header present? 11227{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11228$as_echo_n "checking $ac_header presence... " >&6; } 11229cat >conftest.$ac_ext <<_ACEOF 11230/* confdefs.h. */ 11231_ACEOF 11232cat confdefs.h >>conftest.$ac_ext 11233cat >>conftest.$ac_ext <<_ACEOF 11234/* end confdefs.h. */ 11235#include <$ac_header> 11236_ACEOF 11237if { (ac_try="$ac_cpp conftest.$ac_ext" 11238case "(($ac_try" in 11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11240 *) ac_try_echo=$ac_try;; 11241esac 11242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11243$as_echo "$ac_try_echo") >&5 11244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11245 ac_status=$? 11246 grep -v '^ *+' conftest.er1 >conftest.err 11247 rm -f conftest.er1 11248 cat conftest.err >&5 11249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11250 (exit $ac_status); } >/dev/null && { 11251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11252 test ! -s conftest.err 11253 }; then 11254 ac_header_preproc=yes 11255else 11256 $as_echo "$as_me: failed program was:" >&5 11257sed 's/^/| /' conftest.$ac_ext >&5 11258 11259 ac_header_preproc=no 11260fi 11261 11262rm -f conftest.err conftest.$ac_ext 11263{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11264$as_echo "$ac_header_preproc" >&6; } 11265 11266# So? What about this header? 11267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11268 yes:no: ) 11269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11270$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11272$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11273 ac_header_preproc=yes 11274 ;; 11275 no:yes:* ) 11276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11277$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11279$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11281$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11283$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11285$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11287$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11288 11289 ;; 11290esac 11291{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11292$as_echo_n "checking for $ac_header... " >&6; } 11293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11294 $as_echo_n "(cached) " >&6 11295else 11296 eval "$as_ac_Header=\$ac_header_preproc" 11297fi 11298ac_res=`eval 'as_val=${'$as_ac_Header'} 11299 $as_echo "$as_val"'` 11300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11301$as_echo "$ac_res" >&6; } 11302 11303fi 11304as_val=`eval 'as_val=${'$as_ac_Header'} 11305 $as_echo "$as_val"'` 11306 if test "x$as_val" = x""yes; then 11307 cat >>confdefs.h <<_ACEOF 11308#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11309_ACEOF 11310 11311fi 11312 11313done 11314 11315 11316ac_devel_cflags="-g -Wall" 11317 11318# Check whether --enable-devel was given. 11319if test "${enable_devel+set}" = set; then 11320 enableval=$enable_devel; 11321 if test x"$enableval" = xyes ; then 11322 devel="yes" 11323 else 11324 devel="no" 11325 fi 11326 11327fi 11328 11329 11330CHM_MT="-DCHM_MT" 11331CHM_USE_PREAD="-DCHM_USE_PREAD" 11332CHM_USE_IO64="-DCHM_USE_IO64" 11333DMALLOC_DISABLE="-DDMALLOC_DISABLE" 11334 11335EXAMPLES="test_chmLib enum_chmLib enumdir_chmLib extract_chmLib" 11336LDFLAGS="$LDFLAGS" 11337# Check whether --enable-pthread was given. 11338if test "${enable_pthread+set}" = set; then 11339 enableval=$enable_pthread; 11340 if test "$enableval" = "yes"; then 11341 11342{ $as_echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 11343$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 11344if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 11345 $as_echo_n "(cached) " >&6 11346else 11347 ac_check_lib_save_LIBS=$LIBS 11348LIBS="-lpthread $LIBS" 11349cat >conftest.$ac_ext <<_ACEOF 11350/* confdefs.h. */ 11351_ACEOF 11352cat confdefs.h >>conftest.$ac_ext 11353cat >>conftest.$ac_ext <<_ACEOF 11354/* end confdefs.h. */ 11355 11356/* Override any GCC internal prototype to avoid an error. 11357 Use char because int might match the return type of a GCC 11358 builtin and then its argument prototype would still apply. */ 11359#ifdef __cplusplus 11360extern "C" 11361#endif 11362char pthread_mutex_init (); 11363int 11364main () 11365{ 11366return pthread_mutex_init (); 11367 ; 11368 return 0; 11369} 11370_ACEOF 11371rm -f conftest.$ac_objext conftest$ac_exeext 11372if { (ac_try="$ac_link" 11373case "(($ac_try" in 11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11375 *) ac_try_echo=$ac_try;; 11376esac 11377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11378$as_echo "$ac_try_echo") >&5 11379 (eval "$ac_link") 2>conftest.er1 11380 ac_status=$? 11381 grep -v '^ *+' conftest.er1 >conftest.err 11382 rm -f conftest.er1 11383 cat conftest.err >&5 11384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11385 (exit $ac_status); } && { 11386 test -z "$ac_c_werror_flag" || 11387 test ! -s conftest.err 11388 } && test -s conftest$ac_exeext && { 11389 test "$cross_compiling" = yes || 11390 $as_test_x conftest$ac_exeext 11391 }; then 11392 ac_cv_lib_pthread_pthread_mutex_init=yes 11393else 11394 $as_echo "$as_me: failed program was:" >&5 11395sed 's/^/| /' conftest.$ac_ext >&5 11396 11397 ac_cv_lib_pthread_pthread_mutex_init=no 11398fi 11399 11400rm -rf conftest.dSYM 11401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11402 conftest$ac_exeext conftest.$ac_ext 11403LIBS=$ac_check_lib_save_LIBS 11404fi 11405{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 11406$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 11407if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then 11408 cat >>confdefs.h <<_ACEOF 11409#define HAVE_LIBPTHREAD 1 11410_ACEOF 11411 11412 LIBS="-lpthread $LIBS" 11413 11414fi 11415 11416 EXAMPLES="$EXAMPLES chm_http" 11417 LDFLAGS="$LDFLAGS -lpthread" 11418 else 11419 CHM_MT="" 11420 { $as_echo "$as_me:$LINENO: WARNING: Thread safe mode turned off. chm_http will not be built" >&5 11421$as_echo "$as_me: WARNING: Thread safe mode turned off. chm_http will not be built" >&2;} 11422 fi 11423 11424else 11425 11426 11427{ $as_echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 11428$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 11429if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 11430 $as_echo_n "(cached) " >&6 11431else 11432 ac_check_lib_save_LIBS=$LIBS 11433LIBS="-lpthread $LIBS" 11434cat >conftest.$ac_ext <<_ACEOF 11435/* confdefs.h. */ 11436_ACEOF 11437cat confdefs.h >>conftest.$ac_ext 11438cat >>conftest.$ac_ext <<_ACEOF 11439/* end confdefs.h. */ 11440 11441/* Override any GCC internal prototype to avoid an error. 11442 Use char because int might match the return type of a GCC 11443 builtin and then its argument prototype would still apply. */ 11444#ifdef __cplusplus 11445extern "C" 11446#endif 11447char pthread_mutex_init (); 11448int 11449main () 11450{ 11451return pthread_mutex_init (); 11452 ; 11453 return 0; 11454} 11455_ACEOF 11456rm -f conftest.$ac_objext conftest$ac_exeext 11457if { (ac_try="$ac_link" 11458case "(($ac_try" in 11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11460 *) ac_try_echo=$ac_try;; 11461esac 11462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11463$as_echo "$ac_try_echo") >&5 11464 (eval "$ac_link") 2>conftest.er1 11465 ac_status=$? 11466 grep -v '^ *+' conftest.er1 >conftest.err 11467 rm -f conftest.er1 11468 cat conftest.err >&5 11469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11470 (exit $ac_status); } && { 11471 test -z "$ac_c_werror_flag" || 11472 test ! -s conftest.err 11473 } && test -s conftest$ac_exeext && { 11474 test "$cross_compiling" = yes || 11475 $as_test_x conftest$ac_exeext 11476 }; then 11477 ac_cv_lib_pthread_pthread_mutex_init=yes 11478else 11479 $as_echo "$as_me: failed program was:" >&5 11480sed 's/^/| /' conftest.$ac_ext >&5 11481 11482 ac_cv_lib_pthread_pthread_mutex_init=no 11483fi 11484 11485rm -rf conftest.dSYM 11486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11487 conftest$ac_exeext conftest.$ac_ext 11488LIBS=$ac_check_lib_save_LIBS 11489fi 11490{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 11491$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 11492if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then 11493 cat >>confdefs.h <<_ACEOF 11494#define HAVE_LIBPTHREAD 1 11495_ACEOF 11496 11497 LIBS="-lpthread $LIBS" 11498 11499fi 11500 11501 EXAMPLES="$EXAMPLES chm_http" 11502 LDFLAGS="$LDFLAGS -lpthread" 11503 11504fi 11505 11506 11507# Check whether --enable-io64 was given. 11508if test "${enable_io64+set}" = set; then 11509 enableval=$enable_io64; 11510 if test "$enableval" = "no"; then 11511 CHM_USE_IO64="" 11512 fi 11513 11514fi 11515 11516 11517# Check whether --enable-pread was given. 11518if test "${enable_pread+set}" = set; then 11519 enableval=$enable_pread; 11520 if test "$enableval" = "no"; then 11521 CHM_USE_PREAD="" 11522 fi 11523 11524fi 11525 11526 11527# Check whether --enable-dmalloc was given. 11528if test "${enable_dmalloc+set}" = set; then 11529 enableval=$enable_dmalloc; 11530 if test "$enableval" = "yes"; then 11531 DMALLOC_DISABLE="" 11532 fi 11533 11534fi 11535 11536 11537 11538if test -n "$CHM_USE_IO64"; then 11539 { $as_echo "$as_me:$LINENO: checking for lseek64" >&5 11540$as_echo_n "checking for lseek64... " >&6; } 11541if test "${ac_cv_func_lseek64+set}" = set; then 11542 $as_echo_n "(cached) " >&6 11543else 11544 cat >conftest.$ac_ext <<_ACEOF 11545/* confdefs.h. */ 11546_ACEOF 11547cat confdefs.h >>conftest.$ac_ext 11548cat >>conftest.$ac_ext <<_ACEOF 11549/* end confdefs.h. */ 11550/* Define lseek64 to an innocuous variant, in case <limits.h> declares lseek64. 11551 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11552#define lseek64 innocuous_lseek64 11553 11554/* System header to define __stub macros and hopefully few prototypes, 11555 which can conflict with char lseek64 (); below. 11556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11557 <limits.h> exists even on freestanding compilers. */ 11558 11559#ifdef __STDC__ 11560# include <limits.h> 11561#else 11562# include <assert.h> 11563#endif 11564 11565#undef lseek64 11566 11567/* Override any GCC internal prototype to avoid an error. 11568 Use char because int might match the return type of a GCC 11569 builtin and then its argument prototype would still apply. */ 11570#ifdef __cplusplus 11571extern "C" 11572#endif 11573char lseek64 (); 11574/* The GNU C library defines this for functions which it implements 11575 to always fail with ENOSYS. Some functions are actually named 11576 something starting with __ and the normal name is an alias. */ 11577#if defined __stub_lseek64 || defined __stub___lseek64 11578choke me 11579#endif 11580 11581int 11582main () 11583{ 11584return lseek64 (); 11585 ; 11586 return 0; 11587} 11588_ACEOF 11589rm -f conftest.$ac_objext conftest$ac_exeext 11590if { (ac_try="$ac_link" 11591case "(($ac_try" in 11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11593 *) ac_try_echo=$ac_try;; 11594esac 11595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11596$as_echo "$ac_try_echo") >&5 11597 (eval "$ac_link") 2>conftest.er1 11598 ac_status=$? 11599 grep -v '^ *+' conftest.er1 >conftest.err 11600 rm -f conftest.er1 11601 cat conftest.err >&5 11602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11603 (exit $ac_status); } && { 11604 test -z "$ac_c_werror_flag" || 11605 test ! -s conftest.err 11606 } && test -s conftest$ac_exeext && { 11607 test "$cross_compiling" = yes || 11608 $as_test_x conftest$ac_exeext 11609 }; then 11610 ac_cv_func_lseek64=yes 11611else 11612 $as_echo "$as_me: failed program was:" >&5 11613sed 's/^/| /' conftest.$ac_ext >&5 11614 11615 ac_cv_func_lseek64=no 11616fi 11617 11618rm -rf conftest.dSYM 11619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11620 conftest$ac_exeext conftest.$ac_ext 11621fi 11622{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lseek64" >&5 11623$as_echo "$ac_cv_func_lseek64" >&6; } 11624if test "x$ac_cv_func_lseek64" = x""yes; then 11625 : 11626else 11627 11628 { $as_echo "$as_me:$LINENO: WARNING: 64-bit file offsets not available, huge files won't be supported." >&5 11629$as_echo "$as_me: WARNING: 64-bit file offsets not available, huge files won't be supported." >&2;} 11630 CHM_USE_IO64="" 11631fi 11632 11633fi 11634if test -n "$CHM_USE_PREAD"; then 11635 if test -n "$CHM_USE_IO64"; then 11636 pread_func="pread64" 11637 else 11638 pread_func="pread" 11639 fi 11640 11641 as_ac_var=`$as_echo "ac_cv_func_$pread_func" | $as_tr_sh` 11642{ $as_echo "$as_me:$LINENO: checking for $pread_func" >&5 11643$as_echo_n "checking for $pread_func... " >&6; } 11644if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11645 $as_echo_n "(cached) " >&6 11646else 11647 cat >conftest.$ac_ext <<_ACEOF 11648/* confdefs.h. */ 11649_ACEOF 11650cat confdefs.h >>conftest.$ac_ext 11651cat >>conftest.$ac_ext <<_ACEOF 11652/* end confdefs.h. */ 11653/* Define $pread_func to an innocuous variant, in case <limits.h> declares $pread_func. 11654 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11655#define $pread_func innocuous_$pread_func 11656 11657/* System header to define __stub macros and hopefully few prototypes, 11658 which can conflict with char $pread_func (); below. 11659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11660 <limits.h> exists even on freestanding compilers. */ 11661 11662#ifdef __STDC__ 11663# include <limits.h> 11664#else 11665# include <assert.h> 11666#endif 11667 11668#undef $pread_func 11669 11670/* Override any GCC internal prototype to avoid an error. 11671 Use char because int might match the return type of a GCC 11672 builtin and then its argument prototype would still apply. */ 11673#ifdef __cplusplus 11674extern "C" 11675#endif 11676char $pread_func (); 11677/* The GNU C library defines this for functions which it implements 11678 to always fail with ENOSYS. Some functions are actually named 11679 something starting with __ and the normal name is an alias. */ 11680#if defined __stub_$pread_func || defined __stub___$pread_func 11681choke me 11682#endif 11683 11684int 11685main () 11686{ 11687return $pread_func (); 11688 ; 11689 return 0; 11690} 11691_ACEOF 11692rm -f conftest.$ac_objext conftest$ac_exeext 11693if { (ac_try="$ac_link" 11694case "(($ac_try" in 11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11696 *) ac_try_echo=$ac_try;; 11697esac 11698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11699$as_echo "$ac_try_echo") >&5 11700 (eval "$ac_link") 2>conftest.er1 11701 ac_status=$? 11702 grep -v '^ *+' conftest.er1 >conftest.err 11703 rm -f conftest.er1 11704 cat conftest.err >&5 11705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11706 (exit $ac_status); } && { 11707 test -z "$ac_c_werror_flag" || 11708 test ! -s conftest.err 11709 } && test -s conftest$ac_exeext && { 11710 test "$cross_compiling" = yes || 11711 $as_test_x conftest$ac_exeext 11712 }; then 11713 eval "$as_ac_var=yes" 11714else 11715 $as_echo "$as_me: failed program was:" >&5 11716sed 's/^/| /' conftest.$ac_ext >&5 11717 11718 eval "$as_ac_var=no" 11719fi 11720 11721rm -rf conftest.dSYM 11722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11723 conftest$ac_exeext conftest.$ac_ext 11724fi 11725ac_res=`eval 'as_val=${'$as_ac_var'} 11726 $as_echo "$as_val"'` 11727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11728$as_echo "$ac_res" >&6; } 11729as_val=`eval 'as_val=${'$as_ac_var'} 11730 $as_echo "$as_val"'` 11731 if test "x$as_val" = x""yes; then 11732 : 11733else 11734 11735 { $as_echo "$as_me:$LINENO: WARNING: pread() not available, falling back to less efficient replacement" >&5 11736$as_echo "$as_me: WARNING: pread() not available, falling back to less efficient replacement" >&2;} 11737 CHM_USE_PREAD="" 11738fi 11739 11740fi 11741 11742# Check whether --enable-examples was given. 11743if test "${enable_examples+set}" = set; then 11744 enableval=$enable_examples; case "${enableval}" in 11745 yes) build_examples=true;; 11746 no) build_examples=false;; 11747 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5 11748$as_echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;} 11749 { (exit 1); exit 1; }; };; 11750 esac 11751else 11752 build_examples=false 11753fi 11754 11755 if test "x$build_examples" = xtrue; then 11756 EXAMPLES_TRUE= 11757 EXAMPLES_FALSE='#' 11758else 11759 EXAMPLES_TRUE='#' 11760 EXAMPLES_FALSE= 11761fi 11762 11763 11764 11765 11766 11767 11768 11769 11770{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 11771$as_echo_n "checking for size_t... " >&6; } 11772if test "${ac_cv_type_size_t+set}" = set; then 11773 $as_echo_n "(cached) " >&6 11774else 11775 ac_cv_type_size_t=no 11776cat >conftest.$ac_ext <<_ACEOF 11777/* confdefs.h. */ 11778_ACEOF 11779cat confdefs.h >>conftest.$ac_ext 11780cat >>conftest.$ac_ext <<_ACEOF 11781/* end confdefs.h. */ 11782$ac_includes_default 11783int 11784main () 11785{ 11786if (sizeof (size_t)) 11787 return 0; 11788 ; 11789 return 0; 11790} 11791_ACEOF 11792rm -f conftest.$ac_objext 11793if { (ac_try="$ac_compile" 11794case "(($ac_try" in 11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11796 *) ac_try_echo=$ac_try;; 11797esac 11798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11799$as_echo "$ac_try_echo") >&5 11800 (eval "$ac_compile") 2>conftest.er1 11801 ac_status=$? 11802 grep -v '^ *+' conftest.er1 >conftest.err 11803 rm -f conftest.er1 11804 cat conftest.err >&5 11805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11806 (exit $ac_status); } && { 11807 test -z "$ac_c_werror_flag" || 11808 test ! -s conftest.err 11809 } && test -s conftest.$ac_objext; then 11810 cat >conftest.$ac_ext <<_ACEOF 11811/* confdefs.h. */ 11812_ACEOF 11813cat confdefs.h >>conftest.$ac_ext 11814cat >>conftest.$ac_ext <<_ACEOF 11815/* end confdefs.h. */ 11816$ac_includes_default 11817int 11818main () 11819{ 11820if (sizeof ((size_t))) 11821 return 0; 11822 ; 11823 return 0; 11824} 11825_ACEOF 11826rm -f conftest.$ac_objext 11827if { (ac_try="$ac_compile" 11828case "(($ac_try" in 11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11830 *) ac_try_echo=$ac_try;; 11831esac 11832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11833$as_echo "$ac_try_echo") >&5 11834 (eval "$ac_compile") 2>conftest.er1 11835 ac_status=$? 11836 grep -v '^ *+' conftest.er1 >conftest.err 11837 rm -f conftest.er1 11838 cat conftest.err >&5 11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11840 (exit $ac_status); } && { 11841 test -z "$ac_c_werror_flag" || 11842 test ! -s conftest.err 11843 } && test -s conftest.$ac_objext; then 11844 : 11845else 11846 $as_echo "$as_me: failed program was:" >&5 11847sed 's/^/| /' conftest.$ac_ext >&5 11848 11849 ac_cv_type_size_t=yes 11850fi 11851 11852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11853else 11854 $as_echo "$as_me: failed program was:" >&5 11855sed 's/^/| /' conftest.$ac_ext >&5 11856 11857 11858fi 11859 11860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11861fi 11862{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 11863$as_echo "$ac_cv_type_size_t" >&6; } 11864if test "x$ac_cv_type_size_t" = x""yes; then 11865 : 11866else 11867 11868cat >>confdefs.h <<_ACEOF 11869#define size_t unsigned int 11870_ACEOF 11871 11872fi 11873 11874 11875 11876for ac_header in stdlib.h 11877do 11878as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11880 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11881$as_echo_n "checking for $ac_header... " >&6; } 11882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11883 $as_echo_n "(cached) " >&6 11884fi 11885ac_res=`eval 'as_val=${'$as_ac_Header'} 11886 $as_echo "$as_val"'` 11887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11888$as_echo "$ac_res" >&6; } 11889else 11890 # Is the header compilable? 11891{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11892$as_echo_n "checking $ac_header usability... " >&6; } 11893cat >conftest.$ac_ext <<_ACEOF 11894/* confdefs.h. */ 11895_ACEOF 11896cat confdefs.h >>conftest.$ac_ext 11897cat >>conftest.$ac_ext <<_ACEOF 11898/* end confdefs.h. */ 11899$ac_includes_default 11900#include <$ac_header> 11901_ACEOF 11902rm -f conftest.$ac_objext 11903if { (ac_try="$ac_compile" 11904case "(($ac_try" in 11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11906 *) ac_try_echo=$ac_try;; 11907esac 11908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11909$as_echo "$ac_try_echo") >&5 11910 (eval "$ac_compile") 2>conftest.er1 11911 ac_status=$? 11912 grep -v '^ *+' conftest.er1 >conftest.err 11913 rm -f conftest.er1 11914 cat conftest.err >&5 11915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11916 (exit $ac_status); } && { 11917 test -z "$ac_c_werror_flag" || 11918 test ! -s conftest.err 11919 } && test -s conftest.$ac_objext; then 11920 ac_header_compiler=yes 11921else 11922 $as_echo "$as_me: failed program was:" >&5 11923sed 's/^/| /' conftest.$ac_ext >&5 11924 11925 ac_header_compiler=no 11926fi 11927 11928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11929{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11930$as_echo "$ac_header_compiler" >&6; } 11931 11932# Is the header present? 11933{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11934$as_echo_n "checking $ac_header presence... " >&6; } 11935cat >conftest.$ac_ext <<_ACEOF 11936/* confdefs.h. */ 11937_ACEOF 11938cat confdefs.h >>conftest.$ac_ext 11939cat >>conftest.$ac_ext <<_ACEOF 11940/* end confdefs.h. */ 11941#include <$ac_header> 11942_ACEOF 11943if { (ac_try="$ac_cpp conftest.$ac_ext" 11944case "(($ac_try" in 11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11946 *) ac_try_echo=$ac_try;; 11947esac 11948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11949$as_echo "$ac_try_echo") >&5 11950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11951 ac_status=$? 11952 grep -v '^ *+' conftest.er1 >conftest.err 11953 rm -f conftest.er1 11954 cat conftest.err >&5 11955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11956 (exit $ac_status); } >/dev/null && { 11957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11958 test ! -s conftest.err 11959 }; then 11960 ac_header_preproc=yes 11961else 11962 $as_echo "$as_me: failed program was:" >&5 11963sed 's/^/| /' conftest.$ac_ext >&5 11964 11965 ac_header_preproc=no 11966fi 11967 11968rm -f conftest.err conftest.$ac_ext 11969{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11970$as_echo "$ac_header_preproc" >&6; } 11971 11972# So? What about this header? 11973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11974 yes:no: ) 11975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11976$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11978$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11979 ac_header_preproc=yes 11980 ;; 11981 no:yes:* ) 11982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11983$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11985$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11987$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11989$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11991$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11993$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11994 11995 ;; 11996esac 11997{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11998$as_echo_n "checking for $ac_header... " >&6; } 11999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12000 $as_echo_n "(cached) " >&6 12001else 12002 eval "$as_ac_Header=\$ac_header_preproc" 12003fi 12004ac_res=`eval 'as_val=${'$as_ac_Header'} 12005 $as_echo "$as_val"'` 12006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12007$as_echo "$ac_res" >&6; } 12008 12009fi 12010as_val=`eval 'as_val=${'$as_ac_Header'} 12011 $as_echo "$as_val"'` 12012 if test "x$as_val" = x""yes; then 12013 cat >>confdefs.h <<_ACEOF 12014#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12015_ACEOF 12016 12017fi 12018 12019done 12020 12021{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 12022$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 12023if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 12024 $as_echo_n "(cached) " >&6 12025else 12026 if test "$cross_compiling" = yes; then 12027 ac_cv_func_malloc_0_nonnull=no 12028else 12029 cat >conftest.$ac_ext <<_ACEOF 12030/* confdefs.h. */ 12031_ACEOF 12032cat confdefs.h >>conftest.$ac_ext 12033cat >>conftest.$ac_ext <<_ACEOF 12034/* end confdefs.h. */ 12035#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12036# include <stdlib.h> 12037#else 12038char *malloc (); 12039#endif 12040 12041int 12042main () 12043{ 12044return ! malloc (0); 12045 ; 12046 return 0; 12047} 12048_ACEOF 12049rm -f conftest$ac_exeext 12050if { (ac_try="$ac_link" 12051case "(($ac_try" in 12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12053 *) ac_try_echo=$ac_try;; 12054esac 12055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12056$as_echo "$ac_try_echo") >&5 12057 (eval "$ac_link") 2>&5 12058 ac_status=$? 12059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12061 { (case "(($ac_try" in 12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12063 *) ac_try_echo=$ac_try;; 12064esac 12065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12066$as_echo "$ac_try_echo") >&5 12067 (eval "$ac_try") 2>&5 12068 ac_status=$? 12069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12070 (exit $ac_status); }; }; then 12071 ac_cv_func_malloc_0_nonnull=yes 12072else 12073 $as_echo "$as_me: program exited with status $ac_status" >&5 12074$as_echo "$as_me: failed program was:" >&5 12075sed 's/^/| /' conftest.$ac_ext >&5 12076 12077( exit $ac_status ) 12078ac_cv_func_malloc_0_nonnull=no 12079fi 12080rm -rf conftest.dSYM 12081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12082fi 12083 12084 12085fi 12086{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 12087$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 12088if test $ac_cv_func_malloc_0_nonnull = yes; then 12089 12090cat >>confdefs.h <<\_ACEOF 12091#define HAVE_MALLOC 1 12092_ACEOF 12093 12094else 12095 cat >>confdefs.h <<\_ACEOF 12096#define HAVE_MALLOC 0 12097_ACEOF 12098 12099 case " $LIBOBJS " in 12100 *" malloc.$ac_objext "* ) ;; 12101 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 12102 ;; 12103esac 12104 12105 12106cat >>confdefs.h <<\_ACEOF 12107#define malloc rpl_malloc 12108_ACEOF 12109 12110fi 12111 12112 12113 12114 12115 12116if test x"$install_user" = x; then 12117 if test "x$target_os" = "xcygwin"; then 12118 install_user=Administrator 12119 else 12120 install_user=root 12121 fi 12122fi 12123if test x"$install_group" = x ; then 12124 install_group=`sed -n '/.*:.*:0:/{s/^\(.*\):.*:0:.*/\1/p;q;}' /etc/group 2>/dev/null` 12125fi 12126 12127 12128 12129 12130if test x"$devel" = xyes ; then 12131 cat >>confdefs.h <<\_ACEOF 12132#define USE_DEVEL 1 12133_ACEOF 12134 12135 12136 if test x"$GCC" = xyes; then 12137 12138 CFLAGS=`echo "$CFLAGS" | sed -e 's/\-O2//'` 12139 CFLAGS="$CFLAGS $ac_devel_cflags" 12140 12141 fi 12142 12143 INSTALL_STRIP="" 12144else 12145 12146 INSTALL_STRIP="-s" 12147fi 12148 12149CFLAGS="$CFLAGS $CHM_MT $CHM_USE_PREAD $CHM_USE_IO64" 12150 12151 12152 12153 12154 12155 12156ac_config_files="$ac_config_files Makefile src/Makefile" 12157 12158cat >confcache <<\_ACEOF 12159# This file is a shell script that caches the results of configure 12160# tests run on this system so they can be shared between configure 12161# scripts and configure runs, see configure's option --config-cache. 12162# It is not useful on other systems. If it contains results you don't 12163# want to keep, you may remove or edit it. 12164# 12165# config.status only pays attention to the cache file if you give it 12166# the --recheck option to rerun configure. 12167# 12168# `ac_cv_env_foo' variables (set or unset) will be overridden when 12169# loading this file, other *unset* `ac_cv_foo' will be assigned the 12170# following values. 12171 12172_ACEOF 12173 12174# The following way of writing the cache mishandles newlines in values, 12175# but we know of no workaround that is simple, portable, and efficient. 12176# So, we kill variables containing newlines. 12177# Ultrix sh set writes to stderr and can't be redirected directly, 12178# and sets the high bit in the cache file unless we assign to the vars. 12179( 12180 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12181 eval ac_val=\$$ac_var 12182 case $ac_val in #( 12183 *${as_nl}*) 12184 case $ac_var in #( 12185 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 12186$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12187 esac 12188 case $ac_var in #( 12189 _ | IFS | as_nl) ;; #( 12190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12191 *) $as_unset $ac_var ;; 12192 esac ;; 12193 esac 12194 done 12195 12196 (set) 2>&1 | 12197 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12198 *${as_nl}ac_space=\ *) 12199 # `set' does not quote correctly, so add quotes (double-quote 12200 # substitution turns \\\\ into \\, and sed turns \\ into \). 12201 sed -n \ 12202 "s/'/'\\\\''/g; 12203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12204 ;; #( 12205 *) 12206 # `set' quotes correctly as required by POSIX, so do not add quotes. 12207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12208 ;; 12209 esac | 12210 sort 12211) | 12212 sed ' 12213 /^ac_cv_env_/b end 12214 t clear 12215 :clear 12216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12217 t end 12218 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12219 :end' >>confcache 12220if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12221 if test -w "$cache_file"; then 12222 test "x$cache_file" != "x/dev/null" && 12223 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 12224$as_echo "$as_me: updating cache $cache_file" >&6;} 12225 cat confcache >$cache_file 12226 else 12227 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 12228$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12229 fi 12230fi 12231rm -f confcache 12232 12233test "x$prefix" = xNONE && prefix=$ac_default_prefix 12234# Let make expand exec_prefix. 12235test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12236 12237# Transform confdefs.h into DEFS. 12238# Protect against shell expansion while executing Makefile rules. 12239# Protect against Makefile macro expansion. 12240# 12241# If the first sed substitution is executed (which looks for macros that 12242# take arguments), then branch to the quote section. Otherwise, 12243# look for a macro that doesn't take arguments. 12244ac_script=' 12245:mline 12246/\\$/{ 12247 N 12248 s,\\\n,, 12249 b mline 12250} 12251t clear 12252:clear 12253s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 12254t quote 12255s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 12256t quote 12257b any 12258:quote 12259s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 12260s/\[/\\&/g 12261s/\]/\\&/g 12262s/\$/$$/g 12263H 12264:any 12265${ 12266 g 12267 s/^\n// 12268 s/\n/ /g 12269 p 12270} 12271' 12272DEFS=`sed -n "$ac_script" confdefs.h` 12273 12274 12275ac_libobjs= 12276ac_ltlibobjs= 12277for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12278 # 1. Remove the extension, and $U if already installed. 12279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12282 # will be set to the directory where LIBOBJS objects are built. 12283 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12284 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 12285done 12286LIBOBJS=$ac_libobjs 12287 12288LTLIBOBJS=$ac_ltlibobjs 12289 12290 12291if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12292 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 12293Usually this means the macro was only invoked conditionally." >&5 12294$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 12295Usually this means the macro was only invoked conditionally." >&2;} 12296 { (exit 1); exit 1; }; } 12297fi 12298if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12299 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 12300Usually this means the macro was only invoked conditionally." >&5 12301$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 12302Usually this means the macro was only invoked conditionally." >&2;} 12303 { (exit 1); exit 1; }; } 12304fi 12305if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12306 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 12307Usually this means the macro was only invoked conditionally." >&5 12308$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 12309Usually this means the macro was only invoked conditionally." >&2;} 12310 { (exit 1); exit 1; }; } 12311fi 12312if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then 12313 { { $as_echo "$as_me:$LINENO: error: conditional \"EXAMPLES\" was never defined. 12314Usually this means the macro was only invoked conditionally." >&5 12315$as_echo "$as_me: error: conditional \"EXAMPLES\" was never defined. 12316Usually this means the macro was only invoked conditionally." >&2;} 12317 { (exit 1); exit 1; }; } 12318fi 12319 12320: ${CONFIG_STATUS=./config.status} 12321ac_write_fail=0 12322ac_clean_files_save=$ac_clean_files 12323ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12324{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12325$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12326cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12327#! $SHELL 12328# Generated by $as_me. 12329# Run this file to recreate the current configuration. 12330# Compiler output produced by configure, useful for debugging 12331# configure, is in config.log if it exists. 12332 12333debug=false 12334ac_cs_recheck=false 12335ac_cs_silent=false 12336SHELL=\${CONFIG_SHELL-$SHELL} 12337_ACEOF 12338 12339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12340## --------------------- ## 12341## M4sh Initialization. ## 12342## --------------------- ## 12343 12344# Be more Bourne compatible 12345DUALCASE=1; export DUALCASE # for MKS sh 12346if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12347 emulate sh 12348 NULLCMD=: 12349 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12350 # is contrary to our usage. Disable this feature. 12351 alias -g '${1+"$@"}'='"$@"' 12352 setopt NO_GLOB_SUBST 12353else 12354 case `(set -o) 2>/dev/null` in 12355 *posix*) set -o posix ;; 12356esac 12357 12358fi 12359 12360 12361 12362 12363# PATH needs CR 12364# Avoid depending upon Character Ranges. 12365as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12366as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12367as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12368as_cr_digits='0123456789' 12369as_cr_alnum=$as_cr_Letters$as_cr_digits 12370 12371as_nl=' 12372' 12373export as_nl 12374# Printing a long string crashes Solaris 7 /usr/bin/printf. 12375as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12376as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12378if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12379 as_echo='printf %s\n' 12380 as_echo_n='printf %s' 12381else 12382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12383 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12384 as_echo_n='/usr/ucb/echo -n' 12385 else 12386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12387 as_echo_n_body='eval 12388 arg=$1; 12389 case $arg in 12390 *"$as_nl"*) 12391 expr "X$arg" : "X\\(.*\\)$as_nl"; 12392 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12393 esac; 12394 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12395 ' 12396 export as_echo_n_body 12397 as_echo_n='sh -c $as_echo_n_body as_echo' 12398 fi 12399 export as_echo_body 12400 as_echo='sh -c $as_echo_body as_echo' 12401fi 12402 12403# The user is always right. 12404if test "${PATH_SEPARATOR+set}" != set; then 12405 PATH_SEPARATOR=: 12406 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12407 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12408 PATH_SEPARATOR=';' 12409 } 12410fi 12411 12412# Support unset when possible. 12413if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12414 as_unset=unset 12415else 12416 as_unset=false 12417fi 12418 12419 12420# IFS 12421# We need space, tab and new line, in precisely that order. Quoting is 12422# there to prevent editors from complaining about space-tab. 12423# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12424# splitting by setting IFS to empty value.) 12425IFS=" "" $as_nl" 12426 12427# Find who we are. Look in the path if we contain no directory separator. 12428case $0 in 12429 *[\\/]* ) as_myself=$0 ;; 12430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12431for as_dir in $PATH 12432do 12433 IFS=$as_save_IFS 12434 test -z "$as_dir" && as_dir=. 12435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12436done 12437IFS=$as_save_IFS 12438 12439 ;; 12440esac 12441# We did not find ourselves, most probably we were run as `sh COMMAND' 12442# in which case we are not to be found in the path. 12443if test "x$as_myself" = x; then 12444 as_myself=$0 12445fi 12446if test ! -f "$as_myself"; then 12447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12448 { (exit 1); exit 1; } 12449fi 12450 12451# Work around bugs in pre-3.0 UWIN ksh. 12452for as_var in ENV MAIL MAILPATH 12453do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12454done 12455PS1='$ ' 12456PS2='> ' 12457PS4='+ ' 12458 12459# NLS nuisances. 12460LC_ALL=C 12461export LC_ALL 12462LANGUAGE=C 12463export LANGUAGE 12464 12465# Required to use basename. 12466if expr a : '\(a\)' >/dev/null 2>&1 && 12467 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12468 as_expr=expr 12469else 12470 as_expr=false 12471fi 12472 12473if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12474 as_basename=basename 12475else 12476 as_basename=false 12477fi 12478 12479 12480# Name of the executable. 12481as_me=`$as_basename -- "$0" || 12482$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12483 X"$0" : 'X\(//\)$' \| \ 12484 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12485$as_echo X/"$0" | 12486 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12487 s//\1/ 12488 q 12489 } 12490 /^X\/\(\/\/\)$/{ 12491 s//\1/ 12492 q 12493 } 12494 /^X\/\(\/\).*/{ 12495 s//\1/ 12496 q 12497 } 12498 s/.*/./; q'` 12499 12500# CDPATH. 12501$as_unset CDPATH 12502 12503 12504 12505 as_lineno_1=$LINENO 12506 as_lineno_2=$LINENO 12507 test "x$as_lineno_1" != "x$as_lineno_2" && 12508 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 12509 12510 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12511 # uniformly replaced by the line number. The first 'sed' inserts a 12512 # line-number line after each line using $LINENO; the second 'sed' 12513 # does the real work. The second script uses 'N' to pair each 12514 # line-number line with the line containing $LINENO, and appends 12515 # trailing '-' during substitution so that $LINENO is not a special 12516 # case at line end. 12517 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12518 # scripts with optimization help from Paolo Bonzini. Blame Lee 12519 # E. McMahon (1931-1989) for sed's syntax. :-) 12520 sed -n ' 12521 p 12522 /[$]LINENO/= 12523 ' <$as_myself | 12524 sed ' 12525 s/[$]LINENO.*/&-/ 12526 t lineno 12527 b 12528 :lineno 12529 N 12530 :loop 12531 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 12532 t loop 12533 s/-\n.*// 12534 ' >$as_me.lineno && 12535 chmod +x "$as_me.lineno" || 12536 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 12537 { (exit 1); exit 1; }; } 12538 12539 # Don't try to exec as it changes $[0], causing all sort of problems 12540 # (the dirname of $[0] is not the place where we might find the 12541 # original and so on. Autoconf is especially sensitive to this). 12542 . "./$as_me.lineno" 12543 # Exit status is that of the last command. 12544 exit 12545} 12546 12547 12548if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12549 as_dirname=dirname 12550else 12551 as_dirname=false 12552fi 12553 12554ECHO_C= ECHO_N= ECHO_T= 12555case `echo -n x` in 12556-n*) 12557 case `echo 'x\c'` in 12558 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12559 *) ECHO_C='\c';; 12560 esac;; 12561*) 12562 ECHO_N='-n';; 12563esac 12564if expr a : '\(a\)' >/dev/null 2>&1 && 12565 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12566 as_expr=expr 12567else 12568 as_expr=false 12569fi 12570 12571rm -f conf$$ conf$$.exe conf$$.file 12572if test -d conf$$.dir; then 12573 rm -f conf$$.dir/conf$$.file 12574else 12575 rm -f conf$$.dir 12576 mkdir conf$$.dir 2>/dev/null 12577fi 12578if (echo >conf$$.file) 2>/dev/null; then 12579 if ln -s conf$$.file conf$$ 2>/dev/null; then 12580 as_ln_s='ln -s' 12581 # ... but there are two gotchas: 12582 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12583 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12584 # In both cases, we have to default to `cp -p'. 12585 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12586 as_ln_s='cp -p' 12587 elif ln conf$$.file conf$$ 2>/dev/null; then 12588 as_ln_s=ln 12589 else 12590 as_ln_s='cp -p' 12591 fi 12592else 12593 as_ln_s='cp -p' 12594fi 12595rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12596rmdir conf$$.dir 2>/dev/null 12597 12598if mkdir -p . 2>/dev/null; then 12599 as_mkdir_p=: 12600else 12601 test -d ./-p && rmdir ./-p 12602 as_mkdir_p=false 12603fi 12604 12605if test -x / >/dev/null 2>&1; then 12606 as_test_x='test -x' 12607else 12608 if ls -dL / >/dev/null 2>&1; then 12609 as_ls_L_option=L 12610 else 12611 as_ls_L_option= 12612 fi 12613 as_test_x=' 12614 eval sh -c '\'' 12615 if test -d "$1"; then 12616 test -d "$1/."; 12617 else 12618 case $1 in 12619 -*)set "./$1";; 12620 esac; 12621 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12622 ???[sx]*):;;*)false;;esac;fi 12623 '\'' sh 12624 ' 12625fi 12626as_executable_p=$as_test_x 12627 12628# Sed expression to map a string onto a valid CPP name. 12629as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12630 12631# Sed expression to map a string onto a valid variable name. 12632as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12633 12634 12635exec 6>&1 12636 12637# Save the log message, to keep $[0] and so on meaningful, and to 12638# report actual input values of CONFIG_FILES etc. instead of their 12639# values after options handling. 12640ac_log=" 12641This file was extended by chmlib $as_me 0.40, which was 12642generated by GNU Autoconf 2.63. Invocation command line was 12643 12644 CONFIG_FILES = $CONFIG_FILES 12645 CONFIG_HEADERS = $CONFIG_HEADERS 12646 CONFIG_LINKS = $CONFIG_LINKS 12647 CONFIG_COMMANDS = $CONFIG_COMMANDS 12648 $ $0 $@ 12649 12650on `(hostname || uname -n) 2>/dev/null | sed 1q` 12651" 12652 12653_ACEOF 12654 12655case $ac_config_files in *" 12656"*) set x $ac_config_files; shift; ac_config_files=$*;; 12657esac 12658 12659 12660 12661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12662# Files that config.status was made for. 12663config_files="$ac_config_files" 12664config_commands="$ac_config_commands" 12665 12666_ACEOF 12667 12668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12669ac_cs_usage="\ 12670\`$as_me' instantiates files from templates according to the 12671current configuration. 12672 12673Usage: $0 [OPTION]... [FILE]... 12674 12675 -h, --help print this help, then exit 12676 -V, --version print version number and configuration settings, then exit 12677 -q, --quiet, --silent 12678 do not print progress messages 12679 -d, --debug don't remove temporary files 12680 --recheck update $as_me by reconfiguring in the same conditions 12681 --file=FILE[:TEMPLATE] 12682 instantiate the configuration file FILE 12683 12684Configuration files: 12685$config_files 12686 12687Configuration commands: 12688$config_commands 12689 12690Report bugs to <bug-autoconf@gnu.org>." 12691 12692_ACEOF 12693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12694ac_cs_version="\\ 12695chmlib config.status 0.40 12696configured by $0, generated by GNU Autoconf 2.63, 12697 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12698 12699Copyright (C) 2008 Free Software Foundation, Inc. 12700This config.status script is free software; the Free Software Foundation 12701gives unlimited permission to copy, distribute and modify it." 12702 12703ac_pwd='$ac_pwd' 12704srcdir='$srcdir' 12705INSTALL='$INSTALL' 12706MKDIR_P='$MKDIR_P' 12707AWK='$AWK' 12708test -n "\$AWK" || AWK=awk 12709_ACEOF 12710 12711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12712# The default lists apply if the user does not specify any file. 12713ac_need_defaults=: 12714while test $# != 0 12715do 12716 case $1 in 12717 --*=*) 12718 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12719 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12720 ac_shift=: 12721 ;; 12722 *) 12723 ac_option=$1 12724 ac_optarg=$2 12725 ac_shift=shift 12726 ;; 12727 esac 12728 12729 case $ac_option in 12730 # Handling of the options. 12731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12732 ac_cs_recheck=: ;; 12733 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12734 $as_echo "$ac_cs_version"; exit ;; 12735 --debug | --debu | --deb | --de | --d | -d ) 12736 debug=: ;; 12737 --file | --fil | --fi | --f ) 12738 $ac_shift 12739 case $ac_optarg in 12740 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12741 esac 12742 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 12743 ac_need_defaults=false;; 12744 --he | --h | --help | --hel | -h ) 12745 $as_echo "$ac_cs_usage"; exit ;; 12746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12747 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12748 ac_cs_silent=: ;; 12749 12750 # This is an error. 12751 -*) { $as_echo "$as_me: error: unrecognized option: $1 12752Try \`$0 --help' for more information." >&2 12753 { (exit 1); exit 1; }; } ;; 12754 12755 *) ac_config_targets="$ac_config_targets $1" 12756 ac_need_defaults=false ;; 12757 12758 esac 12759 shift 12760done 12761 12762ac_configure_extra_args= 12763 12764if $ac_cs_silent; then 12765 exec 6>/dev/null 12766 ac_configure_extra_args="$ac_configure_extra_args --silent" 12767fi 12768 12769_ACEOF 12770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12771if \$ac_cs_recheck; then 12772 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12773 shift 12774 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12775 CONFIG_SHELL='$SHELL' 12776 export CONFIG_SHELL 12777 exec "\$@" 12778fi 12779 12780_ACEOF 12781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12782exec 5>>config.log 12783{ 12784 echo 12785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12786## Running $as_me. ## 12787_ASBOX 12788 $as_echo "$ac_log" 12789} >&5 12790 12791_ACEOF 12792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12793# 12794# INIT-COMMANDS 12795# 12796AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12797 12798 12799# The HP-UX ksh and POSIX shell print the target directory to stdout 12800# if CDPATH is set. 12801(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12802 12803sed_quote_subst='$sed_quote_subst' 12804double_quote_subst='$double_quote_subst' 12805delay_variable_subst='$delay_variable_subst' 12806SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12807Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12808GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12809EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12810FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12811LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12812macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12813macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12814enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12815enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12816pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12817enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12818host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12819host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12820host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12821build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12822build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12823build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12824NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12825LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12826max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12827ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12828exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12829lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12830lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12831lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12832reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12833reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12834OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12835deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12836file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12837AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12838AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12839STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12840RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12841old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12842old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12843old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12844CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12845CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12846compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12847GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12848lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12849lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12850lt_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"`' 12851lt_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"`' 12852objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12853SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12854ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12855MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12856lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12857lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12858lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12859lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12860lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12861need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12862DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12863NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12864LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12865OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12866OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12867libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12868shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12869extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12870archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12871enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12872export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12873whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12874compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12875old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12876old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12877archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12878archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12879module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12880module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12881with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12882allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12883no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12884hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12885hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12886hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12887hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12888hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12889hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12890hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12891hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12892inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12893link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12894fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12895always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12896export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12897exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12898include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12899prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12900file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12901variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12902need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12903need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12904version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12905runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12906shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12907shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12908libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12909library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12910soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12911postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12912postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12913finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12914finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12915hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12916sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12917sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12918hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12919enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12920enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12921enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12922old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12923striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12924 12925LTCC='$LTCC' 12926LTCFLAGS='$LTCFLAGS' 12927compiler='$compiler_DEFAULT' 12928 12929# Quote evaled strings. 12930for var in SED \ 12931GREP \ 12932EGREP \ 12933FGREP \ 12934LD \ 12935NM \ 12936LN_S \ 12937lt_SP2NL \ 12938lt_NL2SP \ 12939reload_flag \ 12940OBJDUMP \ 12941deplibs_check_method \ 12942file_magic_cmd \ 12943AR \ 12944AR_FLAGS \ 12945STRIP \ 12946RANLIB \ 12947CC \ 12948CFLAGS \ 12949compiler \ 12950lt_cv_sys_global_symbol_pipe \ 12951lt_cv_sys_global_symbol_to_cdecl \ 12952lt_cv_sys_global_symbol_to_c_name_address \ 12953lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12954SHELL \ 12955ECHO \ 12956lt_prog_compiler_no_builtin_flag \ 12957lt_prog_compiler_wl \ 12958lt_prog_compiler_pic \ 12959lt_prog_compiler_static \ 12960lt_cv_prog_compiler_c_o \ 12961need_locks \ 12962DSYMUTIL \ 12963NMEDIT \ 12964LIPO \ 12965OTOOL \ 12966OTOOL64 \ 12967shrext_cmds \ 12968export_dynamic_flag_spec \ 12969whole_archive_flag_spec \ 12970compiler_needs_object \ 12971with_gnu_ld \ 12972allow_undefined_flag \ 12973no_undefined_flag \ 12974hardcode_libdir_flag_spec \ 12975hardcode_libdir_flag_spec_ld \ 12976hardcode_libdir_separator \ 12977fix_srcfile_path \ 12978exclude_expsyms \ 12979include_expsyms \ 12980file_list_spec \ 12981variables_saved_for_relink \ 12982libname_spec \ 12983library_names_spec \ 12984soname_spec \ 12985finish_eval \ 12986old_striplib \ 12987striplib; do 12988 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12989 *[\\\\\\\`\\"\\\$]*) 12990 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12991 ;; 12992 *) 12993 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12994 ;; 12995 esac 12996done 12997 12998# Double-quote double-evaled strings. 12999for var in reload_cmds \ 13000old_postinstall_cmds \ 13001old_postuninstall_cmds \ 13002old_archive_cmds \ 13003extract_expsyms_cmds \ 13004old_archive_from_new_cmds \ 13005old_archive_from_expsyms_cmds \ 13006archive_cmds \ 13007archive_expsym_cmds \ 13008module_cmds \ 13009module_expsym_cmds \ 13010export_symbols_cmds \ 13011prelink_cmds \ 13012postinstall_cmds \ 13013postuninstall_cmds \ 13014finish_cmds \ 13015sys_lib_search_path_spec \ 13016sys_lib_dlsearch_path_spec; do 13017 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13018 *[\\\\\\\`\\"\\\$]*) 13019 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13020 ;; 13021 *) 13022 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13023 ;; 13024 esac 13025done 13026 13027# Fix-up fallback echo if it was mangled by the above quoting rules. 13028case \$lt_ECHO in 13029*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13030 ;; 13031esac 13032 13033ac_aux_dir='$ac_aux_dir' 13034xsi_shell='$xsi_shell' 13035lt_shell_append='$lt_shell_append' 13036 13037# See if we are running on zsh, and set the options which allow our 13038# commands through without removal of \ escapes INIT. 13039if test -n "\${ZSH_VERSION+set}" ; then 13040 setopt NO_GLOB_SUBST 13041fi 13042 13043 13044 PACKAGE='$PACKAGE' 13045 VERSION='$VERSION' 13046 TIMESTAMP='$TIMESTAMP' 13047 RM='$RM' 13048 ofile='$ofile' 13049 13050 13051 13052 13053_ACEOF 13054 13055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13056 13057# Handling of arguments. 13058for ac_config_target in $ac_config_targets 13059do 13060 case $ac_config_target in 13061 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13062 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13063 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13064 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13065 13066 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13067$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13068 { (exit 1); exit 1; }; };; 13069 esac 13070done 13071 13072 13073# If the user did not use the arguments to specify the items to instantiate, 13074# then the envvar interface is used. Set only those that are not. 13075# We use the long form for the default assignment because of an extremely 13076# bizarre bug on SunOS 4.1.3. 13077if $ac_need_defaults; then 13078 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13079 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13080fi 13081 13082# Have a temporary directory for convenience. Make it in the build tree 13083# simply because there is no reason against having it here, and in addition, 13084# creating and moving files from /tmp can sometimes cause problems. 13085# Hook for its removal unless debugging. 13086# Note that there is a small window in which the directory will not be cleaned: 13087# after its creation but before its name has been assigned to `$tmp'. 13088$debug || 13089{ 13090 tmp= 13091 trap 'exit_status=$? 13092 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13093' 0 13094 trap '{ (exit 1); exit 1; }' 1 2 13 15 13095} 13096# Create a (secure) tmp directory for tmp files. 13097 13098{ 13099 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13100 test -n "$tmp" && test -d "$tmp" 13101} || 13102{ 13103 tmp=./conf$$-$RANDOM 13104 (umask 077 && mkdir "$tmp") 13105} || 13106{ 13107 $as_echo "$as_me: cannot create a temporary directory in ." >&2 13108 { (exit 1); exit 1; } 13109} 13110 13111# Set up the scripts for CONFIG_FILES section. 13112# No need to generate them if there are no CONFIG_FILES. 13113# This happens for instance with `./config.status config.h'. 13114if test -n "$CONFIG_FILES"; then 13115 13116 13117ac_cr=' 13118' 13119ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13120if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13121 ac_cs_awk_cr='\\r' 13122else 13123 ac_cs_awk_cr=$ac_cr 13124fi 13125 13126echo 'BEGIN {' >"$tmp/subs1.awk" && 13127_ACEOF 13128 13129 13130{ 13131 echo "cat >conf$$subs.awk <<_ACEOF" && 13132 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13133 echo "_ACEOF" 13134} >conf$$subs.sh || 13135 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13136$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13137 { (exit 1); exit 1; }; } 13138ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13139ac_delim='%!_!# ' 13140for ac_last_try in false false false false false :; do 13141 . ./conf$$subs.sh || 13142 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13143$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13144 { (exit 1); exit 1; }; } 13145 13146 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13147 if test $ac_delim_n = $ac_delim_num; then 13148 break 13149 elif $ac_last_try; then 13150 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13151$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13152 { (exit 1); exit 1; }; } 13153 else 13154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13155 fi 13156done 13157rm -f conf$$subs.sh 13158 13159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13160cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13161_ACEOF 13162sed -n ' 13163h 13164s/^/S["/; s/!.*/"]=/ 13165p 13166g 13167s/^[^!]*!// 13168:repl 13169t repl 13170s/'"$ac_delim"'$// 13171t delim 13172:nl 13173h 13174s/\(.\{148\}\).*/\1/ 13175t more1 13176s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13177p 13178n 13179b repl 13180:more1 13181s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13182p 13183g 13184s/.\{148\}// 13185t nl 13186:delim 13187h 13188s/\(.\{148\}\).*/\1/ 13189t more2 13190s/["\\]/\\&/g; s/^/"/; s/$/"/ 13191p 13192b 13193:more2 13194s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13195p 13196g 13197s/.\{148\}// 13198t delim 13199' <conf$$subs.awk | sed ' 13200/^[^""]/{ 13201 N 13202 s/\n// 13203} 13204' >>$CONFIG_STATUS || ac_write_fail=1 13205rm -f conf$$subs.awk 13206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13207_ACAWK 13208cat >>"\$tmp/subs1.awk" <<_ACAWK && 13209 for (key in S) S_is_set[key] = 1 13210 FS = "" 13211 13212} 13213{ 13214 line = $ 0 13215 nfields = split(line, field, "@") 13216 substed = 0 13217 len = length(field[1]) 13218 for (i = 2; i < nfields; i++) { 13219 key = field[i] 13220 keylen = length(key) 13221 if (S_is_set[key]) { 13222 value = S[key] 13223 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13224 len += length(value) + length(field[++i]) 13225 substed = 1 13226 } else 13227 len += 1 + keylen 13228 } 13229 13230 print line 13231} 13232 13233_ACAWK 13234_ACEOF 13235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13236if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13237 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13238else 13239 cat 13240fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13241 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 13242$as_echo "$as_me: error: could not setup config files machinery" >&2;} 13243 { (exit 1); exit 1; }; } 13244_ACEOF 13245 13246# VPATH may cause trouble with some makes, so we remove $(srcdir), 13247# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13248# trailing colons and then remove the whole line if VPATH becomes empty 13249# (actually we leave an empty line to preserve line numbers). 13250if test "x$srcdir" = x.; then 13251 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13252s/:*\$(srcdir):*/:/ 13253s/:*\${srcdir}:*/:/ 13254s/:*@srcdir@:*/:/ 13255s/^\([^=]*=[ ]*\):*/\1/ 13256s/:*$// 13257s/^[^=]*=[ ]*$// 13258}' 13259fi 13260 13261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13262fi # test -n "$CONFIG_FILES" 13263 13264 13265eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 13266shift 13267for ac_tag 13268do 13269 case $ac_tag in 13270 :[FHLC]) ac_mode=$ac_tag; continue;; 13271 esac 13272 case $ac_mode$ac_tag in 13273 :[FHL]*:*);; 13274 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 13275$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 13276 { (exit 1); exit 1; }; };; 13277 :[FH]-) ac_tag=-:-;; 13278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13279 esac 13280 ac_save_IFS=$IFS 13281 IFS=: 13282 set x $ac_tag 13283 IFS=$ac_save_IFS 13284 shift 13285 ac_file=$1 13286 shift 13287 13288 case $ac_mode in 13289 :L) ac_source=$1;; 13290 :[FH]) 13291 ac_file_inputs= 13292 for ac_f 13293 do 13294 case $ac_f in 13295 -) ac_f="$tmp/stdin";; 13296 *) # Look for the file first in the build tree, then in the source tree 13297 # (if the path is not absolute). The absolute path cannot be DOS-style, 13298 # because $ac_f cannot contain `:'. 13299 test -f "$ac_f" || 13300 case $ac_f in 13301 [\\/$]*) false;; 13302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13303 esac || 13304 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 13305$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 13306 { (exit 1); exit 1; }; };; 13307 esac 13308 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13309 ac_file_inputs="$ac_file_inputs '$ac_f'" 13310 done 13311 13312 # Let's still pretend it is `configure' which instantiates (i.e., don't 13313 # use $as_me), people would be surprised to read: 13314 # /* config.h. Generated by config.status. */ 13315 configure_input='Generated from '` 13316 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13317 `' by configure.' 13318 if test x"$ac_file" != x-; then 13319 configure_input="$ac_file. $configure_input" 13320 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 13321$as_echo "$as_me: creating $ac_file" >&6;} 13322 fi 13323 # Neutralize special characters interpreted by sed in replacement strings. 13324 case $configure_input in #( 13325 *\&* | *\|* | *\\* ) 13326 ac_sed_conf_input=`$as_echo "$configure_input" | 13327 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13328 *) ac_sed_conf_input=$configure_input;; 13329 esac 13330 13331 case $ac_tag in 13332 *:-:* | *:-) cat >"$tmp/stdin" \ 13333 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13334$as_echo "$as_me: error: could not create $ac_file" >&2;} 13335 { (exit 1); exit 1; }; } ;; 13336 esac 13337 ;; 13338 esac 13339 13340 ac_dir=`$as_dirname -- "$ac_file" || 13341$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13342 X"$ac_file" : 'X\(//\)[^/]' \| \ 13343 X"$ac_file" : 'X\(//\)$' \| \ 13344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13345$as_echo X"$ac_file" | 13346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13347 s//\1/ 13348 q 13349 } 13350 /^X\(\/\/\)[^/].*/{ 13351 s//\1/ 13352 q 13353 } 13354 /^X\(\/\/\)$/{ 13355 s//\1/ 13356 q 13357 } 13358 /^X\(\/\).*/{ 13359 s//\1/ 13360 q 13361 } 13362 s/.*/./; q'` 13363 { as_dir="$ac_dir" 13364 case $as_dir in #( 13365 -*) as_dir=./$as_dir;; 13366 esac 13367 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13368 as_dirs= 13369 while :; do 13370 case $as_dir in #( 13371 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13372 *) as_qdir=$as_dir;; 13373 esac 13374 as_dirs="'$as_qdir' $as_dirs" 13375 as_dir=`$as_dirname -- "$as_dir" || 13376$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13377 X"$as_dir" : 'X\(//\)[^/]' \| \ 13378 X"$as_dir" : 'X\(//\)$' \| \ 13379 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13380$as_echo X"$as_dir" | 13381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13382 s//\1/ 13383 q 13384 } 13385 /^X\(\/\/\)[^/].*/{ 13386 s//\1/ 13387 q 13388 } 13389 /^X\(\/\/\)$/{ 13390 s//\1/ 13391 q 13392 } 13393 /^X\(\/\).*/{ 13394 s//\1/ 13395 q 13396 } 13397 s/.*/./; q'` 13398 test -d "$as_dir" && break 13399 done 13400 test -z "$as_dirs" || eval "mkdir $as_dirs" 13401 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13402$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13403 { (exit 1); exit 1; }; }; } 13404 ac_builddir=. 13405 13406case "$ac_dir" in 13407.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13408*) 13409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13410 # A ".." for each directory in $ac_dir_suffix. 13411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13412 case $ac_top_builddir_sub in 13413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13415 esac ;; 13416esac 13417ac_abs_top_builddir=$ac_pwd 13418ac_abs_builddir=$ac_pwd$ac_dir_suffix 13419# for backward compatibility: 13420ac_top_builddir=$ac_top_build_prefix 13421 13422case $srcdir in 13423 .) # We are building in place. 13424 ac_srcdir=. 13425 ac_top_srcdir=$ac_top_builddir_sub 13426 ac_abs_top_srcdir=$ac_pwd ;; 13427 [\\/]* | ?:[\\/]* ) # Absolute name. 13428 ac_srcdir=$srcdir$ac_dir_suffix; 13429 ac_top_srcdir=$srcdir 13430 ac_abs_top_srcdir=$srcdir ;; 13431 *) # Relative name. 13432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13433 ac_top_srcdir=$ac_top_build_prefix$srcdir 13434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13435esac 13436ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13437 13438 13439 case $ac_mode in 13440 :F) 13441 # 13442 # CONFIG_FILE 13443 # 13444 13445 case $INSTALL in 13446 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13447 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13448 esac 13449 ac_MKDIR_P=$MKDIR_P 13450 case $MKDIR_P in 13451 [\\/$]* | ?:[\\/]* ) ;; 13452 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13453 esac 13454_ACEOF 13455 13456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13457# If the template does not know about datarootdir, expand it. 13458# FIXME: This hack should be removed a few years after 2.60. 13459ac_datarootdir_hack=; ac_datarootdir_seen= 13460 13461ac_sed_dataroot=' 13462/datarootdir/ { 13463 p 13464 q 13465} 13466/@datadir@/p 13467/@docdir@/p 13468/@infodir@/p 13469/@localedir@/p 13470/@mandir@/p 13471' 13472case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13473*datarootdir*) ac_datarootdir_seen=yes;; 13474*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13475 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13476$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13477_ACEOF 13478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13479 ac_datarootdir_hack=' 13480 s&@datadir@&$datadir&g 13481 s&@docdir@&$docdir&g 13482 s&@infodir@&$infodir&g 13483 s&@localedir@&$localedir&g 13484 s&@mandir@&$mandir&g 13485 s&\\\${datarootdir}&$datarootdir&g' ;; 13486esac 13487_ACEOF 13488 13489# Neutralize VPATH when `$srcdir' = `.'. 13490# Shell code in configure.ac might set extrasub. 13491# FIXME: do we really want to maintain this feature? 13492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13493ac_sed_extra="$ac_vpsub 13494$extrasub 13495_ACEOF 13496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13497:t 13498/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13499s|@configure_input@|$ac_sed_conf_input|;t t 13500s&@top_builddir@&$ac_top_builddir_sub&;t t 13501s&@top_build_prefix@&$ac_top_build_prefix&;t t 13502s&@srcdir@&$ac_srcdir&;t t 13503s&@abs_srcdir@&$ac_abs_srcdir&;t t 13504s&@top_srcdir@&$ac_top_srcdir&;t t 13505s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13506s&@builddir@&$ac_builddir&;t t 13507s&@abs_builddir@&$ac_abs_builddir&;t t 13508s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13509s&@INSTALL@&$ac_INSTALL&;t t 13510s&@MKDIR_P@&$ac_MKDIR_P&;t t 13511$ac_datarootdir_hack 13512" 13513eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13514 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13515$as_echo "$as_me: error: could not create $ac_file" >&2;} 13516 { (exit 1); exit 1; }; } 13517 13518test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13519 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13520 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13521 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13522which seems to be undefined. Please make sure it is defined." >&5 13523$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13524which seems to be undefined. Please make sure it is defined." >&2;} 13525 13526 rm -f "$tmp/stdin" 13527 case $ac_file in 13528 -) cat "$tmp/out" && rm -f "$tmp/out";; 13529 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13530 esac \ 13531 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13532$as_echo "$as_me: error: could not create $ac_file" >&2;} 13533 { (exit 1); exit 1; }; } 13534 ;; 13535 13536 13537 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 13538$as_echo "$as_me: executing $ac_file commands" >&6;} 13539 ;; 13540 esac 13541 13542 13543 case $ac_file$ac_mode in 13544 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files 13545# are listed without --file. Let's play safe and only enable the eval 13546# if we detect the quoting. 13547case $CONFIG_FILES in 13548*\'*) eval set x "$CONFIG_FILES" ;; 13549*) set x $CONFIG_FILES ;; 13550esac 13551shift 13552for mf 13553do 13554 # Strip MF so we end up with the name of the file. 13555 mf=`echo "$mf" | sed -e 's/:.*$//'` 13556 # Check whether this is an Automake generated Makefile or not. 13557 # We used to match only the files named `Makefile.in', but 13558 # some people rename them; so instead we look at the file content. 13559 # Grep'ing the first line is not enough: some people post-process 13560 # each Makefile.in and add a new line on top of each file to say so. 13561 # Grep'ing the whole file is not good either: AIX grep has a line 13562 # limit of 2048, but all sed's we know have understand at least 4000. 13563 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13564 dirpart=`$as_dirname -- "$mf" || 13565$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13566 X"$mf" : 'X\(//\)[^/]' \| \ 13567 X"$mf" : 'X\(//\)$' \| \ 13568 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13569$as_echo X"$mf" | 13570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13571 s//\1/ 13572 q 13573 } 13574 /^X\(\/\/\)[^/].*/{ 13575 s//\1/ 13576 q 13577 } 13578 /^X\(\/\/\)$/{ 13579 s//\1/ 13580 q 13581 } 13582 /^X\(\/\).*/{ 13583 s//\1/ 13584 q 13585 } 13586 s/.*/./; q'` 13587 else 13588 continue 13589 fi 13590 # Extract the definition of DEPDIR, am__include, and am__quote 13591 # from the Makefile without running `make'. 13592 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13593 test -z "$DEPDIR" && continue 13594 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13595 test -z "am__include" && continue 13596 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13597 # When using ansi2knr, U may be empty or an underscore; expand it 13598 U=`sed -n 's/^U = //p' < "$mf"` 13599 # Find all dependency output files, they are included files with 13600 # $(DEPDIR) in their names. We invoke sed twice because it is the 13601 # simplest approach to changing $(DEPDIR) to its actual value in the 13602 # expansion. 13603 for file in `sed -n " 13604 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13605 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13606 # Make sure the directory exists. 13607 test -f "$dirpart/$file" && continue 13608 fdir=`$as_dirname -- "$file" || 13609$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13610 X"$file" : 'X\(//\)[^/]' \| \ 13611 X"$file" : 'X\(//\)$' \| \ 13612 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13613$as_echo X"$file" | 13614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13615 s//\1/ 13616 q 13617 } 13618 /^X\(\/\/\)[^/].*/{ 13619 s//\1/ 13620 q 13621 } 13622 /^X\(\/\/\)$/{ 13623 s//\1/ 13624 q 13625 } 13626 /^X\(\/\).*/{ 13627 s//\1/ 13628 q 13629 } 13630 s/.*/./; q'` 13631 { as_dir=$dirpart/$fdir 13632 case $as_dir in #( 13633 -*) as_dir=./$as_dir;; 13634 esac 13635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13636 as_dirs= 13637 while :; do 13638 case $as_dir in #( 13639 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13640 *) as_qdir=$as_dir;; 13641 esac 13642 as_dirs="'$as_qdir' $as_dirs" 13643 as_dir=`$as_dirname -- "$as_dir" || 13644$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13645 X"$as_dir" : 'X\(//\)[^/]' \| \ 13646 X"$as_dir" : 'X\(//\)$' \| \ 13647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13648$as_echo X"$as_dir" | 13649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13650 s//\1/ 13651 q 13652 } 13653 /^X\(\/\/\)[^/].*/{ 13654 s//\1/ 13655 q 13656 } 13657 /^X\(\/\/\)$/{ 13658 s//\1/ 13659 q 13660 } 13661 /^X\(\/\).*/{ 13662 s//\1/ 13663 q 13664 } 13665 s/.*/./; q'` 13666 test -d "$as_dir" && break 13667 done 13668 test -z "$as_dirs" || eval "mkdir $as_dirs" 13669 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13670$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13671 { (exit 1); exit 1; }; }; } 13672 # echo "creating $dirpart/$file" 13673 echo '# dummy' > "$dirpart/$file" 13674 done 13675done 13676 ;; 13677 "libtool":C) 13678 13679 # See if we are running on zsh, and set the options which allow our 13680 # commands through without removal of \ escapes. 13681 if test -n "${ZSH_VERSION+set}" ; then 13682 setopt NO_GLOB_SUBST 13683 fi 13684 13685 cfgfile="${ofile}T" 13686 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13687 $RM "$cfgfile" 13688 13689 cat <<_LT_EOF >> "$cfgfile" 13690#! $SHELL 13691 13692# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13693# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13694# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13695# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13696# 13697# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13698# 2006, 2007, 2008 Free Software Foundation, Inc. 13699# Written by Gordon Matzigkeit, 1996 13700# 13701# This file is part of GNU Libtool. 13702# 13703# GNU Libtool is free software; you can redistribute it and/or 13704# modify it under the terms of the GNU General Public License as 13705# published by the Free Software Foundation; either version 2 of 13706# the License, or (at your option) any later version. 13707# 13708# As a special exception to the GNU General Public License, 13709# if you distribute this file as part of a program or library that 13710# is built using GNU Libtool, you may include this file under the 13711# same distribution terms that you use for the rest of that program. 13712# 13713# GNU Libtool is distributed in the hope that it will be useful, 13714# but WITHOUT ANY WARRANTY; without even the implied warranty of 13715# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13716# GNU General Public License for more details. 13717# 13718# You should have received a copy of the GNU General Public License 13719# along with GNU Libtool; see the file COPYING. If not, a copy 13720# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13721# obtained by writing to the Free Software Foundation, Inc., 13722# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13723 13724 13725# The names of the tagged configurations supported by this script. 13726available_tags="" 13727 13728# ### BEGIN LIBTOOL CONFIG 13729 13730# A sed program that does not truncate output. 13731SED=$lt_SED 13732 13733# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13734Xsed="\$SED -e 1s/^X//" 13735 13736# A grep program that handles long lines. 13737GREP=$lt_GREP 13738 13739# An ERE matcher. 13740EGREP=$lt_EGREP 13741 13742# A literal string matcher. 13743FGREP=$lt_FGREP 13744 13745# Which release of libtool.m4 was used? 13746macro_version=$macro_version 13747macro_revision=$macro_revision 13748 13749# Whether or not to build shared libraries. 13750build_libtool_libs=$enable_shared 13751 13752# Whether or not to build static libraries. 13753build_old_libs=$enable_static 13754 13755# What type of objects to build. 13756pic_mode=$pic_mode 13757 13758# Whether or not to optimize for fast installation. 13759fast_install=$enable_fast_install 13760 13761# The host system. 13762host_alias=$host_alias 13763host=$host 13764host_os=$host_os 13765 13766# The build system. 13767build_alias=$build_alias 13768build=$build 13769build_os=$build_os 13770 13771# A BSD- or MS-compatible name lister. 13772NM=$lt_NM 13773 13774# Whether we need soft or hard links. 13775LN_S=$lt_LN_S 13776 13777# What is the maximum length of a command? 13778max_cmd_len=$max_cmd_len 13779 13780# Object file suffix (normally "o"). 13781objext=$ac_objext 13782 13783# Executable file suffix (normally ""). 13784exeext=$exeext 13785 13786# whether the shell understands "unset". 13787lt_unset=$lt_unset 13788 13789# turn spaces into newlines. 13790SP2NL=$lt_lt_SP2NL 13791 13792# turn newlines into spaces. 13793NL2SP=$lt_lt_NL2SP 13794 13795# How to create reloadable object files. 13796reload_flag=$lt_reload_flag 13797reload_cmds=$lt_reload_cmds 13798 13799# An object symbol dumper. 13800OBJDUMP=$lt_OBJDUMP 13801 13802# Method to check whether dependent libraries are shared objects. 13803deplibs_check_method=$lt_deplibs_check_method 13804 13805# Command to use when deplibs_check_method == "file_magic". 13806file_magic_cmd=$lt_file_magic_cmd 13807 13808# The archiver. 13809AR=$lt_AR 13810AR_FLAGS=$lt_AR_FLAGS 13811 13812# A symbol stripping program. 13813STRIP=$lt_STRIP 13814 13815# Commands used to install an old-style archive. 13816RANLIB=$lt_RANLIB 13817old_postinstall_cmds=$lt_old_postinstall_cmds 13818old_postuninstall_cmds=$lt_old_postuninstall_cmds 13819 13820# A C compiler. 13821LTCC=$lt_CC 13822 13823# LTCC compiler flags. 13824LTCFLAGS=$lt_CFLAGS 13825 13826# Take the output of nm and produce a listing of raw symbols and C names. 13827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13828 13829# Transform the output of nm in a proper C declaration. 13830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13831 13832# Transform the output of nm in a C name address pair. 13833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13834 13835# Transform the output of nm in a C name address pair when lib prefix is needed. 13836global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13837 13838# The name of the directory that contains temporary libtool files. 13839objdir=$objdir 13840 13841# Shell to use when invoking shell scripts. 13842SHELL=$lt_SHELL 13843 13844# An echo program that does not interpret backslashes. 13845ECHO=$lt_ECHO 13846 13847# Used to examine libraries when file_magic_cmd begins with "file". 13848MAGIC_CMD=$MAGIC_CMD 13849 13850# Must we lock files when doing compilation? 13851need_locks=$lt_need_locks 13852 13853# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13854DSYMUTIL=$lt_DSYMUTIL 13855 13856# Tool to change global to local symbols on Mac OS X. 13857NMEDIT=$lt_NMEDIT 13858 13859# Tool to manipulate fat objects and archives on Mac OS X. 13860LIPO=$lt_LIPO 13861 13862# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13863OTOOL=$lt_OTOOL 13864 13865# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13866OTOOL64=$lt_OTOOL64 13867 13868# Old archive suffix (normally "a"). 13869libext=$libext 13870 13871# Shared library suffix (normally ".so"). 13872shrext_cmds=$lt_shrext_cmds 13873 13874# The commands to extract the exported symbol list from a shared archive. 13875extract_expsyms_cmds=$lt_extract_expsyms_cmds 13876 13877# Variables whose values should be saved in libtool wrapper scripts and 13878# restored at link time. 13879variables_saved_for_relink=$lt_variables_saved_for_relink 13880 13881# Do we need the "lib" prefix for modules? 13882need_lib_prefix=$need_lib_prefix 13883 13884# Do we need a version for libraries? 13885need_version=$need_version 13886 13887# Library versioning type. 13888version_type=$version_type 13889 13890# Shared library runtime path variable. 13891runpath_var=$runpath_var 13892 13893# Shared library path variable. 13894shlibpath_var=$shlibpath_var 13895 13896# Is shlibpath searched before the hard-coded library search path? 13897shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13898 13899# Format of library name prefix. 13900libname_spec=$lt_libname_spec 13901 13902# List of archive names. First name is the real one, the rest are links. 13903# The last name is the one that the linker finds with -lNAME 13904library_names_spec=$lt_library_names_spec 13905 13906# The coded name of the library, if different from the real name. 13907soname_spec=$lt_soname_spec 13908 13909# Command to use after installation of a shared archive. 13910postinstall_cmds=$lt_postinstall_cmds 13911 13912# Command to use after uninstallation of a shared archive. 13913postuninstall_cmds=$lt_postuninstall_cmds 13914 13915# Commands used to finish a libtool library installation in a directory. 13916finish_cmds=$lt_finish_cmds 13917 13918# As "finish_cmds", except a single script fragment to be evaled but 13919# not shown. 13920finish_eval=$lt_finish_eval 13921 13922# Whether we should hardcode library paths into libraries. 13923hardcode_into_libs=$hardcode_into_libs 13924 13925# Compile-time system search path for libraries. 13926sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13927 13928# Run-time system search path for libraries. 13929sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13930 13931# Whether dlopen is supported. 13932dlopen_support=$enable_dlopen 13933 13934# Whether dlopen of programs is supported. 13935dlopen_self=$enable_dlopen_self 13936 13937# Whether dlopen of statically linked programs is supported. 13938dlopen_self_static=$enable_dlopen_self_static 13939 13940# Commands to strip libraries. 13941old_striplib=$lt_old_striplib 13942striplib=$lt_striplib 13943 13944 13945# The linker used to build libraries. 13946LD=$lt_LD 13947 13948# Commands used to build an old-style archive. 13949old_archive_cmds=$lt_old_archive_cmds 13950 13951# A language specific compiler. 13952CC=$lt_compiler 13953 13954# Is the compiler the GNU compiler? 13955with_gcc=$GCC 13956 13957# Compiler flag to turn off builtin functions. 13958no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13959 13960# How to pass a linker flag through the compiler. 13961wl=$lt_lt_prog_compiler_wl 13962 13963# Additional compiler flags for building library objects. 13964pic_flag=$lt_lt_prog_compiler_pic 13965 13966# Compiler flag to prevent dynamic linking. 13967link_static_flag=$lt_lt_prog_compiler_static 13968 13969# Does compiler simultaneously support -c and -o options? 13970compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13971 13972# Whether or not to add -lc for building shared libraries. 13973build_libtool_need_lc=$archive_cmds_need_lc 13974 13975# Whether or not to disallow shared libs when runtime libs are static. 13976allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13977 13978# Compiler flag to allow reflexive dlopens. 13979export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13980 13981# Compiler flag to generate shared objects directly from archives. 13982whole_archive_flag_spec=$lt_whole_archive_flag_spec 13983 13984# Whether the compiler copes with passing no objects directly. 13985compiler_needs_object=$lt_compiler_needs_object 13986 13987# Create an old-style archive from a shared archive. 13988old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13989 13990# Create a temporary old-style archive to link instead of a shared archive. 13991old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13992 13993# Commands used to build a shared archive. 13994archive_cmds=$lt_archive_cmds 13995archive_expsym_cmds=$lt_archive_expsym_cmds 13996 13997# Commands used to build a loadable module if different from building 13998# a shared archive. 13999module_cmds=$lt_module_cmds 14000module_expsym_cmds=$lt_module_expsym_cmds 14001 14002# Whether we are building with GNU ld or not. 14003with_gnu_ld=$lt_with_gnu_ld 14004 14005# Flag that allows shared libraries with undefined symbols to be built. 14006allow_undefined_flag=$lt_allow_undefined_flag 14007 14008# Flag that enforces no undefined symbols. 14009no_undefined_flag=$lt_no_undefined_flag 14010 14011# Flag to hardcode \$libdir into a binary during linking. 14012# This must work even if \$libdir does not exist 14013hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14014 14015# If ld is used when linking, flag to hardcode \$libdir into a binary 14016# during linking. This must work even if \$libdir does not exist. 14017hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14018 14019# Whether we need a single "-rpath" flag with a separated argument. 14020hardcode_libdir_separator=$lt_hardcode_libdir_separator 14021 14022# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14023# DIR into the resulting binary. 14024hardcode_direct=$hardcode_direct 14025 14026# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14027# DIR into the resulting binary and the resulting library dependency is 14028# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14029# library is relocated. 14030hardcode_direct_absolute=$hardcode_direct_absolute 14031 14032# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14033# into the resulting binary. 14034hardcode_minus_L=$hardcode_minus_L 14035 14036# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14037# into the resulting binary. 14038hardcode_shlibpath_var=$hardcode_shlibpath_var 14039 14040# Set to "yes" if building a shared library automatically hardcodes DIR 14041# into the library and all subsequent libraries and executables linked 14042# against it. 14043hardcode_automatic=$hardcode_automatic 14044 14045# Set to yes if linker adds runtime paths of dependent libraries 14046# to runtime path list. 14047inherit_rpath=$inherit_rpath 14048 14049# Whether libtool must link a program against all its dependency libraries. 14050link_all_deplibs=$link_all_deplibs 14051 14052# Fix the shell variable \$srcfile for the compiler. 14053fix_srcfile_path=$lt_fix_srcfile_path 14054 14055# Set to "yes" if exported symbols are required. 14056always_export_symbols=$always_export_symbols 14057 14058# The commands to list exported symbols. 14059export_symbols_cmds=$lt_export_symbols_cmds 14060 14061# Symbols that should not be listed in the preloaded symbols. 14062exclude_expsyms=$lt_exclude_expsyms 14063 14064# Symbols that must always be exported. 14065include_expsyms=$lt_include_expsyms 14066 14067# Commands necessary for linking programs (against libraries) with templates. 14068prelink_cmds=$lt_prelink_cmds 14069 14070# Specify filename containing input files. 14071file_list_spec=$lt_file_list_spec 14072 14073# How to hardcode a shared library path into an executable. 14074hardcode_action=$hardcode_action 14075 14076# ### END LIBTOOL CONFIG 14077 14078_LT_EOF 14079 14080 case $host_os in 14081 aix3*) 14082 cat <<\_LT_EOF >> "$cfgfile" 14083# AIX sometimes has problems with the GCC collect2 program. For some 14084# reason, if we set the COLLECT_NAMES environment variable, the problems 14085# vanish in a puff of smoke. 14086if test "X${COLLECT_NAMES+set}" != Xset; then 14087 COLLECT_NAMES= 14088 export COLLECT_NAMES 14089fi 14090_LT_EOF 14091 ;; 14092 esac 14093 14094 14095ltmain="$ac_aux_dir/ltmain.sh" 14096 14097 14098 # We use sed instead of cat because bash on DJGPP gets confused if 14099 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14100 # text mode, it properly converts lines to CR/LF. This bash problem 14101 # is reportedly fixed, but why not run on old versions too? 14102 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14103 || (rm -f "$cfgfile"; exit 1) 14104 14105 case $xsi_shell in 14106 yes) 14107 cat << \_LT_EOF >> "$cfgfile" 14108 14109# func_dirname file append nondir_replacement 14110# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14111# otherwise set result to NONDIR_REPLACEMENT. 14112func_dirname () 14113{ 14114 case ${1} in 14115 */*) func_dirname_result="${1%/*}${2}" ;; 14116 * ) func_dirname_result="${3}" ;; 14117 esac 14118} 14119 14120# func_basename file 14121func_basename () 14122{ 14123 func_basename_result="${1##*/}" 14124} 14125 14126# func_dirname_and_basename file append nondir_replacement 14127# perform func_basename and func_dirname in a single function 14128# call: 14129# dirname: Compute the dirname of FILE. If nonempty, 14130# add APPEND to the result, otherwise set result 14131# to NONDIR_REPLACEMENT. 14132# value returned in "$func_dirname_result" 14133# basename: Compute filename of FILE. 14134# value retuned in "$func_basename_result" 14135# Implementation must be kept synchronized with func_dirname 14136# and func_basename. For efficiency, we do not delegate to 14137# those functions but instead duplicate the functionality here. 14138func_dirname_and_basename () 14139{ 14140 case ${1} in 14141 */*) func_dirname_result="${1%/*}${2}" ;; 14142 * ) func_dirname_result="${3}" ;; 14143 esac 14144 func_basename_result="${1##*/}" 14145} 14146 14147# func_stripname prefix suffix name 14148# strip PREFIX and SUFFIX off of NAME. 14149# PREFIX and SUFFIX must not contain globbing or regex special 14150# characters, hashes, percent signs, but SUFFIX may contain a leading 14151# dot (in which case that matches only a dot). 14152func_stripname () 14153{ 14154 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14155 # positional parameters, so assign one to ordinary parameter first. 14156 func_stripname_result=${3} 14157 func_stripname_result=${func_stripname_result#"${1}"} 14158 func_stripname_result=${func_stripname_result%"${2}"} 14159} 14160 14161# func_opt_split 14162func_opt_split () 14163{ 14164 func_opt_split_opt=${1%%=*} 14165 func_opt_split_arg=${1#*=} 14166} 14167 14168# func_lo2o object 14169func_lo2o () 14170{ 14171 case ${1} in 14172 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14173 *) func_lo2o_result=${1} ;; 14174 esac 14175} 14176 14177# func_xform libobj-or-source 14178func_xform () 14179{ 14180 func_xform_result=${1%.*}.lo 14181} 14182 14183# func_arith arithmetic-term... 14184func_arith () 14185{ 14186 func_arith_result=$(( $* )) 14187} 14188 14189# func_len string 14190# STRING may not start with a hyphen. 14191func_len () 14192{ 14193 func_len_result=${#1} 14194} 14195 14196_LT_EOF 14197 ;; 14198 *) # Bourne compatible functions. 14199 cat << \_LT_EOF >> "$cfgfile" 14200 14201# func_dirname file append nondir_replacement 14202# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14203# otherwise set result to NONDIR_REPLACEMENT. 14204func_dirname () 14205{ 14206 # Extract subdirectory from the argument. 14207 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14208 if test "X$func_dirname_result" = "X${1}"; then 14209 func_dirname_result="${3}" 14210 else 14211 func_dirname_result="$func_dirname_result${2}" 14212 fi 14213} 14214 14215# func_basename file 14216func_basename () 14217{ 14218 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14219} 14220 14221 14222# func_stripname prefix suffix name 14223# strip PREFIX and SUFFIX off of NAME. 14224# PREFIX and SUFFIX must not contain globbing or regex special 14225# characters, hashes, percent signs, but SUFFIX may contain a leading 14226# dot (in which case that matches only a dot). 14227# func_strip_suffix prefix name 14228func_stripname () 14229{ 14230 case ${2} in 14231 .*) func_stripname_result=`$ECHO "X${3}" \ 14232 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14233 *) func_stripname_result=`$ECHO "X${3}" \ 14234 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14235 esac 14236} 14237 14238# sed scripts: 14239my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14240my_sed_long_arg='1s/^-[^=]*=//' 14241 14242# func_opt_split 14243func_opt_split () 14244{ 14245 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14246 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14247} 14248 14249# func_lo2o object 14250func_lo2o () 14251{ 14252 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14253} 14254 14255# func_xform libobj-or-source 14256func_xform () 14257{ 14258 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14259} 14260 14261# func_arith arithmetic-term... 14262func_arith () 14263{ 14264 func_arith_result=`expr "$@"` 14265} 14266 14267# func_len string 14268# STRING may not start with a hyphen. 14269func_len () 14270{ 14271 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14272} 14273 14274_LT_EOF 14275esac 14276 14277case $lt_shell_append in 14278 yes) 14279 cat << \_LT_EOF >> "$cfgfile" 14280 14281# func_append var value 14282# Append VALUE to the end of shell variable VAR. 14283func_append () 14284{ 14285 eval "$1+=\$2" 14286} 14287_LT_EOF 14288 ;; 14289 *) 14290 cat << \_LT_EOF >> "$cfgfile" 14291 14292# func_append var value 14293# Append VALUE to the end of shell variable VAR. 14294func_append () 14295{ 14296 eval "$1=\$$1\$2" 14297} 14298 14299_LT_EOF 14300 ;; 14301 esac 14302 14303 14304 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14305 || (rm -f "$cfgfile"; exit 1) 14306 14307 mv -f "$cfgfile" "$ofile" || 14308 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14309 chmod +x "$ofile" 14310 14311 ;; 14312 14313 esac 14314done # for ac_tag 14315 14316 14317{ (exit 0); exit 0; } 14318_ACEOF 14319chmod +x $CONFIG_STATUS 14320ac_clean_files=$ac_clean_files_save 14321 14322test $ac_write_fail = 0 || 14323 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 14324$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 14325 { (exit 1); exit 1; }; } 14326 14327 14328# configure is writing to config.log, and then calls config.status. 14329# config.status does its own redirection, appending to config.log. 14330# Unfortunately, on DOS this fails, as config.log is still kept open 14331# by configure, so config.status won't be able to write to it; its 14332# output is simply discarded. So we exec the FD to /dev/null, 14333# effectively closing config.log, so it can be properly (re)opened and 14334# appended to by config.status. When coming back to configure, we 14335# need to make the FD available again. 14336if test "$no_create" != yes; then 14337 ac_cs_success=: 14338 ac_config_status_args= 14339 test "$silent" = yes && 14340 ac_config_status_args="$ac_config_status_args --quiet" 14341 exec 5>/dev/null 14342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14343 exec 5>>config.log 14344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14345 # would make configure fail if this is the last instruction. 14346 $ac_cs_success || { (exit 1); exit 1; } 14347fi 14348if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14349 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14350$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14351fi 14352 14353