configure revision e9a683104ef3f40d38459c0ca62a2d46f20b0714
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libusb-compat 0.1.3. 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='libusb-compat' 745PACKAGE_TARNAME='libusb-compat' 746PACKAGE_VERSION='0.1.3' 747PACKAGE_STRING='libusb-compat 0.1.3' 748PACKAGE_BUGREPORT='' 749 750ac_unique_file="libusb/core.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 788LIBOBJS 789AM_CFLAGS 790BUILD_EXAMPLES_FALSE 791BUILD_EXAMPLES_TRUE 792LIBUSB_1_0_LIBS 793LIBUSB_1_0_CFLAGS 794PKG_CONFIG 795LIBUSB01_VERSION 796LT_AGE 797LT_REVISION 798LT_MAJOR 799CPP 800OTOOL64 801OTOOL 802LIPO 803NMEDIT 804DSYMUTIL 805lt_ECHO 806RANLIB 807AR 808OBJDUMP 809LN_S 810NM 811ac_ct_DUMPBIN 812DUMPBIN 813LD 814FGREP 815EGREP 816GREP 817SED 818host_os 819host_vendor 820host_cpu 821host 822build_os 823build_vendor 824build_cpu 825build 826LIBTOOL 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 843am__untar 844am__tar 845AMTAR 846am__leading_dot 847SET_MAKE 848AWK 849mkdir_p 850MKDIR_P 851INSTALL_STRIP_PROGRAM 852STRIP 853install_sh 854MAKEINFO 855AUTOHEADER 856AUTOMAKE 857AUTOCONF 858ACLOCAL 859VERSION 860PACKAGE 861CYGPATH_W 862am__isrc 863INSTALL_DATA 864INSTALL_SCRIPT 865INSTALL_PROGRAM 866target_alias 867host_alias 868build_alias 869LIBS 870ECHO_T 871ECHO_N 872ECHO_C 873DEFS 874mandir 875localedir 876libdir 877psdir 878pdfdir 879dvidir 880htmldir 881infodir 882docdir 883oldincludedir 884includedir 885localstatedir 886sharedstatedir 887sysconfdir 888datadir 889datarootdir 890libexecdir 891sbindir 892bindir 893program_transform_name 894prefix 895exec_prefix 896PACKAGE_BUGREPORT 897PACKAGE_STRING 898PACKAGE_VERSION 899PACKAGE_TARNAME 900PACKAGE_NAME 901PATH_SEPARATOR 902SHELL' 903ac_subst_files='' 904ac_user_opts=' 905enable_option_checking 906enable_dependency_tracking 907enable_shared 908enable_static 909with_pic 910enable_fast_install 911with_gnu_ld 912enable_libtool_lock 913enable_log 914enable_debug_log 915enable_examples_build 916' 917 ac_precious_vars='build_alias 918host_alias 919target_alias 920CC 921CFLAGS 922LDFLAGS 923LIBS 924CPPFLAGS 925CPP 926PKG_CONFIG 927LIBUSB_1_0_CFLAGS 928LIBUSB_1_0_LIBS' 929 930 931# Initialize some variables set by options. 932ac_init_help= 933ac_init_version=false 934ac_unrecognized_opts= 935ac_unrecognized_sep= 936# The variables have the same names as the options, with 937# dashes changed to underlines. 938cache_file=/dev/null 939exec_prefix=NONE 940no_create= 941no_recursion= 942prefix=NONE 943program_prefix=NONE 944program_suffix=NONE 945program_transform_name=s,x,x, 946silent= 947site= 948srcdir= 949verbose= 950x_includes=NONE 951x_libraries=NONE 952 953# Installation directory options. 954# These are left unexpanded so users can "make install exec_prefix=/foo" 955# and all the variables that are supposed to be based on exec_prefix 956# by default will actually change. 957# Use braces instead of parens because sh, perl, etc. also accept them. 958# (The list follows the same order as the GNU Coding Standards.) 959bindir='${exec_prefix}/bin' 960sbindir='${exec_prefix}/sbin' 961libexecdir='${exec_prefix}/libexec' 962datarootdir='${prefix}/share' 963datadir='${datarootdir}' 964sysconfdir='${prefix}/etc' 965sharedstatedir='${prefix}/com' 966localstatedir='${prefix}/var' 967includedir='${prefix}/include' 968oldincludedir='/usr/include' 969docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 970infodir='${datarootdir}/info' 971htmldir='${docdir}' 972dvidir='${docdir}' 973pdfdir='${docdir}' 974psdir='${docdir}' 975libdir='${exec_prefix}/lib' 976localedir='${datarootdir}/locale' 977mandir='${datarootdir}/man' 978 979ac_prev= 980ac_dashdash= 981for ac_option 982do 983 # If the previous option needs an argument, assign it. 984 if test -n "$ac_prev"; then 985 eval $ac_prev=\$ac_option 986 ac_prev= 987 continue 988 fi 989 990 case $ac_option in 991 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 992 *) ac_optarg=yes ;; 993 esac 994 995 # Accept the important Cygnus configure options, so we can diagnose typos. 996 997 case $ac_dashdash$ac_option in 998 --) 999 ac_dashdash=yes ;; 1000 1001 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1002 ac_prev=bindir ;; 1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1004 bindir=$ac_optarg ;; 1005 1006 -build | --build | --buil | --bui | --bu) 1007 ac_prev=build_alias ;; 1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1009 build_alias=$ac_optarg ;; 1010 1011 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1013 ac_prev=cache_file ;; 1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1016 cache_file=$ac_optarg ;; 1017 1018 --config-cache | -C) 1019 cache_file=config.cache ;; 1020 1021 -datadir | --datadir | --datadi | --datad) 1022 ac_prev=datadir ;; 1023 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1024 datadir=$ac_optarg ;; 1025 1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1027 | --dataroo | --dataro | --datar) 1028 ac_prev=datarootdir ;; 1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1031 datarootdir=$ac_optarg ;; 1032 1033 -disable-* | --disable-*) 1034 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1035 # Reject names that are not valid shell variable names. 1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1037 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1038 { (exit 1); exit 1; }; } 1039 ac_useropt_orig=$ac_useropt 1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1041 case $ac_user_opts in 1042 *" 1043"enable_$ac_useropt" 1044"*) ;; 1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1046 ac_unrecognized_sep=', ';; 1047 esac 1048 eval enable_$ac_useropt=no ;; 1049 1050 -docdir | --docdir | --docdi | --doc | --do) 1051 ac_prev=docdir ;; 1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1053 docdir=$ac_optarg ;; 1054 1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1056 ac_prev=dvidir ;; 1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1058 dvidir=$ac_optarg ;; 1059 1060 -enable-* | --enable-*) 1061 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1062 # Reject names that are not valid shell variable names. 1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1064 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1065 { (exit 1); exit 1; }; } 1066 ac_useropt_orig=$ac_useropt 1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1068 case $ac_user_opts in 1069 *" 1070"enable_$ac_useropt" 1071"*) ;; 1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1073 ac_unrecognized_sep=', ';; 1074 esac 1075 eval enable_$ac_useropt=\$ac_optarg ;; 1076 1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1079 | --exec | --exe | --ex) 1080 ac_prev=exec_prefix ;; 1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1083 | --exec=* | --exe=* | --ex=*) 1084 exec_prefix=$ac_optarg ;; 1085 1086 -gas | --gas | --ga | --g) 1087 # Obsolete; use --with-gas. 1088 with_gas=yes ;; 1089 1090 -help | --help | --hel | --he | -h) 1091 ac_init_help=long ;; 1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1093 ac_init_help=recursive ;; 1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1095 ac_init_help=short ;; 1096 1097 -host | --host | --hos | --ho) 1098 ac_prev=host_alias ;; 1099 -host=* | --host=* | --hos=* | --ho=*) 1100 host_alias=$ac_optarg ;; 1101 1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1103 ac_prev=htmldir ;; 1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1105 | --ht=*) 1106 htmldir=$ac_optarg ;; 1107 1108 -includedir | --includedir | --includedi | --included | --include \ 1109 | --includ | --inclu | --incl | --inc) 1110 ac_prev=includedir ;; 1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1112 | --includ=* | --inclu=* | --incl=* | --inc=*) 1113 includedir=$ac_optarg ;; 1114 1115 -infodir | --infodir | --infodi | --infod | --info | --inf) 1116 ac_prev=infodir ;; 1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1118 infodir=$ac_optarg ;; 1119 1120 -libdir | --libdir | --libdi | --libd) 1121 ac_prev=libdir ;; 1122 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1123 libdir=$ac_optarg ;; 1124 1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1126 | --libexe | --libex | --libe) 1127 ac_prev=libexecdir ;; 1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1129 | --libexe=* | --libex=* | --libe=*) 1130 libexecdir=$ac_optarg ;; 1131 1132 -localedir | --localedir | --localedi | --localed | --locale) 1133 ac_prev=localedir ;; 1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1135 localedir=$ac_optarg ;; 1136 1137 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1138 | --localstate | --localstat | --localsta | --localst | --locals) 1139 ac_prev=localstatedir ;; 1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1142 localstatedir=$ac_optarg ;; 1143 1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1145 ac_prev=mandir ;; 1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1147 mandir=$ac_optarg ;; 1148 1149 -nfp | --nfp | --nf) 1150 # Obsolete; use --without-fp. 1151 with_fp=no ;; 1152 1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1154 | --no-cr | --no-c | -n) 1155 no_create=yes ;; 1156 1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1159 no_recursion=yes ;; 1160 1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1163 | --oldin | --oldi | --old | --ol | --o) 1164 ac_prev=oldincludedir ;; 1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1168 oldincludedir=$ac_optarg ;; 1169 1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1171 ac_prev=prefix ;; 1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1173 prefix=$ac_optarg ;; 1174 1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1176 | --program-pre | --program-pr | --program-p) 1177 ac_prev=program_prefix ;; 1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1180 program_prefix=$ac_optarg ;; 1181 1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1183 | --program-suf | --program-su | --program-s) 1184 ac_prev=program_suffix ;; 1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1187 program_suffix=$ac_optarg ;; 1188 1189 -program-transform-name | --program-transform-name \ 1190 | --program-transform-nam | --program-transform-na \ 1191 | --program-transform-n | --program-transform- \ 1192 | --program-transform | --program-transfor \ 1193 | --program-transfo | --program-transf \ 1194 | --program-trans | --program-tran \ 1195 | --progr-tra | --program-tr | --program-t) 1196 ac_prev=program_transform_name ;; 1197 -program-transform-name=* | --program-transform-name=* \ 1198 | --program-transform-nam=* | --program-transform-na=* \ 1199 | --program-transform-n=* | --program-transform-=* \ 1200 | --program-transform=* | --program-transfor=* \ 1201 | --program-transfo=* | --program-transf=* \ 1202 | --program-trans=* | --program-tran=* \ 1203 | --progr-tra=* | --program-tr=* | --program-t=*) 1204 program_transform_name=$ac_optarg ;; 1205 1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1207 ac_prev=pdfdir ;; 1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1209 pdfdir=$ac_optarg ;; 1210 1211 -psdir | --psdir | --psdi | --psd | --ps) 1212 ac_prev=psdir ;; 1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1214 psdir=$ac_optarg ;; 1215 1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1217 | -silent | --silent | --silen | --sile | --sil) 1218 silent=yes ;; 1219 1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1221 ac_prev=sbindir ;; 1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1223 | --sbi=* | --sb=*) 1224 sbindir=$ac_optarg ;; 1225 1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1228 | --sharedst | --shareds | --shared | --share | --shar \ 1229 | --sha | --sh) 1230 ac_prev=sharedstatedir ;; 1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1234 | --sha=* | --sh=*) 1235 sharedstatedir=$ac_optarg ;; 1236 1237 -site | --site | --sit) 1238 ac_prev=site ;; 1239 -site=* | --site=* | --sit=*) 1240 site=$ac_optarg ;; 1241 1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1243 ac_prev=srcdir ;; 1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1245 srcdir=$ac_optarg ;; 1246 1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1248 | --syscon | --sysco | --sysc | --sys | --sy) 1249 ac_prev=sysconfdir ;; 1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1252 sysconfdir=$ac_optarg ;; 1253 1254 -target | --target | --targe | --targ | --tar | --ta | --t) 1255 ac_prev=target_alias ;; 1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1257 target_alias=$ac_optarg ;; 1258 1259 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1260 verbose=yes ;; 1261 1262 -version | --version | --versio | --versi | --vers | -V) 1263 ac_init_version=: ;; 1264 1265 -with-* | --with-*) 1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1267 # Reject names that are not valid shell variable names. 1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1269 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1270 { (exit 1); exit 1; }; } 1271 ac_useropt_orig=$ac_useropt 1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1273 case $ac_user_opts in 1274 *" 1275"with_$ac_useropt" 1276"*) ;; 1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1278 ac_unrecognized_sep=', ';; 1279 esac 1280 eval with_$ac_useropt=\$ac_optarg ;; 1281 1282 -without-* | --without-*) 1283 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1284 # Reject names that are not valid shell variable names. 1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1286 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1287 { (exit 1); exit 1; }; } 1288 ac_useropt_orig=$ac_useropt 1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1290 case $ac_user_opts in 1291 *" 1292"with_$ac_useropt" 1293"*) ;; 1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1295 ac_unrecognized_sep=', ';; 1296 esac 1297 eval with_$ac_useropt=no ;; 1298 1299 --x) 1300 # Obsolete; use --with-x. 1301 with_x=yes ;; 1302 1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1304 | --x-incl | --x-inc | --x-in | --x-i) 1305 ac_prev=x_includes ;; 1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1308 x_includes=$ac_optarg ;; 1309 1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1312 ac_prev=x_libraries ;; 1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1315 x_libraries=$ac_optarg ;; 1316 1317 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1318Try \`$0 --help' for more information." >&2 1319 { (exit 1); exit 1; }; } 1320 ;; 1321 1322 *=*) 1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1324 # Reject names that are not valid shell variable names. 1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1326 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1327 { (exit 1); exit 1; }; } 1328 eval $ac_envvar=\$ac_optarg 1329 export $ac_envvar ;; 1330 1331 *) 1332 # FIXME: should be removed in autoconf 3.0. 1333 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1335 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1337 ;; 1338 1339 esac 1340done 1341 1342if test -n "$ac_prev"; then 1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1344 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1345 { (exit 1); exit 1; }; } 1346fi 1347 1348if test -n "$ac_unrecognized_opts"; then 1349 case $enable_option_checking in 1350 no) ;; 1351 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1352 { (exit 1); exit 1; }; } ;; 1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1354 esac 1355fi 1356 1357# Check all directory arguments for consistency. 1358for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1359 datadir sysconfdir sharedstatedir localstatedir includedir \ 1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1361 libdir localedir mandir 1362do 1363 eval ac_val=\$$ac_var 1364 # Remove trailing slashes. 1365 case $ac_val in 1366 */ ) 1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1368 eval $ac_var=\$ac_val;; 1369 esac 1370 # Be sure to have absolute directory names. 1371 case $ac_val in 1372 [\\/$]* | ?:[\\/]* ) continue;; 1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1374 esac 1375 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1376 { (exit 1); exit 1; }; } 1377done 1378 1379# There might be people who depend on the old broken behavior: `$host' 1380# used to hold the argument of --host etc. 1381# FIXME: To remove some day. 1382build=$build_alias 1383host=$host_alias 1384target=$target_alias 1385 1386# FIXME: To remove some day. 1387if test "x$host_alias" != x; then 1388 if test "x$build_alias" = x; then 1389 cross_compiling=maybe 1390 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1391 If a cross compiler is detected then cross compile mode will be used." >&2 1392 elif test "x$build_alias" != "x$host_alias"; then 1393 cross_compiling=yes 1394 fi 1395fi 1396 1397ac_tool_prefix= 1398test -n "$host_alias" && ac_tool_prefix=$host_alias- 1399 1400test "$silent" = yes && exec 6>/dev/null 1401 1402 1403ac_pwd=`pwd` && test -n "$ac_pwd" && 1404ac_ls_di=`ls -di .` && 1405ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1406 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1407 { (exit 1); exit 1; }; } 1408test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1409 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1410 { (exit 1); exit 1; }; } 1411 1412 1413# Find the source files, if location was not specified. 1414if test -z "$srcdir"; then 1415 ac_srcdir_defaulted=yes 1416 # Try the directory containing this script, then the parent directory. 1417 ac_confdir=`$as_dirname -- "$as_myself" || 1418$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1419 X"$as_myself" : 'X\(//\)[^/]' \| \ 1420 X"$as_myself" : 'X\(//\)$' \| \ 1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1422$as_echo X"$as_myself" | 1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1424 s//\1/ 1425 q 1426 } 1427 /^X\(\/\/\)[^/].*/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\/\)$/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\).*/{ 1436 s//\1/ 1437 q 1438 } 1439 s/.*/./; q'` 1440 srcdir=$ac_confdir 1441 if test ! -r "$srcdir/$ac_unique_file"; then 1442 srcdir=.. 1443 fi 1444else 1445 ac_srcdir_defaulted=no 1446fi 1447if test ! -r "$srcdir/$ac_unique_file"; then 1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1449 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1450 { (exit 1); exit 1; }; } 1451fi 1452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1453ac_abs_confdir=`( 1454 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1455 { (exit 1); exit 1; }; } 1456 pwd)` 1457# When building in place, set srcdir=. 1458if test "$ac_abs_confdir" = "$ac_pwd"; then 1459 srcdir=. 1460fi 1461# Remove unnecessary trailing slashes from srcdir. 1462# Double slashes in file names in object file debugging info 1463# mess up M-x gdb in Emacs. 1464case $srcdir in 1465*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1466esac 1467for ac_var in $ac_precious_vars; do 1468 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1469 eval ac_env_${ac_var}_value=\$${ac_var} 1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1471 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1472done 1473 1474# 1475# Report the --help message. 1476# 1477if test "$ac_init_help" = "long"; then 1478 # Omit some internal or obsolete options to make the list less imposing. 1479 # This message is too long to be a string in the A/UX 3.1 sh. 1480 cat <<_ACEOF 1481\`configure' configures libusb-compat 0.1.3 to adapt to many kinds of systems. 1482 1483Usage: $0 [OPTION]... [VAR=VALUE]... 1484 1485To assign environment variables (e.g., CC, CFLAGS...), specify them as 1486VAR=VALUE. See below for descriptions of some of the useful variables. 1487 1488Defaults for the options are specified in brackets. 1489 1490Configuration: 1491 -h, --help display this help and exit 1492 --help=short display options specific to this package 1493 --help=recursive display the short help of all the included packages 1494 -V, --version display version information and exit 1495 -q, --quiet, --silent do not print \`checking...' messages 1496 --cache-file=FILE cache test results in FILE [disabled] 1497 -C, --config-cache alias for \`--cache-file=config.cache' 1498 -n, --no-create do not create output files 1499 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1500 1501Installation directories: 1502 --prefix=PREFIX install architecture-independent files in PREFIX 1503 [$ac_default_prefix] 1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1505 [PREFIX] 1506 1507By default, \`make install' will install all the files in 1508\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1509an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1510for instance \`--prefix=\$HOME'. 1511 1512For better control, use the options below. 1513 1514Fine tuning of the installation directories: 1515 --bindir=DIR user executables [EPREFIX/bin] 1516 --sbindir=DIR system admin executables [EPREFIX/sbin] 1517 --libexecdir=DIR program executables [EPREFIX/libexec] 1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1521 --libdir=DIR object code libraries [EPREFIX/lib] 1522 --includedir=DIR C header files [PREFIX/include] 1523 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1526 --infodir=DIR info documentation [DATAROOTDIR/info] 1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1528 --mandir=DIR man documentation [DATAROOTDIR/man] 1529 --docdir=DIR documentation root [DATAROOTDIR/doc/libusb-compat] 1530 --htmldir=DIR html documentation [DOCDIR] 1531 --dvidir=DIR dvi documentation [DOCDIR] 1532 --pdfdir=DIR pdf documentation [DOCDIR] 1533 --psdir=DIR ps documentation [DOCDIR] 1534_ACEOF 1535 1536 cat <<\_ACEOF 1537 1538Program names: 1539 --program-prefix=PREFIX prepend PREFIX to installed program names 1540 --program-suffix=SUFFIX append SUFFIX to installed program names 1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1542 1543System types: 1544 --build=BUILD configure for building on BUILD [guessed] 1545 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1546_ACEOF 1547fi 1548 1549if test -n "$ac_init_help"; then 1550 case $ac_init_help in 1551 short | recursive ) echo "Configuration of libusb-compat 0.1.3:";; 1552 esac 1553 cat <<\_ACEOF 1554 1555Optional Features: 1556 --disable-option-checking ignore unrecognized --enable/--with options 1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1559 --disable-dependency-tracking speeds up one-time build 1560 --enable-dependency-tracking do not reject slow dependency extractors 1561 --enable-shared[=PKGS] build shared libraries [default=yes] 1562 --enable-static[=PKGS] build static libraries [default=yes] 1563 --enable-fast-install[=PKGS] 1564 optimize for fast installation [default=yes] 1565 --disable-libtool-lock avoid locking (might break parallel builds) 1566 --disable-log disable all logging 1567 --enable-debug-log enable debug logging (default n) 1568 --enable-examples-build build example applications (default n) 1569 1570Optional Packages: 1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1573 --with-pic try to use only PIC/non-PIC objects [default=use 1574 both] 1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1576 1577Some influential environment variables: 1578 CC C compiler command 1579 CFLAGS C compiler flags 1580 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1581 nonstandard directory <lib dir> 1582 LIBS libraries to pass to the linker, e.g. -l<library> 1583 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1584 you have headers in a nonstandard directory <include dir> 1585 CPP C preprocessor 1586 PKG_CONFIG path to pkg-config utility 1587 LIBUSB_1_0_CFLAGS 1588 C compiler flags for LIBUSB_1_0, overriding pkg-config 1589 LIBUSB_1_0_LIBS 1590 linker flags for LIBUSB_1_0, overriding pkg-config 1591 1592Use these variables to override the choices made by `configure' or to help 1593it to find libraries and programs with nonstandard names/locations. 1594 1595_ACEOF 1596ac_status=$? 1597fi 1598 1599if test "$ac_init_help" = "recursive"; then 1600 # If there are subdirs, report their specific --help. 1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1602 test -d "$ac_dir" || 1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1604 continue 1605 ac_builddir=. 1606 1607case "$ac_dir" in 1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1609*) 1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1611 # A ".." for each directory in $ac_dir_suffix. 1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1613 case $ac_top_builddir_sub in 1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1616 esac ;; 1617esac 1618ac_abs_top_builddir=$ac_pwd 1619ac_abs_builddir=$ac_pwd$ac_dir_suffix 1620# for backward compatibility: 1621ac_top_builddir=$ac_top_build_prefix 1622 1623case $srcdir in 1624 .) # We are building in place. 1625 ac_srcdir=. 1626 ac_top_srcdir=$ac_top_builddir_sub 1627 ac_abs_top_srcdir=$ac_pwd ;; 1628 [\\/]* | ?:[\\/]* ) # Absolute name. 1629 ac_srcdir=$srcdir$ac_dir_suffix; 1630 ac_top_srcdir=$srcdir 1631 ac_abs_top_srcdir=$srcdir ;; 1632 *) # Relative name. 1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1634 ac_top_srcdir=$ac_top_build_prefix$srcdir 1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1636esac 1637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1638 1639 cd "$ac_dir" || { ac_status=$?; continue; } 1640 # Check for guested configure. 1641 if test -f "$ac_srcdir/configure.gnu"; then 1642 echo && 1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1644 elif test -f "$ac_srcdir/configure"; then 1645 echo && 1646 $SHELL "$ac_srcdir/configure" --help=recursive 1647 else 1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1649 fi || ac_status=$? 1650 cd "$ac_pwd" || { ac_status=$?; break; } 1651 done 1652fi 1653 1654test -n "$ac_init_help" && exit $ac_status 1655if $ac_init_version; then 1656 cat <<\_ACEOF 1657libusb-compat configure 0.1.3 1658generated by GNU Autoconf 2.63 1659 1660Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16612002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1662This configure script is free software; the Free Software Foundation 1663gives unlimited permission to copy, distribute and modify it. 1664_ACEOF 1665 exit 1666fi 1667cat >config.log <<_ACEOF 1668This file contains any messages produced by compilers while 1669running configure, to aid debugging if configure makes a mistake. 1670 1671It was created by libusb-compat $as_me 0.1.3, which was 1672generated by GNU Autoconf 2.63. Invocation command line was 1673 1674 $ $0 $@ 1675 1676_ACEOF 1677exec 5>>config.log 1678{ 1679cat <<_ASUNAME 1680## --------- ## 1681## Platform. ## 1682## --------- ## 1683 1684hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1685uname -m = `(uname -m) 2>/dev/null || echo unknown` 1686uname -r = `(uname -r) 2>/dev/null || echo unknown` 1687uname -s = `(uname -s) 2>/dev/null || echo unknown` 1688uname -v = `(uname -v) 2>/dev/null || echo unknown` 1689 1690/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1691/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1692 1693/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1694/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1695/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1696/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1697/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1698/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1699/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1700 1701_ASUNAME 1702 1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1704for as_dir in $PATH 1705do 1706 IFS=$as_save_IFS 1707 test -z "$as_dir" && as_dir=. 1708 $as_echo "PATH: $as_dir" 1709done 1710IFS=$as_save_IFS 1711 1712} >&5 1713 1714cat >&5 <<_ACEOF 1715 1716 1717## ----------- ## 1718## Core tests. ## 1719## ----------- ## 1720 1721_ACEOF 1722 1723 1724# Keep a trace of the command line. 1725# Strip out --no-create and --no-recursion so they do not pile up. 1726# Strip out --silent because we don't want to record it for future runs. 1727# Also quote any args containing shell meta-characters. 1728# Make two passes to allow for proper duplicate-argument suppression. 1729ac_configure_args= 1730ac_configure_args0= 1731ac_configure_args1= 1732ac_must_keep_next=false 1733for ac_pass in 1 2 1734do 1735 for ac_arg 1736 do 1737 case $ac_arg in 1738 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1740 | -silent | --silent | --silen | --sile | --sil) 1741 continue ;; 1742 *\'*) 1743 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1744 esac 1745 case $ac_pass in 1746 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1747 2) 1748 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1749 if test $ac_must_keep_next = true; then 1750 ac_must_keep_next=false # Got value, back to normal. 1751 else 1752 case $ac_arg in 1753 *=* | --config-cache | -C | -disable-* | --disable-* \ 1754 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1755 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1756 | -with-* | --with-* | -without-* | --without-* | --x) 1757 case "$ac_configure_args0 " in 1758 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1759 esac 1760 ;; 1761 -* ) ac_must_keep_next=true ;; 1762 esac 1763 fi 1764 ac_configure_args="$ac_configure_args '$ac_arg'" 1765 ;; 1766 esac 1767 done 1768done 1769$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1770$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1771 1772# When interrupted or exit'd, cleanup temporary files, and complete 1773# config.log. We remove comments because anyway the quotes in there 1774# would cause problems or look ugly. 1775# WARNING: Use '\'' to represent an apostrophe within the trap. 1776# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1777trap 'exit_status=$? 1778 # Save into config.log some information that might help in debugging. 1779 { 1780 echo 1781 1782 cat <<\_ASBOX 1783## ---------------- ## 1784## Cache variables. ## 1785## ---------------- ## 1786_ASBOX 1787 echo 1788 # The following way of writing the cache mishandles newlines in values, 1789( 1790 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1791 eval ac_val=\$$ac_var 1792 case $ac_val in #( 1793 *${as_nl}*) 1794 case $ac_var in #( 1795 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1796$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1797 esac 1798 case $ac_var in #( 1799 _ | IFS | as_nl) ;; #( 1800 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1801 *) $as_unset $ac_var ;; 1802 esac ;; 1803 esac 1804 done 1805 (set) 2>&1 | 1806 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1807 *${as_nl}ac_space=\ *) 1808 sed -n \ 1809 "s/'\''/'\''\\\\'\'''\''/g; 1810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1811 ;; #( 1812 *) 1813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1814 ;; 1815 esac | 1816 sort 1817) 1818 echo 1819 1820 cat <<\_ASBOX 1821## ----------------- ## 1822## Output variables. ## 1823## ----------------- ## 1824_ASBOX 1825 echo 1826 for ac_var in $ac_subst_vars 1827 do 1828 eval ac_val=\$$ac_var 1829 case $ac_val in 1830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1831 esac 1832 $as_echo "$ac_var='\''$ac_val'\''" 1833 done | sort 1834 echo 1835 1836 if test -n "$ac_subst_files"; then 1837 cat <<\_ASBOX 1838## ------------------- ## 1839## File substitutions. ## 1840## ------------------- ## 1841_ASBOX 1842 echo 1843 for ac_var in $ac_subst_files 1844 do 1845 eval ac_val=\$$ac_var 1846 case $ac_val in 1847 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1848 esac 1849 $as_echo "$ac_var='\''$ac_val'\''" 1850 done | sort 1851 echo 1852 fi 1853 1854 if test -s confdefs.h; then 1855 cat <<\_ASBOX 1856## ----------- ## 1857## confdefs.h. ## 1858## ----------- ## 1859_ASBOX 1860 echo 1861 cat confdefs.h 1862 echo 1863 fi 1864 test "$ac_signal" != 0 && 1865 $as_echo "$as_me: caught signal $ac_signal" 1866 $as_echo "$as_me: exit $exit_status" 1867 } >&5 1868 rm -f core *.core core.conftest.* && 1869 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1870 exit $exit_status 1871' 0 1872for ac_signal in 1 2 13 15; do 1873 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1874done 1875ac_signal=0 1876 1877# confdefs.h avoids OS command line length limits that DEFS can exceed. 1878rm -f -r conftest* confdefs.h 1879 1880# Predefined preprocessor variables. 1881 1882cat >>confdefs.h <<_ACEOF 1883#define PACKAGE_NAME "$PACKAGE_NAME" 1884_ACEOF 1885 1886 1887cat >>confdefs.h <<_ACEOF 1888#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1889_ACEOF 1890 1891 1892cat >>confdefs.h <<_ACEOF 1893#define PACKAGE_VERSION "$PACKAGE_VERSION" 1894_ACEOF 1895 1896 1897cat >>confdefs.h <<_ACEOF 1898#define PACKAGE_STRING "$PACKAGE_STRING" 1899_ACEOF 1900 1901 1902cat >>confdefs.h <<_ACEOF 1903#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1904_ACEOF 1905 1906 1907# Let the site file select an alternate cache file if it wants to. 1908# Prefer an explicitly selected file to automatically selected ones. 1909ac_site_file1=NONE 1910ac_site_file2=NONE 1911if test -n "$CONFIG_SITE"; then 1912 ac_site_file1=$CONFIG_SITE 1913elif test "x$prefix" != xNONE; then 1914 ac_site_file1=$prefix/share/config.site 1915 ac_site_file2=$prefix/etc/config.site 1916else 1917 ac_site_file1=$ac_default_prefix/share/config.site 1918 ac_site_file2=$ac_default_prefix/etc/config.site 1919fi 1920for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1921do 1922 test "x$ac_site_file" = xNONE && continue 1923 if test -r "$ac_site_file"; then 1924 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1925$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1926 sed 's/^/| /' "$ac_site_file" >&5 1927 . "$ac_site_file" 1928 fi 1929done 1930 1931if test -r "$cache_file"; then 1932 # Some versions of bash will fail to source /dev/null (special 1933 # files actually), so we avoid doing that. 1934 if test -f "$cache_file"; then 1935 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1936$as_echo "$as_me: loading cache $cache_file" >&6;} 1937 case $cache_file in 1938 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1939 *) . "./$cache_file";; 1940 esac 1941 fi 1942else 1943 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1944$as_echo "$as_me: creating cache $cache_file" >&6;} 1945 >$cache_file 1946fi 1947 1948# Check that the precious variables saved in the cache have kept the same 1949# value. 1950ac_cache_corrupted=false 1951for ac_var in $ac_precious_vars; do 1952 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1953 eval ac_new_set=\$ac_env_${ac_var}_set 1954 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1955 eval ac_new_val=\$ac_env_${ac_var}_value 1956 case $ac_old_set,$ac_new_set in 1957 set,) 1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1959$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1960 ac_cache_corrupted=: ;; 1961 ,set) 1962 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1963$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1964 ac_cache_corrupted=: ;; 1965 ,);; 1966 *) 1967 if test "x$ac_old_val" != "x$ac_new_val"; then 1968 # differences in whitespace do not lead to failure. 1969 ac_old_val_w=`echo x $ac_old_val` 1970 ac_new_val_w=`echo x $ac_new_val` 1971 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1973$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1974 ac_cache_corrupted=: 1975 else 1976 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1977$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1978 eval $ac_var=\$ac_old_val 1979 fi 1980 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1981$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1982 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1983$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1984 fi;; 1985 esac 1986 # Pass precious variables to config.status. 1987 if test "$ac_new_set" = set; then 1988 case $ac_new_val in 1989 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1990 *) ac_arg=$ac_var=$ac_new_val ;; 1991 esac 1992 case " $ac_configure_args " in 1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1995 esac 1996 fi 1997done 1998if $ac_cache_corrupted; then 1999 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2001 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2002$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2003 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2004$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2005 { (exit 1); exit 1; }; } 2006fi 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032ac_ext=c 2033ac_cpp='$CPP $CPPFLAGS' 2034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2036ac_compiler_gnu=$ac_cv_c_compiler_gnu 2037 2038 2039am__api_version='1.10' 2040 2041ac_aux_dir= 2042for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2043 if test -f "$ac_dir/install-sh"; then 2044 ac_aux_dir=$ac_dir 2045 ac_install_sh="$ac_aux_dir/install-sh -c" 2046 break 2047 elif test -f "$ac_dir/install.sh"; then 2048 ac_aux_dir=$ac_dir 2049 ac_install_sh="$ac_aux_dir/install.sh -c" 2050 break 2051 elif test -f "$ac_dir/shtool"; then 2052 ac_aux_dir=$ac_dir 2053 ac_install_sh="$ac_aux_dir/shtool install -c" 2054 break 2055 fi 2056done 2057if test -z "$ac_aux_dir"; then 2058 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2059$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2060 { (exit 1); exit 1; }; } 2061fi 2062 2063# These three variables are undocumented and unsupported, 2064# and are intended to be withdrawn in a future Autoconf release. 2065# They can cause serious problems if a builder's source tree is in a directory 2066# whose full name contains unusual characters. 2067ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2068ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2069ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2070 2071 2072# Find a good install program. We prefer a C program (faster), 2073# so one script is as good as another. But avoid the broken or 2074# incompatible versions: 2075# SysV /etc/install, /usr/sbin/install 2076# SunOS /usr/etc/install 2077# IRIX /sbin/install 2078# AIX /bin/install 2079# AmigaOS /C/install, which installs bootblocks on floppy discs 2080# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2081# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2082# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2083# OS/2's system install, which has a completely different semantic 2084# ./install, which can be erroneously created by make from ./install.sh. 2085# Reject install programs that cannot install multiple files. 2086{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2087$as_echo_n "checking for a BSD-compatible install... " >&6; } 2088if test -z "$INSTALL"; then 2089if test "${ac_cv_path_install+set}" = set; then 2090 $as_echo_n "(cached) " >&6 2091else 2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2093for as_dir in $PATH 2094do 2095 IFS=$as_save_IFS 2096 test -z "$as_dir" && as_dir=. 2097 # Account for people who put trailing slashes in PATH elements. 2098case $as_dir/ in 2099 ./ | .// | /cC/* | \ 2100 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2101 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2102 /usr/ucb/* ) ;; 2103 *) 2104 # OSF1 and SCO ODT 3.0 have their own names for install. 2105 # Don't use installbsd from OSF since it installs stuff as root 2106 # by default. 2107 for ac_prog in ginstall scoinst install; do 2108 for ac_exec_ext in '' $ac_executable_extensions; do 2109 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2110 if test $ac_prog = install && 2111 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2112 # AIX install. It has an incompatible calling convention. 2113 : 2114 elif test $ac_prog = install && 2115 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2116 # program-specific install script used by HP pwplus--don't use. 2117 : 2118 else 2119 rm -rf conftest.one conftest.two conftest.dir 2120 echo one > conftest.one 2121 echo two > conftest.two 2122 mkdir conftest.dir 2123 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2124 test -s conftest.one && test -s conftest.two && 2125 test -s conftest.dir/conftest.one && 2126 test -s conftest.dir/conftest.two 2127 then 2128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2129 break 3 2130 fi 2131 fi 2132 fi 2133 done 2134 done 2135 ;; 2136esac 2137 2138done 2139IFS=$as_save_IFS 2140 2141rm -rf conftest.one conftest.two conftest.dir 2142 2143fi 2144 if test "${ac_cv_path_install+set}" = set; then 2145 INSTALL=$ac_cv_path_install 2146 else 2147 # As a last resort, use the slow shell script. Don't cache a 2148 # value for INSTALL within a source directory, because that will 2149 # break other packages using the cache if that directory is 2150 # removed, or if the value is a relative name. 2151 INSTALL=$ac_install_sh 2152 fi 2153fi 2154{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2155$as_echo "$INSTALL" >&6; } 2156 2157# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2158# It thinks the first close brace ends the variable substitution. 2159test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2160 2161test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2162 2163test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2164 2165{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2166$as_echo_n "checking whether build environment is sane... " >&6; } 2167# Just in case 2168sleep 1 2169echo timestamp > conftest.file 2170# Do `set' in a subshell so we don't clobber the current shell's 2171# arguments. Must try -L first in case configure is actually a 2172# symlink; some systems play weird games with the mod time of symlinks 2173# (eg FreeBSD returns the mod time of the symlink's containing 2174# directory). 2175if ( 2176 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2177 if test "$*" = "X"; then 2178 # -L didn't work. 2179 set X `ls -t $srcdir/configure conftest.file` 2180 fi 2181 rm -f conftest.file 2182 if test "$*" != "X $srcdir/configure conftest.file" \ 2183 && test "$*" != "X conftest.file $srcdir/configure"; then 2184 2185 # If neither matched, then we have a broken ls. This can happen 2186 # if, for instance, CONFIG_SHELL is bash and it inherits a 2187 # broken ls alias from the environment. This has actually 2188 # happened. Such a system could not be considered "sane". 2189 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2190alias in your environment" >&5 2191$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2192alias in your environment" >&2;} 2193 { (exit 1); exit 1; }; } 2194 fi 2195 2196 test "$2" = conftest.file 2197 ) 2198then 2199 # Ok. 2200 : 2201else 2202 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2203Check your system clock" >&5 2204$as_echo "$as_me: error: newly created file is older than distributed files! 2205Check your system clock" >&2;} 2206 { (exit 1); exit 1; }; } 2207fi 2208{ $as_echo "$as_me:$LINENO: result: yes" >&5 2209$as_echo "yes" >&6; } 2210test "$program_prefix" != NONE && 2211 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2212# Use a double $ so make ignores it. 2213test "$program_suffix" != NONE && 2214 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2215# Double any \ or $. 2216# By default was `s,x,x', remove it if useless. 2217ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2218program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2219 2220# expand $ac_aux_dir to an absolute path 2221am_aux_dir=`cd $ac_aux_dir && pwd` 2222 2223test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2224# Use eval to expand $SHELL 2225if eval "$MISSING --run true"; then 2226 am_missing_run="$MISSING --run " 2227else 2228 am_missing_run= 2229 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2230$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2231fi 2232 2233{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2234$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2235if test -z "$MKDIR_P"; then 2236 if test "${ac_cv_path_mkdir+set}" = set; then 2237 $as_echo_n "(cached) " >&6 2238else 2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2240for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2241do 2242 IFS=$as_save_IFS 2243 test -z "$as_dir" && as_dir=. 2244 for ac_prog in mkdir gmkdir; do 2245 for ac_exec_ext in '' $ac_executable_extensions; do 2246 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2247 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2248 'mkdir (GNU coreutils) '* | \ 2249 'mkdir (coreutils) '* | \ 2250 'mkdir (fileutils) '4.1*) 2251 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2252 break 3;; 2253 esac 2254 done 2255 done 2256done 2257IFS=$as_save_IFS 2258 2259fi 2260 2261 if test "${ac_cv_path_mkdir+set}" = set; then 2262 MKDIR_P="$ac_cv_path_mkdir -p" 2263 else 2264 # As a last resort, use the slow shell script. Don't cache a 2265 # value for MKDIR_P within a source directory, because that will 2266 # break other packages using the cache if that directory is 2267 # removed, or if the value is a relative name. 2268 test -d ./--version && rmdir ./--version 2269 MKDIR_P="$ac_install_sh -d" 2270 fi 2271fi 2272{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2273$as_echo "$MKDIR_P" >&6; } 2274 2275mkdir_p="$MKDIR_P" 2276case $mkdir_p in 2277 [\\/$]* | ?:[\\/]*) ;; 2278 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2279esac 2280 2281for ac_prog in gawk mawk nawk awk 2282do 2283 # Extract the first word of "$ac_prog", so it can be a program name with args. 2284set dummy $ac_prog; ac_word=$2 2285{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2286$as_echo_n "checking for $ac_word... " >&6; } 2287if test "${ac_cv_prog_AWK+set}" = set; then 2288 $as_echo_n "(cached) " >&6 2289else 2290 if test -n "$AWK"; then 2291 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2292else 2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2294for as_dir in $PATH 2295do 2296 IFS=$as_save_IFS 2297 test -z "$as_dir" && as_dir=. 2298 for ac_exec_ext in '' $ac_executable_extensions; do 2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2300 ac_cv_prog_AWK="$ac_prog" 2301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2302 break 2 2303 fi 2304done 2305done 2306IFS=$as_save_IFS 2307 2308fi 2309fi 2310AWK=$ac_cv_prog_AWK 2311if test -n "$AWK"; then 2312 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2313$as_echo "$AWK" >&6; } 2314else 2315 { $as_echo "$as_me:$LINENO: result: no" >&5 2316$as_echo "no" >&6; } 2317fi 2318 2319 2320 test -n "$AWK" && break 2321done 2322 2323{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2324$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2325set x ${MAKE-make} 2326ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2327if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2328 $as_echo_n "(cached) " >&6 2329else 2330 cat >conftest.make <<\_ACEOF 2331SHELL = /bin/sh 2332all: 2333 @echo '@@@%%%=$(MAKE)=@@@%%%' 2334_ACEOF 2335# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2336case `${MAKE-make} -f conftest.make 2>/dev/null` in 2337 *@@@%%%=?*=@@@%%%*) 2338 eval ac_cv_prog_make_${ac_make}_set=yes;; 2339 *) 2340 eval ac_cv_prog_make_${ac_make}_set=no;; 2341esac 2342rm -f conftest.make 2343fi 2344if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2345 { $as_echo "$as_me:$LINENO: result: yes" >&5 2346$as_echo "yes" >&6; } 2347 SET_MAKE= 2348else 2349 { $as_echo "$as_me:$LINENO: result: no" >&5 2350$as_echo "no" >&6; } 2351 SET_MAKE="MAKE=${MAKE-make}" 2352fi 2353 2354rm -rf .tst 2>/dev/null 2355mkdir .tst 2>/dev/null 2356if test -d .tst; then 2357 am__leading_dot=. 2358else 2359 am__leading_dot=_ 2360fi 2361rmdir .tst 2>/dev/null 2362 2363if test "`cd $srcdir && pwd`" != "`pwd`"; then 2364 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2365 # is not polluted with repeated "-I." 2366 am__isrc=' -I$(srcdir)' 2367 # test to see if srcdir already configured 2368 if test -f $srcdir/config.status; then 2369 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2370$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2371 { (exit 1); exit 1; }; } 2372 fi 2373fi 2374 2375# test whether we have cygpath 2376if test -z "$CYGPATH_W"; then 2377 if (cygpath --version) >/dev/null 2>/dev/null; then 2378 CYGPATH_W='cygpath -w' 2379 else 2380 CYGPATH_W=echo 2381 fi 2382fi 2383 2384 2385# Define the identity of the package. 2386 PACKAGE='libusb-compat' 2387 VERSION='0.1.3' 2388 2389 2390cat >>confdefs.h <<_ACEOF 2391#define PACKAGE "$PACKAGE" 2392_ACEOF 2393 2394 2395cat >>confdefs.h <<_ACEOF 2396#define VERSION "$VERSION" 2397_ACEOF 2398 2399# Some tools Automake needs. 2400 2401ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2402 2403 2404AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2405 2406 2407AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2408 2409 2410AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2411 2412 2413MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2414 2415install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2416 2417# Installed binaries are usually stripped using `strip' when the user 2418# run `make install-strip'. However `strip' might not be the right 2419# tool to use in cross-compilation environments, therefore Automake 2420# will honor the `STRIP' environment variable to overrule this program. 2421if test "$cross_compiling" != no; then 2422 if test -n "$ac_tool_prefix"; then 2423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2424set dummy ${ac_tool_prefix}strip; ac_word=$2 2425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2426$as_echo_n "checking for $ac_word... " >&6; } 2427if test "${ac_cv_prog_STRIP+set}" = set; then 2428 $as_echo_n "(cached) " >&6 2429else 2430 if test -n "$STRIP"; then 2431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2432else 2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2434for as_dir in $PATH 2435do 2436 IFS=$as_save_IFS 2437 test -z "$as_dir" && as_dir=. 2438 for ac_exec_ext in '' $ac_executable_extensions; do 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2440 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2442 break 2 2443 fi 2444done 2445done 2446IFS=$as_save_IFS 2447 2448fi 2449fi 2450STRIP=$ac_cv_prog_STRIP 2451if test -n "$STRIP"; then 2452 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2453$as_echo "$STRIP" >&6; } 2454else 2455 { $as_echo "$as_me:$LINENO: result: no" >&5 2456$as_echo "no" >&6; } 2457fi 2458 2459 2460fi 2461if test -z "$ac_cv_prog_STRIP"; then 2462 ac_ct_STRIP=$STRIP 2463 # Extract the first word of "strip", so it can be a program name with args. 2464set dummy strip; ac_word=$2 2465{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2466$as_echo_n "checking for $ac_word... " >&6; } 2467if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2468 $as_echo_n "(cached) " >&6 2469else 2470 if test -n "$ac_ct_STRIP"; then 2471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2472else 2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2474for as_dir in $PATH 2475do 2476 IFS=$as_save_IFS 2477 test -z "$as_dir" && as_dir=. 2478 for ac_exec_ext in '' $ac_executable_extensions; do 2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2480 ac_cv_prog_ac_ct_STRIP="strip" 2481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2482 break 2 2483 fi 2484done 2485done 2486IFS=$as_save_IFS 2487 2488fi 2489fi 2490ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2491if test -n "$ac_ct_STRIP"; then 2492 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2493$as_echo "$ac_ct_STRIP" >&6; } 2494else 2495 { $as_echo "$as_me:$LINENO: result: no" >&5 2496$as_echo "no" >&6; } 2497fi 2498 2499 if test "x$ac_ct_STRIP" = x; then 2500 STRIP=":" 2501 else 2502 case $cross_compiling:$ac_tool_warned in 2503yes:) 2504{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2506ac_tool_warned=yes ;; 2507esac 2508 STRIP=$ac_ct_STRIP 2509 fi 2510else 2511 STRIP="$ac_cv_prog_STRIP" 2512fi 2513 2514fi 2515INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2516 2517# We need awk for the "check" target. The system "awk" is bad on 2518# some platforms. 2519# Always define AMTAR for backward compatibility. 2520 2521AMTAR=${AMTAR-"${am_missing_run}tar"} 2522 2523am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2524 2525 2526 2527 2528 2529 2530ac_config_headers="$ac_config_headers config.h" 2531 2532 2533 2534 2535ac_ext=c 2536ac_cpp='$CPP $CPPFLAGS' 2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2539ac_compiler_gnu=$ac_cv_c_compiler_gnu 2540if test -n "$ac_tool_prefix"; then 2541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2542set dummy ${ac_tool_prefix}gcc; ac_word=$2 2543{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2544$as_echo_n "checking for $ac_word... " >&6; } 2545if test "${ac_cv_prog_CC+set}" = set; then 2546 $as_echo_n "(cached) " >&6 2547else 2548 if test -n "$CC"; then 2549 ac_cv_prog_CC="$CC" # Let the user override the test. 2550else 2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2552for as_dir in $PATH 2553do 2554 IFS=$as_save_IFS 2555 test -z "$as_dir" && as_dir=. 2556 for ac_exec_ext in '' $ac_executable_extensions; do 2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2558 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2560 break 2 2561 fi 2562done 2563done 2564IFS=$as_save_IFS 2565 2566fi 2567fi 2568CC=$ac_cv_prog_CC 2569if test -n "$CC"; then 2570 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2571$as_echo "$CC" >&6; } 2572else 2573 { $as_echo "$as_me:$LINENO: result: no" >&5 2574$as_echo "no" >&6; } 2575fi 2576 2577 2578fi 2579if test -z "$ac_cv_prog_CC"; then 2580 ac_ct_CC=$CC 2581 # Extract the first word of "gcc", so it can be a program name with args. 2582set dummy gcc; ac_word=$2 2583{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2584$as_echo_n "checking for $ac_word... " >&6; } 2585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2586 $as_echo_n "(cached) " >&6 2587else 2588 if test -n "$ac_ct_CC"; then 2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2590else 2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592for as_dir in $PATH 2593do 2594 IFS=$as_save_IFS 2595 test -z "$as_dir" && as_dir=. 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2598 ac_cv_prog_ac_ct_CC="gcc" 2599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2600 break 2 2601 fi 2602done 2603done 2604IFS=$as_save_IFS 2605 2606fi 2607fi 2608ac_ct_CC=$ac_cv_prog_ac_ct_CC 2609if test -n "$ac_ct_CC"; then 2610 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2611$as_echo "$ac_ct_CC" >&6; } 2612else 2613 { $as_echo "$as_me:$LINENO: result: no" >&5 2614$as_echo "no" >&6; } 2615fi 2616 2617 if test "x$ac_ct_CC" = x; then 2618 CC="" 2619 else 2620 case $cross_compiling:$ac_tool_warned in 2621yes:) 2622{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2624ac_tool_warned=yes ;; 2625esac 2626 CC=$ac_ct_CC 2627 fi 2628else 2629 CC="$ac_cv_prog_CC" 2630fi 2631 2632if test -z "$CC"; then 2633 if test -n "$ac_tool_prefix"; then 2634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2635set dummy ${ac_tool_prefix}cc; ac_word=$2 2636{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2637$as_echo_n "checking for $ac_word... " >&6; } 2638if test "${ac_cv_prog_CC+set}" = set; then 2639 $as_echo_n "(cached) " >&6 2640else 2641 if test -n "$CC"; then 2642 ac_cv_prog_CC="$CC" # Let the user override the test. 2643else 2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2645for as_dir in $PATH 2646do 2647 IFS=$as_save_IFS 2648 test -z "$as_dir" && as_dir=. 2649 for ac_exec_ext in '' $ac_executable_extensions; do 2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2651 ac_cv_prog_CC="${ac_tool_prefix}cc" 2652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2653 break 2 2654 fi 2655done 2656done 2657IFS=$as_save_IFS 2658 2659fi 2660fi 2661CC=$ac_cv_prog_CC 2662if test -n "$CC"; then 2663 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2664$as_echo "$CC" >&6; } 2665else 2666 { $as_echo "$as_me:$LINENO: result: no" >&5 2667$as_echo "no" >&6; } 2668fi 2669 2670 2671 fi 2672fi 2673if test -z "$CC"; then 2674 # Extract the first word of "cc", so it can be a program name with args. 2675set dummy cc; ac_word=$2 2676{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2677$as_echo_n "checking for $ac_word... " >&6; } 2678if test "${ac_cv_prog_CC+set}" = set; then 2679 $as_echo_n "(cached) " >&6 2680else 2681 if test -n "$CC"; then 2682 ac_cv_prog_CC="$CC" # Let the user override the test. 2683else 2684 ac_prog_rejected=no 2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2693 ac_prog_rejected=yes 2694 continue 2695 fi 2696 ac_cv_prog_CC="cc" 2697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2698 break 2 2699 fi 2700done 2701done 2702IFS=$as_save_IFS 2703 2704if test $ac_prog_rejected = yes; then 2705 # We found a bogon in the path, so make sure we never use it. 2706 set dummy $ac_cv_prog_CC 2707 shift 2708 if test $# != 0; then 2709 # We chose a different compiler from the bogus one. 2710 # However, it has the same basename, so the bogon will be chosen 2711 # first if we set CC to just the basename; use the full file name. 2712 shift 2713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2714 fi 2715fi 2716fi 2717fi 2718CC=$ac_cv_prog_CC 2719if test -n "$CC"; then 2720 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2721$as_echo "$CC" >&6; } 2722else 2723 { $as_echo "$as_me:$LINENO: result: no" >&5 2724$as_echo "no" >&6; } 2725fi 2726 2727 2728fi 2729if test -z "$CC"; then 2730 if test -n "$ac_tool_prefix"; then 2731 for ac_prog in cl.exe 2732 do 2733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2734set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2736$as_echo_n "checking for $ac_word... " >&6; } 2737if test "${ac_cv_prog_CC+set}" = set; then 2738 $as_echo_n "(cached) " >&6 2739else 2740 if test -n "$CC"; then 2741 ac_cv_prog_CC="$CC" # Let the user override the test. 2742else 2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2744for as_dir in $PATH 2745do 2746 IFS=$as_save_IFS 2747 test -z "$as_dir" && as_dir=. 2748 for ac_exec_ext in '' $ac_executable_extensions; do 2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2752 break 2 2753 fi 2754done 2755done 2756IFS=$as_save_IFS 2757 2758fi 2759fi 2760CC=$ac_cv_prog_CC 2761if test -n "$CC"; then 2762 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2763$as_echo "$CC" >&6; } 2764else 2765 { $as_echo "$as_me:$LINENO: result: no" >&5 2766$as_echo "no" >&6; } 2767fi 2768 2769 2770 test -n "$CC" && break 2771 done 2772fi 2773if test -z "$CC"; then 2774 ac_ct_CC=$CC 2775 for ac_prog in cl.exe 2776do 2777 # Extract the first word of "$ac_prog", so it can be a program name with args. 2778set dummy $ac_prog; ac_word=$2 2779{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2780$as_echo_n "checking for $ac_word... " >&6; } 2781if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2782 $as_echo_n "(cached) " >&6 2783else 2784 if test -n "$ac_ct_CC"; then 2785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2786else 2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788for as_dir in $PATH 2789do 2790 IFS=$as_save_IFS 2791 test -z "$as_dir" && as_dir=. 2792 for ac_exec_ext in '' $ac_executable_extensions; do 2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2794 ac_cv_prog_ac_ct_CC="$ac_prog" 2795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2796 break 2 2797 fi 2798done 2799done 2800IFS=$as_save_IFS 2801 2802fi 2803fi 2804ac_ct_CC=$ac_cv_prog_ac_ct_CC 2805if test -n "$ac_ct_CC"; then 2806 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2807$as_echo "$ac_ct_CC" >&6; } 2808else 2809 { $as_echo "$as_me:$LINENO: result: no" >&5 2810$as_echo "no" >&6; } 2811fi 2812 2813 2814 test -n "$ac_ct_CC" && break 2815done 2816 2817 if test "x$ac_ct_CC" = x; then 2818 CC="" 2819 else 2820 case $cross_compiling:$ac_tool_warned in 2821yes:) 2822{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2824ac_tool_warned=yes ;; 2825esac 2826 CC=$ac_ct_CC 2827 fi 2828fi 2829 2830fi 2831 2832 2833test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2835{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2836See \`config.log' for more details." >&5 2837$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2838See \`config.log' for more details." >&2;} 2839 { (exit 1); exit 1; }; }; } 2840 2841# Provide some information about the compiler. 2842$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2843set X $ac_compile 2844ac_compiler=$2 2845{ (ac_try="$ac_compiler --version >&5" 2846case "(($ac_try" in 2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2848 *) ac_try_echo=$ac_try;; 2849esac 2850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2851$as_echo "$ac_try_echo") >&5 2852 (eval "$ac_compiler --version >&5") 2>&5 2853 ac_status=$? 2854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2855 (exit $ac_status); } 2856{ (ac_try="$ac_compiler -v >&5" 2857case "(($ac_try" in 2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2859 *) ac_try_echo=$ac_try;; 2860esac 2861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2862$as_echo "$ac_try_echo") >&5 2863 (eval "$ac_compiler -v >&5") 2>&5 2864 ac_status=$? 2865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2866 (exit $ac_status); } 2867{ (ac_try="$ac_compiler -V >&5" 2868case "(($ac_try" in 2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2870 *) ac_try_echo=$ac_try;; 2871esac 2872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2873$as_echo "$ac_try_echo") >&5 2874 (eval "$ac_compiler -V >&5") 2>&5 2875 ac_status=$? 2876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2877 (exit $ac_status); } 2878 2879cat >conftest.$ac_ext <<_ACEOF 2880/* confdefs.h. */ 2881_ACEOF 2882cat confdefs.h >>conftest.$ac_ext 2883cat >>conftest.$ac_ext <<_ACEOF 2884/* end confdefs.h. */ 2885 2886int 2887main () 2888{ 2889 2890 ; 2891 return 0; 2892} 2893_ACEOF 2894ac_clean_files_save=$ac_clean_files 2895ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2896# Try to create an executable without -o first, disregard a.out. 2897# It will help us diagnose broken compilers, and finding out an intuition 2898# of exeext. 2899{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2900$as_echo_n "checking for C compiler default output file name... " >&6; } 2901ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2902 2903# The possible output files: 2904ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2905 2906ac_rmfiles= 2907for ac_file in $ac_files 2908do 2909 case $ac_file in 2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2911 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2912 esac 2913done 2914rm -f $ac_rmfiles 2915 2916if { (ac_try="$ac_link_default" 2917case "(($ac_try" in 2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2919 *) ac_try_echo=$ac_try;; 2920esac 2921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2922$as_echo "$ac_try_echo") >&5 2923 (eval "$ac_link_default") 2>&5 2924 ac_status=$? 2925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2926 (exit $ac_status); }; then 2927 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2928# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2929# in a Makefile. We should not override ac_cv_exeext if it was cached, 2930# so that the user can short-circuit this test for compilers unknown to 2931# Autoconf. 2932for ac_file in $ac_files '' 2933do 2934 test -f "$ac_file" || continue 2935 case $ac_file in 2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2937 ;; 2938 [ab].out ) 2939 # We found the default executable, but exeext='' is most 2940 # certainly right. 2941 break;; 2942 *.* ) 2943 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2944 then :; else 2945 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2946 fi 2947 # We set ac_cv_exeext here because the later test for it is not 2948 # safe: cross compilers may not add the suffix if given an `-o' 2949 # argument, so we may need to know it at that point already. 2950 # Even if this section looks crufty: it has the advantage of 2951 # actually working. 2952 break;; 2953 * ) 2954 break;; 2955 esac 2956done 2957test "$ac_cv_exeext" = no && ac_cv_exeext= 2958 2959else 2960 ac_file='' 2961fi 2962 2963{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2964$as_echo "$ac_file" >&6; } 2965if test -z "$ac_file"; then 2966 $as_echo "$as_me: failed program was:" >&5 2967sed 's/^/| /' conftest.$ac_ext >&5 2968 2969{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2971{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2972See \`config.log' for more details." >&5 2973$as_echo "$as_me: error: C compiler cannot create executables 2974See \`config.log' for more details." >&2;} 2975 { (exit 77); exit 77; }; }; } 2976fi 2977 2978ac_exeext=$ac_cv_exeext 2979 2980# Check that the compiler produces executables we can run. If not, either 2981# the compiler is broken, or we cross compile. 2982{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2983$as_echo_n "checking whether the C compiler works... " >&6; } 2984# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2985# If not cross compiling, check that we can run a simple program. 2986if test "$cross_compiling" != yes; then 2987 if { ac_try='./$ac_file' 2988 { (case "(($ac_try" in 2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2990 *) ac_try_echo=$ac_try;; 2991esac 2992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2993$as_echo "$ac_try_echo") >&5 2994 (eval "$ac_try") 2>&5 2995 ac_status=$? 2996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2997 (exit $ac_status); }; }; then 2998 cross_compiling=no 2999 else 3000 if test "$cross_compiling" = maybe; then 3001 cross_compiling=yes 3002 else 3003 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3005{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3006If you meant to cross compile, use \`--host'. 3007See \`config.log' for more details." >&5 3008$as_echo "$as_me: error: cannot run C compiled programs. 3009If you meant to cross compile, use \`--host'. 3010See \`config.log' for more details." >&2;} 3011 { (exit 1); exit 1; }; }; } 3012 fi 3013 fi 3014fi 3015{ $as_echo "$as_me:$LINENO: result: yes" >&5 3016$as_echo "yes" >&6; } 3017 3018rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3019ac_clean_files=$ac_clean_files_save 3020# Check that the compiler produces executables we can run. If not, either 3021# the compiler is broken, or we cross compile. 3022{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3023$as_echo_n "checking whether we are cross compiling... " >&6; } 3024{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3025$as_echo "$cross_compiling" >&6; } 3026 3027{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3028$as_echo_n "checking for suffix of executables... " >&6; } 3029if { (ac_try="$ac_link" 3030case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3035$as_echo "$ac_try_echo") >&5 3036 (eval "$ac_link") 2>&5 3037 ac_status=$? 3038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); }; then 3040 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3041# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3042# work properly (i.e., refer to `conftest.exe'), while it won't with 3043# `rm'. 3044for ac_file in conftest.exe conftest conftest.*; do 3045 test -f "$ac_file" || continue 3046 case $ac_file in 3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3049 break;; 3050 * ) break;; 3051 esac 3052done 3053else 3054 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3056{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3057See \`config.log' for more details." >&5 3058$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3059See \`config.log' for more details." >&2;} 3060 { (exit 1); exit 1; }; }; } 3061fi 3062 3063rm -f conftest$ac_cv_exeext 3064{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3065$as_echo "$ac_cv_exeext" >&6; } 3066 3067rm -f conftest.$ac_ext 3068EXEEXT=$ac_cv_exeext 3069ac_exeext=$EXEEXT 3070{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3071$as_echo_n "checking for suffix of object files... " >&6; } 3072if test "${ac_cv_objext+set}" = set; then 3073 $as_echo_n "(cached) " >&6 3074else 3075 cat >conftest.$ac_ext <<_ACEOF 3076/* confdefs.h. */ 3077_ACEOF 3078cat confdefs.h >>conftest.$ac_ext 3079cat >>conftest.$ac_ext <<_ACEOF 3080/* end confdefs.h. */ 3081 3082int 3083main () 3084{ 3085 3086 ; 3087 return 0; 3088} 3089_ACEOF 3090rm -f conftest.o conftest.obj 3091if { (ac_try="$ac_compile" 3092case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3097$as_echo "$ac_try_echo") >&5 3098 (eval "$ac_compile") 2>&5 3099 ac_status=$? 3100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); }; then 3102 for ac_file in conftest.o conftest.obj conftest.*; do 3103 test -f "$ac_file" || continue; 3104 case $ac_file in 3105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3106 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3107 break;; 3108 esac 3109done 3110else 3111 $as_echo "$as_me: failed program was:" >&5 3112sed 's/^/| /' conftest.$ac_ext >&5 3113 3114{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3116{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3117See \`config.log' for more details." >&5 3118$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3119See \`config.log' for more details." >&2;} 3120 { (exit 1); exit 1; }; }; } 3121fi 3122 3123rm -f conftest.$ac_cv_objext conftest.$ac_ext 3124fi 3125{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3126$as_echo "$ac_cv_objext" >&6; } 3127OBJEXT=$ac_cv_objext 3128ac_objext=$OBJEXT 3129{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3130$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3131if test "${ac_cv_c_compiler_gnu+set}" = set; then 3132 $as_echo_n "(cached) " >&6 3133else 3134 cat >conftest.$ac_ext <<_ACEOF 3135/* confdefs.h. */ 3136_ACEOF 3137cat confdefs.h >>conftest.$ac_ext 3138cat >>conftest.$ac_ext <<_ACEOF 3139/* end confdefs.h. */ 3140 3141int 3142main () 3143{ 3144#ifndef __GNUC__ 3145 choke me 3146#endif 3147 3148 ; 3149 return 0; 3150} 3151_ACEOF 3152rm -f conftest.$ac_objext 3153if { (ac_try="$ac_compile" 3154case "(($ac_try" in 3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3156 *) ac_try_echo=$ac_try;; 3157esac 3158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3159$as_echo "$ac_try_echo") >&5 3160 (eval "$ac_compile") 2>conftest.er1 3161 ac_status=$? 3162 grep -v '^ *+' conftest.er1 >conftest.err 3163 rm -f conftest.er1 3164 cat conftest.err >&5 3165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3166 (exit $ac_status); } && { 3167 test -z "$ac_c_werror_flag" || 3168 test ! -s conftest.err 3169 } && test -s conftest.$ac_objext; then 3170 ac_compiler_gnu=yes 3171else 3172 $as_echo "$as_me: failed program was:" >&5 3173sed 's/^/| /' conftest.$ac_ext >&5 3174 3175 ac_compiler_gnu=no 3176fi 3177 3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3179ac_cv_c_compiler_gnu=$ac_compiler_gnu 3180 3181fi 3182{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3183$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3184if test $ac_compiler_gnu = yes; then 3185 GCC=yes 3186else 3187 GCC= 3188fi 3189ac_test_CFLAGS=${CFLAGS+set} 3190ac_save_CFLAGS=$CFLAGS 3191{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3192$as_echo_n "checking whether $CC accepts -g... " >&6; } 3193if test "${ac_cv_prog_cc_g+set}" = set; then 3194 $as_echo_n "(cached) " >&6 3195else 3196 ac_save_c_werror_flag=$ac_c_werror_flag 3197 ac_c_werror_flag=yes 3198 ac_cv_prog_cc_g=no 3199 CFLAGS="-g" 3200 cat >conftest.$ac_ext <<_ACEOF 3201/* confdefs.h. */ 3202_ACEOF 3203cat confdefs.h >>conftest.$ac_ext 3204cat >>conftest.$ac_ext <<_ACEOF 3205/* end confdefs.h. */ 3206 3207int 3208main () 3209{ 3210 3211 ; 3212 return 0; 3213} 3214_ACEOF 3215rm -f conftest.$ac_objext 3216if { (ac_try="$ac_compile" 3217case "(($ac_try" in 3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3219 *) ac_try_echo=$ac_try;; 3220esac 3221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3222$as_echo "$ac_try_echo") >&5 3223 (eval "$ac_compile") 2>conftest.er1 3224 ac_status=$? 3225 grep -v '^ *+' conftest.er1 >conftest.err 3226 rm -f conftest.er1 3227 cat conftest.err >&5 3228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3229 (exit $ac_status); } && { 3230 test -z "$ac_c_werror_flag" || 3231 test ! -s conftest.err 3232 } && test -s conftest.$ac_objext; then 3233 ac_cv_prog_cc_g=yes 3234else 3235 $as_echo "$as_me: failed program was:" >&5 3236sed 's/^/| /' conftest.$ac_ext >&5 3237 3238 CFLAGS="" 3239 cat >conftest.$ac_ext <<_ACEOF 3240/* confdefs.h. */ 3241_ACEOF 3242cat confdefs.h >>conftest.$ac_ext 3243cat >>conftest.$ac_ext <<_ACEOF 3244/* end confdefs.h. */ 3245 3246int 3247main () 3248{ 3249 3250 ; 3251 return 0; 3252} 3253_ACEOF 3254rm -f conftest.$ac_objext 3255if { (ac_try="$ac_compile" 3256case "(($ac_try" in 3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3258 *) ac_try_echo=$ac_try;; 3259esac 3260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3261$as_echo "$ac_try_echo") >&5 3262 (eval "$ac_compile") 2>conftest.er1 3263 ac_status=$? 3264 grep -v '^ *+' conftest.er1 >conftest.err 3265 rm -f conftest.er1 3266 cat conftest.err >&5 3267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3268 (exit $ac_status); } && { 3269 test -z "$ac_c_werror_flag" || 3270 test ! -s conftest.err 3271 } && test -s conftest.$ac_objext; then 3272 : 3273else 3274 $as_echo "$as_me: failed program was:" >&5 3275sed 's/^/| /' conftest.$ac_ext >&5 3276 3277 ac_c_werror_flag=$ac_save_c_werror_flag 3278 CFLAGS="-g" 3279 cat >conftest.$ac_ext <<_ACEOF 3280/* confdefs.h. */ 3281_ACEOF 3282cat confdefs.h >>conftest.$ac_ext 3283cat >>conftest.$ac_ext <<_ACEOF 3284/* end confdefs.h. */ 3285 3286int 3287main () 3288{ 3289 3290 ; 3291 return 0; 3292} 3293_ACEOF 3294rm -f conftest.$ac_objext 3295if { (ac_try="$ac_compile" 3296case "(($ac_try" in 3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3298 *) ac_try_echo=$ac_try;; 3299esac 3300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3301$as_echo "$ac_try_echo") >&5 3302 (eval "$ac_compile") 2>conftest.er1 3303 ac_status=$? 3304 grep -v '^ *+' conftest.er1 >conftest.err 3305 rm -f conftest.er1 3306 cat conftest.err >&5 3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3308 (exit $ac_status); } && { 3309 test -z "$ac_c_werror_flag" || 3310 test ! -s conftest.err 3311 } && test -s conftest.$ac_objext; then 3312 ac_cv_prog_cc_g=yes 3313else 3314 $as_echo "$as_me: failed program was:" >&5 3315sed 's/^/| /' conftest.$ac_ext >&5 3316 3317 3318fi 3319 3320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3321fi 3322 3323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3324fi 3325 3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3327 ac_c_werror_flag=$ac_save_c_werror_flag 3328fi 3329{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3330$as_echo "$ac_cv_prog_cc_g" >&6; } 3331if test "$ac_test_CFLAGS" = set; then 3332 CFLAGS=$ac_save_CFLAGS 3333elif test $ac_cv_prog_cc_g = yes; then 3334 if test "$GCC" = yes; then 3335 CFLAGS="-g -O2" 3336 else 3337 CFLAGS="-g" 3338 fi 3339else 3340 if test "$GCC" = yes; then 3341 CFLAGS="-O2" 3342 else 3343 CFLAGS= 3344 fi 3345fi 3346{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3347$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3348if test "${ac_cv_prog_cc_c89+set}" = set; then 3349 $as_echo_n "(cached) " >&6 3350else 3351 ac_cv_prog_cc_c89=no 3352ac_save_CC=$CC 3353cat >conftest.$ac_ext <<_ACEOF 3354/* confdefs.h. */ 3355_ACEOF 3356cat confdefs.h >>conftest.$ac_ext 3357cat >>conftest.$ac_ext <<_ACEOF 3358/* end confdefs.h. */ 3359#include <stdarg.h> 3360#include <stdio.h> 3361#include <sys/types.h> 3362#include <sys/stat.h> 3363/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3364struct buf { int x; }; 3365FILE * (*rcsopen) (struct buf *, struct stat *, int); 3366static char *e (p, i) 3367 char **p; 3368 int i; 3369{ 3370 return p[i]; 3371} 3372static char *f (char * (*g) (char **, int), char **p, ...) 3373{ 3374 char *s; 3375 va_list v; 3376 va_start (v,p); 3377 s = g (p, va_arg (v,int)); 3378 va_end (v); 3379 return s; 3380} 3381 3382/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3383 function prototypes and stuff, but not '\xHH' hex character constants. 3384 These don't provoke an error unfortunately, instead are silently treated 3385 as 'x'. The following induces an error, until -std is added to get 3386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3387 array size at least. It's necessary to write '\x00'==0 to get something 3388 that's true only with -std. */ 3389int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3390 3391/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3392 inside strings and character constants. */ 3393#define FOO(x) 'x' 3394int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3395 3396int test (int i, double x); 3397struct s1 {int (*f) (int a);}; 3398struct s2 {int (*f) (double a);}; 3399int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3400int argc; 3401char **argv; 3402int 3403main () 3404{ 3405return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3406 ; 3407 return 0; 3408} 3409_ACEOF 3410for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3412do 3413 CC="$ac_save_CC $ac_arg" 3414 rm -f conftest.$ac_objext 3415if { (ac_try="$ac_compile" 3416case "(($ac_try" in 3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3418 *) ac_try_echo=$ac_try;; 3419esac 3420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3421$as_echo "$ac_try_echo") >&5 3422 (eval "$ac_compile") 2>conftest.er1 3423 ac_status=$? 3424 grep -v '^ *+' conftest.er1 >conftest.err 3425 rm -f conftest.er1 3426 cat conftest.err >&5 3427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3428 (exit $ac_status); } && { 3429 test -z "$ac_c_werror_flag" || 3430 test ! -s conftest.err 3431 } && test -s conftest.$ac_objext; then 3432 ac_cv_prog_cc_c89=$ac_arg 3433else 3434 $as_echo "$as_me: failed program was:" >&5 3435sed 's/^/| /' conftest.$ac_ext >&5 3436 3437 3438fi 3439 3440rm -f core conftest.err conftest.$ac_objext 3441 test "x$ac_cv_prog_cc_c89" != "xno" && break 3442done 3443rm -f conftest.$ac_ext 3444CC=$ac_save_CC 3445 3446fi 3447# AC_CACHE_VAL 3448case "x$ac_cv_prog_cc_c89" in 3449 x) 3450 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3451$as_echo "none needed" >&6; } ;; 3452 xno) 3453 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3454$as_echo "unsupported" >&6; } ;; 3455 *) 3456 CC="$CC $ac_cv_prog_cc_c89" 3457 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3458$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3459esac 3460 3461 3462ac_ext=c 3463ac_cpp='$CPP $CPPFLAGS' 3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3466ac_compiler_gnu=$ac_cv_c_compiler_gnu 3467DEPDIR="${am__leading_dot}deps" 3468 3469ac_config_commands="$ac_config_commands depfiles" 3470 3471 3472am_make=${MAKE-make} 3473cat > confinc << 'END' 3474am__doit: 3475 @echo done 3476.PHONY: am__doit 3477END 3478# If we don't find an include directive, just comment out the code. 3479{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3480$as_echo_n "checking for style of include used by $am_make... " >&6; } 3481am__include="#" 3482am__quote= 3483_am_result=none 3484# First try GNU make style include. 3485echo "include confinc" > confmf 3486# We grep out `Entering directory' and `Leaving directory' 3487# messages which can occur if `w' ends up in MAKEFLAGS. 3488# In particular we don't look at `^make:' because GNU make might 3489# be invoked under some other name (usually "gmake"), in which 3490# case it prints its new name instead of `make'. 3491if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3492 am__include=include 3493 am__quote= 3494 _am_result=GNU 3495fi 3496# Now try BSD make style include. 3497if test "$am__include" = "#"; then 3498 echo '.include "confinc"' > confmf 3499 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3500 am__include=.include 3501 am__quote="\"" 3502 _am_result=BSD 3503 fi 3504fi 3505 3506 3507{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3508$as_echo "$_am_result" >&6; } 3509rm -f confinc confmf 3510 3511# Check whether --enable-dependency-tracking was given. 3512if test "${enable_dependency_tracking+set}" = set; then 3513 enableval=$enable_dependency_tracking; 3514fi 3515 3516if test "x$enable_dependency_tracking" != xno; then 3517 am_depcomp="$ac_aux_dir/depcomp" 3518 AMDEPBACKSLASH='\' 3519fi 3520 if test "x$enable_dependency_tracking" != xno; then 3521 AMDEP_TRUE= 3522 AMDEP_FALSE='#' 3523else 3524 AMDEP_TRUE='#' 3525 AMDEP_FALSE= 3526fi 3527 3528 3529 3530depcc="$CC" am_compiler_list= 3531 3532{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3533$as_echo_n "checking dependency style of $depcc... " >&6; } 3534if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3535 $as_echo_n "(cached) " >&6 3536else 3537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3538 # We make a subdir and do the tests there. Otherwise we can end up 3539 # making bogus files that we don't know about and never remove. For 3540 # instance it was reported that on HP-UX the gcc test will end up 3541 # making a dummy file named `D' -- because `-MD' means `put the output 3542 # in D'. 3543 mkdir conftest.dir 3544 # Copy depcomp to subdir because otherwise we won't find it if we're 3545 # using a relative directory. 3546 cp "$am_depcomp" conftest.dir 3547 cd conftest.dir 3548 # We will build objects and dependencies in a subdirectory because 3549 # it helps to detect inapplicable dependency modes. For instance 3550 # both Tru64's cc and ICC support -MD to output dependencies as a 3551 # side effect of compilation, but ICC will put the dependencies in 3552 # the current directory while Tru64 will put them in the object 3553 # directory. 3554 mkdir sub 3555 3556 am_cv_CC_dependencies_compiler_type=none 3557 if test "$am_compiler_list" = ""; then 3558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3559 fi 3560 for depmode in $am_compiler_list; do 3561 # Setup a source with many dependencies, because some compilers 3562 # like to wrap large dependency lists on column 80 (with \), and 3563 # we should not choose a depcomp mode which is confused by this. 3564 # 3565 # We need to recreate these files for each test, as the compiler may 3566 # overwrite some of them when testing with obscure command lines. 3567 # This happens at least with the AIX C compiler. 3568 : > sub/conftest.c 3569 for i in 1 2 3 4 5 6; do 3570 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3571 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3572 # Solaris 8's {/usr,}/bin/sh. 3573 touch sub/conftst$i.h 3574 done 3575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3576 3577 case $depmode in 3578 nosideeffect) 3579 # after this tag, mechanisms are not by side-effect, so they'll 3580 # only be used when explicitly requested 3581 if test "x$enable_dependency_tracking" = xyes; then 3582 continue 3583 else 3584 break 3585 fi 3586 ;; 3587 none) break ;; 3588 esac 3589 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3590 # mode. It turns out that the SunPro C++ compiler does not properly 3591 # handle `-M -o', and we need to detect this. 3592 if depmode=$depmode \ 3593 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3595 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3596 >/dev/null 2>conftest.err && 3597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3599 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3601 # icc doesn't choke on unknown options, it will just issue warnings 3602 # or remarks (even with -Werror). So we grep stderr for any message 3603 # that says an option was ignored or not supported. 3604 # When given -MP, icc 7.0 and 7.1 complain thusly: 3605 # icc: Command line warning: ignoring option '-M'; no argument required 3606 # The diagnosis changed in icc 8.0: 3607 # icc: Command line remark: option '-MP' not supported 3608 if (grep 'ignoring option' conftest.err || 3609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3610 am_cv_CC_dependencies_compiler_type=$depmode 3611 break 3612 fi 3613 fi 3614 done 3615 3616 cd .. 3617 rm -rf conftest.dir 3618else 3619 am_cv_CC_dependencies_compiler_type=none 3620fi 3621 3622fi 3623{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3624$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3625CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3626 3627 if 3628 test "x$enable_dependency_tracking" != xno \ 3629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3630 am__fastdepCC_TRUE= 3631 am__fastdepCC_FALSE='#' 3632else 3633 am__fastdepCC_TRUE='#' 3634 am__fastdepCC_FALSE= 3635fi 3636 3637 3638case `pwd` in 3639 *\ * | *\ *) 3640 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3641$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3642esac 3643 3644 3645 3646macro_version='2.2.6' 3647macro_revision='1.3012' 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661ltmain="$ac_aux_dir/ltmain.sh" 3662 3663# Make sure we can run config.sub. 3664$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3665 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3666$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3667 { (exit 1); exit 1; }; } 3668 3669{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3670$as_echo_n "checking build system type... " >&6; } 3671if test "${ac_cv_build+set}" = set; then 3672 $as_echo_n "(cached) " >&6 3673else 3674 ac_build_alias=$build_alias 3675test "x$ac_build_alias" = x && 3676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3677test "x$ac_build_alias" = x && 3678 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3679$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3680 { (exit 1); exit 1; }; } 3681ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3682 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3683$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3684 { (exit 1); exit 1; }; } 3685 3686fi 3687{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3688$as_echo "$ac_cv_build" >&6; } 3689case $ac_cv_build in 3690*-*-*) ;; 3691*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3692$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3693 { (exit 1); exit 1; }; };; 3694esac 3695build=$ac_cv_build 3696ac_save_IFS=$IFS; IFS='-' 3697set x $ac_cv_build 3698shift 3699build_cpu=$1 3700build_vendor=$2 3701shift; shift 3702# Remember, the first character of IFS is used to create $*, 3703# except with old shells: 3704build_os=$* 3705IFS=$ac_save_IFS 3706case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3707 3708 3709{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3710$as_echo_n "checking host system type... " >&6; } 3711if test "${ac_cv_host+set}" = set; then 3712 $as_echo_n "(cached) " >&6 3713else 3714 if test "x$host_alias" = x; then 3715 ac_cv_host=$ac_cv_build 3716else 3717 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3718 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3719$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3720 { (exit 1); exit 1; }; } 3721fi 3722 3723fi 3724{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3725$as_echo "$ac_cv_host" >&6; } 3726case $ac_cv_host in 3727*-*-*) ;; 3728*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3729$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3730 { (exit 1); exit 1; }; };; 3731esac 3732host=$ac_cv_host 3733ac_save_IFS=$IFS; IFS='-' 3734set x $ac_cv_host 3735shift 3736host_cpu=$1 3737host_vendor=$2 3738shift; shift 3739# Remember, the first character of IFS is used to create $*, 3740# except with old shells: 3741host_os=$* 3742IFS=$ac_save_IFS 3743case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3744 3745 3746{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3747$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3748if test "${ac_cv_path_SED+set}" = set; then 3749 $as_echo_n "(cached) " >&6 3750else 3751 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3752 for ac_i in 1 2 3 4 5 6 7; do 3753 ac_script="$ac_script$as_nl$ac_script" 3754 done 3755 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3756 $as_unset ac_script || ac_script= 3757 if test -z "$SED"; then 3758 ac_path_SED_found=false 3759 # Loop through the user's path and test for each of PROGNAME-LIST 3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3761for as_dir in $PATH 3762do 3763 IFS=$as_save_IFS 3764 test -z "$as_dir" && as_dir=. 3765 for ac_prog in sed gsed; do 3766 for ac_exec_ext in '' $ac_executable_extensions; do 3767 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3768 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3769# Check for GNU ac_path_SED and select it if it is found. 3770 # Check for GNU $ac_path_SED 3771case `"$ac_path_SED" --version 2>&1` in 3772*GNU*) 3773 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3774*) 3775 ac_count=0 3776 $as_echo_n 0123456789 >"conftest.in" 3777 while : 3778 do 3779 cat "conftest.in" "conftest.in" >"conftest.tmp" 3780 mv "conftest.tmp" "conftest.in" 3781 cp "conftest.in" "conftest.nl" 3782 $as_echo '' >> "conftest.nl" 3783 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3785 ac_count=`expr $ac_count + 1` 3786 if test $ac_count -gt ${ac_path_SED_max-0}; then 3787 # Best one so far, save it but keep looking for a better one 3788 ac_cv_path_SED="$ac_path_SED" 3789 ac_path_SED_max=$ac_count 3790 fi 3791 # 10*(2^10) chars as input seems more than enough 3792 test $ac_count -gt 10 && break 3793 done 3794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3795esac 3796 3797 $ac_path_SED_found && break 3 3798 done 3799 done 3800done 3801IFS=$as_save_IFS 3802 if test -z "$ac_cv_path_SED"; then 3803 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3804$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3805 { (exit 1); exit 1; }; } 3806 fi 3807else 3808 ac_cv_path_SED=$SED 3809fi 3810 3811fi 3812{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3813$as_echo "$ac_cv_path_SED" >&6; } 3814 SED="$ac_cv_path_SED" 3815 rm -f conftest.sed 3816 3817test -z "$SED" && SED=sed 3818Xsed="$SED -e 1s/^X//" 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3831$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3832if test "${ac_cv_path_GREP+set}" = set; then 3833 $as_echo_n "(cached) " >&6 3834else 3835 if test -z "$GREP"; then 3836 ac_path_GREP_found=false 3837 # Loop through the user's path and test for each of PROGNAME-LIST 3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3839for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3840do 3841 IFS=$as_save_IFS 3842 test -z "$as_dir" && as_dir=. 3843 for ac_prog in grep ggrep; do 3844 for ac_exec_ext in '' $ac_executable_extensions; do 3845 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3846 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3847# Check for GNU ac_path_GREP and select it if it is found. 3848 # Check for GNU $ac_path_GREP 3849case `"$ac_path_GREP" --version 2>&1` in 3850*GNU*) 3851 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3852*) 3853 ac_count=0 3854 $as_echo_n 0123456789 >"conftest.in" 3855 while : 3856 do 3857 cat "conftest.in" "conftest.in" >"conftest.tmp" 3858 mv "conftest.tmp" "conftest.in" 3859 cp "conftest.in" "conftest.nl" 3860 $as_echo 'GREP' >> "conftest.nl" 3861 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3863 ac_count=`expr $ac_count + 1` 3864 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3865 # Best one so far, save it but keep looking for a better one 3866 ac_cv_path_GREP="$ac_path_GREP" 3867 ac_path_GREP_max=$ac_count 3868 fi 3869 # 10*(2^10) chars as input seems more than enough 3870 test $ac_count -gt 10 && break 3871 done 3872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3873esac 3874 3875 $ac_path_GREP_found && break 3 3876 done 3877 done 3878done 3879IFS=$as_save_IFS 3880 if test -z "$ac_cv_path_GREP"; then 3881 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3882$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3883 { (exit 1); exit 1; }; } 3884 fi 3885else 3886 ac_cv_path_GREP=$GREP 3887fi 3888 3889fi 3890{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3891$as_echo "$ac_cv_path_GREP" >&6; } 3892 GREP="$ac_cv_path_GREP" 3893 3894 3895{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3896$as_echo_n "checking for egrep... " >&6; } 3897if test "${ac_cv_path_EGREP+set}" = set; then 3898 $as_echo_n "(cached) " >&6 3899else 3900 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3901 then ac_cv_path_EGREP="$GREP -E" 3902 else 3903 if test -z "$EGREP"; then 3904 ac_path_EGREP_found=false 3905 # Loop through the user's path and test for each of PROGNAME-LIST 3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3907for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3908do 3909 IFS=$as_save_IFS 3910 test -z "$as_dir" && as_dir=. 3911 for ac_prog in egrep; do 3912 for ac_exec_ext in '' $ac_executable_extensions; do 3913 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3914 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3915# Check for GNU ac_path_EGREP and select it if it is found. 3916 # Check for GNU $ac_path_EGREP 3917case `"$ac_path_EGREP" --version 2>&1` in 3918*GNU*) 3919 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3920*) 3921 ac_count=0 3922 $as_echo_n 0123456789 >"conftest.in" 3923 while : 3924 do 3925 cat "conftest.in" "conftest.in" >"conftest.tmp" 3926 mv "conftest.tmp" "conftest.in" 3927 cp "conftest.in" "conftest.nl" 3928 $as_echo 'EGREP' >> "conftest.nl" 3929 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3931 ac_count=`expr $ac_count + 1` 3932 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3933 # Best one so far, save it but keep looking for a better one 3934 ac_cv_path_EGREP="$ac_path_EGREP" 3935 ac_path_EGREP_max=$ac_count 3936 fi 3937 # 10*(2^10) chars as input seems more than enough 3938 test $ac_count -gt 10 && break 3939 done 3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3941esac 3942 3943 $ac_path_EGREP_found && break 3 3944 done 3945 done 3946done 3947IFS=$as_save_IFS 3948 if test -z "$ac_cv_path_EGREP"; then 3949 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3950$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3951 { (exit 1); exit 1; }; } 3952 fi 3953else 3954 ac_cv_path_EGREP=$EGREP 3955fi 3956 3957 fi 3958fi 3959{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3960$as_echo "$ac_cv_path_EGREP" >&6; } 3961 EGREP="$ac_cv_path_EGREP" 3962 3963 3964{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 3965$as_echo_n "checking for fgrep... " >&6; } 3966if test "${ac_cv_path_FGREP+set}" = set; then 3967 $as_echo_n "(cached) " >&6 3968else 3969 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3970 then ac_cv_path_FGREP="$GREP -F" 3971 else 3972 if test -z "$FGREP"; then 3973 ac_path_FGREP_found=false 3974 # Loop through the user's path and test for each of PROGNAME-LIST 3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3977do 3978 IFS=$as_save_IFS 3979 test -z "$as_dir" && as_dir=. 3980 for ac_prog in fgrep; do 3981 for ac_exec_ext in '' $ac_executable_extensions; do 3982 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3983 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3984# Check for GNU ac_path_FGREP and select it if it is found. 3985 # Check for GNU $ac_path_FGREP 3986case `"$ac_path_FGREP" --version 2>&1` in 3987*GNU*) 3988 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3989*) 3990 ac_count=0 3991 $as_echo_n 0123456789 >"conftest.in" 3992 while : 3993 do 3994 cat "conftest.in" "conftest.in" >"conftest.tmp" 3995 mv "conftest.tmp" "conftest.in" 3996 cp "conftest.in" "conftest.nl" 3997 $as_echo 'FGREP' >> "conftest.nl" 3998 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4000 ac_count=`expr $ac_count + 1` 4001 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4002 # Best one so far, save it but keep looking for a better one 4003 ac_cv_path_FGREP="$ac_path_FGREP" 4004 ac_path_FGREP_max=$ac_count 4005 fi 4006 # 10*(2^10) chars as input seems more than enough 4007 test $ac_count -gt 10 && break 4008 done 4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4010esac 4011 4012 $ac_path_FGREP_found && break 3 4013 done 4014 done 4015done 4016IFS=$as_save_IFS 4017 if test -z "$ac_cv_path_FGREP"; then 4018 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4019$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4020 { (exit 1); exit 1; }; } 4021 fi 4022else 4023 ac_cv_path_FGREP=$FGREP 4024fi 4025 4026 fi 4027fi 4028{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4029$as_echo "$ac_cv_path_FGREP" >&6; } 4030 FGREP="$ac_cv_path_FGREP" 4031 4032 4033test -z "$GREP" && GREP=grep 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053# Check whether --with-gnu-ld was given. 4054if test "${with_gnu_ld+set}" = set; then 4055 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4056else 4057 with_gnu_ld=no 4058fi 4059 4060ac_prog=ld 4061if test "$GCC" = yes; then 4062 # Check if gcc -print-prog-name=ld gives a path. 4063 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4064$as_echo_n "checking for ld used by $CC... " >&6; } 4065 case $host in 4066 *-*-mingw*) 4067 # gcc leaves a trailing carriage return which upsets mingw 4068 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4069 *) 4070 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4071 esac 4072 case $ac_prog in 4073 # Accept absolute paths. 4074 [\\/]* | ?:[\\/]*) 4075 re_direlt='/[^/][^/]*/\.\./' 4076 # Canonicalize the pathname of ld 4077 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4078 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4079 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4080 done 4081 test -z "$LD" && LD="$ac_prog" 4082 ;; 4083 "") 4084 # If it fails, then pretend we aren't using GCC. 4085 ac_prog=ld 4086 ;; 4087 *) 4088 # If it is relative, then search for the first ld in PATH. 4089 with_gnu_ld=unknown 4090 ;; 4091 esac 4092elif test "$with_gnu_ld" = yes; then 4093 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4094$as_echo_n "checking for GNU ld... " >&6; } 4095else 4096 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4097$as_echo_n "checking for non-GNU ld... " >&6; } 4098fi 4099if test "${lt_cv_path_LD+set}" = set; then 4100 $as_echo_n "(cached) " >&6 4101else 4102 if test -z "$LD"; then 4103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4104 for ac_dir in $PATH; do 4105 IFS="$lt_save_ifs" 4106 test -z "$ac_dir" && ac_dir=. 4107 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4108 lt_cv_path_LD="$ac_dir/$ac_prog" 4109 # Check to see if the program is GNU ld. I'd rather use --version, 4110 # but apparently some variants of GNU ld only accept -v. 4111 # Break only if it was the GNU/non-GNU ld that we prefer. 4112 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4113 *GNU* | *'with BFD'*) 4114 test "$with_gnu_ld" != no && break 4115 ;; 4116 *) 4117 test "$with_gnu_ld" != yes && break 4118 ;; 4119 esac 4120 fi 4121 done 4122 IFS="$lt_save_ifs" 4123else 4124 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4125fi 4126fi 4127 4128LD="$lt_cv_path_LD" 4129if test -n "$LD"; then 4130 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4131$as_echo "$LD" >&6; } 4132else 4133 { $as_echo "$as_me:$LINENO: result: no" >&5 4134$as_echo "no" >&6; } 4135fi 4136test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4137$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4138 { (exit 1); exit 1; }; } 4139{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4140$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4141if test "${lt_cv_prog_gnu_ld+set}" = set; then 4142 $as_echo_n "(cached) " >&6 4143else 4144 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4145case `$LD -v 2>&1 </dev/null` in 4146*GNU* | *'with BFD'*) 4147 lt_cv_prog_gnu_ld=yes 4148 ;; 4149*) 4150 lt_cv_prog_gnu_ld=no 4151 ;; 4152esac 4153fi 4154{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4155$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4156with_gnu_ld=$lt_cv_prog_gnu_ld 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4167$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4168if test "${lt_cv_path_NM+set}" = set; then 4169 $as_echo_n "(cached) " >&6 4170else 4171 if test -n "$NM"; then 4172 # Let the user override the test. 4173 lt_cv_path_NM="$NM" 4174else 4175 lt_nm_to_check="${ac_tool_prefix}nm" 4176 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4177 lt_nm_to_check="$lt_nm_to_check nm" 4178 fi 4179 for lt_tmp_nm in $lt_nm_to_check; do 4180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4181 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4182 IFS="$lt_save_ifs" 4183 test -z "$ac_dir" && ac_dir=. 4184 tmp_nm="$ac_dir/$lt_tmp_nm" 4185 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4186 # Check to see if the nm accepts a BSD-compat flag. 4187 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4188 # nm: unknown option "B" ignored 4189 # Tru64's nm complains that /dev/null is an invalid object file 4190 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4191 */dev/null* | *'Invalid file or object type'*) 4192 lt_cv_path_NM="$tmp_nm -B" 4193 break 4194 ;; 4195 *) 4196 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4197 */dev/null*) 4198 lt_cv_path_NM="$tmp_nm -p" 4199 break 4200 ;; 4201 *) 4202 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4203 continue # so that we can try to find one that supports BSD flags 4204 ;; 4205 esac 4206 ;; 4207 esac 4208 fi 4209 done 4210 IFS="$lt_save_ifs" 4211 done 4212 : ${lt_cv_path_NM=no} 4213fi 4214fi 4215{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4216$as_echo "$lt_cv_path_NM" >&6; } 4217if test "$lt_cv_path_NM" != "no"; then 4218 NM="$lt_cv_path_NM" 4219else 4220 # Didn't find any BSD compatible name lister, look for dumpbin. 4221 if test -n "$ac_tool_prefix"; then 4222 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4223 do 4224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4225set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4227$as_echo_n "checking for $ac_word... " >&6; } 4228if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4229 $as_echo_n "(cached) " >&6 4230else 4231 if test -n "$DUMPBIN"; then 4232 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4233else 4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4235for as_dir in $PATH 4236do 4237 IFS=$as_save_IFS 4238 test -z "$as_dir" && as_dir=. 4239 for ac_exec_ext in '' $ac_executable_extensions; do 4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4241 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4243 break 2 4244 fi 4245done 4246done 4247IFS=$as_save_IFS 4248 4249fi 4250fi 4251DUMPBIN=$ac_cv_prog_DUMPBIN 4252if test -n "$DUMPBIN"; then 4253 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4254$as_echo "$DUMPBIN" >&6; } 4255else 4256 { $as_echo "$as_me:$LINENO: result: no" >&5 4257$as_echo "no" >&6; } 4258fi 4259 4260 4261 test -n "$DUMPBIN" && break 4262 done 4263fi 4264if test -z "$DUMPBIN"; then 4265 ac_ct_DUMPBIN=$DUMPBIN 4266 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4267do 4268 # Extract the first word of "$ac_prog", so it can be a program name with args. 4269set dummy $ac_prog; ac_word=$2 4270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4271$as_echo_n "checking for $ac_word... " >&6; } 4272if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4273 $as_echo_n "(cached) " >&6 4274else 4275 if test -n "$ac_ct_DUMPBIN"; then 4276 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4277else 4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4279for as_dir in $PATH 4280do 4281 IFS=$as_save_IFS 4282 test -z "$as_dir" && as_dir=. 4283 for ac_exec_ext in '' $ac_executable_extensions; do 4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4285 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4287 break 2 4288 fi 4289done 4290done 4291IFS=$as_save_IFS 4292 4293fi 4294fi 4295ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4296if test -n "$ac_ct_DUMPBIN"; then 4297 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4298$as_echo "$ac_ct_DUMPBIN" >&6; } 4299else 4300 { $as_echo "$as_me:$LINENO: result: no" >&5 4301$as_echo "no" >&6; } 4302fi 4303 4304 4305 test -n "$ac_ct_DUMPBIN" && break 4306done 4307 4308 if test "x$ac_ct_DUMPBIN" = x; then 4309 DUMPBIN=":" 4310 else 4311 case $cross_compiling:$ac_tool_warned in 4312yes:) 4313{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4315ac_tool_warned=yes ;; 4316esac 4317 DUMPBIN=$ac_ct_DUMPBIN 4318 fi 4319fi 4320 4321 4322 if test "$DUMPBIN" != ":"; then 4323 NM="$DUMPBIN" 4324 fi 4325fi 4326test -z "$NM" && NM=nm 4327 4328 4329 4330 4331 4332 4333{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4334$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4335if test "${lt_cv_nm_interface+set}" = set; then 4336 $as_echo_n "(cached) " >&6 4337else 4338 lt_cv_nm_interface="BSD nm" 4339 echo "int some_variable = 0;" > conftest.$ac_ext 4340 (eval echo "\"\$as_me:4340: $ac_compile\"" >&5) 4341 (eval "$ac_compile" 2>conftest.err) 4342 cat conftest.err >&5 4343 (eval echo "\"\$as_me:4343: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4344 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4345 cat conftest.err >&5 4346 (eval echo "\"\$as_me:4346: output\"" >&5) 4347 cat conftest.out >&5 4348 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4349 lt_cv_nm_interface="MS dumpbin" 4350 fi 4351 rm -f conftest* 4352fi 4353{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4354$as_echo "$lt_cv_nm_interface" >&6; } 4355 4356{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4357$as_echo_n "checking whether ln -s works... " >&6; } 4358LN_S=$as_ln_s 4359if test "$LN_S" = "ln -s"; then 4360 { $as_echo "$as_me:$LINENO: result: yes" >&5 4361$as_echo "yes" >&6; } 4362else 4363 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4364$as_echo "no, using $LN_S" >&6; } 4365fi 4366 4367# find the maximum length of command line arguments 4368{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4369$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4370if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4371 $as_echo_n "(cached) " >&6 4372else 4373 i=0 4374 teststring="ABCD" 4375 4376 case $build_os in 4377 msdosdjgpp*) 4378 # On DJGPP, this test can blow up pretty badly due to problems in libc 4379 # (any single argument exceeding 2000 bytes causes a buffer overrun 4380 # during glob expansion). Even if it were fixed, the result of this 4381 # check would be larger than it should be. 4382 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4383 ;; 4384 4385 gnu*) 4386 # Under GNU Hurd, this test is not required because there is 4387 # no limit to the length of command line arguments. 4388 # Libtool will interpret -1 as no limit whatsoever 4389 lt_cv_sys_max_cmd_len=-1; 4390 ;; 4391 4392 cygwin* | mingw* | cegcc*) 4393 # On Win9x/ME, this test blows up -- it succeeds, but takes 4394 # about 5 minutes as the teststring grows exponentially. 4395 # Worse, since 9x/ME are not pre-emptively multitasking, 4396 # you end up with a "frozen" computer, even though with patience 4397 # the test eventually succeeds (with a max line length of 256k). 4398 # Instead, let's just punt: use the minimum linelength reported by 4399 # all of the supported platforms: 8192 (on NT/2K/XP). 4400 lt_cv_sys_max_cmd_len=8192; 4401 ;; 4402 4403 amigaos*) 4404 # On AmigaOS with pdksh, this test takes hours, literally. 4405 # So we just punt and use a minimum line length of 8192. 4406 lt_cv_sys_max_cmd_len=8192; 4407 ;; 4408 4409 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4410 # This has been around since 386BSD, at least. Likely further. 4411 if test -x /sbin/sysctl; then 4412 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4413 elif test -x /usr/sbin/sysctl; then 4414 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4415 else 4416 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4417 fi 4418 # And add a safety zone 4419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4421 ;; 4422 4423 interix*) 4424 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4425 lt_cv_sys_max_cmd_len=196608 4426 ;; 4427 4428 osf*) 4429 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4430 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4431 # nice to cause kernel panics so lets avoid the loop below. 4432 # First set a reasonable default. 4433 lt_cv_sys_max_cmd_len=16384 4434 # 4435 if test -x /sbin/sysconfig; then 4436 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4437 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4438 esac 4439 fi 4440 ;; 4441 sco3.2v5*) 4442 lt_cv_sys_max_cmd_len=102400 4443 ;; 4444 sysv5* | sco5v6* | sysv4.2uw2*) 4445 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4446 if test -n "$kargmax"; then 4447 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4448 else 4449 lt_cv_sys_max_cmd_len=32768 4450 fi 4451 ;; 4452 *) 4453 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4454 if test -n "$lt_cv_sys_max_cmd_len"; then 4455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4457 else 4458 # Make teststring a little bigger before we do anything with it. 4459 # a 1K string should be a reasonable start. 4460 for i in 1 2 3 4 5 6 7 8 ; do 4461 teststring=$teststring$teststring 4462 done 4463 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4464 # If test is not a shell built-in, we'll probably end up computing a 4465 # maximum length that is only half of the actual maximum length, but 4466 # we can't tell. 4467 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4468 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4469 test $i != 17 # 1/2 MB should be enough 4470 do 4471 i=`expr $i + 1` 4472 teststring=$teststring$teststring 4473 done 4474 # Only check the string length outside the loop. 4475 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4476 teststring= 4477 # Add a significant safety factor because C++ compilers can tack on 4478 # massive amounts of additional arguments before passing them to the 4479 # linker. It appears as though 1/2 is a usable value. 4480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4481 fi 4482 ;; 4483 esac 4484 4485fi 4486 4487if test -n $lt_cv_sys_max_cmd_len ; then 4488 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4489$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4490else 4491 { $as_echo "$as_me:$LINENO: result: none" >&5 4492$as_echo "none" >&6; } 4493fi 4494max_cmd_len=$lt_cv_sys_max_cmd_len 4495 4496 4497 4498 4499 4500 4501: ${CP="cp -f"} 4502: ${MV="mv -f"} 4503: ${RM="rm -f"} 4504 4505{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4506$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4507# Try some XSI features 4508xsi_shell=no 4509( _lt_dummy="a/b/c" 4510 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4511 = c,a/b,, \ 4512 && eval 'test $(( 1 + 1 )) -eq 2 \ 4513 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4514 && xsi_shell=yes 4515{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4516$as_echo "$xsi_shell" >&6; } 4517 4518 4519{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4520$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4521lt_shell_append=no 4522( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4523 >/dev/null 2>&1 \ 4524 && lt_shell_append=yes 4525{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4526$as_echo "$lt_shell_append" >&6; } 4527 4528 4529if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4530 lt_unset=unset 4531else 4532 lt_unset=false 4533fi 4534 4535 4536 4537 4538 4539# test EBCDIC or ASCII 4540case `echo X|tr X '\101'` in 4541 A) # ASCII based system 4542 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4543 lt_SP2NL='tr \040 \012' 4544 lt_NL2SP='tr \015\012 \040\040' 4545 ;; 4546 *) # EBCDIC based system 4547 lt_SP2NL='tr \100 \n' 4548 lt_NL2SP='tr \r\n \100\100' 4549 ;; 4550esac 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4561$as_echo_n "checking for $LD option to reload object files... " >&6; } 4562if test "${lt_cv_ld_reload_flag+set}" = set; then 4563 $as_echo_n "(cached) " >&6 4564else 4565 lt_cv_ld_reload_flag='-r' 4566fi 4567{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4568$as_echo "$lt_cv_ld_reload_flag" >&6; } 4569reload_flag=$lt_cv_ld_reload_flag 4570case $reload_flag in 4571"" | " "*) ;; 4572*) reload_flag=" $reload_flag" ;; 4573esac 4574reload_cmds='$LD$reload_flag -o $output$reload_objs' 4575case $host_os in 4576 darwin*) 4577 if test "$GCC" = yes; then 4578 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4579 else 4580 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4581 fi 4582 ;; 4583esac 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593if test -n "$ac_tool_prefix"; then 4594 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4595set dummy ${ac_tool_prefix}objdump; ac_word=$2 4596{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4597$as_echo_n "checking for $ac_word... " >&6; } 4598if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4599 $as_echo_n "(cached) " >&6 4600else 4601 if test -n "$OBJDUMP"; then 4602 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4603else 4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4605for as_dir in $PATH 4606do 4607 IFS=$as_save_IFS 4608 test -z "$as_dir" && as_dir=. 4609 for ac_exec_ext in '' $ac_executable_extensions; do 4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4611 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4613 break 2 4614 fi 4615done 4616done 4617IFS=$as_save_IFS 4618 4619fi 4620fi 4621OBJDUMP=$ac_cv_prog_OBJDUMP 4622if test -n "$OBJDUMP"; then 4623 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4624$as_echo "$OBJDUMP" >&6; } 4625else 4626 { $as_echo "$as_me:$LINENO: result: no" >&5 4627$as_echo "no" >&6; } 4628fi 4629 4630 4631fi 4632if test -z "$ac_cv_prog_OBJDUMP"; then 4633 ac_ct_OBJDUMP=$OBJDUMP 4634 # Extract the first word of "objdump", so it can be a program name with args. 4635set dummy objdump; ac_word=$2 4636{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4637$as_echo_n "checking for $ac_word... " >&6; } 4638if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4639 $as_echo_n "(cached) " >&6 4640else 4641 if test -n "$ac_ct_OBJDUMP"; then 4642 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4643else 4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4645for as_dir in $PATH 4646do 4647 IFS=$as_save_IFS 4648 test -z "$as_dir" && as_dir=. 4649 for ac_exec_ext in '' $ac_executable_extensions; do 4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4651 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4653 break 2 4654 fi 4655done 4656done 4657IFS=$as_save_IFS 4658 4659fi 4660fi 4661ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4662if test -n "$ac_ct_OBJDUMP"; then 4663 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4664$as_echo "$ac_ct_OBJDUMP" >&6; } 4665else 4666 { $as_echo "$as_me:$LINENO: result: no" >&5 4667$as_echo "no" >&6; } 4668fi 4669 4670 if test "x$ac_ct_OBJDUMP" = x; then 4671 OBJDUMP="false" 4672 else 4673 case $cross_compiling:$ac_tool_warned in 4674yes:) 4675{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4677ac_tool_warned=yes ;; 4678esac 4679 OBJDUMP=$ac_ct_OBJDUMP 4680 fi 4681else 4682 OBJDUMP="$ac_cv_prog_OBJDUMP" 4683fi 4684 4685test -z "$OBJDUMP" && OBJDUMP=objdump 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4696$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4697if test "${lt_cv_deplibs_check_method+set}" = set; then 4698 $as_echo_n "(cached) " >&6 4699else 4700 lt_cv_file_magic_cmd='$MAGIC_CMD' 4701lt_cv_file_magic_test_file= 4702lt_cv_deplibs_check_method='unknown' 4703# Need to set the preceding variable on all platforms that support 4704# interlibrary dependencies. 4705# 'none' -- dependencies not supported. 4706# `unknown' -- same as none, but documents that we really don't know. 4707# 'pass_all' -- all dependencies passed with no checks. 4708# 'test_compile' -- check by making test program. 4709# 'file_magic [[regex]]' -- check by looking for files in library path 4710# which responds to the $file_magic_cmd with a given extended regex. 4711# If you have `file' or equivalent on your system and you're not sure 4712# whether `pass_all' will *always* work, you probably want this one. 4713 4714case $host_os in 4715aix[4-9]*) 4716 lt_cv_deplibs_check_method=pass_all 4717 ;; 4718 4719beos*) 4720 lt_cv_deplibs_check_method=pass_all 4721 ;; 4722 4723bsdi[45]*) 4724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4725 lt_cv_file_magic_cmd='/usr/bin/file -L' 4726 lt_cv_file_magic_test_file=/shlib/libc.so 4727 ;; 4728 4729cygwin*) 4730 # func_win32_libid is a shell function defined in ltmain.sh 4731 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4732 lt_cv_file_magic_cmd='func_win32_libid' 4733 ;; 4734 4735mingw* | pw32*) 4736 # Base MSYS/MinGW do not provide the 'file' command needed by 4737 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4738 # unless we find 'file', for example because we are cross-compiling. 4739 if ( file / ) >/dev/null 2>&1; then 4740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4741 lt_cv_file_magic_cmd='func_win32_libid' 4742 else 4743 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4744 lt_cv_file_magic_cmd='$OBJDUMP -f' 4745 fi 4746 ;; 4747 4748cegcc) 4749 # use the weaker test based on 'objdump'. See mingw*. 4750 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4751 lt_cv_file_magic_cmd='$OBJDUMP -f' 4752 ;; 4753 4754darwin* | rhapsody*) 4755 lt_cv_deplibs_check_method=pass_all 4756 ;; 4757 4758freebsd* | dragonfly*) 4759 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4760 case $host_cpu in 4761 i*86 ) 4762 # Not sure whether the presence of OpenBSD here was a mistake. 4763 # Let's accept both of them until this is cleared up. 4764 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4765 lt_cv_file_magic_cmd=/usr/bin/file 4766 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4767 ;; 4768 esac 4769 else 4770 lt_cv_deplibs_check_method=pass_all 4771 fi 4772 ;; 4773 4774gnu*) 4775 lt_cv_deplibs_check_method=pass_all 4776 ;; 4777 4778hpux10.20* | hpux11*) 4779 lt_cv_file_magic_cmd=/usr/bin/file 4780 case $host_cpu in 4781 ia64*) 4782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4783 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4784 ;; 4785 hppa*64*) 4786 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]' 4787 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4788 ;; 4789 *) 4790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4791 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4792 ;; 4793 esac 4794 ;; 4795 4796interix[3-9]*) 4797 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4799 ;; 4800 4801irix5* | irix6* | nonstopux*) 4802 case $LD in 4803 *-32|*"-32 ") libmagic=32-bit;; 4804 *-n32|*"-n32 ") libmagic=N32;; 4805 *-64|*"-64 ") libmagic=64-bit;; 4806 *) libmagic=never-match;; 4807 esac 4808 lt_cv_deplibs_check_method=pass_all 4809 ;; 4810 4811# This must be Linux ELF. 4812linux* | k*bsd*-gnu) 4813 lt_cv_deplibs_check_method=pass_all 4814 ;; 4815 4816netbsd*) 4817 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4819 else 4820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4821 fi 4822 ;; 4823 4824newos6*) 4825 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4826 lt_cv_file_magic_cmd=/usr/bin/file 4827 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4828 ;; 4829 4830*nto* | *qnx*) 4831 lt_cv_deplibs_check_method=pass_all 4832 ;; 4833 4834openbsd*) 4835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4837 else 4838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4839 fi 4840 ;; 4841 4842osf3* | osf4* | osf5*) 4843 lt_cv_deplibs_check_method=pass_all 4844 ;; 4845 4846rdos*) 4847 lt_cv_deplibs_check_method=pass_all 4848 ;; 4849 4850solaris*) 4851 lt_cv_deplibs_check_method=pass_all 4852 ;; 4853 4854sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4855 lt_cv_deplibs_check_method=pass_all 4856 ;; 4857 4858sysv4 | sysv4.3*) 4859 case $host_vendor in 4860 motorola) 4861 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]' 4862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4863 ;; 4864 ncr) 4865 lt_cv_deplibs_check_method=pass_all 4866 ;; 4867 sequent) 4868 lt_cv_file_magic_cmd='/bin/file' 4869 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4870 ;; 4871 sni) 4872 lt_cv_file_magic_cmd='/bin/file' 4873 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4874 lt_cv_file_magic_test_file=/lib/libc.so 4875 ;; 4876 siemens) 4877 lt_cv_deplibs_check_method=pass_all 4878 ;; 4879 pc) 4880 lt_cv_deplibs_check_method=pass_all 4881 ;; 4882 esac 4883 ;; 4884 4885tpf*) 4886 lt_cv_deplibs_check_method=pass_all 4887 ;; 4888esac 4889 4890fi 4891{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4892$as_echo "$lt_cv_deplibs_check_method" >&6; } 4893file_magic_cmd=$lt_cv_file_magic_cmd 4894deplibs_check_method=$lt_cv_deplibs_check_method 4895test -z "$deplibs_check_method" && deplibs_check_method=unknown 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908if test -n "$ac_tool_prefix"; then 4909 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4910set dummy ${ac_tool_prefix}ar; ac_word=$2 4911{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4912$as_echo_n "checking for $ac_word... " >&6; } 4913if test "${ac_cv_prog_AR+set}" = set; then 4914 $as_echo_n "(cached) " >&6 4915else 4916 if test -n "$AR"; then 4917 ac_cv_prog_AR="$AR" # Let the user override the test. 4918else 4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920for as_dir in $PATH 4921do 4922 IFS=$as_save_IFS 4923 test -z "$as_dir" && as_dir=. 4924 for ac_exec_ext in '' $ac_executable_extensions; do 4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4926 ac_cv_prog_AR="${ac_tool_prefix}ar" 4927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4928 break 2 4929 fi 4930done 4931done 4932IFS=$as_save_IFS 4933 4934fi 4935fi 4936AR=$ac_cv_prog_AR 4937if test -n "$AR"; then 4938 { $as_echo "$as_me:$LINENO: result: $AR" >&5 4939$as_echo "$AR" >&6; } 4940else 4941 { $as_echo "$as_me:$LINENO: result: no" >&5 4942$as_echo "no" >&6; } 4943fi 4944 4945 4946fi 4947if test -z "$ac_cv_prog_AR"; then 4948 ac_ct_AR=$AR 4949 # Extract the first word of "ar", so it can be a program name with args. 4950set dummy ar; ac_word=$2 4951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4952$as_echo_n "checking for $ac_word... " >&6; } 4953if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4954 $as_echo_n "(cached) " >&6 4955else 4956 if test -n "$ac_ct_AR"; then 4957 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4958else 4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4960for as_dir in $PATH 4961do 4962 IFS=$as_save_IFS 4963 test -z "$as_dir" && as_dir=. 4964 for ac_exec_ext in '' $ac_executable_extensions; do 4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4966 ac_cv_prog_ac_ct_AR="ar" 4967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4968 break 2 4969 fi 4970done 4971done 4972IFS=$as_save_IFS 4973 4974fi 4975fi 4976ac_ct_AR=$ac_cv_prog_ac_ct_AR 4977if test -n "$ac_ct_AR"; then 4978 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4979$as_echo "$ac_ct_AR" >&6; } 4980else 4981 { $as_echo "$as_me:$LINENO: result: no" >&5 4982$as_echo "no" >&6; } 4983fi 4984 4985 if test "x$ac_ct_AR" = x; then 4986 AR="false" 4987 else 4988 case $cross_compiling:$ac_tool_warned in 4989yes:) 4990{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4992ac_tool_warned=yes ;; 4993esac 4994 AR=$ac_ct_AR 4995 fi 4996else 4997 AR="$ac_cv_prog_AR" 4998fi 4999 5000test -z "$AR" && AR=ar 5001test -z "$AR_FLAGS" && AR_FLAGS=cru 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013if test -n "$ac_tool_prefix"; then 5014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5015set dummy ${ac_tool_prefix}strip; ac_word=$2 5016{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5017$as_echo_n "checking for $ac_word... " >&6; } 5018if test "${ac_cv_prog_STRIP+set}" = set; then 5019 $as_echo_n "(cached) " >&6 5020else 5021 if test -n "$STRIP"; then 5022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5023else 5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5025for as_dir in $PATH 5026do 5027 IFS=$as_save_IFS 5028 test -z "$as_dir" && as_dir=. 5029 for ac_exec_ext in '' $ac_executable_extensions; do 5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5031 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5033 break 2 5034 fi 5035done 5036done 5037IFS=$as_save_IFS 5038 5039fi 5040fi 5041STRIP=$ac_cv_prog_STRIP 5042if test -n "$STRIP"; then 5043 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5044$as_echo "$STRIP" >&6; } 5045else 5046 { $as_echo "$as_me:$LINENO: result: no" >&5 5047$as_echo "no" >&6; } 5048fi 5049 5050 5051fi 5052if test -z "$ac_cv_prog_STRIP"; then 5053 ac_ct_STRIP=$STRIP 5054 # Extract the first word of "strip", so it can be a program name with args. 5055set dummy strip; ac_word=$2 5056{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5057$as_echo_n "checking for $ac_word... " >&6; } 5058if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5059 $as_echo_n "(cached) " >&6 5060else 5061 if test -n "$ac_ct_STRIP"; then 5062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5063else 5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5065for as_dir in $PATH 5066do 5067 IFS=$as_save_IFS 5068 test -z "$as_dir" && as_dir=. 5069 for ac_exec_ext in '' $ac_executable_extensions; do 5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5071 ac_cv_prog_ac_ct_STRIP="strip" 5072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5073 break 2 5074 fi 5075done 5076done 5077IFS=$as_save_IFS 5078 5079fi 5080fi 5081ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5082if test -n "$ac_ct_STRIP"; then 5083 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5084$as_echo "$ac_ct_STRIP" >&6; } 5085else 5086 { $as_echo "$as_me:$LINENO: result: no" >&5 5087$as_echo "no" >&6; } 5088fi 5089 5090 if test "x$ac_ct_STRIP" = x; then 5091 STRIP=":" 5092 else 5093 case $cross_compiling:$ac_tool_warned in 5094yes:) 5095{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5097ac_tool_warned=yes ;; 5098esac 5099 STRIP=$ac_ct_STRIP 5100 fi 5101else 5102 STRIP="$ac_cv_prog_STRIP" 5103fi 5104 5105test -z "$STRIP" && STRIP=: 5106 5107 5108 5109 5110 5111 5112if test -n "$ac_tool_prefix"; then 5113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5114set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5116$as_echo_n "checking for $ac_word... " >&6; } 5117if test "${ac_cv_prog_RANLIB+set}" = set; then 5118 $as_echo_n "(cached) " >&6 5119else 5120 if test -n "$RANLIB"; then 5121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5122else 5123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5124for as_dir in $PATH 5125do 5126 IFS=$as_save_IFS 5127 test -z "$as_dir" && as_dir=. 5128 for ac_exec_ext in '' $ac_executable_extensions; do 5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5132 break 2 5133 fi 5134done 5135done 5136IFS=$as_save_IFS 5137 5138fi 5139fi 5140RANLIB=$ac_cv_prog_RANLIB 5141if test -n "$RANLIB"; then 5142 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5143$as_echo "$RANLIB" >&6; } 5144else 5145 { $as_echo "$as_me:$LINENO: result: no" >&5 5146$as_echo "no" >&6; } 5147fi 5148 5149 5150fi 5151if test -z "$ac_cv_prog_RANLIB"; then 5152 ac_ct_RANLIB=$RANLIB 5153 # Extract the first word of "ranlib", so it can be a program name with args. 5154set dummy ranlib; ac_word=$2 5155{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5156$as_echo_n "checking for $ac_word... " >&6; } 5157if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5158 $as_echo_n "(cached) " >&6 5159else 5160 if test -n "$ac_ct_RANLIB"; then 5161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5162else 5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5164for as_dir in $PATH 5165do 5166 IFS=$as_save_IFS 5167 test -z "$as_dir" && as_dir=. 5168 for ac_exec_ext in '' $ac_executable_extensions; do 5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5170 ac_cv_prog_ac_ct_RANLIB="ranlib" 5171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5172 break 2 5173 fi 5174done 5175done 5176IFS=$as_save_IFS 5177 5178fi 5179fi 5180ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5181if test -n "$ac_ct_RANLIB"; then 5182 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5183$as_echo "$ac_ct_RANLIB" >&6; } 5184else 5185 { $as_echo "$as_me:$LINENO: result: no" >&5 5186$as_echo "no" >&6; } 5187fi 5188 5189 if test "x$ac_ct_RANLIB" = x; then 5190 RANLIB=":" 5191 else 5192 case $cross_compiling:$ac_tool_warned in 5193yes:) 5194{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5196ac_tool_warned=yes ;; 5197esac 5198 RANLIB=$ac_ct_RANLIB 5199 fi 5200else 5201 RANLIB="$ac_cv_prog_RANLIB" 5202fi 5203 5204test -z "$RANLIB" && RANLIB=: 5205 5206 5207 5208 5209 5210 5211# Determine commands to create old-style static archives. 5212old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5213old_postinstall_cmds='chmod 644 $oldlib' 5214old_postuninstall_cmds= 5215 5216if test -n "$RANLIB"; then 5217 case $host_os in 5218 openbsd*) 5219 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5220 ;; 5221 *) 5222 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5223 ;; 5224 esac 5225 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5226fi 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261# If no C compiler was specified, use CC. 5262LTCC=${LTCC-"$CC"} 5263 5264# If no C compiler flags were specified, use CFLAGS. 5265LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5266 5267# Allow CC to be a program name with arguments. 5268compiler=$CC 5269 5270 5271# Check for command to grab the raw symbol name followed by C symbol from nm. 5272{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5273$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5274if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5275 $as_echo_n "(cached) " >&6 5276else 5277 5278# These are sane defaults that work on at least a few old systems. 5279# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5280 5281# Character class describing NM global symbol codes. 5282symcode='[BCDEGRST]' 5283 5284# Regexp to match symbols that can be accessed directly from C. 5285sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5286 5287# Define system-specific variables. 5288case $host_os in 5289aix*) 5290 symcode='[BCDT]' 5291 ;; 5292cygwin* | mingw* | pw32* | cegcc*) 5293 symcode='[ABCDGISTW]' 5294 ;; 5295hpux*) 5296 if test "$host_cpu" = ia64; then 5297 symcode='[ABCDEGRST]' 5298 fi 5299 ;; 5300irix* | nonstopux*) 5301 symcode='[BCDEGRST]' 5302 ;; 5303osf*) 5304 symcode='[BCDEGQRST]' 5305 ;; 5306solaris*) 5307 symcode='[BDRT]' 5308 ;; 5309sco3.2v5*) 5310 symcode='[DT]' 5311 ;; 5312sysv4.2uw2*) 5313 symcode='[DT]' 5314 ;; 5315sysv5* | sco5v6* | unixware* | OpenUNIX*) 5316 symcode='[ABDT]' 5317 ;; 5318sysv4) 5319 symcode='[DFNSTU]' 5320 ;; 5321esac 5322 5323# If we're using GNU nm, then use its standard symbol codes. 5324case `$NM -V 2>&1` in 5325*GNU* | *'with BFD'*) 5326 symcode='[ABCDGIRSTW]' ;; 5327esac 5328 5329# Transform an extracted symbol line into a proper C declaration. 5330# Some systems (esp. on ia64) link data and code symbols differently, 5331# so use this general approach. 5332lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5333 5334# Transform an extracted symbol line into symbol name and symbol address 5335lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5336lt_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'" 5337 5338# Handle CRLF in mingw tool chain 5339opt_cr= 5340case $build_os in 5341mingw*) 5342 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5343 ;; 5344esac 5345 5346# Try without a prefix underscore, then with it. 5347for ac_symprfx in "" "_"; do 5348 5349 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5350 symxfrm="\\1 $ac_symprfx\\2 \\2" 5351 5352 # Write the raw and C identifiers. 5353 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5354 # Fake it for dumpbin and say T for any non-static function 5355 # and D for any global variable. 5356 # Also find C++ and __fastcall symbols from MSVC++, 5357 # which start with @ or ?. 5358 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5359" {last_section=section; section=\$ 3};"\ 5360" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5361" \$ 0!~/External *\|/{next};"\ 5362" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5363" {if(hide[section]) next};"\ 5364" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5365" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5366" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5367" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5368" ' prfx=^$ac_symprfx" 5369 else 5370 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5371 fi 5372 5373 # Check to see that the pipe works correctly. 5374 pipe_works=no 5375 5376 rm -f conftest* 5377 cat > conftest.$ac_ext <<_LT_EOF 5378#ifdef __cplusplus 5379extern "C" { 5380#endif 5381char nm_test_var; 5382void nm_test_func(void); 5383void nm_test_func(void){} 5384#ifdef __cplusplus 5385} 5386#endif 5387int main(){nm_test_var='a';nm_test_func();return(0);} 5388_LT_EOF 5389 5390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5391 (eval $ac_compile) 2>&5 5392 ac_status=$? 5393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5394 (exit $ac_status); }; then 5395 # Now try to grab the symbols. 5396 nlist=conftest.nm 5397 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5398 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5399 ac_status=$? 5400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5401 (exit $ac_status); } && test -s "$nlist"; then 5402 # Try sorting and uniquifying the output. 5403 if sort "$nlist" | uniq > "$nlist"T; then 5404 mv -f "$nlist"T "$nlist" 5405 else 5406 rm -f "$nlist"T 5407 fi 5408 5409 # Make sure that we snagged all the symbols we need. 5410 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5411 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5412 cat <<_LT_EOF > conftest.$ac_ext 5413#ifdef __cplusplus 5414extern "C" { 5415#endif 5416 5417_LT_EOF 5418 # Now generate the symbol file. 5419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5420 5421 cat <<_LT_EOF >> conftest.$ac_ext 5422 5423/* The mapping between symbol names and symbols. */ 5424const struct { 5425 const char *name; 5426 void *address; 5427} 5428lt__PROGRAM__LTX_preloaded_symbols[] = 5429{ 5430 { "@PROGRAM@", (void *) 0 }, 5431_LT_EOF 5432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5433 cat <<\_LT_EOF >> conftest.$ac_ext 5434 {0, (void *) 0} 5435}; 5436 5437/* This works around a problem in FreeBSD linker */ 5438#ifdef FREEBSD_WORKAROUND 5439static const void *lt_preloaded_setup() { 5440 return lt__PROGRAM__LTX_preloaded_symbols; 5441} 5442#endif 5443 5444#ifdef __cplusplus 5445} 5446#endif 5447_LT_EOF 5448 # Now try linking the two files. 5449 mv conftest.$ac_objext conftstm.$ac_objext 5450 lt_save_LIBS="$LIBS" 5451 lt_save_CFLAGS="$CFLAGS" 5452 LIBS="conftstm.$ac_objext" 5453 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5455 (eval $ac_link) 2>&5 5456 ac_status=$? 5457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5458 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5459 pipe_works=yes 5460 fi 5461 LIBS="$lt_save_LIBS" 5462 CFLAGS="$lt_save_CFLAGS" 5463 else 5464 echo "cannot find nm_test_func in $nlist" >&5 5465 fi 5466 else 5467 echo "cannot find nm_test_var in $nlist" >&5 5468 fi 5469 else 5470 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5471 fi 5472 else 5473 echo "$progname: failed program was:" >&5 5474 cat conftest.$ac_ext >&5 5475 fi 5476 rm -rf conftest* conftst* 5477 5478 # Do not use the global_symbol_pipe unless it works. 5479 if test "$pipe_works" = yes; then 5480 break 5481 else 5482 lt_cv_sys_global_symbol_pipe= 5483 fi 5484done 5485 5486fi 5487 5488if test -z "$lt_cv_sys_global_symbol_pipe"; then 5489 lt_cv_sys_global_symbol_to_cdecl= 5490fi 5491if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5492 { $as_echo "$as_me:$LINENO: result: failed" >&5 5493$as_echo "failed" >&6; } 5494else 5495 { $as_echo "$as_me:$LINENO: result: ok" >&5 5496$as_echo "ok" >&6; } 5497fi 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521# Check whether --enable-libtool-lock was given. 5522if test "${enable_libtool_lock+set}" = set; then 5523 enableval=$enable_libtool_lock; 5524fi 5525 5526test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5527 5528# Some flags need to be propagated to the compiler or linker for good 5529# libtool support. 5530case $host in 5531ia64-*-hpux*) 5532 # Find out which ABI we are using. 5533 echo 'int i;' > conftest.$ac_ext 5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5535 (eval $ac_compile) 2>&5 5536 ac_status=$? 5537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5538 (exit $ac_status); }; then 5539 case `/usr/bin/file conftest.$ac_objext` in 5540 *ELF-32*) 5541 HPUX_IA64_MODE="32" 5542 ;; 5543 *ELF-64*) 5544 HPUX_IA64_MODE="64" 5545 ;; 5546 esac 5547 fi 5548 rm -rf conftest* 5549 ;; 5550*-*-irix6*) 5551 # Find out which ABI we are using. 5552 echo '#line 5552 "configure"' > conftest.$ac_ext 5553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5554 (eval $ac_compile) 2>&5 5555 ac_status=$? 5556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5557 (exit $ac_status); }; then 5558 if test "$lt_cv_prog_gnu_ld" = yes; then 5559 case `/usr/bin/file conftest.$ac_objext` in 5560 *32-bit*) 5561 LD="${LD-ld} -melf32bsmip" 5562 ;; 5563 *N32*) 5564 LD="${LD-ld} -melf32bmipn32" 5565 ;; 5566 *64-bit*) 5567 LD="${LD-ld} -melf64bmip" 5568 ;; 5569 esac 5570 else 5571 case `/usr/bin/file conftest.$ac_objext` in 5572 *32-bit*) 5573 LD="${LD-ld} -32" 5574 ;; 5575 *N32*) 5576 LD="${LD-ld} -n32" 5577 ;; 5578 *64-bit*) 5579 LD="${LD-ld} -64" 5580 ;; 5581 esac 5582 fi 5583 fi 5584 rm -rf conftest* 5585 ;; 5586 5587x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5588s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5589 # Find out which ABI we are using. 5590 echo 'int i;' > conftest.$ac_ext 5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5592 (eval $ac_compile) 2>&5 5593 ac_status=$? 5594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5595 (exit $ac_status); }; then 5596 case `/usr/bin/file conftest.o` in 5597 *32-bit*) 5598 case $host in 5599 x86_64-*kfreebsd*-gnu) 5600 LD="${LD-ld} -m elf_i386_fbsd" 5601 ;; 5602 x86_64-*linux*) 5603 LD="${LD-ld} -m elf_i386" 5604 ;; 5605 ppc64-*linux*|powerpc64-*linux*) 5606 LD="${LD-ld} -m elf32ppclinux" 5607 ;; 5608 s390x-*linux*) 5609 LD="${LD-ld} -m elf_s390" 5610 ;; 5611 sparc64-*linux*) 5612 LD="${LD-ld} -m elf32_sparc" 5613 ;; 5614 esac 5615 ;; 5616 *64-bit*) 5617 case $host in 5618 x86_64-*kfreebsd*-gnu) 5619 LD="${LD-ld} -m elf_x86_64_fbsd" 5620 ;; 5621 x86_64-*linux*) 5622 LD="${LD-ld} -m elf_x86_64" 5623 ;; 5624 ppc*-*linux*|powerpc*-*linux*) 5625 LD="${LD-ld} -m elf64ppc" 5626 ;; 5627 s390*-*linux*|s390*-*tpf*) 5628 LD="${LD-ld} -m elf64_s390" 5629 ;; 5630 sparc*-*linux*) 5631 LD="${LD-ld} -m elf64_sparc" 5632 ;; 5633 esac 5634 ;; 5635 esac 5636 fi 5637 rm -rf conftest* 5638 ;; 5639 5640*-*-sco3.2v5*) 5641 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5642 SAVE_CFLAGS="$CFLAGS" 5643 CFLAGS="$CFLAGS -belf" 5644 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5645$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5646if test "${lt_cv_cc_needs_belf+set}" = set; then 5647 $as_echo_n "(cached) " >&6 5648else 5649 ac_ext=c 5650ac_cpp='$CPP $CPPFLAGS' 5651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5653ac_compiler_gnu=$ac_cv_c_compiler_gnu 5654 5655 cat >conftest.$ac_ext <<_ACEOF 5656/* confdefs.h. */ 5657_ACEOF 5658cat confdefs.h >>conftest.$ac_ext 5659cat >>conftest.$ac_ext <<_ACEOF 5660/* end confdefs.h. */ 5661 5662int 5663main () 5664{ 5665 5666 ; 5667 return 0; 5668} 5669_ACEOF 5670rm -f conftest.$ac_objext conftest$ac_exeext 5671if { (ac_try="$ac_link" 5672case "(($ac_try" in 5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5674 *) ac_try_echo=$ac_try;; 5675esac 5676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5677$as_echo "$ac_try_echo") >&5 5678 (eval "$ac_link") 2>conftest.er1 5679 ac_status=$? 5680 grep -v '^ *+' conftest.er1 >conftest.err 5681 rm -f conftest.er1 5682 cat conftest.err >&5 5683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5684 (exit $ac_status); } && { 5685 test -z "$ac_c_werror_flag" || 5686 test ! -s conftest.err 5687 } && test -s conftest$ac_exeext && { 5688 test "$cross_compiling" = yes || 5689 $as_test_x conftest$ac_exeext 5690 }; then 5691 lt_cv_cc_needs_belf=yes 5692else 5693 $as_echo "$as_me: failed program was:" >&5 5694sed 's/^/| /' conftest.$ac_ext >&5 5695 5696 lt_cv_cc_needs_belf=no 5697fi 5698 5699rm -rf conftest.dSYM 5700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5701 conftest$ac_exeext conftest.$ac_ext 5702 ac_ext=c 5703ac_cpp='$CPP $CPPFLAGS' 5704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5706ac_compiler_gnu=$ac_cv_c_compiler_gnu 5707 5708fi 5709{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5710$as_echo "$lt_cv_cc_needs_belf" >&6; } 5711 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5712 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5713 CFLAGS="$SAVE_CFLAGS" 5714 fi 5715 ;; 5716sparc*-*solaris*) 5717 # Find out which ABI we are using. 5718 echo 'int i;' > conftest.$ac_ext 5719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5720 (eval $ac_compile) 2>&5 5721 ac_status=$? 5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5723 (exit $ac_status); }; then 5724 case `/usr/bin/file conftest.o` in 5725 *64-bit*) 5726 case $lt_cv_prog_gnu_ld in 5727 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5728 *) 5729 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5730 LD="${LD-ld} -64" 5731 fi 5732 ;; 5733 esac 5734 ;; 5735 esac 5736 fi 5737 rm -rf conftest* 5738 ;; 5739esac 5740 5741need_locks="$enable_libtool_lock" 5742 5743 5744 case $host_os in 5745 rhapsody* | darwin*) 5746 if test -n "$ac_tool_prefix"; then 5747 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5748set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5749{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5750$as_echo_n "checking for $ac_word... " >&6; } 5751if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5752 $as_echo_n "(cached) " >&6 5753else 5754 if test -n "$DSYMUTIL"; then 5755 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5756else 5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5758for as_dir in $PATH 5759do 5760 IFS=$as_save_IFS 5761 test -z "$as_dir" && as_dir=. 5762 for ac_exec_ext in '' $ac_executable_extensions; do 5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5764 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5766 break 2 5767 fi 5768done 5769done 5770IFS=$as_save_IFS 5771 5772fi 5773fi 5774DSYMUTIL=$ac_cv_prog_DSYMUTIL 5775if test -n "$DSYMUTIL"; then 5776 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5777$as_echo "$DSYMUTIL" >&6; } 5778else 5779 { $as_echo "$as_me:$LINENO: result: no" >&5 5780$as_echo "no" >&6; } 5781fi 5782 5783 5784fi 5785if test -z "$ac_cv_prog_DSYMUTIL"; then 5786 ac_ct_DSYMUTIL=$DSYMUTIL 5787 # Extract the first word of "dsymutil", so it can be a program name with args. 5788set dummy dsymutil; ac_word=$2 5789{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5790$as_echo_n "checking for $ac_word... " >&6; } 5791if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5792 $as_echo_n "(cached) " >&6 5793else 5794 if test -n "$ac_ct_DSYMUTIL"; then 5795 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5796else 5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5798for as_dir in $PATH 5799do 5800 IFS=$as_save_IFS 5801 test -z "$as_dir" && as_dir=. 5802 for ac_exec_ext in '' $ac_executable_extensions; do 5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5804 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5806 break 2 5807 fi 5808done 5809done 5810IFS=$as_save_IFS 5811 5812fi 5813fi 5814ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5815if test -n "$ac_ct_DSYMUTIL"; then 5816 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5817$as_echo "$ac_ct_DSYMUTIL" >&6; } 5818else 5819 { $as_echo "$as_me:$LINENO: result: no" >&5 5820$as_echo "no" >&6; } 5821fi 5822 5823 if test "x$ac_ct_DSYMUTIL" = x; then 5824 DSYMUTIL=":" 5825 else 5826 case $cross_compiling:$ac_tool_warned in 5827yes:) 5828{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5830ac_tool_warned=yes ;; 5831esac 5832 DSYMUTIL=$ac_ct_DSYMUTIL 5833 fi 5834else 5835 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5836fi 5837 5838 if test -n "$ac_tool_prefix"; then 5839 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5840set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5841{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5842$as_echo_n "checking for $ac_word... " >&6; } 5843if test "${ac_cv_prog_NMEDIT+set}" = set; then 5844 $as_echo_n "(cached) " >&6 5845else 5846 if test -n "$NMEDIT"; then 5847 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5848else 5849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5850for as_dir in $PATH 5851do 5852 IFS=$as_save_IFS 5853 test -z "$as_dir" && as_dir=. 5854 for ac_exec_ext in '' $ac_executable_extensions; do 5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5856 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5857 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5858 break 2 5859 fi 5860done 5861done 5862IFS=$as_save_IFS 5863 5864fi 5865fi 5866NMEDIT=$ac_cv_prog_NMEDIT 5867if test -n "$NMEDIT"; then 5868 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5869$as_echo "$NMEDIT" >&6; } 5870else 5871 { $as_echo "$as_me:$LINENO: result: no" >&5 5872$as_echo "no" >&6; } 5873fi 5874 5875 5876fi 5877if test -z "$ac_cv_prog_NMEDIT"; then 5878 ac_ct_NMEDIT=$NMEDIT 5879 # Extract the first word of "nmedit", so it can be a program name with args. 5880set dummy nmedit; ac_word=$2 5881{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5882$as_echo_n "checking for $ac_word... " >&6; } 5883if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5884 $as_echo_n "(cached) " >&6 5885else 5886 if test -n "$ac_ct_NMEDIT"; then 5887 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5888else 5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5890for as_dir in $PATH 5891do 5892 IFS=$as_save_IFS 5893 test -z "$as_dir" && as_dir=. 5894 for ac_exec_ext in '' $ac_executable_extensions; do 5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5896 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5898 break 2 5899 fi 5900done 5901done 5902IFS=$as_save_IFS 5903 5904fi 5905fi 5906ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5907if test -n "$ac_ct_NMEDIT"; then 5908 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 5909$as_echo "$ac_ct_NMEDIT" >&6; } 5910else 5911 { $as_echo "$as_me:$LINENO: result: no" >&5 5912$as_echo "no" >&6; } 5913fi 5914 5915 if test "x$ac_ct_NMEDIT" = x; then 5916 NMEDIT=":" 5917 else 5918 case $cross_compiling:$ac_tool_warned in 5919yes:) 5920{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5922ac_tool_warned=yes ;; 5923esac 5924 NMEDIT=$ac_ct_NMEDIT 5925 fi 5926else 5927 NMEDIT="$ac_cv_prog_NMEDIT" 5928fi 5929 5930 if test -n "$ac_tool_prefix"; then 5931 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5932set dummy ${ac_tool_prefix}lipo; ac_word=$2 5933{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5934$as_echo_n "checking for $ac_word... " >&6; } 5935if test "${ac_cv_prog_LIPO+set}" = set; then 5936 $as_echo_n "(cached) " >&6 5937else 5938 if test -n "$LIPO"; then 5939 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5940else 5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5942for as_dir in $PATH 5943do 5944 IFS=$as_save_IFS 5945 test -z "$as_dir" && as_dir=. 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5948 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952done 5953done 5954IFS=$as_save_IFS 5955 5956fi 5957fi 5958LIPO=$ac_cv_prog_LIPO 5959if test -n "$LIPO"; then 5960 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 5961$as_echo "$LIPO" >&6; } 5962else 5963 { $as_echo "$as_me:$LINENO: result: no" >&5 5964$as_echo "no" >&6; } 5965fi 5966 5967 5968fi 5969if test -z "$ac_cv_prog_LIPO"; then 5970 ac_ct_LIPO=$LIPO 5971 # Extract the first word of "lipo", so it can be a program name with args. 5972set dummy lipo; ac_word=$2 5973{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5974$as_echo_n "checking for $ac_word... " >&6; } 5975if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 5976 $as_echo_n "(cached) " >&6 5977else 5978 if test -n "$ac_ct_LIPO"; then 5979 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5980else 5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5982for as_dir in $PATH 5983do 5984 IFS=$as_save_IFS 5985 test -z "$as_dir" && as_dir=. 5986 for ac_exec_ext in '' $ac_executable_extensions; do 5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5988 ac_cv_prog_ac_ct_LIPO="lipo" 5989 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5990 break 2 5991 fi 5992done 5993done 5994IFS=$as_save_IFS 5995 5996fi 5997fi 5998ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5999if test -n "$ac_ct_LIPO"; then 6000 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6001$as_echo "$ac_ct_LIPO" >&6; } 6002else 6003 { $as_echo "$as_me:$LINENO: result: no" >&5 6004$as_echo "no" >&6; } 6005fi 6006 6007 if test "x$ac_ct_LIPO" = x; then 6008 LIPO=":" 6009 else 6010 case $cross_compiling:$ac_tool_warned in 6011yes:) 6012{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6014ac_tool_warned=yes ;; 6015esac 6016 LIPO=$ac_ct_LIPO 6017 fi 6018else 6019 LIPO="$ac_cv_prog_LIPO" 6020fi 6021 6022 if test -n "$ac_tool_prefix"; then 6023 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6024set dummy ${ac_tool_prefix}otool; ac_word=$2 6025{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6026$as_echo_n "checking for $ac_word... " >&6; } 6027if test "${ac_cv_prog_OTOOL+set}" = set; then 6028 $as_echo_n "(cached) " >&6 6029else 6030 if test -n "$OTOOL"; then 6031 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6032else 6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034for as_dir in $PATH 6035do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6040 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044done 6045done 6046IFS=$as_save_IFS 6047 6048fi 6049fi 6050OTOOL=$ac_cv_prog_OTOOL 6051if test -n "$OTOOL"; then 6052 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6053$as_echo "$OTOOL" >&6; } 6054else 6055 { $as_echo "$as_me:$LINENO: result: no" >&5 6056$as_echo "no" >&6; } 6057fi 6058 6059 6060fi 6061if test -z "$ac_cv_prog_OTOOL"; then 6062 ac_ct_OTOOL=$OTOOL 6063 # Extract the first word of "otool", so it can be a program name with args. 6064set dummy otool; ac_word=$2 6065{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6066$as_echo_n "checking for $ac_word... " >&6; } 6067if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6068 $as_echo_n "(cached) " >&6 6069else 6070 if test -n "$ac_ct_OTOOL"; then 6071 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6072else 6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6074for as_dir in $PATH 6075do 6076 IFS=$as_save_IFS 6077 test -z "$as_dir" && as_dir=. 6078 for ac_exec_ext in '' $ac_executable_extensions; do 6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6080 ac_cv_prog_ac_ct_OTOOL="otool" 6081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6082 break 2 6083 fi 6084done 6085done 6086IFS=$as_save_IFS 6087 6088fi 6089fi 6090ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6091if test -n "$ac_ct_OTOOL"; then 6092 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6093$as_echo "$ac_ct_OTOOL" >&6; } 6094else 6095 { $as_echo "$as_me:$LINENO: result: no" >&5 6096$as_echo "no" >&6; } 6097fi 6098 6099 if test "x$ac_ct_OTOOL" = x; then 6100 OTOOL=":" 6101 else 6102 case $cross_compiling:$ac_tool_warned in 6103yes:) 6104{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6106ac_tool_warned=yes ;; 6107esac 6108 OTOOL=$ac_ct_OTOOL 6109 fi 6110else 6111 OTOOL="$ac_cv_prog_OTOOL" 6112fi 6113 6114 if test -n "$ac_tool_prefix"; then 6115 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6116set dummy ${ac_tool_prefix}otool64; ac_word=$2 6117{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6118$as_echo_n "checking for $ac_word... " >&6; } 6119if test "${ac_cv_prog_OTOOL64+set}" = set; then 6120 $as_echo_n "(cached) " >&6 6121else 6122 if test -n "$OTOOL64"; then 6123 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6124else 6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6126for as_dir in $PATH 6127do 6128 IFS=$as_save_IFS 6129 test -z "$as_dir" && as_dir=. 6130 for ac_exec_ext in '' $ac_executable_extensions; do 6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6132 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6134 break 2 6135 fi 6136done 6137done 6138IFS=$as_save_IFS 6139 6140fi 6141fi 6142OTOOL64=$ac_cv_prog_OTOOL64 6143if test -n "$OTOOL64"; then 6144 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6145$as_echo "$OTOOL64" >&6; } 6146else 6147 { $as_echo "$as_me:$LINENO: result: no" >&5 6148$as_echo "no" >&6; } 6149fi 6150 6151 6152fi 6153if test -z "$ac_cv_prog_OTOOL64"; then 6154 ac_ct_OTOOL64=$OTOOL64 6155 # Extract the first word of "otool64", so it can be a program name with args. 6156set dummy otool64; ac_word=$2 6157{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6158$as_echo_n "checking for $ac_word... " >&6; } 6159if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6160 $as_echo_n "(cached) " >&6 6161else 6162 if test -n "$ac_ct_OTOOL64"; then 6163 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6164else 6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6166for as_dir in $PATH 6167do 6168 IFS=$as_save_IFS 6169 test -z "$as_dir" && as_dir=. 6170 for ac_exec_ext in '' $ac_executable_extensions; do 6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6172 ac_cv_prog_ac_ct_OTOOL64="otool64" 6173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6174 break 2 6175 fi 6176done 6177done 6178IFS=$as_save_IFS 6179 6180fi 6181fi 6182ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6183if test -n "$ac_ct_OTOOL64"; then 6184 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6185$as_echo "$ac_ct_OTOOL64" >&6; } 6186else 6187 { $as_echo "$as_me:$LINENO: result: no" >&5 6188$as_echo "no" >&6; } 6189fi 6190 6191 if test "x$ac_ct_OTOOL64" = x; then 6192 OTOOL64=":" 6193 else 6194 case $cross_compiling:$ac_tool_warned in 6195yes:) 6196{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6198ac_tool_warned=yes ;; 6199esac 6200 OTOOL64=$ac_ct_OTOOL64 6201 fi 6202else 6203 OTOOL64="$ac_cv_prog_OTOOL64" 6204fi 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6233$as_echo_n "checking for -single_module linker flag... " >&6; } 6234if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6235 $as_echo_n "(cached) " >&6 6236else 6237 lt_cv_apple_cc_single_mod=no 6238 if test -z "${LT_MULTI_MODULE}"; then 6239 # By default we will add the -single_module flag. You can override 6240 # by either setting the environment variable LT_MULTI_MODULE 6241 # non-empty at configure time, or by adding -multi_module to the 6242 # link flags. 6243 rm -rf libconftest.dylib* 6244 echo "int foo(void){return 1;}" > conftest.c 6245 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6246-dynamiclib -Wl,-single_module conftest.c" >&5 6247 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6248 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6249 _lt_result=$? 6250 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6251 lt_cv_apple_cc_single_mod=yes 6252 else 6253 cat conftest.err >&5 6254 fi 6255 rm -rf libconftest.dylib* 6256 rm -f conftest.* 6257 fi 6258fi 6259{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6260$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6261 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6262$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6263if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6264 $as_echo_n "(cached) " >&6 6265else 6266 lt_cv_ld_exported_symbols_list=no 6267 save_LDFLAGS=$LDFLAGS 6268 echo "_main" > conftest.sym 6269 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6270 cat >conftest.$ac_ext <<_ACEOF 6271/* confdefs.h. */ 6272_ACEOF 6273cat confdefs.h >>conftest.$ac_ext 6274cat >>conftest.$ac_ext <<_ACEOF 6275/* end confdefs.h. */ 6276 6277int 6278main () 6279{ 6280 6281 ; 6282 return 0; 6283} 6284_ACEOF 6285rm -f conftest.$ac_objext conftest$ac_exeext 6286if { (ac_try="$ac_link" 6287case "(($ac_try" in 6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6289 *) ac_try_echo=$ac_try;; 6290esac 6291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6292$as_echo "$ac_try_echo") >&5 6293 (eval "$ac_link") 2>conftest.er1 6294 ac_status=$? 6295 grep -v '^ *+' conftest.er1 >conftest.err 6296 rm -f conftest.er1 6297 cat conftest.err >&5 6298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6299 (exit $ac_status); } && { 6300 test -z "$ac_c_werror_flag" || 6301 test ! -s conftest.err 6302 } && test -s conftest$ac_exeext && { 6303 test "$cross_compiling" = yes || 6304 $as_test_x conftest$ac_exeext 6305 }; then 6306 lt_cv_ld_exported_symbols_list=yes 6307else 6308 $as_echo "$as_me: failed program was:" >&5 6309sed 's/^/| /' conftest.$ac_ext >&5 6310 6311 lt_cv_ld_exported_symbols_list=no 6312fi 6313 6314rm -rf conftest.dSYM 6315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6316 conftest$ac_exeext conftest.$ac_ext 6317 LDFLAGS="$save_LDFLAGS" 6318 6319fi 6320{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6321$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6322 case $host_os in 6323 rhapsody* | darwin1.[012]) 6324 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6325 darwin1.*) 6326 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6327 darwin*) # darwin 5.x on 6328 # if running on 10.5 or later, the deployment target defaults 6329 # to the OS version, if on x86, and 10.4, the deployment 6330 # target defaults to 10.4. Don't you love it? 6331 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6332 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6333 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6334 10.[012]*) 6335 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6336 10.*) 6337 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6338 esac 6339 ;; 6340 esac 6341 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6342 _lt_dar_single_mod='$single_module' 6343 fi 6344 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6345 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6346 else 6347 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6348 fi 6349 if test "$DSYMUTIL" != ":"; then 6350 _lt_dsymutil='~$DSYMUTIL $lib || :' 6351 else 6352 _lt_dsymutil= 6353 fi 6354 ;; 6355 esac 6356 6357ac_ext=c 6358ac_cpp='$CPP $CPPFLAGS' 6359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6361ac_compiler_gnu=$ac_cv_c_compiler_gnu 6362{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6363$as_echo_n "checking how to run the C preprocessor... " >&6; } 6364# On Suns, sometimes $CPP names a directory. 6365if test -n "$CPP" && test -d "$CPP"; then 6366 CPP= 6367fi 6368if test -z "$CPP"; then 6369 if test "${ac_cv_prog_CPP+set}" = set; then 6370 $as_echo_n "(cached) " >&6 6371else 6372 # Double quotes because CPP needs to be expanded 6373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6374 do 6375 ac_preproc_ok=false 6376for ac_c_preproc_warn_flag in '' yes 6377do 6378 # Use a header file that comes with gcc, so configuring glibc 6379 # with a fresh cross-compiler works. 6380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6381 # <limits.h> exists even on freestanding compilers. 6382 # On the NeXT, cc -E runs the code through the compiler's parser, 6383 # not just through cpp. "Syntax error" is here to catch this case. 6384 cat >conftest.$ac_ext <<_ACEOF 6385/* confdefs.h. */ 6386_ACEOF 6387cat confdefs.h >>conftest.$ac_ext 6388cat >>conftest.$ac_ext <<_ACEOF 6389/* end confdefs.h. */ 6390#ifdef __STDC__ 6391# include <limits.h> 6392#else 6393# include <assert.h> 6394#endif 6395 Syntax error 6396_ACEOF 6397if { (ac_try="$ac_cpp conftest.$ac_ext" 6398case "(($ac_try" in 6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6400 *) ac_try_echo=$ac_try;; 6401esac 6402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6403$as_echo "$ac_try_echo") >&5 6404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6405 ac_status=$? 6406 grep -v '^ *+' conftest.er1 >conftest.err 6407 rm -f conftest.er1 6408 cat conftest.err >&5 6409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6410 (exit $ac_status); } >/dev/null && { 6411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6412 test ! -s conftest.err 6413 }; then 6414 : 6415else 6416 $as_echo "$as_me: failed program was:" >&5 6417sed 's/^/| /' conftest.$ac_ext >&5 6418 6419 # Broken: fails on valid input. 6420continue 6421fi 6422 6423rm -f conftest.err conftest.$ac_ext 6424 6425 # OK, works on sane cases. Now check whether nonexistent headers 6426 # can be detected and how. 6427 cat >conftest.$ac_ext <<_ACEOF 6428/* confdefs.h. */ 6429_ACEOF 6430cat confdefs.h >>conftest.$ac_ext 6431cat >>conftest.$ac_ext <<_ACEOF 6432/* end confdefs.h. */ 6433#include <ac_nonexistent.h> 6434_ACEOF 6435if { (ac_try="$ac_cpp conftest.$ac_ext" 6436case "(($ac_try" in 6437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6438 *) ac_try_echo=$ac_try;; 6439esac 6440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6441$as_echo "$ac_try_echo") >&5 6442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6443 ac_status=$? 6444 grep -v '^ *+' conftest.er1 >conftest.err 6445 rm -f conftest.er1 6446 cat conftest.err >&5 6447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6448 (exit $ac_status); } >/dev/null && { 6449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6450 test ! -s conftest.err 6451 }; then 6452 # Broken: success on invalid input. 6453continue 6454else 6455 $as_echo "$as_me: failed program was:" >&5 6456sed 's/^/| /' conftest.$ac_ext >&5 6457 6458 # Passes both tests. 6459ac_preproc_ok=: 6460break 6461fi 6462 6463rm -f conftest.err conftest.$ac_ext 6464 6465done 6466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6467rm -f conftest.err conftest.$ac_ext 6468if $ac_preproc_ok; then 6469 break 6470fi 6471 6472 done 6473 ac_cv_prog_CPP=$CPP 6474 6475fi 6476 CPP=$ac_cv_prog_CPP 6477else 6478 ac_cv_prog_CPP=$CPP 6479fi 6480{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6481$as_echo "$CPP" >&6; } 6482ac_preproc_ok=false 6483for ac_c_preproc_warn_flag in '' yes 6484do 6485 # Use a header file that comes with gcc, so configuring glibc 6486 # with a fresh cross-compiler works. 6487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6488 # <limits.h> exists even on freestanding compilers. 6489 # On the NeXT, cc -E runs the code through the compiler's parser, 6490 # not just through cpp. "Syntax error" is here to catch this case. 6491 cat >conftest.$ac_ext <<_ACEOF 6492/* confdefs.h. */ 6493_ACEOF 6494cat confdefs.h >>conftest.$ac_ext 6495cat >>conftest.$ac_ext <<_ACEOF 6496/* end confdefs.h. */ 6497#ifdef __STDC__ 6498# include <limits.h> 6499#else 6500# include <assert.h> 6501#endif 6502 Syntax error 6503_ACEOF 6504if { (ac_try="$ac_cpp conftest.$ac_ext" 6505case "(($ac_try" in 6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6507 *) ac_try_echo=$ac_try;; 6508esac 6509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6510$as_echo "$ac_try_echo") >&5 6511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6512 ac_status=$? 6513 grep -v '^ *+' conftest.er1 >conftest.err 6514 rm -f conftest.er1 6515 cat conftest.err >&5 6516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6517 (exit $ac_status); } >/dev/null && { 6518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6519 test ! -s conftest.err 6520 }; then 6521 : 6522else 6523 $as_echo "$as_me: failed program was:" >&5 6524sed 's/^/| /' conftest.$ac_ext >&5 6525 6526 # Broken: fails on valid input. 6527continue 6528fi 6529 6530rm -f conftest.err conftest.$ac_ext 6531 6532 # OK, works on sane cases. Now check whether nonexistent headers 6533 # can be detected and how. 6534 cat >conftest.$ac_ext <<_ACEOF 6535/* confdefs.h. */ 6536_ACEOF 6537cat confdefs.h >>conftest.$ac_ext 6538cat >>conftest.$ac_ext <<_ACEOF 6539/* end confdefs.h. */ 6540#include <ac_nonexistent.h> 6541_ACEOF 6542if { (ac_try="$ac_cpp conftest.$ac_ext" 6543case "(($ac_try" in 6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6545 *) ac_try_echo=$ac_try;; 6546esac 6547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6548$as_echo "$ac_try_echo") >&5 6549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6550 ac_status=$? 6551 grep -v '^ *+' conftest.er1 >conftest.err 6552 rm -f conftest.er1 6553 cat conftest.err >&5 6554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6555 (exit $ac_status); } >/dev/null && { 6556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6557 test ! -s conftest.err 6558 }; then 6559 # Broken: success on invalid input. 6560continue 6561else 6562 $as_echo "$as_me: failed program was:" >&5 6563sed 's/^/| /' conftest.$ac_ext >&5 6564 6565 # Passes both tests. 6566ac_preproc_ok=: 6567break 6568fi 6569 6570rm -f conftest.err conftest.$ac_ext 6571 6572done 6573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6574rm -f conftest.err conftest.$ac_ext 6575if $ac_preproc_ok; then 6576 : 6577else 6578 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6580{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6581See \`config.log' for more details." >&5 6582$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6583See \`config.log' for more details." >&2;} 6584 { (exit 1); exit 1; }; }; } 6585fi 6586 6587ac_ext=c 6588ac_cpp='$CPP $CPPFLAGS' 6589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6591ac_compiler_gnu=$ac_cv_c_compiler_gnu 6592 6593 6594{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6595$as_echo_n "checking for ANSI C header files... " >&6; } 6596if test "${ac_cv_header_stdc+set}" = set; then 6597 $as_echo_n "(cached) " >&6 6598else 6599 cat >conftest.$ac_ext <<_ACEOF 6600/* confdefs.h. */ 6601_ACEOF 6602cat confdefs.h >>conftest.$ac_ext 6603cat >>conftest.$ac_ext <<_ACEOF 6604/* end confdefs.h. */ 6605#include <stdlib.h> 6606#include <stdarg.h> 6607#include <string.h> 6608#include <float.h> 6609 6610int 6611main () 6612{ 6613 6614 ; 6615 return 0; 6616} 6617_ACEOF 6618rm -f conftest.$ac_objext 6619if { (ac_try="$ac_compile" 6620case "(($ac_try" in 6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6622 *) ac_try_echo=$ac_try;; 6623esac 6624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6625$as_echo "$ac_try_echo") >&5 6626 (eval "$ac_compile") 2>conftest.er1 6627 ac_status=$? 6628 grep -v '^ *+' conftest.er1 >conftest.err 6629 rm -f conftest.er1 6630 cat conftest.err >&5 6631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6632 (exit $ac_status); } && { 6633 test -z "$ac_c_werror_flag" || 6634 test ! -s conftest.err 6635 } && test -s conftest.$ac_objext; then 6636 ac_cv_header_stdc=yes 6637else 6638 $as_echo "$as_me: failed program was:" >&5 6639sed 's/^/| /' conftest.$ac_ext >&5 6640 6641 ac_cv_header_stdc=no 6642fi 6643 6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6645 6646if test $ac_cv_header_stdc = yes; then 6647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6648 cat >conftest.$ac_ext <<_ACEOF 6649/* confdefs.h. */ 6650_ACEOF 6651cat confdefs.h >>conftest.$ac_ext 6652cat >>conftest.$ac_ext <<_ACEOF 6653/* end confdefs.h. */ 6654#include <string.h> 6655 6656_ACEOF 6657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6658 $EGREP "memchr" >/dev/null 2>&1; then 6659 : 6660else 6661 ac_cv_header_stdc=no 6662fi 6663rm -f conftest* 6664 6665fi 6666 6667if test $ac_cv_header_stdc = yes; then 6668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6669 cat >conftest.$ac_ext <<_ACEOF 6670/* confdefs.h. */ 6671_ACEOF 6672cat confdefs.h >>conftest.$ac_ext 6673cat >>conftest.$ac_ext <<_ACEOF 6674/* end confdefs.h. */ 6675#include <stdlib.h> 6676 6677_ACEOF 6678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6679 $EGREP "free" >/dev/null 2>&1; then 6680 : 6681else 6682 ac_cv_header_stdc=no 6683fi 6684rm -f conftest* 6685 6686fi 6687 6688if test $ac_cv_header_stdc = yes; then 6689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6690 if test "$cross_compiling" = yes; then 6691 : 6692else 6693 cat >conftest.$ac_ext <<_ACEOF 6694/* confdefs.h. */ 6695_ACEOF 6696cat confdefs.h >>conftest.$ac_ext 6697cat >>conftest.$ac_ext <<_ACEOF 6698/* end confdefs.h. */ 6699#include <ctype.h> 6700#include <stdlib.h> 6701#if ((' ' & 0x0FF) == 0x020) 6702# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6703# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6704#else 6705# define ISLOWER(c) \ 6706 (('a' <= (c) && (c) <= 'i') \ 6707 || ('j' <= (c) && (c) <= 'r') \ 6708 || ('s' <= (c) && (c) <= 'z')) 6709# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6710#endif 6711 6712#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6713int 6714main () 6715{ 6716 int i; 6717 for (i = 0; i < 256; i++) 6718 if (XOR (islower (i), ISLOWER (i)) 6719 || toupper (i) != TOUPPER (i)) 6720 return 2; 6721 return 0; 6722} 6723_ACEOF 6724rm -f conftest$ac_exeext 6725if { (ac_try="$ac_link" 6726case "(($ac_try" in 6727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6728 *) ac_try_echo=$ac_try;; 6729esac 6730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6731$as_echo "$ac_try_echo") >&5 6732 (eval "$ac_link") 2>&5 6733 ac_status=$? 6734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6736 { (case "(($ac_try" in 6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6738 *) ac_try_echo=$ac_try;; 6739esac 6740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6741$as_echo "$ac_try_echo") >&5 6742 (eval "$ac_try") 2>&5 6743 ac_status=$? 6744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6745 (exit $ac_status); }; }; then 6746 : 6747else 6748 $as_echo "$as_me: program exited with status $ac_status" >&5 6749$as_echo "$as_me: failed program was:" >&5 6750sed 's/^/| /' conftest.$ac_ext >&5 6751 6752( exit $ac_status ) 6753ac_cv_header_stdc=no 6754fi 6755rm -rf conftest.dSYM 6756rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6757fi 6758 6759 6760fi 6761fi 6762{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6763$as_echo "$ac_cv_header_stdc" >&6; } 6764if test $ac_cv_header_stdc = yes; then 6765 6766cat >>confdefs.h <<\_ACEOF 6767#define STDC_HEADERS 1 6768_ACEOF 6769 6770fi 6771 6772# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6783 inttypes.h stdint.h unistd.h 6784do 6785as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6786{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6787$as_echo_n "checking for $ac_header... " >&6; } 6788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6789 $as_echo_n "(cached) " >&6 6790else 6791 cat >conftest.$ac_ext <<_ACEOF 6792/* confdefs.h. */ 6793_ACEOF 6794cat confdefs.h >>conftest.$ac_ext 6795cat >>conftest.$ac_ext <<_ACEOF 6796/* end confdefs.h. */ 6797$ac_includes_default 6798 6799#include <$ac_header> 6800_ACEOF 6801rm -f conftest.$ac_objext 6802if { (ac_try="$ac_compile" 6803case "(($ac_try" in 6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6805 *) ac_try_echo=$ac_try;; 6806esac 6807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6808$as_echo "$ac_try_echo") >&5 6809 (eval "$ac_compile") 2>conftest.er1 6810 ac_status=$? 6811 grep -v '^ *+' conftest.er1 >conftest.err 6812 rm -f conftest.er1 6813 cat conftest.err >&5 6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6815 (exit $ac_status); } && { 6816 test -z "$ac_c_werror_flag" || 6817 test ! -s conftest.err 6818 } && test -s conftest.$ac_objext; then 6819 eval "$as_ac_Header=yes" 6820else 6821 $as_echo "$as_me: failed program was:" >&5 6822sed 's/^/| /' conftest.$ac_ext >&5 6823 6824 eval "$as_ac_Header=no" 6825fi 6826 6827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6828fi 6829ac_res=`eval 'as_val=${'$as_ac_Header'} 6830 $as_echo "$as_val"'` 6831 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6832$as_echo "$ac_res" >&6; } 6833as_val=`eval 'as_val=${'$as_ac_Header'} 6834 $as_echo "$as_val"'` 6835 if test "x$as_val" = x""yes; then 6836 cat >>confdefs.h <<_ACEOF 6837#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6838_ACEOF 6839 6840fi 6841 6842done 6843 6844 6845 6846for ac_header in dlfcn.h 6847do 6848as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6849{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6850$as_echo_n "checking for $ac_header... " >&6; } 6851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6852 $as_echo_n "(cached) " >&6 6853else 6854 cat >conftest.$ac_ext <<_ACEOF 6855/* confdefs.h. */ 6856_ACEOF 6857cat confdefs.h >>conftest.$ac_ext 6858cat >>conftest.$ac_ext <<_ACEOF 6859/* end confdefs.h. */ 6860$ac_includes_default 6861 6862#include <$ac_header> 6863_ACEOF 6864rm -f conftest.$ac_objext 6865if { (ac_try="$ac_compile" 6866case "(($ac_try" in 6867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6868 *) ac_try_echo=$ac_try;; 6869esac 6870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6871$as_echo "$ac_try_echo") >&5 6872 (eval "$ac_compile") 2>conftest.er1 6873 ac_status=$? 6874 grep -v '^ *+' conftest.er1 >conftest.err 6875 rm -f conftest.er1 6876 cat conftest.err >&5 6877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6878 (exit $ac_status); } && { 6879 test -z "$ac_c_werror_flag" || 6880 test ! -s conftest.err 6881 } && test -s conftest.$ac_objext; then 6882 eval "$as_ac_Header=yes" 6883else 6884 $as_echo "$as_me: failed program was:" >&5 6885sed 's/^/| /' conftest.$ac_ext >&5 6886 6887 eval "$as_ac_Header=no" 6888fi 6889 6890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6891fi 6892ac_res=`eval 'as_val=${'$as_ac_Header'} 6893 $as_echo "$as_val"'` 6894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6895$as_echo "$ac_res" >&6; } 6896as_val=`eval 'as_val=${'$as_ac_Header'} 6897 $as_echo "$as_val"'` 6898 if test "x$as_val" = x""yes; then 6899 cat >>confdefs.h <<_ACEOF 6900#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6901_ACEOF 6902 6903fi 6904 6905done 6906 6907 6908 6909# Set options 6910 6911 6912 6913 enable_dlopen=no 6914 6915 6916 enable_win32_dll=no 6917 6918 6919 # Check whether --enable-shared was given. 6920if test "${enable_shared+set}" = set; then 6921 enableval=$enable_shared; p=${PACKAGE-default} 6922 case $enableval in 6923 yes) enable_shared=yes ;; 6924 no) enable_shared=no ;; 6925 *) 6926 enable_shared=no 6927 # Look at the argument we got. We use all the common list separators. 6928 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6929 for pkg in $enableval; do 6930 IFS="$lt_save_ifs" 6931 if test "X$pkg" = "X$p"; then 6932 enable_shared=yes 6933 fi 6934 done 6935 IFS="$lt_save_ifs" 6936 ;; 6937 esac 6938else 6939 enable_shared=yes 6940fi 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 # Check whether --enable-static was given. 6951if test "${enable_static+set}" = set; then 6952 enableval=$enable_static; p=${PACKAGE-default} 6953 case $enableval in 6954 yes) enable_static=yes ;; 6955 no) enable_static=no ;; 6956 *) 6957 enable_static=no 6958 # Look at the argument we got. We use all the common list separators. 6959 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6960 for pkg in $enableval; do 6961 IFS="$lt_save_ifs" 6962 if test "X$pkg" = "X$p"; then 6963 enable_static=yes 6964 fi 6965 done 6966 IFS="$lt_save_ifs" 6967 ;; 6968 esac 6969else 6970 enable_static=yes 6971fi 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982# Check whether --with-pic was given. 6983if test "${with_pic+set}" = set; then 6984 withval=$with_pic; pic_mode="$withval" 6985else 6986 pic_mode=default 6987fi 6988 6989 6990test -z "$pic_mode" && pic_mode=default 6991 6992 6993 6994 6995 6996 6997 6998 # Check whether --enable-fast-install was given. 6999if test "${enable_fast_install+set}" = set; then 7000 enableval=$enable_fast_install; p=${PACKAGE-default} 7001 case $enableval in 7002 yes) enable_fast_install=yes ;; 7003 no) enable_fast_install=no ;; 7004 *) 7005 enable_fast_install=no 7006 # Look at the argument we got. We use all the common list separators. 7007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7008 for pkg in $enableval; do 7009 IFS="$lt_save_ifs" 7010 if test "X$pkg" = "X$p"; then 7011 enable_fast_install=yes 7012 fi 7013 done 7014 IFS="$lt_save_ifs" 7015 ;; 7016 esac 7017else 7018 enable_fast_install=yes 7019fi 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031# This can be used to rebuild libtool when needed 7032LIBTOOL_DEPS="$ltmain" 7033 7034# Always use our own libtool. 7035LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061test -z "$LN_S" && LN_S="ln -s" 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076if test -n "${ZSH_VERSION+set}" ; then 7077 setopt NO_GLOB_SUBST 7078fi 7079 7080{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7081$as_echo_n "checking for objdir... " >&6; } 7082if test "${lt_cv_objdir+set}" = set; then 7083 $as_echo_n "(cached) " >&6 7084else 7085 rm -f .libs 2>/dev/null 7086mkdir .libs 2>/dev/null 7087if test -d .libs; then 7088 lt_cv_objdir=.libs 7089else 7090 # MS-DOS does not allow filenames that begin with a dot. 7091 lt_cv_objdir=_libs 7092fi 7093rmdir .libs 2>/dev/null 7094fi 7095{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7096$as_echo "$lt_cv_objdir" >&6; } 7097objdir=$lt_cv_objdir 7098 7099 7100 7101 7102 7103cat >>confdefs.h <<_ACEOF 7104#define LT_OBJDIR "$lt_cv_objdir/" 7105_ACEOF 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123case $host_os in 7124aix3*) 7125 # AIX sometimes has problems with the GCC collect2 program. For some 7126 # reason, if we set the COLLECT_NAMES environment variable, the problems 7127 # vanish in a puff of smoke. 7128 if test "X${COLLECT_NAMES+set}" != Xset; then 7129 COLLECT_NAMES= 7130 export COLLECT_NAMES 7131 fi 7132 ;; 7133esac 7134 7135# Sed substitution that helps us do robust quoting. It backslashifies 7136# metacharacters that are still active within double-quoted strings. 7137sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7138 7139# Same as above, but do not quote variable references. 7140double_quote_subst='s/\(["`\\]\)/\\\1/g' 7141 7142# Sed substitution to delay expansion of an escaped shell variable in a 7143# double_quote_subst'ed string. 7144delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7145 7146# Sed substitution to delay expansion of an escaped single quote. 7147delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7148 7149# Sed substitution to avoid accidental globbing in evaled expressions 7150no_glob_subst='s/\*/\\\*/g' 7151 7152# Global variables: 7153ofile=libtool 7154can_build_shared=yes 7155 7156# All known linkers require a `.a' archive for static linking (except MSVC, 7157# which needs '.lib'). 7158libext=a 7159 7160with_gnu_ld="$lt_cv_prog_gnu_ld" 7161 7162old_CC="$CC" 7163old_CFLAGS="$CFLAGS" 7164 7165# Set sane defaults for various variables 7166test -z "$CC" && CC=cc 7167test -z "$LTCC" && LTCC=$CC 7168test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7169test -z "$LD" && LD=ld 7170test -z "$ac_objext" && ac_objext=o 7171 7172for cc_temp in $compiler""; do 7173 case $cc_temp in 7174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7176 \-*) ;; 7177 *) break;; 7178 esac 7179done 7180cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7181 7182 7183# Only perform the check for file, if the check method requires it 7184test -z "$MAGIC_CMD" && MAGIC_CMD=file 7185case $deplibs_check_method in 7186file_magic*) 7187 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7188 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7189$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7190if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7191 $as_echo_n "(cached) " >&6 7192else 7193 case $MAGIC_CMD in 7194[\\/*] | ?:[\\/]*) 7195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7196 ;; 7197*) 7198 lt_save_MAGIC_CMD="$MAGIC_CMD" 7199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7201 for ac_dir in $ac_dummy; do 7202 IFS="$lt_save_ifs" 7203 test -z "$ac_dir" && ac_dir=. 7204 if test -f $ac_dir/${ac_tool_prefix}file; then 7205 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7206 if test -n "$file_magic_test_file"; then 7207 case $deplibs_check_method in 7208 "file_magic "*) 7209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7212 $EGREP "$file_magic_regex" > /dev/null; then 7213 : 7214 else 7215 cat <<_LT_EOF 1>&2 7216 7217*** Warning: the command libtool uses to detect shared libraries, 7218*** $file_magic_cmd, produces output that libtool cannot recognize. 7219*** The result is that libtool may fail to recognize shared libraries 7220*** as such. This will affect the creation of libtool libraries that 7221*** depend on shared libraries, but programs linked with such libtool 7222*** libraries will work regardless of this problem. Nevertheless, you 7223*** may want to report the problem to your system manager and/or to 7224*** bug-libtool@gnu.org 7225 7226_LT_EOF 7227 fi ;; 7228 esac 7229 fi 7230 break 7231 fi 7232 done 7233 IFS="$lt_save_ifs" 7234 MAGIC_CMD="$lt_save_MAGIC_CMD" 7235 ;; 7236esac 7237fi 7238 7239MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7240if test -n "$MAGIC_CMD"; then 7241 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7242$as_echo "$MAGIC_CMD" >&6; } 7243else 7244 { $as_echo "$as_me:$LINENO: result: no" >&5 7245$as_echo "no" >&6; } 7246fi 7247 7248 7249 7250 7251 7252if test -z "$lt_cv_path_MAGIC_CMD"; then 7253 if test -n "$ac_tool_prefix"; then 7254 { $as_echo "$as_me:$LINENO: checking for file" >&5 7255$as_echo_n "checking for file... " >&6; } 7256if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7257 $as_echo_n "(cached) " >&6 7258else 7259 case $MAGIC_CMD in 7260[\\/*] | ?:[\\/]*) 7261 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7262 ;; 7263*) 7264 lt_save_MAGIC_CMD="$MAGIC_CMD" 7265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7266 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7267 for ac_dir in $ac_dummy; do 7268 IFS="$lt_save_ifs" 7269 test -z "$ac_dir" && ac_dir=. 7270 if test -f $ac_dir/file; then 7271 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7272 if test -n "$file_magic_test_file"; then 7273 case $deplibs_check_method in 7274 "file_magic "*) 7275 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7277 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7278 $EGREP "$file_magic_regex" > /dev/null; then 7279 : 7280 else 7281 cat <<_LT_EOF 1>&2 7282 7283*** Warning: the command libtool uses to detect shared libraries, 7284*** $file_magic_cmd, produces output that libtool cannot recognize. 7285*** The result is that libtool may fail to recognize shared libraries 7286*** as such. This will affect the creation of libtool libraries that 7287*** depend on shared libraries, but programs linked with such libtool 7288*** libraries will work regardless of this problem. Nevertheless, you 7289*** may want to report the problem to your system manager and/or to 7290*** bug-libtool@gnu.org 7291 7292_LT_EOF 7293 fi ;; 7294 esac 7295 fi 7296 break 7297 fi 7298 done 7299 IFS="$lt_save_ifs" 7300 MAGIC_CMD="$lt_save_MAGIC_CMD" 7301 ;; 7302esac 7303fi 7304 7305MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7306if test -n "$MAGIC_CMD"; then 7307 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7308$as_echo "$MAGIC_CMD" >&6; } 7309else 7310 { $as_echo "$as_me:$LINENO: result: no" >&5 7311$as_echo "no" >&6; } 7312fi 7313 7314 7315 else 7316 MAGIC_CMD=: 7317 fi 7318fi 7319 7320 fi 7321 ;; 7322esac 7323 7324# Use C for the default configuration in the libtool script 7325 7326lt_save_CC="$CC" 7327ac_ext=c 7328ac_cpp='$CPP $CPPFLAGS' 7329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7331ac_compiler_gnu=$ac_cv_c_compiler_gnu 7332 7333 7334# Source file extension for C test sources. 7335ac_ext=c 7336 7337# Object file extension for compiled C test sources. 7338objext=o 7339objext=$objext 7340 7341# Code to be used in simple compile tests 7342lt_simple_compile_test_code="int some_variable = 0;" 7343 7344# Code to be used in simple link tests 7345lt_simple_link_test_code='int main(){return(0);}' 7346 7347 7348 7349 7350 7351 7352 7353# If no C compiler was specified, use CC. 7354LTCC=${LTCC-"$CC"} 7355 7356# If no C compiler flags were specified, use CFLAGS. 7357LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7358 7359# Allow CC to be a program name with arguments. 7360compiler=$CC 7361 7362# Save the default compiler, since it gets overwritten when the other 7363# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7364compiler_DEFAULT=$CC 7365 7366# save warnings/boilerplate of simple test code 7367ac_outfile=conftest.$ac_objext 7368echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7369eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7370_lt_compiler_boilerplate=`cat conftest.err` 7371$RM conftest* 7372 7373ac_outfile=conftest.$ac_objext 7374echo "$lt_simple_link_test_code" >conftest.$ac_ext 7375eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7376_lt_linker_boilerplate=`cat conftest.err` 7377$RM -r conftest* 7378 7379 7380## CAVEAT EMPTOR: 7381## There is no encapsulation within the following macros, do not change 7382## the running order or otherwise move them around unless you know exactly 7383## what you are doing... 7384if test -n "$compiler"; then 7385 7386lt_prog_compiler_no_builtin_flag= 7387 7388if test "$GCC" = yes; then 7389 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7390 7391 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7392$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7393if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7394 $as_echo_n "(cached) " >&6 7395else 7396 lt_cv_prog_compiler_rtti_exceptions=no 7397 ac_outfile=conftest.$ac_objext 7398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7399 lt_compiler_flag="-fno-rtti -fno-exceptions" 7400 # Insert the option either (1) after the last *FLAGS variable, or 7401 # (2) before a word containing "conftest.", or (3) at the end. 7402 # Note that $ac_compile itself does not contain backslashes and begins 7403 # with a dollar sign (not a hyphen), so the echo should work correctly. 7404 # The option is referenced via a variable to avoid confusing sed. 7405 lt_compile=`echo "$ac_compile" | $SED \ 7406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7408 -e 's:$: $lt_compiler_flag:'` 7409 (eval echo "\"\$as_me:7409: $lt_compile\"" >&5) 7410 (eval "$lt_compile" 2>conftest.err) 7411 ac_status=$? 7412 cat conftest.err >&5 7413 echo "$as_me:7413: \$? = $ac_status" >&5 7414 if (exit $ac_status) && test -s "$ac_outfile"; then 7415 # The compiler can only warn and ignore the option if not recognized 7416 # So say no if there are warnings other than the usual output. 7417 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7420 lt_cv_prog_compiler_rtti_exceptions=yes 7421 fi 7422 fi 7423 $RM conftest* 7424 7425fi 7426{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7427$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7428 7429if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7430 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7431else 7432 : 7433fi 7434 7435fi 7436 7437 7438 7439 7440 7441 7442 lt_prog_compiler_wl= 7443lt_prog_compiler_pic= 7444lt_prog_compiler_static= 7445 7446{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7447$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7448 7449 if test "$GCC" = yes; then 7450 lt_prog_compiler_wl='-Wl,' 7451 lt_prog_compiler_static='-static' 7452 7453 case $host_os in 7454 aix*) 7455 # All AIX code is PIC. 7456 if test "$host_cpu" = ia64; then 7457 # AIX 5 now supports IA64 processor 7458 lt_prog_compiler_static='-Bstatic' 7459 fi 7460 ;; 7461 7462 amigaos*) 7463 case $host_cpu in 7464 powerpc) 7465 # see comment about AmigaOS4 .so support 7466 lt_prog_compiler_pic='-fPIC' 7467 ;; 7468 m68k) 7469 # FIXME: we need at least 68020 code to build shared libraries, but 7470 # adding the `-m68020' flag to GCC prevents building anything better, 7471 # like `-m68040'. 7472 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7473 ;; 7474 esac 7475 ;; 7476 7477 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7478 # PIC is the default for these OSes. 7479 ;; 7480 7481 mingw* | cygwin* | pw32* | os2* | cegcc*) 7482 # This hack is so that the source file can tell whether it is being 7483 # built for inclusion in a dll (and should export symbols for example). 7484 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7485 # (--disable-auto-import) libraries 7486 lt_prog_compiler_pic='-DDLL_EXPORT' 7487 ;; 7488 7489 darwin* | rhapsody*) 7490 # PIC is the default on this platform 7491 # Common symbols not allowed in MH_DYLIB files 7492 lt_prog_compiler_pic='-fno-common' 7493 ;; 7494 7495 hpux*) 7496 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7497 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7498 # sets the default TLS model and affects inlining. 7499 case $host_cpu in 7500 hppa*64*) 7501 # +Z the default 7502 ;; 7503 *) 7504 lt_prog_compiler_pic='-fPIC' 7505 ;; 7506 esac 7507 ;; 7508 7509 interix[3-9]*) 7510 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7511 # Instead, we relocate shared libraries at runtime. 7512 ;; 7513 7514 msdosdjgpp*) 7515 # Just because we use GCC doesn't mean we suddenly get shared libraries 7516 # on systems that don't support them. 7517 lt_prog_compiler_can_build_shared=no 7518 enable_shared=no 7519 ;; 7520 7521 *nto* | *qnx*) 7522 # QNX uses GNU C++, but need to define -shared option too, otherwise 7523 # it will coredump. 7524 lt_prog_compiler_pic='-fPIC -shared' 7525 ;; 7526 7527 sysv4*MP*) 7528 if test -d /usr/nec; then 7529 lt_prog_compiler_pic=-Kconform_pic 7530 fi 7531 ;; 7532 7533 *) 7534 lt_prog_compiler_pic='-fPIC' 7535 ;; 7536 esac 7537 else 7538 # PORTME Check for flag to pass linker flags through the system compiler. 7539 case $host_os in 7540 aix*) 7541 lt_prog_compiler_wl='-Wl,' 7542 if test "$host_cpu" = ia64; then 7543 # AIX 5 now supports IA64 processor 7544 lt_prog_compiler_static='-Bstatic' 7545 else 7546 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7547 fi 7548 ;; 7549 7550 mingw* | cygwin* | pw32* | os2* | cegcc*) 7551 # This hack is so that the source file can tell whether it is being 7552 # built for inclusion in a dll (and should export symbols for example). 7553 lt_prog_compiler_pic='-DDLL_EXPORT' 7554 ;; 7555 7556 hpux9* | hpux10* | hpux11*) 7557 lt_prog_compiler_wl='-Wl,' 7558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7559 # not for PA HP-UX. 7560 case $host_cpu in 7561 hppa*64*|ia64*) 7562 # +Z the default 7563 ;; 7564 *) 7565 lt_prog_compiler_pic='+Z' 7566 ;; 7567 esac 7568 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7569 lt_prog_compiler_static='${wl}-a ${wl}archive' 7570 ;; 7571 7572 irix5* | irix6* | nonstopux*) 7573 lt_prog_compiler_wl='-Wl,' 7574 # PIC (with -KPIC) is the default. 7575 lt_prog_compiler_static='-non_shared' 7576 ;; 7577 7578 linux* | k*bsd*-gnu) 7579 case $cc_basename in 7580 # old Intel for x86_64 which still supported -KPIC. 7581 ecc*) 7582 lt_prog_compiler_wl='-Wl,' 7583 lt_prog_compiler_pic='-KPIC' 7584 lt_prog_compiler_static='-static' 7585 ;; 7586 # icc used to be incompatible with GCC. 7587 # ICC 10 doesn't accept -KPIC any more. 7588 icc* | ifort*) 7589 lt_prog_compiler_wl='-Wl,' 7590 lt_prog_compiler_pic='-fPIC' 7591 lt_prog_compiler_static='-static' 7592 ;; 7593 # Lahey Fortran 8.1. 7594 lf95*) 7595 lt_prog_compiler_wl='-Wl,' 7596 lt_prog_compiler_pic='--shared' 7597 lt_prog_compiler_static='--static' 7598 ;; 7599 pgcc* | pgf77* | pgf90* | pgf95*) 7600 # Portland Group compilers (*not* the Pentium gcc compiler, 7601 # which looks to be a dead project) 7602 lt_prog_compiler_wl='-Wl,' 7603 lt_prog_compiler_pic='-fpic' 7604 lt_prog_compiler_static='-Bstatic' 7605 ;; 7606 ccc*) 7607 lt_prog_compiler_wl='-Wl,' 7608 # All Alpha code is PIC. 7609 lt_prog_compiler_static='-non_shared' 7610 ;; 7611 xl*) 7612 # IBM XL C 8.0/Fortran 10.1 on PPC 7613 lt_prog_compiler_wl='-Wl,' 7614 lt_prog_compiler_pic='-qpic' 7615 lt_prog_compiler_static='-qstaticlink' 7616 ;; 7617 *) 7618 case `$CC -V 2>&1 | sed 5q` in 7619 *Sun\ C*) 7620 # Sun C 5.9 7621 lt_prog_compiler_pic='-KPIC' 7622 lt_prog_compiler_static='-Bstatic' 7623 lt_prog_compiler_wl='-Wl,' 7624 ;; 7625 *Sun\ F*) 7626 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7627 lt_prog_compiler_pic='-KPIC' 7628 lt_prog_compiler_static='-Bstatic' 7629 lt_prog_compiler_wl='' 7630 ;; 7631 esac 7632 ;; 7633 esac 7634 ;; 7635 7636 newsos6) 7637 lt_prog_compiler_pic='-KPIC' 7638 lt_prog_compiler_static='-Bstatic' 7639 ;; 7640 7641 *nto* | *qnx*) 7642 # QNX uses GNU C++, but need to define -shared option too, otherwise 7643 # it will coredump. 7644 lt_prog_compiler_pic='-fPIC -shared' 7645 ;; 7646 7647 osf3* | osf4* | osf5*) 7648 lt_prog_compiler_wl='-Wl,' 7649 # All OSF/1 code is PIC. 7650 lt_prog_compiler_static='-non_shared' 7651 ;; 7652 7653 rdos*) 7654 lt_prog_compiler_static='-non_shared' 7655 ;; 7656 7657 solaris*) 7658 lt_prog_compiler_pic='-KPIC' 7659 lt_prog_compiler_static='-Bstatic' 7660 case $cc_basename in 7661 f77* | f90* | f95*) 7662 lt_prog_compiler_wl='-Qoption ld ';; 7663 *) 7664 lt_prog_compiler_wl='-Wl,';; 7665 esac 7666 ;; 7667 7668 sunos4*) 7669 lt_prog_compiler_wl='-Qoption ld ' 7670 lt_prog_compiler_pic='-PIC' 7671 lt_prog_compiler_static='-Bstatic' 7672 ;; 7673 7674 sysv4 | sysv4.2uw2* | sysv4.3*) 7675 lt_prog_compiler_wl='-Wl,' 7676 lt_prog_compiler_pic='-KPIC' 7677 lt_prog_compiler_static='-Bstatic' 7678 ;; 7679 7680 sysv4*MP*) 7681 if test -d /usr/nec ;then 7682 lt_prog_compiler_pic='-Kconform_pic' 7683 lt_prog_compiler_static='-Bstatic' 7684 fi 7685 ;; 7686 7687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7688 lt_prog_compiler_wl='-Wl,' 7689 lt_prog_compiler_pic='-KPIC' 7690 lt_prog_compiler_static='-Bstatic' 7691 ;; 7692 7693 unicos*) 7694 lt_prog_compiler_wl='-Wl,' 7695 lt_prog_compiler_can_build_shared=no 7696 ;; 7697 7698 uts4*) 7699 lt_prog_compiler_pic='-pic' 7700 lt_prog_compiler_static='-Bstatic' 7701 ;; 7702 7703 *) 7704 lt_prog_compiler_can_build_shared=no 7705 ;; 7706 esac 7707 fi 7708 7709case $host_os in 7710 # For platforms which do not support PIC, -DPIC is meaningless: 7711 *djgpp*) 7712 lt_prog_compiler_pic= 7713 ;; 7714 *) 7715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7716 ;; 7717esac 7718{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7719$as_echo "$lt_prog_compiler_pic" >&6; } 7720 7721 7722 7723 7724 7725 7726# 7727# Check to make sure the PIC flag actually works. 7728# 7729if test -n "$lt_prog_compiler_pic"; then 7730 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7731$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7732if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7733 $as_echo_n "(cached) " >&6 7734else 7735 lt_cv_prog_compiler_pic_works=no 7736 ac_outfile=conftest.$ac_objext 7737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7738 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7739 # Insert the option either (1) after the last *FLAGS variable, or 7740 # (2) before a word containing "conftest.", or (3) at the end. 7741 # Note that $ac_compile itself does not contain backslashes and begins 7742 # with a dollar sign (not a hyphen), so the echo should work correctly. 7743 # The option is referenced via a variable to avoid confusing sed. 7744 lt_compile=`echo "$ac_compile" | $SED \ 7745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7747 -e 's:$: $lt_compiler_flag:'` 7748 (eval echo "\"\$as_me:7748: $lt_compile\"" >&5) 7749 (eval "$lt_compile" 2>conftest.err) 7750 ac_status=$? 7751 cat conftest.err >&5 7752 echo "$as_me:7752: \$? = $ac_status" >&5 7753 if (exit $ac_status) && test -s "$ac_outfile"; then 7754 # The compiler can only warn and ignore the option if not recognized 7755 # So say no if there are warnings other than the usual output. 7756 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7759 lt_cv_prog_compiler_pic_works=yes 7760 fi 7761 fi 7762 $RM conftest* 7763 7764fi 7765{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7766$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7767 7768if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7769 case $lt_prog_compiler_pic in 7770 "" | " "*) ;; 7771 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7772 esac 7773else 7774 lt_prog_compiler_pic= 7775 lt_prog_compiler_can_build_shared=no 7776fi 7777 7778fi 7779 7780 7781 7782 7783 7784 7785# 7786# Check to make sure the static flag actually works. 7787# 7788wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7789{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7790$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7791if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7792 $as_echo_n "(cached) " >&6 7793else 7794 lt_cv_prog_compiler_static_works=no 7795 save_LDFLAGS="$LDFLAGS" 7796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7797 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7799 # The linker can only warn and ignore the option if not recognized 7800 # So say no if there are warnings 7801 if test -s conftest.err; then 7802 # Append any errors to the config.log. 7803 cat conftest.err 1>&5 7804 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7806 if diff conftest.exp conftest.er2 >/dev/null; then 7807 lt_cv_prog_compiler_static_works=yes 7808 fi 7809 else 7810 lt_cv_prog_compiler_static_works=yes 7811 fi 7812 fi 7813 $RM -r conftest* 7814 LDFLAGS="$save_LDFLAGS" 7815 7816fi 7817{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7818$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7819 7820if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7821 : 7822else 7823 lt_prog_compiler_static= 7824fi 7825 7826 7827 7828 7829 7830 7831 7832 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7833$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7834if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7835 $as_echo_n "(cached) " >&6 7836else 7837 lt_cv_prog_compiler_c_o=no 7838 $RM -r conftest 2>/dev/null 7839 mkdir conftest 7840 cd conftest 7841 mkdir out 7842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7843 7844 lt_compiler_flag="-o out/conftest2.$ac_objext" 7845 # Insert the option either (1) after the last *FLAGS variable, or 7846 # (2) before a word containing "conftest.", or (3) at the end. 7847 # Note that $ac_compile itself does not contain backslashes and begins 7848 # with a dollar sign (not a hyphen), so the echo should work correctly. 7849 lt_compile=`echo "$ac_compile" | $SED \ 7850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7852 -e 's:$: $lt_compiler_flag:'` 7853 (eval echo "\"\$as_me:7853: $lt_compile\"" >&5) 7854 (eval "$lt_compile" 2>out/conftest.err) 7855 ac_status=$? 7856 cat out/conftest.err >&5 7857 echo "$as_me:7857: \$? = $ac_status" >&5 7858 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7859 then 7860 # The compiler can only warn and ignore the option if not recognized 7861 # So say no if there are warnings 7862 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7865 lt_cv_prog_compiler_c_o=yes 7866 fi 7867 fi 7868 chmod u+w . 2>&5 7869 $RM conftest* 7870 # SGI C++ compiler will create directory out/ii_files/ for 7871 # template instantiation 7872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7873 $RM out/* && rmdir out 7874 cd .. 7875 $RM -r conftest 7876 $RM conftest* 7877 7878fi 7879{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7880$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7881 7882 7883 7884 7885 7886 7887 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7888$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7889if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7890 $as_echo_n "(cached) " >&6 7891else 7892 lt_cv_prog_compiler_c_o=no 7893 $RM -r conftest 2>/dev/null 7894 mkdir conftest 7895 cd conftest 7896 mkdir out 7897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7898 7899 lt_compiler_flag="-o out/conftest2.$ac_objext" 7900 # Insert the option either (1) after the last *FLAGS variable, or 7901 # (2) before a word containing "conftest.", or (3) at the end. 7902 # Note that $ac_compile itself does not contain backslashes and begins 7903 # with a dollar sign (not a hyphen), so the echo should work correctly. 7904 lt_compile=`echo "$ac_compile" | $SED \ 7905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7907 -e 's:$: $lt_compiler_flag:'` 7908 (eval echo "\"\$as_me:7908: $lt_compile\"" >&5) 7909 (eval "$lt_compile" 2>out/conftest.err) 7910 ac_status=$? 7911 cat out/conftest.err >&5 7912 echo "$as_me:7912: \$? = $ac_status" >&5 7913 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7914 then 7915 # The compiler can only warn and ignore the option if not recognized 7916 # So say no if there are warnings 7917 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7920 lt_cv_prog_compiler_c_o=yes 7921 fi 7922 fi 7923 chmod u+w . 2>&5 7924 $RM conftest* 7925 # SGI C++ compiler will create directory out/ii_files/ for 7926 # template instantiation 7927 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7928 $RM out/* && rmdir out 7929 cd .. 7930 $RM -r conftest 7931 $RM conftest* 7932 7933fi 7934{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7935$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7936 7937 7938 7939 7940hard_links="nottested" 7941if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7942 # do not overwrite the value of need_locks provided by the user 7943 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7944$as_echo_n "checking if we can lock with hard links... " >&6; } 7945 hard_links=yes 7946 $RM conftest* 7947 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7948 touch conftest.a 7949 ln conftest.a conftest.b 2>&5 || hard_links=no 7950 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7951 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 7952$as_echo "$hard_links" >&6; } 7953 if test "$hard_links" = no; then 7954 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7955$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7956 need_locks=warn 7957 fi 7958else 7959 need_locks=no 7960fi 7961 7962 7963 7964 7965 7966 7967 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7968$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7969 7970 runpath_var= 7971 allow_undefined_flag= 7972 always_export_symbols=no 7973 archive_cmds= 7974 archive_expsym_cmds= 7975 compiler_needs_object=no 7976 enable_shared_with_static_runtimes=no 7977 export_dynamic_flag_spec= 7978 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7979 hardcode_automatic=no 7980 hardcode_direct=no 7981 hardcode_direct_absolute=no 7982 hardcode_libdir_flag_spec= 7983 hardcode_libdir_flag_spec_ld= 7984 hardcode_libdir_separator= 7985 hardcode_minus_L=no 7986 hardcode_shlibpath_var=unsupported 7987 inherit_rpath=no 7988 link_all_deplibs=unknown 7989 module_cmds= 7990 module_expsym_cmds= 7991 old_archive_from_new_cmds= 7992 old_archive_from_expsyms_cmds= 7993 thread_safe_flag_spec= 7994 whole_archive_flag_spec= 7995 # include_expsyms should be a list of space-separated symbols to be *always* 7996 # included in the symbol list 7997 include_expsyms= 7998 # exclude_expsyms can be an extended regexp of symbols to exclude 7999 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8001 # as well as any symbol that contains `d'. 8002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8004 # platforms (ab)use it in PIC code, but their linkers get confused if 8005 # the symbol is explicitly referenced. Since portable code cannot 8006 # rely on this symbol name, it's probably fine to never include it in 8007 # preloaded symbol tables. 8008 # Exclude shared library initialization/finalization symbols. 8009 extract_expsyms_cmds= 8010 8011 case $host_os in 8012 cygwin* | mingw* | pw32* | cegcc*) 8013 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8014 # When not using gcc, we currently assume that we are using 8015 # Microsoft Visual C++. 8016 if test "$GCC" != yes; then 8017 with_gnu_ld=no 8018 fi 8019 ;; 8020 interix*) 8021 # we just hope/assume this is gcc and not c89 (= MSVC++) 8022 with_gnu_ld=yes 8023 ;; 8024 openbsd*) 8025 with_gnu_ld=no 8026 ;; 8027 esac 8028 8029 ld_shlibs=yes 8030 if test "$with_gnu_ld" = yes; then 8031 # If archive_cmds runs LD, not CC, wlarc should be empty 8032 wlarc='${wl}' 8033 8034 # Set some defaults for GNU ld with shared library support. These 8035 # are reset later if shared libraries are not supported. Putting them 8036 # here allows them to be overridden if necessary. 8037 runpath_var=LD_RUN_PATH 8038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8039 export_dynamic_flag_spec='${wl}--export-dynamic' 8040 # ancient GNU ld didn't support --whole-archive et. al. 8041 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8042 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8043 else 8044 whole_archive_flag_spec= 8045 fi 8046 supports_anon_versioning=no 8047 case `$LD -v 2>&1` in 8048 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8049 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8050 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8051 *\ 2.11.*) ;; # other 2.11 versions 8052 *) supports_anon_versioning=yes ;; 8053 esac 8054 8055 # See if GNU ld supports shared libraries. 8056 case $host_os in 8057 aix[3-9]*) 8058 # On AIX/PPC, the GNU linker is very broken 8059 if test "$host_cpu" != ia64; then 8060 ld_shlibs=no 8061 cat <<_LT_EOF 1>&2 8062 8063*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8064*** to be unable to reliably create shared libraries on AIX. 8065*** Therefore, libtool is disabling shared libraries support. If you 8066*** really care for shared libraries, you may want to modify your PATH 8067*** so that a non-GNU linker is found, and then restart. 8068 8069_LT_EOF 8070 fi 8071 ;; 8072 8073 amigaos*) 8074 case $host_cpu in 8075 powerpc) 8076 # see comment about AmigaOS4 .so support 8077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8078 archive_expsym_cmds='' 8079 ;; 8080 m68k) 8081 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)' 8082 hardcode_libdir_flag_spec='-L$libdir' 8083 hardcode_minus_L=yes 8084 ;; 8085 esac 8086 ;; 8087 8088 beos*) 8089 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8090 allow_undefined_flag=unsupported 8091 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8092 # support --undefined. This deserves some investigation. FIXME 8093 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8094 else 8095 ld_shlibs=no 8096 fi 8097 ;; 8098 8099 cygwin* | mingw* | pw32* | cegcc*) 8100 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8101 # as there is no search path for DLLs. 8102 hardcode_libdir_flag_spec='-L$libdir' 8103 allow_undefined_flag=unsupported 8104 always_export_symbols=no 8105 enable_shared_with_static_runtimes=yes 8106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8107 8108 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8110 # If the export-symbols file already is a .def file (1st line 8111 # is EXPORTS), use it as is; otherwise, prepend... 8112 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8113 cp $export_symbols $output_objdir/$soname.def; 8114 else 8115 echo EXPORTS > $output_objdir/$soname.def; 8116 cat $export_symbols >> $output_objdir/$soname.def; 8117 fi~ 8118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8119 else 8120 ld_shlibs=no 8121 fi 8122 ;; 8123 8124 interix[3-9]*) 8125 hardcode_direct=no 8126 hardcode_shlibpath_var=no 8127 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8128 export_dynamic_flag_spec='${wl}-E' 8129 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8130 # Instead, shared libraries are loaded at an image base (0x10000000 by 8131 # default) and relocated if they conflict, which is a slow very memory 8132 # consuming and fragmenting process. To avoid this, we pick a random, 8133 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8134 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8135 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8136 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' 8137 ;; 8138 8139 gnu* | linux* | tpf* | k*bsd*-gnu) 8140 tmp_diet=no 8141 if test "$host_os" = linux-dietlibc; then 8142 case $cc_basename in 8143 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8144 esac 8145 fi 8146 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8147 && test "$tmp_diet" = no 8148 then 8149 tmp_addflag= 8150 tmp_sharedflag='-shared' 8151 case $cc_basename,$host_cpu in 8152 pgcc*) # Portland Group C compiler 8153 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' 8154 tmp_addflag=' $pic_flag' 8155 ;; 8156 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8157 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' 8158 tmp_addflag=' $pic_flag -Mnomain' ;; 8159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8160 tmp_addflag=' -i_dynamic' ;; 8161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8162 tmp_addflag=' -i_dynamic -nofor_main' ;; 8163 ifc* | ifort*) # Intel Fortran compiler 8164 tmp_addflag=' -nofor_main' ;; 8165 lf95*) # Lahey Fortran 8.1 8166 whole_archive_flag_spec= 8167 tmp_sharedflag='--shared' ;; 8168 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8169 tmp_sharedflag='-qmkshrobj' 8170 tmp_addflag= ;; 8171 esac 8172 case `$CC -V 2>&1 | sed 5q` in 8173 *Sun\ C*) # Sun C 5.9 8174 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' 8175 compiler_needs_object=yes 8176 tmp_sharedflag='-G' ;; 8177 *Sun\ F*) # Sun Fortran 8.3 8178 tmp_sharedflag='-G' ;; 8179 esac 8180 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8181 8182 if test "x$supports_anon_versioning" = xyes; then 8183 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8185 echo "local: *; };" >> $output_objdir/$libname.ver~ 8186 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8187 fi 8188 8189 case $cc_basename in 8190 xlf*) 8191 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8192 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8193 hardcode_libdir_flag_spec= 8194 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8195 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8196 if test "x$supports_anon_versioning" = xyes; then 8197 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8198 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8199 echo "local: *; };" >> $output_objdir/$libname.ver~ 8200 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8201 fi 8202 ;; 8203 esac 8204 else 8205 ld_shlibs=no 8206 fi 8207 ;; 8208 8209 netbsd*) 8210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8211 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8212 wlarc= 8213 else 8214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8216 fi 8217 ;; 8218 8219 solaris*) 8220 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8221 ld_shlibs=no 8222 cat <<_LT_EOF 1>&2 8223 8224*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8225*** create shared libraries on Solaris systems. Therefore, libtool 8226*** is disabling shared libraries support. We urge you to upgrade GNU 8227*** binutils to release 2.9.1 or newer. Another option is to modify 8228*** your PATH or compiler configuration so that the native linker is 8229*** used, and then restart. 8230 8231_LT_EOF 8232 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8235 else 8236 ld_shlibs=no 8237 fi 8238 ;; 8239 8240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8241 case `$LD -v 2>&1` in 8242 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8243 ld_shlibs=no 8244 cat <<_LT_EOF 1>&2 8245 8246*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8247*** reliably create shared libraries on SCO systems. Therefore, libtool 8248*** is disabling shared libraries support. We urge you to upgrade GNU 8249*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8250*** your PATH or compiler configuration so that the native linker is 8251*** used, and then restart. 8252 8253_LT_EOF 8254 ;; 8255 *) 8256 # For security reasons, it is highly recommended that you always 8257 # use absolute paths for naming shared libraries, and exclude the 8258 # DT_RUNPATH tag from executables and libraries. But doing so 8259 # requires that you compile everything twice, which is a pain. 8260 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 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 esac 8269 ;; 8270 8271 sunos4*) 8272 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8273 wlarc= 8274 hardcode_direct=yes 8275 hardcode_shlibpath_var=no 8276 ;; 8277 8278 *) 8279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8282 else 8283 ld_shlibs=no 8284 fi 8285 ;; 8286 esac 8287 8288 if test "$ld_shlibs" = no; then 8289 runpath_var= 8290 hardcode_libdir_flag_spec= 8291 export_dynamic_flag_spec= 8292 whole_archive_flag_spec= 8293 fi 8294 else 8295 # PORTME fill in a description of your system's linker (not GNU ld) 8296 case $host_os in 8297 aix3*) 8298 allow_undefined_flag=unsupported 8299 always_export_symbols=yes 8300 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' 8301 # Note: this linker hardcodes the directories in LIBPATH if there 8302 # are no directories specified by -L. 8303 hardcode_minus_L=yes 8304 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8305 # Neither direct hardcoding nor static linking is supported with a 8306 # broken collect2. 8307 hardcode_direct=unsupported 8308 fi 8309 ;; 8310 8311 aix[4-9]*) 8312 if test "$host_cpu" = ia64; then 8313 # On IA64, the linker does run time linking by default, so we don't 8314 # have to do anything special. 8315 aix_use_runtimelinking=no 8316 exp_sym_flag='-Bexport' 8317 no_entry_flag="" 8318 else 8319 # If we're using GNU nm, then we don't want the "-C" option. 8320 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8321 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8322 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' 8323 else 8324 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' 8325 fi 8326 aix_use_runtimelinking=no 8327 8328 # Test if we are trying to use run time linking or normal 8329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8330 # need to do runtime linking. 8331 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8332 for ld_flag in $LDFLAGS; do 8333 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8334 aix_use_runtimelinking=yes 8335 break 8336 fi 8337 done 8338 ;; 8339 esac 8340 8341 exp_sym_flag='-bexport' 8342 no_entry_flag='-bnoentry' 8343 fi 8344 8345 # When large executables or shared objects are built, AIX ld can 8346 # have problems creating the table of contents. If linking a library 8347 # or program results in "error TOC overflow" add -mminimal-toc to 8348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8350 8351 archive_cmds='' 8352 hardcode_direct=yes 8353 hardcode_direct_absolute=yes 8354 hardcode_libdir_separator=':' 8355 link_all_deplibs=yes 8356 file_list_spec='${wl}-f,' 8357 8358 if test "$GCC" = yes; then 8359 case $host_os in aix4.[012]|aix4.[012].*) 8360 # We only want to do this on AIX 4.2 and lower, the check 8361 # below for broken collect2 doesn't work under 4.3+ 8362 collect2name=`${CC} -print-prog-name=collect2` 8363 if test -f "$collect2name" && 8364 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8365 then 8366 # We have reworked collect2 8367 : 8368 else 8369 # We have old collect2 8370 hardcode_direct=unsupported 8371 # It fails to find uninstalled libraries when the uninstalled 8372 # path is not listed in the libpath. Setting hardcode_minus_L 8373 # to unsupported forces relinking 8374 hardcode_minus_L=yes 8375 hardcode_libdir_flag_spec='-L$libdir' 8376 hardcode_libdir_separator= 8377 fi 8378 ;; 8379 esac 8380 shared_flag='-shared' 8381 if test "$aix_use_runtimelinking" = yes; then 8382 shared_flag="$shared_flag "'${wl}-G' 8383 fi 8384 else 8385 # not using gcc 8386 if test "$host_cpu" = ia64; then 8387 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8388 # chokes on -Wl,-G. The following line is correct: 8389 shared_flag='-G' 8390 else 8391 if test "$aix_use_runtimelinking" = yes; then 8392 shared_flag='${wl}-G' 8393 else 8394 shared_flag='${wl}-bM:SRE' 8395 fi 8396 fi 8397 fi 8398 8399 export_dynamic_flag_spec='${wl}-bexpall' 8400 # It seems that -bexpall does not export symbols beginning with 8401 # underscore (_), so it is better to generate a list of symbols to export. 8402 always_export_symbols=yes 8403 if test "$aix_use_runtimelinking" = yes; then 8404 # Warning - without using the other runtime loading flags (-brtl), 8405 # -berok will link without error, but may produce a broken library. 8406 allow_undefined_flag='-berok' 8407 # Determine the default libpath from the value encoded in an 8408 # empty executable. 8409 cat >conftest.$ac_ext <<_ACEOF 8410/* confdefs.h. */ 8411_ACEOF 8412cat confdefs.h >>conftest.$ac_ext 8413cat >>conftest.$ac_ext <<_ACEOF 8414/* end confdefs.h. */ 8415 8416int 8417main () 8418{ 8419 8420 ; 8421 return 0; 8422} 8423_ACEOF 8424rm -f conftest.$ac_objext conftest$ac_exeext 8425if { (ac_try="$ac_link" 8426case "(($ac_try" in 8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8428 *) ac_try_echo=$ac_try;; 8429esac 8430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8431$as_echo "$ac_try_echo") >&5 8432 (eval "$ac_link") 2>conftest.er1 8433 ac_status=$? 8434 grep -v '^ *+' conftest.er1 >conftest.err 8435 rm -f conftest.er1 8436 cat conftest.err >&5 8437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8438 (exit $ac_status); } && { 8439 test -z "$ac_c_werror_flag" || 8440 test ! -s conftest.err 8441 } && test -s conftest$ac_exeext && { 8442 test "$cross_compiling" = yes || 8443 $as_test_x conftest$ac_exeext 8444 }; then 8445 8446lt_aix_libpath_sed=' 8447 /Import File Strings/,/^$/ { 8448 /^0/ { 8449 s/^0 *\(.*\)$/\1/ 8450 p 8451 } 8452 }' 8453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8454# Check for a 64-bit object if we didn't find anything. 8455if test -z "$aix_libpath"; then 8456 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8457fi 8458else 8459 $as_echo "$as_me: failed program was:" >&5 8460sed 's/^/| /' conftest.$ac_ext >&5 8461 8462 8463fi 8464 8465rm -rf conftest.dSYM 8466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8467 conftest$ac_exeext conftest.$ac_ext 8468if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8469 8470 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8471 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" 8472 else 8473 if test "$host_cpu" = ia64; then 8474 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8475 allow_undefined_flag="-z nodefs" 8476 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" 8477 else 8478 # Determine the default libpath from the value encoded in an 8479 # empty executable. 8480 cat >conftest.$ac_ext <<_ACEOF 8481/* confdefs.h. */ 8482_ACEOF 8483cat confdefs.h >>conftest.$ac_ext 8484cat >>conftest.$ac_ext <<_ACEOF 8485/* end confdefs.h. */ 8486 8487int 8488main () 8489{ 8490 8491 ; 8492 return 0; 8493} 8494_ACEOF 8495rm -f conftest.$ac_objext conftest$ac_exeext 8496if { (ac_try="$ac_link" 8497case "(($ac_try" in 8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8499 *) ac_try_echo=$ac_try;; 8500esac 8501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8502$as_echo "$ac_try_echo") >&5 8503 (eval "$ac_link") 2>conftest.er1 8504 ac_status=$? 8505 grep -v '^ *+' conftest.er1 >conftest.err 8506 rm -f conftest.er1 8507 cat conftest.err >&5 8508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8509 (exit $ac_status); } && { 8510 test -z "$ac_c_werror_flag" || 8511 test ! -s conftest.err 8512 } && test -s conftest$ac_exeext && { 8513 test "$cross_compiling" = yes || 8514 $as_test_x conftest$ac_exeext 8515 }; then 8516 8517lt_aix_libpath_sed=' 8518 /Import File Strings/,/^$/ { 8519 /^0/ { 8520 s/^0 *\(.*\)$/\1/ 8521 p 8522 } 8523 }' 8524aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8525# Check for a 64-bit object if we didn't find anything. 8526if test -z "$aix_libpath"; then 8527 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8528fi 8529else 8530 $as_echo "$as_me: failed program was:" >&5 8531sed 's/^/| /' conftest.$ac_ext >&5 8532 8533 8534fi 8535 8536rm -rf conftest.dSYM 8537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8538 conftest$ac_exeext conftest.$ac_ext 8539if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8540 8541 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8542 # Warning - without using the other run time loading flags, 8543 # -berok will link without error, but may produce a broken library. 8544 no_undefined_flag=' ${wl}-bernotok' 8545 allow_undefined_flag=' ${wl}-berok' 8546 # Exported symbols can be pulled into shared objects from archives 8547 whole_archive_flag_spec='$convenience' 8548 archive_cmds_need_lc=yes 8549 # This is similar to how AIX traditionally builds its shared libraries. 8550 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' 8551 fi 8552 fi 8553 ;; 8554 8555 amigaos*) 8556 case $host_cpu in 8557 powerpc) 8558 # see comment about AmigaOS4 .so support 8559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8560 archive_expsym_cmds='' 8561 ;; 8562 m68k) 8563 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)' 8564 hardcode_libdir_flag_spec='-L$libdir' 8565 hardcode_minus_L=yes 8566 ;; 8567 esac 8568 ;; 8569 8570 bsdi[45]*) 8571 export_dynamic_flag_spec=-rdynamic 8572 ;; 8573 8574 cygwin* | mingw* | pw32* | cegcc*) 8575 # When not using gcc, we currently assume that we are using 8576 # Microsoft Visual C++. 8577 # hardcode_libdir_flag_spec is actually meaningless, as there is 8578 # no search path for DLLs. 8579 hardcode_libdir_flag_spec=' ' 8580 allow_undefined_flag=unsupported 8581 # Tell ltmain to make .lib files, not .a files. 8582 libext=lib 8583 # Tell ltmain to make .dll files, not .so files. 8584 shrext_cmds=".dll" 8585 # FIXME: Setting linknames here is a bad hack. 8586 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8587 # The linker will automatically build a .lib file if we build a DLL. 8588 old_archive_from_new_cmds='true' 8589 # FIXME: Should let the user specify the lib program. 8590 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8591 fix_srcfile_path='`cygpath -w "$srcfile"`' 8592 enable_shared_with_static_runtimes=yes 8593 ;; 8594 8595 darwin* | rhapsody*) 8596 8597 8598 archive_cmds_need_lc=no 8599 hardcode_direct=no 8600 hardcode_automatic=yes 8601 hardcode_shlibpath_var=unsupported 8602 whole_archive_flag_spec='' 8603 link_all_deplibs=yes 8604 allow_undefined_flag="$_lt_dar_allow_undefined" 8605 case $cc_basename in 8606 ifort*) _lt_dar_can_shared=yes ;; 8607 *) _lt_dar_can_shared=$GCC ;; 8608 esac 8609 if test "$_lt_dar_can_shared" = "yes"; then 8610 output_verbose_link_cmd=echo 8611 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8612 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8613 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}" 8614 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}" 8615 8616 else 8617 ld_shlibs=no 8618 fi 8619 8620 ;; 8621 8622 dgux*) 8623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8624 hardcode_libdir_flag_spec='-L$libdir' 8625 hardcode_shlibpath_var=no 8626 ;; 8627 8628 freebsd1*) 8629 ld_shlibs=no 8630 ;; 8631 8632 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8633 # support. Future versions do this automatically, but an explicit c++rt0.o 8634 # does not break anything, and helps significantly (at the cost of a little 8635 # extra space). 8636 freebsd2.2*) 8637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8638 hardcode_libdir_flag_spec='-R$libdir' 8639 hardcode_direct=yes 8640 hardcode_shlibpath_var=no 8641 ;; 8642 8643 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8644 freebsd2*) 8645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8646 hardcode_direct=yes 8647 hardcode_minus_L=yes 8648 hardcode_shlibpath_var=no 8649 ;; 8650 8651 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8652 freebsd* | dragonfly*) 8653 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8654 hardcode_libdir_flag_spec='-R$libdir' 8655 hardcode_direct=yes 8656 hardcode_shlibpath_var=no 8657 ;; 8658 8659 hpux9*) 8660 if test "$GCC" = yes; then 8661 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' 8662 else 8663 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' 8664 fi 8665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8666 hardcode_libdir_separator=: 8667 hardcode_direct=yes 8668 8669 # hardcode_minus_L: Not really in the search PATH, 8670 # but as the default location of the library. 8671 hardcode_minus_L=yes 8672 export_dynamic_flag_spec='${wl}-E' 8673 ;; 8674 8675 hpux10*) 8676 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8677 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8678 else 8679 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8680 fi 8681 if test "$with_gnu_ld" = no; then 8682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8683 hardcode_libdir_flag_spec_ld='+b $libdir' 8684 hardcode_libdir_separator=: 8685 hardcode_direct=yes 8686 hardcode_direct_absolute=yes 8687 export_dynamic_flag_spec='${wl}-E' 8688 # hardcode_minus_L: Not really in the search PATH, 8689 # but as the default location of the library. 8690 hardcode_minus_L=yes 8691 fi 8692 ;; 8693 8694 hpux11*) 8695 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8696 case $host_cpu in 8697 hppa*64*) 8698 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8699 ;; 8700 ia64*) 8701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8702 ;; 8703 *) 8704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8705 ;; 8706 esac 8707 else 8708 case $host_cpu in 8709 hppa*64*) 8710 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8711 ;; 8712 ia64*) 8713 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8714 ;; 8715 *) 8716 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8717 ;; 8718 esac 8719 fi 8720 if test "$with_gnu_ld" = no; then 8721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8722 hardcode_libdir_separator=: 8723 8724 case $host_cpu in 8725 hppa*64*|ia64*) 8726 hardcode_direct=no 8727 hardcode_shlibpath_var=no 8728 ;; 8729 *) 8730 hardcode_direct=yes 8731 hardcode_direct_absolute=yes 8732 export_dynamic_flag_spec='${wl}-E' 8733 8734 # hardcode_minus_L: Not really in the search PATH, 8735 # but as the default location of the library. 8736 hardcode_minus_L=yes 8737 ;; 8738 esac 8739 fi 8740 ;; 8741 8742 irix5* | irix6* | nonstopux*) 8743 if test "$GCC" = yes; then 8744 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' 8745 # Try to use the -exported_symbol ld option, if it does not 8746 # work, assume that -exports_file does not work either and 8747 # implicitly export all symbols. 8748 save_LDFLAGS="$LDFLAGS" 8749 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8750 cat >conftest.$ac_ext <<_ACEOF 8751int foo(void) {} 8752_ACEOF 8753rm -f conftest.$ac_objext conftest$ac_exeext 8754if { (ac_try="$ac_link" 8755case "(($ac_try" in 8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8757 *) ac_try_echo=$ac_try;; 8758esac 8759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8760$as_echo "$ac_try_echo") >&5 8761 (eval "$ac_link") 2>conftest.er1 8762 ac_status=$? 8763 grep -v '^ *+' conftest.er1 >conftest.err 8764 rm -f conftest.er1 8765 cat conftest.err >&5 8766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8767 (exit $ac_status); } && { 8768 test -z "$ac_c_werror_flag" || 8769 test ! -s conftest.err 8770 } && test -s conftest$ac_exeext && { 8771 test "$cross_compiling" = yes || 8772 $as_test_x conftest$ac_exeext 8773 }; then 8774 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' 8775 8776else 8777 $as_echo "$as_me: failed program was:" >&5 8778sed 's/^/| /' conftest.$ac_ext >&5 8779 8780 8781fi 8782 8783rm -rf conftest.dSYM 8784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8785 conftest$ac_exeext conftest.$ac_ext 8786 LDFLAGS="$save_LDFLAGS" 8787 else 8788 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' 8789 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' 8790 fi 8791 archive_cmds_need_lc='no' 8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8793 hardcode_libdir_separator=: 8794 inherit_rpath=yes 8795 link_all_deplibs=yes 8796 ;; 8797 8798 netbsd*) 8799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8801 else 8802 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8803 fi 8804 hardcode_libdir_flag_spec='-R$libdir' 8805 hardcode_direct=yes 8806 hardcode_shlibpath_var=no 8807 ;; 8808 8809 newsos6) 8810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8811 hardcode_direct=yes 8812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8813 hardcode_libdir_separator=: 8814 hardcode_shlibpath_var=no 8815 ;; 8816 8817 *nto* | *qnx*) 8818 ;; 8819 8820 openbsd*) 8821 if test -f /usr/libexec/ld.so; then 8822 hardcode_direct=yes 8823 hardcode_shlibpath_var=no 8824 hardcode_direct_absolute=yes 8825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8829 export_dynamic_flag_spec='${wl}-E' 8830 else 8831 case $host_os in 8832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8834 hardcode_libdir_flag_spec='-R$libdir' 8835 ;; 8836 *) 8837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8839 ;; 8840 esac 8841 fi 8842 else 8843 ld_shlibs=no 8844 fi 8845 ;; 8846 8847 os2*) 8848 hardcode_libdir_flag_spec='-L$libdir' 8849 hardcode_minus_L=yes 8850 allow_undefined_flag=unsupported 8851 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' 8852 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8853 ;; 8854 8855 osf3*) 8856 if test "$GCC" = yes; then 8857 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8858 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' 8859 else 8860 allow_undefined_flag=' -expect_unresolved \*' 8861 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' 8862 fi 8863 archive_cmds_need_lc='no' 8864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8865 hardcode_libdir_separator=: 8866 ;; 8867 8868 osf4* | osf5*) # as osf3* with the addition of -msym flag 8869 if test "$GCC" = yes; then 8870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8871 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' 8872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8873 else 8874 allow_undefined_flag=' -expect_unresolved \*' 8875 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' 8876 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~ 8877 $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' 8878 8879 # Both c and cxx compiler support -rpath directly 8880 hardcode_libdir_flag_spec='-rpath $libdir' 8881 fi 8882 archive_cmds_need_lc='no' 8883 hardcode_libdir_separator=: 8884 ;; 8885 8886 solaris*) 8887 no_undefined_flag=' -z defs' 8888 if test "$GCC" = yes; then 8889 wlarc='${wl}' 8890 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8892 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8893 else 8894 case `$CC -V 2>&1` in 8895 *"Compilers 5.0"*) 8896 wlarc='' 8897 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8898 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8899 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8900 ;; 8901 *) 8902 wlarc='${wl}' 8903 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8905 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8906 ;; 8907 esac 8908 fi 8909 hardcode_libdir_flag_spec='-R$libdir' 8910 hardcode_shlibpath_var=no 8911 case $host_os in 8912 solaris2.[0-5] | solaris2.[0-5].*) ;; 8913 *) 8914 # The compiler driver will combine and reorder linker options, 8915 # but understands `-z linker_flag'. GCC discards it without `$wl', 8916 # but is careful enough not to reorder. 8917 # Supported since Solaris 2.6 (maybe 2.5.1?) 8918 if test "$GCC" = yes; then 8919 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8920 else 8921 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8922 fi 8923 ;; 8924 esac 8925 link_all_deplibs=yes 8926 ;; 8927 8928 sunos4*) 8929 if test "x$host_vendor" = xsequent; then 8930 # Use $CC to link under sequent, because it throws in some extra .o 8931 # files that make .init and .fini sections work. 8932 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8933 else 8934 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8935 fi 8936 hardcode_libdir_flag_spec='-L$libdir' 8937 hardcode_direct=yes 8938 hardcode_minus_L=yes 8939 hardcode_shlibpath_var=no 8940 ;; 8941 8942 sysv4) 8943 case $host_vendor in 8944 sni) 8945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8946 hardcode_direct=yes # is this really true??? 8947 ;; 8948 siemens) 8949 ## LD is ld it makes a PLAMLIB 8950 ## CC just makes a GrossModule. 8951 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8952 reload_cmds='$CC -r -o $output$reload_objs' 8953 hardcode_direct=no 8954 ;; 8955 motorola) 8956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8957 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8958 ;; 8959 esac 8960 runpath_var='LD_RUN_PATH' 8961 hardcode_shlibpath_var=no 8962 ;; 8963 8964 sysv4.3*) 8965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8966 hardcode_shlibpath_var=no 8967 export_dynamic_flag_spec='-Bexport' 8968 ;; 8969 8970 sysv4*MP*) 8971 if test -d /usr/nec; then 8972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8973 hardcode_shlibpath_var=no 8974 runpath_var=LD_RUN_PATH 8975 hardcode_runpath_var=yes 8976 ld_shlibs=yes 8977 fi 8978 ;; 8979 8980 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8981 no_undefined_flag='${wl}-z,text' 8982 archive_cmds_need_lc=no 8983 hardcode_shlibpath_var=no 8984 runpath_var='LD_RUN_PATH' 8985 8986 if test "$GCC" = yes; then 8987 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8988 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8989 else 8990 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8991 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8992 fi 8993 ;; 8994 8995 sysv5* | sco3.2v5* | sco5v6*) 8996 # Note: We can NOT use -z defs as we might desire, because we do not 8997 # link with -lc, and that would cause any symbols used from libc to 8998 # always be unresolved, which means just about no library would 8999 # ever link correctly. If we're not using GNU ld we use -z text 9000 # though, which does catch some bad symbols but isn't as heavy-handed 9001 # as -z defs. 9002 no_undefined_flag='${wl}-z,text' 9003 allow_undefined_flag='${wl}-z,nodefs' 9004 archive_cmds_need_lc=no 9005 hardcode_shlibpath_var=no 9006 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9007 hardcode_libdir_separator=':' 9008 link_all_deplibs=yes 9009 export_dynamic_flag_spec='${wl}-Bexport' 9010 runpath_var='LD_RUN_PATH' 9011 9012 if test "$GCC" = yes; then 9013 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9014 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9015 else 9016 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9017 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9018 fi 9019 ;; 9020 9021 uts4*) 9022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9023 hardcode_libdir_flag_spec='-L$libdir' 9024 hardcode_shlibpath_var=no 9025 ;; 9026 9027 *) 9028 ld_shlibs=no 9029 ;; 9030 esac 9031 9032 if test x$host_vendor = xsni; then 9033 case $host in 9034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9035 export_dynamic_flag_spec='${wl}-Blargedynsym' 9036 ;; 9037 esac 9038 fi 9039 fi 9040 9041{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9042$as_echo "$ld_shlibs" >&6; } 9043test "$ld_shlibs" = no && can_build_shared=no 9044 9045with_gnu_ld=$with_gnu_ld 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061# 9062# Do we need to explicitly link libc? 9063# 9064case "x$archive_cmds_need_lc" in 9065x|xyes) 9066 # Assume -lc should be added 9067 archive_cmds_need_lc=yes 9068 9069 if test "$enable_shared" = yes && test "$GCC" = yes; then 9070 case $archive_cmds in 9071 *'~'*) 9072 # FIXME: we may have to deal with multi-command sequences. 9073 ;; 9074 '$CC '*) 9075 # Test whether the compiler implicitly links with -lc since on some 9076 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9077 # to ld, don't add -lc before -lgcc. 9078 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9079$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9080 $RM conftest* 9081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9082 9083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9084 (eval $ac_compile) 2>&5 9085 ac_status=$? 9086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9087 (exit $ac_status); } 2>conftest.err; then 9088 soname=conftest 9089 lib=conftest 9090 libobjs=conftest.$ac_objext 9091 deplibs= 9092 wl=$lt_prog_compiler_wl 9093 pic_flag=$lt_prog_compiler_pic 9094 compiler_flags=-v 9095 linker_flags=-v 9096 verstring= 9097 output_objdir=. 9098 libname=conftest 9099 lt_save_allow_undefined_flag=$allow_undefined_flag 9100 allow_undefined_flag= 9101 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9102 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9103 ac_status=$? 9104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9105 (exit $ac_status); } 9106 then 9107 archive_cmds_need_lc=no 9108 else 9109 archive_cmds_need_lc=yes 9110 fi 9111 allow_undefined_flag=$lt_save_allow_undefined_flag 9112 else 9113 cat conftest.err 1>&5 9114 fi 9115 $RM conftest* 9116 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9117$as_echo "$archive_cmds_need_lc" >&6; } 9118 ;; 9119 esac 9120 fi 9121 ;; 9122esac 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9281$as_echo_n "checking dynamic linker characteristics... " >&6; } 9282 9283if test "$GCC" = yes; then 9284 case $host_os in 9285 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9286 *) lt_awk_arg="/^libraries:/" ;; 9287 esac 9288 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9289 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9290 # if the path contains ";" then we assume it to be the separator 9291 # otherwise default to the standard path separator (i.e. ":") - it is 9292 # assumed that no part of a normal pathname contains ";" but that should 9293 # okay in the real world where ";" in dirpaths is itself problematic. 9294 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9295 else 9296 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9297 fi 9298 # Ok, now we have the path, separated by spaces, we can step through it 9299 # and add multilib dir if necessary. 9300 lt_tmp_lt_search_path_spec= 9301 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9302 for lt_sys_path in $lt_search_path_spec; do 9303 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9304 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9305 else 9306 test -d "$lt_sys_path" && \ 9307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9308 fi 9309 done 9310 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9311BEGIN {RS=" "; FS="/|\n";} { 9312 lt_foo=""; 9313 lt_count=0; 9314 for (lt_i = NF; lt_i > 0; lt_i--) { 9315 if ($lt_i != "" && $lt_i != ".") { 9316 if ($lt_i == "..") { 9317 lt_count++; 9318 } else { 9319 if (lt_count == 0) { 9320 lt_foo="/" $lt_i lt_foo; 9321 } else { 9322 lt_count--; 9323 } 9324 } 9325 } 9326 } 9327 if (lt_foo != "") { lt_freq[lt_foo]++; } 9328 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9329}'` 9330 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9331else 9332 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9333fi 9334library_names_spec= 9335libname_spec='lib$name' 9336soname_spec= 9337shrext_cmds=".so" 9338postinstall_cmds= 9339postuninstall_cmds= 9340finish_cmds= 9341finish_eval= 9342shlibpath_var= 9343shlibpath_overrides_runpath=unknown 9344version_type=none 9345dynamic_linker="$host_os ld.so" 9346sys_lib_dlsearch_path_spec="/lib /usr/lib" 9347need_lib_prefix=unknown 9348hardcode_into_libs=no 9349 9350# when you set need_version to no, make sure it does not cause -set_version 9351# flags to be left without arguments 9352need_version=unknown 9353 9354case $host_os in 9355aix3*) 9356 version_type=linux 9357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9358 shlibpath_var=LIBPATH 9359 9360 # AIX 3 has no versioning support, so we append a major version to the name. 9361 soname_spec='${libname}${release}${shared_ext}$major' 9362 ;; 9363 9364aix[4-9]*) 9365 version_type=linux 9366 need_lib_prefix=no 9367 need_version=no 9368 hardcode_into_libs=yes 9369 if test "$host_cpu" = ia64; then 9370 # AIX 5 supports IA64 9371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9372 shlibpath_var=LD_LIBRARY_PATH 9373 else 9374 # With GCC up to 2.95.x, collect2 would create an import file 9375 # for dependence libraries. The import file would start with 9376 # the line `#! .'. This would cause the generated library to 9377 # depend on `.', always an invalid library. This was fixed in 9378 # development snapshots of GCC prior to 3.0. 9379 case $host_os in 9380 aix4 | aix4.[01] | aix4.[01].*) 9381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9382 echo ' yes ' 9383 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9384 : 9385 else 9386 can_build_shared=no 9387 fi 9388 ;; 9389 esac 9390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9391 # soname into executable. Probably we can add versioning support to 9392 # collect2, so additional links can be useful in future. 9393 if test "$aix_use_runtimelinking" = yes; then 9394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9395 # instead of lib<name>.a to let people know that these are not 9396 # typical AIX shared libraries. 9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9398 else 9399 # We preserve .a as extension for shared libraries through AIX4.2 9400 # and later when we are not doing run time linking. 9401 library_names_spec='${libname}${release}.a $libname.a' 9402 soname_spec='${libname}${release}${shared_ext}$major' 9403 fi 9404 shlibpath_var=LIBPATH 9405 fi 9406 ;; 9407 9408amigaos*) 9409 case $host_cpu in 9410 powerpc) 9411 # Since July 2007 AmigaOS4 officially supports .so libraries. 9412 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9414 ;; 9415 m68k) 9416 library_names_spec='$libname.ixlibrary $libname.a' 9417 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9418 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' 9419 ;; 9420 esac 9421 ;; 9422 9423beos*) 9424 library_names_spec='${libname}${shared_ext}' 9425 dynamic_linker="$host_os ld.so" 9426 shlibpath_var=LIBRARY_PATH 9427 ;; 9428 9429bsdi[45]*) 9430 version_type=linux 9431 need_version=no 9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9433 soname_spec='${libname}${release}${shared_ext}$major' 9434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9435 shlibpath_var=LD_LIBRARY_PATH 9436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9438 # the default ld.so.conf also contains /usr/contrib/lib and 9439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9440 # libtool to hard-code these into programs 9441 ;; 9442 9443cygwin* | mingw* | pw32* | cegcc*) 9444 version_type=windows 9445 shrext_cmds=".dll" 9446 need_version=no 9447 need_lib_prefix=no 9448 9449 case $GCC,$host_os in 9450 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9451 library_names_spec='$libname.dll.a' 9452 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9453 postinstall_cmds='base_file=`basename \${file}`~ 9454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9455 dldir=$destdir/`dirname \$dlpath`~ 9456 test -d \$dldir || mkdir -p \$dldir~ 9457 $install_prog $dir/$dlname \$dldir/$dlname~ 9458 chmod a+x \$dldir/$dlname~ 9459 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9460 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9461 fi' 9462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9463 dlpath=$dir/\$dldll~ 9464 $RM \$dlpath' 9465 shlibpath_overrides_runpath=yes 9466 9467 case $host_os in 9468 cygwin*) 9469 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9470 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9471 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9472 ;; 9473 mingw* | cegcc*) 9474 # MinGW DLLs use traditional 'lib' prefix 9475 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9476 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9477 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9478 # It is most probably a Windows format PATH printed by 9479 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9480 # path with ; separators, and with drive letters. We can handle the 9481 # drive letters (cygwin fileutils understands them), so leave them, 9482 # especially as we might pass files found there to a mingw objdump, 9483 # which wouldn't understand a cygwinified path. Ahh. 9484 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9485 else 9486 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9487 fi 9488 ;; 9489 pw32*) 9490 # pw32 DLLs use 'pw' prefix rather than 'lib' 9491 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9492 ;; 9493 esac 9494 ;; 9495 9496 *) 9497 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9498 ;; 9499 esac 9500 dynamic_linker='Win32 ld.exe' 9501 # FIXME: first we should search . and the directory the executable is in 9502 shlibpath_var=PATH 9503 ;; 9504 9505darwin* | rhapsody*) 9506 dynamic_linker="$host_os dyld" 9507 version_type=darwin 9508 need_lib_prefix=no 9509 need_version=no 9510 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9511 soname_spec='${libname}${release}${major}$shared_ext' 9512 shlibpath_overrides_runpath=yes 9513 shlibpath_var=DYLD_LIBRARY_PATH 9514 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9515 9516 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9518 ;; 9519 9520dgux*) 9521 version_type=linux 9522 need_lib_prefix=no 9523 need_version=no 9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9525 soname_spec='${libname}${release}${shared_ext}$major' 9526 shlibpath_var=LD_LIBRARY_PATH 9527 ;; 9528 9529freebsd1*) 9530 dynamic_linker=no 9531 ;; 9532 9533freebsd* | dragonfly*) 9534 # DragonFly does not have aout. When/if they implement a new 9535 # versioning mechanism, adjust this. 9536 if test -x /usr/bin/objformat; then 9537 objformat=`/usr/bin/objformat` 9538 else 9539 case $host_os in 9540 freebsd[123]*) objformat=aout ;; 9541 *) objformat=elf ;; 9542 esac 9543 fi 9544 # Handle Gentoo/FreeBSD as it was Linux 9545 case $host_vendor in 9546 gentoo) 9547 version_type=linux ;; 9548 *) 9549 version_type=freebsd-$objformat ;; 9550 esac 9551 9552 case $version_type in 9553 freebsd-elf*) 9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9555 need_version=no 9556 need_lib_prefix=no 9557 ;; 9558 freebsd-*) 9559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9560 need_version=yes 9561 ;; 9562 linux) 9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9564 soname_spec='${libname}${release}${shared_ext}$major' 9565 need_lib_prefix=no 9566 need_version=no 9567 ;; 9568 esac 9569 shlibpath_var=LD_LIBRARY_PATH 9570 case $host_os in 9571 freebsd2*) 9572 shlibpath_overrides_runpath=yes 9573 ;; 9574 freebsd3.[01]* | freebsdelf3.[01]*) 9575 shlibpath_overrides_runpath=yes 9576 hardcode_into_libs=yes 9577 ;; 9578 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9579 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9580 shlibpath_overrides_runpath=no 9581 hardcode_into_libs=yes 9582 ;; 9583 *) # from 4.6 on, and DragonFly 9584 shlibpath_overrides_runpath=yes 9585 hardcode_into_libs=yes 9586 ;; 9587 esac 9588 ;; 9589 9590gnu*) 9591 version_type=linux 9592 need_lib_prefix=no 9593 need_version=no 9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9595 soname_spec='${libname}${release}${shared_ext}$major' 9596 shlibpath_var=LD_LIBRARY_PATH 9597 hardcode_into_libs=yes 9598 ;; 9599 9600hpux9* | hpux10* | hpux11*) 9601 # Give a soname corresponding to the major version so that dld.sl refuses to 9602 # link against other versions. 9603 version_type=sunos 9604 need_lib_prefix=no 9605 need_version=no 9606 case $host_cpu in 9607 ia64*) 9608 shrext_cmds='.so' 9609 hardcode_into_libs=yes 9610 dynamic_linker="$host_os dld.so" 9611 shlibpath_var=LD_LIBRARY_PATH 9612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9614 soname_spec='${libname}${release}${shared_ext}$major' 9615 if test "X$HPUX_IA64_MODE" = X32; then 9616 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9617 else 9618 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9619 fi 9620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9621 ;; 9622 hppa*64*) 9623 shrext_cmds='.sl' 9624 hardcode_into_libs=yes 9625 dynamic_linker="$host_os dld.sl" 9626 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9629 soname_spec='${libname}${release}${shared_ext}$major' 9630 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9632 ;; 9633 *) 9634 shrext_cmds='.sl' 9635 dynamic_linker="$host_os dld.sl" 9636 shlibpath_var=SHLIB_PATH 9637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9639 soname_spec='${libname}${release}${shared_ext}$major' 9640 ;; 9641 esac 9642 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9643 postinstall_cmds='chmod 555 $lib' 9644 ;; 9645 9646interix[3-9]*) 9647 version_type=linux 9648 need_lib_prefix=no 9649 need_version=no 9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9651 soname_spec='${libname}${release}${shared_ext}$major' 9652 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9653 shlibpath_var=LD_LIBRARY_PATH 9654 shlibpath_overrides_runpath=no 9655 hardcode_into_libs=yes 9656 ;; 9657 9658irix5* | irix6* | nonstopux*) 9659 case $host_os in 9660 nonstopux*) version_type=nonstopux ;; 9661 *) 9662 if test "$lt_cv_prog_gnu_ld" = yes; then 9663 version_type=linux 9664 else 9665 version_type=irix 9666 fi ;; 9667 esac 9668 need_lib_prefix=no 9669 need_version=no 9670 soname_spec='${libname}${release}${shared_ext}$major' 9671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9672 case $host_os in 9673 irix5* | nonstopux*) 9674 libsuff= shlibsuff= 9675 ;; 9676 *) 9677 case $LD in # libtool.m4 will add one of these switches to LD 9678 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9679 libsuff= shlibsuff= libmagic=32-bit;; 9680 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9681 libsuff=32 shlibsuff=N32 libmagic=N32;; 9682 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9683 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9684 *) libsuff= shlibsuff= libmagic=never-match;; 9685 esac 9686 ;; 9687 esac 9688 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9689 shlibpath_overrides_runpath=no 9690 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9691 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9692 hardcode_into_libs=yes 9693 ;; 9694 9695# No shared lib support for Linux oldld, aout, or coff. 9696linux*oldld* | linux*aout* | linux*coff*) 9697 dynamic_linker=no 9698 ;; 9699 9700# This must be Linux ELF. 9701linux* | k*bsd*-gnu) 9702 version_type=linux 9703 need_lib_prefix=no 9704 need_version=no 9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9706 soname_spec='${libname}${release}${shared_ext}$major' 9707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9708 shlibpath_var=LD_LIBRARY_PATH 9709 shlibpath_overrides_runpath=no 9710 # Some binutils ld are patched to set DT_RUNPATH 9711 save_LDFLAGS=$LDFLAGS 9712 save_libdir=$libdir 9713 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9714 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9715 cat >conftest.$ac_ext <<_ACEOF 9716/* confdefs.h. */ 9717_ACEOF 9718cat confdefs.h >>conftest.$ac_ext 9719cat >>conftest.$ac_ext <<_ACEOF 9720/* end confdefs.h. */ 9721 9722int 9723main () 9724{ 9725 9726 ; 9727 return 0; 9728} 9729_ACEOF 9730rm -f conftest.$ac_objext conftest$ac_exeext 9731if { (ac_try="$ac_link" 9732case "(($ac_try" in 9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9734 *) ac_try_echo=$ac_try;; 9735esac 9736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9737$as_echo "$ac_try_echo") >&5 9738 (eval "$ac_link") 2>conftest.er1 9739 ac_status=$? 9740 grep -v '^ *+' conftest.er1 >conftest.err 9741 rm -f conftest.er1 9742 cat conftest.err >&5 9743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9744 (exit $ac_status); } && { 9745 test -z "$ac_c_werror_flag" || 9746 test ! -s conftest.err 9747 } && test -s conftest$ac_exeext && { 9748 test "$cross_compiling" = yes || 9749 $as_test_x conftest$ac_exeext 9750 }; then 9751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9752 shlibpath_overrides_runpath=yes 9753fi 9754 9755else 9756 $as_echo "$as_me: failed program was:" >&5 9757sed 's/^/| /' conftest.$ac_ext >&5 9758 9759 9760fi 9761 9762rm -rf conftest.dSYM 9763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9764 conftest$ac_exeext conftest.$ac_ext 9765 LDFLAGS=$save_LDFLAGS 9766 libdir=$save_libdir 9767 9768 # This implies no fast_install, which is unacceptable. 9769 # Some rework will be needed to allow for fast_install 9770 # before this can be enabled. 9771 hardcode_into_libs=yes 9772 9773 # Append ld.so.conf contents to the search path 9774 if test -f /etc/ld.so.conf; then 9775 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' ' '` 9776 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9777 fi 9778 9779 # We used to test for /lib/ld.so.1 and disable shared libraries on 9780 # powerpc, because MkLinux only supported shared libraries with the 9781 # GNU dynamic linker. Since this was broken with cross compilers, 9782 # most powerpc-linux boxes support dynamic linking these days and 9783 # people can always --disable-shared, the test was removed, and we 9784 # assume the GNU/Linux dynamic linker is in use. 9785 dynamic_linker='GNU/Linux ld.so' 9786 ;; 9787 9788netbsd*) 9789 version_type=sunos 9790 need_lib_prefix=no 9791 need_version=no 9792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9795 dynamic_linker='NetBSD (a.out) ld.so' 9796 else 9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9798 soname_spec='${libname}${release}${shared_ext}$major' 9799 dynamic_linker='NetBSD ld.elf_so' 9800 fi 9801 shlibpath_var=LD_LIBRARY_PATH 9802 shlibpath_overrides_runpath=yes 9803 hardcode_into_libs=yes 9804 ;; 9805 9806newsos6) 9807 version_type=linux 9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9809 shlibpath_var=LD_LIBRARY_PATH 9810 shlibpath_overrides_runpath=yes 9811 ;; 9812 9813*nto* | *qnx*) 9814 version_type=qnx 9815 need_lib_prefix=no 9816 need_version=no 9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9818 soname_spec='${libname}${release}${shared_ext}$major' 9819 shlibpath_var=LD_LIBRARY_PATH 9820 shlibpath_overrides_runpath=no 9821 hardcode_into_libs=yes 9822 dynamic_linker='ldqnx.so' 9823 ;; 9824 9825openbsd*) 9826 version_type=sunos 9827 sys_lib_dlsearch_path_spec="/usr/lib" 9828 need_lib_prefix=no 9829 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9830 case $host_os in 9831 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9832 *) need_version=no ;; 9833 esac 9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9836 shlibpath_var=LD_LIBRARY_PATH 9837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9838 case $host_os in 9839 openbsd2.[89] | openbsd2.[89].*) 9840 shlibpath_overrides_runpath=no 9841 ;; 9842 *) 9843 shlibpath_overrides_runpath=yes 9844 ;; 9845 esac 9846 else 9847 shlibpath_overrides_runpath=yes 9848 fi 9849 ;; 9850 9851os2*) 9852 libname_spec='$name' 9853 shrext_cmds=".dll" 9854 need_lib_prefix=no 9855 library_names_spec='$libname${shared_ext} $libname.a' 9856 dynamic_linker='OS/2 ld.exe' 9857 shlibpath_var=LIBPATH 9858 ;; 9859 9860osf3* | osf4* | osf5*) 9861 version_type=osf 9862 need_lib_prefix=no 9863 need_version=no 9864 soname_spec='${libname}${release}${shared_ext}$major' 9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9866 shlibpath_var=LD_LIBRARY_PATH 9867 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9868 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9869 ;; 9870 9871rdos*) 9872 dynamic_linker=no 9873 ;; 9874 9875solaris*) 9876 version_type=linux 9877 need_lib_prefix=no 9878 need_version=no 9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9880 soname_spec='${libname}${release}${shared_ext}$major' 9881 shlibpath_var=LD_LIBRARY_PATH 9882 shlibpath_overrides_runpath=yes 9883 hardcode_into_libs=yes 9884 # ldd complains unless libraries are executable 9885 postinstall_cmds='chmod +x $lib' 9886 ;; 9887 9888sunos4*) 9889 version_type=sunos 9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9891 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9892 shlibpath_var=LD_LIBRARY_PATH 9893 shlibpath_overrides_runpath=yes 9894 if test "$with_gnu_ld" = yes; then 9895 need_lib_prefix=no 9896 fi 9897 need_version=yes 9898 ;; 9899 9900sysv4 | sysv4.3*) 9901 version_type=linux 9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9903 soname_spec='${libname}${release}${shared_ext}$major' 9904 shlibpath_var=LD_LIBRARY_PATH 9905 case $host_vendor in 9906 sni) 9907 shlibpath_overrides_runpath=no 9908 need_lib_prefix=no 9909 runpath_var=LD_RUN_PATH 9910 ;; 9911 siemens) 9912 need_lib_prefix=no 9913 ;; 9914 motorola) 9915 need_lib_prefix=no 9916 need_version=no 9917 shlibpath_overrides_runpath=no 9918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9919 ;; 9920 esac 9921 ;; 9922 9923sysv4*MP*) 9924 if test -d /usr/nec ;then 9925 version_type=linux 9926 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9927 soname_spec='$libname${shared_ext}.$major' 9928 shlibpath_var=LD_LIBRARY_PATH 9929 fi 9930 ;; 9931 9932sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9933 version_type=freebsd-elf 9934 need_lib_prefix=no 9935 need_version=no 9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9937 soname_spec='${libname}${release}${shared_ext}$major' 9938 shlibpath_var=LD_LIBRARY_PATH 9939 shlibpath_overrides_runpath=yes 9940 hardcode_into_libs=yes 9941 if test "$with_gnu_ld" = yes; then 9942 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9943 else 9944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9945 case $host_os in 9946 sco3.2v5*) 9947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9948 ;; 9949 esac 9950 fi 9951 sys_lib_dlsearch_path_spec='/usr/lib' 9952 ;; 9953 9954tpf*) 9955 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9956 version_type=linux 9957 need_lib_prefix=no 9958 need_version=no 9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9960 shlibpath_var=LD_LIBRARY_PATH 9961 shlibpath_overrides_runpath=no 9962 hardcode_into_libs=yes 9963 ;; 9964 9965uts4*) 9966 version_type=linux 9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9968 soname_spec='${libname}${release}${shared_ext}$major' 9969 shlibpath_var=LD_LIBRARY_PATH 9970 ;; 9971 9972*) 9973 dynamic_linker=no 9974 ;; 9975esac 9976{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9977$as_echo "$dynamic_linker" >&6; } 9978test "$dynamic_linker" = no && can_build_shared=no 9979 9980variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9981if test "$GCC" = yes; then 9982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9983fi 9984 9985if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9986 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9987fi 9988if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9989 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9990fi 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10079$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10080hardcode_action= 10081if test -n "$hardcode_libdir_flag_spec" || 10082 test -n "$runpath_var" || 10083 test "X$hardcode_automatic" = "Xyes" ; then 10084 10085 # We can hardcode non-existent directories. 10086 if test "$hardcode_direct" != no && 10087 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10088 # have to relink, otherwise we might link with an installed library 10089 # when we should be linking with a yet-to-be-installed one 10090 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10091 test "$hardcode_minus_L" != no; then 10092 # Linking always hardcodes the temporary library directory. 10093 hardcode_action=relink 10094 else 10095 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10096 hardcode_action=immediate 10097 fi 10098else 10099 # We cannot hardcode anything, or else we can only hardcode existing 10100 # directories. 10101 hardcode_action=unsupported 10102fi 10103{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10104$as_echo "$hardcode_action" >&6; } 10105 10106if test "$hardcode_action" = relink || 10107 test "$inherit_rpath" = yes; then 10108 # Fast installation is not supported 10109 enable_fast_install=no 10110elif test "$shlibpath_overrides_runpath" = yes || 10111 test "$enable_shared" = no; then 10112 # Fast installation is not necessary 10113 enable_fast_install=needless 10114fi 10115 10116 10117 10118 10119 10120 10121 if test "x$enable_dlopen" != xyes; then 10122 enable_dlopen=unknown 10123 enable_dlopen_self=unknown 10124 enable_dlopen_self_static=unknown 10125else 10126 lt_cv_dlopen=no 10127 lt_cv_dlopen_libs= 10128 10129 case $host_os in 10130 beos*) 10131 lt_cv_dlopen="load_add_on" 10132 lt_cv_dlopen_libs= 10133 lt_cv_dlopen_self=yes 10134 ;; 10135 10136 mingw* | pw32* | cegcc*) 10137 lt_cv_dlopen="LoadLibrary" 10138 lt_cv_dlopen_libs= 10139 ;; 10140 10141 cygwin*) 10142 lt_cv_dlopen="dlopen" 10143 lt_cv_dlopen_libs= 10144 ;; 10145 10146 darwin*) 10147 # if libdl is installed we need to link against it 10148 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10149$as_echo_n "checking for dlopen in -ldl... " >&6; } 10150if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10151 $as_echo_n "(cached) " >&6 10152else 10153 ac_check_lib_save_LIBS=$LIBS 10154LIBS="-ldl $LIBS" 10155cat >conftest.$ac_ext <<_ACEOF 10156/* confdefs.h. */ 10157_ACEOF 10158cat confdefs.h >>conftest.$ac_ext 10159cat >>conftest.$ac_ext <<_ACEOF 10160/* end confdefs.h. */ 10161 10162/* Override any GCC internal prototype to avoid an error. 10163 Use char because int might match the return type of a GCC 10164 builtin and then its argument prototype would still apply. */ 10165#ifdef __cplusplus 10166extern "C" 10167#endif 10168char dlopen (); 10169int 10170main () 10171{ 10172return dlopen (); 10173 ; 10174 return 0; 10175} 10176_ACEOF 10177rm -f conftest.$ac_objext conftest$ac_exeext 10178if { (ac_try="$ac_link" 10179case "(($ac_try" in 10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10181 *) ac_try_echo=$ac_try;; 10182esac 10183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10184$as_echo "$ac_try_echo") >&5 10185 (eval "$ac_link") 2>conftest.er1 10186 ac_status=$? 10187 grep -v '^ *+' conftest.er1 >conftest.err 10188 rm -f conftest.er1 10189 cat conftest.err >&5 10190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10191 (exit $ac_status); } && { 10192 test -z "$ac_c_werror_flag" || 10193 test ! -s conftest.err 10194 } && test -s conftest$ac_exeext && { 10195 test "$cross_compiling" = yes || 10196 $as_test_x conftest$ac_exeext 10197 }; then 10198 ac_cv_lib_dl_dlopen=yes 10199else 10200 $as_echo "$as_me: failed program was:" >&5 10201sed 's/^/| /' conftest.$ac_ext >&5 10202 10203 ac_cv_lib_dl_dlopen=no 10204fi 10205 10206rm -rf conftest.dSYM 10207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10208 conftest$ac_exeext conftest.$ac_ext 10209LIBS=$ac_check_lib_save_LIBS 10210fi 10211{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10212$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10213if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10215else 10216 10217 lt_cv_dlopen="dyld" 10218 lt_cv_dlopen_libs= 10219 lt_cv_dlopen_self=yes 10220 10221fi 10222 10223 ;; 10224 10225 *) 10226 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10227$as_echo_n "checking for shl_load... " >&6; } 10228if test "${ac_cv_func_shl_load+set}" = set; then 10229 $as_echo_n "(cached) " >&6 10230else 10231 cat >conftest.$ac_ext <<_ACEOF 10232/* confdefs.h. */ 10233_ACEOF 10234cat confdefs.h >>conftest.$ac_ext 10235cat >>conftest.$ac_ext <<_ACEOF 10236/* end confdefs.h. */ 10237/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10238 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10239#define shl_load innocuous_shl_load 10240 10241/* System header to define __stub macros and hopefully few prototypes, 10242 which can conflict with char shl_load (); below. 10243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10244 <limits.h> exists even on freestanding compilers. */ 10245 10246#ifdef __STDC__ 10247# include <limits.h> 10248#else 10249# include <assert.h> 10250#endif 10251 10252#undef shl_load 10253 10254/* Override any GCC internal prototype to avoid an error. 10255 Use char because int might match the return type of a GCC 10256 builtin and then its argument prototype would still apply. */ 10257#ifdef __cplusplus 10258extern "C" 10259#endif 10260char shl_load (); 10261/* The GNU C library defines this for functions which it implements 10262 to always fail with ENOSYS. Some functions are actually named 10263 something starting with __ and the normal name is an alias. */ 10264#if defined __stub_shl_load || defined __stub___shl_load 10265choke me 10266#endif 10267 10268int 10269main () 10270{ 10271return shl_load (); 10272 ; 10273 return 0; 10274} 10275_ACEOF 10276rm -f conftest.$ac_objext conftest$ac_exeext 10277if { (ac_try="$ac_link" 10278case "(($ac_try" in 10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10280 *) ac_try_echo=$ac_try;; 10281esac 10282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10283$as_echo "$ac_try_echo") >&5 10284 (eval "$ac_link") 2>conftest.er1 10285 ac_status=$? 10286 grep -v '^ *+' conftest.er1 >conftest.err 10287 rm -f conftest.er1 10288 cat conftest.err >&5 10289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10290 (exit $ac_status); } && { 10291 test -z "$ac_c_werror_flag" || 10292 test ! -s conftest.err 10293 } && test -s conftest$ac_exeext && { 10294 test "$cross_compiling" = yes || 10295 $as_test_x conftest$ac_exeext 10296 }; then 10297 ac_cv_func_shl_load=yes 10298else 10299 $as_echo "$as_me: failed program was:" >&5 10300sed 's/^/| /' conftest.$ac_ext >&5 10301 10302 ac_cv_func_shl_load=no 10303fi 10304 10305rm -rf conftest.dSYM 10306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10307 conftest$ac_exeext conftest.$ac_ext 10308fi 10309{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10310$as_echo "$ac_cv_func_shl_load" >&6; } 10311if test "x$ac_cv_func_shl_load" = x""yes; then 10312 lt_cv_dlopen="shl_load" 10313else 10314 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10315$as_echo_n "checking for shl_load in -ldld... " >&6; } 10316if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10317 $as_echo_n "(cached) " >&6 10318else 10319 ac_check_lib_save_LIBS=$LIBS 10320LIBS="-ldld $LIBS" 10321cat >conftest.$ac_ext <<_ACEOF 10322/* confdefs.h. */ 10323_ACEOF 10324cat confdefs.h >>conftest.$ac_ext 10325cat >>conftest.$ac_ext <<_ACEOF 10326/* end confdefs.h. */ 10327 10328/* Override any GCC internal prototype to avoid an error. 10329 Use char because int might match the return type of a GCC 10330 builtin and then its argument prototype would still apply. */ 10331#ifdef __cplusplus 10332extern "C" 10333#endif 10334char shl_load (); 10335int 10336main () 10337{ 10338return shl_load (); 10339 ; 10340 return 0; 10341} 10342_ACEOF 10343rm -f conftest.$ac_objext conftest$ac_exeext 10344if { (ac_try="$ac_link" 10345case "(($ac_try" in 10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10347 *) ac_try_echo=$ac_try;; 10348esac 10349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10350$as_echo "$ac_try_echo") >&5 10351 (eval "$ac_link") 2>conftest.er1 10352 ac_status=$? 10353 grep -v '^ *+' conftest.er1 >conftest.err 10354 rm -f conftest.er1 10355 cat conftest.err >&5 10356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10357 (exit $ac_status); } && { 10358 test -z "$ac_c_werror_flag" || 10359 test ! -s conftest.err 10360 } && test -s conftest$ac_exeext && { 10361 test "$cross_compiling" = yes || 10362 $as_test_x conftest$ac_exeext 10363 }; then 10364 ac_cv_lib_dld_shl_load=yes 10365else 10366 $as_echo "$as_me: failed program was:" >&5 10367sed 's/^/| /' conftest.$ac_ext >&5 10368 10369 ac_cv_lib_dld_shl_load=no 10370fi 10371 10372rm -rf conftest.dSYM 10373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10374 conftest$ac_exeext conftest.$ac_ext 10375LIBS=$ac_check_lib_save_LIBS 10376fi 10377{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10378$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10379if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10380 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10381else 10382 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10383$as_echo_n "checking for dlopen... " >&6; } 10384if test "${ac_cv_func_dlopen+set}" = set; then 10385 $as_echo_n "(cached) " >&6 10386else 10387 cat >conftest.$ac_ext <<_ACEOF 10388/* confdefs.h. */ 10389_ACEOF 10390cat confdefs.h >>conftest.$ac_ext 10391cat >>conftest.$ac_ext <<_ACEOF 10392/* end confdefs.h. */ 10393/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10394 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10395#define dlopen innocuous_dlopen 10396 10397/* System header to define __stub macros and hopefully few prototypes, 10398 which can conflict with char dlopen (); below. 10399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10400 <limits.h> exists even on freestanding compilers. */ 10401 10402#ifdef __STDC__ 10403# include <limits.h> 10404#else 10405# include <assert.h> 10406#endif 10407 10408#undef dlopen 10409 10410/* Override any GCC internal prototype to avoid an error. 10411 Use char because int might match the return type of a GCC 10412 builtin and then its argument prototype would still apply. */ 10413#ifdef __cplusplus 10414extern "C" 10415#endif 10416char dlopen (); 10417/* The GNU C library defines this for functions which it implements 10418 to always fail with ENOSYS. Some functions are actually named 10419 something starting with __ and the normal name is an alias. */ 10420#if defined __stub_dlopen || defined __stub___dlopen 10421choke me 10422#endif 10423 10424int 10425main () 10426{ 10427return dlopen (); 10428 ; 10429 return 0; 10430} 10431_ACEOF 10432rm -f conftest.$ac_objext conftest$ac_exeext 10433if { (ac_try="$ac_link" 10434case "(($ac_try" in 10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10436 *) ac_try_echo=$ac_try;; 10437esac 10438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10439$as_echo "$ac_try_echo") >&5 10440 (eval "$ac_link") 2>conftest.er1 10441 ac_status=$? 10442 grep -v '^ *+' conftest.er1 >conftest.err 10443 rm -f conftest.er1 10444 cat conftest.err >&5 10445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10446 (exit $ac_status); } && { 10447 test -z "$ac_c_werror_flag" || 10448 test ! -s conftest.err 10449 } && test -s conftest$ac_exeext && { 10450 test "$cross_compiling" = yes || 10451 $as_test_x conftest$ac_exeext 10452 }; then 10453 ac_cv_func_dlopen=yes 10454else 10455 $as_echo "$as_me: failed program was:" >&5 10456sed 's/^/| /' conftest.$ac_ext >&5 10457 10458 ac_cv_func_dlopen=no 10459fi 10460 10461rm -rf conftest.dSYM 10462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10463 conftest$ac_exeext conftest.$ac_ext 10464fi 10465{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10466$as_echo "$ac_cv_func_dlopen" >&6; } 10467if test "x$ac_cv_func_dlopen" = x""yes; then 10468 lt_cv_dlopen="dlopen" 10469else 10470 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10471$as_echo_n "checking for dlopen in -ldl... " >&6; } 10472if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10473 $as_echo_n "(cached) " >&6 10474else 10475 ac_check_lib_save_LIBS=$LIBS 10476LIBS="-ldl $LIBS" 10477cat >conftest.$ac_ext <<_ACEOF 10478/* confdefs.h. */ 10479_ACEOF 10480cat confdefs.h >>conftest.$ac_ext 10481cat >>conftest.$ac_ext <<_ACEOF 10482/* end confdefs.h. */ 10483 10484/* Override any GCC internal prototype to avoid an error. 10485 Use char because int might match the return type of a GCC 10486 builtin and then its argument prototype would still apply. */ 10487#ifdef __cplusplus 10488extern "C" 10489#endif 10490char dlopen (); 10491int 10492main () 10493{ 10494return dlopen (); 10495 ; 10496 return 0; 10497} 10498_ACEOF 10499rm -f conftest.$ac_objext conftest$ac_exeext 10500if { (ac_try="$ac_link" 10501case "(($ac_try" in 10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10503 *) ac_try_echo=$ac_try;; 10504esac 10505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10506$as_echo "$ac_try_echo") >&5 10507 (eval "$ac_link") 2>conftest.er1 10508 ac_status=$? 10509 grep -v '^ *+' conftest.er1 >conftest.err 10510 rm -f conftest.er1 10511 cat conftest.err >&5 10512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10513 (exit $ac_status); } && { 10514 test -z "$ac_c_werror_flag" || 10515 test ! -s conftest.err 10516 } && test -s conftest$ac_exeext && { 10517 test "$cross_compiling" = yes || 10518 $as_test_x conftest$ac_exeext 10519 }; then 10520 ac_cv_lib_dl_dlopen=yes 10521else 10522 $as_echo "$as_me: failed program was:" >&5 10523sed 's/^/| /' conftest.$ac_ext >&5 10524 10525 ac_cv_lib_dl_dlopen=no 10526fi 10527 10528rm -rf conftest.dSYM 10529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10530 conftest$ac_exeext conftest.$ac_ext 10531LIBS=$ac_check_lib_save_LIBS 10532fi 10533{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10534$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10535if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10537else 10538 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10539$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10540if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10541 $as_echo_n "(cached) " >&6 10542else 10543 ac_check_lib_save_LIBS=$LIBS 10544LIBS="-lsvld $LIBS" 10545cat >conftest.$ac_ext <<_ACEOF 10546/* confdefs.h. */ 10547_ACEOF 10548cat confdefs.h >>conftest.$ac_ext 10549cat >>conftest.$ac_ext <<_ACEOF 10550/* end confdefs.h. */ 10551 10552/* Override any GCC internal prototype to avoid an error. 10553 Use char because int might match the return type of a GCC 10554 builtin and then its argument prototype would still apply. */ 10555#ifdef __cplusplus 10556extern "C" 10557#endif 10558char dlopen (); 10559int 10560main () 10561{ 10562return dlopen (); 10563 ; 10564 return 0; 10565} 10566_ACEOF 10567rm -f conftest.$ac_objext conftest$ac_exeext 10568if { (ac_try="$ac_link" 10569case "(($ac_try" in 10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10571 *) ac_try_echo=$ac_try;; 10572esac 10573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10574$as_echo "$ac_try_echo") >&5 10575 (eval "$ac_link") 2>conftest.er1 10576 ac_status=$? 10577 grep -v '^ *+' conftest.er1 >conftest.err 10578 rm -f conftest.er1 10579 cat conftest.err >&5 10580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10581 (exit $ac_status); } && { 10582 test -z "$ac_c_werror_flag" || 10583 test ! -s conftest.err 10584 } && test -s conftest$ac_exeext && { 10585 test "$cross_compiling" = yes || 10586 $as_test_x conftest$ac_exeext 10587 }; then 10588 ac_cv_lib_svld_dlopen=yes 10589else 10590 $as_echo "$as_me: failed program was:" >&5 10591sed 's/^/| /' conftest.$ac_ext >&5 10592 10593 ac_cv_lib_svld_dlopen=no 10594fi 10595 10596rm -rf conftest.dSYM 10597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10598 conftest$ac_exeext conftest.$ac_ext 10599LIBS=$ac_check_lib_save_LIBS 10600fi 10601{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10602$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10603if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10604 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10605else 10606 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10607$as_echo_n "checking for dld_link in -ldld... " >&6; } 10608if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10609 $as_echo_n "(cached) " >&6 10610else 10611 ac_check_lib_save_LIBS=$LIBS 10612LIBS="-ldld $LIBS" 10613cat >conftest.$ac_ext <<_ACEOF 10614/* confdefs.h. */ 10615_ACEOF 10616cat confdefs.h >>conftest.$ac_ext 10617cat >>conftest.$ac_ext <<_ACEOF 10618/* end confdefs.h. */ 10619 10620/* Override any GCC internal prototype to avoid an error. 10621 Use char because int might match the return type of a GCC 10622 builtin and then its argument prototype would still apply. */ 10623#ifdef __cplusplus 10624extern "C" 10625#endif 10626char dld_link (); 10627int 10628main () 10629{ 10630return dld_link (); 10631 ; 10632 return 0; 10633} 10634_ACEOF 10635rm -f conftest.$ac_objext conftest$ac_exeext 10636if { (ac_try="$ac_link" 10637case "(($ac_try" in 10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10639 *) ac_try_echo=$ac_try;; 10640esac 10641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10642$as_echo "$ac_try_echo") >&5 10643 (eval "$ac_link") 2>conftest.er1 10644 ac_status=$? 10645 grep -v '^ *+' conftest.er1 >conftest.err 10646 rm -f conftest.er1 10647 cat conftest.err >&5 10648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10649 (exit $ac_status); } && { 10650 test -z "$ac_c_werror_flag" || 10651 test ! -s conftest.err 10652 } && test -s conftest$ac_exeext && { 10653 test "$cross_compiling" = yes || 10654 $as_test_x conftest$ac_exeext 10655 }; then 10656 ac_cv_lib_dld_dld_link=yes 10657else 10658 $as_echo "$as_me: failed program was:" >&5 10659sed 's/^/| /' conftest.$ac_ext >&5 10660 10661 ac_cv_lib_dld_dld_link=no 10662fi 10663 10664rm -rf conftest.dSYM 10665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10666 conftest$ac_exeext conftest.$ac_ext 10667LIBS=$ac_check_lib_save_LIBS 10668fi 10669{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10670$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10671if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10672 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10673fi 10674 10675 10676fi 10677 10678 10679fi 10680 10681 10682fi 10683 10684 10685fi 10686 10687 10688fi 10689 10690 ;; 10691 esac 10692 10693 if test "x$lt_cv_dlopen" != xno; then 10694 enable_dlopen=yes 10695 else 10696 enable_dlopen=no 10697 fi 10698 10699 case $lt_cv_dlopen in 10700 dlopen) 10701 save_CPPFLAGS="$CPPFLAGS" 10702 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10703 10704 save_LDFLAGS="$LDFLAGS" 10705 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10706 10707 save_LIBS="$LIBS" 10708 LIBS="$lt_cv_dlopen_libs $LIBS" 10709 10710 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10711$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10712if test "${lt_cv_dlopen_self+set}" = set; then 10713 $as_echo_n "(cached) " >&6 10714else 10715 if test "$cross_compiling" = yes; then : 10716 lt_cv_dlopen_self=cross 10717else 10718 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10719 lt_status=$lt_dlunknown 10720 cat > conftest.$ac_ext <<_LT_EOF 10721#line 10721 "configure" 10722#include "confdefs.h" 10723 10724#if HAVE_DLFCN_H 10725#include <dlfcn.h> 10726#endif 10727 10728#include <stdio.h> 10729 10730#ifdef RTLD_GLOBAL 10731# define LT_DLGLOBAL RTLD_GLOBAL 10732#else 10733# ifdef DL_GLOBAL 10734# define LT_DLGLOBAL DL_GLOBAL 10735# else 10736# define LT_DLGLOBAL 0 10737# endif 10738#endif 10739 10740/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10741 find out it does not work in some platform. */ 10742#ifndef LT_DLLAZY_OR_NOW 10743# ifdef RTLD_LAZY 10744# define LT_DLLAZY_OR_NOW RTLD_LAZY 10745# else 10746# ifdef DL_LAZY 10747# define LT_DLLAZY_OR_NOW DL_LAZY 10748# else 10749# ifdef RTLD_NOW 10750# define LT_DLLAZY_OR_NOW RTLD_NOW 10751# else 10752# ifdef DL_NOW 10753# define LT_DLLAZY_OR_NOW DL_NOW 10754# else 10755# define LT_DLLAZY_OR_NOW 0 10756# endif 10757# endif 10758# endif 10759# endif 10760#endif 10761 10762void fnord() { int i=42;} 10763int main () 10764{ 10765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10766 int status = $lt_dlunknown; 10767 10768 if (self) 10769 { 10770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10771 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10772 /* dlclose (self); */ 10773 } 10774 else 10775 puts (dlerror ()); 10776 10777 return status; 10778} 10779_LT_EOF 10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10781 (eval $ac_link) 2>&5 10782 ac_status=$? 10783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10784 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10785 (./conftest; exit; ) >&5 2>/dev/null 10786 lt_status=$? 10787 case x$lt_status in 10788 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10789 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10790 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10791 esac 10792 else : 10793 # compilation failed 10794 lt_cv_dlopen_self=no 10795 fi 10796fi 10797rm -fr conftest* 10798 10799 10800fi 10801{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10802$as_echo "$lt_cv_dlopen_self" >&6; } 10803 10804 if test "x$lt_cv_dlopen_self" = xyes; then 10805 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10806 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10807$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10808if test "${lt_cv_dlopen_self_static+set}" = set; then 10809 $as_echo_n "(cached) " >&6 10810else 10811 if test "$cross_compiling" = yes; then : 10812 lt_cv_dlopen_self_static=cross 10813else 10814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10815 lt_status=$lt_dlunknown 10816 cat > conftest.$ac_ext <<_LT_EOF 10817#line 10817 "configure" 10818#include "confdefs.h" 10819 10820#if HAVE_DLFCN_H 10821#include <dlfcn.h> 10822#endif 10823 10824#include <stdio.h> 10825 10826#ifdef RTLD_GLOBAL 10827# define LT_DLGLOBAL RTLD_GLOBAL 10828#else 10829# ifdef DL_GLOBAL 10830# define LT_DLGLOBAL DL_GLOBAL 10831# else 10832# define LT_DLGLOBAL 0 10833# endif 10834#endif 10835 10836/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10837 find out it does not work in some platform. */ 10838#ifndef LT_DLLAZY_OR_NOW 10839# ifdef RTLD_LAZY 10840# define LT_DLLAZY_OR_NOW RTLD_LAZY 10841# else 10842# ifdef DL_LAZY 10843# define LT_DLLAZY_OR_NOW DL_LAZY 10844# else 10845# ifdef RTLD_NOW 10846# define LT_DLLAZY_OR_NOW RTLD_NOW 10847# else 10848# ifdef DL_NOW 10849# define LT_DLLAZY_OR_NOW DL_NOW 10850# else 10851# define LT_DLLAZY_OR_NOW 0 10852# endif 10853# endif 10854# endif 10855# endif 10856#endif 10857 10858void fnord() { int i=42;} 10859int main () 10860{ 10861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10862 int status = $lt_dlunknown; 10863 10864 if (self) 10865 { 10866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10868 /* dlclose (self); */ 10869 } 10870 else 10871 puts (dlerror ()); 10872 10873 return status; 10874} 10875_LT_EOF 10876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10877 (eval $ac_link) 2>&5 10878 ac_status=$? 10879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10880 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10881 (./conftest; exit; ) >&5 2>/dev/null 10882 lt_status=$? 10883 case x$lt_status in 10884 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10885 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10886 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10887 esac 10888 else : 10889 # compilation failed 10890 lt_cv_dlopen_self_static=no 10891 fi 10892fi 10893rm -fr conftest* 10894 10895 10896fi 10897{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10898$as_echo "$lt_cv_dlopen_self_static" >&6; } 10899 fi 10900 10901 CPPFLAGS="$save_CPPFLAGS" 10902 LDFLAGS="$save_LDFLAGS" 10903 LIBS="$save_LIBS" 10904 ;; 10905 esac 10906 10907 case $lt_cv_dlopen_self in 10908 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10909 *) enable_dlopen_self=unknown ;; 10910 esac 10911 10912 case $lt_cv_dlopen_self_static in 10913 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10914 *) enable_dlopen_self_static=unknown ;; 10915 esac 10916fi 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934striplib= 10935old_striplib= 10936{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10937$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10938if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10939 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10940 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10941 { $as_echo "$as_me:$LINENO: result: yes" >&5 10942$as_echo "yes" >&6; } 10943else 10944# FIXME - insert some real tests, host_os isn't really good enough 10945 case $host_os in 10946 darwin*) 10947 if test -n "$STRIP" ; then 10948 striplib="$STRIP -x" 10949 old_striplib="$STRIP -S" 10950 { $as_echo "$as_me:$LINENO: result: yes" >&5 10951$as_echo "yes" >&6; } 10952 else 10953 { $as_echo "$as_me:$LINENO: result: no" >&5 10954$as_echo "no" >&6; } 10955 fi 10956 ;; 10957 *) 10958 { $as_echo "$as_me:$LINENO: result: no" >&5 10959$as_echo "no" >&6; } 10960 ;; 10961 esac 10962fi 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 # Report which library types will actually be built 10976 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10977$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10978 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10979$as_echo "$can_build_shared" >&6; } 10980 10981 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10982$as_echo_n "checking whether to build shared libraries... " >&6; } 10983 test "$can_build_shared" = "no" && enable_shared=no 10984 10985 # On AIX, shared libraries and static libraries use the same namespace, and 10986 # are all built from PIC. 10987 case $host_os in 10988 aix3*) 10989 test "$enable_shared" = yes && enable_static=no 10990 if test -n "$RANLIB"; then 10991 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10992 postinstall_cmds='$RANLIB $lib' 10993 fi 10994 ;; 10995 10996 aix[4-9]*) 10997 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10998 test "$enable_shared" = yes && enable_static=no 10999 fi 11000 ;; 11001 esac 11002 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11003$as_echo "$enable_shared" >&6; } 11004 11005 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11006$as_echo_n "checking whether to build static libraries... " >&6; } 11007 # Make sure either enable_shared or enable_static is yes. 11008 test "$enable_shared" = yes || enable_static=yes 11009 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11010$as_echo "$enable_static" >&6; } 11011 11012 11013 11014 11015fi 11016ac_ext=c 11017ac_cpp='$CPP $CPPFLAGS' 11018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11020ac_compiler_gnu=$ac_cv_c_compiler_gnu 11021 11022CC="$lt_save_CC" 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 ac_config_commands="$ac_config_commands libtool" 11037 11038 11039 11040 11041# Only expand once: 11042 11043 11044{ $as_echo "$as_me:$LINENO: checking for inline" >&5 11045$as_echo_n "checking for inline... " >&6; } 11046if test "${ac_cv_c_inline+set}" = set; then 11047 $as_echo_n "(cached) " >&6 11048else 11049 ac_cv_c_inline=no 11050for ac_kw in inline __inline__ __inline; do 11051 cat >conftest.$ac_ext <<_ACEOF 11052/* confdefs.h. */ 11053_ACEOF 11054cat confdefs.h >>conftest.$ac_ext 11055cat >>conftest.$ac_ext <<_ACEOF 11056/* end confdefs.h. */ 11057#ifndef __cplusplus 11058typedef int foo_t; 11059static $ac_kw foo_t static_foo () {return 0; } 11060$ac_kw foo_t foo () {return 0; } 11061#endif 11062 11063_ACEOF 11064rm -f conftest.$ac_objext 11065if { (ac_try="$ac_compile" 11066case "(($ac_try" in 11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11068 *) ac_try_echo=$ac_try;; 11069esac 11070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11071$as_echo "$ac_try_echo") >&5 11072 (eval "$ac_compile") 2>conftest.er1 11073 ac_status=$? 11074 grep -v '^ *+' conftest.er1 >conftest.err 11075 rm -f conftest.er1 11076 cat conftest.err >&5 11077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11078 (exit $ac_status); } && { 11079 test -z "$ac_c_werror_flag" || 11080 test ! -s conftest.err 11081 } && test -s conftest.$ac_objext; then 11082 ac_cv_c_inline=$ac_kw 11083else 11084 $as_echo "$as_me: failed program was:" >&5 11085sed 's/^/| /' conftest.$ac_ext >&5 11086 11087 11088fi 11089 11090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11091 test "$ac_cv_c_inline" != no && break 11092done 11093 11094fi 11095{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 11096$as_echo "$ac_cv_c_inline" >&6; } 11097 11098 11099case $ac_cv_c_inline in 11100 inline | yes) ;; 11101 *) 11102 case $ac_cv_c_inline in 11103 no) ac_val=;; 11104 *) ac_val=$ac_cv_c_inline;; 11105 esac 11106 cat >>confdefs.h <<_ACEOF 11107#ifndef __cplusplus 11108#define inline $ac_val 11109#endif 11110_ACEOF 11111 ;; 11112esac 11113 11114if test "x$CC" != xcc; then 11115 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 11116$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 11117else 11118 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 11119$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 11120fi 11121set dummy $CC; ac_cc=`$as_echo "$2" | 11122 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11123if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 11124 $as_echo_n "(cached) " >&6 11125else 11126 cat >conftest.$ac_ext <<_ACEOF 11127/* confdefs.h. */ 11128_ACEOF 11129cat confdefs.h >>conftest.$ac_ext 11130cat >>conftest.$ac_ext <<_ACEOF 11131/* end confdefs.h. */ 11132 11133int 11134main () 11135{ 11136 11137 ; 11138 return 0; 11139} 11140_ACEOF 11141# Make sure it works both with $CC and with simple cc. 11142# We do the test twice because some compilers refuse to overwrite an 11143# existing .o file with -o, though they will create one. 11144ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11145rm -f conftest2.* 11146if { (case "(($ac_try" in 11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11148 *) ac_try_echo=$ac_try;; 11149esac 11150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11151$as_echo "$ac_try_echo") >&5 11152 (eval "$ac_try") 2>&5 11153 ac_status=$? 11154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11155 (exit $ac_status); } && 11156 test -f conftest2.$ac_objext && { (case "(($ac_try" in 11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11158 *) ac_try_echo=$ac_try;; 11159esac 11160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11161$as_echo "$ac_try_echo") >&5 11162 (eval "$ac_try") 2>&5 11163 ac_status=$? 11164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11165 (exit $ac_status); }; 11166then 11167 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 11168 if test "x$CC" != xcc; then 11169 # Test first that cc exists at all. 11170 if { ac_try='cc -c conftest.$ac_ext >&5' 11171 { (case "(($ac_try" in 11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11173 *) ac_try_echo=$ac_try;; 11174esac 11175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11176$as_echo "$ac_try_echo") >&5 11177 (eval "$ac_try") 2>&5 11178 ac_status=$? 11179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11180 (exit $ac_status); }; }; then 11181 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11182 rm -f conftest2.* 11183 if { (case "(($ac_try" in 11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11185 *) ac_try_echo=$ac_try;; 11186esac 11187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11188$as_echo "$ac_try_echo") >&5 11189 (eval "$ac_try") 2>&5 11190 ac_status=$? 11191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11192 (exit $ac_status); } && 11193 test -f conftest2.$ac_objext && { (case "(($ac_try" in 11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11195 *) ac_try_echo=$ac_try;; 11196esac 11197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11198$as_echo "$ac_try_echo") >&5 11199 (eval "$ac_try") 2>&5 11200 ac_status=$? 11201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11202 (exit $ac_status); }; 11203 then 11204 # cc works too. 11205 : 11206 else 11207 # cc exists but doesn't like -o. 11208 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11209 fi 11210 fi 11211 fi 11212else 11213 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11214fi 11215rm -f core conftest* 11216 11217fi 11218if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 11219 { $as_echo "$as_me:$LINENO: result: yes" >&5 11220$as_echo "yes" >&6; } 11221else 11222 { $as_echo "$as_me:$LINENO: result: no" >&5 11223$as_echo "no" >&6; } 11224 11225cat >>confdefs.h <<\_ACEOF 11226#define NO_MINUS_C_MINUS_O 1 11227_ACEOF 11228 11229fi 11230 11231# FIXME: we rely on the cache variable name because 11232# there is no other way. 11233set dummy $CC 11234am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11235eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 11236if test "$am_t" != yes; then 11237 # Losing compiler, so override with the script. 11238 # FIXME: It is wrong to rewrite CC. 11239 # But if we don't then we get into trouble of one sort or another. 11240 # A longer-term fix would be to have automake use am__CC in this case, 11241 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11242 CC="$am_aux_dir/compile $CC" 11243fi 11244 11245 11246 11247# Library versioning 11248LT_MAJOR="8" 11249LT_REVISION="4" 11250LT_AGE="4" 11251 11252 11253 11254 11255# The libusb-0.1 version we pretend to be 11256LIBUSB01_VERSION="0.1.12" 11257 11258 11259 11260 11261if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11262 if test -n "$ac_tool_prefix"; then 11263 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11264set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11266$as_echo_n "checking for $ac_word... " >&6; } 11267if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 11268 $as_echo_n "(cached) " >&6 11269else 11270 case $PKG_CONFIG in 11271 [\\/]* | ?:[\\/]*) 11272 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11273 ;; 11274 *) 11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11276for as_dir in $PATH 11277do 11278 IFS=$as_save_IFS 11279 test -z "$as_dir" && as_dir=. 11280 for ac_exec_ext in '' $ac_executable_extensions; do 11281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11282 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11284 break 2 11285 fi 11286done 11287done 11288IFS=$as_save_IFS 11289 11290 ;; 11291esac 11292fi 11293PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11294if test -n "$PKG_CONFIG"; then 11295 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 11296$as_echo "$PKG_CONFIG" >&6; } 11297else 11298 { $as_echo "$as_me:$LINENO: result: no" >&5 11299$as_echo "no" >&6; } 11300fi 11301 11302 11303fi 11304if test -z "$ac_cv_path_PKG_CONFIG"; then 11305 ac_pt_PKG_CONFIG=$PKG_CONFIG 11306 # Extract the first word of "pkg-config", so it can be a program name with args. 11307set dummy pkg-config; ac_word=$2 11308{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11309$as_echo_n "checking for $ac_word... " >&6; } 11310if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 11311 $as_echo_n "(cached) " >&6 11312else 11313 case $ac_pt_PKG_CONFIG in 11314 [\\/]* | ?:[\\/]*) 11315 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11316 ;; 11317 *) 11318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11319for as_dir in $PATH 11320do 11321 IFS=$as_save_IFS 11322 test -z "$as_dir" && as_dir=. 11323 for ac_exec_ext in '' $ac_executable_extensions; do 11324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11325 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11327 break 2 11328 fi 11329done 11330done 11331IFS=$as_save_IFS 11332 11333 ;; 11334esac 11335fi 11336ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11337if test -n "$ac_pt_PKG_CONFIG"; then 11338 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 11339$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11340else 11341 { $as_echo "$as_me:$LINENO: result: no" >&5 11342$as_echo "no" >&6; } 11343fi 11344 11345 if test "x$ac_pt_PKG_CONFIG" = x; then 11346 PKG_CONFIG="" 11347 else 11348 case $cross_compiling:$ac_tool_warned in 11349yes:) 11350{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11352ac_tool_warned=yes ;; 11353esac 11354 PKG_CONFIG=$ac_pt_PKG_CONFIG 11355 fi 11356else 11357 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11358fi 11359 11360fi 11361if test -n "$PKG_CONFIG"; then 11362 _pkg_min_version=0.9.0 11363 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 11364$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11365 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11366 { $as_echo "$as_me:$LINENO: result: yes" >&5 11367$as_echo "yes" >&6; } 11368 else 11369 { $as_echo "$as_me:$LINENO: result: no" >&5 11370$as_echo "no" >&6; } 11371 PKG_CONFIG="" 11372 fi 11373 11374fi 11375 11376pkg_failed=no 11377{ $as_echo "$as_me:$LINENO: checking for LIBUSB_1_0" >&5 11378$as_echo_n "checking for LIBUSB_1_0... " >&6; } 11379 11380if test -n "$LIBUSB_1_0_CFLAGS"; then 11381 pkg_cv_LIBUSB_1_0_CFLAGS="$LIBUSB_1_0_CFLAGS" 11382 elif test -n "$PKG_CONFIG"; then 11383 if test -n "$PKG_CONFIG" && \ 11384 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5 11385 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5 11386 ac_status=$? 11387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11388 (exit $ac_status); }; then 11389 pkg_cv_LIBUSB_1_0_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 0.9.1" 2>/dev/null` 11390else 11391 pkg_failed=yes 11392fi 11393 else 11394 pkg_failed=untried 11395fi 11396if test -n "$LIBUSB_1_0_LIBS"; then 11397 pkg_cv_LIBUSB_1_0_LIBS="$LIBUSB_1_0_LIBS" 11398 elif test -n "$PKG_CONFIG"; then 11399 if test -n "$PKG_CONFIG" && \ 11400 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5 11401 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5 11402 ac_status=$? 11403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11404 (exit $ac_status); }; then 11405 pkg_cv_LIBUSB_1_0_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 0.9.1" 2>/dev/null` 11406else 11407 pkg_failed=yes 11408fi 11409 else 11410 pkg_failed=untried 11411fi 11412 11413 11414 11415if test $pkg_failed = yes; then 11416 11417if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11418 _pkg_short_errors_supported=yes 11419else 11420 _pkg_short_errors_supported=no 11421fi 11422 if test $_pkg_short_errors_supported = yes; then 11423 LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0 >= 0.9.1" 2>&1` 11424 else 11425 LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0 >= 0.9.1" 2>&1` 11426 fi 11427 # Put the nasty error message in config.log where it belongs 11428 echo "$LIBUSB_1_0_PKG_ERRORS" >&5 11429 11430 { { $as_echo "$as_me:$LINENO: error: Package requirements (libusb-1.0 >= 0.9.1) were not met: 11431 11432$LIBUSB_1_0_PKG_ERRORS 11433 11434Consider adjusting the PKG_CONFIG_PATH environment variable if you 11435installed software in a non-standard prefix. 11436 11437Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS 11438and LIBUSB_1_0_LIBS to avoid the need to call pkg-config. 11439See the pkg-config man page for more details. 11440" >&5 11441$as_echo "$as_me: error: Package requirements (libusb-1.0 >= 0.9.1) were not met: 11442 11443$LIBUSB_1_0_PKG_ERRORS 11444 11445Consider adjusting the PKG_CONFIG_PATH environment variable if you 11446installed software in a non-standard prefix. 11447 11448Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS 11449and LIBUSB_1_0_LIBS to avoid the need to call pkg-config. 11450See the pkg-config man page for more details. 11451" >&2;} 11452 { (exit 1); exit 1; }; } 11453elif test $pkg_failed = untried; then 11454 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11456{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 11457is in your PATH or set the PKG_CONFIG environment variable to the full 11458path to pkg-config. 11459 11460Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS 11461and LIBUSB_1_0_LIBS to avoid the need to call pkg-config. 11462See the pkg-config man page for more details. 11463 11464To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11465See \`config.log' for more details." >&5 11466$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 11467is in your PATH or set the PKG_CONFIG environment variable to the full 11468path to pkg-config. 11469 11470Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS 11471and LIBUSB_1_0_LIBS to avoid the need to call pkg-config. 11472See the pkg-config man page for more details. 11473 11474To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11475See \`config.log' for more details." >&2;} 11476 { (exit 1); exit 1; }; }; } 11477else 11478 LIBUSB_1_0_CFLAGS=$pkg_cv_LIBUSB_1_0_CFLAGS 11479 LIBUSB_1_0_LIBS=$pkg_cv_LIBUSB_1_0_LIBS 11480 { $as_echo "$as_me:$LINENO: result: yes" >&5 11481$as_echo "yes" >&6; } 11482 : 11483fi 11484 11485 11486 11487# Message logging 11488# Check whether --enable-log was given. 11489if test "${enable_log+set}" = set; then 11490 enableval=$enable_log; log_enabled=$enableval 11491else 11492 log_enabled='yes' 11493fi 11494 11495if test "x$log_enabled" != "xno"; then 11496 11497cat >>confdefs.h <<\_ACEOF 11498#define ENABLE_LOGGING 1 11499_ACEOF 11500 11501fi 11502 11503# Check whether --enable-debug-log was given. 11504if test "${enable_debug_log+set}" = set; then 11505 enableval=$enable_debug_log; debug_log_enabled=$enableval 11506else 11507 debug_log_enabled='no' 11508fi 11509 11510if test "x$debug_log_enabled" != "xno"; then 11511 11512cat >>confdefs.h <<\_ACEOF 11513#define ENABLE_DEBUG_LOGGING 1 11514_ACEOF 11515 11516fi 11517 11518# Examples build 11519# Check whether --enable-examples-build was given. 11520if test "${enable_examples_build+set}" = set; then 11521 enableval=$enable_examples_build; build_examples=$enableval 11522else 11523 build_examples='no' 11524fi 11525 11526 if test "x$build_examples" != "xno"; then 11527 BUILD_EXAMPLES_TRUE= 11528 BUILD_EXAMPLES_FALSE='#' 11529else 11530 BUILD_EXAMPLES_TRUE='#' 11531 BUILD_EXAMPLES_FALSE= 11532fi 11533 11534 11535# Restore gnu89 inline semantics on gcc 4.3 and newer 11536saved_cflags="$CFLAGS" 11537CFLAGS="$CFLAGS -fgnu89-inline" 11538cat >conftest.$ac_ext <<_ACEOF 11539/* confdefs.h. */ 11540_ACEOF 11541cat confdefs.h >>conftest.$ac_ext 11542cat >>conftest.$ac_ext <<_ACEOF 11543/* end confdefs.h. */ 11544 11545int 11546main () 11547{ 11548 11549 ; 11550 return 0; 11551} 11552_ACEOF 11553rm -f conftest.$ac_objext 11554if { (ac_try="$ac_compile" 11555case "(($ac_try" in 11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11557 *) ac_try_echo=$ac_try;; 11558esac 11559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11560$as_echo "$ac_try_echo") >&5 11561 (eval "$ac_compile") 2>conftest.er1 11562 ac_status=$? 11563 grep -v '^ *+' conftest.er1 >conftest.err 11564 rm -f conftest.er1 11565 cat conftest.err >&5 11566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11567 (exit $ac_status); } && { 11568 test -z "$ac_c_werror_flag" || 11569 test ! -s conftest.err 11570 } && test -s conftest.$ac_objext; then 11571 inline_cflags="-fgnu89-inline" 11572else 11573 $as_echo "$as_me: failed program was:" >&5 11574sed 's/^/| /' conftest.$ac_ext >&5 11575 11576 inline_cflags="" 11577fi 11578 11579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11580CFLAGS="$saved_cflags" 11581 11582 11583cat >>confdefs.h <<\_ACEOF 11584#define API_EXPORTED __attribute__((visibility("default"))) 11585_ACEOF 11586 11587AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow" 11588 11589 11590ac_config_files="$ac_config_files libusb.pc libusb-config Makefile libusb/Makefile examples/Makefile" 11591 11592ac_config_commands="$ac_config_commands default" 11593 11594 11595cat >confcache <<\_ACEOF 11596# This file is a shell script that caches the results of configure 11597# tests run on this system so they can be shared between configure 11598# scripts and configure runs, see configure's option --config-cache. 11599# It is not useful on other systems. If it contains results you don't 11600# want to keep, you may remove or edit it. 11601# 11602# config.status only pays attention to the cache file if you give it 11603# the --recheck option to rerun configure. 11604# 11605# `ac_cv_env_foo' variables (set or unset) will be overridden when 11606# loading this file, other *unset* `ac_cv_foo' will be assigned the 11607# following values. 11608 11609_ACEOF 11610 11611# The following way of writing the cache mishandles newlines in values, 11612# but we know of no workaround that is simple, portable, and efficient. 11613# So, we kill variables containing newlines. 11614# Ultrix sh set writes to stderr and can't be redirected directly, 11615# and sets the high bit in the cache file unless we assign to the vars. 11616( 11617 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11618 eval ac_val=\$$ac_var 11619 case $ac_val in #( 11620 *${as_nl}*) 11621 case $ac_var in #( 11622 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 11623$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11624 esac 11625 case $ac_var in #( 11626 _ | IFS | as_nl) ;; #( 11627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11628 *) $as_unset $ac_var ;; 11629 esac ;; 11630 esac 11631 done 11632 11633 (set) 2>&1 | 11634 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11635 *${as_nl}ac_space=\ *) 11636 # `set' does not quote correctly, so add quotes (double-quote 11637 # substitution turns \\\\ into \\, and sed turns \\ into \). 11638 sed -n \ 11639 "s/'/'\\\\''/g; 11640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11641 ;; #( 11642 *) 11643 # `set' quotes correctly as required by POSIX, so do not add quotes. 11644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11645 ;; 11646 esac | 11647 sort 11648) | 11649 sed ' 11650 /^ac_cv_env_/b end 11651 t clear 11652 :clear 11653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11654 t end 11655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11656 :end' >>confcache 11657if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11658 if test -w "$cache_file"; then 11659 test "x$cache_file" != "x/dev/null" && 11660 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 11661$as_echo "$as_me: updating cache $cache_file" >&6;} 11662 cat confcache >$cache_file 11663 else 11664 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11665$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11666 fi 11667fi 11668rm -f confcache 11669 11670test "x$prefix" = xNONE && prefix=$ac_default_prefix 11671# Let make expand exec_prefix. 11672test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11673 11674DEFS=-DHAVE_CONFIG_H 11675 11676ac_libobjs= 11677ac_ltlibobjs= 11678for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11679 # 1. Remove the extension, and $U if already installed. 11680 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11681 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11682 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11683 # will be set to the directory where LIBOBJS objects are built. 11684 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11685 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11686done 11687LIBOBJS=$ac_libobjs 11688 11689LTLIBOBJS=$ac_ltlibobjs 11690 11691 11692if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11693 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 11694Usually this means the macro was only invoked conditionally." >&5 11695$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 11696Usually this means the macro was only invoked conditionally." >&2;} 11697 { (exit 1); exit 1; }; } 11698fi 11699if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11700 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 11701Usually this means the macro was only invoked conditionally." >&5 11702$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 11703Usually this means the macro was only invoked conditionally." >&2;} 11704 { (exit 1); exit 1; }; } 11705fi 11706if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then 11707 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined. 11708Usually this means the macro was only invoked conditionally." >&5 11709$as_echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined. 11710Usually this means the macro was only invoked conditionally." >&2;} 11711 { (exit 1); exit 1; }; } 11712fi 11713 11714: ${CONFIG_STATUS=./config.status} 11715ac_write_fail=0 11716ac_clean_files_save=$ac_clean_files 11717ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11718{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11719$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11720cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11721#! $SHELL 11722# Generated by $as_me. 11723# Run this file to recreate the current configuration. 11724# Compiler output produced by configure, useful for debugging 11725# configure, is in config.log if it exists. 11726 11727debug=false 11728ac_cs_recheck=false 11729ac_cs_silent=false 11730SHELL=\${CONFIG_SHELL-$SHELL} 11731_ACEOF 11732 11733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11734## --------------------- ## 11735## M4sh Initialization. ## 11736## --------------------- ## 11737 11738# Be more Bourne compatible 11739DUALCASE=1; export DUALCASE # for MKS sh 11740if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11741 emulate sh 11742 NULLCMD=: 11743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11744 # is contrary to our usage. Disable this feature. 11745 alias -g '${1+"$@"}'='"$@"' 11746 setopt NO_GLOB_SUBST 11747else 11748 case `(set -o) 2>/dev/null` in 11749 *posix*) set -o posix ;; 11750esac 11751 11752fi 11753 11754 11755 11756 11757# PATH needs CR 11758# Avoid depending upon Character Ranges. 11759as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11760as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11761as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11762as_cr_digits='0123456789' 11763as_cr_alnum=$as_cr_Letters$as_cr_digits 11764 11765as_nl=' 11766' 11767export as_nl 11768# Printing a long string crashes Solaris 7 /usr/bin/printf. 11769as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11772if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11773 as_echo='printf %s\n' 11774 as_echo_n='printf %s' 11775else 11776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11778 as_echo_n='/usr/ucb/echo -n' 11779 else 11780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11781 as_echo_n_body='eval 11782 arg=$1; 11783 case $arg in 11784 *"$as_nl"*) 11785 expr "X$arg" : "X\\(.*\\)$as_nl"; 11786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11787 esac; 11788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11789 ' 11790 export as_echo_n_body 11791 as_echo_n='sh -c $as_echo_n_body as_echo' 11792 fi 11793 export as_echo_body 11794 as_echo='sh -c $as_echo_body as_echo' 11795fi 11796 11797# The user is always right. 11798if test "${PATH_SEPARATOR+set}" != set; then 11799 PATH_SEPARATOR=: 11800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11802 PATH_SEPARATOR=';' 11803 } 11804fi 11805 11806# Support unset when possible. 11807if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11808 as_unset=unset 11809else 11810 as_unset=false 11811fi 11812 11813 11814# IFS 11815# We need space, tab and new line, in precisely that order. Quoting is 11816# there to prevent editors from complaining about space-tab. 11817# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11818# splitting by setting IFS to empty value.) 11819IFS=" "" $as_nl" 11820 11821# Find who we are. Look in the path if we contain no directory separator. 11822case $0 in 11823 *[\\/]* ) as_myself=$0 ;; 11824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11825for as_dir in $PATH 11826do 11827 IFS=$as_save_IFS 11828 test -z "$as_dir" && as_dir=. 11829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11830done 11831IFS=$as_save_IFS 11832 11833 ;; 11834esac 11835# We did not find ourselves, most probably we were run as `sh COMMAND' 11836# in which case we are not to be found in the path. 11837if test "x$as_myself" = x; then 11838 as_myself=$0 11839fi 11840if test ! -f "$as_myself"; then 11841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11842 { (exit 1); exit 1; } 11843fi 11844 11845# Work around bugs in pre-3.0 UWIN ksh. 11846for as_var in ENV MAIL MAILPATH 11847do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11848done 11849PS1='$ ' 11850PS2='> ' 11851PS4='+ ' 11852 11853# NLS nuisances. 11854LC_ALL=C 11855export LC_ALL 11856LANGUAGE=C 11857export LANGUAGE 11858 11859# Required to use basename. 11860if expr a : '\(a\)' >/dev/null 2>&1 && 11861 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11862 as_expr=expr 11863else 11864 as_expr=false 11865fi 11866 11867if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11868 as_basename=basename 11869else 11870 as_basename=false 11871fi 11872 11873 11874# Name of the executable. 11875as_me=`$as_basename -- "$0" || 11876$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11877 X"$0" : 'X\(//\)$' \| \ 11878 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11879$as_echo X/"$0" | 11880 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11881 s//\1/ 11882 q 11883 } 11884 /^X\/\(\/\/\)$/{ 11885 s//\1/ 11886 q 11887 } 11888 /^X\/\(\/\).*/{ 11889 s//\1/ 11890 q 11891 } 11892 s/.*/./; q'` 11893 11894# CDPATH. 11895$as_unset CDPATH 11896 11897 11898 11899 as_lineno_1=$LINENO 11900 as_lineno_2=$LINENO 11901 test "x$as_lineno_1" != "x$as_lineno_2" && 11902 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11903 11904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11905 # uniformly replaced by the line number. The first 'sed' inserts a 11906 # line-number line after each line using $LINENO; the second 'sed' 11907 # does the real work. The second script uses 'N' to pair each 11908 # line-number line with the line containing $LINENO, and appends 11909 # trailing '-' during substitution so that $LINENO is not a special 11910 # case at line end. 11911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11912 # scripts with optimization help from Paolo Bonzini. Blame Lee 11913 # E. McMahon (1931-1989) for sed's syntax. :-) 11914 sed -n ' 11915 p 11916 /[$]LINENO/= 11917 ' <$as_myself | 11918 sed ' 11919 s/[$]LINENO.*/&-/ 11920 t lineno 11921 b 11922 :lineno 11923 N 11924 :loop 11925 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11926 t loop 11927 s/-\n.*// 11928 ' >$as_me.lineno && 11929 chmod +x "$as_me.lineno" || 11930 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11931 { (exit 1); exit 1; }; } 11932 11933 # Don't try to exec as it changes $[0], causing all sort of problems 11934 # (the dirname of $[0] is not the place where we might find the 11935 # original and so on. Autoconf is especially sensitive to this). 11936 . "./$as_me.lineno" 11937 # Exit status is that of the last command. 11938 exit 11939} 11940 11941 11942if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11943 as_dirname=dirname 11944else 11945 as_dirname=false 11946fi 11947 11948ECHO_C= ECHO_N= ECHO_T= 11949case `echo -n x` in 11950-n*) 11951 case `echo 'x\c'` in 11952 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11953 *) ECHO_C='\c';; 11954 esac;; 11955*) 11956 ECHO_N='-n';; 11957esac 11958if expr a : '\(a\)' >/dev/null 2>&1 && 11959 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11960 as_expr=expr 11961else 11962 as_expr=false 11963fi 11964 11965rm -f conf$$ conf$$.exe conf$$.file 11966if test -d conf$$.dir; then 11967 rm -f conf$$.dir/conf$$.file 11968else 11969 rm -f conf$$.dir 11970 mkdir conf$$.dir 2>/dev/null 11971fi 11972if (echo >conf$$.file) 2>/dev/null; then 11973 if ln -s conf$$.file conf$$ 2>/dev/null; then 11974 as_ln_s='ln -s' 11975 # ... but there are two gotchas: 11976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11978 # In both cases, we have to default to `cp -p'. 11979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11980 as_ln_s='cp -p' 11981 elif ln conf$$.file conf$$ 2>/dev/null; then 11982 as_ln_s=ln 11983 else 11984 as_ln_s='cp -p' 11985 fi 11986else 11987 as_ln_s='cp -p' 11988fi 11989rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11990rmdir conf$$.dir 2>/dev/null 11991 11992if mkdir -p . 2>/dev/null; then 11993 as_mkdir_p=: 11994else 11995 test -d ./-p && rmdir ./-p 11996 as_mkdir_p=false 11997fi 11998 11999if test -x / >/dev/null 2>&1; then 12000 as_test_x='test -x' 12001else 12002 if ls -dL / >/dev/null 2>&1; then 12003 as_ls_L_option=L 12004 else 12005 as_ls_L_option= 12006 fi 12007 as_test_x=' 12008 eval sh -c '\'' 12009 if test -d "$1"; then 12010 test -d "$1/."; 12011 else 12012 case $1 in 12013 -*)set "./$1";; 12014 esac; 12015 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12016 ???[sx]*):;;*)false;;esac;fi 12017 '\'' sh 12018 ' 12019fi 12020as_executable_p=$as_test_x 12021 12022# Sed expression to map a string onto a valid CPP name. 12023as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12024 12025# Sed expression to map a string onto a valid variable name. 12026as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12027 12028 12029exec 6>&1 12030 12031# Save the log message, to keep $[0] and so on meaningful, and to 12032# report actual input values of CONFIG_FILES etc. instead of their 12033# values after options handling. 12034ac_log=" 12035This file was extended by libusb-compat $as_me 0.1.3, which was 12036generated by GNU Autoconf 2.63. Invocation command line was 12037 12038 CONFIG_FILES = $CONFIG_FILES 12039 CONFIG_HEADERS = $CONFIG_HEADERS 12040 CONFIG_LINKS = $CONFIG_LINKS 12041 CONFIG_COMMANDS = $CONFIG_COMMANDS 12042 $ $0 $@ 12043 12044on `(hostname || uname -n) 2>/dev/null | sed 1q` 12045" 12046 12047_ACEOF 12048 12049case $ac_config_files in *" 12050"*) set x $ac_config_files; shift; ac_config_files=$*;; 12051esac 12052 12053case $ac_config_headers in *" 12054"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12055esac 12056 12057 12058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12059# Files that config.status was made for. 12060config_files="$ac_config_files" 12061config_headers="$ac_config_headers" 12062config_commands="$ac_config_commands" 12063 12064_ACEOF 12065 12066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12067ac_cs_usage="\ 12068\`$as_me' instantiates files from templates according to the 12069current configuration. 12070 12071Usage: $0 [OPTION]... [FILE]... 12072 12073 -h, --help print this help, then exit 12074 -V, --version print version number and configuration settings, then exit 12075 -q, --quiet, --silent 12076 do not print progress messages 12077 -d, --debug don't remove temporary files 12078 --recheck update $as_me by reconfiguring in the same conditions 12079 --file=FILE[:TEMPLATE] 12080 instantiate the configuration file FILE 12081 --header=FILE[:TEMPLATE] 12082 instantiate the configuration header FILE 12083 12084Configuration files: 12085$config_files 12086 12087Configuration headers: 12088$config_headers 12089 12090Configuration commands: 12091$config_commands 12092 12093Report bugs to <bug-autoconf@gnu.org>." 12094 12095_ACEOF 12096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12097ac_cs_version="\\ 12098libusb-compat config.status 0.1.3 12099configured by $0, generated by GNU Autoconf 2.63, 12100 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12101 12102Copyright (C) 2008 Free Software Foundation, Inc. 12103This config.status script is free software; the Free Software Foundation 12104gives unlimited permission to copy, distribute and modify it." 12105 12106ac_pwd='$ac_pwd' 12107srcdir='$srcdir' 12108INSTALL='$INSTALL' 12109MKDIR_P='$MKDIR_P' 12110AWK='$AWK' 12111test -n "\$AWK" || AWK=awk 12112_ACEOF 12113 12114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12115# The default lists apply if the user does not specify any file. 12116ac_need_defaults=: 12117while test $# != 0 12118do 12119 case $1 in 12120 --*=*) 12121 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12122 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12123 ac_shift=: 12124 ;; 12125 *) 12126 ac_option=$1 12127 ac_optarg=$2 12128 ac_shift=shift 12129 ;; 12130 esac 12131 12132 case $ac_option in 12133 # Handling of the options. 12134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12135 ac_cs_recheck=: ;; 12136 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12137 $as_echo "$ac_cs_version"; exit ;; 12138 --debug | --debu | --deb | --de | --d | -d ) 12139 debug=: ;; 12140 --file | --fil | --fi | --f ) 12141 $ac_shift 12142 case $ac_optarg in 12143 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12144 esac 12145 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 12146 ac_need_defaults=false;; 12147 --header | --heade | --head | --hea ) 12148 $ac_shift 12149 case $ac_optarg in 12150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12151 esac 12152 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 12153 ac_need_defaults=false;; 12154 --he | --h) 12155 # Conflict between --help and --header 12156 { $as_echo "$as_me: error: ambiguous option: $1 12157Try \`$0 --help' for more information." >&2 12158 { (exit 1); exit 1; }; };; 12159 --help | --hel | -h ) 12160 $as_echo "$ac_cs_usage"; exit ;; 12161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12162 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12163 ac_cs_silent=: ;; 12164 12165 # This is an error. 12166 -*) { $as_echo "$as_me: error: unrecognized option: $1 12167Try \`$0 --help' for more information." >&2 12168 { (exit 1); exit 1; }; } ;; 12169 12170 *) ac_config_targets="$ac_config_targets $1" 12171 ac_need_defaults=false ;; 12172 12173 esac 12174 shift 12175done 12176 12177ac_configure_extra_args= 12178 12179if $ac_cs_silent; then 12180 exec 6>/dev/null 12181 ac_configure_extra_args="$ac_configure_extra_args --silent" 12182fi 12183 12184_ACEOF 12185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12186if \$ac_cs_recheck; then 12187 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12188 shift 12189 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12190 CONFIG_SHELL='$SHELL' 12191 export CONFIG_SHELL 12192 exec "\$@" 12193fi 12194 12195_ACEOF 12196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12197exec 5>>config.log 12198{ 12199 echo 12200 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12201## Running $as_me. ## 12202_ASBOX 12203 $as_echo "$ac_log" 12204} >&5 12205 12206_ACEOF 12207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12208# 12209# INIT-COMMANDS 12210# 12211AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12212 12213 12214# The HP-UX ksh and POSIX shell print the target directory to stdout 12215# if CDPATH is set. 12216(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12217 12218sed_quote_subst='$sed_quote_subst' 12219double_quote_subst='$double_quote_subst' 12220delay_variable_subst='$delay_variable_subst' 12221macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12222macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12223enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12224enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12225pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12226enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12227host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12228host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12229host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12230build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12231build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12232build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12233SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12234Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12235GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12236EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12237FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12238LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12239NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12240LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12241max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12242ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12243exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12244lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12245lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12246lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12247reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12248reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12249OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12250deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12251file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12252AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12253AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12254STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12255RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12256old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12257old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12258old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12259CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12260CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12261compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12262GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12263lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12264lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12265lt_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"`' 12266lt_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"`' 12267objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12268SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12269ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12270MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12271lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12272lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12273lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12274lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12275lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12276need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12277DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12278NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12279LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12280OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12281OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12282libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12283shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12284extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12285archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12286enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12287export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12288whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12289compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12290old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12291old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12292archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12293archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12294module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12295module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12296with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12297allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12298no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12299hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12300hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12301hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12302hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12303hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12304hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12305hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12306hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12307inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12308link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12309fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12310always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12311export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12312exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12313include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12314prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12315file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12316variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12317need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12318need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12319version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12320runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12321shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12322shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12323libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12324library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12325soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12326postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12327postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12328finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12329finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12330hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12331sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12332sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12333hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12334enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12335enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12336enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12337old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12338striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12339 12340LTCC='$LTCC' 12341LTCFLAGS='$LTCFLAGS' 12342compiler='$compiler_DEFAULT' 12343 12344# Quote evaled strings. 12345for var in SED \ 12346GREP \ 12347EGREP \ 12348FGREP \ 12349LD \ 12350NM \ 12351LN_S \ 12352lt_SP2NL \ 12353lt_NL2SP \ 12354reload_flag \ 12355OBJDUMP \ 12356deplibs_check_method \ 12357file_magic_cmd \ 12358AR \ 12359AR_FLAGS \ 12360STRIP \ 12361RANLIB \ 12362CC \ 12363CFLAGS \ 12364compiler \ 12365lt_cv_sys_global_symbol_pipe \ 12366lt_cv_sys_global_symbol_to_cdecl \ 12367lt_cv_sys_global_symbol_to_c_name_address \ 12368lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12369SHELL \ 12370ECHO \ 12371lt_prog_compiler_no_builtin_flag \ 12372lt_prog_compiler_wl \ 12373lt_prog_compiler_pic \ 12374lt_prog_compiler_static \ 12375lt_cv_prog_compiler_c_o \ 12376need_locks \ 12377DSYMUTIL \ 12378NMEDIT \ 12379LIPO \ 12380OTOOL \ 12381OTOOL64 \ 12382shrext_cmds \ 12383export_dynamic_flag_spec \ 12384whole_archive_flag_spec \ 12385compiler_needs_object \ 12386with_gnu_ld \ 12387allow_undefined_flag \ 12388no_undefined_flag \ 12389hardcode_libdir_flag_spec \ 12390hardcode_libdir_flag_spec_ld \ 12391hardcode_libdir_separator \ 12392fix_srcfile_path \ 12393exclude_expsyms \ 12394include_expsyms \ 12395file_list_spec \ 12396variables_saved_for_relink \ 12397libname_spec \ 12398library_names_spec \ 12399soname_spec \ 12400finish_eval \ 12401old_striplib \ 12402striplib; do 12403 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12404 *[\\\\\\\`\\"\\\$]*) 12405 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12406 ;; 12407 *) 12408 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12409 ;; 12410 esac 12411done 12412 12413# Double-quote double-evaled strings. 12414for var in reload_cmds \ 12415old_postinstall_cmds \ 12416old_postuninstall_cmds \ 12417old_archive_cmds \ 12418extract_expsyms_cmds \ 12419old_archive_from_new_cmds \ 12420old_archive_from_expsyms_cmds \ 12421archive_cmds \ 12422archive_expsym_cmds \ 12423module_cmds \ 12424module_expsym_cmds \ 12425export_symbols_cmds \ 12426prelink_cmds \ 12427postinstall_cmds \ 12428postuninstall_cmds \ 12429finish_cmds \ 12430sys_lib_search_path_spec \ 12431sys_lib_dlsearch_path_spec; do 12432 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12433 *[\\\\\\\`\\"\\\$]*) 12434 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12435 ;; 12436 *) 12437 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12438 ;; 12439 esac 12440done 12441 12442# Fix-up fallback echo if it was mangled by the above quoting rules. 12443case \$lt_ECHO in 12444*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12445 ;; 12446esac 12447 12448ac_aux_dir='$ac_aux_dir' 12449xsi_shell='$xsi_shell' 12450lt_shell_append='$lt_shell_append' 12451 12452# See if we are running on zsh, and set the options which allow our 12453# commands through without removal of \ escapes INIT. 12454if test -n "\${ZSH_VERSION+set}" ; then 12455 setopt NO_GLOB_SUBST 12456fi 12457 12458 12459 PACKAGE='$PACKAGE' 12460 VERSION='$VERSION' 12461 TIMESTAMP='$TIMESTAMP' 12462 RM='$RM' 12463 ofile='$ofile' 12464 12465 12466 12467 12468 12469_ACEOF 12470 12471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12472 12473# Handling of arguments. 12474for ac_config_target in $ac_config_targets 12475do 12476 case $ac_config_target in 12477 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12478 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12479 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12480 "libusb.pc") CONFIG_FILES="$CONFIG_FILES libusb.pc" ;; 12481 "libusb-config") CONFIG_FILES="$CONFIG_FILES libusb-config" ;; 12482 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12483 "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;; 12484 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 12485 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 12486 12487 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12488$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12489 { (exit 1); exit 1; }; };; 12490 esac 12491done 12492 12493 12494# If the user did not use the arguments to specify the items to instantiate, 12495# then the envvar interface is used. Set only those that are not. 12496# We use the long form for the default assignment because of an extremely 12497# bizarre bug on SunOS 4.1.3. 12498if $ac_need_defaults; then 12499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12502fi 12503 12504# Have a temporary directory for convenience. Make it in the build tree 12505# simply because there is no reason against having it here, and in addition, 12506# creating and moving files from /tmp can sometimes cause problems. 12507# Hook for its removal unless debugging. 12508# Note that there is a small window in which the directory will not be cleaned: 12509# after its creation but before its name has been assigned to `$tmp'. 12510$debug || 12511{ 12512 tmp= 12513 trap 'exit_status=$? 12514 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12515' 0 12516 trap '{ (exit 1); exit 1; }' 1 2 13 15 12517} 12518# Create a (secure) tmp directory for tmp files. 12519 12520{ 12521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12522 test -n "$tmp" && test -d "$tmp" 12523} || 12524{ 12525 tmp=./conf$$-$RANDOM 12526 (umask 077 && mkdir "$tmp") 12527} || 12528{ 12529 $as_echo "$as_me: cannot create a temporary directory in ." >&2 12530 { (exit 1); exit 1; } 12531} 12532 12533# Set up the scripts for CONFIG_FILES section. 12534# No need to generate them if there are no CONFIG_FILES. 12535# This happens for instance with `./config.status config.h'. 12536if test -n "$CONFIG_FILES"; then 12537 12538 12539ac_cr=' 12540' 12541ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12542if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12543 ac_cs_awk_cr='\\r' 12544else 12545 ac_cs_awk_cr=$ac_cr 12546fi 12547 12548echo 'BEGIN {' >"$tmp/subs1.awk" && 12549_ACEOF 12550 12551 12552{ 12553 echo "cat >conf$$subs.awk <<_ACEOF" && 12554 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12555 echo "_ACEOF" 12556} >conf$$subs.sh || 12557 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12558$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12559 { (exit 1); exit 1; }; } 12560ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12561ac_delim='%!_!# ' 12562for ac_last_try in false false false false false :; do 12563 . ./conf$$subs.sh || 12564 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12565$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12566 { (exit 1); exit 1; }; } 12567 12568 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12569 if test $ac_delim_n = $ac_delim_num; then 12570 break 12571 elif $ac_last_try; then 12572 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12573$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12574 { (exit 1); exit 1; }; } 12575 else 12576 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12577 fi 12578done 12579rm -f conf$$subs.sh 12580 12581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12582cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12583_ACEOF 12584sed -n ' 12585h 12586s/^/S["/; s/!.*/"]=/ 12587p 12588g 12589s/^[^!]*!// 12590:repl 12591t repl 12592s/'"$ac_delim"'$// 12593t delim 12594:nl 12595h 12596s/\(.\{148\}\).*/\1/ 12597t more1 12598s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12599p 12600n 12601b repl 12602:more1 12603s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12604p 12605g 12606s/.\{148\}// 12607t nl 12608:delim 12609h 12610s/\(.\{148\}\).*/\1/ 12611t more2 12612s/["\\]/\\&/g; s/^/"/; s/$/"/ 12613p 12614b 12615:more2 12616s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12617p 12618g 12619s/.\{148\}// 12620t delim 12621' <conf$$subs.awk | sed ' 12622/^[^""]/{ 12623 N 12624 s/\n// 12625} 12626' >>$CONFIG_STATUS || ac_write_fail=1 12627rm -f conf$$subs.awk 12628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12629_ACAWK 12630cat >>"\$tmp/subs1.awk" <<_ACAWK && 12631 for (key in S) S_is_set[key] = 1 12632 FS = "" 12633 12634} 12635{ 12636 line = $ 0 12637 nfields = split(line, field, "@") 12638 substed = 0 12639 len = length(field[1]) 12640 for (i = 2; i < nfields; i++) { 12641 key = field[i] 12642 keylen = length(key) 12643 if (S_is_set[key]) { 12644 value = S[key] 12645 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12646 len += length(value) + length(field[++i]) 12647 substed = 1 12648 } else 12649 len += 1 + keylen 12650 } 12651 12652 print line 12653} 12654 12655_ACAWK 12656_ACEOF 12657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12658if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12659 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12660else 12661 cat 12662fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12663 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 12664$as_echo "$as_me: error: could not setup config files machinery" >&2;} 12665 { (exit 1); exit 1; }; } 12666_ACEOF 12667 12668# VPATH may cause trouble with some makes, so we remove $(srcdir), 12669# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12670# trailing colons and then remove the whole line if VPATH becomes empty 12671# (actually we leave an empty line to preserve line numbers). 12672if test "x$srcdir" = x.; then 12673 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12674s/:*\$(srcdir):*/:/ 12675s/:*\${srcdir}:*/:/ 12676s/:*@srcdir@:*/:/ 12677s/^\([^=]*=[ ]*\):*/\1/ 12678s/:*$// 12679s/^[^=]*=[ ]*$// 12680}' 12681fi 12682 12683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12684fi # test -n "$CONFIG_FILES" 12685 12686# Set up the scripts for CONFIG_HEADERS section. 12687# No need to generate them if there are no CONFIG_HEADERS. 12688# This happens for instance with `./config.status Makefile'. 12689if test -n "$CONFIG_HEADERS"; then 12690cat >"$tmp/defines.awk" <<\_ACAWK || 12691BEGIN { 12692_ACEOF 12693 12694# Transform confdefs.h into an awk script `defines.awk', embedded as 12695# here-document in config.status, that substitutes the proper values into 12696# config.h.in to produce config.h. 12697 12698# Create a delimiter string that does not exist in confdefs.h, to ease 12699# handling of long lines. 12700ac_delim='%!_!# ' 12701for ac_last_try in false false :; do 12702 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12703 if test -z "$ac_t"; then 12704 break 12705 elif $ac_last_try; then 12706 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 12707$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 12708 { (exit 1); exit 1; }; } 12709 else 12710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12711 fi 12712done 12713 12714# For the awk script, D is an array of macro values keyed by name, 12715# likewise P contains macro parameters if any. Preserve backslash 12716# newline sequences. 12717 12718ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12719sed -n ' 12720s/.\{148\}/&'"$ac_delim"'/g 12721t rset 12722:rset 12723s/^[ ]*#[ ]*define[ ][ ]*/ / 12724t def 12725d 12726:def 12727s/\\$// 12728t bsnl 12729s/["\\]/\\&/g 12730s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12731D["\1"]=" \3"/p 12732s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12733d 12734:bsnl 12735s/["\\]/\\&/g 12736s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12737D["\1"]=" \3\\\\\\n"\\/p 12738t cont 12739s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12740t cont 12741d 12742:cont 12743n 12744s/.\{148\}/&'"$ac_delim"'/g 12745t clear 12746:clear 12747s/\\$// 12748t bsnlc 12749s/["\\]/\\&/g; s/^/"/; s/$/"/p 12750d 12751:bsnlc 12752s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12753b cont 12754' <confdefs.h | sed ' 12755s/'"$ac_delim"'/"\\\ 12756"/g' >>$CONFIG_STATUS || ac_write_fail=1 12757 12758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12759 for (key in D) D_is_set[key] = 1 12760 FS = "" 12761} 12762/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12763 line = \$ 0 12764 split(line, arg, " ") 12765 if (arg[1] == "#") { 12766 defundef = arg[2] 12767 mac1 = arg[3] 12768 } else { 12769 defundef = substr(arg[1], 2) 12770 mac1 = arg[2] 12771 } 12772 split(mac1, mac2, "(") #) 12773 macro = mac2[1] 12774 prefix = substr(line, 1, index(line, defundef) - 1) 12775 if (D_is_set[macro]) { 12776 # Preserve the white space surrounding the "#". 12777 print prefix "define", macro P[macro] D[macro] 12778 next 12779 } else { 12780 # Replace #undef with comments. This is necessary, for example, 12781 # in the case of _POSIX_SOURCE, which is predefined and required 12782 # on some systems where configure will not decide to define it. 12783 if (defundef == "undef") { 12784 print "/*", prefix defundef, macro, "*/" 12785 next 12786 } 12787 } 12788} 12789{ print } 12790_ACAWK 12791_ACEOF 12792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12793 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 12794$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 12795 { (exit 1); exit 1; }; } 12796fi # test -n "$CONFIG_HEADERS" 12797 12798 12799eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12800shift 12801for ac_tag 12802do 12803 case $ac_tag in 12804 :[FHLC]) ac_mode=$ac_tag; continue;; 12805 esac 12806 case $ac_mode$ac_tag in 12807 :[FHL]*:*);; 12808 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 12809$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 12810 { (exit 1); exit 1; }; };; 12811 :[FH]-) ac_tag=-:-;; 12812 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12813 esac 12814 ac_save_IFS=$IFS 12815 IFS=: 12816 set x $ac_tag 12817 IFS=$ac_save_IFS 12818 shift 12819 ac_file=$1 12820 shift 12821 12822 case $ac_mode in 12823 :L) ac_source=$1;; 12824 :[FH]) 12825 ac_file_inputs= 12826 for ac_f 12827 do 12828 case $ac_f in 12829 -) ac_f="$tmp/stdin";; 12830 *) # Look for the file first in the build tree, then in the source tree 12831 # (if the path is not absolute). The absolute path cannot be DOS-style, 12832 # because $ac_f cannot contain `:'. 12833 test -f "$ac_f" || 12834 case $ac_f in 12835 [\\/$]*) false;; 12836 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12837 esac || 12838 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12839$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12840 { (exit 1); exit 1; }; };; 12841 esac 12842 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12843 ac_file_inputs="$ac_file_inputs '$ac_f'" 12844 done 12845 12846 # Let's still pretend it is `configure' which instantiates (i.e., don't 12847 # use $as_me), people would be surprised to read: 12848 # /* config.h. Generated by config.status. */ 12849 configure_input='Generated from '` 12850 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12851 `' by configure.' 12852 if test x"$ac_file" != x-; then 12853 configure_input="$ac_file. $configure_input" 12854 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 12855$as_echo "$as_me: creating $ac_file" >&6;} 12856 fi 12857 # Neutralize special characters interpreted by sed in replacement strings. 12858 case $configure_input in #( 12859 *\&* | *\|* | *\\* ) 12860 ac_sed_conf_input=`$as_echo "$configure_input" | 12861 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12862 *) ac_sed_conf_input=$configure_input;; 12863 esac 12864 12865 case $ac_tag in 12866 *:-:* | *:-) cat >"$tmp/stdin" \ 12867 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12868$as_echo "$as_me: error: could not create $ac_file" >&2;} 12869 { (exit 1); exit 1; }; } ;; 12870 esac 12871 ;; 12872 esac 12873 12874 ac_dir=`$as_dirname -- "$ac_file" || 12875$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12876 X"$ac_file" : 'X\(//\)[^/]' \| \ 12877 X"$ac_file" : 'X\(//\)$' \| \ 12878 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12879$as_echo X"$ac_file" | 12880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12881 s//\1/ 12882 q 12883 } 12884 /^X\(\/\/\)[^/].*/{ 12885 s//\1/ 12886 q 12887 } 12888 /^X\(\/\/\)$/{ 12889 s//\1/ 12890 q 12891 } 12892 /^X\(\/\).*/{ 12893 s//\1/ 12894 q 12895 } 12896 s/.*/./; q'` 12897 { as_dir="$ac_dir" 12898 case $as_dir in #( 12899 -*) as_dir=./$as_dir;; 12900 esac 12901 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12902 as_dirs= 12903 while :; do 12904 case $as_dir in #( 12905 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12906 *) as_qdir=$as_dir;; 12907 esac 12908 as_dirs="'$as_qdir' $as_dirs" 12909 as_dir=`$as_dirname -- "$as_dir" || 12910$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12911 X"$as_dir" : 'X\(//\)[^/]' \| \ 12912 X"$as_dir" : 'X\(//\)$' \| \ 12913 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12914$as_echo X"$as_dir" | 12915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12916 s//\1/ 12917 q 12918 } 12919 /^X\(\/\/\)[^/].*/{ 12920 s//\1/ 12921 q 12922 } 12923 /^X\(\/\/\)$/{ 12924 s//\1/ 12925 q 12926 } 12927 /^X\(\/\).*/{ 12928 s//\1/ 12929 q 12930 } 12931 s/.*/./; q'` 12932 test -d "$as_dir" && break 12933 done 12934 test -z "$as_dirs" || eval "mkdir $as_dirs" 12935 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12936$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 12937 { (exit 1); exit 1; }; }; } 12938 ac_builddir=. 12939 12940case "$ac_dir" in 12941.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12942*) 12943 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12944 # A ".." for each directory in $ac_dir_suffix. 12945 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12946 case $ac_top_builddir_sub in 12947 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12948 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12949 esac ;; 12950esac 12951ac_abs_top_builddir=$ac_pwd 12952ac_abs_builddir=$ac_pwd$ac_dir_suffix 12953# for backward compatibility: 12954ac_top_builddir=$ac_top_build_prefix 12955 12956case $srcdir in 12957 .) # We are building in place. 12958 ac_srcdir=. 12959 ac_top_srcdir=$ac_top_builddir_sub 12960 ac_abs_top_srcdir=$ac_pwd ;; 12961 [\\/]* | ?:[\\/]* ) # Absolute name. 12962 ac_srcdir=$srcdir$ac_dir_suffix; 12963 ac_top_srcdir=$srcdir 12964 ac_abs_top_srcdir=$srcdir ;; 12965 *) # Relative name. 12966 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12967 ac_top_srcdir=$ac_top_build_prefix$srcdir 12968 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12969esac 12970ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12971 12972 12973 case $ac_mode in 12974 :F) 12975 # 12976 # CONFIG_FILE 12977 # 12978 12979 case $INSTALL in 12980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12981 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12982 esac 12983 ac_MKDIR_P=$MKDIR_P 12984 case $MKDIR_P in 12985 [\\/$]* | ?:[\\/]* ) ;; 12986 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12987 esac 12988_ACEOF 12989 12990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12991# If the template does not know about datarootdir, expand it. 12992# FIXME: This hack should be removed a few years after 2.60. 12993ac_datarootdir_hack=; ac_datarootdir_seen= 12994 12995ac_sed_dataroot=' 12996/datarootdir/ { 12997 p 12998 q 12999} 13000/@datadir@/p 13001/@docdir@/p 13002/@infodir@/p 13003/@localedir@/p 13004/@mandir@/p 13005' 13006case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13007*datarootdir*) ac_datarootdir_seen=yes;; 13008*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13009 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13010$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13011_ACEOF 13012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13013 ac_datarootdir_hack=' 13014 s&@datadir@&$datadir&g 13015 s&@docdir@&$docdir&g 13016 s&@infodir@&$infodir&g 13017 s&@localedir@&$localedir&g 13018 s&@mandir@&$mandir&g 13019 s&\\\${datarootdir}&$datarootdir&g' ;; 13020esac 13021_ACEOF 13022 13023# Neutralize VPATH when `$srcdir' = `.'. 13024# Shell code in configure.ac might set extrasub. 13025# FIXME: do we really want to maintain this feature? 13026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13027ac_sed_extra="$ac_vpsub 13028$extrasub 13029_ACEOF 13030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13031:t 13032/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13033s|@configure_input@|$ac_sed_conf_input|;t t 13034s&@top_builddir@&$ac_top_builddir_sub&;t t 13035s&@top_build_prefix@&$ac_top_build_prefix&;t t 13036s&@srcdir@&$ac_srcdir&;t t 13037s&@abs_srcdir@&$ac_abs_srcdir&;t t 13038s&@top_srcdir@&$ac_top_srcdir&;t t 13039s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13040s&@builddir@&$ac_builddir&;t t 13041s&@abs_builddir@&$ac_abs_builddir&;t t 13042s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13043s&@INSTALL@&$ac_INSTALL&;t t 13044s&@MKDIR_P@&$ac_MKDIR_P&;t t 13045$ac_datarootdir_hack 13046" 13047eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13048 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13049$as_echo "$as_me: error: could not create $ac_file" >&2;} 13050 { (exit 1); exit 1; }; } 13051 13052test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13053 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13055 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13056which seems to be undefined. Please make sure it is defined." >&5 13057$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13058which seems to be undefined. Please make sure it is defined." >&2;} 13059 13060 rm -f "$tmp/stdin" 13061 case $ac_file in 13062 -) cat "$tmp/out" && rm -f "$tmp/out";; 13063 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13064 esac \ 13065 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13066$as_echo "$as_me: error: could not create $ac_file" >&2;} 13067 { (exit 1); exit 1; }; } 13068 ;; 13069 :H) 13070 # 13071 # CONFIG_HEADER 13072 # 13073 if test x"$ac_file" != x-; then 13074 { 13075 $as_echo "/* $configure_input */" \ 13076 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13077 } >"$tmp/config.h" \ 13078 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13079$as_echo "$as_me: error: could not create $ac_file" >&2;} 13080 { (exit 1); exit 1; }; } 13081 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13082 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13083$as_echo "$as_me: $ac_file is unchanged" >&6;} 13084 else 13085 rm -f "$ac_file" 13086 mv "$tmp/config.h" "$ac_file" \ 13087 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13088$as_echo "$as_me: error: could not create $ac_file" >&2;} 13089 { (exit 1); exit 1; }; } 13090 fi 13091 else 13092 $as_echo "/* $configure_input */" \ 13093 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13094 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 13095$as_echo "$as_me: error: could not create -" >&2;} 13096 { (exit 1); exit 1; }; } 13097 fi 13098# Compute "$ac_file"'s index in $config_headers. 13099_am_arg="$ac_file" 13100_am_stamp_count=1 13101for _am_header in $config_headers :; do 13102 case $_am_header in 13103 $_am_arg | $_am_arg:* ) 13104 break ;; 13105 * ) 13106 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13107 esac 13108done 13109echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13110$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13111 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13112 X"$_am_arg" : 'X\(//\)$' \| \ 13113 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13114$as_echo X"$_am_arg" | 13115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13116 s//\1/ 13117 q 13118 } 13119 /^X\(\/\/\)[^/].*/{ 13120 s//\1/ 13121 q 13122 } 13123 /^X\(\/\/\)$/{ 13124 s//\1/ 13125 q 13126 } 13127 /^X\(\/\).*/{ 13128 s//\1/ 13129 q 13130 } 13131 s/.*/./; q'`/stamp-h$_am_stamp_count 13132 ;; 13133 13134 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 13135$as_echo "$as_me: executing $ac_file commands" >&6;} 13136 ;; 13137 esac 13138 13139 13140 case $ac_file$ac_mode in 13141 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files 13142# are listed without --file. Let's play safe and only enable the eval 13143# if we detect the quoting. 13144case $CONFIG_FILES in 13145*\'*) eval set x "$CONFIG_FILES" ;; 13146*) set x $CONFIG_FILES ;; 13147esac 13148shift 13149for mf 13150do 13151 # Strip MF so we end up with the name of the file. 13152 mf=`echo "$mf" | sed -e 's/:.*$//'` 13153 # Check whether this is an Automake generated Makefile or not. 13154 # We used to match only the files named `Makefile.in', but 13155 # some people rename them; so instead we look at the file content. 13156 # Grep'ing the first line is not enough: some people post-process 13157 # each Makefile.in and add a new line on top of each file to say so. 13158 # Grep'ing the whole file is not good either: AIX grep has a line 13159 # limit of 2048, but all sed's we know have understand at least 4000. 13160 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13161 dirpart=`$as_dirname -- "$mf" || 13162$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13163 X"$mf" : 'X\(//\)[^/]' \| \ 13164 X"$mf" : 'X\(//\)$' \| \ 13165 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13166$as_echo X"$mf" | 13167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13168 s//\1/ 13169 q 13170 } 13171 /^X\(\/\/\)[^/].*/{ 13172 s//\1/ 13173 q 13174 } 13175 /^X\(\/\/\)$/{ 13176 s//\1/ 13177 q 13178 } 13179 /^X\(\/\).*/{ 13180 s//\1/ 13181 q 13182 } 13183 s/.*/./; q'` 13184 else 13185 continue 13186 fi 13187 # Extract the definition of DEPDIR, am__include, and am__quote 13188 # from the Makefile without running `make'. 13189 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13190 test -z "$DEPDIR" && continue 13191 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13192 test -z "am__include" && continue 13193 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13194 # When using ansi2knr, U may be empty or an underscore; expand it 13195 U=`sed -n 's/^U = //p' < "$mf"` 13196 # Find all dependency output files, they are included files with 13197 # $(DEPDIR) in their names. We invoke sed twice because it is the 13198 # simplest approach to changing $(DEPDIR) to its actual value in the 13199 # expansion. 13200 for file in `sed -n " 13201 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13202 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13203 # Make sure the directory exists. 13204 test -f "$dirpart/$file" && continue 13205 fdir=`$as_dirname -- "$file" || 13206$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13207 X"$file" : 'X\(//\)[^/]' \| \ 13208 X"$file" : 'X\(//\)$' \| \ 13209 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13210$as_echo X"$file" | 13211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13212 s//\1/ 13213 q 13214 } 13215 /^X\(\/\/\)[^/].*/{ 13216 s//\1/ 13217 q 13218 } 13219 /^X\(\/\/\)$/{ 13220 s//\1/ 13221 q 13222 } 13223 /^X\(\/\).*/{ 13224 s//\1/ 13225 q 13226 } 13227 s/.*/./; q'` 13228 { as_dir=$dirpart/$fdir 13229 case $as_dir in #( 13230 -*) as_dir=./$as_dir;; 13231 esac 13232 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13233 as_dirs= 13234 while :; do 13235 case $as_dir in #( 13236 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13237 *) as_qdir=$as_dir;; 13238 esac 13239 as_dirs="'$as_qdir' $as_dirs" 13240 as_dir=`$as_dirname -- "$as_dir" || 13241$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13242 X"$as_dir" : 'X\(//\)[^/]' \| \ 13243 X"$as_dir" : 'X\(//\)$' \| \ 13244 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13245$as_echo X"$as_dir" | 13246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13247 s//\1/ 13248 q 13249 } 13250 /^X\(\/\/\)[^/].*/{ 13251 s//\1/ 13252 q 13253 } 13254 /^X\(\/\/\)$/{ 13255 s//\1/ 13256 q 13257 } 13258 /^X\(\/\).*/{ 13259 s//\1/ 13260 q 13261 } 13262 s/.*/./; q'` 13263 test -d "$as_dir" && break 13264 done 13265 test -z "$as_dirs" || eval "mkdir $as_dirs" 13266 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13267$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13268 { (exit 1); exit 1; }; }; } 13269 # echo "creating $dirpart/$file" 13270 echo '# dummy' > "$dirpart/$file" 13271 done 13272done 13273 ;; 13274 "libtool":C) 13275 13276 # See if we are running on zsh, and set the options which allow our 13277 # commands through without removal of \ escapes. 13278 if test -n "${ZSH_VERSION+set}" ; then 13279 setopt NO_GLOB_SUBST 13280 fi 13281 13282 cfgfile="${ofile}T" 13283 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13284 $RM "$cfgfile" 13285 13286 cat <<_LT_EOF >> "$cfgfile" 13287#! $SHELL 13288 13289# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13290# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13291# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13292# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13293# 13294# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13295# 2006, 2007, 2008 Free Software Foundation, Inc. 13296# Written by Gordon Matzigkeit, 1996 13297# 13298# This file is part of GNU Libtool. 13299# 13300# GNU Libtool is free software; you can redistribute it and/or 13301# modify it under the terms of the GNU General Public License as 13302# published by the Free Software Foundation; either version 2 of 13303# the License, or (at your option) any later version. 13304# 13305# As a special exception to the GNU General Public License, 13306# if you distribute this file as part of a program or library that 13307# is built using GNU Libtool, you may include this file under the 13308# same distribution terms that you use for the rest of that program. 13309# 13310# GNU Libtool is distributed in the hope that it will be useful, 13311# but WITHOUT ANY WARRANTY; without even the implied warranty of 13312# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13313# GNU General Public License for more details. 13314# 13315# You should have received a copy of the GNU General Public License 13316# along with GNU Libtool; see the file COPYING. If not, a copy 13317# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13318# obtained by writing to the Free Software Foundation, Inc., 13319# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13320 13321 13322# The names of the tagged configurations supported by this script. 13323available_tags="" 13324 13325# ### BEGIN LIBTOOL CONFIG 13326 13327# Which release of libtool.m4 was used? 13328macro_version=$macro_version 13329macro_revision=$macro_revision 13330 13331# Whether or not to build shared libraries. 13332build_libtool_libs=$enable_shared 13333 13334# Whether or not to build static libraries. 13335build_old_libs=$enable_static 13336 13337# What type of objects to build. 13338pic_mode=$pic_mode 13339 13340# Whether or not to optimize for fast installation. 13341fast_install=$enable_fast_install 13342 13343# The host system. 13344host_alias=$host_alias 13345host=$host 13346host_os=$host_os 13347 13348# The build system. 13349build_alias=$build_alias 13350build=$build 13351build_os=$build_os 13352 13353# A sed program that does not truncate output. 13354SED=$lt_SED 13355 13356# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13357Xsed="\$SED -e 1s/^X//" 13358 13359# A grep program that handles long lines. 13360GREP=$lt_GREP 13361 13362# An ERE matcher. 13363EGREP=$lt_EGREP 13364 13365# A literal string matcher. 13366FGREP=$lt_FGREP 13367 13368# A BSD- or MS-compatible name lister. 13369NM=$lt_NM 13370 13371# Whether we need soft or hard links. 13372LN_S=$lt_LN_S 13373 13374# What is the maximum length of a command? 13375max_cmd_len=$max_cmd_len 13376 13377# Object file suffix (normally "o"). 13378objext=$ac_objext 13379 13380# Executable file suffix (normally ""). 13381exeext=$exeext 13382 13383# whether the shell understands "unset". 13384lt_unset=$lt_unset 13385 13386# turn spaces into newlines. 13387SP2NL=$lt_lt_SP2NL 13388 13389# turn newlines into spaces. 13390NL2SP=$lt_lt_NL2SP 13391 13392# How to create reloadable object files. 13393reload_flag=$lt_reload_flag 13394reload_cmds=$lt_reload_cmds 13395 13396# An object symbol dumper. 13397OBJDUMP=$lt_OBJDUMP 13398 13399# Method to check whether dependent libraries are shared objects. 13400deplibs_check_method=$lt_deplibs_check_method 13401 13402# Command to use when deplibs_check_method == "file_magic". 13403file_magic_cmd=$lt_file_magic_cmd 13404 13405# The archiver. 13406AR=$lt_AR 13407AR_FLAGS=$lt_AR_FLAGS 13408 13409# A symbol stripping program. 13410STRIP=$lt_STRIP 13411 13412# Commands used to install an old-style archive. 13413RANLIB=$lt_RANLIB 13414old_postinstall_cmds=$lt_old_postinstall_cmds 13415old_postuninstall_cmds=$lt_old_postuninstall_cmds 13416 13417# A C compiler. 13418LTCC=$lt_CC 13419 13420# LTCC compiler flags. 13421LTCFLAGS=$lt_CFLAGS 13422 13423# Take the output of nm and produce a listing of raw symbols and C names. 13424global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13425 13426# Transform the output of nm in a proper C declaration. 13427global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13428 13429# Transform the output of nm in a C name address pair. 13430global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13431 13432# Transform the output of nm in a C name address pair when lib prefix is needed. 13433global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13434 13435# The name of the directory that contains temporary libtool files. 13436objdir=$objdir 13437 13438# Shell to use when invoking shell scripts. 13439SHELL=$lt_SHELL 13440 13441# An echo program that does not interpret backslashes. 13442ECHO=$lt_ECHO 13443 13444# Used to examine libraries when file_magic_cmd begins with "file". 13445MAGIC_CMD=$MAGIC_CMD 13446 13447# Must we lock files when doing compilation? 13448need_locks=$lt_need_locks 13449 13450# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13451DSYMUTIL=$lt_DSYMUTIL 13452 13453# Tool to change global to local symbols on Mac OS X. 13454NMEDIT=$lt_NMEDIT 13455 13456# Tool to manipulate fat objects and archives on Mac OS X. 13457LIPO=$lt_LIPO 13458 13459# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13460OTOOL=$lt_OTOOL 13461 13462# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13463OTOOL64=$lt_OTOOL64 13464 13465# Old archive suffix (normally "a"). 13466libext=$libext 13467 13468# Shared library suffix (normally ".so"). 13469shrext_cmds=$lt_shrext_cmds 13470 13471# The commands to extract the exported symbol list from a shared archive. 13472extract_expsyms_cmds=$lt_extract_expsyms_cmds 13473 13474# Variables whose values should be saved in libtool wrapper scripts and 13475# restored at link time. 13476variables_saved_for_relink=$lt_variables_saved_for_relink 13477 13478# Do we need the "lib" prefix for modules? 13479need_lib_prefix=$need_lib_prefix 13480 13481# Do we need a version for libraries? 13482need_version=$need_version 13483 13484# Library versioning type. 13485version_type=$version_type 13486 13487# Shared library runtime path variable. 13488runpath_var=$runpath_var 13489 13490# Shared library path variable. 13491shlibpath_var=$shlibpath_var 13492 13493# Is shlibpath searched before the hard-coded library search path? 13494shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13495 13496# Format of library name prefix. 13497libname_spec=$lt_libname_spec 13498 13499# List of archive names. First name is the real one, the rest are links. 13500# The last name is the one that the linker finds with -lNAME 13501library_names_spec=$lt_library_names_spec 13502 13503# The coded name of the library, if different from the real name. 13504soname_spec=$lt_soname_spec 13505 13506# Command to use after installation of a shared archive. 13507postinstall_cmds=$lt_postinstall_cmds 13508 13509# Command to use after uninstallation of a shared archive. 13510postuninstall_cmds=$lt_postuninstall_cmds 13511 13512# Commands used to finish a libtool library installation in a directory. 13513finish_cmds=$lt_finish_cmds 13514 13515# As "finish_cmds", except a single script fragment to be evaled but 13516# not shown. 13517finish_eval=$lt_finish_eval 13518 13519# Whether we should hardcode library paths into libraries. 13520hardcode_into_libs=$hardcode_into_libs 13521 13522# Compile-time system search path for libraries. 13523sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13524 13525# Run-time system search path for libraries. 13526sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13527 13528# Whether dlopen is supported. 13529dlopen_support=$enable_dlopen 13530 13531# Whether dlopen of programs is supported. 13532dlopen_self=$enable_dlopen_self 13533 13534# Whether dlopen of statically linked programs is supported. 13535dlopen_self_static=$enable_dlopen_self_static 13536 13537# Commands to strip libraries. 13538old_striplib=$lt_old_striplib 13539striplib=$lt_striplib 13540 13541 13542# The linker used to build libraries. 13543LD=$lt_LD 13544 13545# Commands used to build an old-style archive. 13546old_archive_cmds=$lt_old_archive_cmds 13547 13548# A language specific compiler. 13549CC=$lt_compiler 13550 13551# Is the compiler the GNU compiler? 13552with_gcc=$GCC 13553 13554# Compiler flag to turn off builtin functions. 13555no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13556 13557# How to pass a linker flag through the compiler. 13558wl=$lt_lt_prog_compiler_wl 13559 13560# Additional compiler flags for building library objects. 13561pic_flag=$lt_lt_prog_compiler_pic 13562 13563# Compiler flag to prevent dynamic linking. 13564link_static_flag=$lt_lt_prog_compiler_static 13565 13566# Does compiler simultaneously support -c and -o options? 13567compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13568 13569# Whether or not to add -lc for building shared libraries. 13570build_libtool_need_lc=$archive_cmds_need_lc 13571 13572# Whether or not to disallow shared libs when runtime libs are static. 13573allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13574 13575# Compiler flag to allow reflexive dlopens. 13576export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13577 13578# Compiler flag to generate shared objects directly from archives. 13579whole_archive_flag_spec=$lt_whole_archive_flag_spec 13580 13581# Whether the compiler copes with passing no objects directly. 13582compiler_needs_object=$lt_compiler_needs_object 13583 13584# Create an old-style archive from a shared archive. 13585old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13586 13587# Create a temporary old-style archive to link instead of a shared archive. 13588old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13589 13590# Commands used to build a shared archive. 13591archive_cmds=$lt_archive_cmds 13592archive_expsym_cmds=$lt_archive_expsym_cmds 13593 13594# Commands used to build a loadable module if different from building 13595# a shared archive. 13596module_cmds=$lt_module_cmds 13597module_expsym_cmds=$lt_module_expsym_cmds 13598 13599# Whether we are building with GNU ld or not. 13600with_gnu_ld=$lt_with_gnu_ld 13601 13602# Flag that allows shared libraries with undefined symbols to be built. 13603allow_undefined_flag=$lt_allow_undefined_flag 13604 13605# Flag that enforces no undefined symbols. 13606no_undefined_flag=$lt_no_undefined_flag 13607 13608# Flag to hardcode \$libdir into a binary during linking. 13609# This must work even if \$libdir does not exist 13610hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13611 13612# If ld is used when linking, flag to hardcode \$libdir into a binary 13613# during linking. This must work even if \$libdir does not exist. 13614hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13615 13616# Whether we need a single "-rpath" flag with a separated argument. 13617hardcode_libdir_separator=$lt_hardcode_libdir_separator 13618 13619# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13620# DIR into the resulting binary. 13621hardcode_direct=$hardcode_direct 13622 13623# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13624# DIR into the resulting binary and the resulting library dependency is 13625# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13626# library is relocated. 13627hardcode_direct_absolute=$hardcode_direct_absolute 13628 13629# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13630# into the resulting binary. 13631hardcode_minus_L=$hardcode_minus_L 13632 13633# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13634# into the resulting binary. 13635hardcode_shlibpath_var=$hardcode_shlibpath_var 13636 13637# Set to "yes" if building a shared library automatically hardcodes DIR 13638# into the library and all subsequent libraries and executables linked 13639# against it. 13640hardcode_automatic=$hardcode_automatic 13641 13642# Set to yes if linker adds runtime paths of dependent libraries 13643# to runtime path list. 13644inherit_rpath=$inherit_rpath 13645 13646# Whether libtool must link a program against all its dependency libraries. 13647link_all_deplibs=$link_all_deplibs 13648 13649# Fix the shell variable \$srcfile for the compiler. 13650fix_srcfile_path=$lt_fix_srcfile_path 13651 13652# Set to "yes" if exported symbols are required. 13653always_export_symbols=$always_export_symbols 13654 13655# The commands to list exported symbols. 13656export_symbols_cmds=$lt_export_symbols_cmds 13657 13658# Symbols that should not be listed in the preloaded symbols. 13659exclude_expsyms=$lt_exclude_expsyms 13660 13661# Symbols that must always be exported. 13662include_expsyms=$lt_include_expsyms 13663 13664# Commands necessary for linking programs (against libraries) with templates. 13665prelink_cmds=$lt_prelink_cmds 13666 13667# Specify filename containing input files. 13668file_list_spec=$lt_file_list_spec 13669 13670# How to hardcode a shared library path into an executable. 13671hardcode_action=$hardcode_action 13672 13673# ### END LIBTOOL CONFIG 13674 13675_LT_EOF 13676 13677 case $host_os in 13678 aix3*) 13679 cat <<\_LT_EOF >> "$cfgfile" 13680# AIX sometimes has problems with the GCC collect2 program. For some 13681# reason, if we set the COLLECT_NAMES environment variable, the problems 13682# vanish in a puff of smoke. 13683if test "X${COLLECT_NAMES+set}" != Xset; then 13684 COLLECT_NAMES= 13685 export COLLECT_NAMES 13686fi 13687_LT_EOF 13688 ;; 13689 esac 13690 13691 13692ltmain="$ac_aux_dir/ltmain.sh" 13693 13694 13695 # We use sed instead of cat because bash on DJGPP gets confused if 13696 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13697 # text mode, it properly converts lines to CR/LF. This bash problem 13698 # is reportedly fixed, but why not run on old versions too? 13699 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13700 || (rm -f "$cfgfile"; exit 1) 13701 13702 case $xsi_shell in 13703 yes) 13704 cat << \_LT_EOF >> "$cfgfile" 13705 13706# func_dirname file append nondir_replacement 13707# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13708# otherwise set result to NONDIR_REPLACEMENT. 13709func_dirname () 13710{ 13711 case ${1} in 13712 */*) func_dirname_result="${1%/*}${2}" ;; 13713 * ) func_dirname_result="${3}" ;; 13714 esac 13715} 13716 13717# func_basename file 13718func_basename () 13719{ 13720 func_basename_result="${1##*/}" 13721} 13722 13723# func_dirname_and_basename file append nondir_replacement 13724# perform func_basename and func_dirname in a single function 13725# call: 13726# dirname: Compute the dirname of FILE. If nonempty, 13727# add APPEND to the result, otherwise set result 13728# to NONDIR_REPLACEMENT. 13729# value returned in "$func_dirname_result" 13730# basename: Compute filename of FILE. 13731# value retuned in "$func_basename_result" 13732# Implementation must be kept synchronized with func_dirname 13733# and func_basename. For efficiency, we do not delegate to 13734# those functions but instead duplicate the functionality here. 13735func_dirname_and_basename () 13736{ 13737 case ${1} in 13738 */*) func_dirname_result="${1%/*}${2}" ;; 13739 * ) func_dirname_result="${3}" ;; 13740 esac 13741 func_basename_result="${1##*/}" 13742} 13743 13744# func_stripname prefix suffix name 13745# strip PREFIX and SUFFIX off of NAME. 13746# PREFIX and SUFFIX must not contain globbing or regex special 13747# characters, hashes, percent signs, but SUFFIX may contain a leading 13748# dot (in which case that matches only a dot). 13749func_stripname () 13750{ 13751 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13752 # positional parameters, so assign one to ordinary parameter first. 13753 func_stripname_result=${3} 13754 func_stripname_result=${func_stripname_result#"${1}"} 13755 func_stripname_result=${func_stripname_result%"${2}"} 13756} 13757 13758# func_opt_split 13759func_opt_split () 13760{ 13761 func_opt_split_opt=${1%%=*} 13762 func_opt_split_arg=${1#*=} 13763} 13764 13765# func_lo2o object 13766func_lo2o () 13767{ 13768 case ${1} in 13769 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13770 *) func_lo2o_result=${1} ;; 13771 esac 13772} 13773 13774# func_xform libobj-or-source 13775func_xform () 13776{ 13777 func_xform_result=${1%.*}.lo 13778} 13779 13780# func_arith arithmetic-term... 13781func_arith () 13782{ 13783 func_arith_result=$(( $* )) 13784} 13785 13786# func_len string 13787# STRING may not start with a hyphen. 13788func_len () 13789{ 13790 func_len_result=${#1} 13791} 13792 13793_LT_EOF 13794 ;; 13795 *) # Bourne compatible functions. 13796 cat << \_LT_EOF >> "$cfgfile" 13797 13798# func_dirname file append nondir_replacement 13799# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13800# otherwise set result to NONDIR_REPLACEMENT. 13801func_dirname () 13802{ 13803 # Extract subdirectory from the argument. 13804 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13805 if test "X$func_dirname_result" = "X${1}"; then 13806 func_dirname_result="${3}" 13807 else 13808 func_dirname_result="$func_dirname_result${2}" 13809 fi 13810} 13811 13812# func_basename file 13813func_basename () 13814{ 13815 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13816} 13817 13818 13819# func_stripname prefix suffix name 13820# strip PREFIX and SUFFIX off of NAME. 13821# PREFIX and SUFFIX must not contain globbing or regex special 13822# characters, hashes, percent signs, but SUFFIX may contain a leading 13823# dot (in which case that matches only a dot). 13824# func_strip_suffix prefix name 13825func_stripname () 13826{ 13827 case ${2} in 13828 .*) func_stripname_result=`$ECHO "X${3}" \ 13829 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13830 *) func_stripname_result=`$ECHO "X${3}" \ 13831 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13832 esac 13833} 13834 13835# sed scripts: 13836my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13837my_sed_long_arg='1s/^-[^=]*=//' 13838 13839# func_opt_split 13840func_opt_split () 13841{ 13842 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13843 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13844} 13845 13846# func_lo2o object 13847func_lo2o () 13848{ 13849 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13850} 13851 13852# func_xform libobj-or-source 13853func_xform () 13854{ 13855 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13856} 13857 13858# func_arith arithmetic-term... 13859func_arith () 13860{ 13861 func_arith_result=`expr "$@"` 13862} 13863 13864# func_len string 13865# STRING may not start with a hyphen. 13866func_len () 13867{ 13868 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13869} 13870 13871_LT_EOF 13872esac 13873 13874case $lt_shell_append in 13875 yes) 13876 cat << \_LT_EOF >> "$cfgfile" 13877 13878# func_append var value 13879# Append VALUE to the end of shell variable VAR. 13880func_append () 13881{ 13882 eval "$1+=\$2" 13883} 13884_LT_EOF 13885 ;; 13886 *) 13887 cat << \_LT_EOF >> "$cfgfile" 13888 13889# func_append var value 13890# Append VALUE to the end of shell variable VAR. 13891func_append () 13892{ 13893 eval "$1=\$$1\$2" 13894} 13895 13896_LT_EOF 13897 ;; 13898 esac 13899 13900 13901 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13902 || (rm -f "$cfgfile"; exit 1) 13903 13904 mv -f "$cfgfile" "$ofile" || 13905 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13906 chmod +x "$ofile" 13907 13908 ;; 13909 "default":C) chmod +x libusb-config ;; 13910 13911 esac 13912done # for ac_tag 13913 13914 13915{ (exit 0); exit 0; } 13916_ACEOF 13917chmod +x $CONFIG_STATUS 13918ac_clean_files=$ac_clean_files_save 13919 13920test $ac_write_fail = 0 || 13921 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 13922$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 13923 { (exit 1); exit 1; }; } 13924 13925 13926# configure is writing to config.log, and then calls config.status. 13927# config.status does its own redirection, appending to config.log. 13928# Unfortunately, on DOS this fails, as config.log is still kept open 13929# by configure, so config.status won't be able to write to it; its 13930# output is simply discarded. So we exec the FD to /dev/null, 13931# effectively closing config.log, so it can be properly (re)opened and 13932# appended to by config.status. When coming back to configure, we 13933# need to make the FD available again. 13934if test "$no_create" != yes; then 13935 ac_cs_success=: 13936 ac_config_status_args= 13937 test "$silent" = yes && 13938 ac_config_status_args="$ac_config_status_args --quiet" 13939 exec 5>/dev/null 13940 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13941 exec 5>>config.log 13942 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13943 # would make configure fail if this is the last instruction. 13944 $ac_cs_success || { (exit 1); exit 1; } 13945fi 13946if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13947 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13948$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13949fi 13950 13951 13952