1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.63 for libmtp 1.0.1. 4 # 5 # Report bugs to <libmtp-discuss (at] lists.sourceforge.net>. 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## --------------------- ## 12 ## M4sh Initialization. ## 13 ## --------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27 esac 28 29 fi 30 31 32 33 34 # PATH needs CR 35 # Avoid depending upon Character Ranges. 36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39 as_cr_digits='0123456789' 40 as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 # Support unset when possible. 84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86 else 87 as_unset=false 88 fi 89 90 91 # IFS 92 # We need space, tab and new line, in precisely that order. Quoting is 93 # there to prevent editors from complaining about space-tab. 94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 95 # splitting by setting IFS to empty value.) 96 IFS=" "" $as_nl" 97 98 # Find who we are. Look in the path if we contain no directory separator. 99 case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120 fi 121 122 # Work around bugs in pre-3.0 UWIN ksh. 123 for as_var in ENV MAIL MAILPATH 124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # Required to use basename. 137 if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140 else 141 as_expr=false 142 fi 143 144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146 else 147 as_basename=false 148 fi 149 150 151 # Name of the executable. 152 as_me=`$as_basename -- "$0" || 153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156 $as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171 # CDPATH. 172 $as_unset CDPATH 173 174 175 if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178 else 179 as_have_required=no 180 fi 181 182 if test $as_have_required = yes && (eval ": 183 (as_func_return () { 184 (exit \$1) 185 } 186 as_func_success () { 187 as_func_return 0 188 } 189 as_func_failure () { 190 as_func_return 1 191 } 192 as_func_ret_success () { 193 return 0 194 } 195 as_func_ret_failure () { 196 return 1 197 } 198 199 exitcode=0 200 if as_func_success; then 201 : 202 else 203 exitcode=1 204 echo as_func_success failed. 205 fi 206 207 if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210 fi 211 212 if as_func_ret_success; then 213 : 214 else 215 exitcode=1 216 echo as_func_ret_success failed. 217 fi 218 219 if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222 fi 223 224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226 else 227 exitcode=1 228 echo positional parameters were not saved. 229 fi 230 231 test \$exitcode = 0) || { (exit 1); exit 1; } 232 233 ( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238 ") 2> /dev/null; then 239 : 240 else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244 do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253 done 254 IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 _ASEOF 278 }; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289 else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292 esac 293 294 fi 295 296 297 : 298 (as_func_return () { 299 (exit $1) 300 } 301 as_func_success () { 302 as_func_return 0 303 } 304 as_func_failure () { 305 as_func_return 1 306 } 307 as_func_ret_success () { 308 return 0 309 } 310 as_func_ret_failure () { 311 return 1 312 } 313 314 exitcode=0 315 if as_func_success; then 316 : 317 else 318 exitcode=1 319 echo as_func_success failed. 320 fi 321 322 if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325 fi 326 327 if as_func_ret_success; then 328 : 329 else 330 exitcode=1 331 echo as_func_ret_success failed. 332 fi 333 334 if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337 fi 338 339 if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341 else 342 exitcode=1 343 echo positional parameters were not saved. 344 fi 345 346 test $exitcode = 0) || { (exit 1); exit 1; } 347 348 ( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354 _ASEOF 355 }; then 356 break 357 fi 358 359 fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369 fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378 fi 379 380 381 fi 382 383 fi 384 385 386 387 (eval "as_func_return () { 388 (exit \$1) 389 } 390 as_func_success () { 391 as_func_return 0 392 } 393 as_func_failure () { 394 as_func_return 1 395 } 396 as_func_ret_success () { 397 return 0 398 } 399 as_func_ret_failure () { 400 return 1 401 } 402 403 exitcode=0 404 if as_func_success; then 405 : 406 else 407 exitcode=1 408 echo as_func_success failed. 409 fi 410 411 if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414 fi 415 416 if as_func_ret_success; then 417 : 418 else 419 exitcode=1 420 echo as_func_ret_success failed. 421 fi 422 423 if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426 fi 427 428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430 else 431 exitcode=1 432 echo positional parameters were not saved. 433 fi 434 435 test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441 } 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485 } 486 487 488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490 else 491 as_dirname=false 492 fi 493 494 ECHO_C= ECHO_N= ECHO_T= 495 case `echo -n x` in 496 -n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501 *) 502 ECHO_N='-n';; 503 esac 504 if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507 else 508 as_expr=false 509 fi 510 511 rm -f conf$$ conf$$.exe conf$$.file 512 if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514 else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517 fi 518 if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532 else 533 as_ln_s='cp -p' 534 fi 535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536 rmdir conf$$.dir 2>/dev/null 537 538 if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540 else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543 fi 544 545 if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547 else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565 fi 566 as_executable_p=$as_test_x 567 568 # Sed expression to map a string onto a valid CPP name. 569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571 # Sed expression to map a string onto a valid variable name. 572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577 # Check that we are running under the correct shell. 578 SHELL=${CONFIG_SHELL-/bin/sh} 579 580 case X$lt_ECHO in 581 X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585 esac 586 587 ECHO=${lt_ECHO-echo} 588 if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591 elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597 else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600 fi 601 602 if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606 $* 607 _LT_EOF 608 exit 0 609 fi 610 611 # The HP-UX ksh and POSIX shell print the target directory to stdout 612 # if CDPATH is set. 613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615 if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713 fi 714 715 # Copy echo and quote the copy suitably for passing to libtool from 716 # the Makefile, instead of quoting the original, which is used later. 717 lt_ECHO=$ECHO 718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720 fi 721 722 723 724 725 exec 7<&0 </dev/null 6>&1 726 727 # Name of the host. 728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729 # so uname gets run too. 730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732 # 733 # Initializations. 734 # 735 ac_default_prefix=/usr/local 736 ac_clean_files= 737 ac_config_libobj_dir=. 738 LIBOBJS= 739 cross_compiling=no 740 subdirs= 741 MFLAGS= 742 MAKEFLAGS= 743 SHELL=${CONFIG_SHELL-/bin/sh} 744 745 # Identity of this package. 746 PACKAGE_NAME='libmtp' 747 PACKAGE_TARNAME='libmtp' 748 PACKAGE_VERSION='1.0.1' 749 PACKAGE_STRING='libmtp 1.0.1' 750 PACKAGE_BUGREPORT='libmtp-discuss (at] lists.sourceforge.net' 751 752 ac_unique_file="src/libmtp.c" 753 # Factoring default headers for most tests. 754 ac_includes_default="\ 755 #include <stdio.h> 756 #ifdef HAVE_SYS_TYPES_H 757 # include <sys/types.h> 758 #endif 759 #ifdef HAVE_SYS_STAT_H 760 # include <sys/stat.h> 761 #endif 762 #ifdef STDC_HEADERS 763 # include <stdlib.h> 764 # include <stddef.h> 765 #else 766 # ifdef HAVE_STDLIB_H 767 # include <stdlib.h> 768 # endif 769 #endif 770 #ifdef HAVE_STRING_H 771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772 # include <memory.h> 773 # endif 774 # include <string.h> 775 #endif 776 #ifdef HAVE_STRINGS_H 777 # include <strings.h> 778 #endif 779 #ifdef HAVE_INTTYPES_H 780 # include <inttypes.h> 781 #endif 782 #ifdef HAVE_STDINT_H 783 # include <stdint.h> 784 #endif 785 #ifdef HAVE_UNISTD_H 786 # include <unistd.h> 787 #endif" 788 789 ac_subst_vars='am__EXEEXT_FALSE 790 am__EXEEXT_TRUE 791 LTLIBOBJS 792 effective_target 793 LIBOBJS 794 MS_LIB_EXE_FALSE 795 MS_LIB_EXE_TRUE 796 ms_lib_exe 797 COMPILE_MINGW32_FALSE 798 COMPILE_MINGW32_TRUE 799 OSFLAGS 800 HAVE_DOXYGEN_FALSE 801 HAVE_DOXYGEN_TRUE 802 HAVE_DOXYGEN 803 LTLIBICONV 804 LIBICONV 805 CPP 806 OTOOL64 807 OTOOL 808 LIPO 809 NMEDIT 810 DSYMUTIL 811 lt_ECHO 812 RANLIB 813 AR 814 NM 815 ac_ct_DUMPBIN 816 DUMPBIN 817 LD 818 FGREP 819 EGREP 820 GREP 821 SED 822 LIBTOOL 823 OBJDUMP 824 DLLTOOL 825 AS 826 host_os 827 host_vendor 828 host_cpu 829 host 830 build_os 831 build_vendor 832 build_cpu 833 build 834 LN_S 835 am__fastdepCC_FALSE 836 am__fastdepCC_TRUE 837 CCDEPMODE 838 AMDEPBACKSLASH 839 AMDEP_FALSE 840 AMDEP_TRUE 841 am__quote 842 am__include 843 DEPDIR 844 OBJEXT 845 EXEEXT 846 ac_ct_CC 847 CPPFLAGS 848 LDFLAGS 849 CFLAGS 850 CC 851 am__untar 852 am__tar 853 AMTAR 854 am__leading_dot 855 SET_MAKE 856 AWK 857 mkdir_p 858 MKDIR_P 859 INSTALL_STRIP_PROGRAM 860 STRIP 861 install_sh 862 MAKEINFO 863 AUTOHEADER 864 AUTOMAKE 865 AUTOCONF 866 ACLOCAL 867 VERSION 868 PACKAGE 869 CYGPATH_W 870 am__isrc 871 INSTALL_DATA 872 INSTALL_SCRIPT 873 INSTALL_PROGRAM 874 target_alias 875 host_alias 876 build_alias 877 LIBS 878 ECHO_T 879 ECHO_N 880 ECHO_C 881 DEFS 882 mandir 883 localedir 884 libdir 885 psdir 886 pdfdir 887 dvidir 888 htmldir 889 infodir 890 docdir 891 oldincludedir 892 includedir 893 localstatedir 894 sharedstatedir 895 sysconfdir 896 datadir 897 datarootdir 898 libexecdir 899 sbindir 900 bindir 901 program_transform_name 902 prefix 903 exec_prefix 904 PACKAGE_BUGREPORT 905 PACKAGE_STRING 906 PACKAGE_VERSION 907 PACKAGE_TARNAME 908 PACKAGE_NAME 909 PATH_SEPARATOR 910 SHELL' 911 ac_subst_files='' 912 ac_user_opts=' 913 enable_option_checking 914 enable_dependency_tracking 915 enable_shared 916 enable_static 917 with_pic 918 enable_fast_install 919 with_gnu_ld 920 enable_libtool_lock 921 enable_rpath 922 with_libiconv_prefix 923 enable_largefile 924 ' 925 ac_precious_vars='build_alias 926 host_alias 927 target_alias 928 CC 929 CFLAGS 930 LDFLAGS 931 LIBS 932 CPPFLAGS 933 CPP' 934 935 936 # Initialize some variables set by options. 937 ac_init_help= 938 ac_init_version=false 939 ac_unrecognized_opts= 940 ac_unrecognized_sep= 941 # The variables have the same names as the options, with 942 # dashes changed to underlines. 943 cache_file=/dev/null 944 exec_prefix=NONE 945 no_create= 946 no_recursion= 947 prefix=NONE 948 program_prefix=NONE 949 program_suffix=NONE 950 program_transform_name=s,x,x, 951 silent= 952 site= 953 srcdir= 954 verbose= 955 x_includes=NONE 956 x_libraries=NONE 957 958 # Installation directory options. 959 # These are left unexpanded so users can "make install exec_prefix=/foo" 960 # and all the variables that are supposed to be based on exec_prefix 961 # by default will actually change. 962 # Use braces instead of parens because sh, perl, etc. also accept them. 963 # (The list follows the same order as the GNU Coding Standards.) 964 bindir='${exec_prefix}/bin' 965 sbindir='${exec_prefix}/sbin' 966 libexecdir='${exec_prefix}/libexec' 967 datarootdir='${prefix}/share' 968 datadir='${datarootdir}' 969 sysconfdir='${prefix}/etc' 970 sharedstatedir='${prefix}/com' 971 localstatedir='${prefix}/var' 972 includedir='${prefix}/include' 973 oldincludedir='/usr/include' 974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 975 infodir='${datarootdir}/info' 976 htmldir='${docdir}' 977 dvidir='${docdir}' 978 pdfdir='${docdir}' 979 psdir='${docdir}' 980 libdir='${exec_prefix}/lib' 981 localedir='${datarootdir}/locale' 982 mandir='${datarootdir}/man' 983 984 ac_prev= 985 ac_dashdash= 986 for ac_option 987 do 988 # If the previous option needs an argument, assign it. 989 if test -n "$ac_prev"; then 990 eval $ac_prev=\$ac_option 991 ac_prev= 992 continue 993 fi 994 995 case $ac_option in 996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 997 *) ac_optarg=yes ;; 998 esac 999 1000 # Accept the important Cygnus configure options, so we can diagnose typos. 1001 1002 case $ac_dashdash$ac_option in 1003 --) 1004 ac_dashdash=yes ;; 1005 1006 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1007 ac_prev=bindir ;; 1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1009 bindir=$ac_optarg ;; 1010 1011 -build | --build | --buil | --bui | --bu) 1012 ac_prev=build_alias ;; 1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1014 build_alias=$ac_optarg ;; 1015 1016 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1018 ac_prev=cache_file ;; 1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1021 cache_file=$ac_optarg ;; 1022 1023 --config-cache | -C) 1024 cache_file=config.cache ;; 1025 1026 -datadir | --datadir | --datadi | --datad) 1027 ac_prev=datadir ;; 1028 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1029 datadir=$ac_optarg ;; 1030 1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1032 | --dataroo | --dataro | --datar) 1033 ac_prev=datarootdir ;; 1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1036 datarootdir=$ac_optarg ;; 1037 1038 -disable-* | --disable-*) 1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1040 # Reject names that are not valid shell variable names. 1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1043 { (exit 1); exit 1; }; } 1044 ac_useropt_orig=$ac_useropt 1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1046 case $ac_user_opts in 1047 *" 1048 "enable_$ac_useropt" 1049 "*) ;; 1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1051 ac_unrecognized_sep=', ';; 1052 esac 1053 eval enable_$ac_useropt=no ;; 1054 1055 -docdir | --docdir | --docdi | --doc | --do) 1056 ac_prev=docdir ;; 1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1058 docdir=$ac_optarg ;; 1059 1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1061 ac_prev=dvidir ;; 1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1063 dvidir=$ac_optarg ;; 1064 1065 -enable-* | --enable-*) 1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1067 # Reject names that are not valid shell variable names. 1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1070 { (exit 1); exit 1; }; } 1071 ac_useropt_orig=$ac_useropt 1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 case $ac_user_opts in 1074 *" 1075 "enable_$ac_useropt" 1076 "*) ;; 1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1078 ac_unrecognized_sep=', ';; 1079 esac 1080 eval enable_$ac_useropt=\$ac_optarg ;; 1081 1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1084 | --exec | --exe | --ex) 1085 ac_prev=exec_prefix ;; 1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1088 | --exec=* | --exe=* | --ex=*) 1089 exec_prefix=$ac_optarg ;; 1090 1091 -gas | --gas | --ga | --g) 1092 # Obsolete; use --with-gas. 1093 with_gas=yes ;; 1094 1095 -help | --help | --hel | --he | -h) 1096 ac_init_help=long ;; 1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1098 ac_init_help=recursive ;; 1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1100 ac_init_help=short ;; 1101 1102 -host | --host | --hos | --ho) 1103 ac_prev=host_alias ;; 1104 -host=* | --host=* | --hos=* | --ho=*) 1105 host_alias=$ac_optarg ;; 1106 1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1108 ac_prev=htmldir ;; 1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1110 | --ht=*) 1111 htmldir=$ac_optarg ;; 1112 1113 -includedir | --includedir | --includedi | --included | --include \ 1114 | --includ | --inclu | --incl | --inc) 1115 ac_prev=includedir ;; 1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1117 | --includ=* | --inclu=* | --incl=* | --inc=*) 1118 includedir=$ac_optarg ;; 1119 1120 -infodir | --infodir | --infodi | --infod | --info | --inf) 1121 ac_prev=infodir ;; 1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1123 infodir=$ac_optarg ;; 1124 1125 -libdir | --libdir | --libdi | --libd) 1126 ac_prev=libdir ;; 1127 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1128 libdir=$ac_optarg ;; 1129 1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1131 | --libexe | --libex | --libe) 1132 ac_prev=libexecdir ;; 1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1134 | --libexe=* | --libex=* | --libe=*) 1135 libexecdir=$ac_optarg ;; 1136 1137 -localedir | --localedir | --localedi | --localed | --locale) 1138 ac_prev=localedir ;; 1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1140 localedir=$ac_optarg ;; 1141 1142 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1143 | --localstate | --localstat | --localsta | --localst | --locals) 1144 ac_prev=localstatedir ;; 1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1147 localstatedir=$ac_optarg ;; 1148 1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1150 ac_prev=mandir ;; 1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1152 mandir=$ac_optarg ;; 1153 1154 -nfp | --nfp | --nf) 1155 # Obsolete; use --without-fp. 1156 with_fp=no ;; 1157 1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1159 | --no-cr | --no-c | -n) 1160 no_create=yes ;; 1161 1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1164 no_recursion=yes ;; 1165 1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1168 | --oldin | --oldi | --old | --ol | --o) 1169 ac_prev=oldincludedir ;; 1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1173 oldincludedir=$ac_optarg ;; 1174 1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1176 ac_prev=prefix ;; 1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1178 prefix=$ac_optarg ;; 1179 1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1181 | --program-pre | --program-pr | --program-p) 1182 ac_prev=program_prefix ;; 1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1185 program_prefix=$ac_optarg ;; 1186 1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1188 | --program-suf | --program-su | --program-s) 1189 ac_prev=program_suffix ;; 1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1192 program_suffix=$ac_optarg ;; 1193 1194 -program-transform-name | --program-transform-name \ 1195 | --program-transform-nam | --program-transform-na \ 1196 | --program-transform-n | --program-transform- \ 1197 | --program-transform | --program-transfor \ 1198 | --program-transfo | --program-transf \ 1199 | --program-trans | --program-tran \ 1200 | --progr-tra | --program-tr | --program-t) 1201 ac_prev=program_transform_name ;; 1202 -program-transform-name=* | --program-transform-name=* \ 1203 | --program-transform-nam=* | --program-transform-na=* \ 1204 | --program-transform-n=* | --program-transform-=* \ 1205 | --program-transform=* | --program-transfor=* \ 1206 | --program-transfo=* | --program-transf=* \ 1207 | --program-trans=* | --program-tran=* \ 1208 | --progr-tra=* | --program-tr=* | --program-t=*) 1209 program_transform_name=$ac_optarg ;; 1210 1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1212 ac_prev=pdfdir ;; 1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1214 pdfdir=$ac_optarg ;; 1215 1216 -psdir | --psdir | --psdi | --psd | --ps) 1217 ac_prev=psdir ;; 1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1219 psdir=$ac_optarg ;; 1220 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1222 | -silent | --silent | --silen | --sile | --sil) 1223 silent=yes ;; 1224 1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1226 ac_prev=sbindir ;; 1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1228 | --sbi=* | --sb=*) 1229 sbindir=$ac_optarg ;; 1230 1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1233 | --sharedst | --shareds | --shared | --share | --shar \ 1234 | --sha | --sh) 1235 ac_prev=sharedstatedir ;; 1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1239 | --sha=* | --sh=*) 1240 sharedstatedir=$ac_optarg ;; 1241 1242 -site | --site | --sit) 1243 ac_prev=site ;; 1244 -site=* | --site=* | --sit=*) 1245 site=$ac_optarg ;; 1246 1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1248 ac_prev=srcdir ;; 1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1250 srcdir=$ac_optarg ;; 1251 1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1253 | --syscon | --sysco | --sysc | --sys | --sy) 1254 ac_prev=sysconfdir ;; 1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1257 sysconfdir=$ac_optarg ;; 1258 1259 -target | --target | --targe | --targ | --tar | --ta | --t) 1260 ac_prev=target_alias ;; 1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1262 target_alias=$ac_optarg ;; 1263 1264 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1265 verbose=yes ;; 1266 1267 -version | --version | --versio | --versi | --vers | -V) 1268 ac_init_version=: ;; 1269 1270 -with-* | --with-*) 1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1272 # Reject names that are not valid shell variable names. 1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1275 { (exit 1); exit 1; }; } 1276 ac_useropt_orig=$ac_useropt 1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1278 case $ac_user_opts in 1279 *" 1280 "with_$ac_useropt" 1281 "*) ;; 1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1283 ac_unrecognized_sep=', ';; 1284 esac 1285 eval with_$ac_useropt=\$ac_optarg ;; 1286 1287 -without-* | --without-*) 1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1289 # Reject names that are not valid shell variable names. 1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1292 { (exit 1); exit 1; }; } 1293 ac_useropt_orig=$ac_useropt 1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1295 case $ac_user_opts in 1296 *" 1297 "with_$ac_useropt" 1298 "*) ;; 1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1300 ac_unrecognized_sep=', ';; 1301 esac 1302 eval with_$ac_useropt=no ;; 1303 1304 --x) 1305 # Obsolete; use --with-x. 1306 with_x=yes ;; 1307 1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1309 | --x-incl | --x-inc | --x-in | --x-i) 1310 ac_prev=x_includes ;; 1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1313 x_includes=$ac_optarg ;; 1314 1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1317 ac_prev=x_libraries ;; 1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1320 x_libraries=$ac_optarg ;; 1321 1322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1323 Try \`$0 --help' for more information." >&2 1324 { (exit 1); exit 1; }; } 1325 ;; 1326 1327 *=*) 1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1329 # Reject names that are not valid shell variable names. 1330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1332 { (exit 1); exit 1; }; } 1333 eval $ac_envvar=\$ac_optarg 1334 export $ac_envvar ;; 1335 1336 *) 1337 # FIXME: should be removed in autoconf 3.0. 1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1342 ;; 1343 1344 esac 1345 done 1346 1347 if test -n "$ac_prev"; then 1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1350 { (exit 1); exit 1; }; } 1351 fi 1352 1353 if test -n "$ac_unrecognized_opts"; then 1354 case $enable_option_checking in 1355 no) ;; 1356 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1357 { (exit 1); exit 1; }; } ;; 1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1359 esac 1360 fi 1361 1362 # Check all directory arguments for consistency. 1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1364 datadir sysconfdir sharedstatedir localstatedir includedir \ 1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1366 libdir localedir mandir 1367 do 1368 eval ac_val=\$$ac_var 1369 # Remove trailing slashes. 1370 case $ac_val in 1371 */ ) 1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1373 eval $ac_var=\$ac_val;; 1374 esac 1375 # Be sure to have absolute directory names. 1376 case $ac_val in 1377 [\\/$]* | ?:[\\/]* ) continue;; 1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1379 esac 1380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1381 { (exit 1); exit 1; }; } 1382 done 1383 1384 # There might be people who depend on the old broken behavior: `$host' 1385 # used to hold the argument of --host etc. 1386 # FIXME: To remove some day. 1387 build=$build_alias 1388 host=$host_alias 1389 target=$target_alias 1390 1391 # FIXME: To remove some day. 1392 if test "x$host_alias" != x; then 1393 if test "x$build_alias" = x; then 1394 cross_compiling=maybe 1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1396 If a cross compiler is detected then cross compile mode will be used." >&2 1397 elif test "x$build_alias" != "x$host_alias"; then 1398 cross_compiling=yes 1399 fi 1400 fi 1401 1402 ac_tool_prefix= 1403 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1404 1405 test "$silent" = yes && exec 6>/dev/null 1406 1407 1408 ac_pwd=`pwd` && test -n "$ac_pwd" && 1409 ac_ls_di=`ls -di .` && 1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1411 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1412 { (exit 1); exit 1; }; } 1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1415 { (exit 1); exit 1; }; } 1416 1417 1418 # Find the source files, if location was not specified. 1419 if test -z "$srcdir"; then 1420 ac_srcdir_defaulted=yes 1421 # Try the directory containing this script, then the parent directory. 1422 ac_confdir=`$as_dirname -- "$as_myself" || 1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1424 X"$as_myself" : 'X\(//\)[^/]' \| \ 1425 X"$as_myself" : 'X\(//\)$' \| \ 1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1427 $as_echo X"$as_myself" | 1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1429 s//\1/ 1430 q 1431 } 1432 /^X\(\/\/\)[^/].*/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\/\)$/{ 1437 s//\1/ 1438 q 1439 } 1440 /^X\(\/\).*/{ 1441 s//\1/ 1442 q 1443 } 1444 s/.*/./; q'` 1445 srcdir=$ac_confdir 1446 if test ! -r "$srcdir/$ac_unique_file"; then 1447 srcdir=.. 1448 fi 1449 else 1450 ac_srcdir_defaulted=no 1451 fi 1452 if test ! -r "$srcdir/$ac_unique_file"; then 1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1455 { (exit 1); exit 1; }; } 1456 fi 1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1458 ac_abs_confdir=`( 1459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1460 { (exit 1); exit 1; }; } 1461 pwd)` 1462 # When building in place, set srcdir=. 1463 if test "$ac_abs_confdir" = "$ac_pwd"; then 1464 srcdir=. 1465 fi 1466 # Remove unnecessary trailing slashes from srcdir. 1467 # Double slashes in file names in object file debugging info 1468 # mess up M-x gdb in Emacs. 1469 case $srcdir in 1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1471 esac 1472 for ac_var in $ac_precious_vars; do 1473 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1474 eval ac_env_${ac_var}_value=\$${ac_var} 1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1476 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1477 done 1478 1479 # 1480 # Report the --help message. 1481 # 1482 if test "$ac_init_help" = "long"; then 1483 # Omit some internal or obsolete options to make the list less imposing. 1484 # This message is too long to be a string in the A/UX 3.1 sh. 1485 cat <<_ACEOF 1486 \`configure' configures libmtp 1.0.1 to adapt to many kinds of systems. 1487 1488 Usage: $0 [OPTION]... [VAR=VALUE]... 1489 1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1491 VAR=VALUE. See below for descriptions of some of the useful variables. 1492 1493 Defaults for the options are specified in brackets. 1494 1495 Configuration: 1496 -h, --help display this help and exit 1497 --help=short display options specific to this package 1498 --help=recursive display the short help of all the included packages 1499 -V, --version display version information and exit 1500 -q, --quiet, --silent do not print \`checking...' messages 1501 --cache-file=FILE cache test results in FILE [disabled] 1502 -C, --config-cache alias for \`--cache-file=config.cache' 1503 -n, --no-create do not create output files 1504 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1505 1506 Installation directories: 1507 --prefix=PREFIX install architecture-independent files in PREFIX 1508 [$ac_default_prefix] 1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1510 [PREFIX] 1511 1512 By default, \`make install' will install all the files in 1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1515 for instance \`--prefix=\$HOME'. 1516 1517 For better control, use the options below. 1518 1519 Fine tuning of the installation directories: 1520 --bindir=DIR user executables [EPREFIX/bin] 1521 --sbindir=DIR system admin executables [EPREFIX/sbin] 1522 --libexecdir=DIR program executables [EPREFIX/libexec] 1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1526 --libdir=DIR object code libraries [EPREFIX/lib] 1527 --includedir=DIR C header files [PREFIX/include] 1528 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1531 --infodir=DIR info documentation [DATAROOTDIR/info] 1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1533 --mandir=DIR man documentation [DATAROOTDIR/man] 1534 --docdir=DIR documentation root [DATAROOTDIR/doc/libmtp] 1535 --htmldir=DIR html documentation [DOCDIR] 1536 --dvidir=DIR dvi documentation [DOCDIR] 1537 --pdfdir=DIR pdf documentation [DOCDIR] 1538 --psdir=DIR ps documentation [DOCDIR] 1539 _ACEOF 1540 1541 cat <<\_ACEOF 1542 1543 Program names: 1544 --program-prefix=PREFIX prepend PREFIX to installed program names 1545 --program-suffix=SUFFIX append SUFFIX to installed program names 1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1547 1548 System types: 1549 --build=BUILD configure for building on BUILD [guessed] 1550 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1551 _ACEOF 1552 fi 1553 1554 if test -n "$ac_init_help"; then 1555 case $ac_init_help in 1556 short | recursive ) echo "Configuration of libmtp 1.0.1:";; 1557 esac 1558 cat <<\_ACEOF 1559 1560 Optional Features: 1561 --disable-option-checking ignore unrecognized --enable/--with options 1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1564 --disable-dependency-tracking speeds up one-time build 1565 --enable-dependency-tracking do not reject slow dependency extractors 1566 --enable-shared[=PKGS] build shared libraries [default=yes] 1567 --enable-static[=PKGS] build static libraries [default=yes] 1568 --enable-fast-install[=PKGS] 1569 optimize for fast installation [default=yes] 1570 --disable-libtool-lock avoid locking (might break parallel builds) 1571 --disable-rpath do not hardcode runtime library paths 1572 --disable-largefile omit support for large files 1573 1574 Optional Packages: 1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1577 --with-pic try to use only PIC/non-PIC objects [default=use 1578 both] 1579 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1580 --with-gnu-ld assume the C compiler uses GNU ld default=no 1581 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1582 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1583 1584 Some influential environment variables: 1585 CC C compiler command 1586 CFLAGS C compiler flags 1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1588 nonstandard directory <lib dir> 1589 LIBS libraries to pass to the linker, e.g. -l<library> 1590 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1591 you have headers in a nonstandard directory <include dir> 1592 CPP C preprocessor 1593 1594 Use these variables to override the choices made by `configure' or to help 1595 it to find libraries and programs with nonstandard names/locations. 1596 1597 Report bugs to <libmtp-discuss (at] lists.sourceforge.net>. 1598 _ACEOF 1599 ac_status=$? 1600 fi 1601 1602 if test "$ac_init_help" = "recursive"; then 1603 # If there are subdirs, report their specific --help. 1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1605 test -d "$ac_dir" || 1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1607 continue 1608 ac_builddir=. 1609 1610 case "$ac_dir" in 1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1612 *) 1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1614 # A ".." for each directory in $ac_dir_suffix. 1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1616 case $ac_top_builddir_sub in 1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1619 esac ;; 1620 esac 1621 ac_abs_top_builddir=$ac_pwd 1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1623 # for backward compatibility: 1624 ac_top_builddir=$ac_top_build_prefix 1625 1626 case $srcdir in 1627 .) # We are building in place. 1628 ac_srcdir=. 1629 ac_top_srcdir=$ac_top_builddir_sub 1630 ac_abs_top_srcdir=$ac_pwd ;; 1631 [\\/]* | ?:[\\/]* ) # Absolute name. 1632 ac_srcdir=$srcdir$ac_dir_suffix; 1633 ac_top_srcdir=$srcdir 1634 ac_abs_top_srcdir=$srcdir ;; 1635 *) # Relative name. 1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1637 ac_top_srcdir=$ac_top_build_prefix$srcdir 1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1639 esac 1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1641 1642 cd "$ac_dir" || { ac_status=$?; continue; } 1643 # Check for guested configure. 1644 if test -f "$ac_srcdir/configure.gnu"; then 1645 echo && 1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1647 elif test -f "$ac_srcdir/configure"; then 1648 echo && 1649 $SHELL "$ac_srcdir/configure" --help=recursive 1650 else 1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1652 fi || ac_status=$? 1653 cd "$ac_pwd" || { ac_status=$?; break; } 1654 done 1655 fi 1656 1657 test -n "$ac_init_help" && exit $ac_status 1658 if $ac_init_version; then 1659 cat <<\_ACEOF 1660 libmtp configure 1.0.1 1661 generated by GNU Autoconf 2.63 1662 1663 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1664 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1665 This configure script is free software; the Free Software Foundation 1666 gives unlimited permission to copy, distribute and modify it. 1667 _ACEOF 1668 exit 1669 fi 1670 cat >config.log <<_ACEOF 1671 This file contains any messages produced by compilers while 1672 running configure, to aid debugging if configure makes a mistake. 1673 1674 It was created by libmtp $as_me 1.0.1, which was 1675 generated by GNU Autoconf 2.63. Invocation command line was 1676 1677 $ $0 $@ 1678 1679 _ACEOF 1680 exec 5>>config.log 1681 { 1682 cat <<_ASUNAME 1683 ## --------- ## 1684 ## Platform. ## 1685 ## --------- ## 1686 1687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1688 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1689 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1690 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1691 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1692 1693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1694 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1695 1696 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1697 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1699 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1700 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1701 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1702 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1703 1704 _ASUNAME 1705 1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1707 for as_dir in $PATH 1708 do 1709 IFS=$as_save_IFS 1710 test -z "$as_dir" && as_dir=. 1711 $as_echo "PATH: $as_dir" 1712 done 1713 IFS=$as_save_IFS 1714 1715 } >&5 1716 1717 cat >&5 <<_ACEOF 1718 1719 1720 ## ----------- ## 1721 ## Core tests. ## 1722 ## ----------- ## 1723 1724 _ACEOF 1725 1726 1727 # Keep a trace of the command line. 1728 # Strip out --no-create and --no-recursion so they do not pile up. 1729 # Strip out --silent because we don't want to record it for future runs. 1730 # Also quote any args containing shell meta-characters. 1731 # Make two passes to allow for proper duplicate-argument suppression. 1732 ac_configure_args= 1733 ac_configure_args0= 1734 ac_configure_args1= 1735 ac_must_keep_next=false 1736 for ac_pass in 1 2 1737 do 1738 for ac_arg 1739 do 1740 case $ac_arg in 1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1743 | -silent | --silent | --silen | --sile | --sil) 1744 continue ;; 1745 *\'*) 1746 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1747 esac 1748 case $ac_pass in 1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1750 2) 1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1752 if test $ac_must_keep_next = true; then 1753 ac_must_keep_next=false # Got value, back to normal. 1754 else 1755 case $ac_arg in 1756 *=* | --config-cache | -C | -disable-* | --disable-* \ 1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1759 | -with-* | --with-* | -without-* | --without-* | --x) 1760 case "$ac_configure_args0 " in 1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1762 esac 1763 ;; 1764 -* ) ac_must_keep_next=true ;; 1765 esac 1766 fi 1767 ac_configure_args="$ac_configure_args '$ac_arg'" 1768 ;; 1769 esac 1770 done 1771 done 1772 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1773 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1774 1775 # When interrupted or exit'd, cleanup temporary files, and complete 1776 # config.log. We remove comments because anyway the quotes in there 1777 # would cause problems or look ugly. 1778 # WARNING: Use '\'' to represent an apostrophe within the trap. 1779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1780 trap 'exit_status=$? 1781 # Save into config.log some information that might help in debugging. 1782 { 1783 echo 1784 1785 cat <<\_ASBOX 1786 ## ---------------- ## 1787 ## Cache variables. ## 1788 ## ---------------- ## 1789 _ASBOX 1790 echo 1791 # The following way of writing the cache mishandles newlines in values, 1792 ( 1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1794 eval ac_val=\$$ac_var 1795 case $ac_val in #( 1796 *${as_nl}*) 1797 case $ac_var in #( 1798 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1800 esac 1801 case $ac_var in #( 1802 _ | IFS | as_nl) ;; #( 1803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1804 *) $as_unset $ac_var ;; 1805 esac ;; 1806 esac 1807 done 1808 (set) 2>&1 | 1809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1810 *${as_nl}ac_space=\ *) 1811 sed -n \ 1812 "s/'\''/'\''\\\\'\'''\''/g; 1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1814 ;; #( 1815 *) 1816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1817 ;; 1818 esac | 1819 sort 1820 ) 1821 echo 1822 1823 cat <<\_ASBOX 1824 ## ----------------- ## 1825 ## Output variables. ## 1826 ## ----------------- ## 1827 _ASBOX 1828 echo 1829 for ac_var in $ac_subst_vars 1830 do 1831 eval ac_val=\$$ac_var 1832 case $ac_val in 1833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1834 esac 1835 $as_echo "$ac_var='\''$ac_val'\''" 1836 done | sort 1837 echo 1838 1839 if test -n "$ac_subst_files"; then 1840 cat <<\_ASBOX 1841 ## ------------------- ## 1842 ## File substitutions. ## 1843 ## ------------------- ## 1844 _ASBOX 1845 echo 1846 for ac_var in $ac_subst_files 1847 do 1848 eval ac_val=\$$ac_var 1849 case $ac_val in 1850 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1851 esac 1852 $as_echo "$ac_var='\''$ac_val'\''" 1853 done | sort 1854 echo 1855 fi 1856 1857 if test -s confdefs.h; then 1858 cat <<\_ASBOX 1859 ## ----------- ## 1860 ## confdefs.h. ## 1861 ## ----------- ## 1862 _ASBOX 1863 echo 1864 cat confdefs.h 1865 echo 1866 fi 1867 test "$ac_signal" != 0 && 1868 $as_echo "$as_me: caught signal $ac_signal" 1869 $as_echo "$as_me: exit $exit_status" 1870 } >&5 1871 rm -f core *.core core.conftest.* && 1872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1873 exit $exit_status 1874 ' 0 1875 for ac_signal in 1 2 13 15; do 1876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1877 done 1878 ac_signal=0 1879 1880 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1881 rm -f -r conftest* confdefs.h 1882 1883 # Predefined preprocessor variables. 1884 1885 cat >>confdefs.h <<_ACEOF 1886 #define PACKAGE_NAME "$PACKAGE_NAME" 1887 _ACEOF 1888 1889 1890 cat >>confdefs.h <<_ACEOF 1891 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1892 _ACEOF 1893 1894 1895 cat >>confdefs.h <<_ACEOF 1896 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1897 _ACEOF 1898 1899 1900 cat >>confdefs.h <<_ACEOF 1901 #define PACKAGE_STRING "$PACKAGE_STRING" 1902 _ACEOF 1903 1904 1905 cat >>confdefs.h <<_ACEOF 1906 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1907 _ACEOF 1908 1909 1910 # Let the site file select an alternate cache file if it wants to. 1911 # Prefer an explicitly selected file to automatically selected ones. 1912 ac_site_file1=NONE 1913 ac_site_file2=NONE 1914 if test -n "$CONFIG_SITE"; then 1915 ac_site_file1=$CONFIG_SITE 1916 elif test "x$prefix" != xNONE; then 1917 ac_site_file1=$prefix/share/config.site 1918 ac_site_file2=$prefix/etc/config.site 1919 else 1920 ac_site_file1=$ac_default_prefix/share/config.site 1921 ac_site_file2=$ac_default_prefix/etc/config.site 1922 fi 1923 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1924 do 1925 test "x$ac_site_file" = xNONE && continue 1926 if test -r "$ac_site_file"; then 1927 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1928 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1929 sed 's/^/| /' "$ac_site_file" >&5 1930 . "$ac_site_file" 1931 fi 1932 done 1933 1934 if test -r "$cache_file"; then 1935 # Some versions of bash will fail to source /dev/null (special 1936 # files actually), so we avoid doing that. 1937 if test -f "$cache_file"; then 1938 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1939 $as_echo "$as_me: loading cache $cache_file" >&6;} 1940 case $cache_file in 1941 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1942 *) . "./$cache_file";; 1943 esac 1944 fi 1945 else 1946 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1947 $as_echo "$as_me: creating cache $cache_file" >&6;} 1948 >$cache_file 1949 fi 1950 1951 # Check that the precious variables saved in the cache have kept the same 1952 # value. 1953 ac_cache_corrupted=false 1954 for ac_var in $ac_precious_vars; do 1955 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1956 eval ac_new_set=\$ac_env_${ac_var}_set 1957 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1958 eval ac_new_val=\$ac_env_${ac_var}_value 1959 case $ac_old_set,$ac_new_set in 1960 set,) 1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1962 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1963 ac_cache_corrupted=: ;; 1964 ,set) 1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1966 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1967 ac_cache_corrupted=: ;; 1968 ,);; 1969 *) 1970 if test "x$ac_old_val" != "x$ac_new_val"; then 1971 # differences in whitespace do not lead to failure. 1972 ac_old_val_w=`echo x $ac_old_val` 1973 ac_new_val_w=`echo x $ac_new_val` 1974 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1975 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1977 ac_cache_corrupted=: 1978 else 1979 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1981 eval $ac_var=\$ac_old_val 1982 fi 1983 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1984 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1985 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1987 fi;; 1988 esac 1989 # Pass precious variables to config.status. 1990 if test "$ac_new_set" = set; then 1991 case $ac_new_val in 1992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1993 *) ac_arg=$ac_var=$ac_new_val ;; 1994 esac 1995 case " $ac_configure_args " in 1996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1997 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1998 esac 1999 fi 2000 done 2001 if $ac_cache_corrupted; then 2002 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2007 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2008 { (exit 1); exit 1; }; } 2009 fi 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 ac_ext=c 2036 ac_cpp='$CPP $CPPFLAGS' 2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2040 2041 2042 2043 am__api_version='1.11' 2044 2045 ac_aux_dir= 2046 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2047 if 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/install.sh"; then 2052 ac_aux_dir=$ac_dir 2053 ac_install_sh="$ac_aux_dir/install.sh -c" 2054 break 2055 elif test -f "$ac_dir/shtool"; then 2056 ac_aux_dir=$ac_dir 2057 ac_install_sh="$ac_aux_dir/shtool install -c" 2058 break 2059 fi 2060 done 2061 if test -z "$ac_aux_dir"; then 2062 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2063 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2064 { (exit 1); exit 1; }; } 2065 fi 2066 2067 # These three variables are undocumented and unsupported, 2068 # and are intended to be withdrawn in a future Autoconf release. 2069 # They can cause serious problems if a builder's source tree is in a directory 2070 # whose full name contains unusual characters. 2071 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2072 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2073 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2074 2075 2076 # Find a good install program. We prefer a C program (faster), 2077 # so one script is as good as another. But avoid the broken or 2078 # incompatible versions: 2079 # SysV /etc/install, /usr/sbin/install 2080 # SunOS /usr/etc/install 2081 # IRIX /sbin/install 2082 # AIX /bin/install 2083 # AmigaOS /C/install, which installs bootblocks on floppy discs 2084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2087 # OS/2's system install, which has a completely different semantic 2088 # ./install, which can be erroneously created by make from ./install.sh. 2089 # Reject install programs that cannot install multiple files. 2090 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2091 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2092 if test -z "$INSTALL"; then 2093 if test "${ac_cv_path_install+set}" = set; then 2094 $as_echo_n "(cached) " >&6 2095 else 2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2097 for as_dir in $PATH 2098 do 2099 IFS=$as_save_IFS 2100 test -z "$as_dir" && as_dir=. 2101 # Account for people who put trailing slashes in PATH elements. 2102 case $as_dir/ in 2103 ./ | .// | /cC/* | \ 2104 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2105 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2106 /usr/ucb/* ) ;; 2107 *) 2108 # OSF1 and SCO ODT 3.0 have their own names for install. 2109 # Don't use installbsd from OSF since it installs stuff as root 2110 # by default. 2111 for ac_prog in ginstall scoinst install; do 2112 for ac_exec_ext in '' $ac_executable_extensions; do 2113 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2114 if test $ac_prog = install && 2115 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2116 # AIX install. It has an incompatible calling convention. 2117 : 2118 elif test $ac_prog = install && 2119 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2120 # program-specific install script used by HP pwplus--don't use. 2121 : 2122 else 2123 rm -rf conftest.one conftest.two conftest.dir 2124 echo one > conftest.one 2125 echo two > conftest.two 2126 mkdir conftest.dir 2127 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2128 test -s conftest.one && test -s conftest.two && 2129 test -s conftest.dir/conftest.one && 2130 test -s conftest.dir/conftest.two 2131 then 2132 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2133 break 3 2134 fi 2135 fi 2136 fi 2137 done 2138 done 2139 ;; 2140 esac 2141 2142 done 2143 IFS=$as_save_IFS 2144 2145 rm -rf conftest.one conftest.two conftest.dir 2146 2147 fi 2148 if test "${ac_cv_path_install+set}" = set; then 2149 INSTALL=$ac_cv_path_install 2150 else 2151 # As a last resort, use the slow shell script. Don't cache a 2152 # value for INSTALL within a source directory, because that will 2153 # break other packages using the cache if that directory is 2154 # removed, or if the value is a relative name. 2155 INSTALL=$ac_install_sh 2156 fi 2157 fi 2158 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2159 $as_echo "$INSTALL" >&6; } 2160 2161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2162 # It thinks the first close brace ends the variable substitution. 2163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2164 2165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2166 2167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2168 2169 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2170 $as_echo_n "checking whether build environment is sane... " >&6; } 2171 # Just in case 2172 sleep 1 2173 echo timestamp > conftest.file 2174 # Reject unsafe characters in $srcdir or the absolute working directory 2175 # name. Accept space and tab only in the latter. 2176 am_lf=' 2177 ' 2178 case `pwd` in 2179 *[\\\"\#\$\&\'\`$am_lf]*) 2180 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2181 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2182 { (exit 1); exit 1; }; };; 2183 esac 2184 case $srcdir in 2185 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2186 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2187 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2188 { (exit 1); exit 1; }; };; 2189 esac 2190 2191 # Do `set' in a subshell so we don't clobber the current shell's 2192 # arguments. Must try -L first in case configure is actually a 2193 # symlink; some systems play weird games with the mod time of symlinks 2194 # (eg FreeBSD returns the mod time of the symlink's containing 2195 # directory). 2196 if ( 2197 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2198 if test "$*" = "X"; then 2199 # -L didn't work. 2200 set X `ls -t "$srcdir/configure" conftest.file` 2201 fi 2202 rm -f conftest.file 2203 if test "$*" != "X $srcdir/configure conftest.file" \ 2204 && test "$*" != "X conftest.file $srcdir/configure"; then 2205 2206 # If neither matched, then we have a broken ls. This can happen 2207 # if, for instance, CONFIG_SHELL is bash and it inherits a 2208 # broken ls alias from the environment. This has actually 2209 # happened. Such a system could not be considered "sane". 2210 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2211 alias in your environment" >&5 2212 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2213 alias in your environment" >&2;} 2214 { (exit 1); exit 1; }; } 2215 fi 2216 2217 test "$2" = conftest.file 2218 ) 2219 then 2220 # Ok. 2221 : 2222 else 2223 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2224 Check your system clock" >&5 2225 $as_echo "$as_me: error: newly created file is older than distributed files! 2226 Check your system clock" >&2;} 2227 { (exit 1); exit 1; }; } 2228 fi 2229 { $as_echo "$as_me:$LINENO: result: yes" >&5 2230 $as_echo "yes" >&6; } 2231 test "$program_prefix" != NONE && 2232 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2233 # Use a double $ so make ignores it. 2234 test "$program_suffix" != NONE && 2235 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2236 # Double any \ or $. 2237 # By default was `s,x,x', remove it if useless. 2238 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2239 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2240 2241 # expand $ac_aux_dir to an absolute path 2242 am_aux_dir=`cd $ac_aux_dir && pwd` 2243 2244 if test x"${MISSING+set}" != xset; then 2245 case $am_aux_dir in 2246 *\ * | *\ *) 2247 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2248 *) 2249 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2250 esac 2251 fi 2252 # Use eval to expand $SHELL 2253 if eval "$MISSING --run true"; then 2254 am_missing_run="$MISSING --run " 2255 else 2256 am_missing_run= 2257 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2258 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2259 fi 2260 2261 if test x"${install_sh}" != xset; then 2262 case $am_aux_dir in 2263 *\ * | *\ *) 2264 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2265 *) 2266 install_sh="\${SHELL} $am_aux_dir/install-sh" 2267 esac 2268 fi 2269 2270 # Installed binaries are usually stripped using `strip' when the user 2271 # run `make install-strip'. However `strip' might not be the right 2272 # tool to use in cross-compilation environments, therefore Automake 2273 # will honor the `STRIP' environment variable to overrule this program. 2274 if test "$cross_compiling" != no; then 2275 if test -n "$ac_tool_prefix"; then 2276 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2277 set dummy ${ac_tool_prefix}strip; ac_word=$2 2278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2279 $as_echo_n "checking for $ac_word... " >&6; } 2280 if test "${ac_cv_prog_STRIP+set}" = set; then 2281 $as_echo_n "(cached) " >&6 2282 else 2283 if test -n "$STRIP"; then 2284 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2285 else 2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2287 for as_dir in $PATH 2288 do 2289 IFS=$as_save_IFS 2290 test -z "$as_dir" && as_dir=. 2291 for ac_exec_ext in '' $ac_executable_extensions; do 2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2293 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2295 break 2 2296 fi 2297 done 2298 done 2299 IFS=$as_save_IFS 2300 2301 fi 2302 fi 2303 STRIP=$ac_cv_prog_STRIP 2304 if test -n "$STRIP"; then 2305 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2306 $as_echo "$STRIP" >&6; } 2307 else 2308 { $as_echo "$as_me:$LINENO: result: no" >&5 2309 $as_echo "no" >&6; } 2310 fi 2311 2312 2313 fi 2314 if test -z "$ac_cv_prog_STRIP"; then 2315 ac_ct_STRIP=$STRIP 2316 # Extract the first word of "strip", so it can be a program name with args. 2317 set dummy strip; ac_word=$2 2318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2319 $as_echo_n "checking for $ac_word... " >&6; } 2320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2321 $as_echo_n "(cached) " >&6 2322 else 2323 if test -n "$ac_ct_STRIP"; then 2324 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2325 else 2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2327 for as_dir in $PATH 2328 do 2329 IFS=$as_save_IFS 2330 test -z "$as_dir" && as_dir=. 2331 for ac_exec_ext in '' $ac_executable_extensions; do 2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2333 ac_cv_prog_ac_ct_STRIP="strip" 2334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2335 break 2 2336 fi 2337 done 2338 done 2339 IFS=$as_save_IFS 2340 2341 fi 2342 fi 2343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2344 if test -n "$ac_ct_STRIP"; then 2345 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2346 $as_echo "$ac_ct_STRIP" >&6; } 2347 else 2348 { $as_echo "$as_me:$LINENO: result: no" >&5 2349 $as_echo "no" >&6; } 2350 fi 2351 2352 if test "x$ac_ct_STRIP" = x; then 2353 STRIP=":" 2354 else 2355 case $cross_compiling:$ac_tool_warned in 2356 yes:) 2357 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2359 ac_tool_warned=yes ;; 2360 esac 2361 STRIP=$ac_ct_STRIP 2362 fi 2363 else 2364 STRIP="$ac_cv_prog_STRIP" 2365 fi 2366 2367 fi 2368 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2369 2370 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2371 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2372 if test -z "$MKDIR_P"; then 2373 if test "${ac_cv_path_mkdir+set}" = set; then 2374 $as_echo_n "(cached) " >&6 2375 else 2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2377 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2378 do 2379 IFS=$as_save_IFS 2380 test -z "$as_dir" && as_dir=. 2381 for ac_prog in mkdir gmkdir; do 2382 for ac_exec_ext in '' $ac_executable_extensions; do 2383 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2384 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2385 'mkdir (GNU coreutils) '* | \ 2386 'mkdir (coreutils) '* | \ 2387 'mkdir (fileutils) '4.1*) 2388 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2389 break 3;; 2390 esac 2391 done 2392 done 2393 done 2394 IFS=$as_save_IFS 2395 2396 fi 2397 2398 if test "${ac_cv_path_mkdir+set}" = set; then 2399 MKDIR_P="$ac_cv_path_mkdir -p" 2400 else 2401 # As a last resort, use the slow shell script. Don't cache a 2402 # value for MKDIR_P within a source directory, because that will 2403 # break other packages using the cache if that directory is 2404 # removed, or if the value is a relative name. 2405 test -d ./--version && rmdir ./--version 2406 MKDIR_P="$ac_install_sh -d" 2407 fi 2408 fi 2409 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2410 $as_echo "$MKDIR_P" >&6; } 2411 2412 mkdir_p="$MKDIR_P" 2413 case $mkdir_p in 2414 [\\/$]* | ?:[\\/]*) ;; 2415 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2416 esac 2417 2418 for ac_prog in gawk mawk nawk awk 2419 do 2420 # Extract the first word of "$ac_prog", so it can be a program name with args. 2421 set dummy $ac_prog; ac_word=$2 2422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2423 $as_echo_n "checking for $ac_word... " >&6; } 2424 if test "${ac_cv_prog_AWK+set}" = set; then 2425 $as_echo_n "(cached) " >&6 2426 else 2427 if test -n "$AWK"; then 2428 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2429 else 2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2431 for as_dir in $PATH 2432 do 2433 IFS=$as_save_IFS 2434 test -z "$as_dir" && as_dir=. 2435 for ac_exec_ext in '' $ac_executable_extensions; do 2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2437 ac_cv_prog_AWK="$ac_prog" 2438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2439 break 2 2440 fi 2441 done 2442 done 2443 IFS=$as_save_IFS 2444 2445 fi 2446 fi 2447 AWK=$ac_cv_prog_AWK 2448 if test -n "$AWK"; then 2449 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2450 $as_echo "$AWK" >&6; } 2451 else 2452 { $as_echo "$as_me:$LINENO: result: no" >&5 2453 $as_echo "no" >&6; } 2454 fi 2455 2456 2457 test -n "$AWK" && break 2458 done 2459 2460 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2461 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2462 set x ${MAKE-make} 2463 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2464 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2465 $as_echo_n "(cached) " >&6 2466 else 2467 cat >conftest.make <<\_ACEOF 2468 SHELL = /bin/sh 2469 all: 2470 @echo '@@@%%%=$(MAKE)=@@@%%%' 2471 _ACEOF 2472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2473 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2474 *@@@%%%=?*=@@@%%%*) 2475 eval ac_cv_prog_make_${ac_make}_set=yes;; 2476 *) 2477 eval ac_cv_prog_make_${ac_make}_set=no;; 2478 esac 2479 rm -f conftest.make 2480 fi 2481 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2482 { $as_echo "$as_me:$LINENO: result: yes" >&5 2483 $as_echo "yes" >&6; } 2484 SET_MAKE= 2485 else 2486 { $as_echo "$as_me:$LINENO: result: no" >&5 2487 $as_echo "no" >&6; } 2488 SET_MAKE="MAKE=${MAKE-make}" 2489 fi 2490 2491 rm -rf .tst 2>/dev/null 2492 mkdir .tst 2>/dev/null 2493 if test -d .tst; then 2494 am__leading_dot=. 2495 else 2496 am__leading_dot=_ 2497 fi 2498 rmdir .tst 2>/dev/null 2499 2500 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2501 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2502 # is not polluted with repeated "-I." 2503 am__isrc=' -I$(srcdir)' 2504 # test to see if srcdir already configured 2505 if test -f $srcdir/config.status; then 2506 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2507 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2508 { (exit 1); exit 1; }; } 2509 fi 2510 fi 2511 2512 # test whether we have cygpath 2513 if test -z "$CYGPATH_W"; then 2514 if (cygpath --version) >/dev/null 2>/dev/null; then 2515 CYGPATH_W='cygpath -w' 2516 else 2517 CYGPATH_W=echo 2518 fi 2519 fi 2520 2521 2522 # Define the identity of the package. 2523 PACKAGE='libmtp' 2524 VERSION='1.0.1' 2525 2526 2527 cat >>confdefs.h <<_ACEOF 2528 #define PACKAGE "$PACKAGE" 2529 _ACEOF 2530 2531 2532 cat >>confdefs.h <<_ACEOF 2533 #define VERSION "$VERSION" 2534 _ACEOF 2535 2536 # Some tools Automake needs. 2537 2538 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2539 2540 2541 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2542 2543 2544 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2545 2546 2547 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2548 2549 2550 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2551 2552 # We need awk for the "check" target. The system "awk" is bad on 2553 # some platforms. 2554 # Always define AMTAR for backward compatibility. 2555 2556 AMTAR=${AMTAR-"${am_missing_run}tar"} 2557 2558 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2559 2560 2561 2562 2563 2564 2565 ac_config_headers="$ac_config_headers config.h" 2566 2567 2568 # This can be overridden by the command line switch 2569 if test "$program_prefix" = NONE; then 2570 program_prefix=mtp- 2571 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2572 fi 2573 2574 # Checks for programs. 2575 ac_ext=c 2576 ac_cpp='$CPP $CPPFLAGS' 2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2580 if test -n "$ac_tool_prefix"; then 2581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2582 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2584 $as_echo_n "checking for $ac_word... " >&6; } 2585 if test "${ac_cv_prog_CC+set}" = set; then 2586 $as_echo_n "(cached) " >&6 2587 else 2588 if test -n "$CC"; then 2589 ac_cv_prog_CC="$CC" # Let the user override the test. 2590 else 2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592 for as_dir in $PATH 2593 do 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_CC="${ac_tool_prefix}gcc" 2599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2600 break 2 2601 fi 2602 done 2603 done 2604 IFS=$as_save_IFS 2605 2606 fi 2607 fi 2608 CC=$ac_cv_prog_CC 2609 if test -n "$CC"; then 2610 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2611 $as_echo "$CC" >&6; } 2612 else 2613 { $as_echo "$as_me:$LINENO: result: no" >&5 2614 $as_echo "no" >&6; } 2615 fi 2616 2617 2618 fi 2619 if test -z "$ac_cv_prog_CC"; then 2620 ac_ct_CC=$CC 2621 # Extract the first word of "gcc", so it can be a program name with args. 2622 set dummy gcc; ac_word=$2 2623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2624 $as_echo_n "checking for $ac_word... " >&6; } 2625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2626 $as_echo_n "(cached) " >&6 2627 else 2628 if test -n "$ac_ct_CC"; then 2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2630 else 2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632 for as_dir in $PATH 2633 do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_exec_ext in '' $ac_executable_extensions; do 2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2638 ac_cv_prog_ac_ct_CC="gcc" 2639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2640 break 2 2641 fi 2642 done 2643 done 2644 IFS=$as_save_IFS 2645 2646 fi 2647 fi 2648 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2649 if test -n "$ac_ct_CC"; then 2650 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2651 $as_echo "$ac_ct_CC" >&6; } 2652 else 2653 { $as_echo "$as_me:$LINENO: result: no" >&5 2654 $as_echo "no" >&6; } 2655 fi 2656 2657 if test "x$ac_ct_CC" = x; then 2658 CC="" 2659 else 2660 case $cross_compiling:$ac_tool_warned in 2661 yes:) 2662 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2664 ac_tool_warned=yes ;; 2665 esac 2666 CC=$ac_ct_CC 2667 fi 2668 else 2669 CC="$ac_cv_prog_CC" 2670 fi 2671 2672 if test -z "$CC"; then 2673 if test -n "$ac_tool_prefix"; then 2674 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2675 set dummy ${ac_tool_prefix}cc; ac_word=$2 2676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2677 $as_echo_n "checking for $ac_word... " >&6; } 2678 if test "${ac_cv_prog_CC+set}" = set; then 2679 $as_echo_n "(cached) " >&6 2680 else 2681 if test -n "$CC"; then 2682 ac_cv_prog_CC="$CC" # Let the user override the test. 2683 else 2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685 for as_dir in $PATH 2686 do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2691 ac_cv_prog_CC="${ac_tool_prefix}cc" 2692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2693 break 2 2694 fi 2695 done 2696 done 2697 IFS=$as_save_IFS 2698 2699 fi 2700 fi 2701 CC=$ac_cv_prog_CC 2702 if test -n "$CC"; then 2703 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2704 $as_echo "$CC" >&6; } 2705 else 2706 { $as_echo "$as_me:$LINENO: result: no" >&5 2707 $as_echo "no" >&6; } 2708 fi 2709 2710 2711 fi 2712 fi 2713 if test -z "$CC"; then 2714 # Extract the first word of "cc", so it can be a program name with args. 2715 set dummy cc; ac_word=$2 2716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2717 $as_echo_n "checking for $ac_word... " >&6; } 2718 if test "${ac_cv_prog_CC+set}" = set; then 2719 $as_echo_n "(cached) " >&6 2720 else 2721 if test -n "$CC"; then 2722 ac_cv_prog_CC="$CC" # Let the user override the test. 2723 else 2724 ac_prog_rejected=no 2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2726 for as_dir in $PATH 2727 do 2728 IFS=$as_save_IFS 2729 test -z "$as_dir" && as_dir=. 2730 for ac_exec_ext in '' $ac_executable_extensions; do 2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2732 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2733 ac_prog_rejected=yes 2734 continue 2735 fi 2736 ac_cv_prog_CC="cc" 2737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2738 break 2 2739 fi 2740 done 2741 done 2742 IFS=$as_save_IFS 2743 2744 if test $ac_prog_rejected = yes; then 2745 # We found a bogon in the path, so make sure we never use it. 2746 set dummy $ac_cv_prog_CC 2747 shift 2748 if test $# != 0; then 2749 # We chose a different compiler from the bogus one. 2750 # However, it has the same basename, so the bogon will be chosen 2751 # first if we set CC to just the basename; use the full file name. 2752 shift 2753 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2754 fi 2755 fi 2756 fi 2757 fi 2758 CC=$ac_cv_prog_CC 2759 if test -n "$CC"; then 2760 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2761 $as_echo "$CC" >&6; } 2762 else 2763 { $as_echo "$as_me:$LINENO: result: no" >&5 2764 $as_echo "no" >&6; } 2765 fi 2766 2767 2768 fi 2769 if test -z "$CC"; then 2770 if test -n "$ac_tool_prefix"; then 2771 for ac_prog in cl.exe 2772 do 2773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2776 $as_echo_n "checking for $ac_word... " >&6; } 2777 if test "${ac_cv_prog_CC+set}" = set; then 2778 $as_echo_n "(cached) " >&6 2779 else 2780 if test -n "$CC"; then 2781 ac_cv_prog_CC="$CC" # Let the user override the test. 2782 else 2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2784 for as_dir in $PATH 2785 do 2786 IFS=$as_save_IFS 2787 test -z "$as_dir" && as_dir=. 2788 for ac_exec_ext in '' $ac_executable_extensions; do 2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2790 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2792 break 2 2793 fi 2794 done 2795 done 2796 IFS=$as_save_IFS 2797 2798 fi 2799 fi 2800 CC=$ac_cv_prog_CC 2801 if test -n "$CC"; then 2802 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2803 $as_echo "$CC" >&6; } 2804 else 2805 { $as_echo "$as_me:$LINENO: result: no" >&5 2806 $as_echo "no" >&6; } 2807 fi 2808 2809 2810 test -n "$CC" && break 2811 done 2812 fi 2813 if test -z "$CC"; then 2814 ac_ct_CC=$CC 2815 for ac_prog in cl.exe 2816 do 2817 # Extract the first word of "$ac_prog", so it can be a program name with args. 2818 set dummy $ac_prog; ac_word=$2 2819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2820 $as_echo_n "checking for $ac_word... " >&6; } 2821 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2822 $as_echo_n "(cached) " >&6 2823 else 2824 if test -n "$ac_ct_CC"; then 2825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2826 else 2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2828 for as_dir in $PATH 2829 do 2830 IFS=$as_save_IFS 2831 test -z "$as_dir" && as_dir=. 2832 for ac_exec_ext in '' $ac_executable_extensions; do 2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2834 ac_cv_prog_ac_ct_CC="$ac_prog" 2835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2836 break 2 2837 fi 2838 done 2839 done 2840 IFS=$as_save_IFS 2841 2842 fi 2843 fi 2844 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2845 if test -n "$ac_ct_CC"; then 2846 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2847 $as_echo "$ac_ct_CC" >&6; } 2848 else 2849 { $as_echo "$as_me:$LINENO: result: no" >&5 2850 $as_echo "no" >&6; } 2851 fi 2852 2853 2854 test -n "$ac_ct_CC" && break 2855 done 2856 2857 if test "x$ac_ct_CC" = x; then 2858 CC="" 2859 else 2860 case $cross_compiling:$ac_tool_warned in 2861 yes:) 2862 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2864 ac_tool_warned=yes ;; 2865 esac 2866 CC=$ac_ct_CC 2867 fi 2868 fi 2869 2870 fi 2871 2872 2873 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2875 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2876 See \`config.log' for more details." >&5 2877 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2878 See \`config.log' for more details." >&2;} 2879 { (exit 1); exit 1; }; }; } 2880 2881 # Provide some information about the compiler. 2882 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2883 set X $ac_compile 2884 ac_compiler=$2 2885 { (ac_try="$ac_compiler --version >&5" 2886 case "(($ac_try" in 2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2888 *) ac_try_echo=$ac_try;; 2889 esac 2890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2891 $as_echo "$ac_try_echo") >&5 2892 (eval "$ac_compiler --version >&5") 2>&5 2893 ac_status=$? 2894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2895 (exit $ac_status); } 2896 { (ac_try="$ac_compiler -v >&5" 2897 case "(($ac_try" in 2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2899 *) ac_try_echo=$ac_try;; 2900 esac 2901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2902 $as_echo "$ac_try_echo") >&5 2903 (eval "$ac_compiler -v >&5") 2>&5 2904 ac_status=$? 2905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2906 (exit $ac_status); } 2907 { (ac_try="$ac_compiler -V >&5" 2908 case "(($ac_try" in 2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2910 *) ac_try_echo=$ac_try;; 2911 esac 2912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2913 $as_echo "$ac_try_echo") >&5 2914 (eval "$ac_compiler -V >&5") 2>&5 2915 ac_status=$? 2916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } 2918 2919 cat >conftest.$ac_ext <<_ACEOF 2920 /* confdefs.h. */ 2921 _ACEOF 2922 cat confdefs.h >>conftest.$ac_ext 2923 cat >>conftest.$ac_ext <<_ACEOF 2924 /* end confdefs.h. */ 2925 2926 int 2927 main () 2928 { 2929 2930 ; 2931 return 0; 2932 } 2933 _ACEOF 2934 ac_clean_files_save=$ac_clean_files 2935 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2936 # Try to create an executable without -o first, disregard a.out. 2937 # It will help us diagnose broken compilers, and finding out an intuition 2938 # of exeext. 2939 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2940 $as_echo_n "checking for C compiler default output file name... " >&6; } 2941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2942 2943 # The possible output files: 2944 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2945 2946 ac_rmfiles= 2947 for ac_file in $ac_files 2948 do 2949 case $ac_file in 2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2951 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2952 esac 2953 done 2954 rm -f $ac_rmfiles 2955 2956 if { (ac_try="$ac_link_default" 2957 case "(($ac_try" in 2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2959 *) ac_try_echo=$ac_try;; 2960 esac 2961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2962 $as_echo "$ac_try_echo") >&5 2963 (eval "$ac_link_default") 2>&5 2964 ac_status=$? 2965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2966 (exit $ac_status); }; then 2967 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2968 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2969 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2970 # so that the user can short-circuit this test for compilers unknown to 2971 # Autoconf. 2972 for ac_file in $ac_files '' 2973 do 2974 test -f "$ac_file" || continue 2975 case $ac_file in 2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2977 ;; 2978 [ab].out ) 2979 # We found the default executable, but exeext='' is most 2980 # certainly right. 2981 break;; 2982 *.* ) 2983 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2984 then :; else 2985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2986 fi 2987 # We set ac_cv_exeext here because the later test for it is not 2988 # safe: cross compilers may not add the suffix if given an `-o' 2989 # argument, so we may need to know it at that point already. 2990 # Even if this section looks crufty: it has the advantage of 2991 # actually working. 2992 break;; 2993 * ) 2994 break;; 2995 esac 2996 done 2997 test "$ac_cv_exeext" = no && ac_cv_exeext= 2998 2999 else 3000 ac_file='' 3001 fi 3002 3003 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3004 $as_echo "$ac_file" >&6; } 3005 if test -z "$ac_file"; then 3006 $as_echo "$as_me: failed program was:" >&5 3007 sed 's/^/| /' conftest.$ac_ext >&5 3008 3009 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3011 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3012 See \`config.log' for more details." >&5 3013 $as_echo "$as_me: error: C compiler cannot create executables 3014 See \`config.log' for more details." >&2;} 3015 { (exit 77); exit 77; }; }; } 3016 fi 3017 3018 ac_exeext=$ac_cv_exeext 3019 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 the C compiler works" >&5 3023 $as_echo_n "checking whether the C compiler works... " >&6; } 3024 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3025 # If not cross compiling, check that we can run a simple program. 3026 if test "$cross_compiling" != yes; then 3027 if { ac_try='./$ac_file' 3028 { (case "(($ac_try" in 3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3030 *) ac_try_echo=$ac_try;; 3031 esac 3032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3033 $as_echo "$ac_try_echo") >&5 3034 (eval "$ac_try") 2>&5 3035 ac_status=$? 3036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3037 (exit $ac_status); }; }; then 3038 cross_compiling=no 3039 else 3040 if test "$cross_compiling" = maybe; then 3041 cross_compiling=yes 3042 else 3043 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3045 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3046 If you meant to cross compile, use \`--host'. 3047 See \`config.log' for more details." >&5 3048 $as_echo "$as_me: error: cannot run C compiled programs. 3049 If you meant to cross compile, use \`--host'. 3050 See \`config.log' for more details." >&2;} 3051 { (exit 1); exit 1; }; }; } 3052 fi 3053 fi 3054 fi 3055 { $as_echo "$as_me:$LINENO: result: yes" >&5 3056 $as_echo "yes" >&6; } 3057 3058 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3059 ac_clean_files=$ac_clean_files_save 3060 # Check that the compiler produces executables we can run. If not, either 3061 # the compiler is broken, or we cross compile. 3062 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3063 $as_echo_n "checking whether we are cross compiling... " >&6; } 3064 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3065 $as_echo "$cross_compiling" >&6; } 3066 3067 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3068 $as_echo_n "checking for suffix of executables... " >&6; } 3069 if { (ac_try="$ac_link" 3070 case "(($ac_try" in 3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3072 *) ac_try_echo=$ac_try;; 3073 esac 3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3075 $as_echo "$ac_try_echo") >&5 3076 (eval "$ac_link") 2>&5 3077 ac_status=$? 3078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); }; then 3080 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3082 # work properly (i.e., refer to `conftest.exe'), while it won't with 3083 # `rm'. 3084 for ac_file in conftest.exe conftest conftest.*; do 3085 test -f "$ac_file" || continue 3086 case $ac_file in 3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3089 break;; 3090 * ) break;; 3091 esac 3092 done 3093 else 3094 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3096 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3097 See \`config.log' for more details." >&5 3098 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3099 See \`config.log' for more details." >&2;} 3100 { (exit 1); exit 1; }; }; } 3101 fi 3102 3103 rm -f conftest$ac_cv_exeext 3104 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3105 $as_echo "$ac_cv_exeext" >&6; } 3106 3107 rm -f conftest.$ac_ext 3108 EXEEXT=$ac_cv_exeext 3109 ac_exeext=$EXEEXT 3110 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3111 $as_echo_n "checking for suffix of object files... " >&6; } 3112 if test "${ac_cv_objext+set}" = set; then 3113 $as_echo_n "(cached) " >&6 3114 else 3115 cat >conftest.$ac_ext <<_ACEOF 3116 /* confdefs.h. */ 3117 _ACEOF 3118 cat confdefs.h >>conftest.$ac_ext 3119 cat >>conftest.$ac_ext <<_ACEOF 3120 /* end confdefs.h. */ 3121 3122 int 3123 main () 3124 { 3125 3126 ; 3127 return 0; 3128 } 3129 _ACEOF 3130 rm -f conftest.o conftest.obj 3131 if { (ac_try="$ac_compile" 3132 case "(($ac_try" in 3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3134 *) ac_try_echo=$ac_try;; 3135 esac 3136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3137 $as_echo "$ac_try_echo") >&5 3138 (eval "$ac_compile") 2>&5 3139 ac_status=$? 3140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3141 (exit $ac_status); }; then 3142 for ac_file in conftest.o conftest.obj conftest.*; do 3143 test -f "$ac_file" || continue; 3144 case $ac_file in 3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3146 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3147 break;; 3148 esac 3149 done 3150 else 3151 $as_echo "$as_me: failed program was:" >&5 3152 sed 's/^/| /' conftest.$ac_ext >&5 3153 3154 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3156 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3157 See \`config.log' for more details." >&5 3158 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3159 See \`config.log' for more details." >&2;} 3160 { (exit 1); exit 1; }; }; } 3161 fi 3162 3163 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3164 fi 3165 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3166 $as_echo "$ac_cv_objext" >&6; } 3167 OBJEXT=$ac_cv_objext 3168 ac_objext=$OBJEXT 3169 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3170 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3171 if test "${ac_cv_c_compiler_gnu+set}" = set; then 3172 $as_echo_n "(cached) " >&6 3173 else 3174 cat >conftest.$ac_ext <<_ACEOF 3175 /* confdefs.h. */ 3176 _ACEOF 3177 cat confdefs.h >>conftest.$ac_ext 3178 cat >>conftest.$ac_ext <<_ACEOF 3179 /* end confdefs.h. */ 3180 3181 int 3182 main () 3183 { 3184 #ifndef __GNUC__ 3185 choke me 3186 #endif 3187 3188 ; 3189 return 0; 3190 } 3191 _ACEOF 3192 rm -f conftest.$ac_objext 3193 if { (ac_try="$ac_compile" 3194 case "(($ac_try" in 3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3196 *) ac_try_echo=$ac_try;; 3197 esac 3198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3199 $as_echo "$ac_try_echo") >&5 3200 (eval "$ac_compile") 2>conftest.er1 3201 ac_status=$? 3202 grep -v '^ *+' conftest.er1 >conftest.err 3203 rm -f conftest.er1 3204 cat conftest.err >&5 3205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3206 (exit $ac_status); } && { 3207 test -z "$ac_c_werror_flag" || 3208 test ! -s conftest.err 3209 } && test -s conftest.$ac_objext; then 3210 ac_compiler_gnu=yes 3211 else 3212 $as_echo "$as_me: failed program was:" >&5 3213 sed 's/^/| /' conftest.$ac_ext >&5 3214 3215 ac_compiler_gnu=no 3216 fi 3217 3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3219 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3220 3221 fi 3222 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3223 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3224 if test $ac_compiler_gnu = yes; then 3225 GCC=yes 3226 else 3227 GCC= 3228 fi 3229 ac_test_CFLAGS=${CFLAGS+set} 3230 ac_save_CFLAGS=$CFLAGS 3231 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3232 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3233 if test "${ac_cv_prog_cc_g+set}" = set; then 3234 $as_echo_n "(cached) " >&6 3235 else 3236 ac_save_c_werror_flag=$ac_c_werror_flag 3237 ac_c_werror_flag=yes 3238 ac_cv_prog_cc_g=no 3239 CFLAGS="-g" 3240 cat >conftest.$ac_ext <<_ACEOF 3241 /* confdefs.h. */ 3242 _ACEOF 3243 cat confdefs.h >>conftest.$ac_ext 3244 cat >>conftest.$ac_ext <<_ACEOF 3245 /* end confdefs.h. */ 3246 3247 int 3248 main () 3249 { 3250 3251 ; 3252 return 0; 3253 } 3254 _ACEOF 3255 rm -f conftest.$ac_objext 3256 if { (ac_try="$ac_compile" 3257 case "(($ac_try" in 3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3259 *) ac_try_echo=$ac_try;; 3260 esac 3261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3262 $as_echo "$ac_try_echo") >&5 3263 (eval "$ac_compile") 2>conftest.er1 3264 ac_status=$? 3265 grep -v '^ *+' conftest.er1 >conftest.err 3266 rm -f conftest.er1 3267 cat conftest.err >&5 3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3269 (exit $ac_status); } && { 3270 test -z "$ac_c_werror_flag" || 3271 test ! -s conftest.err 3272 } && test -s conftest.$ac_objext; then 3273 ac_cv_prog_cc_g=yes 3274 else 3275 $as_echo "$as_me: failed program was:" >&5 3276 sed 's/^/| /' conftest.$ac_ext >&5 3277 3278 CFLAGS="" 3279 cat >conftest.$ac_ext <<_ACEOF 3280 /* confdefs.h. */ 3281 _ACEOF 3282 cat confdefs.h >>conftest.$ac_ext 3283 cat >>conftest.$ac_ext <<_ACEOF 3284 /* end confdefs.h. */ 3285 3286 int 3287 main () 3288 { 3289 3290 ; 3291 return 0; 3292 } 3293 _ACEOF 3294 rm -f conftest.$ac_objext 3295 if { (ac_try="$ac_compile" 3296 case "(($ac_try" in 3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3298 *) ac_try_echo=$ac_try;; 3299 esac 3300 eval 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 : 3313 else 3314 $as_echo "$as_me: failed program was:" >&5 3315 sed 's/^/| /' conftest.$ac_ext >&5 3316 3317 ac_c_werror_flag=$ac_save_c_werror_flag 3318 CFLAGS="-g" 3319 cat >conftest.$ac_ext <<_ACEOF 3320 /* confdefs.h. */ 3321 _ACEOF 3322 cat confdefs.h >>conftest.$ac_ext 3323 cat >>conftest.$ac_ext <<_ACEOF 3324 /* end confdefs.h. */ 3325 3326 int 3327 main () 3328 { 3329 3330 ; 3331 return 0; 3332 } 3333 _ACEOF 3334 rm -f conftest.$ac_objext 3335 if { (ac_try="$ac_compile" 3336 case "(($ac_try" in 3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3338 *) ac_try_echo=$ac_try;; 3339 esac 3340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3341 $as_echo "$ac_try_echo") >&5 3342 (eval "$ac_compile") 2>conftest.er1 3343 ac_status=$? 3344 grep -v '^ *+' conftest.er1 >conftest.err 3345 rm -f conftest.er1 3346 cat conftest.err >&5 3347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3348 (exit $ac_status); } && { 3349 test -z "$ac_c_werror_flag" || 3350 test ! -s conftest.err 3351 } && test -s conftest.$ac_objext; then 3352 ac_cv_prog_cc_g=yes 3353 else 3354 $as_echo "$as_me: failed program was:" >&5 3355 sed 's/^/| /' conftest.$ac_ext >&5 3356 3357 3358 fi 3359 3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3361 fi 3362 3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3364 fi 3365 3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3367 ac_c_werror_flag=$ac_save_c_werror_flag 3368 fi 3369 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3370 $as_echo "$ac_cv_prog_cc_g" >&6; } 3371 if test "$ac_test_CFLAGS" = set; then 3372 CFLAGS=$ac_save_CFLAGS 3373 elif test $ac_cv_prog_cc_g = yes; then 3374 if test "$GCC" = yes; then 3375 CFLAGS="-g -O2" 3376 else 3377 CFLAGS="-g" 3378 fi 3379 else 3380 if test "$GCC" = yes; then 3381 CFLAGS="-O2" 3382 else 3383 CFLAGS= 3384 fi 3385 fi 3386 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3387 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3388 if test "${ac_cv_prog_cc_c89+set}" = set; then 3389 $as_echo_n "(cached) " >&6 3390 else 3391 ac_cv_prog_cc_c89=no 3392 ac_save_CC=$CC 3393 cat >conftest.$ac_ext <<_ACEOF 3394 /* confdefs.h. */ 3395 _ACEOF 3396 cat confdefs.h >>conftest.$ac_ext 3397 cat >>conftest.$ac_ext <<_ACEOF 3398 /* end confdefs.h. */ 3399 #include <stdarg.h> 3400 #include <stdio.h> 3401 #include <sys/types.h> 3402 #include <sys/stat.h> 3403 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3404 struct buf { int x; }; 3405 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3406 static char *e (p, i) 3407 char **p; 3408 int i; 3409 { 3410 return p[i]; 3411 } 3412 static char *f (char * (*g) (char **, int), char **p, ...) 3413 { 3414 char *s; 3415 va_list v; 3416 va_start (v,p); 3417 s = g (p, va_arg (v,int)); 3418 va_end (v); 3419 return s; 3420 } 3421 3422 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3423 function prototypes and stuff, but not '\xHH' hex character constants. 3424 These don't provoke an error unfortunately, instead are silently treated 3425 as 'x'. The following induces an error, until -std is added to get 3426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3427 array size at least. It's necessary to write '\x00'==0 to get something 3428 that's true only with -std. */ 3429 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3430 3431 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3432 inside strings and character constants. */ 3433 #define FOO(x) 'x' 3434 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3435 3436 int test (int i, double x); 3437 struct s1 {int (*f) (int a);}; 3438 struct s2 {int (*f) (double a);}; 3439 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3440 int argc; 3441 char **argv; 3442 int 3443 main () 3444 { 3445 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3446 ; 3447 return 0; 3448 } 3449 _ACEOF 3450 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3452 do 3453 CC="$ac_save_CC $ac_arg" 3454 rm -f conftest.$ac_objext 3455 if { (ac_try="$ac_compile" 3456 case "(($ac_try" in 3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3458 *) ac_try_echo=$ac_try;; 3459 esac 3460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3461 $as_echo "$ac_try_echo") >&5 3462 (eval "$ac_compile") 2>conftest.er1 3463 ac_status=$? 3464 grep -v '^ *+' conftest.er1 >conftest.err 3465 rm -f conftest.er1 3466 cat conftest.err >&5 3467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3468 (exit $ac_status); } && { 3469 test -z "$ac_c_werror_flag" || 3470 test ! -s conftest.err 3471 } && test -s conftest.$ac_objext; then 3472 ac_cv_prog_cc_c89=$ac_arg 3473 else 3474 $as_echo "$as_me: failed program was:" >&5 3475 sed 's/^/| /' conftest.$ac_ext >&5 3476 3477 3478 fi 3479 3480 rm -f core conftest.err conftest.$ac_objext 3481 test "x$ac_cv_prog_cc_c89" != "xno" && break 3482 done 3483 rm -f conftest.$ac_ext 3484 CC=$ac_save_CC 3485 3486 fi 3487 # AC_CACHE_VAL 3488 case "x$ac_cv_prog_cc_c89" in 3489 x) 3490 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3491 $as_echo "none needed" >&6; } ;; 3492 xno) 3493 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3494 $as_echo "unsupported" >&6; } ;; 3495 *) 3496 CC="$CC $ac_cv_prog_cc_c89" 3497 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3498 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3499 esac 3500 3501 3502 ac_ext=c 3503 ac_cpp='$CPP $CPPFLAGS' 3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3507 DEPDIR="${am__leading_dot}deps" 3508 3509 ac_config_commands="$ac_config_commands depfiles" 3510 3511 3512 am_make=${MAKE-make} 3513 cat > confinc << 'END' 3514 am__doit: 3515 @echo this is the am__doit target 3516 .PHONY: am__doit 3517 END 3518 # If we don't find an include directive, just comment out the code. 3519 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3520 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3521 am__include="#" 3522 am__quote= 3523 _am_result=none 3524 # First try GNU make style include. 3525 echo "include confinc" > confmf 3526 # Ignore all kinds of additional output from `make'. 3527 case `$am_make -s -f confmf 2> /dev/null` in #( 3528 *the\ am__doit\ target*) 3529 am__include=include 3530 am__quote= 3531 _am_result=GNU 3532 ;; 3533 esac 3534 # Now try BSD make style include. 3535 if test "$am__include" = "#"; then 3536 echo '.include "confinc"' > confmf 3537 case `$am_make -s -f confmf 2> /dev/null` in #( 3538 *the\ am__doit\ target*) 3539 am__include=.include 3540 am__quote="\"" 3541 _am_result=BSD 3542 ;; 3543 esac 3544 fi 3545 3546 3547 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3548 $as_echo "$_am_result" >&6; } 3549 rm -f confinc confmf 3550 3551 # Check whether --enable-dependency-tracking was given. 3552 if test "${enable_dependency_tracking+set}" = set; then 3553 enableval=$enable_dependency_tracking; 3554 fi 3555 3556 if test "x$enable_dependency_tracking" != xno; then 3557 am_depcomp="$ac_aux_dir/depcomp" 3558 AMDEPBACKSLASH='\' 3559 fi 3560 if test "x$enable_dependency_tracking" != xno; then 3561 AMDEP_TRUE= 3562 AMDEP_FALSE='#' 3563 else 3564 AMDEP_TRUE='#' 3565 AMDEP_FALSE= 3566 fi 3567 3568 3569 3570 depcc="$CC" am_compiler_list= 3571 3572 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3573 $as_echo_n "checking dependency style of $depcc... " >&6; } 3574 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3575 $as_echo_n "(cached) " >&6 3576 else 3577 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3578 # We make a subdir and do the tests there. Otherwise we can end up 3579 # making bogus files that we don't know about and never remove. For 3580 # instance it was reported that on HP-UX the gcc test will end up 3581 # making a dummy file named `D' -- because `-MD' means `put the output 3582 # in D'. 3583 mkdir conftest.dir 3584 # Copy depcomp to subdir because otherwise we won't find it if we're 3585 # using a relative directory. 3586 cp "$am_depcomp" conftest.dir 3587 cd conftest.dir 3588 # We will build objects and dependencies in a subdirectory because 3589 # it helps to detect inapplicable dependency modes. For instance 3590 # both Tru64's cc and ICC support -MD to output dependencies as a 3591 # side effect of compilation, but ICC will put the dependencies in 3592 # the current directory while Tru64 will put them in the object 3593 # directory. 3594 mkdir sub 3595 3596 am_cv_CC_dependencies_compiler_type=none 3597 if test "$am_compiler_list" = ""; then 3598 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3599 fi 3600 am__universal=false 3601 case " $depcc " in #( 3602 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3603 esac 3604 3605 for depmode in $am_compiler_list; do 3606 # Setup a source with many dependencies, because some compilers 3607 # like to wrap large dependency lists on column 80 (with \), and 3608 # we should not choose a depcomp mode which is confused by this. 3609 # 3610 # We need to recreate these files for each test, as the compiler may 3611 # overwrite some of them when testing with obscure command lines. 3612 # This happens at least with the AIX C compiler. 3613 : > sub/conftest.c 3614 for i in 1 2 3 4 5 6; do 3615 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3616 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3617 # Solaris 8's {/usr,}/bin/sh. 3618 touch sub/conftst$i.h 3619 done 3620 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3621 3622 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3623 # mode. It turns out that the SunPro C++ compiler does not properly 3624 # handle `-M -o', and we need to detect this. Also, some Intel 3625 # versions had trouble with output in subdirs 3626 am__obj=sub/conftest.${OBJEXT-o} 3627 am__minus_obj="-o $am__obj" 3628 case $depmode in 3629 gcc) 3630 # This depmode causes a compiler race in universal mode. 3631 test "$am__universal" = false || continue 3632 ;; 3633 nosideeffect) 3634 # after this tag, mechanisms are not by side-effect, so they'll 3635 # only be used when explicitly requested 3636 if test "x$enable_dependency_tracking" = xyes; then 3637 continue 3638 else 3639 break 3640 fi 3641 ;; 3642 msvisualcpp | msvcmsys) 3643 # This compiler won't grok `-c -o', but also, the minuso test has 3644 # not run yet. These depmodes are late enough in the game, and 3645 # so weak that their functioning should not be impacted. 3646 am__obj=conftest.${OBJEXT-o} 3647 am__minus_obj= 3648 ;; 3649 none) break ;; 3650 esac 3651 if depmode=$depmode \ 3652 source=sub/conftest.c object=$am__obj \ 3653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3654 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3655 >/dev/null 2>conftest.err && 3656 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3657 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3658 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3659 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3660 # icc doesn't choke on unknown options, it will just issue warnings 3661 # or remarks (even with -Werror). So we grep stderr for any message 3662 # that says an option was ignored or not supported. 3663 # When given -MP, icc 7.0 and 7.1 complain thusly: 3664 # icc: Command line warning: ignoring option '-M'; no argument required 3665 # The diagnosis changed in icc 8.0: 3666 # icc: Command line remark: option '-MP' not supported 3667 if (grep 'ignoring option' conftest.err || 3668 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3669 am_cv_CC_dependencies_compiler_type=$depmode 3670 break 3671 fi 3672 fi 3673 done 3674 3675 cd .. 3676 rm -rf conftest.dir 3677 else 3678 am_cv_CC_dependencies_compiler_type=none 3679 fi 3680 3681 fi 3682 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3683 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3684 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3685 3686 if 3687 test "x$enable_dependency_tracking" != xno \ 3688 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3689 am__fastdepCC_TRUE= 3690 am__fastdepCC_FALSE='#' 3691 else 3692 am__fastdepCC_TRUE='#' 3693 am__fastdepCC_FALSE= 3694 fi 3695 3696 3697 # Find a good install program. We prefer a C program (faster), 3698 # so one script is as good as another. But avoid the broken or 3699 # incompatible versions: 3700 # SysV /etc/install, /usr/sbin/install 3701 # SunOS /usr/etc/install 3702 # IRIX /sbin/install 3703 # AIX /bin/install 3704 # AmigaOS /C/install, which installs bootblocks on floppy discs 3705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3708 # OS/2's system install, which has a completely different semantic 3709 # ./install, which can be erroneously created by make from ./install.sh. 3710 # Reject install programs that cannot install multiple files. 3711 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3712 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3713 if test -z "$INSTALL"; then 3714 if test "${ac_cv_path_install+set}" = set; then 3715 $as_echo_n "(cached) " >&6 3716 else 3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3718 for as_dir in $PATH 3719 do 3720 IFS=$as_save_IFS 3721 test -z "$as_dir" && as_dir=. 3722 # Account for people who put trailing slashes in PATH elements. 3723 case $as_dir/ in 3724 ./ | .// | /cC/* | \ 3725 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3726 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3727 /usr/ucb/* ) ;; 3728 *) 3729 # OSF1 and SCO ODT 3.0 have their own names for install. 3730 # Don't use installbsd from OSF since it installs stuff as root 3731 # by default. 3732 for ac_prog in ginstall scoinst install; do 3733 for ac_exec_ext in '' $ac_executable_extensions; do 3734 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3735 if test $ac_prog = install && 3736 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3737 # AIX install. It has an incompatible calling convention. 3738 : 3739 elif test $ac_prog = install && 3740 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3741 # program-specific install script used by HP pwplus--don't use. 3742 : 3743 else 3744 rm -rf conftest.one conftest.two conftest.dir 3745 echo one > conftest.one 3746 echo two > conftest.two 3747 mkdir conftest.dir 3748 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3749 test -s conftest.one && test -s conftest.two && 3750 test -s conftest.dir/conftest.one && 3751 test -s conftest.dir/conftest.two 3752 then 3753 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3754 break 3 3755 fi 3756 fi 3757 fi 3758 done 3759 done 3760 ;; 3761 esac 3762 3763 done 3764 IFS=$as_save_IFS 3765 3766 rm -rf conftest.one conftest.two conftest.dir 3767 3768 fi 3769 if test "${ac_cv_path_install+set}" = set; then 3770 INSTALL=$ac_cv_path_install 3771 else 3772 # As a last resort, use the slow shell script. Don't cache a 3773 # value for INSTALL within a source directory, because that will 3774 # break other packages using the cache if that directory is 3775 # removed, or if the value is a relative name. 3776 INSTALL=$ac_install_sh 3777 fi 3778 fi 3779 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3780 $as_echo "$INSTALL" >&6; } 3781 3782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3783 # It thinks the first close brace ends the variable substitution. 3784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3785 3786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3787 3788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3789 3790 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 3791 $as_echo_n "checking whether ln -s works... " >&6; } 3792 LN_S=$as_ln_s 3793 if test "$LN_S" = "ln -s"; then 3794 { $as_echo "$as_me:$LINENO: result: yes" >&5 3795 $as_echo "yes" >&6; } 3796 else 3797 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3798 $as_echo "no, using $LN_S" >&6; } 3799 fi 3800 3801 # Make sure we can run config.sub. 3802 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3803 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3804 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3805 { (exit 1); exit 1; }; } 3806 3807 { $as_echo "$as_me:$LINENO: checking build system type" >&5 3808 $as_echo_n "checking build system type... " >&6; } 3809 if test "${ac_cv_build+set}" = set; then 3810 $as_echo_n "(cached) " >&6 3811 else 3812 ac_build_alias=$build_alias 3813 test "x$ac_build_alias" = x && 3814 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3815 test "x$ac_build_alias" = x && 3816 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3817 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3818 { (exit 1); exit 1; }; } 3819 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3820 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3821 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3822 { (exit 1); exit 1; }; } 3823 3824 fi 3825 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3826 $as_echo "$ac_cv_build" >&6; } 3827 case $ac_cv_build in 3828 *-*-*) ;; 3829 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3830 $as_echo "$as_me: error: invalid value of canonical build" >&2;} 3831 { (exit 1); exit 1; }; };; 3832 esac 3833 build=$ac_cv_build 3834 ac_save_IFS=$IFS; IFS='-' 3835 set x $ac_cv_build 3836 shift 3837 build_cpu=$1 3838 build_vendor=$2 3839 shift; shift 3840 # Remember, the first character of IFS is used to create $*, 3841 # except with old shells: 3842 build_os=$* 3843 IFS=$ac_save_IFS 3844 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3845 3846 3847 { $as_echo "$as_me:$LINENO: checking host system type" >&5 3848 $as_echo_n "checking host system type... " >&6; } 3849 if test "${ac_cv_host+set}" = set; then 3850 $as_echo_n "(cached) " >&6 3851 else 3852 if test "x$host_alias" = x; then 3853 ac_cv_host=$ac_cv_build 3854 else 3855 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3856 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3857 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3858 { (exit 1); exit 1; }; } 3859 fi 3860 3861 fi 3862 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3863 $as_echo "$ac_cv_host" >&6; } 3864 case $ac_cv_host in 3865 *-*-*) ;; 3866 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3867 $as_echo "$as_me: error: invalid value of canonical host" >&2;} 3868 { (exit 1); exit 1; }; };; 3869 esac 3870 host=$ac_cv_host 3871 ac_save_IFS=$IFS; IFS='-' 3872 set x $ac_cv_host 3873 shift 3874 host_cpu=$1 3875 host_vendor=$2 3876 shift; shift 3877 # Remember, the first character of IFS is used to create $*, 3878 # except with old shells: 3879 host_os=$* 3880 IFS=$ac_save_IFS 3881 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3882 3883 3884 enable_win32_dll=yes 3885 3886 case $host in 3887 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 3888 if test -n "$ac_tool_prefix"; then 3889 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3890 set dummy ${ac_tool_prefix}as; ac_word=$2 3891 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3892 $as_echo_n "checking for $ac_word... " >&6; } 3893 if test "${ac_cv_prog_AS+set}" = set; then 3894 $as_echo_n "(cached) " >&6 3895 else 3896 if test -n "$AS"; then 3897 ac_cv_prog_AS="$AS" # Let the user override the test. 3898 else 3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3900 for as_dir in $PATH 3901 do 3902 IFS=$as_save_IFS 3903 test -z "$as_dir" && as_dir=. 3904 for ac_exec_ext in '' $ac_executable_extensions; do 3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3906 ac_cv_prog_AS="${ac_tool_prefix}as" 3907 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3908 break 2 3909 fi 3910 done 3911 done 3912 IFS=$as_save_IFS 3913 3914 fi 3915 fi 3916 AS=$ac_cv_prog_AS 3917 if test -n "$AS"; then 3918 { $as_echo "$as_me:$LINENO: result: $AS" >&5 3919 $as_echo "$AS" >&6; } 3920 else 3921 { $as_echo "$as_me:$LINENO: result: no" >&5 3922 $as_echo "no" >&6; } 3923 fi 3924 3925 3926 fi 3927 if test -z "$ac_cv_prog_AS"; then 3928 ac_ct_AS=$AS 3929 # Extract the first word of "as", so it can be a program name with args. 3930 set dummy as; ac_word=$2 3931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3932 $as_echo_n "checking for $ac_word... " >&6; } 3933 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 3934 $as_echo_n "(cached) " >&6 3935 else 3936 if test -n "$ac_ct_AS"; then 3937 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3938 else 3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3940 for as_dir in $PATH 3941 do 3942 IFS=$as_save_IFS 3943 test -z "$as_dir" && as_dir=. 3944 for ac_exec_ext in '' $ac_executable_extensions; do 3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3946 ac_cv_prog_ac_ct_AS="as" 3947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3948 break 2 3949 fi 3950 done 3951 done 3952 IFS=$as_save_IFS 3953 3954 fi 3955 fi 3956 ac_ct_AS=$ac_cv_prog_ac_ct_AS 3957 if test -n "$ac_ct_AS"; then 3958 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 3959 $as_echo "$ac_ct_AS" >&6; } 3960 else 3961 { $as_echo "$as_me:$LINENO: result: no" >&5 3962 $as_echo "no" >&6; } 3963 fi 3964 3965 if test "x$ac_ct_AS" = x; then 3966 AS="false" 3967 else 3968 case $cross_compiling:$ac_tool_warned in 3969 yes:) 3970 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3972 ac_tool_warned=yes ;; 3973 esac 3974 AS=$ac_ct_AS 3975 fi 3976 else 3977 AS="$ac_cv_prog_AS" 3978 fi 3979 3980 if test -n "$ac_tool_prefix"; then 3981 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 3982 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 3983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3984 $as_echo_n "checking for $ac_word... " >&6; } 3985 if test "${ac_cv_prog_DLLTOOL+set}" = set; then 3986 $as_echo_n "(cached) " >&6 3987 else 3988 if test -n "$DLLTOOL"; then 3989 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3990 else 3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3992 for as_dir in $PATH 3993 do 3994 IFS=$as_save_IFS 3995 test -z "$as_dir" && as_dir=. 3996 for ac_exec_ext in '' $ac_executable_extensions; do 3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3998 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 3999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4000 break 2 4001 fi 4002 done 4003 done 4004 IFS=$as_save_IFS 4005 4006 fi 4007 fi 4008 DLLTOOL=$ac_cv_prog_DLLTOOL 4009 if test -n "$DLLTOOL"; then 4010 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5 4011 $as_echo "$DLLTOOL" >&6; } 4012 else 4013 { $as_echo "$as_me:$LINENO: result: no" >&5 4014 $as_echo "no" >&6; } 4015 fi 4016 4017 4018 fi 4019 if test -z "$ac_cv_prog_DLLTOOL"; then 4020 ac_ct_DLLTOOL=$DLLTOOL 4021 # Extract the first word of "dlltool", so it can be a program name with args. 4022 set dummy dlltool; ac_word=$2 4023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4024 $as_echo_n "checking for $ac_word... " >&6; } 4025 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 4026 $as_echo_n "(cached) " >&6 4027 else 4028 if test -n "$ac_ct_DLLTOOL"; then 4029 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4030 else 4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4032 for as_dir in $PATH 4033 do 4034 IFS=$as_save_IFS 4035 test -z "$as_dir" && as_dir=. 4036 for ac_exec_ext in '' $ac_executable_extensions; do 4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4038 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4040 break 2 4041 fi 4042 done 4043 done 4044 IFS=$as_save_IFS 4045 4046 fi 4047 fi 4048 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4049 if test -n "$ac_ct_DLLTOOL"; then 4050 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 4051 $as_echo "$ac_ct_DLLTOOL" >&6; } 4052 else 4053 { $as_echo "$as_me:$LINENO: result: no" >&5 4054 $as_echo "no" >&6; } 4055 fi 4056 4057 if test "x$ac_ct_DLLTOOL" = x; then 4058 DLLTOOL="false" 4059 else 4060 case $cross_compiling:$ac_tool_warned in 4061 yes:) 4062 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4064 ac_tool_warned=yes ;; 4065 esac 4066 DLLTOOL=$ac_ct_DLLTOOL 4067 fi 4068 else 4069 DLLTOOL="$ac_cv_prog_DLLTOOL" 4070 fi 4071 4072 if test -n "$ac_tool_prefix"; then 4073 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4074 set dummy ${ac_tool_prefix}objdump; ac_word=$2 4075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4076 $as_echo_n "checking for $ac_word... " >&6; } 4077 if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4078 $as_echo_n "(cached) " >&6 4079 else 4080 if test -n "$OBJDUMP"; then 4081 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4082 else 4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4084 for as_dir in $PATH 4085 do 4086 IFS=$as_save_IFS 4087 test -z "$as_dir" && as_dir=. 4088 for ac_exec_ext in '' $ac_executable_extensions; do 4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4090 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4092 break 2 4093 fi 4094 done 4095 done 4096 IFS=$as_save_IFS 4097 4098 fi 4099 fi 4100 OBJDUMP=$ac_cv_prog_OBJDUMP 4101 if test -n "$OBJDUMP"; then 4102 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4103 $as_echo "$OBJDUMP" >&6; } 4104 else 4105 { $as_echo "$as_me:$LINENO: result: no" >&5 4106 $as_echo "no" >&6; } 4107 fi 4108 4109 4110 fi 4111 if test -z "$ac_cv_prog_OBJDUMP"; then 4112 ac_ct_OBJDUMP=$OBJDUMP 4113 # Extract the first word of "objdump", so it can be a program name with args. 4114 set dummy objdump; ac_word=$2 4115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4116 $as_echo_n "checking for $ac_word... " >&6; } 4117 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4118 $as_echo_n "(cached) " >&6 4119 else 4120 if test -n "$ac_ct_OBJDUMP"; then 4121 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4122 else 4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4124 for as_dir in $PATH 4125 do 4126 IFS=$as_save_IFS 4127 test -z "$as_dir" && as_dir=. 4128 for ac_exec_ext in '' $ac_executable_extensions; do 4129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4130 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4132 break 2 4133 fi 4134 done 4135 done 4136 IFS=$as_save_IFS 4137 4138 fi 4139 fi 4140 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4141 if test -n "$ac_ct_OBJDUMP"; then 4142 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4143 $as_echo "$ac_ct_OBJDUMP" >&6; } 4144 else 4145 { $as_echo "$as_me:$LINENO: result: no" >&5 4146 $as_echo "no" >&6; } 4147 fi 4148 4149 if test "x$ac_ct_OBJDUMP" = x; then 4150 OBJDUMP="false" 4151 else 4152 case $cross_compiling:$ac_tool_warned in 4153 yes:) 4154 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4156 ac_tool_warned=yes ;; 4157 esac 4158 OBJDUMP=$ac_ct_OBJDUMP 4159 fi 4160 else 4161 OBJDUMP="$ac_cv_prog_OBJDUMP" 4162 fi 4163 4164 ;; 4165 esac 4166 4167 test -z "$AS" && AS=as 4168 4169 4170 4171 4172 4173 test -z "$DLLTOOL" && DLLTOOL=dlltool 4174 4175 4176 4177 4178 4179 test -z "$OBJDUMP" && OBJDUMP=objdump 4180 4181 4182 4183 4184 4185 4186 4187 case `pwd` in 4188 *\ * | *\ *) 4189 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4190 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4191 esac 4192 4193 4194 4195 macro_version='2.2.6' 4196 macro_revision='1.3012' 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 ltmain="$ac_aux_dir/ltmain.sh" 4211 4212 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4213 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4214 if test "${ac_cv_path_SED+set}" = set; then 4215 $as_echo_n "(cached) " >&6 4216 else 4217 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4218 for ac_i in 1 2 3 4 5 6 7; do 4219 ac_script="$ac_script$as_nl$ac_script" 4220 done 4221 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4222 $as_unset ac_script || ac_script= 4223 if test -z "$SED"; then 4224 ac_path_SED_found=false 4225 # Loop through the user's path and test for each of PROGNAME-LIST 4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4227 for as_dir in $PATH 4228 do 4229 IFS=$as_save_IFS 4230 test -z "$as_dir" && as_dir=. 4231 for ac_prog in sed gsed; do 4232 for ac_exec_ext in '' $ac_executable_extensions; do 4233 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4234 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4235 # Check for GNU ac_path_SED and select it if it is found. 4236 # Check for GNU $ac_path_SED 4237 case `"$ac_path_SED" --version 2>&1` in 4238 *GNU*) 4239 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4240 *) 4241 ac_count=0 4242 $as_echo_n 0123456789 >"conftest.in" 4243 while : 4244 do 4245 cat "conftest.in" "conftest.in" >"conftest.tmp" 4246 mv "conftest.tmp" "conftest.in" 4247 cp "conftest.in" "conftest.nl" 4248 $as_echo '' >> "conftest.nl" 4249 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4251 ac_count=`expr $ac_count + 1` 4252 if test $ac_count -gt ${ac_path_SED_max-0}; then 4253 # Best one so far, save it but keep looking for a better one 4254 ac_cv_path_SED="$ac_path_SED" 4255 ac_path_SED_max=$ac_count 4256 fi 4257 # 10*(2^10) chars as input seems more than enough 4258 test $ac_count -gt 10 && break 4259 done 4260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4261 esac 4262 4263 $ac_path_SED_found && break 3 4264 done 4265 done 4266 done 4267 IFS=$as_save_IFS 4268 if test -z "$ac_cv_path_SED"; then 4269 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4270 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4271 { (exit 1); exit 1; }; } 4272 fi 4273 else 4274 ac_cv_path_SED=$SED 4275 fi 4276 4277 fi 4278 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4279 $as_echo "$ac_cv_path_SED" >&6; } 4280 SED="$ac_cv_path_SED" 4281 rm -f conftest.sed 4282 4283 test -z "$SED" && SED=sed 4284 Xsed="$SED -e 1s/^X//" 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4297 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4298 if test "${ac_cv_path_GREP+set}" = set; then 4299 $as_echo_n "(cached) " >&6 4300 else 4301 if test -z "$GREP"; then 4302 ac_path_GREP_found=false 4303 # Loop through the user's path and test for each of PROGNAME-LIST 4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4306 do 4307 IFS=$as_save_IFS 4308 test -z "$as_dir" && as_dir=. 4309 for ac_prog in grep ggrep; do 4310 for ac_exec_ext in '' $ac_executable_extensions; do 4311 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4312 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4313 # Check for GNU ac_path_GREP and select it if it is found. 4314 # Check for GNU $ac_path_GREP 4315 case `"$ac_path_GREP" --version 2>&1` in 4316 *GNU*) 4317 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4318 *) 4319 ac_count=0 4320 $as_echo_n 0123456789 >"conftest.in" 4321 while : 4322 do 4323 cat "conftest.in" "conftest.in" >"conftest.tmp" 4324 mv "conftest.tmp" "conftest.in" 4325 cp "conftest.in" "conftest.nl" 4326 $as_echo 'GREP' >> "conftest.nl" 4327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4329 ac_count=`expr $ac_count + 1` 4330 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4331 # Best one so far, save it but keep looking for a better one 4332 ac_cv_path_GREP="$ac_path_GREP" 4333 ac_path_GREP_max=$ac_count 4334 fi 4335 # 10*(2^10) chars as input seems more than enough 4336 test $ac_count -gt 10 && break 4337 done 4338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4339 esac 4340 4341 $ac_path_GREP_found && break 3 4342 done 4343 done 4344 done 4345 IFS=$as_save_IFS 4346 if test -z "$ac_cv_path_GREP"; then 4347 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4348 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4349 { (exit 1); exit 1; }; } 4350 fi 4351 else 4352 ac_cv_path_GREP=$GREP 4353 fi 4354 4355 fi 4356 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4357 $as_echo "$ac_cv_path_GREP" >&6; } 4358 GREP="$ac_cv_path_GREP" 4359 4360 4361 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 4362 $as_echo_n "checking for egrep... " >&6; } 4363 if test "${ac_cv_path_EGREP+set}" = set; then 4364 $as_echo_n "(cached) " >&6 4365 else 4366 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4367 then ac_cv_path_EGREP="$GREP -E" 4368 else 4369 if test -z "$EGREP"; then 4370 ac_path_EGREP_found=false 4371 # Loop through the user's path and test for each of PROGNAME-LIST 4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4374 do 4375 IFS=$as_save_IFS 4376 test -z "$as_dir" && as_dir=. 4377 for ac_prog in egrep; do 4378 for ac_exec_ext in '' $ac_executable_extensions; do 4379 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4380 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4381 # Check for GNU ac_path_EGREP and select it if it is found. 4382 # Check for GNU $ac_path_EGREP 4383 case `"$ac_path_EGREP" --version 2>&1` in 4384 *GNU*) 4385 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4386 *) 4387 ac_count=0 4388 $as_echo_n 0123456789 >"conftest.in" 4389 while : 4390 do 4391 cat "conftest.in" "conftest.in" >"conftest.tmp" 4392 mv "conftest.tmp" "conftest.in" 4393 cp "conftest.in" "conftest.nl" 4394 $as_echo 'EGREP' >> "conftest.nl" 4395 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4397 ac_count=`expr $ac_count + 1` 4398 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4399 # Best one so far, save it but keep looking for a better one 4400 ac_cv_path_EGREP="$ac_path_EGREP" 4401 ac_path_EGREP_max=$ac_count 4402 fi 4403 # 10*(2^10) chars as input seems more than enough 4404 test $ac_count -gt 10 && break 4405 done 4406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4407 esac 4408 4409 $ac_path_EGREP_found && break 3 4410 done 4411 done 4412 done 4413 IFS=$as_save_IFS 4414 if test -z "$ac_cv_path_EGREP"; then 4415 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4416 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4417 { (exit 1); exit 1; }; } 4418 fi 4419 else 4420 ac_cv_path_EGREP=$EGREP 4421 fi 4422 4423 fi 4424 fi 4425 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4426 $as_echo "$ac_cv_path_EGREP" >&6; } 4427 EGREP="$ac_cv_path_EGREP" 4428 4429 4430 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4431 $as_echo_n "checking for fgrep... " >&6; } 4432 if test "${ac_cv_path_FGREP+set}" = set; then 4433 $as_echo_n "(cached) " >&6 4434 else 4435 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4436 then ac_cv_path_FGREP="$GREP -F" 4437 else 4438 if test -z "$FGREP"; then 4439 ac_path_FGREP_found=false 4440 # Loop through the user's path and test for each of PROGNAME-LIST 4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4443 do 4444 IFS=$as_save_IFS 4445 test -z "$as_dir" && as_dir=. 4446 for ac_prog in fgrep; do 4447 for ac_exec_ext in '' $ac_executable_extensions; do 4448 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4449 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4450 # Check for GNU ac_path_FGREP and select it if it is found. 4451 # Check for GNU $ac_path_FGREP 4452 case `"$ac_path_FGREP" --version 2>&1` in 4453 *GNU*) 4454 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4455 *) 4456 ac_count=0 4457 $as_echo_n 0123456789 >"conftest.in" 4458 while : 4459 do 4460 cat "conftest.in" "conftest.in" >"conftest.tmp" 4461 mv "conftest.tmp" "conftest.in" 4462 cp "conftest.in" "conftest.nl" 4463 $as_echo 'FGREP' >> "conftest.nl" 4464 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4466 ac_count=`expr $ac_count + 1` 4467 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4468 # Best one so far, save it but keep looking for a better one 4469 ac_cv_path_FGREP="$ac_path_FGREP" 4470 ac_path_FGREP_max=$ac_count 4471 fi 4472 # 10*(2^10) chars as input seems more than enough 4473 test $ac_count -gt 10 && break 4474 done 4475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4476 esac 4477 4478 $ac_path_FGREP_found && break 3 4479 done 4480 done 4481 done 4482 IFS=$as_save_IFS 4483 if test -z "$ac_cv_path_FGREP"; then 4484 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4485 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4486 { (exit 1); exit 1; }; } 4487 fi 4488 else 4489 ac_cv_path_FGREP=$FGREP 4490 fi 4491 4492 fi 4493 fi 4494 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4495 $as_echo "$ac_cv_path_FGREP" >&6; } 4496 FGREP="$ac_cv_path_FGREP" 4497 4498 4499 test -z "$GREP" && GREP=grep 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 # Check whether --with-gnu-ld was given. 4520 if test "${with_gnu_ld+set}" = set; then 4521 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4522 else 4523 with_gnu_ld=no 4524 fi 4525 4526 ac_prog=ld 4527 if test "$GCC" = yes; then 4528 # Check if gcc -print-prog-name=ld gives a path. 4529 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4530 $as_echo_n "checking for ld used by $CC... " >&6; } 4531 case $host in 4532 *-*-mingw*) 4533 # gcc leaves a trailing carriage return which upsets mingw 4534 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4535 *) 4536 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4537 esac 4538 case $ac_prog in 4539 # Accept absolute paths. 4540 [\\/]* | ?:[\\/]*) 4541 re_direlt='/[^/][^/]*/\.\./' 4542 # Canonicalize the pathname of ld 4543 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4544 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4545 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4546 done 4547 test -z "$LD" && LD="$ac_prog" 4548 ;; 4549 "") 4550 # If it fails, then pretend we aren't using GCC. 4551 ac_prog=ld 4552 ;; 4553 *) 4554 # If it is relative, then search for the first ld in PATH. 4555 with_gnu_ld=unknown 4556 ;; 4557 esac 4558 elif test "$with_gnu_ld" = yes; then 4559 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4560 $as_echo_n "checking for GNU ld... " >&6; } 4561 else 4562 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4563 $as_echo_n "checking for non-GNU ld... " >&6; } 4564 fi 4565 if test "${lt_cv_path_LD+set}" = set; then 4566 $as_echo_n "(cached) " >&6 4567 else 4568 if test -z "$LD"; then 4569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4570 for ac_dir in $PATH; do 4571 IFS="$lt_save_ifs" 4572 test -z "$ac_dir" && ac_dir=. 4573 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4574 lt_cv_path_LD="$ac_dir/$ac_prog" 4575 # Check to see if the program is GNU ld. I'd rather use --version, 4576 # but apparently some variants of GNU ld only accept -v. 4577 # Break only if it was the GNU/non-GNU ld that we prefer. 4578 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4579 *GNU* | *'with BFD'*) 4580 test "$with_gnu_ld" != no && break 4581 ;; 4582 *) 4583 test "$with_gnu_ld" != yes && break 4584 ;; 4585 esac 4586 fi 4587 done 4588 IFS="$lt_save_ifs" 4589 else 4590 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4591 fi 4592 fi 4593 4594 LD="$lt_cv_path_LD" 4595 if test -n "$LD"; then 4596 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4597 $as_echo "$LD" >&6; } 4598 else 4599 { $as_echo "$as_me:$LINENO: result: no" >&5 4600 $as_echo "no" >&6; } 4601 fi 4602 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4603 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4604 { (exit 1); exit 1; }; } 4605 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4606 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4607 if test "${lt_cv_prog_gnu_ld+set}" = set; then 4608 $as_echo_n "(cached) " >&6 4609 else 4610 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4611 case `$LD -v 2>&1 </dev/null` in 4612 *GNU* | *'with BFD'*) 4613 lt_cv_prog_gnu_ld=yes 4614 ;; 4615 *) 4616 lt_cv_prog_gnu_ld=no 4617 ;; 4618 esac 4619 fi 4620 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4621 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4622 with_gnu_ld=$lt_cv_prog_gnu_ld 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4633 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4634 if test "${lt_cv_path_NM+set}" = set; then 4635 $as_echo_n "(cached) " >&6 4636 else 4637 if test -n "$NM"; then 4638 # Let the user override the test. 4639 lt_cv_path_NM="$NM" 4640 else 4641 lt_nm_to_check="${ac_tool_prefix}nm" 4642 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4643 lt_nm_to_check="$lt_nm_to_check nm" 4644 fi 4645 for lt_tmp_nm in $lt_nm_to_check; do 4646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4647 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4648 IFS="$lt_save_ifs" 4649 test -z "$ac_dir" && ac_dir=. 4650 tmp_nm="$ac_dir/$lt_tmp_nm" 4651 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4652 # Check to see if the nm accepts a BSD-compat flag. 4653 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4654 # nm: unknown option "B" ignored 4655 # Tru64's nm complains that /dev/null is an invalid object file 4656 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4657 */dev/null* | *'Invalid file or object type'*) 4658 lt_cv_path_NM="$tmp_nm -B" 4659 break 4660 ;; 4661 *) 4662 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4663 */dev/null*) 4664 lt_cv_path_NM="$tmp_nm -p" 4665 break 4666 ;; 4667 *) 4668 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4669 continue # so that we can try to find one that supports BSD flags 4670 ;; 4671 esac 4672 ;; 4673 esac 4674 fi 4675 done 4676 IFS="$lt_save_ifs" 4677 done 4678 : ${lt_cv_path_NM=no} 4679 fi 4680 fi 4681 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4682 $as_echo "$lt_cv_path_NM" >&6; } 4683 if test "$lt_cv_path_NM" != "no"; then 4684 NM="$lt_cv_path_NM" 4685 else 4686 # Didn't find any BSD compatible name lister, look for dumpbin. 4687 if test -n "$ac_tool_prefix"; then 4688 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4689 do 4690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4693 $as_echo_n "checking for $ac_word... " >&6; } 4694 if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4695 $as_echo_n "(cached) " >&6 4696 else 4697 if test -n "$DUMPBIN"; then 4698 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4699 else 4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4701 for as_dir in $PATH 4702 do 4703 IFS=$as_save_IFS 4704 test -z "$as_dir" && as_dir=. 4705 for ac_exec_ext in '' $ac_executable_extensions; do 4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4707 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4709 break 2 4710 fi 4711 done 4712 done 4713 IFS=$as_save_IFS 4714 4715 fi 4716 fi 4717 DUMPBIN=$ac_cv_prog_DUMPBIN 4718 if test -n "$DUMPBIN"; then 4719 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4720 $as_echo "$DUMPBIN" >&6; } 4721 else 4722 { $as_echo "$as_me:$LINENO: result: no" >&5 4723 $as_echo "no" >&6; } 4724 fi 4725 4726 4727 test -n "$DUMPBIN" && break 4728 done 4729 fi 4730 if test -z "$DUMPBIN"; then 4731 ac_ct_DUMPBIN=$DUMPBIN 4732 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4733 do 4734 # Extract the first word of "$ac_prog", so it can be a program name with args. 4735 set dummy $ac_prog; ac_word=$2 4736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4737 $as_echo_n "checking for $ac_word... " >&6; } 4738 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4739 $as_echo_n "(cached) " >&6 4740 else 4741 if test -n "$ac_ct_DUMPBIN"; then 4742 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4743 else 4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4745 for as_dir in $PATH 4746 do 4747 IFS=$as_save_IFS 4748 test -z "$as_dir" && as_dir=. 4749 for ac_exec_ext in '' $ac_executable_extensions; do 4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4751 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4753 break 2 4754 fi 4755 done 4756 done 4757 IFS=$as_save_IFS 4758 4759 fi 4760 fi 4761 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4762 if test -n "$ac_ct_DUMPBIN"; then 4763 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4764 $as_echo "$ac_ct_DUMPBIN" >&6; } 4765 else 4766 { $as_echo "$as_me:$LINENO: result: no" >&5 4767 $as_echo "no" >&6; } 4768 fi 4769 4770 4771 test -n "$ac_ct_DUMPBIN" && break 4772 done 4773 4774 if test "x$ac_ct_DUMPBIN" = x; then 4775 DUMPBIN=":" 4776 else 4777 case $cross_compiling:$ac_tool_warned in 4778 yes:) 4779 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4781 ac_tool_warned=yes ;; 4782 esac 4783 DUMPBIN=$ac_ct_DUMPBIN 4784 fi 4785 fi 4786 4787 4788 if test "$DUMPBIN" != ":"; then 4789 NM="$DUMPBIN" 4790 fi 4791 fi 4792 test -z "$NM" && NM=nm 4793 4794 4795 4796 4797 4798 4799 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4800 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 4801 if test "${lt_cv_nm_interface+set}" = set; then 4802 $as_echo_n "(cached) " >&6 4803 else 4804 lt_cv_nm_interface="BSD nm" 4805 echo "int some_variable = 0;" > conftest.$ac_ext 4806 (eval echo "\"\$as_me:4806: $ac_compile\"" >&5) 4807 (eval "$ac_compile" 2>conftest.err) 4808 cat conftest.err >&5 4809 (eval echo "\"\$as_me:4809: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4810 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4811 cat conftest.err >&5 4812 (eval echo "\"\$as_me:4812: output\"" >&5) 4813 cat conftest.out >&5 4814 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4815 lt_cv_nm_interface="MS dumpbin" 4816 fi 4817 rm -f conftest* 4818 fi 4819 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4820 $as_echo "$lt_cv_nm_interface" >&6; } 4821 4822 # find the maximum length of command line arguments 4823 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4824 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 4825 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4826 $as_echo_n "(cached) " >&6 4827 else 4828 i=0 4829 teststring="ABCD" 4830 4831 case $build_os in 4832 msdosdjgpp*) 4833 # On DJGPP, this test can blow up pretty badly due to problems in libc 4834 # (any single argument exceeding 2000 bytes causes a buffer overrun 4835 # during glob expansion). Even if it were fixed, the result of this 4836 # check would be larger than it should be. 4837 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4838 ;; 4839 4840 gnu*) 4841 # Under GNU Hurd, this test is not required because there is 4842 # no limit to the length of command line arguments. 4843 # Libtool will interpret -1 as no limit whatsoever 4844 lt_cv_sys_max_cmd_len=-1; 4845 ;; 4846 4847 cygwin* | mingw* | cegcc*) 4848 # On Win9x/ME, this test blows up -- it succeeds, but takes 4849 # about 5 minutes as the teststring grows exponentially. 4850 # Worse, since 9x/ME are not pre-emptively multitasking, 4851 # you end up with a "frozen" computer, even though with patience 4852 # the test eventually succeeds (with a max line length of 256k). 4853 # Instead, let's just punt: use the minimum linelength reported by 4854 # all of the supported platforms: 8192 (on NT/2K/XP). 4855 lt_cv_sys_max_cmd_len=8192; 4856 ;; 4857 4858 amigaos*) 4859 # On AmigaOS with pdksh, this test takes hours, literally. 4860 # So we just punt and use a minimum line length of 8192. 4861 lt_cv_sys_max_cmd_len=8192; 4862 ;; 4863 4864 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4865 # This has been around since 386BSD, at least. Likely further. 4866 if test -x /sbin/sysctl; then 4867 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4868 elif test -x /usr/sbin/sysctl; then 4869 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4870 else 4871 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4872 fi 4873 # And add a safety zone 4874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4876 ;; 4877 4878 interix*) 4879 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4880 lt_cv_sys_max_cmd_len=196608 4881 ;; 4882 4883 osf*) 4884 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4885 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4886 # nice to cause kernel panics so lets avoid the loop below. 4887 # First set a reasonable default. 4888 lt_cv_sys_max_cmd_len=16384 4889 # 4890 if test -x /sbin/sysconfig; then 4891 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4892 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4893 esac 4894 fi 4895 ;; 4896 sco3.2v5*) 4897 lt_cv_sys_max_cmd_len=102400 4898 ;; 4899 sysv5* | sco5v6* | sysv4.2uw2*) 4900 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4901 if test -n "$kargmax"; then 4902 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4903 else 4904 lt_cv_sys_max_cmd_len=32768 4905 fi 4906 ;; 4907 *) 4908 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4909 if test -n "$lt_cv_sys_max_cmd_len"; then 4910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4912 else 4913 # Make teststring a little bigger before we do anything with it. 4914 # a 1K string should be a reasonable start. 4915 for i in 1 2 3 4 5 6 7 8 ; do 4916 teststring=$teststring$teststring 4917 done 4918 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4919 # If test is not a shell built-in, we'll probably end up computing a 4920 # maximum length that is only half of the actual maximum length, but 4921 # we can't tell. 4922 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4923 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4924 test $i != 17 # 1/2 MB should be enough 4925 do 4926 i=`expr $i + 1` 4927 teststring=$teststring$teststring 4928 done 4929 # Only check the string length outside the loop. 4930 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4931 teststring= 4932 # Add a significant safety factor because C++ compilers can tack on 4933 # massive amounts of additional arguments before passing them to the 4934 # linker. It appears as though 1/2 is a usable value. 4935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4936 fi 4937 ;; 4938 esac 4939 4940 fi 4941 4942 if test -n $lt_cv_sys_max_cmd_len ; then 4943 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4944 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4945 else 4946 { $as_echo "$as_me:$LINENO: result: none" >&5 4947 $as_echo "none" >&6; } 4948 fi 4949 max_cmd_len=$lt_cv_sys_max_cmd_len 4950 4951 4952 4953 4954 4955 4956 : ${CP="cp -f"} 4957 : ${MV="mv -f"} 4958 : ${RM="rm -f"} 4959 4960 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4961 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4962 # Try some XSI features 4963 xsi_shell=no 4964 ( _lt_dummy="a/b/c" 4965 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4966 = c,a/b,, \ 4967 && eval 'test $(( 1 + 1 )) -eq 2 \ 4968 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4969 && xsi_shell=yes 4970 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4971 $as_echo "$xsi_shell" >&6; } 4972 4973 4974 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4975 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4976 lt_shell_append=no 4977 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4978 >/dev/null 2>&1 \ 4979 && lt_shell_append=yes 4980 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4981 $as_echo "$lt_shell_append" >&6; } 4982 4983 4984 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4985 lt_unset=unset 4986 else 4987 lt_unset=false 4988 fi 4989 4990 4991 4992 4993 4994 # test EBCDIC or ASCII 4995 case `echo X|tr X '\101'` in 4996 A) # ASCII based system 4997 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4998 lt_SP2NL='tr \040 \012' 4999 lt_NL2SP='tr \015\012 \040\040' 5000 ;; 5001 *) # EBCDIC based system 5002 lt_SP2NL='tr \100 \n' 5003 lt_NL2SP='tr \r\n \100\100' 5004 ;; 5005 esac 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5016 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5017 if test "${lt_cv_ld_reload_flag+set}" = set; then 5018 $as_echo_n "(cached) " >&6 5019 else 5020 lt_cv_ld_reload_flag='-r' 5021 fi 5022 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5023 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5024 reload_flag=$lt_cv_ld_reload_flag 5025 case $reload_flag in 5026 "" | " "*) ;; 5027 *) reload_flag=" $reload_flag" ;; 5028 esac 5029 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5030 case $host_os in 5031 darwin*) 5032 if test "$GCC" = yes; then 5033 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5034 else 5035 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5036 fi 5037 ;; 5038 esac 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 if test -n "$ac_tool_prefix"; then 5049 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5050 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5052 $as_echo_n "checking for $ac_word... " >&6; } 5053 if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5054 $as_echo_n "(cached) " >&6 5055 else 5056 if test -n "$OBJDUMP"; then 5057 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5058 else 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5060 for as_dir in $PATH 5061 do 5062 IFS=$as_save_IFS 5063 test -z "$as_dir" && as_dir=. 5064 for ac_exec_ext in '' $ac_executable_extensions; do 5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5066 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5068 break 2 5069 fi 5070 done 5071 done 5072 IFS=$as_save_IFS 5073 5074 fi 5075 fi 5076 OBJDUMP=$ac_cv_prog_OBJDUMP 5077 if test -n "$OBJDUMP"; then 5078 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5079 $as_echo "$OBJDUMP" >&6; } 5080 else 5081 { $as_echo "$as_me:$LINENO: result: no" >&5 5082 $as_echo "no" >&6; } 5083 fi 5084 5085 5086 fi 5087 if test -z "$ac_cv_prog_OBJDUMP"; then 5088 ac_ct_OBJDUMP=$OBJDUMP 5089 # Extract the first word of "objdump", so it can be a program name with args. 5090 set dummy objdump; ac_word=$2 5091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5092 $as_echo_n "checking for $ac_word... " >&6; } 5093 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5094 $as_echo_n "(cached) " >&6 5095 else 5096 if test -n "$ac_ct_OBJDUMP"; then 5097 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5098 else 5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5100 for as_dir in $PATH 5101 do 5102 IFS=$as_save_IFS 5103 test -z "$as_dir" && as_dir=. 5104 for ac_exec_ext in '' $ac_executable_extensions; do 5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5106 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5108 break 2 5109 fi 5110 done 5111 done 5112 IFS=$as_save_IFS 5113 5114 fi 5115 fi 5116 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5117 if test -n "$ac_ct_OBJDUMP"; then 5118 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5119 $as_echo "$ac_ct_OBJDUMP" >&6; } 5120 else 5121 { $as_echo "$as_me:$LINENO: result: no" >&5 5122 $as_echo "no" >&6; } 5123 fi 5124 5125 if test "x$ac_ct_OBJDUMP" = x; then 5126 OBJDUMP="false" 5127 else 5128 case $cross_compiling:$ac_tool_warned in 5129 yes:) 5130 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5132 ac_tool_warned=yes ;; 5133 esac 5134 OBJDUMP=$ac_ct_OBJDUMP 5135 fi 5136 else 5137 OBJDUMP="$ac_cv_prog_OBJDUMP" 5138 fi 5139 5140 test -z "$OBJDUMP" && OBJDUMP=objdump 5141 5142 5143 5144 5145 5146 5147 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5148 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5149 if test "${lt_cv_deplibs_check_method+set}" = set; then 5150 $as_echo_n "(cached) " >&6 5151 else 5152 lt_cv_file_magic_cmd='$MAGIC_CMD' 5153 lt_cv_file_magic_test_file= 5154 lt_cv_deplibs_check_method='unknown' 5155 # Need to set the preceding variable on all platforms that support 5156 # interlibrary dependencies. 5157 # 'none' -- dependencies not supported. 5158 # `unknown' -- same as none, but documents that we really don't know. 5159 # 'pass_all' -- all dependencies passed with no checks. 5160 # 'test_compile' -- check by making test program. 5161 # 'file_magic [[regex]]' -- check by looking for files in library path 5162 # which responds to the $file_magic_cmd with a given extended regex. 5163 # If you have `file' or equivalent on your system and you're not sure 5164 # whether `pass_all' will *always* work, you probably want this one. 5165 5166 case $host_os in 5167 aix[4-9]*) 5168 lt_cv_deplibs_check_method=pass_all 5169 ;; 5170 5171 beos*) 5172 lt_cv_deplibs_check_method=pass_all 5173 ;; 5174 5175 bsdi[45]*) 5176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5177 lt_cv_file_magic_cmd='/usr/bin/file -L' 5178 lt_cv_file_magic_test_file=/shlib/libc.so 5179 ;; 5180 5181 cygwin*) 5182 # func_win32_libid is a shell function defined in ltmain.sh 5183 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5184 lt_cv_file_magic_cmd='func_win32_libid' 5185 ;; 5186 5187 mingw* | pw32*) 5188 # Base MSYS/MinGW do not provide the 'file' command needed by 5189 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5190 # unless we find 'file', for example because we are cross-compiling. 5191 if ( file / ) >/dev/null 2>&1; then 5192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5193 lt_cv_file_magic_cmd='func_win32_libid' 5194 else 5195 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5196 lt_cv_file_magic_cmd='$OBJDUMP -f' 5197 fi 5198 ;; 5199 5200 cegcc) 5201 # use the weaker test based on 'objdump'. See mingw*. 5202 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5203 lt_cv_file_magic_cmd='$OBJDUMP -f' 5204 ;; 5205 5206 darwin* | rhapsody*) 5207 lt_cv_deplibs_check_method=pass_all 5208 ;; 5209 5210 freebsd* | dragonfly*) 5211 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5212 case $host_cpu in 5213 i*86 ) 5214 # Not sure whether the presence of OpenBSD here was a mistake. 5215 # Let's accept both of them until this is cleared up. 5216 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5217 lt_cv_file_magic_cmd=/usr/bin/file 5218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5219 ;; 5220 esac 5221 else 5222 lt_cv_deplibs_check_method=pass_all 5223 fi 5224 ;; 5225 5226 gnu*) 5227 lt_cv_deplibs_check_method=pass_all 5228 ;; 5229 5230 hpux10.20* | hpux11*) 5231 lt_cv_file_magic_cmd=/usr/bin/file 5232 case $host_cpu in 5233 ia64*) 5234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5235 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5236 ;; 5237 hppa*64*) 5238 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]' 5239 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5240 ;; 5241 *) 5242 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5243 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5244 ;; 5245 esac 5246 ;; 5247 5248 interix[3-9]*) 5249 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5251 ;; 5252 5253 irix5* | irix6* | nonstopux*) 5254 case $LD in 5255 *-32|*"-32 ") libmagic=32-bit;; 5256 *-n32|*"-n32 ") libmagic=N32;; 5257 *-64|*"-64 ") libmagic=64-bit;; 5258 *) libmagic=never-match;; 5259 esac 5260 lt_cv_deplibs_check_method=pass_all 5261 ;; 5262 5263 # This must be Linux ELF. 5264 linux* | k*bsd*-gnu) 5265 lt_cv_deplibs_check_method=pass_all 5266 ;; 5267 5268 netbsd*) 5269 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5271 else 5272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5273 fi 5274 ;; 5275 5276 newos6*) 5277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5278 lt_cv_file_magic_cmd=/usr/bin/file 5279 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5280 ;; 5281 5282 *nto* | *qnx*) 5283 lt_cv_deplibs_check_method=pass_all 5284 ;; 5285 5286 openbsd*) 5287 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5289 else 5290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5291 fi 5292 ;; 5293 5294 osf3* | osf4* | osf5*) 5295 lt_cv_deplibs_check_method=pass_all 5296 ;; 5297 5298 rdos*) 5299 lt_cv_deplibs_check_method=pass_all 5300 ;; 5301 5302 solaris*) 5303 lt_cv_deplibs_check_method=pass_all 5304 ;; 5305 5306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5307 lt_cv_deplibs_check_method=pass_all 5308 ;; 5309 5310 sysv4 | sysv4.3*) 5311 case $host_vendor in 5312 motorola) 5313 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]' 5314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5315 ;; 5316 ncr) 5317 lt_cv_deplibs_check_method=pass_all 5318 ;; 5319 sequent) 5320 lt_cv_file_magic_cmd='/bin/file' 5321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5322 ;; 5323 sni) 5324 lt_cv_file_magic_cmd='/bin/file' 5325 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5326 lt_cv_file_magic_test_file=/lib/libc.so 5327 ;; 5328 siemens) 5329 lt_cv_deplibs_check_method=pass_all 5330 ;; 5331 pc) 5332 lt_cv_deplibs_check_method=pass_all 5333 ;; 5334 esac 5335 ;; 5336 5337 tpf*) 5338 lt_cv_deplibs_check_method=pass_all 5339 ;; 5340 esac 5341 5342 fi 5343 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5344 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5345 file_magic_cmd=$lt_cv_file_magic_cmd 5346 deplibs_check_method=$lt_cv_deplibs_check_method 5347 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 if test -n "$ac_tool_prefix"; then 5361 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5362 set dummy ${ac_tool_prefix}ar; ac_word=$2 5363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5364 $as_echo_n "checking for $ac_word... " >&6; } 5365 if test "${ac_cv_prog_AR+set}" = set; then 5366 $as_echo_n "(cached) " >&6 5367 else 5368 if test -n "$AR"; then 5369 ac_cv_prog_AR="$AR" # Let the user override the test. 5370 else 5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5372 for as_dir in $PATH 5373 do 5374 IFS=$as_save_IFS 5375 test -z "$as_dir" && as_dir=. 5376 for ac_exec_ext in '' $ac_executable_extensions; do 5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5378 ac_cv_prog_AR="${ac_tool_prefix}ar" 5379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5380 break 2 5381 fi 5382 done 5383 done 5384 IFS=$as_save_IFS 5385 5386 fi 5387 fi 5388 AR=$ac_cv_prog_AR 5389 if test -n "$AR"; then 5390 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5391 $as_echo "$AR" >&6; } 5392 else 5393 { $as_echo "$as_me:$LINENO: result: no" >&5 5394 $as_echo "no" >&6; } 5395 fi 5396 5397 5398 fi 5399 if test -z "$ac_cv_prog_AR"; then 5400 ac_ct_AR=$AR 5401 # Extract the first word of "ar", so it can be a program name with args. 5402 set dummy ar; ac_word=$2 5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5404 $as_echo_n "checking for $ac_word... " >&6; } 5405 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5406 $as_echo_n "(cached) " >&6 5407 else 5408 if test -n "$ac_ct_AR"; then 5409 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5410 else 5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5412 for as_dir in $PATH 5413 do 5414 IFS=$as_save_IFS 5415 test -z "$as_dir" && as_dir=. 5416 for ac_exec_ext in '' $ac_executable_extensions; do 5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5418 ac_cv_prog_ac_ct_AR="ar" 5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5420 break 2 5421 fi 5422 done 5423 done 5424 IFS=$as_save_IFS 5425 5426 fi 5427 fi 5428 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5429 if test -n "$ac_ct_AR"; then 5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5431 $as_echo "$ac_ct_AR" >&6; } 5432 else 5433 { $as_echo "$as_me:$LINENO: result: no" >&5 5434 $as_echo "no" >&6; } 5435 fi 5436 5437 if test "x$ac_ct_AR" = x; then 5438 AR="false" 5439 else 5440 case $cross_compiling:$ac_tool_warned in 5441 yes:) 5442 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5444 ac_tool_warned=yes ;; 5445 esac 5446 AR=$ac_ct_AR 5447 fi 5448 else 5449 AR="$ac_cv_prog_AR" 5450 fi 5451 5452 test -z "$AR" && AR=ar 5453 test -z "$AR_FLAGS" && AR_FLAGS=cru 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 if test -n "$ac_tool_prefix"; then 5466 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5467 set dummy ${ac_tool_prefix}strip; ac_word=$2 5468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5469 $as_echo_n "checking for $ac_word... " >&6; } 5470 if test "${ac_cv_prog_STRIP+set}" = set; then 5471 $as_echo_n "(cached) " >&6 5472 else 5473 if test -n "$STRIP"; then 5474 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5475 else 5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5477 for as_dir in $PATH 5478 do 5479 IFS=$as_save_IFS 5480 test -z "$as_dir" && as_dir=. 5481 for ac_exec_ext in '' $ac_executable_extensions; do 5482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5483 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5485 break 2 5486 fi 5487 done 5488 done 5489 IFS=$as_save_IFS 5490 5491 fi 5492 fi 5493 STRIP=$ac_cv_prog_STRIP 5494 if test -n "$STRIP"; then 5495 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5496 $as_echo "$STRIP" >&6; } 5497 else 5498 { $as_echo "$as_me:$LINENO: result: no" >&5 5499 $as_echo "no" >&6; } 5500 fi 5501 5502 5503 fi 5504 if test -z "$ac_cv_prog_STRIP"; then 5505 ac_ct_STRIP=$STRIP 5506 # Extract the first word of "strip", so it can be a program name with args. 5507 set dummy strip; ac_word=$2 5508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5509 $as_echo_n "checking for $ac_word... " >&6; } 5510 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5511 $as_echo_n "(cached) " >&6 5512 else 5513 if test -n "$ac_ct_STRIP"; then 5514 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5515 else 5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5517 for as_dir in $PATH 5518 do 5519 IFS=$as_save_IFS 5520 test -z "$as_dir" && as_dir=. 5521 for ac_exec_ext in '' $ac_executable_extensions; do 5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5523 ac_cv_prog_ac_ct_STRIP="strip" 5524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5525 break 2 5526 fi 5527 done 5528 done 5529 IFS=$as_save_IFS 5530 5531 fi 5532 fi 5533 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5534 if test -n "$ac_ct_STRIP"; then 5535 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5536 $as_echo "$ac_ct_STRIP" >&6; } 5537 else 5538 { $as_echo "$as_me:$LINENO: result: no" >&5 5539 $as_echo "no" >&6; } 5540 fi 5541 5542 if test "x$ac_ct_STRIP" = x; then 5543 STRIP=":" 5544 else 5545 case $cross_compiling:$ac_tool_warned in 5546 yes:) 5547 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5549 ac_tool_warned=yes ;; 5550 esac 5551 STRIP=$ac_ct_STRIP 5552 fi 5553 else 5554 STRIP="$ac_cv_prog_STRIP" 5555 fi 5556 5557 test -z "$STRIP" && STRIP=: 5558 5559 5560 5561 5562 5563 5564 if test -n "$ac_tool_prefix"; then 5565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5568 $as_echo_n "checking for $ac_word... " >&6; } 5569 if test "${ac_cv_prog_RANLIB+set}" = set; then 5570 $as_echo_n "(cached) " >&6 5571 else 5572 if test -n "$RANLIB"; then 5573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5574 else 5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5576 for as_dir in $PATH 5577 do 5578 IFS=$as_save_IFS 5579 test -z "$as_dir" && as_dir=. 5580 for ac_exec_ext in '' $ac_executable_extensions; do 5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5582 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5584 break 2 5585 fi 5586 done 5587 done 5588 IFS=$as_save_IFS 5589 5590 fi 5591 fi 5592 RANLIB=$ac_cv_prog_RANLIB 5593 if test -n "$RANLIB"; then 5594 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5595 $as_echo "$RANLIB" >&6; } 5596 else 5597 { $as_echo "$as_me:$LINENO: result: no" >&5 5598 $as_echo "no" >&6; } 5599 fi 5600 5601 5602 fi 5603 if test -z "$ac_cv_prog_RANLIB"; then 5604 ac_ct_RANLIB=$RANLIB 5605 # Extract the first word of "ranlib", so it can be a program name with args. 5606 set dummy ranlib; ac_word=$2 5607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5608 $as_echo_n "checking for $ac_word... " >&6; } 5609 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5610 $as_echo_n "(cached) " >&6 5611 else 5612 if test -n "$ac_ct_RANLIB"; then 5613 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5614 else 5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5616 for as_dir in $PATH 5617 do 5618 IFS=$as_save_IFS 5619 test -z "$as_dir" && as_dir=. 5620 for ac_exec_ext in '' $ac_executable_extensions; do 5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5622 ac_cv_prog_ac_ct_RANLIB="ranlib" 5623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5624 break 2 5625 fi 5626 done 5627 done 5628 IFS=$as_save_IFS 5629 5630 fi 5631 fi 5632 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5633 if test -n "$ac_ct_RANLIB"; then 5634 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5635 $as_echo "$ac_ct_RANLIB" >&6; } 5636 else 5637 { $as_echo "$as_me:$LINENO: result: no" >&5 5638 $as_echo "no" >&6; } 5639 fi 5640 5641 if test "x$ac_ct_RANLIB" = x; then 5642 RANLIB=":" 5643 else 5644 case $cross_compiling:$ac_tool_warned in 5645 yes:) 5646 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5648 ac_tool_warned=yes ;; 5649 esac 5650 RANLIB=$ac_ct_RANLIB 5651 fi 5652 else 5653 RANLIB="$ac_cv_prog_RANLIB" 5654 fi 5655 5656 test -z "$RANLIB" && RANLIB=: 5657 5658 5659 5660 5661 5662 5663 # Determine commands to create old-style static archives. 5664 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5665 old_postinstall_cmds='chmod 644 $oldlib' 5666 old_postuninstall_cmds= 5667 5668 if test -n "$RANLIB"; then 5669 case $host_os in 5670 openbsd*) 5671 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5672 ;; 5673 *) 5674 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5675 ;; 5676 esac 5677 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5678 fi 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 # If no C compiler was specified, use CC. 5714 LTCC=${LTCC-"$CC"} 5715 5716 # If no C compiler flags were specified, use CFLAGS. 5717 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5718 5719 # Allow CC to be a program name with arguments. 5720 compiler=$CC 5721 5722 5723 # Check for command to grab the raw symbol name followed by C symbol from nm. 5724 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5725 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5726 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5727 $as_echo_n "(cached) " >&6 5728 else 5729 5730 # These are sane defaults that work on at least a few old systems. 5731 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 5732 5733 # Character class describing NM global symbol codes. 5734 symcode='[BCDEGRST]' 5735 5736 # Regexp to match symbols that can be accessed directly from C. 5737 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5738 5739 # Define system-specific variables. 5740 case $host_os in 5741 aix*) 5742 symcode='[BCDT]' 5743 ;; 5744 cygwin* | mingw* | pw32* | cegcc*) 5745 symcode='[ABCDGISTW]' 5746 ;; 5747 hpux*) 5748 if test "$host_cpu" = ia64; then 5749 symcode='[ABCDEGRST]' 5750 fi 5751 ;; 5752 irix* | nonstopux*) 5753 symcode='[BCDEGRST]' 5754 ;; 5755 osf*) 5756 symcode='[BCDEGQRST]' 5757 ;; 5758 solaris*) 5759 symcode='[BDRT]' 5760 ;; 5761 sco3.2v5*) 5762 symcode='[DT]' 5763 ;; 5764 sysv4.2uw2*) 5765 symcode='[DT]' 5766 ;; 5767 sysv5* | sco5v6* | unixware* | OpenUNIX*) 5768 symcode='[ABDT]' 5769 ;; 5770 sysv4) 5771 symcode='[DFNSTU]' 5772 ;; 5773 esac 5774 5775 # If we're using GNU nm, then use its standard symbol codes. 5776 case `$NM -V 2>&1` in 5777 *GNU* | *'with BFD'*) 5778 symcode='[ABCDGIRSTW]' ;; 5779 esac 5780 5781 # Transform an extracted symbol line into a proper C declaration. 5782 # Some systems (esp. on ia64) link data and code symbols differently, 5783 # so use this general approach. 5784 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5785 5786 # Transform an extracted symbol line into symbol name and symbol address 5787 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5788 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5789 5790 # Handle CRLF in mingw tool chain 5791 opt_cr= 5792 case $build_os in 5793 mingw*) 5794 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5795 ;; 5796 esac 5797 5798 # Try without a prefix underscore, then with it. 5799 for ac_symprfx in "" "_"; do 5800 5801 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5802 symxfrm="\\1 $ac_symprfx\\2 \\2" 5803 5804 # Write the raw and C identifiers. 5805 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5806 # Fake it for dumpbin and say T for any non-static function 5807 # and D for any global variable. 5808 # Also find C++ and __fastcall symbols from MSVC++, 5809 # which start with @ or ?. 5810 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5811 " {last_section=section; section=\$ 3};"\ 5812 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5813 " \$ 0!~/External *\|/{next};"\ 5814 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5815 " {if(hide[section]) next};"\ 5816 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5817 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5818 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5819 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5820 " ' prfx=^$ac_symprfx" 5821 else 5822 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5823 fi 5824 5825 # Check to see that the pipe works correctly. 5826 pipe_works=no 5827 5828 rm -f conftest* 5829 cat > conftest.$ac_ext <<_LT_EOF 5830 #ifdef __cplusplus 5831 extern "C" { 5832 #endif 5833 char nm_test_var; 5834 void nm_test_func(void); 5835 void nm_test_func(void){} 5836 #ifdef __cplusplus 5837 } 5838 #endif 5839 int main(){nm_test_var='a';nm_test_func();return(0);} 5840 _LT_EOF 5841 5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5843 (eval $ac_compile) 2>&5 5844 ac_status=$? 5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5846 (exit $ac_status); }; then 5847 # Now try to grab the symbols. 5848 nlist=conftest.nm 5849 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5850 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5851 ac_status=$? 5852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5853 (exit $ac_status); } && test -s "$nlist"; then 5854 # Try sorting and uniquifying the output. 5855 if sort "$nlist" | uniq > "$nlist"T; then 5856 mv -f "$nlist"T "$nlist" 5857 else 5858 rm -f "$nlist"T 5859 fi 5860 5861 # Make sure that we snagged all the symbols we need. 5862 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5863 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5864 cat <<_LT_EOF > conftest.$ac_ext 5865 #ifdef __cplusplus 5866 extern "C" { 5867 #endif 5868 5869 _LT_EOF 5870 # Now generate the symbol file. 5871 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5872 5873 cat <<_LT_EOF >> conftest.$ac_ext 5874 5875 /* The mapping between symbol names and symbols. */ 5876 const struct { 5877 const char *name; 5878 void *address; 5879 } 5880 lt__PROGRAM__LTX_preloaded_symbols[] = 5881 { 5882 { "@PROGRAM@", (void *) 0 }, 5883 _LT_EOF 5884 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5885 cat <<\_LT_EOF >> conftest.$ac_ext 5886 {0, (void *) 0} 5887 }; 5888 5889 /* This works around a problem in FreeBSD linker */ 5890 #ifdef FREEBSD_WORKAROUND 5891 static const void *lt_preloaded_setup() { 5892 return lt__PROGRAM__LTX_preloaded_symbols; 5893 } 5894 #endif 5895 5896 #ifdef __cplusplus 5897 } 5898 #endif 5899 _LT_EOF 5900 # Now try linking the two files. 5901 mv conftest.$ac_objext conftstm.$ac_objext 5902 lt_save_LIBS="$LIBS" 5903 lt_save_CFLAGS="$CFLAGS" 5904 LIBS="conftstm.$ac_objext" 5905 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5907 (eval $ac_link) 2>&5 5908 ac_status=$? 5909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5910 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5911 pipe_works=yes 5912 fi 5913 LIBS="$lt_save_LIBS" 5914 CFLAGS="$lt_save_CFLAGS" 5915 else 5916 echo "cannot find nm_test_func in $nlist" >&5 5917 fi 5918 else 5919 echo "cannot find nm_test_var in $nlist" >&5 5920 fi 5921 else 5922 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5923 fi 5924 else 5925 echo "$progname: failed program was:" >&5 5926 cat conftest.$ac_ext >&5 5927 fi 5928 rm -rf conftest* conftst* 5929 5930 # Do not use the global_symbol_pipe unless it works. 5931 if test "$pipe_works" = yes; then 5932 break 5933 else 5934 lt_cv_sys_global_symbol_pipe= 5935 fi 5936 done 5937 5938 fi 5939 5940 if test -z "$lt_cv_sys_global_symbol_pipe"; then 5941 lt_cv_sys_global_symbol_to_cdecl= 5942 fi 5943 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5944 { $as_echo "$as_me:$LINENO: result: failed" >&5 5945 $as_echo "failed" >&6; } 5946 else 5947 { $as_echo "$as_me:$LINENO: result: ok" >&5 5948 $as_echo "ok" >&6; } 5949 fi 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 # Check whether --enable-libtool-lock was given. 5974 if test "${enable_libtool_lock+set}" = set; then 5975 enableval=$enable_libtool_lock; 5976 fi 5977 5978 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5979 5980 # Some flags need to be propagated to the compiler or linker for good 5981 # libtool support. 5982 case $host in 5983 ia64-*-hpux*) 5984 # Find out which ABI we are using. 5985 echo 'int i;' > conftest.$ac_ext 5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5987 (eval $ac_compile) 2>&5 5988 ac_status=$? 5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5990 (exit $ac_status); }; then 5991 case `/usr/bin/file conftest.$ac_objext` in 5992 *ELF-32*) 5993 HPUX_IA64_MODE="32" 5994 ;; 5995 *ELF-64*) 5996 HPUX_IA64_MODE="64" 5997 ;; 5998 esac 5999 fi 6000 rm -rf conftest* 6001 ;; 6002 *-*-irix6*) 6003 # Find out which ABI we are using. 6004 echo '#line 6004 "configure"' > conftest.$ac_ext 6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6006 (eval $ac_compile) 2>&5 6007 ac_status=$? 6008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6009 (exit $ac_status); }; then 6010 if test "$lt_cv_prog_gnu_ld" = yes; then 6011 case `/usr/bin/file conftest.$ac_objext` in 6012 *32-bit*) 6013 LD="${LD-ld} -melf32bsmip" 6014 ;; 6015 *N32*) 6016 LD="${LD-ld} -melf32bmipn32" 6017 ;; 6018 *64-bit*) 6019 LD="${LD-ld} -melf64bmip" 6020 ;; 6021 esac 6022 else 6023 case `/usr/bin/file conftest.$ac_objext` in 6024 *32-bit*) 6025 LD="${LD-ld} -32" 6026 ;; 6027 *N32*) 6028 LD="${LD-ld} -n32" 6029 ;; 6030 *64-bit*) 6031 LD="${LD-ld} -64" 6032 ;; 6033 esac 6034 fi 6035 fi 6036 rm -rf conftest* 6037 ;; 6038 6039 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6040 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6041 # Find out which ABI we are using. 6042 echo 'int i;' > conftest.$ac_ext 6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6044 (eval $ac_compile) 2>&5 6045 ac_status=$? 6046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6047 (exit $ac_status); }; then 6048 case `/usr/bin/file conftest.o` in 6049 *32-bit*) 6050 case $host in 6051 x86_64-*kfreebsd*-gnu) 6052 LD="${LD-ld} -m elf_i386_fbsd" 6053 ;; 6054 x86_64-*linux*) 6055 LD="${LD-ld} -m elf_i386" 6056 ;; 6057 ppc64-*linux*|powerpc64-*linux*) 6058 LD="${LD-ld} -m elf32ppclinux" 6059 ;; 6060 s390x-*linux*) 6061 LD="${LD-ld} -m elf_s390" 6062 ;; 6063 sparc64-*linux*) 6064 LD="${LD-ld} -m elf32_sparc" 6065 ;; 6066 esac 6067 ;; 6068 *64-bit*) 6069 case $host in 6070 x86_64-*kfreebsd*-gnu) 6071 LD="${LD-ld} -m elf_x86_64_fbsd" 6072 ;; 6073 x86_64-*linux*) 6074 LD="${LD-ld} -m elf_x86_64" 6075 ;; 6076 ppc*-*linux*|powerpc*-*linux*) 6077 LD="${LD-ld} -m elf64ppc" 6078 ;; 6079 s390*-*linux*|s390*-*tpf*) 6080 LD="${LD-ld} -m elf64_s390" 6081 ;; 6082 sparc*-*linux*) 6083 LD="${LD-ld} -m elf64_sparc" 6084 ;; 6085 esac 6086 ;; 6087 esac 6088 fi 6089 rm -rf conftest* 6090 ;; 6091 6092 *-*-sco3.2v5*) 6093 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6094 SAVE_CFLAGS="$CFLAGS" 6095 CFLAGS="$CFLAGS -belf" 6096 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6097 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6098 if test "${lt_cv_cc_needs_belf+set}" = set; then 6099 $as_echo_n "(cached) " >&6 6100 else 6101 ac_ext=c 6102 ac_cpp='$CPP $CPPFLAGS' 6103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6105 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6106 6107 cat >conftest.$ac_ext <<_ACEOF 6108 /* confdefs.h. */ 6109 _ACEOF 6110 cat confdefs.h >>conftest.$ac_ext 6111 cat >>conftest.$ac_ext <<_ACEOF 6112 /* end confdefs.h. */ 6113 6114 int 6115 main () 6116 { 6117 6118 ; 6119 return 0; 6120 } 6121 _ACEOF 6122 rm -f conftest.$ac_objext conftest$ac_exeext 6123 if { (ac_try="$ac_link" 6124 case "(($ac_try" in 6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6126 *) ac_try_echo=$ac_try;; 6127 esac 6128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6129 $as_echo "$ac_try_echo") >&5 6130 (eval "$ac_link") 2>conftest.er1 6131 ac_status=$? 6132 grep -v '^ *+' conftest.er1 >conftest.err 6133 rm -f conftest.er1 6134 cat conftest.err >&5 6135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6136 (exit $ac_status); } && { 6137 test -z "$ac_c_werror_flag" || 6138 test ! -s conftest.err 6139 } && test -s conftest$ac_exeext && { 6140 test "$cross_compiling" = yes || 6141 $as_test_x conftest$ac_exeext 6142 }; then 6143 lt_cv_cc_needs_belf=yes 6144 else 6145 $as_echo "$as_me: failed program was:" >&5 6146 sed 's/^/| /' conftest.$ac_ext >&5 6147 6148 lt_cv_cc_needs_belf=no 6149 fi 6150 6151 rm -rf conftest.dSYM 6152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6153 conftest$ac_exeext conftest.$ac_ext 6154 ac_ext=c 6155 ac_cpp='$CPP $CPPFLAGS' 6156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6158 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6159 6160 fi 6161 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6162 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6163 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6164 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6165 CFLAGS="$SAVE_CFLAGS" 6166 fi 6167 ;; 6168 sparc*-*solaris*) 6169 # Find out which ABI we are using. 6170 echo 'int i;' > conftest.$ac_ext 6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6172 (eval $ac_compile) 2>&5 6173 ac_status=$? 6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6175 (exit $ac_status); }; then 6176 case `/usr/bin/file conftest.o` in 6177 *64-bit*) 6178 case $lt_cv_prog_gnu_ld in 6179 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6180 *) 6181 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6182 LD="${LD-ld} -64" 6183 fi 6184 ;; 6185 esac 6186 ;; 6187 esac 6188 fi 6189 rm -rf conftest* 6190 ;; 6191 esac 6192 6193 need_locks="$enable_libtool_lock" 6194 6195 6196 case $host_os in 6197 rhapsody* | darwin*) 6198 if test -n "$ac_tool_prefix"; then 6199 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6200 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6202 $as_echo_n "checking for $ac_word... " >&6; } 6203 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6204 $as_echo_n "(cached) " >&6 6205 else 6206 if test -n "$DSYMUTIL"; then 6207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6208 else 6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6210 for as_dir in $PATH 6211 do 6212 IFS=$as_save_IFS 6213 test -z "$as_dir" && as_dir=. 6214 for ac_exec_ext in '' $ac_executable_extensions; do 6215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6216 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6218 break 2 6219 fi 6220 done 6221 done 6222 IFS=$as_save_IFS 6223 6224 fi 6225 fi 6226 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6227 if test -n "$DSYMUTIL"; then 6228 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6229 $as_echo "$DSYMUTIL" >&6; } 6230 else 6231 { $as_echo "$as_me:$LINENO: result: no" >&5 6232 $as_echo "no" >&6; } 6233 fi 6234 6235 6236 fi 6237 if test -z "$ac_cv_prog_DSYMUTIL"; then 6238 ac_ct_DSYMUTIL=$DSYMUTIL 6239 # Extract the first word of "dsymutil", so it can be a program name with args. 6240 set dummy dsymutil; ac_word=$2 6241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6242 $as_echo_n "checking for $ac_word... " >&6; } 6243 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6244 $as_echo_n "(cached) " >&6 6245 else 6246 if test -n "$ac_ct_DSYMUTIL"; then 6247 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6248 else 6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6250 for as_dir in $PATH 6251 do 6252 IFS=$as_save_IFS 6253 test -z "$as_dir" && as_dir=. 6254 for ac_exec_ext in '' $ac_executable_extensions; do 6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6256 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6258 break 2 6259 fi 6260 done 6261 done 6262 IFS=$as_save_IFS 6263 6264 fi 6265 fi 6266 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6267 if test -n "$ac_ct_DSYMUTIL"; then 6268 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6269 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6270 else 6271 { $as_echo "$as_me:$LINENO: result: no" >&5 6272 $as_echo "no" >&6; } 6273 fi 6274 6275 if test "x$ac_ct_DSYMUTIL" = x; then 6276 DSYMUTIL=":" 6277 else 6278 case $cross_compiling:$ac_tool_warned in 6279 yes:) 6280 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6282 ac_tool_warned=yes ;; 6283 esac 6284 DSYMUTIL=$ac_ct_DSYMUTIL 6285 fi 6286 else 6287 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6288 fi 6289 6290 if test -n "$ac_tool_prefix"; then 6291 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6292 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6294 $as_echo_n "checking for $ac_word... " >&6; } 6295 if test "${ac_cv_prog_NMEDIT+set}" = set; then 6296 $as_echo_n "(cached) " >&6 6297 else 6298 if test -n "$NMEDIT"; then 6299 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6300 else 6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6302 for as_dir in $PATH 6303 do 6304 IFS=$as_save_IFS 6305 test -z "$as_dir" && as_dir=. 6306 for ac_exec_ext in '' $ac_executable_extensions; do 6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6308 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6310 break 2 6311 fi 6312 done 6313 done 6314 IFS=$as_save_IFS 6315 6316 fi 6317 fi 6318 NMEDIT=$ac_cv_prog_NMEDIT 6319 if test -n "$NMEDIT"; then 6320 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6321 $as_echo "$NMEDIT" >&6; } 6322 else 6323 { $as_echo "$as_me:$LINENO: result: no" >&5 6324 $as_echo "no" >&6; } 6325 fi 6326 6327 6328 fi 6329 if test -z "$ac_cv_prog_NMEDIT"; then 6330 ac_ct_NMEDIT=$NMEDIT 6331 # Extract the first word of "nmedit", so it can be a program name with args. 6332 set dummy nmedit; ac_word=$2 6333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6334 $as_echo_n "checking for $ac_word... " >&6; } 6335 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6336 $as_echo_n "(cached) " >&6 6337 else 6338 if test -n "$ac_ct_NMEDIT"; then 6339 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6340 else 6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6342 for as_dir in $PATH 6343 do 6344 IFS=$as_save_IFS 6345 test -z "$as_dir" && as_dir=. 6346 for ac_exec_ext in '' $ac_executable_extensions; do 6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6348 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6350 break 2 6351 fi 6352 done 6353 done 6354 IFS=$as_save_IFS 6355 6356 fi 6357 fi 6358 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6359 if test -n "$ac_ct_NMEDIT"; then 6360 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6361 $as_echo "$ac_ct_NMEDIT" >&6; } 6362 else 6363 { $as_echo "$as_me:$LINENO: result: no" >&5 6364 $as_echo "no" >&6; } 6365 fi 6366 6367 if test "x$ac_ct_NMEDIT" = x; then 6368 NMEDIT=":" 6369 else 6370 case $cross_compiling:$ac_tool_warned in 6371 yes:) 6372 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6374 ac_tool_warned=yes ;; 6375 esac 6376 NMEDIT=$ac_ct_NMEDIT 6377 fi 6378 else 6379 NMEDIT="$ac_cv_prog_NMEDIT" 6380 fi 6381 6382 if test -n "$ac_tool_prefix"; then 6383 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6384 set dummy ${ac_tool_prefix}lipo; ac_word=$2 6385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6386 $as_echo_n "checking for $ac_word... " >&6; } 6387 if test "${ac_cv_prog_LIPO+set}" = set; then 6388 $as_echo_n "(cached) " >&6 6389 else 6390 if test -n "$LIPO"; then 6391 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6392 else 6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6394 for as_dir in $PATH 6395 do 6396 IFS=$as_save_IFS 6397 test -z "$as_dir" && as_dir=. 6398 for ac_exec_ext in '' $ac_executable_extensions; do 6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6400 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6402 break 2 6403 fi 6404 done 6405 done 6406 IFS=$as_save_IFS 6407 6408 fi 6409 fi 6410 LIPO=$ac_cv_prog_LIPO 6411 if test -n "$LIPO"; then 6412 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6413 $as_echo "$LIPO" >&6; } 6414 else 6415 { $as_echo "$as_me:$LINENO: result: no" >&5 6416 $as_echo "no" >&6; } 6417 fi 6418 6419 6420 fi 6421 if test -z "$ac_cv_prog_LIPO"; then 6422 ac_ct_LIPO=$LIPO 6423 # Extract the first word of "lipo", so it can be a program name with args. 6424 set dummy lipo; ac_word=$2 6425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6426 $as_echo_n "checking for $ac_word... " >&6; } 6427 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6428 $as_echo_n "(cached) " >&6 6429 else 6430 if test -n "$ac_ct_LIPO"; then 6431 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6432 else 6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6434 for as_dir in $PATH 6435 do 6436 IFS=$as_save_IFS 6437 test -z "$as_dir" && as_dir=. 6438 for ac_exec_ext in '' $ac_executable_extensions; do 6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6440 ac_cv_prog_ac_ct_LIPO="lipo" 6441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444 done 6445 done 6446 IFS=$as_save_IFS 6447 6448 fi 6449 fi 6450 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6451 if test -n "$ac_ct_LIPO"; then 6452 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6453 $as_echo "$ac_ct_LIPO" >&6; } 6454 else 6455 { $as_echo "$as_me:$LINENO: result: no" >&5 6456 $as_echo "no" >&6; } 6457 fi 6458 6459 if test "x$ac_ct_LIPO" = x; then 6460 LIPO=":" 6461 else 6462 case $cross_compiling:$ac_tool_warned in 6463 yes:) 6464 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6466 ac_tool_warned=yes ;; 6467 esac 6468 LIPO=$ac_ct_LIPO 6469 fi 6470 else 6471 LIPO="$ac_cv_prog_LIPO" 6472 fi 6473 6474 if test -n "$ac_tool_prefix"; then 6475 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6476 set dummy ${ac_tool_prefix}otool; ac_word=$2 6477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6478 $as_echo_n "checking for $ac_word... " >&6; } 6479 if test "${ac_cv_prog_OTOOL+set}" = set; then 6480 $as_echo_n "(cached) " >&6 6481 else 6482 if test -n "$OTOOL"; then 6483 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6484 else 6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6486 for as_dir in $PATH 6487 do 6488 IFS=$as_save_IFS 6489 test -z "$as_dir" && as_dir=. 6490 for ac_exec_ext in '' $ac_executable_extensions; do 6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6492 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6494 break 2 6495 fi 6496 done 6497 done 6498 IFS=$as_save_IFS 6499 6500 fi 6501 fi 6502 OTOOL=$ac_cv_prog_OTOOL 6503 if test -n "$OTOOL"; then 6504 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6505 $as_echo "$OTOOL" >&6; } 6506 else 6507 { $as_echo "$as_me:$LINENO: result: no" >&5 6508 $as_echo "no" >&6; } 6509 fi 6510 6511 6512 fi 6513 if test -z "$ac_cv_prog_OTOOL"; then 6514 ac_ct_OTOOL=$OTOOL 6515 # Extract the first word of "otool", so it can be a program name with args. 6516 set dummy otool; ac_word=$2 6517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6518 $as_echo_n "checking for $ac_word... " >&6; } 6519 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6520 $as_echo_n "(cached) " >&6 6521 else 6522 if test -n "$ac_ct_OTOOL"; then 6523 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6524 else 6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6526 for as_dir in $PATH 6527 do 6528 IFS=$as_save_IFS 6529 test -z "$as_dir" && as_dir=. 6530 for ac_exec_ext in '' $ac_executable_extensions; do 6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6532 ac_cv_prog_ac_ct_OTOOL="otool" 6533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6534 break 2 6535 fi 6536 done 6537 done 6538 IFS=$as_save_IFS 6539 6540 fi 6541 fi 6542 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6543 if test -n "$ac_ct_OTOOL"; then 6544 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6545 $as_echo "$ac_ct_OTOOL" >&6; } 6546 else 6547 { $as_echo "$as_me:$LINENO: result: no" >&5 6548 $as_echo "no" >&6; } 6549 fi 6550 6551 if test "x$ac_ct_OTOOL" = x; then 6552 OTOOL=":" 6553 else 6554 case $cross_compiling:$ac_tool_warned in 6555 yes:) 6556 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6558 ac_tool_warned=yes ;; 6559 esac 6560 OTOOL=$ac_ct_OTOOL 6561 fi 6562 else 6563 OTOOL="$ac_cv_prog_OTOOL" 6564 fi 6565 6566 if test -n "$ac_tool_prefix"; then 6567 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6568 set dummy ${ac_tool_prefix}otool64; ac_word=$2 6569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6570 $as_echo_n "checking for $ac_word... " >&6; } 6571 if test "${ac_cv_prog_OTOOL64+set}" = set; then 6572 $as_echo_n "(cached) " >&6 6573 else 6574 if test -n "$OTOOL64"; then 6575 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6576 else 6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6578 for as_dir in $PATH 6579 do 6580 IFS=$as_save_IFS 6581 test -z "$as_dir" && as_dir=. 6582 for ac_exec_ext in '' $ac_executable_extensions; do 6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6584 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6586 break 2 6587 fi 6588 done 6589 done 6590 IFS=$as_save_IFS 6591 6592 fi 6593 fi 6594 OTOOL64=$ac_cv_prog_OTOOL64 6595 if test -n "$OTOOL64"; then 6596 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6597 $as_echo "$OTOOL64" >&6; } 6598 else 6599 { $as_echo "$as_me:$LINENO: result: no" >&5 6600 $as_echo "no" >&6; } 6601 fi 6602 6603 6604 fi 6605 if test -z "$ac_cv_prog_OTOOL64"; then 6606 ac_ct_OTOOL64=$OTOOL64 6607 # Extract the first word of "otool64", so it can be a program name with args. 6608 set dummy otool64; ac_word=$2 6609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6610 $as_echo_n "checking for $ac_word... " >&6; } 6611 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6612 $as_echo_n "(cached) " >&6 6613 else 6614 if test -n "$ac_ct_OTOOL64"; then 6615 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6616 else 6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6618 for as_dir in $PATH 6619 do 6620 IFS=$as_save_IFS 6621 test -z "$as_dir" && as_dir=. 6622 for ac_exec_ext in '' $ac_executable_extensions; do 6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6624 ac_cv_prog_ac_ct_OTOOL64="otool64" 6625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6626 break 2 6627 fi 6628 done 6629 done 6630 IFS=$as_save_IFS 6631 6632 fi 6633 fi 6634 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6635 if test -n "$ac_ct_OTOOL64"; then 6636 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6637 $as_echo "$ac_ct_OTOOL64" >&6; } 6638 else 6639 { $as_echo "$as_me:$LINENO: result: no" >&5 6640 $as_echo "no" >&6; } 6641 fi 6642 6643 if test "x$ac_ct_OTOOL64" = x; then 6644 OTOOL64=":" 6645 else 6646 case $cross_compiling:$ac_tool_warned in 6647 yes:) 6648 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6650 ac_tool_warned=yes ;; 6651 esac 6652 OTOOL64=$ac_ct_OTOOL64 6653 fi 6654 else 6655 OTOOL64="$ac_cv_prog_OTOOL64" 6656 fi 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6685 $as_echo_n "checking for -single_module linker flag... " >&6; } 6686 if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6687 $as_echo_n "(cached) " >&6 6688 else 6689 lt_cv_apple_cc_single_mod=no 6690 if test -z "${LT_MULTI_MODULE}"; then 6691 # By default we will add the -single_module flag. You can override 6692 # by either setting the environment variable LT_MULTI_MODULE 6693 # non-empty at configure time, or by adding -multi_module to the 6694 # link flags. 6695 rm -rf libconftest.dylib* 6696 echo "int foo(void){return 1;}" > conftest.c 6697 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6698 -dynamiclib -Wl,-single_module conftest.c" >&5 6699 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6700 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6701 _lt_result=$? 6702 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6703 lt_cv_apple_cc_single_mod=yes 6704 else 6705 cat conftest.err >&5 6706 fi 6707 rm -rf libconftest.dylib* 6708 rm -f conftest.* 6709 fi 6710 fi 6711 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6712 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6713 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6714 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6715 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6716 $as_echo_n "(cached) " >&6 6717 else 6718 lt_cv_ld_exported_symbols_list=no 6719 save_LDFLAGS=$LDFLAGS 6720 echo "_main" > conftest.sym 6721 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6722 cat >conftest.$ac_ext <<_ACEOF 6723 /* confdefs.h. */ 6724 _ACEOF 6725 cat confdefs.h >>conftest.$ac_ext 6726 cat >>conftest.$ac_ext <<_ACEOF 6727 /* end confdefs.h. */ 6728 6729 int 6730 main () 6731 { 6732 6733 ; 6734 return 0; 6735 } 6736 _ACEOF 6737 rm -f conftest.$ac_objext conftest$ac_exeext 6738 if { (ac_try="$ac_link" 6739 case "(($ac_try" in 6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6741 *) ac_try_echo=$ac_try;; 6742 esac 6743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6744 $as_echo "$ac_try_echo") >&5 6745 (eval "$ac_link") 2>conftest.er1 6746 ac_status=$? 6747 grep -v '^ *+' conftest.er1 >conftest.err 6748 rm -f conftest.er1 6749 cat conftest.err >&5 6750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6751 (exit $ac_status); } && { 6752 test -z "$ac_c_werror_flag" || 6753 test ! -s conftest.err 6754 } && test -s conftest$ac_exeext && { 6755 test "$cross_compiling" = yes || 6756 $as_test_x conftest$ac_exeext 6757 }; then 6758 lt_cv_ld_exported_symbols_list=yes 6759 else 6760 $as_echo "$as_me: failed program was:" >&5 6761 sed 's/^/| /' conftest.$ac_ext >&5 6762 6763 lt_cv_ld_exported_symbols_list=no 6764 fi 6765 6766 rm -rf conftest.dSYM 6767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6768 conftest$ac_exeext conftest.$ac_ext 6769 LDFLAGS="$save_LDFLAGS" 6770 6771 fi 6772 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6773 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6774 case $host_os in 6775 rhapsody* | darwin1.[012]) 6776 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6777 darwin1.*) 6778 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6779 darwin*) # darwin 5.x on 6780 # if running on 10.5 or later, the deployment target defaults 6781 # to the OS version, if on x86, and 10.4, the deployment 6782 # target defaults to 10.4. Don't you love it? 6783 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6784 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6785 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6786 10.[012]*) 6787 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6788 10.*) 6789 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6790 esac 6791 ;; 6792 esac 6793 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6794 _lt_dar_single_mod='$single_module' 6795 fi 6796 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6797 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6798 else 6799 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6800 fi 6801 if test "$DSYMUTIL" != ":"; then 6802 _lt_dsymutil='~$DSYMUTIL $lib || :' 6803 else 6804 _lt_dsymutil= 6805 fi 6806 ;; 6807 esac 6808 6809 ac_ext=c 6810 ac_cpp='$CPP $CPPFLAGS' 6811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6813 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6814 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6815 $as_echo_n "checking how to run the C preprocessor... " >&6; } 6816 # On Suns, sometimes $CPP names a directory. 6817 if test -n "$CPP" && test -d "$CPP"; then 6818 CPP= 6819 fi 6820 if test -z "$CPP"; then 6821 if test "${ac_cv_prog_CPP+set}" = set; then 6822 $as_echo_n "(cached) " >&6 6823 else 6824 # Double quotes because CPP needs to be expanded 6825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6826 do 6827 ac_preproc_ok=false 6828 for ac_c_preproc_warn_flag in '' yes 6829 do 6830 # Use a header file that comes with gcc, so configuring glibc 6831 # with a fresh cross-compiler works. 6832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6833 # <limits.h> exists even on freestanding compilers. 6834 # On the NeXT, cc -E runs the code through the compiler's parser, 6835 # not just through cpp. "Syntax error" is here to catch this case. 6836 cat >conftest.$ac_ext <<_ACEOF 6837 /* confdefs.h. */ 6838 _ACEOF 6839 cat confdefs.h >>conftest.$ac_ext 6840 cat >>conftest.$ac_ext <<_ACEOF 6841 /* end confdefs.h. */ 6842 #ifdef __STDC__ 6843 # include <limits.h> 6844 #else 6845 # include <assert.h> 6846 #endif 6847 Syntax error 6848 _ACEOF 6849 if { (ac_try="$ac_cpp conftest.$ac_ext" 6850 case "(($ac_try" in 6851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6852 *) ac_try_echo=$ac_try;; 6853 esac 6854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6855 $as_echo "$ac_try_echo") >&5 6856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6857 ac_status=$? 6858 grep -v '^ *+' conftest.er1 >conftest.err 6859 rm -f conftest.er1 6860 cat conftest.err >&5 6861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6862 (exit $ac_status); } >/dev/null && { 6863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6864 test ! -s conftest.err 6865 }; then 6866 : 6867 else 6868 $as_echo "$as_me: failed program was:" >&5 6869 sed 's/^/| /' conftest.$ac_ext >&5 6870 6871 # Broken: fails on valid input. 6872 continue 6873 fi 6874 6875 rm -f conftest.err conftest.$ac_ext 6876 6877 # OK, works on sane cases. Now check whether nonexistent headers 6878 # can be detected and how. 6879 cat >conftest.$ac_ext <<_ACEOF 6880 /* confdefs.h. */ 6881 _ACEOF 6882 cat confdefs.h >>conftest.$ac_ext 6883 cat >>conftest.$ac_ext <<_ACEOF 6884 /* end confdefs.h. */ 6885 #include <ac_nonexistent.h> 6886 _ACEOF 6887 if { (ac_try="$ac_cpp conftest.$ac_ext" 6888 case "(($ac_try" in 6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6890 *) ac_try_echo=$ac_try;; 6891 esac 6892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6893 $as_echo "$ac_try_echo") >&5 6894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6895 ac_status=$? 6896 grep -v '^ *+' conftest.er1 >conftest.err 6897 rm -f conftest.er1 6898 cat conftest.err >&5 6899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6900 (exit $ac_status); } >/dev/null && { 6901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6902 test ! -s conftest.err 6903 }; then 6904 # Broken: success on invalid input. 6905 continue 6906 else 6907 $as_echo "$as_me: failed program was:" >&5 6908 sed 's/^/| /' conftest.$ac_ext >&5 6909 6910 # Passes both tests. 6911 ac_preproc_ok=: 6912 break 6913 fi 6914 6915 rm -f conftest.err conftest.$ac_ext 6916 6917 done 6918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6919 rm -f conftest.err conftest.$ac_ext 6920 if $ac_preproc_ok; then 6921 break 6922 fi 6923 6924 done 6925 ac_cv_prog_CPP=$CPP 6926 6927 fi 6928 CPP=$ac_cv_prog_CPP 6929 else 6930 ac_cv_prog_CPP=$CPP 6931 fi 6932 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 6933 $as_echo "$CPP" >&6; } 6934 ac_preproc_ok=false 6935 for ac_c_preproc_warn_flag in '' yes 6936 do 6937 # Use a header file that comes with gcc, so configuring glibc 6938 # with a fresh cross-compiler works. 6939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6940 # <limits.h> exists even on freestanding compilers. 6941 # On the NeXT, cc -E runs the code through the compiler's parser, 6942 # not just through cpp. "Syntax error" is here to catch this case. 6943 cat >conftest.$ac_ext <<_ACEOF 6944 /* confdefs.h. */ 6945 _ACEOF 6946 cat confdefs.h >>conftest.$ac_ext 6947 cat >>conftest.$ac_ext <<_ACEOF 6948 /* end confdefs.h. */ 6949 #ifdef __STDC__ 6950 # include <limits.h> 6951 #else 6952 # include <assert.h> 6953 #endif 6954 Syntax error 6955 _ACEOF 6956 if { (ac_try="$ac_cpp conftest.$ac_ext" 6957 case "(($ac_try" in 6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6959 *) ac_try_echo=$ac_try;; 6960 esac 6961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6962 $as_echo "$ac_try_echo") >&5 6963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6964 ac_status=$? 6965 grep -v '^ *+' conftest.er1 >conftest.err 6966 rm -f conftest.er1 6967 cat conftest.err >&5 6968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6969 (exit $ac_status); } >/dev/null && { 6970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6971 test ! -s conftest.err 6972 }; then 6973 : 6974 else 6975 $as_echo "$as_me: failed program was:" >&5 6976 sed 's/^/| /' conftest.$ac_ext >&5 6977 6978 # Broken: fails on valid input. 6979 continue 6980 fi 6981 6982 rm -f conftest.err conftest.$ac_ext 6983 6984 # OK, works on sane cases. Now check whether nonexistent headers 6985 # can be detected and how. 6986 cat >conftest.$ac_ext <<_ACEOF 6987 /* confdefs.h. */ 6988 _ACEOF 6989 cat confdefs.h >>conftest.$ac_ext 6990 cat >>conftest.$ac_ext <<_ACEOF 6991 /* end confdefs.h. */ 6992 #include <ac_nonexistent.h> 6993 _ACEOF 6994 if { (ac_try="$ac_cpp conftest.$ac_ext" 6995 case "(($ac_try" in 6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6997 *) ac_try_echo=$ac_try;; 6998 esac 6999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7000 $as_echo "$ac_try_echo") >&5 7001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7002 ac_status=$? 7003 grep -v '^ *+' conftest.er1 >conftest.err 7004 rm -f conftest.er1 7005 cat conftest.err >&5 7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7007 (exit $ac_status); } >/dev/null && { 7008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7009 test ! -s conftest.err 7010 }; then 7011 # Broken: success on invalid input. 7012 continue 7013 else 7014 $as_echo "$as_me: failed program was:" >&5 7015 sed 's/^/| /' conftest.$ac_ext >&5 7016 7017 # Passes both tests. 7018 ac_preproc_ok=: 7019 break 7020 fi 7021 7022 rm -f conftest.err conftest.$ac_ext 7023 7024 done 7025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7026 rm -f conftest.err conftest.$ac_ext 7027 if $ac_preproc_ok; then 7028 : 7029 else 7030 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 7031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7032 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 7033 See \`config.log' for more details." >&5 7034 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 7035 See \`config.log' for more details." >&2;} 7036 { (exit 1); exit 1; }; }; } 7037 fi 7038 7039 ac_ext=c 7040 ac_cpp='$CPP $CPPFLAGS' 7041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7043 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7044 7045 7046 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7047 $as_echo_n "checking for ANSI C header files... " >&6; } 7048 if test "${ac_cv_header_stdc+set}" = set; then 7049 $as_echo_n "(cached) " >&6 7050 else 7051 cat >conftest.$ac_ext <<_ACEOF 7052 /* confdefs.h. */ 7053 _ACEOF 7054 cat confdefs.h >>conftest.$ac_ext 7055 cat >>conftest.$ac_ext <<_ACEOF 7056 /* end confdefs.h. */ 7057 #include <stdlib.h> 7058 #include <stdarg.h> 7059 #include <string.h> 7060 #include <float.h> 7061 7062 int 7063 main () 7064 { 7065 7066 ; 7067 return 0; 7068 } 7069 _ACEOF 7070 rm -f conftest.$ac_objext 7071 if { (ac_try="$ac_compile" 7072 case "(($ac_try" in 7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7074 *) ac_try_echo=$ac_try;; 7075 esac 7076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7077 $as_echo "$ac_try_echo") >&5 7078 (eval "$ac_compile") 2>conftest.er1 7079 ac_status=$? 7080 grep -v '^ *+' conftest.er1 >conftest.err 7081 rm -f conftest.er1 7082 cat conftest.err >&5 7083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7084 (exit $ac_status); } && { 7085 test -z "$ac_c_werror_flag" || 7086 test ! -s conftest.err 7087 } && test -s conftest.$ac_objext; then 7088 ac_cv_header_stdc=yes 7089 else 7090 $as_echo "$as_me: failed program was:" >&5 7091 sed 's/^/| /' conftest.$ac_ext >&5 7092 7093 ac_cv_header_stdc=no 7094 fi 7095 7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7097 7098 if test $ac_cv_header_stdc = yes; then 7099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7100 cat >conftest.$ac_ext <<_ACEOF 7101 /* confdefs.h. */ 7102 _ACEOF 7103 cat confdefs.h >>conftest.$ac_ext 7104 cat >>conftest.$ac_ext <<_ACEOF 7105 /* end confdefs.h. */ 7106 #include <string.h> 7107 7108 _ACEOF 7109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7110 $EGREP "memchr" >/dev/null 2>&1; then 7111 : 7112 else 7113 ac_cv_header_stdc=no 7114 fi 7115 rm -f conftest* 7116 7117 fi 7118 7119 if test $ac_cv_header_stdc = yes; then 7120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7121 cat >conftest.$ac_ext <<_ACEOF 7122 /* confdefs.h. */ 7123 _ACEOF 7124 cat confdefs.h >>conftest.$ac_ext 7125 cat >>conftest.$ac_ext <<_ACEOF 7126 /* end confdefs.h. */ 7127 #include <stdlib.h> 7128 7129 _ACEOF 7130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7131 $EGREP "free" >/dev/null 2>&1; then 7132 : 7133 else 7134 ac_cv_header_stdc=no 7135 fi 7136 rm -f conftest* 7137 7138 fi 7139 7140 if test $ac_cv_header_stdc = yes; then 7141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7142 if test "$cross_compiling" = yes; then 7143 : 7144 else 7145 cat >conftest.$ac_ext <<_ACEOF 7146 /* confdefs.h. */ 7147 _ACEOF 7148 cat confdefs.h >>conftest.$ac_ext 7149 cat >>conftest.$ac_ext <<_ACEOF 7150 /* end confdefs.h. */ 7151 #include <ctype.h> 7152 #include <stdlib.h> 7153 #if ((' ' & 0x0FF) == 0x020) 7154 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7155 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7156 #else 7157 # define ISLOWER(c) \ 7158 (('a' <= (c) && (c) <= 'i') \ 7159 || ('j' <= (c) && (c) <= 'r') \ 7160 || ('s' <= (c) && (c) <= 'z')) 7161 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7162 #endif 7163 7164 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7165 int 7166 main () 7167 { 7168 int i; 7169 for (i = 0; i < 256; i++) 7170 if (XOR (islower (i), ISLOWER (i)) 7171 || toupper (i) != TOUPPER (i)) 7172 return 2; 7173 return 0; 7174 } 7175 _ACEOF 7176 rm -f conftest$ac_exeext 7177 if { (ac_try="$ac_link" 7178 case "(($ac_try" in 7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7180 *) ac_try_echo=$ac_try;; 7181 esac 7182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7183 $as_echo "$ac_try_echo") >&5 7184 (eval "$ac_link") 2>&5 7185 ac_status=$? 7186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7188 { (case "(($ac_try" in 7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7190 *) ac_try_echo=$ac_try;; 7191 esac 7192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7193 $as_echo "$ac_try_echo") >&5 7194 (eval "$ac_try") 2>&5 7195 ac_status=$? 7196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7197 (exit $ac_status); }; }; then 7198 : 7199 else 7200 $as_echo "$as_me: program exited with status $ac_status" >&5 7201 $as_echo "$as_me: failed program was:" >&5 7202 sed 's/^/| /' conftest.$ac_ext >&5 7203 7204 ( exit $ac_status ) 7205 ac_cv_header_stdc=no 7206 fi 7207 rm -rf conftest.dSYM 7208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7209 fi 7210 7211 7212 fi 7213 fi 7214 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7215 $as_echo "$ac_cv_header_stdc" >&6; } 7216 if test $ac_cv_header_stdc = yes; then 7217 7218 cat >>confdefs.h <<\_ACEOF 7219 #define STDC_HEADERS 1 7220 _ACEOF 7221 7222 fi 7223 7224 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7235 inttypes.h stdint.h unistd.h 7236 do 7237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7238 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7239 $as_echo_n "checking for $ac_header... " >&6; } 7240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7241 $as_echo_n "(cached) " >&6 7242 else 7243 cat >conftest.$ac_ext <<_ACEOF 7244 /* confdefs.h. */ 7245 _ACEOF 7246 cat confdefs.h >>conftest.$ac_ext 7247 cat >>conftest.$ac_ext <<_ACEOF 7248 /* end confdefs.h. */ 7249 $ac_includes_default 7250 7251 #include <$ac_header> 7252 _ACEOF 7253 rm -f conftest.$ac_objext 7254 if { (ac_try="$ac_compile" 7255 case "(($ac_try" in 7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7257 *) ac_try_echo=$ac_try;; 7258 esac 7259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7260 $as_echo "$ac_try_echo") >&5 7261 (eval "$ac_compile") 2>conftest.er1 7262 ac_status=$? 7263 grep -v '^ *+' conftest.er1 >conftest.err 7264 rm -f conftest.er1 7265 cat conftest.err >&5 7266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7267 (exit $ac_status); } && { 7268 test -z "$ac_c_werror_flag" || 7269 test ! -s conftest.err 7270 } && test -s conftest.$ac_objext; then 7271 eval "$as_ac_Header=yes" 7272 else 7273 $as_echo "$as_me: failed program was:" >&5 7274 sed 's/^/| /' conftest.$ac_ext >&5 7275 7276 eval "$as_ac_Header=no" 7277 fi 7278 7279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7280 fi 7281 ac_res=`eval 'as_val=${'$as_ac_Header'} 7282 $as_echo "$as_val"'` 7283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7284 $as_echo "$ac_res" >&6; } 7285 as_val=`eval 'as_val=${'$as_ac_Header'} 7286 $as_echo "$as_val"'` 7287 if test "x$as_val" = x""yes; then 7288 cat >>confdefs.h <<_ACEOF 7289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7290 _ACEOF 7291 7292 fi 7293 7294 done 7295 7296 7297 7298 for ac_header in dlfcn.h 7299 do 7300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7301 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7302 $as_echo_n "checking for $ac_header... " >&6; } 7303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7304 $as_echo_n "(cached) " >&6 7305 else 7306 cat >conftest.$ac_ext <<_ACEOF 7307 /* confdefs.h. */ 7308 _ACEOF 7309 cat confdefs.h >>conftest.$ac_ext 7310 cat >>conftest.$ac_ext <<_ACEOF 7311 /* end confdefs.h. */ 7312 $ac_includes_default 7313 7314 #include <$ac_header> 7315 _ACEOF 7316 rm -f conftest.$ac_objext 7317 if { (ac_try="$ac_compile" 7318 case "(($ac_try" in 7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7320 *) ac_try_echo=$ac_try;; 7321 esac 7322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7323 $as_echo "$ac_try_echo") >&5 7324 (eval "$ac_compile") 2>conftest.er1 7325 ac_status=$? 7326 grep -v '^ *+' conftest.er1 >conftest.err 7327 rm -f conftest.er1 7328 cat conftest.err >&5 7329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7330 (exit $ac_status); } && { 7331 test -z "$ac_c_werror_flag" || 7332 test ! -s conftest.err 7333 } && test -s conftest.$ac_objext; then 7334 eval "$as_ac_Header=yes" 7335 else 7336 $as_echo "$as_me: failed program was:" >&5 7337 sed 's/^/| /' conftest.$ac_ext >&5 7338 7339 eval "$as_ac_Header=no" 7340 fi 7341 7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7343 fi 7344 ac_res=`eval 'as_val=${'$as_ac_Header'} 7345 $as_echo "$as_val"'` 7346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7347 $as_echo "$ac_res" >&6; } 7348 as_val=`eval 'as_val=${'$as_ac_Header'} 7349 $as_echo "$as_val"'` 7350 if test "x$as_val" = x""yes; then 7351 cat >>confdefs.h <<_ACEOF 7352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7353 _ACEOF 7354 7355 fi 7356 7357 done 7358 7359 7360 7361 # Set options 7362 7363 7364 7365 enable_dlopen=no 7366 7367 7368 7369 # Check whether --enable-shared was given. 7370 if test "${enable_shared+set}" = set; then 7371 enableval=$enable_shared; p=${PACKAGE-default} 7372 case $enableval in 7373 yes) enable_shared=yes ;; 7374 no) enable_shared=no ;; 7375 *) 7376 enable_shared=no 7377 # Look at the argument we got. We use all the common list separators. 7378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7379 for pkg in $enableval; do 7380 IFS="$lt_save_ifs" 7381 if test "X$pkg" = "X$p"; then 7382 enable_shared=yes 7383 fi 7384 done 7385 IFS="$lt_save_ifs" 7386 ;; 7387 esac 7388 else 7389 enable_shared=yes 7390 fi 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 # Check whether --enable-static was given. 7401 if test "${enable_static+set}" = set; then 7402 enableval=$enable_static; p=${PACKAGE-default} 7403 case $enableval in 7404 yes) enable_static=yes ;; 7405 no) enable_static=no ;; 7406 *) 7407 enable_static=no 7408 # Look at the argument we got. We use all the common list separators. 7409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7410 for pkg in $enableval; do 7411 IFS="$lt_save_ifs" 7412 if test "X$pkg" = "X$p"; then 7413 enable_static=yes 7414 fi 7415 done 7416 IFS="$lt_save_ifs" 7417 ;; 7418 esac 7419 else 7420 enable_static=yes 7421 fi 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 # Check whether --with-pic was given. 7433 if test "${with_pic+set}" = set; then 7434 withval=$with_pic; pic_mode="$withval" 7435 else 7436 pic_mode=default 7437 fi 7438 7439 7440 test -z "$pic_mode" && pic_mode=default 7441 7442 7443 7444 7445 7446 7447 7448 # Check whether --enable-fast-install was given. 7449 if test "${enable_fast_install+set}" = set; then 7450 enableval=$enable_fast_install; p=${PACKAGE-default} 7451 case $enableval in 7452 yes) enable_fast_install=yes ;; 7453 no) enable_fast_install=no ;; 7454 *) 7455 enable_fast_install=no 7456 # Look at the argument we got. We use all the common list separators. 7457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7458 for pkg in $enableval; do 7459 IFS="$lt_save_ifs" 7460 if test "X$pkg" = "X$p"; then 7461 enable_fast_install=yes 7462 fi 7463 done 7464 IFS="$lt_save_ifs" 7465 ;; 7466 esac 7467 else 7468 enable_fast_install=yes 7469 fi 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 # This can be used to rebuild libtool when needed 7482 LIBTOOL_DEPS="$ltmain" 7483 7484 # Always use our own libtool. 7485 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 test -z "$LN_S" && LN_S="ln -s" 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 if test -n "${ZSH_VERSION+set}" ; then 7527 setopt NO_GLOB_SUBST 7528 fi 7529 7530 { $as_echo "$as_me:$LINENO: checking for objdir" >&5 7531 $as_echo_n "checking for objdir... " >&6; } 7532 if test "${lt_cv_objdir+set}" = set; then 7533 $as_echo_n "(cached) " >&6 7534 else 7535 rm -f .libs 2>/dev/null 7536 mkdir .libs 2>/dev/null 7537 if test -d .libs; then 7538 lt_cv_objdir=.libs 7539 else 7540 # MS-DOS does not allow filenames that begin with a dot. 7541 lt_cv_objdir=_libs 7542 fi 7543 rmdir .libs 2>/dev/null 7544 fi 7545 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7546 $as_echo "$lt_cv_objdir" >&6; } 7547 objdir=$lt_cv_objdir 7548 7549 7550 7551 7552 7553 cat >>confdefs.h <<_ACEOF 7554 #define LT_OBJDIR "$lt_cv_objdir/" 7555 _ACEOF 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 case $host_os in 7574 aix3*) 7575 # AIX sometimes has problems with the GCC collect2 program. For some 7576 # reason, if we set the COLLECT_NAMES environment variable, the problems 7577 # vanish in a puff of smoke. 7578 if test "X${COLLECT_NAMES+set}" != Xset; then 7579 COLLECT_NAMES= 7580 export COLLECT_NAMES 7581 fi 7582 ;; 7583 esac 7584 7585 # Sed substitution that helps us do robust quoting. It backslashifies 7586 # metacharacters that are still active within double-quoted strings. 7587 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7588 7589 # Same as above, but do not quote variable references. 7590 double_quote_subst='s/\(["`\\]\)/\\\1/g' 7591 7592 # Sed substitution to delay expansion of an escaped shell variable in a 7593 # double_quote_subst'ed string. 7594 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7595 7596 # Sed substitution to delay expansion of an escaped single quote. 7597 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7598 7599 # Sed substitution to avoid accidental globbing in evaled expressions 7600 no_glob_subst='s/\*/\\\*/g' 7601 7602 # Global variables: 7603 ofile=libtool 7604 can_build_shared=yes 7605 7606 # All known linkers require a `.a' archive for static linking (except MSVC, 7607 # which needs '.lib'). 7608 libext=a 7609 7610 with_gnu_ld="$lt_cv_prog_gnu_ld" 7611 7612 old_CC="$CC" 7613 old_CFLAGS="$CFLAGS" 7614 7615 # Set sane defaults for various variables 7616 test -z "$CC" && CC=cc 7617 test -z "$LTCC" && LTCC=$CC 7618 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7619 test -z "$LD" && LD=ld 7620 test -z "$ac_objext" && ac_objext=o 7621 7622 for cc_temp in $compiler""; do 7623 case $cc_temp in 7624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7626 \-*) ;; 7627 *) break;; 7628 esac 7629 done 7630 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7631 7632 7633 # Only perform the check for file, if the check method requires it 7634 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7635 case $deplibs_check_method in 7636 file_magic*) 7637 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7638 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7639 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7640 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7641 $as_echo_n "(cached) " >&6 7642 else 7643 case $MAGIC_CMD in 7644 [\\/*] | ?:[\\/]*) 7645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7646 ;; 7647 *) 7648 lt_save_MAGIC_CMD="$MAGIC_CMD" 7649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7650 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7651 for ac_dir in $ac_dummy; do 7652 IFS="$lt_save_ifs" 7653 test -z "$ac_dir" && ac_dir=. 7654 if test -f $ac_dir/${ac_tool_prefix}file; then 7655 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7656 if test -n "$file_magic_test_file"; then 7657 case $deplibs_check_method in 7658 "file_magic "*) 7659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7662 $EGREP "$file_magic_regex" > /dev/null; then 7663 : 7664 else 7665 cat <<_LT_EOF 1>&2 7666 7667 *** Warning: the command libtool uses to detect shared libraries, 7668 *** $file_magic_cmd, produces output that libtool cannot recognize. 7669 *** The result is that libtool may fail to recognize shared libraries 7670 *** as such. This will affect the creation of libtool libraries that 7671 *** depend on shared libraries, but programs linked with such libtool 7672 *** libraries will work regardless of this problem. Nevertheless, you 7673 *** may want to report the problem to your system manager and/or to 7674 *** bug-libtool@gnu.org 7675 7676 _LT_EOF 7677 fi ;; 7678 esac 7679 fi 7680 break 7681 fi 7682 done 7683 IFS="$lt_save_ifs" 7684 MAGIC_CMD="$lt_save_MAGIC_CMD" 7685 ;; 7686 esac 7687 fi 7688 7689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7690 if test -n "$MAGIC_CMD"; then 7691 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7692 $as_echo "$MAGIC_CMD" >&6; } 7693 else 7694 { $as_echo "$as_me:$LINENO: result: no" >&5 7695 $as_echo "no" >&6; } 7696 fi 7697 7698 7699 7700 7701 7702 if test -z "$lt_cv_path_MAGIC_CMD"; then 7703 if test -n "$ac_tool_prefix"; then 7704 { $as_echo "$as_me:$LINENO: checking for file" >&5 7705 $as_echo_n "checking for file... " >&6; } 7706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7707 $as_echo_n "(cached) " >&6 7708 else 7709 case $MAGIC_CMD in 7710 [\\/*] | ?:[\\/]*) 7711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7712 ;; 7713 *) 7714 lt_save_MAGIC_CMD="$MAGIC_CMD" 7715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7717 for ac_dir in $ac_dummy; do 7718 IFS="$lt_save_ifs" 7719 test -z "$ac_dir" && ac_dir=. 7720 if test -f $ac_dir/file; then 7721 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7722 if test -n "$file_magic_test_file"; then 7723 case $deplibs_check_method in 7724 "file_magic "*) 7725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7728 $EGREP "$file_magic_regex" > /dev/null; then 7729 : 7730 else 7731 cat <<_LT_EOF 1>&2 7732 7733 *** Warning: the command libtool uses to detect shared libraries, 7734 *** $file_magic_cmd, produces output that libtool cannot recognize. 7735 *** The result is that libtool may fail to recognize shared libraries 7736 *** as such. This will affect the creation of libtool libraries that 7737 *** depend on shared libraries, but programs linked with such libtool 7738 *** libraries will work regardless of this problem. Nevertheless, you 7739 *** may want to report the problem to your system manager and/or to 7740 *** bug-libtool@gnu.org 7741 7742 _LT_EOF 7743 fi ;; 7744 esac 7745 fi 7746 break 7747 fi 7748 done 7749 IFS="$lt_save_ifs" 7750 MAGIC_CMD="$lt_save_MAGIC_CMD" 7751 ;; 7752 esac 7753 fi 7754 7755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7756 if test -n "$MAGIC_CMD"; then 7757 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7758 $as_echo "$MAGIC_CMD" >&6; } 7759 else 7760 { $as_echo "$as_me:$LINENO: result: no" >&5 7761 $as_echo "no" >&6; } 7762 fi 7763 7764 7765 else 7766 MAGIC_CMD=: 7767 fi 7768 fi 7769 7770 fi 7771 ;; 7772 esac 7773 7774 # Use C for the default configuration in the libtool script 7775 7776 lt_save_CC="$CC" 7777 ac_ext=c 7778 ac_cpp='$CPP $CPPFLAGS' 7779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7781 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7782 7783 7784 # Source file extension for C test sources. 7785 ac_ext=c 7786 7787 # Object file extension for compiled C test sources. 7788 objext=o 7789 objext=$objext 7790 7791 # Code to be used in simple compile tests 7792 lt_simple_compile_test_code="int some_variable = 0;" 7793 7794 # Code to be used in simple link tests 7795 lt_simple_link_test_code='int main(){return(0);}' 7796 7797 7798 7799 7800 7801 7802 7803 # If no C compiler was specified, use CC. 7804 LTCC=${LTCC-"$CC"} 7805 7806 # If no C compiler flags were specified, use CFLAGS. 7807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7808 7809 # Allow CC to be a program name with arguments. 7810 compiler=$CC 7811 7812 # Save the default compiler, since it gets overwritten when the other 7813 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7814 compiler_DEFAULT=$CC 7815 7816 # save warnings/boilerplate of simple test code 7817 ac_outfile=conftest.$ac_objext 7818 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7819 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7820 _lt_compiler_boilerplate=`cat conftest.err` 7821 $RM conftest* 7822 7823 ac_outfile=conftest.$ac_objext 7824 echo "$lt_simple_link_test_code" >conftest.$ac_ext 7825 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7826 _lt_linker_boilerplate=`cat conftest.err` 7827 $RM -r conftest* 7828 7829 7830 ## CAVEAT EMPTOR: 7831 ## There is no encapsulation within the following macros, do not change 7832 ## the running order or otherwise move them around unless you know exactly 7833 ## what you are doing... 7834 if test -n "$compiler"; then 7835 7836 lt_prog_compiler_no_builtin_flag= 7837 7838 if test "$GCC" = yes; then 7839 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7840 7841 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7842 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7843 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7844 $as_echo_n "(cached) " >&6 7845 else 7846 lt_cv_prog_compiler_rtti_exceptions=no 7847 ac_outfile=conftest.$ac_objext 7848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7849 lt_compiler_flag="-fno-rtti -fno-exceptions" 7850 # Insert the option either (1) after the last *FLAGS variable, or 7851 # (2) before a word containing "conftest.", or (3) at the end. 7852 # Note that $ac_compile itself does not contain backslashes and begins 7853 # with a dollar sign (not a hyphen), so the echo should work correctly. 7854 # The option is referenced via a variable to avoid confusing sed. 7855 lt_compile=`echo "$ac_compile" | $SED \ 7856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7858 -e 's:$: $lt_compiler_flag:'` 7859 (eval echo "\"\$as_me:7859: $lt_compile\"" >&5) 7860 (eval "$lt_compile" 2>conftest.err) 7861 ac_status=$? 7862 cat conftest.err >&5 7863 echo "$as_me:7863: \$? = $ac_status" >&5 7864 if (exit $ac_status) && test -s "$ac_outfile"; then 7865 # The compiler can only warn and ignore the option if not recognized 7866 # So say no if there are warnings other than the usual output. 7867 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7870 lt_cv_prog_compiler_rtti_exceptions=yes 7871 fi 7872 fi 7873 $RM conftest* 7874 7875 fi 7876 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7877 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7878 7879 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7880 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7881 else 7882 : 7883 fi 7884 7885 fi 7886 7887 7888 7889 7890 7891 7892 lt_prog_compiler_wl= 7893 lt_prog_compiler_pic= 7894 lt_prog_compiler_static= 7895 7896 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7897 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7898 7899 if test "$GCC" = yes; then 7900 lt_prog_compiler_wl='-Wl,' 7901 lt_prog_compiler_static='-static' 7902 7903 case $host_os in 7904 aix*) 7905 # All AIX code is PIC. 7906 if test "$host_cpu" = ia64; then 7907 # AIX 5 now supports IA64 processor 7908 lt_prog_compiler_static='-Bstatic' 7909 fi 7910 ;; 7911 7912 amigaos*) 7913 case $host_cpu in 7914 powerpc) 7915 # see comment about AmigaOS4 .so support 7916 lt_prog_compiler_pic='-fPIC' 7917 ;; 7918 m68k) 7919 # FIXME: we need at least 68020 code to build shared libraries, but 7920 # adding the `-m68020' flag to GCC prevents building anything better, 7921 # like `-m68040'. 7922 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7923 ;; 7924 esac 7925 ;; 7926 7927 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7928 # PIC is the default for these OSes. 7929 ;; 7930 7931 mingw* | cygwin* | pw32* | os2* | cegcc*) 7932 # This hack is so that the source file can tell whether it is being 7933 # built for inclusion in a dll (and should export symbols for example). 7934 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7935 # (--disable-auto-import) libraries 7936 lt_prog_compiler_pic='-DDLL_EXPORT' 7937 ;; 7938 7939 darwin* | rhapsody*) 7940 # PIC is the default on this platform 7941 # Common symbols not allowed in MH_DYLIB files 7942 lt_prog_compiler_pic='-fno-common' 7943 ;; 7944 7945 hpux*) 7946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7948 # sets the default TLS model and affects inlining. 7949 case $host_cpu in 7950 hppa*64*) 7951 # +Z the default 7952 ;; 7953 *) 7954 lt_prog_compiler_pic='-fPIC' 7955 ;; 7956 esac 7957 ;; 7958 7959 interix[3-9]*) 7960 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7961 # Instead, we relocate shared libraries at runtime. 7962 ;; 7963 7964 msdosdjgpp*) 7965 # Just because we use GCC doesn't mean we suddenly get shared libraries 7966 # on systems that don't support them. 7967 lt_prog_compiler_can_build_shared=no 7968 enable_shared=no 7969 ;; 7970 7971 *nto* | *qnx*) 7972 # QNX uses GNU C++, but need to define -shared option too, otherwise 7973 # it will coredump. 7974 lt_prog_compiler_pic='-fPIC -shared' 7975 ;; 7976 7977 sysv4*MP*) 7978 if test -d /usr/nec; then 7979 lt_prog_compiler_pic=-Kconform_pic 7980 fi 7981 ;; 7982 7983 *) 7984 lt_prog_compiler_pic='-fPIC' 7985 ;; 7986 esac 7987 else 7988 # PORTME Check for flag to pass linker flags through the system compiler. 7989 case $host_os in 7990 aix*) 7991 lt_prog_compiler_wl='-Wl,' 7992 if test "$host_cpu" = ia64; then 7993 # AIX 5 now supports IA64 processor 7994 lt_prog_compiler_static='-Bstatic' 7995 else 7996 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7997 fi 7998 ;; 7999 8000 mingw* | cygwin* | pw32* | os2* | cegcc*) 8001 # This hack is so that the source file can tell whether it is being 8002 # built for inclusion in a dll (and should export symbols for example). 8003 lt_prog_compiler_pic='-DDLL_EXPORT' 8004 ;; 8005 8006 hpux9* | hpux10* | hpux11*) 8007 lt_prog_compiler_wl='-Wl,' 8008 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8009 # not for PA HP-UX. 8010 case $host_cpu in 8011 hppa*64*|ia64*) 8012 # +Z the default 8013 ;; 8014 *) 8015 lt_prog_compiler_pic='+Z' 8016 ;; 8017 esac 8018 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8019 lt_prog_compiler_static='${wl}-a ${wl}archive' 8020 ;; 8021 8022 irix5* | irix6* | nonstopux*) 8023 lt_prog_compiler_wl='-Wl,' 8024 # PIC (with -KPIC) is the default. 8025 lt_prog_compiler_static='-non_shared' 8026 ;; 8027 8028 linux* | k*bsd*-gnu) 8029 case $cc_basename in 8030 # old Intel for x86_64 which still supported -KPIC. 8031 ecc*) 8032 lt_prog_compiler_wl='-Wl,' 8033 lt_prog_compiler_pic='-KPIC' 8034 lt_prog_compiler_static='-static' 8035 ;; 8036 # icc used to be incompatible with GCC. 8037 # ICC 10 doesn't accept -KPIC any more. 8038 icc* | ifort*) 8039 lt_prog_compiler_wl='-Wl,' 8040 lt_prog_compiler_pic='-fPIC' 8041 lt_prog_compiler_static='-static' 8042 ;; 8043 # Lahey Fortran 8.1. 8044 lf95*) 8045 lt_prog_compiler_wl='-Wl,' 8046 lt_prog_compiler_pic='--shared' 8047 lt_prog_compiler_static='--static' 8048 ;; 8049 pgcc* | pgf77* | pgf90* | pgf95*) 8050 # Portland Group compilers (*not* the Pentium gcc compiler, 8051 # which looks to be a dead project) 8052 lt_prog_compiler_wl='-Wl,' 8053 lt_prog_compiler_pic='-fpic' 8054 lt_prog_compiler_static='-Bstatic' 8055 ;; 8056 ccc*) 8057 lt_prog_compiler_wl='-Wl,' 8058 # All Alpha code is PIC. 8059 lt_prog_compiler_static='-non_shared' 8060 ;; 8061 xl*) 8062 # IBM XL C 8.0/Fortran 10.1 on PPC 8063 lt_prog_compiler_wl='-Wl,' 8064 lt_prog_compiler_pic='-qpic' 8065 lt_prog_compiler_static='-qstaticlink' 8066 ;; 8067 *) 8068 case `$CC -V 2>&1 | sed 5q` in 8069 *Sun\ C*) 8070 # Sun C 5.9 8071 lt_prog_compiler_pic='-KPIC' 8072 lt_prog_compiler_static='-Bstatic' 8073 lt_prog_compiler_wl='-Wl,' 8074 ;; 8075 *Sun\ F*) 8076 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8077 lt_prog_compiler_pic='-KPIC' 8078 lt_prog_compiler_static='-Bstatic' 8079 lt_prog_compiler_wl='' 8080 ;; 8081 esac 8082 ;; 8083 esac 8084 ;; 8085 8086 newsos6) 8087 lt_prog_compiler_pic='-KPIC' 8088 lt_prog_compiler_static='-Bstatic' 8089 ;; 8090 8091 *nto* | *qnx*) 8092 # QNX uses GNU C++, but need to define -shared option too, otherwise 8093 # it will coredump. 8094 lt_prog_compiler_pic='-fPIC -shared' 8095 ;; 8096 8097 osf3* | osf4* | osf5*) 8098 lt_prog_compiler_wl='-Wl,' 8099 # All OSF/1 code is PIC. 8100 lt_prog_compiler_static='-non_shared' 8101 ;; 8102 8103 rdos*) 8104 lt_prog_compiler_static='-non_shared' 8105 ;; 8106 8107 solaris*) 8108 lt_prog_compiler_pic='-KPIC' 8109 lt_prog_compiler_static='-Bstatic' 8110 case $cc_basename in 8111 f77* | f90* | f95*) 8112 lt_prog_compiler_wl='-Qoption ld ';; 8113 *) 8114 lt_prog_compiler_wl='-Wl,';; 8115 esac 8116 ;; 8117 8118 sunos4*) 8119 lt_prog_compiler_wl='-Qoption ld ' 8120 lt_prog_compiler_pic='-PIC' 8121 lt_prog_compiler_static='-Bstatic' 8122 ;; 8123 8124 sysv4 | sysv4.2uw2* | sysv4.3*) 8125 lt_prog_compiler_wl='-Wl,' 8126 lt_prog_compiler_pic='-KPIC' 8127 lt_prog_compiler_static='-Bstatic' 8128 ;; 8129 8130 sysv4*MP*) 8131 if test -d /usr/nec ;then 8132 lt_prog_compiler_pic='-Kconform_pic' 8133 lt_prog_compiler_static='-Bstatic' 8134 fi 8135 ;; 8136 8137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8138 lt_prog_compiler_wl='-Wl,' 8139 lt_prog_compiler_pic='-KPIC' 8140 lt_prog_compiler_static='-Bstatic' 8141 ;; 8142 8143 unicos*) 8144 lt_prog_compiler_wl='-Wl,' 8145 lt_prog_compiler_can_build_shared=no 8146 ;; 8147 8148 uts4*) 8149 lt_prog_compiler_pic='-pic' 8150 lt_prog_compiler_static='-Bstatic' 8151 ;; 8152 8153 *) 8154 lt_prog_compiler_can_build_shared=no 8155 ;; 8156 esac 8157 fi 8158 8159 case $host_os in 8160 # For platforms which do not support PIC, -DPIC is meaningless: 8161 *djgpp*) 8162 lt_prog_compiler_pic= 8163 ;; 8164 *) 8165 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8166 ;; 8167 esac 8168 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8169 $as_echo "$lt_prog_compiler_pic" >&6; } 8170 8171 8172 8173 8174 8175 8176 # 8177 # Check to make sure the PIC flag actually works. 8178 # 8179 if test -n "$lt_prog_compiler_pic"; then 8180 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8181 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8182 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8183 $as_echo_n "(cached) " >&6 8184 else 8185 lt_cv_prog_compiler_pic_works=no 8186 ac_outfile=conftest.$ac_objext 8187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8188 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8189 # Insert the option either (1) after the last *FLAGS variable, or 8190 # (2) before a word containing "conftest.", or (3) at the end. 8191 # Note that $ac_compile itself does not contain backslashes and begins 8192 # with a dollar sign (not a hyphen), so the echo should work correctly. 8193 # The option is referenced via a variable to avoid confusing sed. 8194 lt_compile=`echo "$ac_compile" | $SED \ 8195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8197 -e 's:$: $lt_compiler_flag:'` 8198 (eval echo "\"\$as_me:8198: $lt_compile\"" >&5) 8199 (eval "$lt_compile" 2>conftest.err) 8200 ac_status=$? 8201 cat conftest.err >&5 8202 echo "$as_me:8202: \$? = $ac_status" >&5 8203 if (exit $ac_status) && test -s "$ac_outfile"; then 8204 # The compiler can only warn and ignore the option if not recognized 8205 # So say no if there are warnings other than the usual output. 8206 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8209 lt_cv_prog_compiler_pic_works=yes 8210 fi 8211 fi 8212 $RM conftest* 8213 8214 fi 8215 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8216 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8217 8218 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8219 case $lt_prog_compiler_pic in 8220 "" | " "*) ;; 8221 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8222 esac 8223 else 8224 lt_prog_compiler_pic= 8225 lt_prog_compiler_can_build_shared=no 8226 fi 8227 8228 fi 8229 8230 8231 8232 8233 8234 8235 # 8236 # Check to make sure the static flag actually works. 8237 # 8238 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8239 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8240 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8241 if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8242 $as_echo_n "(cached) " >&6 8243 else 8244 lt_cv_prog_compiler_static_works=no 8245 save_LDFLAGS="$LDFLAGS" 8246 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8247 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8249 # The linker can only warn and ignore the option if not recognized 8250 # So say no if there are warnings 8251 if test -s conftest.err; then 8252 # Append any errors to the config.log. 8253 cat conftest.err 1>&5 8254 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8256 if diff conftest.exp conftest.er2 >/dev/null; then 8257 lt_cv_prog_compiler_static_works=yes 8258 fi 8259 else 8260 lt_cv_prog_compiler_static_works=yes 8261 fi 8262 fi 8263 $RM -r conftest* 8264 LDFLAGS="$save_LDFLAGS" 8265 8266 fi 8267 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8268 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8269 8270 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8271 : 8272 else 8273 lt_prog_compiler_static= 8274 fi 8275 8276 8277 8278 8279 8280 8281 8282 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8283 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8284 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8285 $as_echo_n "(cached) " >&6 8286 else 8287 lt_cv_prog_compiler_c_o=no 8288 $RM -r conftest 2>/dev/null 8289 mkdir conftest 8290 cd conftest 8291 mkdir out 8292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8293 8294 lt_compiler_flag="-o out/conftest2.$ac_objext" 8295 # Insert the option either (1) after the last *FLAGS variable, or 8296 # (2) before a word containing "conftest.", or (3) at the end. 8297 # Note that $ac_compile itself does not contain backslashes and begins 8298 # with a dollar sign (not a hyphen), so the echo should work correctly. 8299 lt_compile=`echo "$ac_compile" | $SED \ 8300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8302 -e 's:$: $lt_compiler_flag:'` 8303 (eval echo "\"\$as_me:8303: $lt_compile\"" >&5) 8304 (eval "$lt_compile" 2>out/conftest.err) 8305 ac_status=$? 8306 cat out/conftest.err >&5 8307 echo "$as_me:8307: \$? = $ac_status" >&5 8308 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8309 then 8310 # The compiler can only warn and ignore the option if not recognized 8311 # So say no if there are warnings 8312 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8315 lt_cv_prog_compiler_c_o=yes 8316 fi 8317 fi 8318 chmod u+w . 2>&5 8319 $RM conftest* 8320 # SGI C++ compiler will create directory out/ii_files/ for 8321 # template instantiation 8322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8323 $RM out/* && rmdir out 8324 cd .. 8325 $RM -r conftest 8326 $RM conftest* 8327 8328 fi 8329 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8330 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8331 8332 8333 8334 8335 8336 8337 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8339 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8340 $as_echo_n "(cached) " >&6 8341 else 8342 lt_cv_prog_compiler_c_o=no 8343 $RM -r conftest 2>/dev/null 8344 mkdir conftest 8345 cd conftest 8346 mkdir out 8347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8348 8349 lt_compiler_flag="-o out/conftest2.$ac_objext" 8350 # Insert the option either (1) after the last *FLAGS variable, or 8351 # (2) before a word containing "conftest.", or (3) at the end. 8352 # Note that $ac_compile itself does not contain backslashes and begins 8353 # with a dollar sign (not a hyphen), so the echo should work correctly. 8354 lt_compile=`echo "$ac_compile" | $SED \ 8355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8357 -e 's:$: $lt_compiler_flag:'` 8358 (eval echo "\"\$as_me:8358: $lt_compile\"" >&5) 8359 (eval "$lt_compile" 2>out/conftest.err) 8360 ac_status=$? 8361 cat out/conftest.err >&5 8362 echo "$as_me:8362: \$? = $ac_status" >&5 8363 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8364 then 8365 # The compiler can only warn and ignore the option if not recognized 8366 # So say no if there are warnings 8367 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8370 lt_cv_prog_compiler_c_o=yes 8371 fi 8372 fi 8373 chmod u+w . 2>&5 8374 $RM conftest* 8375 # SGI C++ compiler will create directory out/ii_files/ for 8376 # template instantiation 8377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8378 $RM out/* && rmdir out 8379 cd .. 8380 $RM -r conftest 8381 $RM conftest* 8382 8383 fi 8384 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8385 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8386 8387 8388 8389 8390 hard_links="nottested" 8391 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8392 # do not overwrite the value of need_locks provided by the user 8393 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8394 $as_echo_n "checking if we can lock with hard links... " >&6; } 8395 hard_links=yes 8396 $RM conftest* 8397 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8398 touch conftest.a 8399 ln conftest.a conftest.b 2>&5 || hard_links=no 8400 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8401 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8402 $as_echo "$hard_links" >&6; } 8403 if test "$hard_links" = no; then 8404 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8405 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8406 need_locks=warn 8407 fi 8408 else 8409 need_locks=no 8410 fi 8411 8412 8413 8414 8415 8416 8417 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8418 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8419 8420 runpath_var= 8421 allow_undefined_flag= 8422 always_export_symbols=no 8423 archive_cmds= 8424 archive_expsym_cmds= 8425 compiler_needs_object=no 8426 enable_shared_with_static_runtimes=no 8427 export_dynamic_flag_spec= 8428 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8429 hardcode_automatic=no 8430 hardcode_direct=no 8431 hardcode_direct_absolute=no 8432 hardcode_libdir_flag_spec= 8433 hardcode_libdir_flag_spec_ld= 8434 hardcode_libdir_separator= 8435 hardcode_minus_L=no 8436 hardcode_shlibpath_var=unsupported 8437 inherit_rpath=no 8438 link_all_deplibs=unknown 8439 module_cmds= 8440 module_expsym_cmds= 8441 old_archive_from_new_cmds= 8442 old_archive_from_expsyms_cmds= 8443 thread_safe_flag_spec= 8444 whole_archive_flag_spec= 8445 # include_expsyms should be a list of space-separated symbols to be *always* 8446 # included in the symbol list 8447 include_expsyms= 8448 # exclude_expsyms can be an extended regexp of symbols to exclude 8449 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8450 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8451 # as well as any symbol that contains `d'. 8452 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8453 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8454 # platforms (ab)use it in PIC code, but their linkers get confused if 8455 # the symbol is explicitly referenced. Since portable code cannot 8456 # rely on this symbol name, it's probably fine to never include it in 8457 # preloaded symbol tables. 8458 # Exclude shared library initialization/finalization symbols. 8459 extract_expsyms_cmds= 8460 8461 case $host_os in 8462 cygwin* | mingw* | pw32* | cegcc*) 8463 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8464 # When not using gcc, we currently assume that we are using 8465 # Microsoft Visual C++. 8466 if test "$GCC" != yes; then 8467 with_gnu_ld=no 8468 fi 8469 ;; 8470 interix*) 8471 # we just hope/assume this is gcc and not c89 (= MSVC++) 8472 with_gnu_ld=yes 8473 ;; 8474 openbsd*) 8475 with_gnu_ld=no 8476 ;; 8477 esac 8478 8479 ld_shlibs=yes 8480 if test "$with_gnu_ld" = yes; then 8481 # If archive_cmds runs LD, not CC, wlarc should be empty 8482 wlarc='${wl}' 8483 8484 # Set some defaults for GNU ld with shared library support. These 8485 # are reset later if shared libraries are not supported. Putting them 8486 # here allows them to be overridden if necessary. 8487 runpath_var=LD_RUN_PATH 8488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8489 export_dynamic_flag_spec='${wl}--export-dynamic' 8490 # ancient GNU ld didn't support --whole-archive et. al. 8491 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8492 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8493 else 8494 whole_archive_flag_spec= 8495 fi 8496 supports_anon_versioning=no 8497 case `$LD -v 2>&1` in 8498 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8499 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8500 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8501 *\ 2.11.*) ;; # other 2.11 versions 8502 *) supports_anon_versioning=yes ;; 8503 esac 8504 8505 # See if GNU ld supports shared libraries. 8506 case $host_os in 8507 aix[3-9]*) 8508 # On AIX/PPC, the GNU linker is very broken 8509 if test "$host_cpu" != ia64; then 8510 ld_shlibs=no 8511 cat <<_LT_EOF 1>&2 8512 8513 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 8514 *** to be unable to reliably create shared libraries on AIX. 8515 *** Therefore, libtool is disabling shared libraries support. If you 8516 *** really care for shared libraries, you may want to modify your PATH 8517 *** so that a non-GNU linker is found, and then restart. 8518 8519 _LT_EOF 8520 fi 8521 ;; 8522 8523 amigaos*) 8524 case $host_cpu in 8525 powerpc) 8526 # see comment about AmigaOS4 .so support 8527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8528 archive_expsym_cmds='' 8529 ;; 8530 m68k) 8531 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)' 8532 hardcode_libdir_flag_spec='-L$libdir' 8533 hardcode_minus_L=yes 8534 ;; 8535 esac 8536 ;; 8537 8538 beos*) 8539 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8540 allow_undefined_flag=unsupported 8541 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8542 # support --undefined. This deserves some investigation. FIXME 8543 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8544 else 8545 ld_shlibs=no 8546 fi 8547 ;; 8548 8549 cygwin* | mingw* | pw32* | cegcc*) 8550 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8551 # as there is no search path for DLLs. 8552 hardcode_libdir_flag_spec='-L$libdir' 8553 allow_undefined_flag=unsupported 8554 always_export_symbols=no 8555 enable_shared_with_static_runtimes=yes 8556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8557 8558 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8560 # If the export-symbols file already is a .def file (1st line 8561 # is EXPORTS), use it as is; otherwise, prepend... 8562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8563 cp $export_symbols $output_objdir/$soname.def; 8564 else 8565 echo EXPORTS > $output_objdir/$soname.def; 8566 cat $export_symbols >> $output_objdir/$soname.def; 8567 fi~ 8568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8569 else 8570 ld_shlibs=no 8571 fi 8572 ;; 8573 8574 interix[3-9]*) 8575 hardcode_direct=no 8576 hardcode_shlibpath_var=no 8577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8578 export_dynamic_flag_spec='${wl}-E' 8579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8580 # Instead, shared libraries are loaded at an image base (0x10000000 by 8581 # default) and relocated if they conflict, which is a slow very memory 8582 # consuming and fragmenting process. To avoid this, we pick a random, 8583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8584 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8585 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8586 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' 8587 ;; 8588 8589 gnu* | linux* | tpf* | k*bsd*-gnu) 8590 tmp_diet=no 8591 if test "$host_os" = linux-dietlibc; then 8592 case $cc_basename in 8593 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8594 esac 8595 fi 8596 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8597 && test "$tmp_diet" = no 8598 then 8599 tmp_addflag= 8600 tmp_sharedflag='-shared' 8601 case $cc_basename,$host_cpu in 8602 pgcc*) # Portland Group C compiler 8603 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' 8604 tmp_addflag=' $pic_flag' 8605 ;; 8606 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8607 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' 8608 tmp_addflag=' $pic_flag -Mnomain' ;; 8609 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8610 tmp_addflag=' -i_dynamic' ;; 8611 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8612 tmp_addflag=' -i_dynamic -nofor_main' ;; 8613 ifc* | ifort*) # Intel Fortran compiler 8614 tmp_addflag=' -nofor_main' ;; 8615 lf95*) # Lahey Fortran 8.1 8616 whole_archive_flag_spec= 8617 tmp_sharedflag='--shared' ;; 8618 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8619 tmp_sharedflag='-qmkshrobj' 8620 tmp_addflag= ;; 8621 esac 8622 case `$CC -V 2>&1 | sed 5q` in 8623 *Sun\ C*) # Sun C 5.9 8624 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' 8625 compiler_needs_object=yes 8626 tmp_sharedflag='-G' ;; 8627 *Sun\ F*) # Sun Fortran 8.3 8628 tmp_sharedflag='-G' ;; 8629 esac 8630 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8631 8632 if test "x$supports_anon_versioning" = xyes; then 8633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8635 echo "local: *; };" >> $output_objdir/$libname.ver~ 8636 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8637 fi 8638 8639 case $cc_basename in 8640 xlf*) 8641 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8642 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8643 hardcode_libdir_flag_spec= 8644 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8645 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8646 if test "x$supports_anon_versioning" = xyes; then 8647 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8649 echo "local: *; };" >> $output_objdir/$libname.ver~ 8650 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8651 fi 8652 ;; 8653 esac 8654 else 8655 ld_shlibs=no 8656 fi 8657 ;; 8658 8659 netbsd*) 8660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8661 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8662 wlarc= 8663 else 8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8666 fi 8667 ;; 8668 8669 solaris*) 8670 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8671 ld_shlibs=no 8672 cat <<_LT_EOF 1>&2 8673 8674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 8675 *** create shared libraries on Solaris systems. Therefore, libtool 8676 *** is disabling shared libraries support. We urge you to upgrade GNU 8677 *** binutils to release 2.9.1 or newer. Another option is to modify 8678 *** your PATH or compiler configuration so that the native linker is 8679 *** used, and then restart. 8680 8681 _LT_EOF 8682 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8685 else 8686 ld_shlibs=no 8687 fi 8688 ;; 8689 8690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8691 case `$LD -v 2>&1` in 8692 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8693 ld_shlibs=no 8694 cat <<_LT_EOF 1>&2 8695 8696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8697 *** reliably create shared libraries on SCO systems. Therefore, libtool 8698 *** is disabling shared libraries support. We urge you to upgrade GNU 8699 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8700 *** your PATH or compiler configuration so that the native linker is 8701 *** used, and then restart. 8702 8703 _LT_EOF 8704 ;; 8705 *) 8706 # For security reasons, it is highly recommended that you always 8707 # use absolute paths for naming shared libraries, and exclude the 8708 # DT_RUNPATH tag from executables and libraries. But doing so 8709 # requires that you compile everything twice, which is a pain. 8710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8714 else 8715 ld_shlibs=no 8716 fi 8717 ;; 8718 esac 8719 ;; 8720 8721 sunos4*) 8722 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8723 wlarc= 8724 hardcode_direct=yes 8725 hardcode_shlibpath_var=no 8726 ;; 8727 8728 *) 8729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8732 else 8733 ld_shlibs=no 8734 fi 8735 ;; 8736 esac 8737 8738 if test "$ld_shlibs" = no; then 8739 runpath_var= 8740 hardcode_libdir_flag_spec= 8741 export_dynamic_flag_spec= 8742 whole_archive_flag_spec= 8743 fi 8744 else 8745 # PORTME fill in a description of your system's linker (not GNU ld) 8746 case $host_os in 8747 aix3*) 8748 allow_undefined_flag=unsupported 8749 always_export_symbols=yes 8750 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' 8751 # Note: this linker hardcodes the directories in LIBPATH if there 8752 # are no directories specified by -L. 8753 hardcode_minus_L=yes 8754 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8755 # Neither direct hardcoding nor static linking is supported with a 8756 # broken collect2. 8757 hardcode_direct=unsupported 8758 fi 8759 ;; 8760 8761 aix[4-9]*) 8762 if test "$host_cpu" = ia64; then 8763 # On IA64, the linker does run time linking by default, so we don't 8764 # have to do anything special. 8765 aix_use_runtimelinking=no 8766 exp_sym_flag='-Bexport' 8767 no_entry_flag="" 8768 else 8769 # If we're using GNU nm, then we don't want the "-C" option. 8770 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8771 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8772 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' 8773 else 8774 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' 8775 fi 8776 aix_use_runtimelinking=no 8777 8778 # Test if we are trying to use run time linking or normal 8779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8780 # need to do runtime linking. 8781 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8782 for ld_flag in $LDFLAGS; do 8783 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8784 aix_use_runtimelinking=yes 8785 break 8786 fi 8787 done 8788 ;; 8789 esac 8790 8791 exp_sym_flag='-bexport' 8792 no_entry_flag='-bnoentry' 8793 fi 8794 8795 # When large executables or shared objects are built, AIX ld can 8796 # have problems creating the table of contents. If linking a library 8797 # or program results in "error TOC overflow" add -mminimal-toc to 8798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8800 8801 archive_cmds='' 8802 hardcode_direct=yes 8803 hardcode_direct_absolute=yes 8804 hardcode_libdir_separator=':' 8805 link_all_deplibs=yes 8806 file_list_spec='${wl}-f,' 8807 8808 if test "$GCC" = yes; then 8809 case $host_os in aix4.[012]|aix4.[012].*) 8810 # We only want to do this on AIX 4.2 and lower, the check 8811 # below for broken collect2 doesn't work under 4.3+ 8812 collect2name=`${CC} -print-prog-name=collect2` 8813 if test -f "$collect2name" && 8814 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8815 then 8816 # We have reworked collect2 8817 : 8818 else 8819 # We have old collect2 8820 hardcode_direct=unsupported 8821 # It fails to find uninstalled libraries when the uninstalled 8822 # path is not listed in the libpath. Setting hardcode_minus_L 8823 # to unsupported forces relinking 8824 hardcode_minus_L=yes 8825 hardcode_libdir_flag_spec='-L$libdir' 8826 hardcode_libdir_separator= 8827 fi 8828 ;; 8829 esac 8830 shared_flag='-shared' 8831 if test "$aix_use_runtimelinking" = yes; then 8832 shared_flag="$shared_flag "'${wl}-G' 8833 fi 8834 else 8835 # not using gcc 8836 if test "$host_cpu" = ia64; then 8837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8838 # chokes on -Wl,-G. The following line is correct: 8839 shared_flag='-G' 8840 else 8841 if test "$aix_use_runtimelinking" = yes; then 8842 shared_flag='${wl}-G' 8843 else 8844 shared_flag='${wl}-bM:SRE' 8845 fi 8846 fi 8847 fi 8848 8849 export_dynamic_flag_spec='${wl}-bexpall' 8850 # It seems that -bexpall does not export symbols beginning with 8851 # underscore (_), so it is better to generate a list of symbols to export. 8852 always_export_symbols=yes 8853 if test "$aix_use_runtimelinking" = yes; then 8854 # Warning - without using the other runtime loading flags (-brtl), 8855 # -berok will link without error, but may produce a broken library. 8856 allow_undefined_flag='-berok' 8857 # Determine the default libpath from the value encoded in an 8858 # empty executable. 8859 cat >conftest.$ac_ext <<_ACEOF 8860 /* confdefs.h. */ 8861 _ACEOF 8862 cat confdefs.h >>conftest.$ac_ext 8863 cat >>conftest.$ac_ext <<_ACEOF 8864 /* end confdefs.h. */ 8865 8866 int 8867 main () 8868 { 8869 8870 ; 8871 return 0; 8872 } 8873 _ACEOF 8874 rm -f conftest.$ac_objext conftest$ac_exeext 8875 if { (ac_try="$ac_link" 8876 case "(($ac_try" in 8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8878 *) ac_try_echo=$ac_try;; 8879 esac 8880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8881 $as_echo "$ac_try_echo") >&5 8882 (eval "$ac_link") 2>conftest.er1 8883 ac_status=$? 8884 grep -v '^ *+' conftest.er1 >conftest.err 8885 rm -f conftest.er1 8886 cat conftest.err >&5 8887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8888 (exit $ac_status); } && { 8889 test -z "$ac_c_werror_flag" || 8890 test ! -s conftest.err 8891 } && test -s conftest$ac_exeext && { 8892 test "$cross_compiling" = yes || 8893 $as_test_x conftest$ac_exeext 8894 }; then 8895 8896 lt_aix_libpath_sed=' 8897 /Import File Strings/,/^$/ { 8898 /^0/ { 8899 s/^0 *\(.*\)$/\1/ 8900 p 8901 } 8902 }' 8903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8904 # Check for a 64-bit object if we didn't find anything. 8905 if test -z "$aix_libpath"; then 8906 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8907 fi 8908 else 8909 $as_echo "$as_me: failed program was:" >&5 8910 sed 's/^/| /' conftest.$ac_ext >&5 8911 8912 8913 fi 8914 8915 rm -rf conftest.dSYM 8916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8917 conftest$ac_exeext conftest.$ac_ext 8918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8919 8920 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8921 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" 8922 else 8923 if test "$host_cpu" = ia64; then 8924 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8925 allow_undefined_flag="-z nodefs" 8926 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" 8927 else 8928 # Determine the default libpath from the value encoded in an 8929 # empty executable. 8930 cat >conftest.$ac_ext <<_ACEOF 8931 /* confdefs.h. */ 8932 _ACEOF 8933 cat confdefs.h >>conftest.$ac_ext 8934 cat >>conftest.$ac_ext <<_ACEOF 8935 /* end confdefs.h. */ 8936 8937 int 8938 main () 8939 { 8940 8941 ; 8942 return 0; 8943 } 8944 _ACEOF 8945 rm -f conftest.$ac_objext conftest$ac_exeext 8946 if { (ac_try="$ac_link" 8947 case "(($ac_try" in 8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8949 *) ac_try_echo=$ac_try;; 8950 esac 8951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8952 $as_echo "$ac_try_echo") >&5 8953 (eval "$ac_link") 2>conftest.er1 8954 ac_status=$? 8955 grep -v '^ *+' conftest.er1 >conftest.err 8956 rm -f conftest.er1 8957 cat conftest.err >&5 8958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8959 (exit $ac_status); } && { 8960 test -z "$ac_c_werror_flag" || 8961 test ! -s conftest.err 8962 } && test -s conftest$ac_exeext && { 8963 test "$cross_compiling" = yes || 8964 $as_test_x conftest$ac_exeext 8965 }; then 8966 8967 lt_aix_libpath_sed=' 8968 /Import File Strings/,/^$/ { 8969 /^0/ { 8970 s/^0 *\(.*\)$/\1/ 8971 p 8972 } 8973 }' 8974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8975 # Check for a 64-bit object if we didn't find anything. 8976 if test -z "$aix_libpath"; then 8977 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8978 fi 8979 else 8980 $as_echo "$as_me: failed program was:" >&5 8981 sed 's/^/| /' conftest.$ac_ext >&5 8982 8983 8984 fi 8985 8986 rm -rf conftest.dSYM 8987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8988 conftest$ac_exeext conftest.$ac_ext 8989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8990 8991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8992 # Warning - without using the other run time loading flags, 8993 # -berok will link without error, but may produce a broken library. 8994 no_undefined_flag=' ${wl}-bernotok' 8995 allow_undefined_flag=' ${wl}-berok' 8996 # Exported symbols can be pulled into shared objects from archives 8997 whole_archive_flag_spec='$convenience' 8998 archive_cmds_need_lc=yes 8999 # This is similar to how AIX traditionally builds its shared libraries. 9000 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' 9001 fi 9002 fi 9003 ;; 9004 9005 amigaos*) 9006 case $host_cpu in 9007 powerpc) 9008 # see comment about AmigaOS4 .so support 9009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9010 archive_expsym_cmds='' 9011 ;; 9012 m68k) 9013 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)' 9014 hardcode_libdir_flag_spec='-L$libdir' 9015 hardcode_minus_L=yes 9016 ;; 9017 esac 9018 ;; 9019 9020 bsdi[45]*) 9021 export_dynamic_flag_spec=-rdynamic 9022 ;; 9023 9024 cygwin* | mingw* | pw32* | cegcc*) 9025 # When not using gcc, we currently assume that we are using 9026 # Microsoft Visual C++. 9027 # hardcode_libdir_flag_spec is actually meaningless, as there is 9028 # no search path for DLLs. 9029 hardcode_libdir_flag_spec=' ' 9030 allow_undefined_flag=unsupported 9031 # Tell ltmain to make .lib files, not .a files. 9032 libext=lib 9033 # Tell ltmain to make .dll files, not .so files. 9034 shrext_cmds=".dll" 9035 # FIXME: Setting linknames here is a bad hack. 9036 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9037 # The linker will automatically build a .lib file if we build a DLL. 9038 old_archive_from_new_cmds='true' 9039 # FIXME: Should let the user specify the lib program. 9040 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9041 fix_srcfile_path='`cygpath -w "$srcfile"`' 9042 enable_shared_with_static_runtimes=yes 9043 ;; 9044 9045 darwin* | rhapsody*) 9046 9047 9048 archive_cmds_need_lc=no 9049 hardcode_direct=no 9050 hardcode_automatic=yes 9051 hardcode_shlibpath_var=unsupported 9052 whole_archive_flag_spec='' 9053 link_all_deplibs=yes 9054 allow_undefined_flag="$_lt_dar_allow_undefined" 9055 case $cc_basename in 9056 ifort*) _lt_dar_can_shared=yes ;; 9057 *) _lt_dar_can_shared=$GCC ;; 9058 esac 9059 if test "$_lt_dar_can_shared" = "yes"; then 9060 output_verbose_link_cmd=echo 9061 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9062 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9063 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}" 9064 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}" 9065 9066 else 9067 ld_shlibs=no 9068 fi 9069 9070 ;; 9071 9072 dgux*) 9073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9074 hardcode_libdir_flag_spec='-L$libdir' 9075 hardcode_shlibpath_var=no 9076 ;; 9077 9078 freebsd1*) 9079 ld_shlibs=no 9080 ;; 9081 9082 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9083 # support. Future versions do this automatically, but an explicit c++rt0.o 9084 # does not break anything, and helps significantly (at the cost of a little 9085 # extra space). 9086 freebsd2.2*) 9087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9088 hardcode_libdir_flag_spec='-R$libdir' 9089 hardcode_direct=yes 9090 hardcode_shlibpath_var=no 9091 ;; 9092 9093 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9094 freebsd2*) 9095 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9096 hardcode_direct=yes 9097 hardcode_minus_L=yes 9098 hardcode_shlibpath_var=no 9099 ;; 9100 9101 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9102 freebsd* | dragonfly*) 9103 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9104 hardcode_libdir_flag_spec='-R$libdir' 9105 hardcode_direct=yes 9106 hardcode_shlibpath_var=no 9107 ;; 9108 9109 hpux9*) 9110 if test "$GCC" = yes; then 9111 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' 9112 else 9113 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' 9114 fi 9115 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9116 hardcode_libdir_separator=: 9117 hardcode_direct=yes 9118 9119 # hardcode_minus_L: Not really in the search PATH, 9120 # but as the default location of the library. 9121 hardcode_minus_L=yes 9122 export_dynamic_flag_spec='${wl}-E' 9123 ;; 9124 9125 hpux10*) 9126 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9127 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9128 else 9129 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9130 fi 9131 if test "$with_gnu_ld" = no; then 9132 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9133 hardcode_libdir_flag_spec_ld='+b $libdir' 9134 hardcode_libdir_separator=: 9135 hardcode_direct=yes 9136 hardcode_direct_absolute=yes 9137 export_dynamic_flag_spec='${wl}-E' 9138 # hardcode_minus_L: Not really in the search PATH, 9139 # but as the default location of the library. 9140 hardcode_minus_L=yes 9141 fi 9142 ;; 9143 9144 hpux11*) 9145 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9146 case $host_cpu in 9147 hppa*64*) 9148 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9149 ;; 9150 ia64*) 9151 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9152 ;; 9153 *) 9154 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9155 ;; 9156 esac 9157 else 9158 case $host_cpu in 9159 hppa*64*) 9160 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9161 ;; 9162 ia64*) 9163 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9164 ;; 9165 *) 9166 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9167 ;; 9168 esac 9169 fi 9170 if test "$with_gnu_ld" = no; then 9171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9172 hardcode_libdir_separator=: 9173 9174 case $host_cpu in 9175 hppa*64*|ia64*) 9176 hardcode_direct=no 9177 hardcode_shlibpath_var=no 9178 ;; 9179 *) 9180 hardcode_direct=yes 9181 hardcode_direct_absolute=yes 9182 export_dynamic_flag_spec='${wl}-E' 9183 9184 # hardcode_minus_L: Not really in the search PATH, 9185 # but as the default location of the library. 9186 hardcode_minus_L=yes 9187 ;; 9188 esac 9189 fi 9190 ;; 9191 9192 irix5* | irix6* | nonstopux*) 9193 if test "$GCC" = yes; then 9194 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' 9195 # Try to use the -exported_symbol ld option, if it does not 9196 # work, assume that -exports_file does not work either and 9197 # implicitly export all symbols. 9198 save_LDFLAGS="$LDFLAGS" 9199 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9200 cat >conftest.$ac_ext <<_ACEOF 9201 int foo(void) {} 9202 _ACEOF 9203 rm -f conftest.$ac_objext conftest$ac_exeext 9204 if { (ac_try="$ac_link" 9205 case "(($ac_try" in 9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9207 *) ac_try_echo=$ac_try;; 9208 esac 9209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9210 $as_echo "$ac_try_echo") >&5 9211 (eval "$ac_link") 2>conftest.er1 9212 ac_status=$? 9213 grep -v '^ *+' conftest.er1 >conftest.err 9214 rm -f conftest.er1 9215 cat conftest.err >&5 9216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9217 (exit $ac_status); } && { 9218 test -z "$ac_c_werror_flag" || 9219 test ! -s conftest.err 9220 } && test -s conftest$ac_exeext && { 9221 test "$cross_compiling" = yes || 9222 $as_test_x conftest$ac_exeext 9223 }; then 9224 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' 9225 9226 else 9227 $as_echo "$as_me: failed program was:" >&5 9228 sed 's/^/| /' conftest.$ac_ext >&5 9229 9230 9231 fi 9232 9233 rm -rf conftest.dSYM 9234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9235 conftest$ac_exeext conftest.$ac_ext 9236 LDFLAGS="$save_LDFLAGS" 9237 else 9238 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' 9239 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' 9240 fi 9241 archive_cmds_need_lc='no' 9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9243 hardcode_libdir_separator=: 9244 inherit_rpath=yes 9245 link_all_deplibs=yes 9246 ;; 9247 9248 netbsd*) 9249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9251 else 9252 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9253 fi 9254 hardcode_libdir_flag_spec='-R$libdir' 9255 hardcode_direct=yes 9256 hardcode_shlibpath_var=no 9257 ;; 9258 9259 newsos6) 9260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9261 hardcode_direct=yes 9262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9263 hardcode_libdir_separator=: 9264 hardcode_shlibpath_var=no 9265 ;; 9266 9267 *nto* | *qnx*) 9268 ;; 9269 9270 openbsd*) 9271 if test -f /usr/libexec/ld.so; then 9272 hardcode_direct=yes 9273 hardcode_shlibpath_var=no 9274 hardcode_direct_absolute=yes 9275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9277 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9278 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9279 export_dynamic_flag_spec='${wl}-E' 9280 else 9281 case $host_os in 9282 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9284 hardcode_libdir_flag_spec='-R$libdir' 9285 ;; 9286 *) 9287 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9288 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9289 ;; 9290 esac 9291 fi 9292 else 9293 ld_shlibs=no 9294 fi 9295 ;; 9296 9297 os2*) 9298 hardcode_libdir_flag_spec='-L$libdir' 9299 hardcode_minus_L=yes 9300 allow_undefined_flag=unsupported 9301 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' 9302 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9303 ;; 9304 9305 osf3*) 9306 if test "$GCC" = yes; then 9307 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9308 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' 9309 else 9310 allow_undefined_flag=' -expect_unresolved \*' 9311 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' 9312 fi 9313 archive_cmds_need_lc='no' 9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9315 hardcode_libdir_separator=: 9316 ;; 9317 9318 osf4* | osf5*) # as osf3* with the addition of -msym flag 9319 if test "$GCC" = yes; then 9320 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9321 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' 9322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9323 else 9324 allow_undefined_flag=' -expect_unresolved \*' 9325 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' 9326 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~ 9327 $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' 9328 9329 # Both c and cxx compiler support -rpath directly 9330 hardcode_libdir_flag_spec='-rpath $libdir' 9331 fi 9332 archive_cmds_need_lc='no' 9333 hardcode_libdir_separator=: 9334 ;; 9335 9336 solaris*) 9337 no_undefined_flag=' -z defs' 9338 if test "$GCC" = yes; then 9339 wlarc='${wl}' 9340 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9342 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9343 else 9344 case `$CC -V 2>&1` in 9345 *"Compilers 5.0"*) 9346 wlarc='' 9347 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9349 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9350 ;; 9351 *) 9352 wlarc='${wl}' 9353 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9355 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9356 ;; 9357 esac 9358 fi 9359 hardcode_libdir_flag_spec='-R$libdir' 9360 hardcode_shlibpath_var=no 9361 case $host_os in 9362 solaris2.[0-5] | solaris2.[0-5].*) ;; 9363 *) 9364 # The compiler driver will combine and reorder linker options, 9365 # but understands `-z linker_flag'. GCC discards it without `$wl', 9366 # but is careful enough not to reorder. 9367 # Supported since Solaris 2.6 (maybe 2.5.1?) 9368 if test "$GCC" = yes; then 9369 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9370 else 9371 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9372 fi 9373 ;; 9374 esac 9375 link_all_deplibs=yes 9376 ;; 9377 9378 sunos4*) 9379 if test "x$host_vendor" = xsequent; then 9380 # Use $CC to link under sequent, because it throws in some extra .o 9381 # files that make .init and .fini sections work. 9382 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9383 else 9384 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9385 fi 9386 hardcode_libdir_flag_spec='-L$libdir' 9387 hardcode_direct=yes 9388 hardcode_minus_L=yes 9389 hardcode_shlibpath_var=no 9390 ;; 9391 9392 sysv4) 9393 case $host_vendor in 9394 sni) 9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9396 hardcode_direct=yes # is this really true??? 9397 ;; 9398 siemens) 9399 ## LD is ld it makes a PLAMLIB 9400 ## CC just makes a GrossModule. 9401 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9402 reload_cmds='$CC -r -o $output$reload_objs' 9403 hardcode_direct=no 9404 ;; 9405 motorola) 9406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9407 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9408 ;; 9409 esac 9410 runpath_var='LD_RUN_PATH' 9411 hardcode_shlibpath_var=no 9412 ;; 9413 9414 sysv4.3*) 9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9416 hardcode_shlibpath_var=no 9417 export_dynamic_flag_spec='-Bexport' 9418 ;; 9419 9420 sysv4*MP*) 9421 if test -d /usr/nec; then 9422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9423 hardcode_shlibpath_var=no 9424 runpath_var=LD_RUN_PATH 9425 hardcode_runpath_var=yes 9426 ld_shlibs=yes 9427 fi 9428 ;; 9429 9430 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9431 no_undefined_flag='${wl}-z,text' 9432 archive_cmds_need_lc=no 9433 hardcode_shlibpath_var=no 9434 runpath_var='LD_RUN_PATH' 9435 9436 if test "$GCC" = yes; then 9437 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9438 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9439 else 9440 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9441 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9442 fi 9443 ;; 9444 9445 sysv5* | sco3.2v5* | sco5v6*) 9446 # Note: We can NOT use -z defs as we might desire, because we do not 9447 # link with -lc, and that would cause any symbols used from libc to 9448 # always be unresolved, which means just about no library would 9449 # ever link correctly. If we're not using GNU ld we use -z text 9450 # though, which does catch some bad symbols but isn't as heavy-handed 9451 # as -z defs. 9452 no_undefined_flag='${wl}-z,text' 9453 allow_undefined_flag='${wl}-z,nodefs' 9454 archive_cmds_need_lc=no 9455 hardcode_shlibpath_var=no 9456 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9457 hardcode_libdir_separator=':' 9458 link_all_deplibs=yes 9459 export_dynamic_flag_spec='${wl}-Bexport' 9460 runpath_var='LD_RUN_PATH' 9461 9462 if test "$GCC" = yes; then 9463 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9464 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9465 else 9466 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9467 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9468 fi 9469 ;; 9470 9471 uts4*) 9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9473 hardcode_libdir_flag_spec='-L$libdir' 9474 hardcode_shlibpath_var=no 9475 ;; 9476 9477 *) 9478 ld_shlibs=no 9479 ;; 9480 esac 9481 9482 if test x$host_vendor = xsni; then 9483 case $host in 9484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9485 export_dynamic_flag_spec='${wl}-Blargedynsym' 9486 ;; 9487 esac 9488 fi 9489 fi 9490 9491 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9492 $as_echo "$ld_shlibs" >&6; } 9493 test "$ld_shlibs" = no && can_build_shared=no 9494 9495 with_gnu_ld=$with_gnu_ld 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 # 9512 # Do we need to explicitly link libc? 9513 # 9514 case "x$archive_cmds_need_lc" in 9515 x|xyes) 9516 # Assume -lc should be added 9517 archive_cmds_need_lc=yes 9518 9519 if test "$enable_shared" = yes && test "$GCC" = yes; then 9520 case $archive_cmds in 9521 *'~'*) 9522 # FIXME: we may have to deal with multi-command sequences. 9523 ;; 9524 '$CC '*) 9525 # Test whether the compiler implicitly links with -lc since on some 9526 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9527 # to ld, don't add -lc before -lgcc. 9528 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9529 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9530 $RM conftest* 9531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9532 9533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9534 (eval $ac_compile) 2>&5 9535 ac_status=$? 9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9537 (exit $ac_status); } 2>conftest.err; then 9538 soname=conftest 9539 lib=conftest 9540 libobjs=conftest.$ac_objext 9541 deplibs= 9542 wl=$lt_prog_compiler_wl 9543 pic_flag=$lt_prog_compiler_pic 9544 compiler_flags=-v 9545 linker_flags=-v 9546 verstring= 9547 output_objdir=. 9548 libname=conftest 9549 lt_save_allow_undefined_flag=$allow_undefined_flag 9550 allow_undefined_flag= 9551 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9552 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9553 ac_status=$? 9554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9555 (exit $ac_status); } 9556 then 9557 archive_cmds_need_lc=no 9558 else 9559 archive_cmds_need_lc=yes 9560 fi 9561 allow_undefined_flag=$lt_save_allow_undefined_flag 9562 else 9563 cat conftest.err 1>&5 9564 fi 9565 $RM conftest* 9566 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9567 $as_echo "$archive_cmds_need_lc" >&6; } 9568 ;; 9569 esac 9570 fi 9571 ;; 9572 esac 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9731 $as_echo_n "checking dynamic linker characteristics... " >&6; } 9732 9733 if test "$GCC" = yes; then 9734 case $host_os in 9735 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9736 *) lt_awk_arg="/^libraries:/" ;; 9737 esac 9738 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9739 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9740 # if the path contains ";" then we assume it to be the separator 9741 # otherwise default to the standard path separator (i.e. ":") - it is 9742 # assumed that no part of a normal pathname contains ";" but that should 9743 # okay in the real world where ";" in dirpaths is itself problematic. 9744 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9745 else 9746 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9747 fi 9748 # Ok, now we have the path, separated by spaces, we can step through it 9749 # and add multilib dir if necessary. 9750 lt_tmp_lt_search_path_spec= 9751 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9752 for lt_sys_path in $lt_search_path_spec; do 9753 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9755 else 9756 test -d "$lt_sys_path" && \ 9757 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9758 fi 9759 done 9760 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9761 BEGIN {RS=" "; FS="/|\n";} { 9762 lt_foo=""; 9763 lt_count=0; 9764 for (lt_i = NF; lt_i > 0; lt_i--) { 9765 if ($lt_i != "" && $lt_i != ".") { 9766 if ($lt_i == "..") { 9767 lt_count++; 9768 } else { 9769 if (lt_count == 0) { 9770 lt_foo="/" $lt_i lt_foo; 9771 } else { 9772 lt_count--; 9773 } 9774 } 9775 } 9776 } 9777 if (lt_foo != "") { lt_freq[lt_foo]++; } 9778 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9779 }'` 9780 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9781 else 9782 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9783 fi 9784 library_names_spec= 9785 libname_spec='lib$name' 9786 soname_spec= 9787 shrext_cmds=".so" 9788 postinstall_cmds= 9789 postuninstall_cmds= 9790 finish_cmds= 9791 finish_eval= 9792 shlibpath_var= 9793 shlibpath_overrides_runpath=unknown 9794 version_type=none 9795 dynamic_linker="$host_os ld.so" 9796 sys_lib_dlsearch_path_spec="/lib /usr/lib" 9797 need_lib_prefix=unknown 9798 hardcode_into_libs=no 9799 9800 # when you set need_version to no, make sure it does not cause -set_version 9801 # flags to be left without arguments 9802 need_version=unknown 9803 9804 case $host_os in 9805 aix3*) 9806 version_type=linux 9807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9808 shlibpath_var=LIBPATH 9809 9810 # AIX 3 has no versioning support, so we append a major version to the name. 9811 soname_spec='${libname}${release}${shared_ext}$major' 9812 ;; 9813 9814 aix[4-9]*) 9815 version_type=linux 9816 need_lib_prefix=no 9817 need_version=no 9818 hardcode_into_libs=yes 9819 if test "$host_cpu" = ia64; then 9820 # AIX 5 supports IA64 9821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9822 shlibpath_var=LD_LIBRARY_PATH 9823 else 9824 # With GCC up to 2.95.x, collect2 would create an import file 9825 # for dependence libraries. The import file would start with 9826 # the line `#! .'. This would cause the generated library to 9827 # depend on `.', always an invalid library. This was fixed in 9828 # development snapshots of GCC prior to 3.0. 9829 case $host_os in 9830 aix4 | aix4.[01] | aix4.[01].*) 9831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9832 echo ' yes ' 9833 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9834 : 9835 else 9836 can_build_shared=no 9837 fi 9838 ;; 9839 esac 9840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9841 # soname into executable. Probably we can add versioning support to 9842 # collect2, so additional links can be useful in future. 9843 if test "$aix_use_runtimelinking" = yes; then 9844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9845 # instead of lib<name>.a to let people know that these are not 9846 # typical AIX shared libraries. 9847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9848 else 9849 # We preserve .a as extension for shared libraries through AIX4.2 9850 # and later when we are not doing run time linking. 9851 library_names_spec='${libname}${release}.a $libname.a' 9852 soname_spec='${libname}${release}${shared_ext}$major' 9853 fi 9854 shlibpath_var=LIBPATH 9855 fi 9856 ;; 9857 9858 amigaos*) 9859 case $host_cpu in 9860 powerpc) 9861 # Since July 2007 AmigaOS4 officially supports .so libraries. 9862 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9864 ;; 9865 m68k) 9866 library_names_spec='$libname.ixlibrary $libname.a' 9867 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9868 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' 9869 ;; 9870 esac 9871 ;; 9872 9873 beos*) 9874 library_names_spec='${libname}${shared_ext}' 9875 dynamic_linker="$host_os ld.so" 9876 shlibpath_var=LIBRARY_PATH 9877 ;; 9878 9879 bsdi[45]*) 9880 version_type=linux 9881 need_version=no 9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9883 soname_spec='${libname}${release}${shared_ext}$major' 9884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9885 shlibpath_var=LD_LIBRARY_PATH 9886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9888 # the default ld.so.conf also contains /usr/contrib/lib and 9889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9890 # libtool to hard-code these into programs 9891 ;; 9892 9893 cygwin* | mingw* | pw32* | cegcc*) 9894 version_type=windows 9895 shrext_cmds=".dll" 9896 need_version=no 9897 need_lib_prefix=no 9898 9899 case $GCC,$host_os in 9900 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9901 library_names_spec='$libname.dll.a' 9902 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9903 postinstall_cmds='base_file=`basename \${file}`~ 9904 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9905 dldir=$destdir/`dirname \$dlpath`~ 9906 test -d \$dldir || mkdir -p \$dldir~ 9907 $install_prog $dir/$dlname \$dldir/$dlname~ 9908 chmod a+x \$dldir/$dlname~ 9909 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9910 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9911 fi' 9912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9913 dlpath=$dir/\$dldll~ 9914 $RM \$dlpath' 9915 shlibpath_overrides_runpath=yes 9916 9917 case $host_os in 9918 cygwin*) 9919 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9921 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9922 ;; 9923 mingw* | cegcc*) 9924 # MinGW DLLs use traditional 'lib' prefix 9925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9926 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9927 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9928 # It is most probably a Windows format PATH printed by 9929 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9930 # path with ; separators, and with drive letters. We can handle the 9931 # drive letters (cygwin fileutils understands them), so leave them, 9932 # especially as we might pass files found there to a mingw objdump, 9933 # which wouldn't understand a cygwinified path. Ahh. 9934 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9935 else 9936 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9937 fi 9938 ;; 9939 pw32*) 9940 # pw32 DLLs use 'pw' prefix rather than 'lib' 9941 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9942 ;; 9943 esac 9944 ;; 9945 9946 *) 9947 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9948 ;; 9949 esac 9950 dynamic_linker='Win32 ld.exe' 9951 # FIXME: first we should search . and the directory the executable is in 9952 shlibpath_var=PATH 9953 ;; 9954 9955 darwin* | rhapsody*) 9956 dynamic_linker="$host_os dyld" 9957 version_type=darwin 9958 need_lib_prefix=no 9959 need_version=no 9960 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9961 soname_spec='${libname}${release}${major}$shared_ext' 9962 shlibpath_overrides_runpath=yes 9963 shlibpath_var=DYLD_LIBRARY_PATH 9964 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9965 9966 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9967 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9968 ;; 9969 9970 dgux*) 9971 version_type=linux 9972 need_lib_prefix=no 9973 need_version=no 9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9975 soname_spec='${libname}${release}${shared_ext}$major' 9976 shlibpath_var=LD_LIBRARY_PATH 9977 ;; 9978 9979 freebsd1*) 9980 dynamic_linker=no 9981 ;; 9982 9983 freebsd* | dragonfly*) 9984 # DragonFly does not have aout. When/if they implement a new 9985 # versioning mechanism, adjust this. 9986 if test -x /usr/bin/objformat; then 9987 objformat=`/usr/bin/objformat` 9988 else 9989 case $host_os in 9990 freebsd[123]*) objformat=aout ;; 9991 *) objformat=elf ;; 9992 esac 9993 fi 9994 version_type=freebsd-$objformat 9995 case $version_type in 9996 freebsd-elf*) 9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9998 need_version=no 9999 need_lib_prefix=no 10000 ;; 10001 freebsd-*) 10002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10003 need_version=yes 10004 ;; 10005 esac 10006 shlibpath_var=LD_LIBRARY_PATH 10007 case $host_os in 10008 freebsd2*) 10009 shlibpath_overrides_runpath=yes 10010 ;; 10011 freebsd3.[01]* | freebsdelf3.[01]*) 10012 shlibpath_overrides_runpath=yes 10013 hardcode_into_libs=yes 10014 ;; 10015 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10016 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10017 shlibpath_overrides_runpath=no 10018 hardcode_into_libs=yes 10019 ;; 10020 *) # from 4.6 on, and DragonFly 10021 shlibpath_overrides_runpath=yes 10022 hardcode_into_libs=yes 10023 ;; 10024 esac 10025 ;; 10026 10027 gnu*) 10028 version_type=linux 10029 need_lib_prefix=no 10030 need_version=no 10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10032 soname_spec='${libname}${release}${shared_ext}$major' 10033 shlibpath_var=LD_LIBRARY_PATH 10034 hardcode_into_libs=yes 10035 ;; 10036 10037 hpux9* | hpux10* | hpux11*) 10038 # Give a soname corresponding to the major version so that dld.sl refuses to 10039 # link against other versions. 10040 version_type=sunos 10041 need_lib_prefix=no 10042 need_version=no 10043 case $host_cpu in 10044 ia64*) 10045 shrext_cmds='.so' 10046 hardcode_into_libs=yes 10047 dynamic_linker="$host_os dld.so" 10048 shlibpath_var=LD_LIBRARY_PATH 10049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10051 soname_spec='${libname}${release}${shared_ext}$major' 10052 if test "X$HPUX_IA64_MODE" = X32; then 10053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10054 else 10055 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10056 fi 10057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10058 ;; 10059 hppa*64*) 10060 shrext_cmds='.sl' 10061 hardcode_into_libs=yes 10062 dynamic_linker="$host_os dld.sl" 10063 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10066 soname_spec='${libname}${release}${shared_ext}$major' 10067 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10069 ;; 10070 *) 10071 shrext_cmds='.sl' 10072 dynamic_linker="$host_os dld.sl" 10073 shlibpath_var=SHLIB_PATH 10074 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10076 soname_spec='${libname}${release}${shared_ext}$major' 10077 ;; 10078 esac 10079 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10080 postinstall_cmds='chmod 555 $lib' 10081 ;; 10082 10083 interix[3-9]*) 10084 version_type=linux 10085 need_lib_prefix=no 10086 need_version=no 10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10088 soname_spec='${libname}${release}${shared_ext}$major' 10089 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10090 shlibpath_var=LD_LIBRARY_PATH 10091 shlibpath_overrides_runpath=no 10092 hardcode_into_libs=yes 10093 ;; 10094 10095 irix5* | irix6* | nonstopux*) 10096 case $host_os in 10097 nonstopux*) version_type=nonstopux ;; 10098 *) 10099 if test "$lt_cv_prog_gnu_ld" = yes; then 10100 version_type=linux 10101 else 10102 version_type=irix 10103 fi ;; 10104 esac 10105 need_lib_prefix=no 10106 need_version=no 10107 soname_spec='${libname}${release}${shared_ext}$major' 10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10109 case $host_os in 10110 irix5* | nonstopux*) 10111 libsuff= shlibsuff= 10112 ;; 10113 *) 10114 case $LD in # libtool.m4 will add one of these switches to LD 10115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10116 libsuff= shlibsuff= libmagic=32-bit;; 10117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10118 libsuff=32 shlibsuff=N32 libmagic=N32;; 10119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10120 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10121 *) libsuff= shlibsuff= libmagic=never-match;; 10122 esac 10123 ;; 10124 esac 10125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10126 shlibpath_overrides_runpath=no 10127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10129 hardcode_into_libs=yes 10130 ;; 10131 10132 # No shared lib support for Linux oldld, aout, or coff. 10133 linux*oldld* | linux*aout* | linux*coff*) 10134 dynamic_linker=no 10135 ;; 10136 10137 # This must be Linux ELF. 10138 linux* | k*bsd*-gnu) 10139 version_type=linux 10140 need_lib_prefix=no 10141 need_version=no 10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10143 soname_spec='${libname}${release}${shared_ext}$major' 10144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10145 shlibpath_var=LD_LIBRARY_PATH 10146 shlibpath_overrides_runpath=no 10147 # Some binutils ld are patched to set DT_RUNPATH 10148 save_LDFLAGS=$LDFLAGS 10149 save_libdir=$libdir 10150 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10151 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10152 cat >conftest.$ac_ext <<_ACEOF 10153 /* confdefs.h. */ 10154 _ACEOF 10155 cat confdefs.h >>conftest.$ac_ext 10156 cat >>conftest.$ac_ext <<_ACEOF 10157 /* end confdefs.h. */ 10158 10159 int 10160 main () 10161 { 10162 10163 ; 10164 return 0; 10165 } 10166 _ACEOF 10167 rm -f conftest.$ac_objext conftest$ac_exeext 10168 if { (ac_try="$ac_link" 10169 case "(($ac_try" in 10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10171 *) ac_try_echo=$ac_try;; 10172 esac 10173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10174 $as_echo "$ac_try_echo") >&5 10175 (eval "$ac_link") 2>conftest.er1 10176 ac_status=$? 10177 grep -v '^ *+' conftest.er1 >conftest.err 10178 rm -f conftest.er1 10179 cat conftest.err >&5 10180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10181 (exit $ac_status); } && { 10182 test -z "$ac_c_werror_flag" || 10183 test ! -s conftest.err 10184 } && test -s conftest$ac_exeext && { 10185 test "$cross_compiling" = yes || 10186 $as_test_x conftest$ac_exeext 10187 }; then 10188 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10189 shlibpath_overrides_runpath=yes 10190 fi 10191 10192 else 10193 $as_echo "$as_me: failed program was:" >&5 10194 sed 's/^/| /' conftest.$ac_ext >&5 10195 10196 10197 fi 10198 10199 rm -rf conftest.dSYM 10200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10201 conftest$ac_exeext conftest.$ac_ext 10202 LDFLAGS=$save_LDFLAGS 10203 libdir=$save_libdir 10204 10205 # This implies no fast_install, which is unacceptable. 10206 # Some rework will be needed to allow for fast_install 10207 # before this can be enabled. 10208 hardcode_into_libs=yes 10209 10210 # Add ABI-specific directories to the system library path. 10211 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10212 10213 # Append ld.so.conf contents to the search path 10214 if test -f /etc/ld.so.conf; then 10215 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' ' '` 10216 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10217 fi 10218 10219 # We used to test for /lib/ld.so.1 and disable shared libraries on 10220 # powerpc, because MkLinux only supported shared libraries with the 10221 # GNU dynamic linker. Since this was broken with cross compilers, 10222 # most powerpc-linux boxes support dynamic linking these days and 10223 # people can always --disable-shared, the test was removed, and we 10224 # assume the GNU/Linux dynamic linker is in use. 10225 dynamic_linker='GNU/Linux ld.so' 10226 ;; 10227 10228 netbsd*) 10229 version_type=sunos 10230 need_lib_prefix=no 10231 need_version=no 10232 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10235 dynamic_linker='NetBSD (a.out) ld.so' 10236 else 10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10238 soname_spec='${libname}${release}${shared_ext}$major' 10239 dynamic_linker='NetBSD ld.elf_so' 10240 fi 10241 shlibpath_var=LD_LIBRARY_PATH 10242 shlibpath_overrides_runpath=yes 10243 hardcode_into_libs=yes 10244 ;; 10245 10246 newsos6) 10247 version_type=linux 10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10249 shlibpath_var=LD_LIBRARY_PATH 10250 shlibpath_overrides_runpath=yes 10251 ;; 10252 10253 *nto* | *qnx*) 10254 version_type=qnx 10255 need_lib_prefix=no 10256 need_version=no 10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10258 soname_spec='${libname}${release}${shared_ext}$major' 10259 shlibpath_var=LD_LIBRARY_PATH 10260 shlibpath_overrides_runpath=no 10261 hardcode_into_libs=yes 10262 dynamic_linker='ldqnx.so' 10263 ;; 10264 10265 openbsd*) 10266 version_type=sunos 10267 sys_lib_dlsearch_path_spec="/usr/lib" 10268 need_lib_prefix=no 10269 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10270 case $host_os in 10271 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10272 *) need_version=no ;; 10273 esac 10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10276 shlibpath_var=LD_LIBRARY_PATH 10277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10278 case $host_os in 10279 openbsd2.[89] | openbsd2.[89].*) 10280 shlibpath_overrides_runpath=no 10281 ;; 10282 *) 10283 shlibpath_overrides_runpath=yes 10284 ;; 10285 esac 10286 else 10287 shlibpath_overrides_runpath=yes 10288 fi 10289 ;; 10290 10291 os2*) 10292 libname_spec='$name' 10293 shrext_cmds=".dll" 10294 need_lib_prefix=no 10295 library_names_spec='$libname${shared_ext} $libname.a' 10296 dynamic_linker='OS/2 ld.exe' 10297 shlibpath_var=LIBPATH 10298 ;; 10299 10300 osf3* | osf4* | osf5*) 10301 version_type=osf 10302 need_lib_prefix=no 10303 need_version=no 10304 soname_spec='${libname}${release}${shared_ext}$major' 10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10306 shlibpath_var=LD_LIBRARY_PATH 10307 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10308 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10309 ;; 10310 10311 rdos*) 10312 dynamic_linker=no 10313 ;; 10314 10315 solaris*) 10316 version_type=linux 10317 need_lib_prefix=no 10318 need_version=no 10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10320 soname_spec='${libname}${release}${shared_ext}$major' 10321 shlibpath_var=LD_LIBRARY_PATH 10322 shlibpath_overrides_runpath=yes 10323 hardcode_into_libs=yes 10324 # ldd complains unless libraries are executable 10325 postinstall_cmds='chmod +x $lib' 10326 ;; 10327 10328 sunos4*) 10329 version_type=sunos 10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10331 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10332 shlibpath_var=LD_LIBRARY_PATH 10333 shlibpath_overrides_runpath=yes 10334 if test "$with_gnu_ld" = yes; then 10335 need_lib_prefix=no 10336 fi 10337 need_version=yes 10338 ;; 10339 10340 sysv4 | sysv4.3*) 10341 version_type=linux 10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10343 soname_spec='${libname}${release}${shared_ext}$major' 10344 shlibpath_var=LD_LIBRARY_PATH 10345 case $host_vendor in 10346 sni) 10347 shlibpath_overrides_runpath=no 10348 need_lib_prefix=no 10349 runpath_var=LD_RUN_PATH 10350 ;; 10351 siemens) 10352 need_lib_prefix=no 10353 ;; 10354 motorola) 10355 need_lib_prefix=no 10356 need_version=no 10357 shlibpath_overrides_runpath=no 10358 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10359 ;; 10360 esac 10361 ;; 10362 10363 sysv4*MP*) 10364 if test -d /usr/nec ;then 10365 version_type=linux 10366 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10367 soname_spec='$libname${shared_ext}.$major' 10368 shlibpath_var=LD_LIBRARY_PATH 10369 fi 10370 ;; 10371 10372 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10373 version_type=freebsd-elf 10374 need_lib_prefix=no 10375 need_version=no 10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10377 soname_spec='${libname}${release}${shared_ext}$major' 10378 shlibpath_var=LD_LIBRARY_PATH 10379 shlibpath_overrides_runpath=yes 10380 hardcode_into_libs=yes 10381 if test "$with_gnu_ld" = yes; then 10382 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10383 else 10384 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10385 case $host_os in 10386 sco3.2v5*) 10387 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10388 ;; 10389 esac 10390 fi 10391 sys_lib_dlsearch_path_spec='/usr/lib' 10392 ;; 10393 10394 tpf*) 10395 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10396 version_type=linux 10397 need_lib_prefix=no 10398 need_version=no 10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10400 shlibpath_var=LD_LIBRARY_PATH 10401 shlibpath_overrides_runpath=no 10402 hardcode_into_libs=yes 10403 ;; 10404 10405 uts4*) 10406 version_type=linux 10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10408 soname_spec='${libname}${release}${shared_ext}$major' 10409 shlibpath_var=LD_LIBRARY_PATH 10410 ;; 10411 10412 *) 10413 dynamic_linker=no 10414 ;; 10415 esac 10416 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10417 $as_echo "$dynamic_linker" >&6; } 10418 test "$dynamic_linker" = no && can_build_shared=no 10419 10420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10421 if test "$GCC" = yes; then 10422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10423 fi 10424 10425 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10426 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10427 fi 10428 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10429 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10430 fi 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10519 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10520 hardcode_action= 10521 if test -n "$hardcode_libdir_flag_spec" || 10522 test -n "$runpath_var" || 10523 test "X$hardcode_automatic" = "Xyes" ; then 10524 10525 # We can hardcode non-existent directories. 10526 if test "$hardcode_direct" != no && 10527 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10528 # have to relink, otherwise we might link with an installed library 10529 # when we should be linking with a yet-to-be-installed one 10530 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10531 test "$hardcode_minus_L" != no; then 10532 # Linking always hardcodes the temporary library directory. 10533 hardcode_action=relink 10534 else 10535 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10536 hardcode_action=immediate 10537 fi 10538 else 10539 # We cannot hardcode anything, or else we can only hardcode existing 10540 # directories. 10541 hardcode_action=unsupported 10542 fi 10543 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10544 $as_echo "$hardcode_action" >&6; } 10545 10546 if test "$hardcode_action" = relink || 10547 test "$inherit_rpath" = yes; then 10548 # Fast installation is not supported 10549 enable_fast_install=no 10550 elif test "$shlibpath_overrides_runpath" = yes || 10551 test "$enable_shared" = no; then 10552 # Fast installation is not necessary 10553 enable_fast_install=needless 10554 fi 10555 10556 10557 10558 10559 10560 10561 if test "x$enable_dlopen" != xyes; then 10562 enable_dlopen=unknown 10563 enable_dlopen_self=unknown 10564 enable_dlopen_self_static=unknown 10565 else 10566 lt_cv_dlopen=no 10567 lt_cv_dlopen_libs= 10568 10569 case $host_os in 10570 beos*) 10571 lt_cv_dlopen="load_add_on" 10572 lt_cv_dlopen_libs= 10573 lt_cv_dlopen_self=yes 10574 ;; 10575 10576 mingw* | pw32* | cegcc*) 10577 lt_cv_dlopen="LoadLibrary" 10578 lt_cv_dlopen_libs= 10579 ;; 10580 10581 cygwin*) 10582 lt_cv_dlopen="dlopen" 10583 lt_cv_dlopen_libs= 10584 ;; 10585 10586 darwin*) 10587 # if libdl is installed we need to link against it 10588 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10589 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10590 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10591 $as_echo_n "(cached) " >&6 10592 else 10593 ac_check_lib_save_LIBS=$LIBS 10594 LIBS="-ldl $LIBS" 10595 cat >conftest.$ac_ext <<_ACEOF 10596 /* confdefs.h. */ 10597 _ACEOF 10598 cat confdefs.h >>conftest.$ac_ext 10599 cat >>conftest.$ac_ext <<_ACEOF 10600 /* end confdefs.h. */ 10601 10602 /* Override any GCC internal prototype to avoid an error. 10603 Use char because int might match the return type of a GCC 10604 builtin and then its argument prototype would still apply. */ 10605 #ifdef __cplusplus 10606 extern "C" 10607 #endif 10608 char dlopen (); 10609 int 10610 main () 10611 { 10612 return dlopen (); 10613 ; 10614 return 0; 10615 } 10616 _ACEOF 10617 rm -f conftest.$ac_objext conftest$ac_exeext 10618 if { (ac_try="$ac_link" 10619 case "(($ac_try" in 10620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10621 *) ac_try_echo=$ac_try;; 10622 esac 10623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10624 $as_echo "$ac_try_echo") >&5 10625 (eval "$ac_link") 2>conftest.er1 10626 ac_status=$? 10627 grep -v '^ *+' conftest.er1 >conftest.err 10628 rm -f conftest.er1 10629 cat conftest.err >&5 10630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10631 (exit $ac_status); } && { 10632 test -z "$ac_c_werror_flag" || 10633 test ! -s conftest.err 10634 } && test -s conftest$ac_exeext && { 10635 test "$cross_compiling" = yes || 10636 $as_test_x conftest$ac_exeext 10637 }; then 10638 ac_cv_lib_dl_dlopen=yes 10639 else 10640 $as_echo "$as_me: failed program was:" >&5 10641 sed 's/^/| /' conftest.$ac_ext >&5 10642 10643 ac_cv_lib_dl_dlopen=no 10644 fi 10645 10646 rm -rf conftest.dSYM 10647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10648 conftest$ac_exeext conftest.$ac_ext 10649 LIBS=$ac_check_lib_save_LIBS 10650 fi 10651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10652 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10653 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10655 else 10656 10657 lt_cv_dlopen="dyld" 10658 lt_cv_dlopen_libs= 10659 lt_cv_dlopen_self=yes 10660 10661 fi 10662 10663 ;; 10664 10665 *) 10666 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10667 $as_echo_n "checking for shl_load... " >&6; } 10668 if test "${ac_cv_func_shl_load+set}" = set; then 10669 $as_echo_n "(cached) " >&6 10670 else 10671 cat >conftest.$ac_ext <<_ACEOF 10672 /* confdefs.h. */ 10673 _ACEOF 10674 cat confdefs.h >>conftest.$ac_ext 10675 cat >>conftest.$ac_ext <<_ACEOF 10676 /* end confdefs.h. */ 10677 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10678 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10679 #define shl_load innocuous_shl_load 10680 10681 /* System header to define __stub macros and hopefully few prototypes, 10682 which can conflict with char shl_load (); below. 10683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10684 <limits.h> exists even on freestanding compilers. */ 10685 10686 #ifdef __STDC__ 10687 # include <limits.h> 10688 #else 10689 # include <assert.h> 10690 #endif 10691 10692 #undef shl_load 10693 10694 /* Override any GCC internal prototype to avoid an error. 10695 Use char because int might match the return type of a GCC 10696 builtin and then its argument prototype would still apply. */ 10697 #ifdef __cplusplus 10698 extern "C" 10699 #endif 10700 char shl_load (); 10701 /* The GNU C library defines this for functions which it implements 10702 to always fail with ENOSYS. Some functions are actually named 10703 something starting with __ and the normal name is an alias. */ 10704 #if defined __stub_shl_load || defined __stub___shl_load 10705 choke me 10706 #endif 10707 10708 int 10709 main () 10710 { 10711 return shl_load (); 10712 ; 10713 return 0; 10714 } 10715 _ACEOF 10716 rm -f conftest.$ac_objext conftest$ac_exeext 10717 if { (ac_try="$ac_link" 10718 case "(($ac_try" in 10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10720 *) ac_try_echo=$ac_try;; 10721 esac 10722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10723 $as_echo "$ac_try_echo") >&5 10724 (eval "$ac_link") 2>conftest.er1 10725 ac_status=$? 10726 grep -v '^ *+' conftest.er1 >conftest.err 10727 rm -f conftest.er1 10728 cat conftest.err >&5 10729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10730 (exit $ac_status); } && { 10731 test -z "$ac_c_werror_flag" || 10732 test ! -s conftest.err 10733 } && test -s conftest$ac_exeext && { 10734 test "$cross_compiling" = yes || 10735 $as_test_x conftest$ac_exeext 10736 }; then 10737 ac_cv_func_shl_load=yes 10738 else 10739 $as_echo "$as_me: failed program was:" >&5 10740 sed 's/^/| /' conftest.$ac_ext >&5 10741 10742 ac_cv_func_shl_load=no 10743 fi 10744 10745 rm -rf conftest.dSYM 10746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10747 conftest$ac_exeext conftest.$ac_ext 10748 fi 10749 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10750 $as_echo "$ac_cv_func_shl_load" >&6; } 10751 if test "x$ac_cv_func_shl_load" = x""yes; then 10752 lt_cv_dlopen="shl_load" 10753 else 10754 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10755 $as_echo_n "checking for shl_load in -ldld... " >&6; } 10756 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10757 $as_echo_n "(cached) " >&6 10758 else 10759 ac_check_lib_save_LIBS=$LIBS 10760 LIBS="-ldld $LIBS" 10761 cat >conftest.$ac_ext <<_ACEOF 10762 /* confdefs.h. */ 10763 _ACEOF 10764 cat confdefs.h >>conftest.$ac_ext 10765 cat >>conftest.$ac_ext <<_ACEOF 10766 /* end confdefs.h. */ 10767 10768 /* Override any GCC internal prototype to avoid an error. 10769 Use char because int might match the return type of a GCC 10770 builtin and then its argument prototype would still apply. */ 10771 #ifdef __cplusplus 10772 extern "C" 10773 #endif 10774 char shl_load (); 10775 int 10776 main () 10777 { 10778 return shl_load (); 10779 ; 10780 return 0; 10781 } 10782 _ACEOF 10783 rm -f conftest.$ac_objext conftest$ac_exeext 10784 if { (ac_try="$ac_link" 10785 case "(($ac_try" in 10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10787 *) ac_try_echo=$ac_try;; 10788 esac 10789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10790 $as_echo "$ac_try_echo") >&5 10791 (eval "$ac_link") 2>conftest.er1 10792 ac_status=$? 10793 grep -v '^ *+' conftest.er1 >conftest.err 10794 rm -f conftest.er1 10795 cat conftest.err >&5 10796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10797 (exit $ac_status); } && { 10798 test -z "$ac_c_werror_flag" || 10799 test ! -s conftest.err 10800 } && test -s conftest$ac_exeext && { 10801 test "$cross_compiling" = yes || 10802 $as_test_x conftest$ac_exeext 10803 }; then 10804 ac_cv_lib_dld_shl_load=yes 10805 else 10806 $as_echo "$as_me: failed program was:" >&5 10807 sed 's/^/| /' conftest.$ac_ext >&5 10808 10809 ac_cv_lib_dld_shl_load=no 10810 fi 10811 10812 rm -rf conftest.dSYM 10813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10814 conftest$ac_exeext conftest.$ac_ext 10815 LIBS=$ac_check_lib_save_LIBS 10816 fi 10817 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10818 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10819 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10820 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10821 else 10822 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10823 $as_echo_n "checking for dlopen... " >&6; } 10824 if test "${ac_cv_func_dlopen+set}" = set; then 10825 $as_echo_n "(cached) " >&6 10826 else 10827 cat >conftest.$ac_ext <<_ACEOF 10828 /* confdefs.h. */ 10829 _ACEOF 10830 cat confdefs.h >>conftest.$ac_ext 10831 cat >>conftest.$ac_ext <<_ACEOF 10832 /* end confdefs.h. */ 10833 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10834 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10835 #define dlopen innocuous_dlopen 10836 10837 /* System header to define __stub macros and hopefully few prototypes, 10838 which can conflict with char dlopen (); below. 10839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10840 <limits.h> exists even on freestanding compilers. */ 10841 10842 #ifdef __STDC__ 10843 # include <limits.h> 10844 #else 10845 # include <assert.h> 10846 #endif 10847 10848 #undef dlopen 10849 10850 /* Override any GCC internal prototype to avoid an error. 10851 Use char because int might match the return type of a GCC 10852 builtin and then its argument prototype would still apply. */ 10853 #ifdef __cplusplus 10854 extern "C" 10855 #endif 10856 char dlopen (); 10857 /* The GNU C library defines this for functions which it implements 10858 to always fail with ENOSYS. Some functions are actually named 10859 something starting with __ and the normal name is an alias. */ 10860 #if defined __stub_dlopen || defined __stub___dlopen 10861 choke me 10862 #endif 10863 10864 int 10865 main () 10866 { 10867 return dlopen (); 10868 ; 10869 return 0; 10870 } 10871 _ACEOF 10872 rm -f conftest.$ac_objext conftest$ac_exeext 10873 if { (ac_try="$ac_link" 10874 case "(($ac_try" in 10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10876 *) ac_try_echo=$ac_try;; 10877 esac 10878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10879 $as_echo "$ac_try_echo") >&5 10880 (eval "$ac_link") 2>conftest.er1 10881 ac_status=$? 10882 grep -v '^ *+' conftest.er1 >conftest.err 10883 rm -f conftest.er1 10884 cat conftest.err >&5 10885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10886 (exit $ac_status); } && { 10887 test -z "$ac_c_werror_flag" || 10888 test ! -s conftest.err 10889 } && test -s conftest$ac_exeext && { 10890 test "$cross_compiling" = yes || 10891 $as_test_x conftest$ac_exeext 10892 }; then 10893 ac_cv_func_dlopen=yes 10894 else 10895 $as_echo "$as_me: failed program was:" >&5 10896 sed 's/^/| /' conftest.$ac_ext >&5 10897 10898 ac_cv_func_dlopen=no 10899 fi 10900 10901 rm -rf conftest.dSYM 10902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10903 conftest$ac_exeext conftest.$ac_ext 10904 fi 10905 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10906 $as_echo "$ac_cv_func_dlopen" >&6; } 10907 if test "x$ac_cv_func_dlopen" = x""yes; then 10908 lt_cv_dlopen="dlopen" 10909 else 10910 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10911 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10912 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10913 $as_echo_n "(cached) " >&6 10914 else 10915 ac_check_lib_save_LIBS=$LIBS 10916 LIBS="-ldl $LIBS" 10917 cat >conftest.$ac_ext <<_ACEOF 10918 /* confdefs.h. */ 10919 _ACEOF 10920 cat confdefs.h >>conftest.$ac_ext 10921 cat >>conftest.$ac_ext <<_ACEOF 10922 /* end confdefs.h. */ 10923 10924 /* Override any GCC internal prototype to avoid an error. 10925 Use char because int might match the return type of a GCC 10926 builtin and then its argument prototype would still apply. */ 10927 #ifdef __cplusplus 10928 extern "C" 10929 #endif 10930 char dlopen (); 10931 int 10932 main () 10933 { 10934 return dlopen (); 10935 ; 10936 return 0; 10937 } 10938 _ACEOF 10939 rm -f conftest.$ac_objext conftest$ac_exeext 10940 if { (ac_try="$ac_link" 10941 case "(($ac_try" in 10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10943 *) ac_try_echo=$ac_try;; 10944 esac 10945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10946 $as_echo "$ac_try_echo") >&5 10947 (eval "$ac_link") 2>conftest.er1 10948 ac_status=$? 10949 grep -v '^ *+' conftest.er1 >conftest.err 10950 rm -f conftest.er1 10951 cat conftest.err >&5 10952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10953 (exit $ac_status); } && { 10954 test -z "$ac_c_werror_flag" || 10955 test ! -s conftest.err 10956 } && test -s conftest$ac_exeext && { 10957 test "$cross_compiling" = yes || 10958 $as_test_x conftest$ac_exeext 10959 }; then 10960 ac_cv_lib_dl_dlopen=yes 10961 else 10962 $as_echo "$as_me: failed program was:" >&5 10963 sed 's/^/| /' conftest.$ac_ext >&5 10964 10965 ac_cv_lib_dl_dlopen=no 10966 fi 10967 10968 rm -rf conftest.dSYM 10969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10970 conftest$ac_exeext conftest.$ac_ext 10971 LIBS=$ac_check_lib_save_LIBS 10972 fi 10973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10975 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10977 else 10978 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10979 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 10980 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10981 $as_echo_n "(cached) " >&6 10982 else 10983 ac_check_lib_save_LIBS=$LIBS 10984 LIBS="-lsvld $LIBS" 10985 cat >conftest.$ac_ext <<_ACEOF 10986 /* confdefs.h. */ 10987 _ACEOF 10988 cat confdefs.h >>conftest.$ac_ext 10989 cat >>conftest.$ac_ext <<_ACEOF 10990 /* end confdefs.h. */ 10991 10992 /* Override any GCC internal prototype to avoid an error. 10993 Use char because int might match the return type of a GCC 10994 builtin and then its argument prototype would still apply. */ 10995 #ifdef __cplusplus 10996 extern "C" 10997 #endif 10998 char dlopen (); 10999 int 11000 main () 11001 { 11002 return dlopen (); 11003 ; 11004 return 0; 11005 } 11006 _ACEOF 11007 rm -f conftest.$ac_objext conftest$ac_exeext 11008 if { (ac_try="$ac_link" 11009 case "(($ac_try" in 11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11011 *) ac_try_echo=$ac_try;; 11012 esac 11013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11014 $as_echo "$ac_try_echo") >&5 11015 (eval "$ac_link") 2>conftest.er1 11016 ac_status=$? 11017 grep -v '^ *+' conftest.er1 >conftest.err 11018 rm -f conftest.er1 11019 cat conftest.err >&5 11020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11021 (exit $ac_status); } && { 11022 test -z "$ac_c_werror_flag" || 11023 test ! -s conftest.err 11024 } && test -s conftest$ac_exeext && { 11025 test "$cross_compiling" = yes || 11026 $as_test_x conftest$ac_exeext 11027 }; then 11028 ac_cv_lib_svld_dlopen=yes 11029 else 11030 $as_echo "$as_me: failed program was:" >&5 11031 sed 's/^/| /' conftest.$ac_ext >&5 11032 11033 ac_cv_lib_svld_dlopen=no 11034 fi 11035 11036 rm -rf conftest.dSYM 11037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11038 conftest$ac_exeext conftest.$ac_ext 11039 LIBS=$ac_check_lib_save_LIBS 11040 fi 11041 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11042 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11043 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11045 else 11046 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11047 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11048 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11049 $as_echo_n "(cached) " >&6 11050 else 11051 ac_check_lib_save_LIBS=$LIBS 11052 LIBS="-ldld $LIBS" 11053 cat >conftest.$ac_ext <<_ACEOF 11054 /* confdefs.h. */ 11055 _ACEOF 11056 cat confdefs.h >>conftest.$ac_ext 11057 cat >>conftest.$ac_ext <<_ACEOF 11058 /* end confdefs.h. */ 11059 11060 /* Override any GCC internal prototype to avoid an error. 11061 Use char because int might match the return type of a GCC 11062 builtin and then its argument prototype would still apply. */ 11063 #ifdef __cplusplus 11064 extern "C" 11065 #endif 11066 char dld_link (); 11067 int 11068 main () 11069 { 11070 return dld_link (); 11071 ; 11072 return 0; 11073 } 11074 _ACEOF 11075 rm -f conftest.$ac_objext conftest$ac_exeext 11076 if { (ac_try="$ac_link" 11077 case "(($ac_try" in 11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11079 *) ac_try_echo=$ac_try;; 11080 esac 11081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11082 $as_echo "$ac_try_echo") >&5 11083 (eval "$ac_link") 2>conftest.er1 11084 ac_status=$? 11085 grep -v '^ *+' conftest.er1 >conftest.err 11086 rm -f conftest.er1 11087 cat conftest.err >&5 11088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11089 (exit $ac_status); } && { 11090 test -z "$ac_c_werror_flag" || 11091 test ! -s conftest.err 11092 } && test -s conftest$ac_exeext && { 11093 test "$cross_compiling" = yes || 11094 $as_test_x conftest$ac_exeext 11095 }; then 11096 ac_cv_lib_dld_dld_link=yes 11097 else 11098 $as_echo "$as_me: failed program was:" >&5 11099 sed 's/^/| /' conftest.$ac_ext >&5 11100 11101 ac_cv_lib_dld_dld_link=no 11102 fi 11103 11104 rm -rf conftest.dSYM 11105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11106 conftest$ac_exeext conftest.$ac_ext 11107 LIBS=$ac_check_lib_save_LIBS 11108 fi 11109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11110 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11111 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11112 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11113 fi 11114 11115 11116 fi 11117 11118 11119 fi 11120 11121 11122 fi 11123 11124 11125 fi 11126 11127 11128 fi 11129 11130 ;; 11131 esac 11132 11133 if test "x$lt_cv_dlopen" != xno; then 11134 enable_dlopen=yes 11135 else 11136 enable_dlopen=no 11137 fi 11138 11139 case $lt_cv_dlopen in 11140 dlopen) 11141 save_CPPFLAGS="$CPPFLAGS" 11142 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11143 11144 save_LDFLAGS="$LDFLAGS" 11145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11146 11147 save_LIBS="$LIBS" 11148 LIBS="$lt_cv_dlopen_libs $LIBS" 11149 11150 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11151 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11152 if test "${lt_cv_dlopen_self+set}" = set; then 11153 $as_echo_n "(cached) " >&6 11154 else 11155 if test "$cross_compiling" = yes; then : 11156 lt_cv_dlopen_self=cross 11157 else 11158 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11159 lt_status=$lt_dlunknown 11160 cat > conftest.$ac_ext <<_LT_EOF 11161 #line 11161 "configure" 11162 #include "confdefs.h" 11163 11164 #if HAVE_DLFCN_H 11165 #include <dlfcn.h> 11166 #endif 11167 11168 #include <stdio.h> 11169 11170 #ifdef RTLD_GLOBAL 11171 # define LT_DLGLOBAL RTLD_GLOBAL 11172 #else 11173 # ifdef DL_GLOBAL 11174 # define LT_DLGLOBAL DL_GLOBAL 11175 # else 11176 # define LT_DLGLOBAL 0 11177 # endif 11178 #endif 11179 11180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11181 find out it does not work in some platform. */ 11182 #ifndef LT_DLLAZY_OR_NOW 11183 # ifdef RTLD_LAZY 11184 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11185 # else 11186 # ifdef DL_LAZY 11187 # define LT_DLLAZY_OR_NOW DL_LAZY 11188 # else 11189 # ifdef RTLD_NOW 11190 # define LT_DLLAZY_OR_NOW RTLD_NOW 11191 # else 11192 # ifdef DL_NOW 11193 # define LT_DLLAZY_OR_NOW DL_NOW 11194 # else 11195 # define LT_DLLAZY_OR_NOW 0 11196 # endif 11197 # endif 11198 # endif 11199 # endif 11200 #endif 11201 11202 void fnord() { int i=42;} 11203 int main () 11204 { 11205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11206 int status = $lt_dlunknown; 11207 11208 if (self) 11209 { 11210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11211 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11212 /* dlclose (self); */ 11213 } 11214 else 11215 puts (dlerror ()); 11216 11217 return status; 11218 } 11219 _LT_EOF 11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11221 (eval $ac_link) 2>&5 11222 ac_status=$? 11223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11224 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11225 (./conftest; exit; ) >&5 2>/dev/null 11226 lt_status=$? 11227 case x$lt_status in 11228 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11229 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11230 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11231 esac 11232 else : 11233 # compilation failed 11234 lt_cv_dlopen_self=no 11235 fi 11236 fi 11237 rm -fr conftest* 11238 11239 11240 fi 11241 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11242 $as_echo "$lt_cv_dlopen_self" >&6; } 11243 11244 if test "x$lt_cv_dlopen_self" = xyes; then 11245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11246 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11247 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11248 if test "${lt_cv_dlopen_self_static+set}" = set; then 11249 $as_echo_n "(cached) " >&6 11250 else 11251 if test "$cross_compiling" = yes; then : 11252 lt_cv_dlopen_self_static=cross 11253 else 11254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11255 lt_status=$lt_dlunknown 11256 cat > conftest.$ac_ext <<_LT_EOF 11257 #line 11257 "configure" 11258 #include "confdefs.h" 11259 11260 #if HAVE_DLFCN_H 11261 #include <dlfcn.h> 11262 #endif 11263 11264 #include <stdio.h> 11265 11266 #ifdef RTLD_GLOBAL 11267 # define LT_DLGLOBAL RTLD_GLOBAL 11268 #else 11269 # ifdef DL_GLOBAL 11270 # define LT_DLGLOBAL DL_GLOBAL 11271 # else 11272 # define LT_DLGLOBAL 0 11273 # endif 11274 #endif 11275 11276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11277 find out it does not work in some platform. */ 11278 #ifndef LT_DLLAZY_OR_NOW 11279 # ifdef RTLD_LAZY 11280 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11281 # else 11282 # ifdef DL_LAZY 11283 # define LT_DLLAZY_OR_NOW DL_LAZY 11284 # else 11285 # ifdef RTLD_NOW 11286 # define LT_DLLAZY_OR_NOW RTLD_NOW 11287 # else 11288 # ifdef DL_NOW 11289 # define LT_DLLAZY_OR_NOW DL_NOW 11290 # else 11291 # define LT_DLLAZY_OR_NOW 0 11292 # endif 11293 # endif 11294 # endif 11295 # endif 11296 #endif 11297 11298 void fnord() { int i=42;} 11299 int main () 11300 { 11301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11302 int status = $lt_dlunknown; 11303 11304 if (self) 11305 { 11306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11307 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11308 /* dlclose (self); */ 11309 } 11310 else 11311 puts (dlerror ()); 11312 11313 return status; 11314 } 11315 _LT_EOF 11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11317 (eval $ac_link) 2>&5 11318 ac_status=$? 11319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11320 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11321 (./conftest; exit; ) >&5 2>/dev/null 11322 lt_status=$? 11323 case x$lt_status in 11324 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11325 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11326 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11327 esac 11328 else : 11329 # compilation failed 11330 lt_cv_dlopen_self_static=no 11331 fi 11332 fi 11333 rm -fr conftest* 11334 11335 11336 fi 11337 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11338 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11339 fi 11340 11341 CPPFLAGS="$save_CPPFLAGS" 11342 LDFLAGS="$save_LDFLAGS" 11343 LIBS="$save_LIBS" 11344 ;; 11345 esac 11346 11347 case $lt_cv_dlopen_self in 11348 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11349 *) enable_dlopen_self=unknown ;; 11350 esac 11351 11352 case $lt_cv_dlopen_self_static in 11353 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11354 *) enable_dlopen_self_static=unknown ;; 11355 esac 11356 fi 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 striplib= 11375 old_striplib= 11376 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11377 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11378 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11379 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11380 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11381 { $as_echo "$as_me:$LINENO: result: yes" >&5 11382 $as_echo "yes" >&6; } 11383 else 11384 # FIXME - insert some real tests, host_os isn't really good enough 11385 case $host_os in 11386 darwin*) 11387 if test -n "$STRIP" ; then 11388 striplib="$STRIP -x" 11389 old_striplib="$STRIP -S" 11390 { $as_echo "$as_me:$LINENO: result: yes" >&5 11391 $as_echo "yes" >&6; } 11392 else 11393 { $as_echo "$as_me:$LINENO: result: no" >&5 11394 $as_echo "no" >&6; } 11395 fi 11396 ;; 11397 *) 11398 { $as_echo "$as_me:$LINENO: result: no" >&5 11399 $as_echo "no" >&6; } 11400 ;; 11401 esac 11402 fi 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 # Report which library types will actually be built 11416 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11417 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11418 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11419 $as_echo "$can_build_shared" >&6; } 11420 11421 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11422 $as_echo_n "checking whether to build shared libraries... " >&6; } 11423 test "$can_build_shared" = "no" && enable_shared=no 11424 11425 # On AIX, shared libraries and static libraries use the same namespace, and 11426 # are all built from PIC. 11427 case $host_os in 11428 aix3*) 11429 test "$enable_shared" = yes && enable_static=no 11430 if test -n "$RANLIB"; then 11431 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11432 postinstall_cmds='$RANLIB $lib' 11433 fi 11434 ;; 11435 11436 aix[4-9]*) 11437 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11438 test "$enable_shared" = yes && enable_static=no 11439 fi 11440 ;; 11441 esac 11442 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11443 $as_echo "$enable_shared" >&6; } 11444 11445 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11446 $as_echo_n "checking whether to build static libraries... " >&6; } 11447 # Make sure either enable_shared or enable_static is yes. 11448 test "$enable_shared" = yes || enable_static=yes 11449 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11450 $as_echo "$enable_static" >&6; } 11451 11452 11453 11454 11455 fi 11456 ac_ext=c 11457 ac_cpp='$CPP $CPPFLAGS' 11458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11460 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11461 11462 CC="$lt_save_CC" 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 ac_config_commands="$ac_config_commands libtool" 11477 11478 11479 11480 11481 # Only expand once: 11482 11483 11484 11485 if test "X$prefix" = "XNONE"; then 11486 acl_final_prefix="$ac_default_prefix" 11487 else 11488 acl_final_prefix="$prefix" 11489 fi 11490 if test "X$exec_prefix" = "XNONE"; then 11491 acl_final_exec_prefix='${prefix}' 11492 else 11493 acl_final_exec_prefix="$exec_prefix" 11494 fi 11495 acl_save_prefix="$prefix" 11496 prefix="$acl_final_prefix" 11497 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 11498 prefix="$acl_save_prefix" 11499 11500 11501 # Check whether --with-gnu-ld was given. 11502 if test "${with_gnu_ld+set}" = set; then 11503 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11504 else 11505 with_gnu_ld=no 11506 fi 11507 11508 # Prepare PATH_SEPARATOR. 11509 # The user is always right. 11510 if test "${PATH_SEPARATOR+set}" != set; then 11511 echo "#! /bin/sh" >conf$$.sh 11512 echo "exit 0" >>conf$$.sh 11513 chmod +x conf$$.sh 11514 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11515 PATH_SEPARATOR=';' 11516 else 11517 PATH_SEPARATOR=: 11518 fi 11519 rm -f conf$$.sh 11520 fi 11521 ac_prog=ld 11522 if test "$GCC" = yes; then 11523 # Check if gcc -print-prog-name=ld gives a path. 11524 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 11525 $as_echo_n "checking for ld used by GCC... " >&6; } 11526 case $host in 11527 *-*-mingw*) 11528 # gcc leaves a trailing carriage return which upsets mingw 11529 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11530 *) 11531 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11532 esac 11533 case $ac_prog in 11534 # Accept absolute paths. 11535 [\\/]* | [A-Za-z]:[\\/]*) 11536 re_direlt='/[^/][^/]*/\.\./' 11537 # Canonicalize the path of ld 11538 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 11539 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11540 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 11541 done 11542 test -z "$LD" && LD="$ac_prog" 11543 ;; 11544 "") 11545 # If it fails, then pretend we aren't using GCC. 11546 ac_prog=ld 11547 ;; 11548 *) 11549 # If it is relative, then search for the first ld in PATH. 11550 with_gnu_ld=unknown 11551 ;; 11552 esac 11553 elif test "$with_gnu_ld" = yes; then 11554 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11555 $as_echo_n "checking for GNU ld... " >&6; } 11556 else 11557 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11558 $as_echo_n "checking for non-GNU ld... " >&6; } 11559 fi 11560 if test "${acl_cv_path_LD+set}" = set; then 11561 $as_echo_n "(cached) " >&6 11562 else 11563 if test -z "$LD"; then 11564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 11565 for ac_dir in $PATH; do 11566 test -z "$ac_dir" && ac_dir=. 11567 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11568 acl_cv_path_LD="$ac_dir/$ac_prog" 11569 # Check to see if the program is GNU ld. I'd rather use --version, 11570 # but apparently some GNU ld's only accept -v. 11571 # Break only if it was the GNU/non-GNU ld that we prefer. 11572 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 11573 *GNU* | *'with BFD'*) 11574 test "$with_gnu_ld" != no && break ;; 11575 *) 11576 test "$with_gnu_ld" != yes && break ;; 11577 esac 11578 fi 11579 done 11580 IFS="$ac_save_ifs" 11581 else 11582 acl_cv_path_LD="$LD" # Let the user override the test with a path. 11583 fi 11584 fi 11585 11586 LD="$acl_cv_path_LD" 11587 if test -n "$LD"; then 11588 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11589 $as_echo "$LD" >&6; } 11590 else 11591 { $as_echo "$as_me:$LINENO: result: no" >&5 11592 $as_echo "no" >&6; } 11593 fi 11594 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11595 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11596 { (exit 1); exit 1; }; } 11597 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11598 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11599 if test "${acl_cv_prog_gnu_ld+set}" = set; then 11600 $as_echo_n "(cached) " >&6 11601 else 11602 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 11603 case `$LD -v 2>&1 </dev/null` in 11604 *GNU* | *'with BFD'*) 11605 acl_cv_prog_gnu_ld=yes ;; 11606 *) 11607 acl_cv_prog_gnu_ld=no ;; 11608 esac 11609 fi 11610 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 11611 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 11612 with_gnu_ld=$acl_cv_prog_gnu_ld 11613 11614 11615 11616 11617 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 11618 $as_echo_n "checking for shared library run path origin... " >&6; } 11619 if test "${acl_cv_rpath+set}" = set; then 11620 $as_echo_n "(cached) " >&6 11621 else 11622 11623 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 11624 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 11625 . ./conftest.sh 11626 rm -f ./conftest.sh 11627 acl_cv_rpath=done 11628 11629 fi 11630 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 11631 $as_echo "$acl_cv_rpath" >&6; } 11632 wl="$acl_cv_wl" 11633 acl_libext="$acl_cv_libext" 11634 acl_shlibext="$acl_cv_shlibext" 11635 acl_libname_spec="$acl_cv_libname_spec" 11636 acl_library_names_spec="$acl_cv_library_names_spec" 11637 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 11638 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 11639 acl_hardcode_direct="$acl_cv_hardcode_direct" 11640 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 11641 # Check whether --enable-rpath was given. 11642 if test "${enable_rpath+set}" = set; then 11643 enableval=$enable_rpath; : 11644 else 11645 enable_rpath=yes 11646 fi 11647 11648 11649 11650 acl_libdirstem=lib 11651 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 11652 if test -n "$searchpath"; then 11653 acl_save_IFS="${IFS= }"; IFS=":" 11654 for searchdir in $searchpath; do 11655 if test -d "$searchdir"; then 11656 case "$searchdir" in 11657 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 11658 *) searchdir=`cd "$searchdir" && pwd` 11659 case "$searchdir" in 11660 */lib64 ) acl_libdirstem=lib64 ;; 11661 esac ;; 11662 esac 11663 fi 11664 done 11665 IFS="$acl_save_IFS" 11666 fi 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 use_additional=yes 11677 11678 acl_save_prefix="$prefix" 11679 prefix="$acl_final_prefix" 11680 acl_save_exec_prefix="$exec_prefix" 11681 exec_prefix="$acl_final_exec_prefix" 11682 11683 eval additional_includedir=\"$includedir\" 11684 eval additional_libdir=\"$libdir\" 11685 11686 exec_prefix="$acl_save_exec_prefix" 11687 prefix="$acl_save_prefix" 11688 11689 11690 # Check whether --with-libiconv-prefix was given. 11691 if test "${with_libiconv_prefix+set}" = set; then 11692 withval=$with_libiconv_prefix; 11693 if test "X$withval" = "Xno"; then 11694 use_additional=no 11695 else 11696 if test "X$withval" = "X"; then 11697 11698 acl_save_prefix="$prefix" 11699 prefix="$acl_final_prefix" 11700 acl_save_exec_prefix="$exec_prefix" 11701 exec_prefix="$acl_final_exec_prefix" 11702 11703 eval additional_includedir=\"$includedir\" 11704 eval additional_libdir=\"$libdir\" 11705 11706 exec_prefix="$acl_save_exec_prefix" 11707 prefix="$acl_save_prefix" 11708 11709 else 11710 additional_includedir="$withval/include" 11711 additional_libdir="$withval/$acl_libdirstem" 11712 fi 11713 fi 11714 11715 fi 11716 11717 LIBICONV= 11718 LTLIBICONV= 11719 INCICONV= 11720 LIBICONV_PREFIX= 11721 rpathdirs= 11722 ltrpathdirs= 11723 names_already_handled= 11724 names_next_round='iconv ' 11725 while test -n "$names_next_round"; do 11726 names_this_round="$names_next_round" 11727 names_next_round= 11728 for name in $names_this_round; do 11729 already_handled= 11730 for n in $names_already_handled; do 11731 if test "$n" = "$name"; then 11732 already_handled=yes 11733 break 11734 fi 11735 done 11736 if test -z "$already_handled"; then 11737 names_already_handled="$names_already_handled $name" 11738 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 11739 eval value=\"\$HAVE_LIB$uppername\" 11740 if test -n "$value"; then 11741 if test "$value" = yes; then 11742 eval value=\"\$LIB$uppername\" 11743 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 11744 eval value=\"\$LTLIB$uppername\" 11745 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 11746 else 11747 : 11748 fi 11749 else 11750 found_dir= 11751 found_la= 11752 found_so= 11753 found_a= 11754 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 11755 if test -n "$acl_shlibext"; then 11756 shrext=".$acl_shlibext" # typically: shrext=.so 11757 else 11758 shrext= 11759 fi 11760 if test $use_additional = yes; then 11761 dir="$additional_libdir" 11762 if test -n "$acl_shlibext"; then 11763 if test -f "$dir/$libname$shrext"; then 11764 found_dir="$dir" 11765 found_so="$dir/$libname$shrext" 11766 else 11767 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 11768 ver=`(cd "$dir" && \ 11769 for f in "$libname$shrext".*; do echo "$f"; done \ 11770 | sed -e "s,^$libname$shrext\\\\.,," \ 11771 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 11772 | sed 1q ) 2>/dev/null` 11773 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 11774 found_dir="$dir" 11775 found_so="$dir/$libname$shrext.$ver" 11776 fi 11777 else 11778 eval library_names=\"$acl_library_names_spec\" 11779 for f in $library_names; do 11780 if test -f "$dir/$f"; then 11781 found_dir="$dir" 11782 found_so="$dir/$f" 11783 break 11784 fi 11785 done 11786 fi 11787 fi 11788 fi 11789 if test "X$found_dir" = "X"; then 11790 if test -f "$dir/$libname.$acl_libext"; then 11791 found_dir="$dir" 11792 found_a="$dir/$libname.$acl_libext" 11793 fi 11794 fi 11795 if test "X$found_dir" != "X"; then 11796 if test -f "$dir/$libname.la"; then 11797 found_la="$dir/$libname.la" 11798 fi 11799 fi 11800 fi 11801 if test "X$found_dir" = "X"; then 11802 for x in $LDFLAGS $LTLIBICONV; do 11803 11804 acl_save_prefix="$prefix" 11805 prefix="$acl_final_prefix" 11806 acl_save_exec_prefix="$exec_prefix" 11807 exec_prefix="$acl_final_exec_prefix" 11808 eval x=\"$x\" 11809 exec_prefix="$acl_save_exec_prefix" 11810 prefix="$acl_save_prefix" 11811 11812 case "$x" in 11813 -L*) 11814 dir=`echo "X$x" | sed -e 's/^X-L//'` 11815 if test -n "$acl_shlibext"; then 11816 if test -f "$dir/$libname$shrext"; then 11817 found_dir="$dir" 11818 found_so="$dir/$libname$shrext" 11819 else 11820 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 11821 ver=`(cd "$dir" && \ 11822 for f in "$libname$shrext".*; do echo "$f"; done \ 11823 | sed -e "s,^$libname$shrext\\\\.,," \ 11824 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 11825 | sed 1q ) 2>/dev/null` 11826 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 11827 found_dir="$dir" 11828 found_so="$dir/$libname$shrext.$ver" 11829 fi 11830 else 11831 eval library_names=\"$acl_library_names_spec\" 11832 for f in $library_names; do 11833 if test -f "$dir/$f"; then 11834 found_dir="$dir" 11835 found_so="$dir/$f" 11836 break 11837 fi 11838 done 11839 fi 11840 fi 11841 fi 11842 if test "X$found_dir" = "X"; then 11843 if test -f "$dir/$libname.$acl_libext"; then 11844 found_dir="$dir" 11845 found_a="$dir/$libname.$acl_libext" 11846 fi 11847 fi 11848 if test "X$found_dir" != "X"; then 11849 if test -f "$dir/$libname.la"; then 11850 found_la="$dir/$libname.la" 11851 fi 11852 fi 11853 ;; 11854 esac 11855 if test "X$found_dir" != "X"; then 11856 break 11857 fi 11858 done 11859 fi 11860 if test "X$found_dir" != "X"; then 11861 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 11862 if test "X$found_so" != "X"; then 11863 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 11864 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11865 else 11866 haveit= 11867 for x in $ltrpathdirs; do 11868 if test "X$x" = "X$found_dir"; then 11869 haveit=yes 11870 break 11871 fi 11872 done 11873 if test -z "$haveit"; then 11874 ltrpathdirs="$ltrpathdirs $found_dir" 11875 fi 11876 if test "$acl_hardcode_direct" = yes; then 11877 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11878 else 11879 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 11880 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11881 haveit= 11882 for x in $rpathdirs; do 11883 if test "X$x" = "X$found_dir"; then 11884 haveit=yes 11885 break 11886 fi 11887 done 11888 if test -z "$haveit"; then 11889 rpathdirs="$rpathdirs $found_dir" 11890 fi 11891 else 11892 haveit= 11893 for x in $LDFLAGS $LIBICONV; do 11894 11895 acl_save_prefix="$prefix" 11896 prefix="$acl_final_prefix" 11897 acl_save_exec_prefix="$exec_prefix" 11898 exec_prefix="$acl_final_exec_prefix" 11899 eval x=\"$x\" 11900 exec_prefix="$acl_save_exec_prefix" 11901 prefix="$acl_save_prefix" 11902 11903 if test "X$x" = "X-L$found_dir"; then 11904 haveit=yes 11905 break 11906 fi 11907 done 11908 if test -z "$haveit"; then 11909 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 11910 fi 11911 if test "$acl_hardcode_minus_L" != no; then 11912 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11913 else 11914 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11915 fi 11916 fi 11917 fi 11918 fi 11919 else 11920 if test "X$found_a" != "X"; then 11921 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 11922 else 11923 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 11924 fi 11925 fi 11926 additional_includedir= 11927 case "$found_dir" in 11928 */$acl_libdirstem | */$acl_libdirstem/) 11929 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 11930 LIBICONV_PREFIX="$basedir" 11931 additional_includedir="$basedir/include" 11932 ;; 11933 esac 11934 if test "X$additional_includedir" != "X"; then 11935 if test "X$additional_includedir" != "X/usr/include"; then 11936 haveit= 11937 if test "X$additional_includedir" = "X/usr/local/include"; then 11938 if test -n "$GCC"; then 11939 case $host_os in 11940 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 11941 esac 11942 fi 11943 fi 11944 if test -z "$haveit"; then 11945 for x in $CPPFLAGS $INCICONV; do 11946 11947 acl_save_prefix="$prefix" 11948 prefix="$acl_final_prefix" 11949 acl_save_exec_prefix="$exec_prefix" 11950 exec_prefix="$acl_final_exec_prefix" 11951 eval x=\"$x\" 11952 exec_prefix="$acl_save_exec_prefix" 11953 prefix="$acl_save_prefix" 11954 11955 if test "X$x" = "X-I$additional_includedir"; then 11956 haveit=yes 11957 break 11958 fi 11959 done 11960 if test -z "$haveit"; then 11961 if test -d "$additional_includedir"; then 11962 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 11963 fi 11964 fi 11965 fi 11966 fi 11967 fi 11968 if test -n "$found_la"; then 11969 save_libdir="$libdir" 11970 case "$found_la" in 11971 */* | *\\*) . "$found_la" ;; 11972 *) . "./$found_la" ;; 11973 esac 11974 libdir="$save_libdir" 11975 for dep in $dependency_libs; do 11976 case "$dep" in 11977 -L*) 11978 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11979 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 11980 haveit= 11981 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 11982 if test -n "$GCC"; then 11983 case $host_os in 11984 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 11985 esac 11986 fi 11987 fi 11988 if test -z "$haveit"; then 11989 haveit= 11990 for x in $LDFLAGS $LIBICONV; do 11991 11992 acl_save_prefix="$prefix" 11993 prefix="$acl_final_prefix" 11994 acl_save_exec_prefix="$exec_prefix" 11995 exec_prefix="$acl_final_exec_prefix" 11996 eval x=\"$x\" 11997 exec_prefix="$acl_save_exec_prefix" 11998 prefix="$acl_save_prefix" 11999 12000 if test "X$x" = "X-L$additional_libdir"; then 12001 haveit=yes 12002 break 12003 fi 12004 done 12005 if test -z "$haveit"; then 12006 if test -d "$additional_libdir"; then 12007 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 12008 fi 12009 fi 12010 haveit= 12011 for x in $LDFLAGS $LTLIBICONV; do 12012 12013 acl_save_prefix="$prefix" 12014 prefix="$acl_final_prefix" 12015 acl_save_exec_prefix="$exec_prefix" 12016 exec_prefix="$acl_final_exec_prefix" 12017 eval x=\"$x\" 12018 exec_prefix="$acl_save_exec_prefix" 12019 prefix="$acl_save_prefix" 12020 12021 if test "X$x" = "X-L$additional_libdir"; then 12022 haveit=yes 12023 break 12024 fi 12025 done 12026 if test -z "$haveit"; then 12027 if test -d "$additional_libdir"; then 12028 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 12029 fi 12030 fi 12031 fi 12032 fi 12033 ;; 12034 -R*) 12035 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12036 if test "$enable_rpath" != no; then 12037 haveit= 12038 for x in $rpathdirs; do 12039 if test "X$x" = "X$dir"; then 12040 haveit=yes 12041 break 12042 fi 12043 done 12044 if test -z "$haveit"; then 12045 rpathdirs="$rpathdirs $dir" 12046 fi 12047 haveit= 12048 for x in $ltrpathdirs; do 12049 if test "X$x" = "X$dir"; then 12050 haveit=yes 12051 break 12052 fi 12053 done 12054 if test -z "$haveit"; then 12055 ltrpathdirs="$ltrpathdirs $dir" 12056 fi 12057 fi 12058 ;; 12059 -l*) 12060 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12061 ;; 12062 *.la) 12063 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12064 ;; 12065 *) 12066 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 12067 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 12068 ;; 12069 esac 12070 done 12071 fi 12072 else 12073 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12074 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 12075 fi 12076 fi 12077 fi 12078 done 12079 done 12080 if test "X$rpathdirs" != "X"; then 12081 if test -n "$acl_hardcode_libdir_separator"; then 12082 alldirs= 12083 for found_dir in $rpathdirs; do 12084 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 12085 done 12086 acl_save_libdir="$libdir" 12087 libdir="$alldirs" 12088 eval flag=\"$acl_hardcode_libdir_flag_spec\" 12089 libdir="$acl_save_libdir" 12090 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12091 else 12092 for found_dir in $rpathdirs; do 12093 acl_save_libdir="$libdir" 12094 libdir="$found_dir" 12095 eval flag=\"$acl_hardcode_libdir_flag_spec\" 12096 libdir="$acl_save_libdir" 12097 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12098 done 12099 fi 12100 fi 12101 if test "X$ltrpathdirs" != "X"; then 12102 for found_dir in $ltrpathdirs; do 12103 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 12104 done 12105 fi 12106 12107 12108 12109 12110 12111 12112 12113 am_save_CPPFLAGS="$CPPFLAGS" 12114 12115 for element in $INCICONV; do 12116 haveit= 12117 for x in $CPPFLAGS; do 12118 12119 acl_save_prefix="$prefix" 12120 prefix="$acl_final_prefix" 12121 acl_save_exec_prefix="$exec_prefix" 12122 exec_prefix="$acl_final_exec_prefix" 12123 eval x=\"$x\" 12124 exec_prefix="$acl_save_exec_prefix" 12125 prefix="$acl_save_prefix" 12126 12127 if test "X$x" = "X$element"; then 12128 haveit=yes 12129 break 12130 fi 12131 done 12132 if test -z "$haveit"; then 12133 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12134 fi 12135 done 12136 12137 12138 { $as_echo "$as_me:$LINENO: checking for iconv" >&5 12139 $as_echo_n "checking for iconv... " >&6; } 12140 if test "${am_cv_func_iconv+set}" = set; then 12141 $as_echo_n "(cached) " >&6 12142 else 12143 12144 am_cv_func_iconv="no, consider installing GNU libiconv" 12145 am_cv_lib_iconv=no 12146 cat >conftest.$ac_ext <<_ACEOF 12147 /* confdefs.h. */ 12148 _ACEOF 12149 cat confdefs.h >>conftest.$ac_ext 12150 cat >>conftest.$ac_ext <<_ACEOF 12151 /* end confdefs.h. */ 12152 #include <stdlib.h> 12153 #include <iconv.h> 12154 int 12155 main () 12156 { 12157 iconv_t cd = iconv_open("",""); 12158 iconv(cd,NULL,NULL,NULL,NULL); 12159 iconv_close(cd); 12160 ; 12161 return 0; 12162 } 12163 _ACEOF 12164 rm -f conftest.$ac_objext conftest$ac_exeext 12165 if { (ac_try="$ac_link" 12166 case "(($ac_try" in 12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12168 *) ac_try_echo=$ac_try;; 12169 esac 12170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12171 $as_echo "$ac_try_echo") >&5 12172 (eval "$ac_link") 2>conftest.er1 12173 ac_status=$? 12174 grep -v '^ *+' conftest.er1 >conftest.err 12175 rm -f conftest.er1 12176 cat conftest.err >&5 12177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12178 (exit $ac_status); } && { 12179 test -z "$ac_c_werror_flag" || 12180 test ! -s conftest.err 12181 } && test -s conftest$ac_exeext && { 12182 test "$cross_compiling" = yes || 12183 $as_test_x conftest$ac_exeext 12184 }; then 12185 am_cv_func_iconv=yes 12186 else 12187 $as_echo "$as_me: failed program was:" >&5 12188 sed 's/^/| /' conftest.$ac_ext >&5 12189 12190 12191 fi 12192 12193 rm -rf conftest.dSYM 12194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12195 conftest$ac_exeext conftest.$ac_ext 12196 if test "$am_cv_func_iconv" != yes; then 12197 am_save_LIBS="$LIBS" 12198 LIBS="$LIBS $LIBICONV" 12199 cat >conftest.$ac_ext <<_ACEOF 12200 /* confdefs.h. */ 12201 _ACEOF 12202 cat confdefs.h >>conftest.$ac_ext 12203 cat >>conftest.$ac_ext <<_ACEOF 12204 /* end confdefs.h. */ 12205 #include <stdlib.h> 12206 #include <iconv.h> 12207 int 12208 main () 12209 { 12210 iconv_t cd = iconv_open("",""); 12211 iconv(cd,NULL,NULL,NULL,NULL); 12212 iconv_close(cd); 12213 ; 12214 return 0; 12215 } 12216 _ACEOF 12217 rm -f conftest.$ac_objext conftest$ac_exeext 12218 if { (ac_try="$ac_link" 12219 case "(($ac_try" in 12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12221 *) ac_try_echo=$ac_try;; 12222 esac 12223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12224 $as_echo "$ac_try_echo") >&5 12225 (eval "$ac_link") 2>conftest.er1 12226 ac_status=$? 12227 grep -v '^ *+' conftest.er1 >conftest.err 12228 rm -f conftest.er1 12229 cat conftest.err >&5 12230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12231 (exit $ac_status); } && { 12232 test -z "$ac_c_werror_flag" || 12233 test ! -s conftest.err 12234 } && test -s conftest$ac_exeext && { 12235 test "$cross_compiling" = yes || 12236 $as_test_x conftest$ac_exeext 12237 }; then 12238 am_cv_lib_iconv=yes 12239 am_cv_func_iconv=yes 12240 else 12241 $as_echo "$as_me: failed program was:" >&5 12242 sed 's/^/| /' conftest.$ac_ext >&5 12243 12244 12245 fi 12246 12247 rm -rf conftest.dSYM 12248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12249 conftest$ac_exeext conftest.$ac_ext 12250 LIBS="$am_save_LIBS" 12251 fi 12252 12253 fi 12254 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 12255 $as_echo "$am_cv_func_iconv" >&6; } 12256 if test "$am_cv_func_iconv" = yes; then 12257 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5 12258 $as_echo_n "checking for working iconv... " >&6; } 12259 if test "${am_cv_func_iconv_works+set}" = set; then 12260 $as_echo_n "(cached) " >&6 12261 else 12262 12263 am_save_LIBS="$LIBS" 12264 if test $am_cv_lib_iconv = yes; then 12265 LIBS="$LIBS $LIBICONV" 12266 fi 12267 if test "$cross_compiling" = yes; then 12268 case "$host_os" in 12269 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 12270 *) am_cv_func_iconv_works="guessing yes" ;; 12271 esac 12272 else 12273 cat >conftest.$ac_ext <<_ACEOF 12274 /* confdefs.h. */ 12275 _ACEOF 12276 cat confdefs.h >>conftest.$ac_ext 12277 cat >>conftest.$ac_ext <<_ACEOF 12278 /* end confdefs.h. */ 12279 12280 #include <iconv.h> 12281 #include <string.h> 12282 int main () 12283 { 12284 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 12285 returns. */ 12286 { 12287 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 12288 if (cd_utf8_to_88591 != (iconv_t)(-1)) 12289 { 12290 static const char input[] = "\342\202\254"; /* EURO SIGN */ 12291 char buf[10]; 12292 const char *inptr = input; 12293 size_t inbytesleft = strlen (input); 12294 char *outptr = buf; 12295 size_t outbytesleft = sizeof (buf); 12296 size_t res = iconv (cd_utf8_to_88591, 12297 (char **) &inptr, &inbytesleft, 12298 &outptr, &outbytesleft); 12299 if (res == 0) 12300 return 1; 12301 } 12302 } 12303 #if 0 /* This bug could be worked around by the caller. */ 12304 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 12305 { 12306 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 12307 if (cd_88591_to_utf8 != (iconv_t)(-1)) 12308 { 12309 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 12310 char buf[50]; 12311 const char *inptr = input; 12312 size_t inbytesleft = strlen (input); 12313 char *outptr = buf; 12314 size_t outbytesleft = sizeof (buf); 12315 size_t res = iconv (cd_88591_to_utf8, 12316 (char **) &inptr, &inbytesleft, 12317 &outptr, &outbytesleft); 12318 if ((int)res > 0) 12319 return 1; 12320 } 12321 } 12322 #endif 12323 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 12324 provided. */ 12325 if (/* Try standardized names. */ 12326 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 12327 /* Try IRIX, OSF/1 names. */ 12328 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 12329 /* Try AIX names. */ 12330 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 12331 /* Try HP-UX names. */ 12332 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 12333 return 1; 12334 return 0; 12335 } 12336 _ACEOF 12337 rm -f conftest$ac_exeext 12338 if { (ac_try="$ac_link" 12339 case "(($ac_try" in 12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12341 *) ac_try_echo=$ac_try;; 12342 esac 12343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12344 $as_echo "$ac_try_echo") >&5 12345 (eval "$ac_link") 2>&5 12346 ac_status=$? 12347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12349 { (case "(($ac_try" in 12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12351 *) ac_try_echo=$ac_try;; 12352 esac 12353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12354 $as_echo "$ac_try_echo") >&5 12355 (eval "$ac_try") 2>&5 12356 ac_status=$? 12357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12358 (exit $ac_status); }; }; then 12359 am_cv_func_iconv_works=yes 12360 else 12361 $as_echo "$as_me: program exited with status $ac_status" >&5 12362 $as_echo "$as_me: failed program was:" >&5 12363 sed 's/^/| /' conftest.$ac_ext >&5 12364 12365 ( exit $ac_status ) 12366 am_cv_func_iconv_works=no 12367 fi 12368 rm -rf conftest.dSYM 12369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12370 fi 12371 12372 12373 LIBS="$am_save_LIBS" 12374 12375 fi 12376 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5 12377 $as_echo "$am_cv_func_iconv_works" >&6; } 12378 case "$am_cv_func_iconv_works" in 12379 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 12380 *) am_func_iconv=yes ;; 12381 esac 12382 else 12383 am_func_iconv=no am_cv_lib_iconv=no 12384 fi 12385 if test "$am_func_iconv" = yes; then 12386 12387 cat >>confdefs.h <<\_ACEOF 12388 #define HAVE_ICONV 1 12389 _ACEOF 12390 12391 fi 12392 if test "$am_cv_lib_iconv" = yes; then 12393 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 12394 $as_echo_n "checking how to link with libiconv... " >&6; } 12395 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 12396 $as_echo "$LIBICONV" >&6; } 12397 else 12398 CPPFLAGS="$am_save_CPPFLAGS" 12399 LIBICONV= 12400 LTLIBICONV= 12401 fi 12402 12403 12404 12405 if test "$am_cv_func_iconv" = yes; then 12406 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 12407 $as_echo_n "checking for iconv declaration... " >&6; } 12408 if test "${am_cv_proto_iconv+set}" = set; then 12409 $as_echo_n "(cached) " >&6 12410 else 12411 12412 cat >conftest.$ac_ext <<_ACEOF 12413 /* confdefs.h. */ 12414 _ACEOF 12415 cat confdefs.h >>conftest.$ac_ext 12416 cat >>conftest.$ac_ext <<_ACEOF 12417 /* end confdefs.h. */ 12418 12419 #include <stdlib.h> 12420 #include <iconv.h> 12421 extern 12422 #ifdef __cplusplus 12423 "C" 12424 #endif 12425 #if defined(__STDC__) || defined(__cplusplus) 12426 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 12427 #else 12428 size_t iconv(); 12429 #endif 12430 12431 int 12432 main () 12433 { 12434 12435 ; 12436 return 0; 12437 } 12438 _ACEOF 12439 rm -f conftest.$ac_objext 12440 if { (ac_try="$ac_compile" 12441 case "(($ac_try" in 12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12443 *) ac_try_echo=$ac_try;; 12444 esac 12445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12446 $as_echo "$ac_try_echo") >&5 12447 (eval "$ac_compile") 2>conftest.er1 12448 ac_status=$? 12449 grep -v '^ *+' conftest.er1 >conftest.err 12450 rm -f conftest.er1 12451 cat conftest.err >&5 12452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12453 (exit $ac_status); } && { 12454 test -z "$ac_c_werror_flag" || 12455 test ! -s conftest.err 12456 } && test -s conftest.$ac_objext; then 12457 am_cv_proto_iconv_arg1="" 12458 else 12459 $as_echo "$as_me: failed program was:" >&5 12460 sed 's/^/| /' conftest.$ac_ext >&5 12461 12462 am_cv_proto_iconv_arg1="const" 12463 fi 12464 12465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12466 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 12467 fi 12468 12469 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 12470 { $as_echo "$as_me:$LINENO: result: ${ac_t:- 12471 }$am_cv_proto_iconv" >&5 12472 $as_echo "${ac_t:- 12473 }$am_cv_proto_iconv" >&6; } 12474 12475 cat >>confdefs.h <<_ACEOF 12476 #define ICONV_CONST $am_cv_proto_iconv_arg1 12477 _ACEOF 12478 12479 fi 12480 12481 12482 # Check for doxygen 12483 # Extract the first word of "doxygen", so it can be a program name with args. 12484 set dummy doxygen; ac_word=$2 12485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12486 $as_echo_n "checking for $ac_word... " >&6; } 12487 if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then 12488 $as_echo_n "(cached) " >&6 12489 else 12490 if test -n "$HAVE_DOXYGEN"; then 12491 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test. 12492 else 12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12494 for as_dir in $PATH 12495 do 12496 IFS=$as_save_IFS 12497 test -z "$as_dir" && as_dir=. 12498 for ac_exec_ext in '' $ac_executable_extensions; do 12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12500 ac_cv_prog_HAVE_DOXYGEN="true" 12501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12502 break 2 12503 fi 12504 done 12505 done 12506 IFS=$as_save_IFS 12507 12508 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false" 12509 fi 12510 fi 12511 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN 12512 if test -n "$HAVE_DOXYGEN"; then 12513 { $as_echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5 12514 $as_echo "$HAVE_DOXYGEN" >&6; } 12515 else 12516 { $as_echo "$as_me:$LINENO: result: no" >&5 12517 $as_echo "no" >&6; } 12518 fi 12519 12520 12521 if $HAVE_DOXYGEN; then 12522 HAVE_DOXYGEN_TRUE= 12523 HAVE_DOXYGEN_FALSE='#' 12524 else 12525 HAVE_DOXYGEN_TRUE='#' 12526 HAVE_DOXYGEN_FALSE= 12527 fi 12528 12529 if test $HAVE_DOXYGEN = "false"; then 12530 { $as_echo "$as_me:$LINENO: WARNING: *** doxygen not found, docs will not be built" >&5 12531 $as_echo "$as_me: WARNING: *** doxygen not found, docs will not be built" >&2;} 12532 fi 12533 12534 # Check for Darwin 12535 { $as_echo "$as_me:$LINENO: checking if the host operating system is Darwin" >&5 12536 $as_echo_n "checking if the host operating system is Darwin... " >&6; } 12537 case "$host" in 12538 *-darwin*) 12539 { $as_echo "$as_me:$LINENO: result: yes" >&5 12540 $as_echo "yes" >&6; } 12541 CFLAGS="$CFLAGS -DUSE_DARWIN" 12542 OSFLAGS="-framework IOKit" 12543 ;; 12544 *) { $as_echo "$as_me:$LINENO: result: no" >&5 12545 $as_echo "no" >&6; } ;; 12546 esac 12547 12548 12549 # Check for mingw compiler platform 12550 { $as_echo "$as_me:$LINENO: checking For MinGW32" >&5 12551 $as_echo_n "checking For MinGW32... " >&6; } 12552 case "$host" in 12553 *-*-mingw*) 12554 { $as_echo "$as_me:$LINENO: result: yes" >&5 12555 $as_echo "yes" >&6; } 12556 mingw_compiler=yes 12557 ;; 12558 *) { $as_echo "$as_me:$LINENO: result: no" >&5 12559 $as_echo "no" >&6; } ;; 12560 esac 12561 if test "$mingw_compiler" = "yes"; then 12562 COMPILE_MINGW32_TRUE= 12563 COMPILE_MINGW32_FALSE='#' 12564 else 12565 COMPILE_MINGW32_TRUE='#' 12566 COMPILE_MINGW32_FALSE= 12567 fi 12568 12569 12570 # Check if Microsoft LIB.EXE is available 12571 if test "$mingw_compiler" = "yes"; then 12572 # Extract the first word of "lib.exe", so it can be a program name with args. 12573 set dummy lib.exe; ac_word=$2 12574 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12575 $as_echo_n "checking for $ac_word... " >&6; } 12576 if test "${ac_cv_prog_ms_lib_exe+set}" = set; then 12577 $as_echo_n "(cached) " >&6 12578 else 12579 if test -n "$ms_lib_exe"; then 12580 ac_cv_prog_ms_lib_exe="$ms_lib_exe" # Let the user override the test. 12581 else 12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12583 for as_dir in $PATH 12584 do 12585 IFS=$as_save_IFS 12586 test -z "$as_dir" && as_dir=. 12587 for ac_exec_ext in '' $ac_executable_extensions; do 12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12589 ac_cv_prog_ms_lib_exe="yes" 12590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12591 break 2 12592 fi 12593 done 12594 done 12595 IFS=$as_save_IFS 12596 12597 test -z "$ac_cv_prog_ms_lib_exe" && ac_cv_prog_ms_lib_exe="no" 12598 fi 12599 fi 12600 ms_lib_exe=$ac_cv_prog_ms_lib_exe 12601 if test -n "$ms_lib_exe"; then 12602 { $as_echo "$as_me:$LINENO: result: $ms_lib_exe" >&5 12603 $as_echo "$ms_lib_exe" >&6; } 12604 else 12605 { $as_echo "$as_me:$LINENO: result: no" >&5 12606 $as_echo "no" >&6; } 12607 fi 12608 12609 12610 fi 12611 if test x$ms_lib_exe = xyes; then 12612 MS_LIB_EXE_TRUE= 12613 MS_LIB_EXE_FALSE='#' 12614 else 12615 MS_LIB_EXE_TRUE='#' 12616 MS_LIB_EXE_FALSE= 12617 fi 12618 12619 12620 # Checks for libraries. 12621 12622 { $as_echo "$as_me:$LINENO: checking for usb_control_msg in -lusb" >&5 12623 $as_echo_n "checking for usb_control_msg in -lusb... " >&6; } 12624 if test "${ac_cv_lib_usb_usb_control_msg+set}" = set; then 12625 $as_echo_n "(cached) " >&6 12626 else 12627 ac_check_lib_save_LIBS=$LIBS 12628 LIBS="-lusb "$OSFLAGS" $LIBS" 12629 cat >conftest.$ac_ext <<_ACEOF 12630 /* confdefs.h. */ 12631 _ACEOF 12632 cat confdefs.h >>conftest.$ac_ext 12633 cat >>conftest.$ac_ext <<_ACEOF 12634 /* end confdefs.h. */ 12635 12636 /* Override any GCC internal prototype to avoid an error. 12637 Use char because int might match the return type of a GCC 12638 builtin and then its argument prototype would still apply. */ 12639 #ifdef __cplusplus 12640 extern "C" 12641 #endif 12642 char usb_control_msg (); 12643 int 12644 main () 12645 { 12646 return usb_control_msg (); 12647 ; 12648 return 0; 12649 } 12650 _ACEOF 12651 rm -f conftest.$ac_objext conftest$ac_exeext 12652 if { (ac_try="$ac_link" 12653 case "(($ac_try" in 12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12655 *) ac_try_echo=$ac_try;; 12656 esac 12657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12658 $as_echo "$ac_try_echo") >&5 12659 (eval "$ac_link") 2>conftest.er1 12660 ac_status=$? 12661 grep -v '^ *+' conftest.er1 >conftest.err 12662 rm -f conftest.er1 12663 cat conftest.err >&5 12664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12665 (exit $ac_status); } && { 12666 test -z "$ac_c_werror_flag" || 12667 test ! -s conftest.err 12668 } && test -s conftest$ac_exeext && { 12669 test "$cross_compiling" = yes || 12670 $as_test_x conftest$ac_exeext 12671 }; then 12672 ac_cv_lib_usb_usb_control_msg=yes 12673 else 12674 $as_echo "$as_me: failed program was:" >&5 12675 sed 's/^/| /' conftest.$ac_ext >&5 12676 12677 ac_cv_lib_usb_usb_control_msg=no 12678 fi 12679 12680 rm -rf conftest.dSYM 12681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12682 conftest$ac_exeext conftest.$ac_ext 12683 LIBS=$ac_check_lib_save_LIBS 12684 fi 12685 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_control_msg" >&5 12686 $as_echo "$ac_cv_lib_usb_usb_control_msg" >&6; } 12687 if test "x$ac_cv_lib_usb_usb_control_msg" = x""yes; then 12688 cat >>confdefs.h <<_ACEOF 12689 #define HAVE_LIBUSB 1 12690 _ACEOF 12691 12692 LIBS="-lusb $LIBS" 12693 12694 else 12695 { { $as_echo "$as_me:$LINENO: error: I can't find the libusb libraries on your system. You 12696 may need to set the LDFLAGS environment variable to include the 12697 search path where you have libusb installed before running 12698 configure (e.g. setenv LDFLAGS=-L/usr/local/lib)" >&5 12699 $as_echo "$as_me: error: I can't find the libusb libraries on your system. You 12700 may need to set the LDFLAGS environment variable to include the 12701 search path where you have libusb installed before running 12702 configure (e.g. setenv LDFLAGS=-L/usr/local/lib)" >&2;} 12703 { (exit 1); exit 1; }; } 12704 fi 12705 12706 12707 # Checks for header files. 12708 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12709 $as_echo_n "checking for ANSI C header files... " >&6; } 12710 if test "${ac_cv_header_stdc+set}" = set; then 12711 $as_echo_n "(cached) " >&6 12712 else 12713 cat >conftest.$ac_ext <<_ACEOF 12714 /* confdefs.h. */ 12715 _ACEOF 12716 cat confdefs.h >>conftest.$ac_ext 12717 cat >>conftest.$ac_ext <<_ACEOF 12718 /* end confdefs.h. */ 12719 #include <stdlib.h> 12720 #include <stdarg.h> 12721 #include <string.h> 12722 #include <float.h> 12723 12724 int 12725 main () 12726 { 12727 12728 ; 12729 return 0; 12730 } 12731 _ACEOF 12732 rm -f conftest.$ac_objext 12733 if { (ac_try="$ac_compile" 12734 case "(($ac_try" in 12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12736 *) ac_try_echo=$ac_try;; 12737 esac 12738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12739 $as_echo "$ac_try_echo") >&5 12740 (eval "$ac_compile") 2>conftest.er1 12741 ac_status=$? 12742 grep -v '^ *+' conftest.er1 >conftest.err 12743 rm -f conftest.er1 12744 cat conftest.err >&5 12745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12746 (exit $ac_status); } && { 12747 test -z "$ac_c_werror_flag" || 12748 test ! -s conftest.err 12749 } && test -s conftest.$ac_objext; then 12750 ac_cv_header_stdc=yes 12751 else 12752 $as_echo "$as_me: failed program was:" >&5 12753 sed 's/^/| /' conftest.$ac_ext >&5 12754 12755 ac_cv_header_stdc=no 12756 fi 12757 12758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12759 12760 if test $ac_cv_header_stdc = yes; then 12761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12762 cat >conftest.$ac_ext <<_ACEOF 12763 /* confdefs.h. */ 12764 _ACEOF 12765 cat confdefs.h >>conftest.$ac_ext 12766 cat >>conftest.$ac_ext <<_ACEOF 12767 /* end confdefs.h. */ 12768 #include <string.h> 12769 12770 _ACEOF 12771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12772 $EGREP "memchr" >/dev/null 2>&1; then 12773 : 12774 else 12775 ac_cv_header_stdc=no 12776 fi 12777 rm -f conftest* 12778 12779 fi 12780 12781 if test $ac_cv_header_stdc = yes; then 12782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12783 cat >conftest.$ac_ext <<_ACEOF 12784 /* confdefs.h. */ 12785 _ACEOF 12786 cat confdefs.h >>conftest.$ac_ext 12787 cat >>conftest.$ac_ext <<_ACEOF 12788 /* end confdefs.h. */ 12789 #include <stdlib.h> 12790 12791 _ACEOF 12792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12793 $EGREP "free" >/dev/null 2>&1; then 12794 : 12795 else 12796 ac_cv_header_stdc=no 12797 fi 12798 rm -f conftest* 12799 12800 fi 12801 12802 if test $ac_cv_header_stdc = yes; then 12803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12804 if test "$cross_compiling" = yes; then 12805 : 12806 else 12807 cat >conftest.$ac_ext <<_ACEOF 12808 /* confdefs.h. */ 12809 _ACEOF 12810 cat confdefs.h >>conftest.$ac_ext 12811 cat >>conftest.$ac_ext <<_ACEOF 12812 /* end confdefs.h. */ 12813 #include <ctype.h> 12814 #include <stdlib.h> 12815 #if ((' ' & 0x0FF) == 0x020) 12816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12818 #else 12819 # define ISLOWER(c) \ 12820 (('a' <= (c) && (c) <= 'i') \ 12821 || ('j' <= (c) && (c) <= 'r') \ 12822 || ('s' <= (c) && (c) <= 'z')) 12823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12824 #endif 12825 12826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12827 int 12828 main () 12829 { 12830 int i; 12831 for (i = 0; i < 256; i++) 12832 if (XOR (islower (i), ISLOWER (i)) 12833 || toupper (i) != TOUPPER (i)) 12834 return 2; 12835 return 0; 12836 } 12837 _ACEOF 12838 rm -f conftest$ac_exeext 12839 if { (ac_try="$ac_link" 12840 case "(($ac_try" in 12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12842 *) ac_try_echo=$ac_try;; 12843 esac 12844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12845 $as_echo "$ac_try_echo") >&5 12846 (eval "$ac_link") 2>&5 12847 ac_status=$? 12848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12850 { (case "(($ac_try" in 12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12852 *) ac_try_echo=$ac_try;; 12853 esac 12854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12855 $as_echo "$ac_try_echo") >&5 12856 (eval "$ac_try") 2>&5 12857 ac_status=$? 12858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12859 (exit $ac_status); }; }; then 12860 : 12861 else 12862 $as_echo "$as_me: program exited with status $ac_status" >&5 12863 $as_echo "$as_me: failed program was:" >&5 12864 sed 's/^/| /' conftest.$ac_ext >&5 12865 12866 ( exit $ac_status ) 12867 ac_cv_header_stdc=no 12868 fi 12869 rm -rf conftest.dSYM 12870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12871 fi 12872 12873 12874 fi 12875 fi 12876 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12877 $as_echo "$ac_cv_header_stdc" >&6; } 12878 if test $ac_cv_header_stdc = yes; then 12879 12880 cat >>confdefs.h <<\_ACEOF 12881 #define STDC_HEADERS 1 12882 _ACEOF 12883 12884 fi 12885 12886 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 12887 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12888 if test "${ac_cv_header_time+set}" = set; then 12889 $as_echo_n "(cached) " >&6 12890 else 12891 cat >conftest.$ac_ext <<_ACEOF 12892 /* confdefs.h. */ 12893 _ACEOF 12894 cat confdefs.h >>conftest.$ac_ext 12895 cat >>conftest.$ac_ext <<_ACEOF 12896 /* end confdefs.h. */ 12897 #include <sys/types.h> 12898 #include <sys/time.h> 12899 #include <time.h> 12900 12901 int 12902 main () 12903 { 12904 if ((struct tm *) 0) 12905 return 0; 12906 ; 12907 return 0; 12908 } 12909 _ACEOF 12910 rm -f conftest.$ac_objext 12911 if { (ac_try="$ac_compile" 12912 case "(($ac_try" in 12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12914 *) ac_try_echo=$ac_try;; 12915 esac 12916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12917 $as_echo "$ac_try_echo") >&5 12918 (eval "$ac_compile") 2>conftest.er1 12919 ac_status=$? 12920 grep -v '^ *+' conftest.er1 >conftest.err 12921 rm -f conftest.er1 12922 cat conftest.err >&5 12923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12924 (exit $ac_status); } && { 12925 test -z "$ac_c_werror_flag" || 12926 test ! -s conftest.err 12927 } && test -s conftest.$ac_objext; then 12928 ac_cv_header_time=yes 12929 else 12930 $as_echo "$as_me: failed program was:" >&5 12931 sed 's/^/| /' conftest.$ac_ext >&5 12932 12933 ac_cv_header_time=no 12934 fi 12935 12936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12937 fi 12938 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 12939 $as_echo "$ac_cv_header_time" >&6; } 12940 if test $ac_cv_header_time = yes; then 12941 12942 cat >>confdefs.h <<\_ACEOF 12943 #define TIME_WITH_SYS_TIME 1 12944 _ACEOF 12945 12946 fi 12947 12948 # zlib.h the day we need to decompress firmware 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 for ac_header in ctype.h errno.h fcntl.h getopt.h libgen.h \ 12967 limits.h stdio.h string.h sys/stat.h sys/time.h unistd.h \ 12968 iconv.h langinfo.h locale.h arpa/inet.h byteswap.h sys/uio.h 12969 do 12970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12972 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12973 $as_echo_n "checking for $ac_header... " >&6; } 12974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12975 $as_echo_n "(cached) " >&6 12976 fi 12977 ac_res=`eval 'as_val=${'$as_ac_Header'} 12978 $as_echo "$as_val"'` 12979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12980 $as_echo "$ac_res" >&6; } 12981 else 12982 # Is the header compilable? 12983 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12984 $as_echo_n "checking $ac_header usability... " >&6; } 12985 cat >conftest.$ac_ext <<_ACEOF 12986 /* confdefs.h. */ 12987 _ACEOF 12988 cat confdefs.h >>conftest.$ac_ext 12989 cat >>conftest.$ac_ext <<_ACEOF 12990 /* end confdefs.h. */ 12991 $ac_includes_default 12992 #include <$ac_header> 12993 _ACEOF 12994 rm -f conftest.$ac_objext 12995 if { (ac_try="$ac_compile" 12996 case "(($ac_try" in 12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12998 *) ac_try_echo=$ac_try;; 12999 esac 13000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13001 $as_echo "$ac_try_echo") >&5 13002 (eval "$ac_compile") 2>conftest.er1 13003 ac_status=$? 13004 grep -v '^ *+' conftest.er1 >conftest.err 13005 rm -f conftest.er1 13006 cat conftest.err >&5 13007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13008 (exit $ac_status); } && { 13009 test -z "$ac_c_werror_flag" || 13010 test ! -s conftest.err 13011 } && test -s conftest.$ac_objext; then 13012 ac_header_compiler=yes 13013 else 13014 $as_echo "$as_me: failed program was:" >&5 13015 sed 's/^/| /' conftest.$ac_ext >&5 13016 13017 ac_header_compiler=no 13018 fi 13019 13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13021 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13022 $as_echo "$ac_header_compiler" >&6; } 13023 13024 # Is the header present? 13025 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13026 $as_echo_n "checking $ac_header presence... " >&6; } 13027 cat >conftest.$ac_ext <<_ACEOF 13028 /* confdefs.h. */ 13029 _ACEOF 13030 cat confdefs.h >>conftest.$ac_ext 13031 cat >>conftest.$ac_ext <<_ACEOF 13032 /* end confdefs.h. */ 13033 #include <$ac_header> 13034 _ACEOF 13035 if { (ac_try="$ac_cpp conftest.$ac_ext" 13036 case "(($ac_try" in 13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13038 *) ac_try_echo=$ac_try;; 13039 esac 13040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13041 $as_echo "$ac_try_echo") >&5 13042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13043 ac_status=$? 13044 grep -v '^ *+' conftest.er1 >conftest.err 13045 rm -f conftest.er1 13046 cat conftest.err >&5 13047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13048 (exit $ac_status); } >/dev/null && { 13049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13050 test ! -s conftest.err 13051 }; then 13052 ac_header_preproc=yes 13053 else 13054 $as_echo "$as_me: failed program was:" >&5 13055 sed 's/^/| /' conftest.$ac_ext >&5 13056 13057 ac_header_preproc=no 13058 fi 13059 13060 rm -f conftest.err conftest.$ac_ext 13061 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13062 $as_echo "$ac_header_preproc" >&6; } 13063 13064 # So? What about this header? 13065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13066 yes:no: ) 13067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13068 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13070 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13071 ac_header_preproc=yes 13072 ;; 13073 no:yes:* ) 13074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13075 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13077 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13079 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13081 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13085 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13086 ( cat <<\_ASBOX 13087 ## --------------------------------------------------- ## 13088 ## Report this to libmtp-discuss (at] lists.sourceforge.net ## 13089 ## --------------------------------------------------- ## 13090 _ASBOX 13091 ) | sed "s/^/$as_me: WARNING: /" >&2 13092 ;; 13093 esac 13094 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13095 $as_echo_n "checking for $ac_header... " >&6; } 13096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13097 $as_echo_n "(cached) " >&6 13098 else 13099 eval "$as_ac_Header=\$ac_header_preproc" 13100 fi 13101 ac_res=`eval 'as_val=${'$as_ac_Header'} 13102 $as_echo "$as_val"'` 13103 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13104 $as_echo "$ac_res" >&6; } 13105 13106 fi 13107 as_val=`eval 'as_val=${'$as_ac_Header'} 13108 $as_echo "$as_val"'` 13109 if test "x$as_val" = x""yes; then 13110 cat >>confdefs.h <<_ACEOF 13111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13112 _ACEOF 13113 13114 fi 13115 13116 done 13117 13118 if test "${ac_cv_header_usb_h+set}" = set; then 13119 { $as_echo "$as_me:$LINENO: checking for usb.h" >&5 13120 $as_echo_n "checking for usb.h... " >&6; } 13121 if test "${ac_cv_header_usb_h+set}" = set; then 13122 $as_echo_n "(cached) " >&6 13123 fi 13124 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5 13125 $as_echo "$ac_cv_header_usb_h" >&6; } 13126 else 13127 # Is the header compilable? 13128 { $as_echo "$as_me:$LINENO: checking usb.h usability" >&5 13129 $as_echo_n "checking usb.h usability... " >&6; } 13130 cat >conftest.$ac_ext <<_ACEOF 13131 /* confdefs.h. */ 13132 _ACEOF 13133 cat confdefs.h >>conftest.$ac_ext 13134 cat >>conftest.$ac_ext <<_ACEOF 13135 /* end confdefs.h. */ 13136 $ac_includes_default 13137 #include <usb.h> 13138 _ACEOF 13139 rm -f conftest.$ac_objext 13140 if { (ac_try="$ac_compile" 13141 case "(($ac_try" in 13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13143 *) ac_try_echo=$ac_try;; 13144 esac 13145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13146 $as_echo "$ac_try_echo") >&5 13147 (eval "$ac_compile") 2>conftest.er1 13148 ac_status=$? 13149 grep -v '^ *+' conftest.er1 >conftest.err 13150 rm -f conftest.er1 13151 cat conftest.err >&5 13152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13153 (exit $ac_status); } && { 13154 test -z "$ac_c_werror_flag" || 13155 test ! -s conftest.err 13156 } && test -s conftest.$ac_objext; then 13157 ac_header_compiler=yes 13158 else 13159 $as_echo "$as_me: failed program was:" >&5 13160 sed 's/^/| /' conftest.$ac_ext >&5 13161 13162 ac_header_compiler=no 13163 fi 13164 13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13166 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13167 $as_echo "$ac_header_compiler" >&6; } 13168 13169 # Is the header present? 13170 { $as_echo "$as_me:$LINENO: checking usb.h presence" >&5 13171 $as_echo_n "checking usb.h presence... " >&6; } 13172 cat >conftest.$ac_ext <<_ACEOF 13173 /* confdefs.h. */ 13174 _ACEOF 13175 cat confdefs.h >>conftest.$ac_ext 13176 cat >>conftest.$ac_ext <<_ACEOF 13177 /* end confdefs.h. */ 13178 #include <usb.h> 13179 _ACEOF 13180 if { (ac_try="$ac_cpp conftest.$ac_ext" 13181 case "(($ac_try" in 13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13183 *) ac_try_echo=$ac_try;; 13184 esac 13185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13186 $as_echo "$ac_try_echo") >&5 13187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13188 ac_status=$? 13189 grep -v '^ *+' conftest.er1 >conftest.err 13190 rm -f conftest.er1 13191 cat conftest.err >&5 13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13193 (exit $ac_status); } >/dev/null && { 13194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13195 test ! -s conftest.err 13196 }; then 13197 ac_header_preproc=yes 13198 else 13199 $as_echo "$as_me: failed program was:" >&5 13200 sed 's/^/| /' conftest.$ac_ext >&5 13201 13202 ac_header_preproc=no 13203 fi 13204 13205 rm -f conftest.err conftest.$ac_ext 13206 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13207 $as_echo "$ac_header_preproc" >&6; } 13208 13209 # So? What about this header? 13210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13211 yes:no: ) 13212 { $as_echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5 13213 $as_echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13214 { $as_echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5 13215 $as_echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;} 13216 ac_header_preproc=yes 13217 ;; 13218 no:yes:* ) 13219 { $as_echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5 13220 $as_echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;} 13221 { $as_echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5 13222 $as_echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;} 13223 { $as_echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5 13224 $as_echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;} 13225 { $as_echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5 13226 $as_echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;} 13227 { $as_echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5 13228 $as_echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;} 13229 { $as_echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5 13230 $as_echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;} 13231 ( cat <<\_ASBOX 13232 ## --------------------------------------------------- ## 13233 ## Report this to libmtp-discuss (at] lists.sourceforge.net ## 13234 ## --------------------------------------------------- ## 13235 _ASBOX 13236 ) | sed "s/^/$as_me: WARNING: /" >&2 13237 ;; 13238 esac 13239 { $as_echo "$as_me:$LINENO: checking for usb.h" >&5 13240 $as_echo_n "checking for usb.h... " >&6; } 13241 if test "${ac_cv_header_usb_h+set}" = set; then 13242 $as_echo_n "(cached) " >&6 13243 else 13244 ac_cv_header_usb_h=$ac_header_preproc 13245 fi 13246 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5 13247 $as_echo "$ac_cv_header_usb_h" >&6; } 13248 13249 fi 13250 if test "x$ac_cv_header_usb_h" = x""yes; then 13251 : 13252 else 13253 { { $as_echo "$as_me:$LINENO: error: I can't find the libusb header file on your system. 13254 You may need to set the CPPFLAGS environment variable to include 13255 the search path where you have libusb installed before running 13256 configure (e.g. setenv CPPFLAGS=-I/usr/local/include)" >&5 13257 $as_echo "$as_me: error: I can't find the libusb header file on your system. 13258 You may need to set the CPPFLAGS environment variable to include 13259 the search path where you have libusb installed before running 13260 configure (e.g. setenv CPPFLAGS=-I/usr/local/include)" >&2;} 13261 { (exit 1); exit 1; }; } 13262 fi 13263 13264 13265 13266 # Checks for typedefs, structures, and compiler characteristics. 13267 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 13268 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13269 if test "${ac_cv_c_const+set}" = set; then 13270 $as_echo_n "(cached) " >&6 13271 else 13272 cat >conftest.$ac_ext <<_ACEOF 13273 /* confdefs.h. */ 13274 _ACEOF 13275 cat confdefs.h >>conftest.$ac_ext 13276 cat >>conftest.$ac_ext <<_ACEOF 13277 /* end confdefs.h. */ 13278 13279 int 13280 main () 13281 { 13282 /* FIXME: Include the comments suggested by Paul. */ 13283 #ifndef __cplusplus 13284 /* Ultrix mips cc rejects this. */ 13285 typedef int charset[2]; 13286 const charset cs; 13287 /* SunOS 4.1.1 cc rejects this. */ 13288 char const *const *pcpcc; 13289 char **ppc; 13290 /* NEC SVR4.0.2 mips cc rejects this. */ 13291 struct point {int x, y;}; 13292 static struct point const zero = {0,0}; 13293 /* AIX XL C 1.02.0.0 rejects this. 13294 It does not let you subtract one const X* pointer from another in 13295 an arm of an if-expression whose if-part is not a constant 13296 expression */ 13297 const char *g = "string"; 13298 pcpcc = &g + (g ? g-g : 0); 13299 /* HPUX 7.0 cc rejects these. */ 13300 ++pcpcc; 13301 ppc = (char**) pcpcc; 13302 pcpcc = (char const *const *) ppc; 13303 { /* SCO 3.2v4 cc rejects this. */ 13304 char *t; 13305 char const *s = 0 ? (char *) 0 : (char const *) 0; 13306 13307 *t++ = 0; 13308 if (s) return 0; 13309 } 13310 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13311 int x[] = {25, 17}; 13312 const int *foo = &x[0]; 13313 ++foo; 13314 } 13315 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13316 typedef const int *iptr; 13317 iptr p = 0; 13318 ++p; 13319 } 13320 { /* AIX XL C 1.02.0.0 rejects this saying 13321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13322 struct s { int j; const int *ap[3]; }; 13323 struct s *b; b->j = 5; 13324 } 13325 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13326 const int foo = 10; 13327 if (!foo) return 0; 13328 } 13329 return !cs[0] && !zero.x; 13330 #endif 13331 13332 ; 13333 return 0; 13334 } 13335 _ACEOF 13336 rm -f conftest.$ac_objext 13337 if { (ac_try="$ac_compile" 13338 case "(($ac_try" in 13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13340 *) ac_try_echo=$ac_try;; 13341 esac 13342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13343 $as_echo "$ac_try_echo") >&5 13344 (eval "$ac_compile") 2>conftest.er1 13345 ac_status=$? 13346 grep -v '^ *+' conftest.er1 >conftest.err 13347 rm -f conftest.er1 13348 cat conftest.err >&5 13349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13350 (exit $ac_status); } && { 13351 test -z "$ac_c_werror_flag" || 13352 test ! -s conftest.err 13353 } && test -s conftest.$ac_objext; then 13354 ac_cv_c_const=yes 13355 else 13356 $as_echo "$as_me: failed program was:" >&5 13357 sed 's/^/| /' conftest.$ac_ext >&5 13358 13359 ac_cv_c_const=no 13360 fi 13361 13362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13363 fi 13364 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 13365 $as_echo "$ac_cv_c_const" >&6; } 13366 if test $ac_cv_c_const = no; then 13367 13368 cat >>confdefs.h <<\_ACEOF 13369 #define const /**/ 13370 _ACEOF 13371 13372 fi 13373 13374 { $as_echo "$as_me:$LINENO: checking for off_t" >&5 13375 $as_echo_n "checking for off_t... " >&6; } 13376 if test "${ac_cv_type_off_t+set}" = set; then 13377 $as_echo_n "(cached) " >&6 13378 else 13379 ac_cv_type_off_t=no 13380 cat >conftest.$ac_ext <<_ACEOF 13381 /* confdefs.h. */ 13382 _ACEOF 13383 cat confdefs.h >>conftest.$ac_ext 13384 cat >>conftest.$ac_ext <<_ACEOF 13385 /* end confdefs.h. */ 13386 $ac_includes_default 13387 int 13388 main () 13389 { 13390 if (sizeof (off_t)) 13391 return 0; 13392 ; 13393 return 0; 13394 } 13395 _ACEOF 13396 rm -f conftest.$ac_objext 13397 if { (ac_try="$ac_compile" 13398 case "(($ac_try" in 13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13400 *) ac_try_echo=$ac_try;; 13401 esac 13402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13403 $as_echo "$ac_try_echo") >&5 13404 (eval "$ac_compile") 2>conftest.er1 13405 ac_status=$? 13406 grep -v '^ *+' conftest.er1 >conftest.err 13407 rm -f conftest.er1 13408 cat conftest.err >&5 13409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13410 (exit $ac_status); } && { 13411 test -z "$ac_c_werror_flag" || 13412 test ! -s conftest.err 13413 } && test -s conftest.$ac_objext; then 13414 cat >conftest.$ac_ext <<_ACEOF 13415 /* confdefs.h. */ 13416 _ACEOF 13417 cat confdefs.h >>conftest.$ac_ext 13418 cat >>conftest.$ac_ext <<_ACEOF 13419 /* end confdefs.h. */ 13420 $ac_includes_default 13421 int 13422 main () 13423 { 13424 if (sizeof ((off_t))) 13425 return 0; 13426 ; 13427 return 0; 13428 } 13429 _ACEOF 13430 rm -f conftest.$ac_objext 13431 if { (ac_try="$ac_compile" 13432 case "(($ac_try" in 13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13434 *) ac_try_echo=$ac_try;; 13435 esac 13436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13437 $as_echo "$ac_try_echo") >&5 13438 (eval "$ac_compile") 2>conftest.er1 13439 ac_status=$? 13440 grep -v '^ *+' conftest.er1 >conftest.err 13441 rm -f conftest.er1 13442 cat conftest.err >&5 13443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13444 (exit $ac_status); } && { 13445 test -z "$ac_c_werror_flag" || 13446 test ! -s conftest.err 13447 } && test -s conftest.$ac_objext; then 13448 : 13449 else 13450 $as_echo "$as_me: failed program was:" >&5 13451 sed 's/^/| /' conftest.$ac_ext >&5 13452 13453 ac_cv_type_off_t=yes 13454 fi 13455 13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13457 else 13458 $as_echo "$as_me: failed program was:" >&5 13459 sed 's/^/| /' conftest.$ac_ext >&5 13460 13461 13462 fi 13463 13464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13465 fi 13466 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 13467 $as_echo "$ac_cv_type_off_t" >&6; } 13468 if test "x$ac_cv_type_off_t" = x""yes; then 13469 : 13470 else 13471 13472 cat >>confdefs.h <<_ACEOF 13473 #define off_t long int 13474 _ACEOF 13475 13476 fi 13477 13478 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 13479 $as_echo_n "checking return type of signal handlers... " >&6; } 13480 if test "${ac_cv_type_signal+set}" = set; then 13481 $as_echo_n "(cached) " >&6 13482 else 13483 cat >conftest.$ac_ext <<_ACEOF 13484 /* confdefs.h. */ 13485 _ACEOF 13486 cat confdefs.h >>conftest.$ac_ext 13487 cat >>conftest.$ac_ext <<_ACEOF 13488 /* end confdefs.h. */ 13489 #include <sys/types.h> 13490 #include <signal.h> 13491 13492 int 13493 main () 13494 { 13495 return *(signal (0, 0)) (0) == 1; 13496 ; 13497 return 0; 13498 } 13499 _ACEOF 13500 rm -f conftest.$ac_objext 13501 if { (ac_try="$ac_compile" 13502 case "(($ac_try" in 13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13504 *) ac_try_echo=$ac_try;; 13505 esac 13506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13507 $as_echo "$ac_try_echo") >&5 13508 (eval "$ac_compile") 2>conftest.er1 13509 ac_status=$? 13510 grep -v '^ *+' conftest.er1 >conftest.err 13511 rm -f conftest.er1 13512 cat conftest.err >&5 13513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13514 (exit $ac_status); } && { 13515 test -z "$ac_c_werror_flag" || 13516 test ! -s conftest.err 13517 } && test -s conftest.$ac_objext; then 13518 ac_cv_type_signal=int 13519 else 13520 $as_echo "$as_me: failed program was:" >&5 13521 sed 's/^/| /' conftest.$ac_ext >&5 13522 13523 ac_cv_type_signal=void 13524 fi 13525 13526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13527 fi 13528 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 13529 $as_echo "$ac_cv_type_signal" >&6; } 13530 13531 cat >>confdefs.h <<_ACEOF 13532 #define RETSIGTYPE $ac_cv_type_signal 13533 _ACEOF 13534 13535 13536 { $as_echo "$as_me:$LINENO: checking for size_t" >&5 13537 $as_echo_n "checking for size_t... " >&6; } 13538 if test "${ac_cv_type_size_t+set}" = set; then 13539 $as_echo_n "(cached) " >&6 13540 else 13541 ac_cv_type_size_t=no 13542 cat >conftest.$ac_ext <<_ACEOF 13543 /* confdefs.h. */ 13544 _ACEOF 13545 cat confdefs.h >>conftest.$ac_ext 13546 cat >>conftest.$ac_ext <<_ACEOF 13547 /* end confdefs.h. */ 13548 $ac_includes_default 13549 int 13550 main () 13551 { 13552 if (sizeof (size_t)) 13553 return 0; 13554 ; 13555 return 0; 13556 } 13557 _ACEOF 13558 rm -f conftest.$ac_objext 13559 if { (ac_try="$ac_compile" 13560 case "(($ac_try" in 13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13562 *) ac_try_echo=$ac_try;; 13563 esac 13564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13565 $as_echo "$ac_try_echo") >&5 13566 (eval "$ac_compile") 2>conftest.er1 13567 ac_status=$? 13568 grep -v '^ *+' conftest.er1 >conftest.err 13569 rm -f conftest.er1 13570 cat conftest.err >&5 13571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13572 (exit $ac_status); } && { 13573 test -z "$ac_c_werror_flag" || 13574 test ! -s conftest.err 13575 } && test -s conftest.$ac_objext; then 13576 cat >conftest.$ac_ext <<_ACEOF 13577 /* confdefs.h. */ 13578 _ACEOF 13579 cat confdefs.h >>conftest.$ac_ext 13580 cat >>conftest.$ac_ext <<_ACEOF 13581 /* end confdefs.h. */ 13582 $ac_includes_default 13583 int 13584 main () 13585 { 13586 if (sizeof ((size_t))) 13587 return 0; 13588 ; 13589 return 0; 13590 } 13591 _ACEOF 13592 rm -f conftest.$ac_objext 13593 if { (ac_try="$ac_compile" 13594 case "(($ac_try" in 13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13596 *) ac_try_echo=$ac_try;; 13597 esac 13598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13599 $as_echo "$ac_try_echo") >&5 13600 (eval "$ac_compile") 2>conftest.er1 13601 ac_status=$? 13602 grep -v '^ *+' conftest.er1 >conftest.err 13603 rm -f conftest.er1 13604 cat conftest.err >&5 13605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13606 (exit $ac_status); } && { 13607 test -z "$ac_c_werror_flag" || 13608 test ! -s conftest.err 13609 } && test -s conftest.$ac_objext; then 13610 : 13611 else 13612 $as_echo "$as_me: failed program was:" >&5 13613 sed 's/^/| /' conftest.$ac_ext >&5 13614 13615 ac_cv_type_size_t=yes 13616 fi 13617 13618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13619 else 13620 $as_echo "$as_me: failed program was:" >&5 13621 sed 's/^/| /' conftest.$ac_ext >&5 13622 13623 13624 fi 13625 13626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13627 fi 13628 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 13629 $as_echo "$ac_cv_type_size_t" >&6; } 13630 if test "x$ac_cv_type_size_t" = x""yes; then 13631 : 13632 else 13633 13634 cat >>confdefs.h <<_ACEOF 13635 #define size_t unsigned int 13636 _ACEOF 13637 13638 fi 13639 13640 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 13641 $as_echo_n "checking for struct stat.st_blksize... " >&6; } 13642 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then 13643 $as_echo_n "(cached) " >&6 13644 else 13645 cat >conftest.$ac_ext <<_ACEOF 13646 /* confdefs.h. */ 13647 _ACEOF 13648 cat confdefs.h >>conftest.$ac_ext 13649 cat >>conftest.$ac_ext <<_ACEOF 13650 /* end confdefs.h. */ 13651 $ac_includes_default 13652 int 13653 main () 13654 { 13655 static struct stat ac_aggr; 13656 if (ac_aggr.st_blksize) 13657 return 0; 13658 ; 13659 return 0; 13660 } 13661 _ACEOF 13662 rm -f conftest.$ac_objext 13663 if { (ac_try="$ac_compile" 13664 case "(($ac_try" in 13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13666 *) ac_try_echo=$ac_try;; 13667 esac 13668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13669 $as_echo "$ac_try_echo") >&5 13670 (eval "$ac_compile") 2>conftest.er1 13671 ac_status=$? 13672 grep -v '^ *+' conftest.er1 >conftest.err 13673 rm -f conftest.er1 13674 cat conftest.err >&5 13675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13676 (exit $ac_status); } && { 13677 test -z "$ac_c_werror_flag" || 13678 test ! -s conftest.err 13679 } && test -s conftest.$ac_objext; then 13680 ac_cv_member_struct_stat_st_blksize=yes 13681 else 13682 $as_echo "$as_me: failed program was:" >&5 13683 sed 's/^/| /' conftest.$ac_ext >&5 13684 13685 cat >conftest.$ac_ext <<_ACEOF 13686 /* confdefs.h. */ 13687 _ACEOF 13688 cat confdefs.h >>conftest.$ac_ext 13689 cat >>conftest.$ac_ext <<_ACEOF 13690 /* end confdefs.h. */ 13691 $ac_includes_default 13692 int 13693 main () 13694 { 13695 static struct stat ac_aggr; 13696 if (sizeof ac_aggr.st_blksize) 13697 return 0; 13698 ; 13699 return 0; 13700 } 13701 _ACEOF 13702 rm -f conftest.$ac_objext 13703 if { (ac_try="$ac_compile" 13704 case "(($ac_try" in 13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13706 *) ac_try_echo=$ac_try;; 13707 esac 13708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13709 $as_echo "$ac_try_echo") >&5 13710 (eval "$ac_compile") 2>conftest.er1 13711 ac_status=$? 13712 grep -v '^ *+' conftest.er1 >conftest.err 13713 rm -f conftest.er1 13714 cat conftest.err >&5 13715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13716 (exit $ac_status); } && { 13717 test -z "$ac_c_werror_flag" || 13718 test ! -s conftest.err 13719 } && test -s conftest.$ac_objext; then 13720 ac_cv_member_struct_stat_st_blksize=yes 13721 else 13722 $as_echo "$as_me: failed program was:" >&5 13723 sed 's/^/| /' conftest.$ac_ext >&5 13724 13725 ac_cv_member_struct_stat_st_blksize=no 13726 fi 13727 13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13729 fi 13730 13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13732 fi 13733 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 13734 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; } 13735 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then 13736 13737 cat >>confdefs.h <<_ACEOF 13738 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 13739 _ACEOF 13740 13741 13742 cat >>confdefs.h <<\_ACEOF 13743 #define HAVE_ST_BLKSIZE 1 13744 _ACEOF 13745 13746 fi 13747 13748 13749 13750 # Checks for library functions. 13751 13752 for ac_header in stdlib.h 13753 do 13754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13757 $as_echo_n "checking for $ac_header... " >&6; } 13758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13759 $as_echo_n "(cached) " >&6 13760 fi 13761 ac_res=`eval 'as_val=${'$as_ac_Header'} 13762 $as_echo "$as_val"'` 13763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13764 $as_echo "$ac_res" >&6; } 13765 else 13766 # Is the header compilable? 13767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13768 $as_echo_n "checking $ac_header usability... " >&6; } 13769 cat >conftest.$ac_ext <<_ACEOF 13770 /* confdefs.h. */ 13771 _ACEOF 13772 cat confdefs.h >>conftest.$ac_ext 13773 cat >>conftest.$ac_ext <<_ACEOF 13774 /* end confdefs.h. */ 13775 $ac_includes_default 13776 #include <$ac_header> 13777 _ACEOF 13778 rm -f conftest.$ac_objext 13779 if { (ac_try="$ac_compile" 13780 case "(($ac_try" in 13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13782 *) ac_try_echo=$ac_try;; 13783 esac 13784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13785 $as_echo "$ac_try_echo") >&5 13786 (eval "$ac_compile") 2>conftest.er1 13787 ac_status=$? 13788 grep -v '^ *+' conftest.er1 >conftest.err 13789 rm -f conftest.er1 13790 cat conftest.err >&5 13791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13792 (exit $ac_status); } && { 13793 test -z "$ac_c_werror_flag" || 13794 test ! -s conftest.err 13795 } && test -s conftest.$ac_objext; then 13796 ac_header_compiler=yes 13797 else 13798 $as_echo "$as_me: failed program was:" >&5 13799 sed 's/^/| /' conftest.$ac_ext >&5 13800 13801 ac_header_compiler=no 13802 fi 13803 13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13806 $as_echo "$ac_header_compiler" >&6; } 13807 13808 # Is the header present? 13809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13810 $as_echo_n "checking $ac_header presence... " >&6; } 13811 cat >conftest.$ac_ext <<_ACEOF 13812 /* confdefs.h. */ 13813 _ACEOF 13814 cat confdefs.h >>conftest.$ac_ext 13815 cat >>conftest.$ac_ext <<_ACEOF 13816 /* end confdefs.h. */ 13817 #include <$ac_header> 13818 _ACEOF 13819 if { (ac_try="$ac_cpp conftest.$ac_ext" 13820 case "(($ac_try" in 13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13822 *) ac_try_echo=$ac_try;; 13823 esac 13824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13825 $as_echo "$ac_try_echo") >&5 13826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13827 ac_status=$? 13828 grep -v '^ *+' conftest.er1 >conftest.err 13829 rm -f conftest.er1 13830 cat conftest.err >&5 13831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13832 (exit $ac_status); } >/dev/null && { 13833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13834 test ! -s conftest.err 13835 }; then 13836 ac_header_preproc=yes 13837 else 13838 $as_echo "$as_me: failed program was:" >&5 13839 sed 's/^/| /' conftest.$ac_ext >&5 13840 13841 ac_header_preproc=no 13842 fi 13843 13844 rm -f conftest.err conftest.$ac_ext 13845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13846 $as_echo "$ac_header_preproc" >&6; } 13847 13848 # So? What about this header? 13849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13850 yes:no: ) 13851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13855 ac_header_preproc=yes 13856 ;; 13857 no:yes:* ) 13858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13861 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13865 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13870 ( cat <<\_ASBOX 13871 ## --------------------------------------------------- ## 13872 ## Report this to libmtp-discuss (at] lists.sourceforge.net ## 13873 ## --------------------------------------------------- ## 13874 _ASBOX 13875 ) | sed "s/^/$as_me: WARNING: /" >&2 13876 ;; 13877 esac 13878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13879 $as_echo_n "checking for $ac_header... " >&6; } 13880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13881 $as_echo_n "(cached) " >&6 13882 else 13883 eval "$as_ac_Header=\$ac_header_preproc" 13884 fi 13885 ac_res=`eval 'as_val=${'$as_ac_Header'} 13886 $as_echo "$as_val"'` 13887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13888 $as_echo "$ac_res" >&6; } 13889 13890 fi 13891 as_val=`eval 'as_val=${'$as_ac_Header'} 13892 $as_echo "$as_val"'` 13893 if test "x$as_val" = x""yes; then 13894 cat >>confdefs.h <<_ACEOF 13895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13896 _ACEOF 13897 13898 fi 13899 13900 done 13901 13902 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 13903 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } 13904 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 13905 $as_echo_n "(cached) " >&6 13906 else 13907 if test "$cross_compiling" = yes; then 13908 ac_cv_func_malloc_0_nonnull=no 13909 else 13910 cat >conftest.$ac_ext <<_ACEOF 13911 /* confdefs.h. */ 13912 _ACEOF 13913 cat confdefs.h >>conftest.$ac_ext 13914 cat >>conftest.$ac_ext <<_ACEOF 13915 /* end confdefs.h. */ 13916 #if defined STDC_HEADERS || defined HAVE_STDLIB_H 13917 # include <stdlib.h> 13918 #else 13919 char *malloc (); 13920 #endif 13921 13922 int 13923 main () 13924 { 13925 return ! malloc (0); 13926 ; 13927 return 0; 13928 } 13929 _ACEOF 13930 rm -f conftest$ac_exeext 13931 if { (ac_try="$ac_link" 13932 case "(($ac_try" in 13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13934 *) ac_try_echo=$ac_try;; 13935 esac 13936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13937 $as_echo "$ac_try_echo") >&5 13938 (eval "$ac_link") 2>&5 13939 ac_status=$? 13940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13942 { (case "(($ac_try" in 13943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13944 *) ac_try_echo=$ac_try;; 13945 esac 13946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13947 $as_echo "$ac_try_echo") >&5 13948 (eval "$ac_try") 2>&5 13949 ac_status=$? 13950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13951 (exit $ac_status); }; }; then 13952 ac_cv_func_malloc_0_nonnull=yes 13953 else 13954 $as_echo "$as_me: program exited with status $ac_status" >&5 13955 $as_echo "$as_me: failed program was:" >&5 13956 sed 's/^/| /' conftest.$ac_ext >&5 13957 13958 ( exit $ac_status ) 13959 ac_cv_func_malloc_0_nonnull=no 13960 fi 13961 rm -rf conftest.dSYM 13962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13963 fi 13964 13965 13966 fi 13967 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 13968 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 13969 if test $ac_cv_func_malloc_0_nonnull = yes; then 13970 13971 cat >>confdefs.h <<\_ACEOF 13972 #define HAVE_MALLOC 1 13973 _ACEOF 13974 13975 else 13976 cat >>confdefs.h <<\_ACEOF 13977 #define HAVE_MALLOC 0 13978 _ACEOF 13979 13980 case " $LIBOBJS " in 13981 *" malloc.$ac_objext "* ) ;; 13982 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 13983 ;; 13984 esac 13985 13986 13987 cat >>confdefs.h <<\_ACEOF 13988 #define malloc rpl_malloc 13989 _ACEOF 13990 13991 fi 13992 13993 13994 13995 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 13996 $as_echo_n "checking for working memcmp... " >&6; } 13997 if test "${ac_cv_func_memcmp_working+set}" = set; then 13998 $as_echo_n "(cached) " >&6 13999 else 14000 if test "$cross_compiling" = yes; then 14001 ac_cv_func_memcmp_working=no 14002 else 14003 cat >conftest.$ac_ext <<_ACEOF 14004 /* confdefs.h. */ 14005 _ACEOF 14006 cat confdefs.h >>conftest.$ac_ext 14007 cat >>conftest.$ac_ext <<_ACEOF 14008 /* end confdefs.h. */ 14009 $ac_includes_default 14010 int 14011 main () 14012 { 14013 14014 /* Some versions of memcmp are not 8-bit clean. */ 14015 char c0 = '\100', c1 = '\200', c2 = '\201'; 14016 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 14017 return 1; 14018 14019 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 14020 or more and with at least one buffer not starting on a 4-byte boundary. 14021 William Lewis provided this test program. */ 14022 { 14023 char foo[21]; 14024 char bar[21]; 14025 int i; 14026 for (i = 0; i < 4; i++) 14027 { 14028 char *a = foo + i; 14029 char *b = bar + i; 14030 strcpy (a, "--------01111111"); 14031 strcpy (b, "--------10000000"); 14032 if (memcmp (a, b, 16) >= 0) 14033 return 1; 14034 } 14035 return 0; 14036 } 14037 14038 ; 14039 return 0; 14040 } 14041 _ACEOF 14042 rm -f conftest$ac_exeext 14043 if { (ac_try="$ac_link" 14044 case "(($ac_try" in 14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14046 *) ac_try_echo=$ac_try;; 14047 esac 14048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14049 $as_echo "$ac_try_echo") >&5 14050 (eval "$ac_link") 2>&5 14051 ac_status=$? 14052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14054 { (case "(($ac_try" in 14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14056 *) ac_try_echo=$ac_try;; 14057 esac 14058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14059 $as_echo "$ac_try_echo") >&5 14060 (eval "$ac_try") 2>&5 14061 ac_status=$? 14062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14063 (exit $ac_status); }; }; then 14064 ac_cv_func_memcmp_working=yes 14065 else 14066 $as_echo "$as_me: program exited with status $ac_status" >&5 14067 $as_echo "$as_me: failed program was:" >&5 14068 sed 's/^/| /' conftest.$ac_ext >&5 14069 14070 ( exit $ac_status ) 14071 ac_cv_func_memcmp_working=no 14072 fi 14073 rm -rf conftest.dSYM 14074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14075 fi 14076 14077 14078 fi 14079 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 14080 $as_echo "$ac_cv_func_memcmp_working" >&6; } 14081 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 14082 *" memcmp.$ac_objext "* ) ;; 14083 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14084 ;; 14085 esac 14086 14087 14088 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 14089 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } 14090 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then 14091 $as_echo_n "(cached) " >&6 14092 else 14093 rm -f conftest.sym conftest.file 14094 echo >conftest.file 14095 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 14096 if test "$cross_compiling" = yes; then 14097 ac_cv_func_lstat_dereferences_slashed_symlink=no 14098 else 14099 cat >conftest.$ac_ext <<_ACEOF 14100 /* confdefs.h. */ 14101 _ACEOF 14102 cat confdefs.h >>conftest.$ac_ext 14103 cat >>conftest.$ac_ext <<_ACEOF 14104 /* end confdefs.h. */ 14105 $ac_includes_default 14106 int 14107 main () 14108 { 14109 struct stat sbuf; 14110 /* Linux will dereference the symlink and fail. 14111 That is better in the sense that it means we will not 14112 have to compile and use the lstat wrapper. */ 14113 return lstat ("conftest.sym/", &sbuf) == 0; 14114 ; 14115 return 0; 14116 } 14117 _ACEOF 14118 rm -f conftest$ac_exeext 14119 if { (ac_try="$ac_link" 14120 case "(($ac_try" in 14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14122 *) ac_try_echo=$ac_try;; 14123 esac 14124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14125 $as_echo "$ac_try_echo") >&5 14126 (eval "$ac_link") 2>&5 14127 ac_status=$? 14128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14130 { (case "(($ac_try" in 14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14132 *) ac_try_echo=$ac_try;; 14133 esac 14134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14135 $as_echo "$ac_try_echo") >&5 14136 (eval "$ac_try") 2>&5 14137 ac_status=$? 14138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14139 (exit $ac_status); }; }; then 14140 ac_cv_func_lstat_dereferences_slashed_symlink=yes 14141 else 14142 $as_echo "$as_me: program exited with status $ac_status" >&5 14143 $as_echo "$as_me: failed program was:" >&5 14144 sed 's/^/| /' conftest.$ac_ext >&5 14145 14146 ( exit $ac_status ) 14147 ac_cv_func_lstat_dereferences_slashed_symlink=no 14148 fi 14149 rm -rf conftest.dSYM 14150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14151 fi 14152 14153 14154 else 14155 # If the `ln -s' command failed, then we probably don't even 14156 # have an lstat function. 14157 ac_cv_func_lstat_dereferences_slashed_symlink=no 14158 fi 14159 rm -f conftest.sym conftest.file 14160 14161 fi 14162 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 14163 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 14164 14165 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 14166 14167 cat >>confdefs.h <<_ACEOF 14168 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 14169 _ACEOF 14170 14171 14172 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then 14173 case " $LIBOBJS " in 14174 *" lstat.$ac_objext "* ) ;; 14175 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 14176 ;; 14177 esac 14178 14179 fi 14180 14181 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 14182 $as_echo_n "checking whether stat accepts an empty string... " >&6; } 14183 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then 14184 $as_echo_n "(cached) " >&6 14185 else 14186 if test "$cross_compiling" = yes; then 14187 ac_cv_func_stat_empty_string_bug=yes 14188 else 14189 cat >conftest.$ac_ext <<_ACEOF 14190 /* confdefs.h. */ 14191 _ACEOF 14192 cat confdefs.h >>conftest.$ac_ext 14193 cat >>conftest.$ac_ext <<_ACEOF 14194 /* end confdefs.h. */ 14195 $ac_includes_default 14196 int 14197 main () 14198 { 14199 struct stat sbuf; 14200 return stat ("", &sbuf) == 0; 14201 ; 14202 return 0; 14203 } 14204 _ACEOF 14205 rm -f conftest$ac_exeext 14206 if { (ac_try="$ac_link" 14207 case "(($ac_try" in 14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14209 *) ac_try_echo=$ac_try;; 14210 esac 14211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14212 $as_echo "$ac_try_echo") >&5 14213 (eval "$ac_link") 2>&5 14214 ac_status=$? 14215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14217 { (case "(($ac_try" in 14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14219 *) ac_try_echo=$ac_try;; 14220 esac 14221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14222 $as_echo "$ac_try_echo") >&5 14223 (eval "$ac_try") 2>&5 14224 ac_status=$? 14225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14226 (exit $ac_status); }; }; then 14227 ac_cv_func_stat_empty_string_bug=no 14228 else 14229 $as_echo "$as_me: program exited with status $ac_status" >&5 14230 $as_echo "$as_me: failed program was:" >&5 14231 sed 's/^/| /' conftest.$ac_ext >&5 14232 14233 ( exit $ac_status ) 14234 ac_cv_func_stat_empty_string_bug=yes 14235 fi 14236 rm -rf conftest.dSYM 14237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14238 fi 14239 14240 14241 fi 14242 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 14243 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 14244 if test $ac_cv_func_stat_empty_string_bug = yes; then 14245 case " $LIBOBJS " in 14246 *" stat.$ac_objext "* ) ;; 14247 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 14248 ;; 14249 esac 14250 14251 14252 cat >>confdefs.h <<_ACEOF 14253 #define HAVE_STAT_EMPTY_STRING_BUG 1 14254 _ACEOF 14255 14256 fi 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 for ac_func in basename memset select strdup strerror strrchr strtoul usleep mkstemp 14268 do 14269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14270 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14271 $as_echo_n "checking for $ac_func... " >&6; } 14272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14273 $as_echo_n "(cached) " >&6 14274 else 14275 cat >conftest.$ac_ext <<_ACEOF 14276 /* confdefs.h. */ 14277 _ACEOF 14278 cat confdefs.h >>conftest.$ac_ext 14279 cat >>conftest.$ac_ext <<_ACEOF 14280 /* end confdefs.h. */ 14281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14282 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14283 #define $ac_func innocuous_$ac_func 14284 14285 /* System header to define __stub macros and hopefully few prototypes, 14286 which can conflict with char $ac_func (); below. 14287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14288 <limits.h> exists even on freestanding compilers. */ 14289 14290 #ifdef __STDC__ 14291 # include <limits.h> 14292 #else 14293 # include <assert.h> 14294 #endif 14295 14296 #undef $ac_func 14297 14298 /* Override any GCC internal prototype to avoid an error. 14299 Use char because int might match the return type of a GCC 14300 builtin and then its argument prototype would still apply. */ 14301 #ifdef __cplusplus 14302 extern "C" 14303 #endif 14304 char $ac_func (); 14305 /* The GNU C library defines this for functions which it implements 14306 to always fail with ENOSYS. Some functions are actually named 14307 something starting with __ and the normal name is an alias. */ 14308 #if defined __stub_$ac_func || defined __stub___$ac_func 14309 choke me 14310 #endif 14311 14312 int 14313 main () 14314 { 14315 return $ac_func (); 14316 ; 14317 return 0; 14318 } 14319 _ACEOF 14320 rm -f conftest.$ac_objext conftest$ac_exeext 14321 if { (ac_try="$ac_link" 14322 case "(($ac_try" in 14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14324 *) ac_try_echo=$ac_try;; 14325 esac 14326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14327 $as_echo "$ac_try_echo") >&5 14328 (eval "$ac_link") 2>conftest.er1 14329 ac_status=$? 14330 grep -v '^ *+' conftest.er1 >conftest.err 14331 rm -f conftest.er1 14332 cat conftest.err >&5 14333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14334 (exit $ac_status); } && { 14335 test -z "$ac_c_werror_flag" || 14336 test ! -s conftest.err 14337 } && test -s conftest$ac_exeext && { 14338 test "$cross_compiling" = yes || 14339 $as_test_x conftest$ac_exeext 14340 }; then 14341 eval "$as_ac_var=yes" 14342 else 14343 $as_echo "$as_me: failed program was:" >&5 14344 sed 's/^/| /' conftest.$ac_ext >&5 14345 14346 eval "$as_ac_var=no" 14347 fi 14348 14349 rm -rf conftest.dSYM 14350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14351 conftest$ac_exeext conftest.$ac_ext 14352 fi 14353 ac_res=`eval 'as_val=${'$as_ac_var'} 14354 $as_echo "$as_val"'` 14355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14356 $as_echo "$ac_res" >&6; } 14357 as_val=`eval 'as_val=${'$as_ac_var'} 14358 $as_echo "$as_val"'` 14359 if test "x$as_val" = x""yes; then 14360 cat >>confdefs.h <<_ACEOF 14361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14362 _ACEOF 14363 14364 fi 14365 done 14366 14367 14368 # Switches. 14369 # Enable LFS (Large File Support) 14370 # Check whether --enable-largefile was given. 14371 if test "${enable_largefile+set}" = set; then 14372 enableval=$enable_largefile; 14373 fi 14374 14375 if test "$enable_largefile" != no; then 14376 14377 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 14378 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14379 if test "${ac_cv_sys_largefile_CC+set}" = set; then 14380 $as_echo_n "(cached) " >&6 14381 else 14382 ac_cv_sys_largefile_CC=no 14383 if test "$GCC" != yes; then 14384 ac_save_CC=$CC 14385 while :; do 14386 # IRIX 6.2 and later do not support large files by default, 14387 # so use the C compiler's -n32 option if that helps. 14388 cat >conftest.$ac_ext <<_ACEOF 14389 /* confdefs.h. */ 14390 _ACEOF 14391 cat confdefs.h >>conftest.$ac_ext 14392 cat >>conftest.$ac_ext <<_ACEOF 14393 /* end confdefs.h. */ 14394 #include <sys/types.h> 14395 /* Check that off_t can represent 2**63 - 1 correctly. 14396 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14397 since some C++ compilers masquerading as C compilers 14398 incorrectly reject 9223372036854775807. */ 14399 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14401 && LARGE_OFF_T % 2147483647 == 1) 14402 ? 1 : -1]; 14403 int 14404 main () 14405 { 14406 14407 ; 14408 return 0; 14409 } 14410 _ACEOF 14411 rm -f conftest.$ac_objext 14412 if { (ac_try="$ac_compile" 14413 case "(($ac_try" in 14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14415 *) ac_try_echo=$ac_try;; 14416 esac 14417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14418 $as_echo "$ac_try_echo") >&5 14419 (eval "$ac_compile") 2>conftest.er1 14420 ac_status=$? 14421 grep -v '^ *+' conftest.er1 >conftest.err 14422 rm -f conftest.er1 14423 cat conftest.err >&5 14424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14425 (exit $ac_status); } && { 14426 test -z "$ac_c_werror_flag" || 14427 test ! -s conftest.err 14428 } && test -s conftest.$ac_objext; then 14429 break 14430 else 14431 $as_echo "$as_me: failed program was:" >&5 14432 sed 's/^/| /' conftest.$ac_ext >&5 14433 14434 14435 fi 14436 14437 rm -f core conftest.err conftest.$ac_objext 14438 CC="$CC -n32" 14439 rm -f conftest.$ac_objext 14440 if { (ac_try="$ac_compile" 14441 case "(($ac_try" in 14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14443 *) ac_try_echo=$ac_try;; 14444 esac 14445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14446 $as_echo "$ac_try_echo") >&5 14447 (eval "$ac_compile") 2>conftest.er1 14448 ac_status=$? 14449 grep -v '^ *+' conftest.er1 >conftest.err 14450 rm -f conftest.er1 14451 cat conftest.err >&5 14452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14453 (exit $ac_status); } && { 14454 test -z "$ac_c_werror_flag" || 14455 test ! -s conftest.err 14456 } && test -s conftest.$ac_objext; then 14457 ac_cv_sys_largefile_CC=' -n32'; break 14458 else 14459 $as_echo "$as_me: failed program was:" >&5 14460 sed 's/^/| /' conftest.$ac_ext >&5 14461 14462 14463 fi 14464 14465 rm -f core conftest.err conftest.$ac_objext 14466 break 14467 done 14468 CC=$ac_save_CC 14469 rm -f conftest.$ac_ext 14470 fi 14471 fi 14472 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 14473 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 14474 if test "$ac_cv_sys_largefile_CC" != no; then 14475 CC=$CC$ac_cv_sys_largefile_CC 14476 fi 14477 14478 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14479 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14480 if test "${ac_cv_sys_file_offset_bits+set}" = set; then 14481 $as_echo_n "(cached) " >&6 14482 else 14483 while :; do 14484 cat >conftest.$ac_ext <<_ACEOF 14485 /* confdefs.h. */ 14486 _ACEOF 14487 cat confdefs.h >>conftest.$ac_ext 14488 cat >>conftest.$ac_ext <<_ACEOF 14489 /* end confdefs.h. */ 14490 #include <sys/types.h> 14491 /* Check that off_t can represent 2**63 - 1 correctly. 14492 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14493 since some C++ compilers masquerading as C compilers 14494 incorrectly reject 9223372036854775807. */ 14495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14497 && LARGE_OFF_T % 2147483647 == 1) 14498 ? 1 : -1]; 14499 int 14500 main () 14501 { 14502 14503 ; 14504 return 0; 14505 } 14506 _ACEOF 14507 rm -f conftest.$ac_objext 14508 if { (ac_try="$ac_compile" 14509 case "(($ac_try" in 14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14511 *) ac_try_echo=$ac_try;; 14512 esac 14513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14514 $as_echo "$ac_try_echo") >&5 14515 (eval "$ac_compile") 2>conftest.er1 14516 ac_status=$? 14517 grep -v '^ *+' conftest.er1 >conftest.err 14518 rm -f conftest.er1 14519 cat conftest.err >&5 14520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14521 (exit $ac_status); } && { 14522 test -z "$ac_c_werror_flag" || 14523 test ! -s conftest.err 14524 } && test -s conftest.$ac_objext; then 14525 ac_cv_sys_file_offset_bits=no; break 14526 else 14527 $as_echo "$as_me: failed program was:" >&5 14528 sed 's/^/| /' conftest.$ac_ext >&5 14529 14530 14531 fi 14532 14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14534 cat >conftest.$ac_ext <<_ACEOF 14535 /* confdefs.h. */ 14536 _ACEOF 14537 cat confdefs.h >>conftest.$ac_ext 14538 cat >>conftest.$ac_ext <<_ACEOF 14539 /* end confdefs.h. */ 14540 #define _FILE_OFFSET_BITS 64 14541 #include <sys/types.h> 14542 /* Check that off_t can represent 2**63 - 1 correctly. 14543 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14544 since some C++ compilers masquerading as C compilers 14545 incorrectly reject 9223372036854775807. */ 14546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14548 && LARGE_OFF_T % 2147483647 == 1) 14549 ? 1 : -1]; 14550 int 14551 main () 14552 { 14553 14554 ; 14555 return 0; 14556 } 14557 _ACEOF 14558 rm -f conftest.$ac_objext 14559 if { (ac_try="$ac_compile" 14560 case "(($ac_try" in 14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14562 *) ac_try_echo=$ac_try;; 14563 esac 14564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14565 $as_echo "$ac_try_echo") >&5 14566 (eval "$ac_compile") 2>conftest.er1 14567 ac_status=$? 14568 grep -v '^ *+' conftest.er1 >conftest.err 14569 rm -f conftest.er1 14570 cat conftest.err >&5 14571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14572 (exit $ac_status); } && { 14573 test -z "$ac_c_werror_flag" || 14574 test ! -s conftest.err 14575 } && test -s conftest.$ac_objext; then 14576 ac_cv_sys_file_offset_bits=64; break 14577 else 14578 $as_echo "$as_me: failed program was:" >&5 14579 sed 's/^/| /' conftest.$ac_ext >&5 14580 14581 14582 fi 14583 14584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14585 ac_cv_sys_file_offset_bits=unknown 14586 break 14587 done 14588 fi 14589 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 14590 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14591 case $ac_cv_sys_file_offset_bits in #( 14592 no | unknown) ;; 14593 *) 14594 cat >>confdefs.h <<_ACEOF 14595 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14596 _ACEOF 14597 ;; 14598 esac 14599 rm -rf conftest* 14600 if test $ac_cv_sys_file_offset_bits = unknown; then 14601 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 14602 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14603 if test "${ac_cv_sys_large_files+set}" = set; then 14604 $as_echo_n "(cached) " >&6 14605 else 14606 while :; do 14607 cat >conftest.$ac_ext <<_ACEOF 14608 /* confdefs.h. */ 14609 _ACEOF 14610 cat confdefs.h >>conftest.$ac_ext 14611 cat >>conftest.$ac_ext <<_ACEOF 14612 /* end confdefs.h. */ 14613 #include <sys/types.h> 14614 /* Check that off_t can represent 2**63 - 1 correctly. 14615 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14616 since some C++ compilers masquerading as C compilers 14617 incorrectly reject 9223372036854775807. */ 14618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14620 && LARGE_OFF_T % 2147483647 == 1) 14621 ? 1 : -1]; 14622 int 14623 main () 14624 { 14625 14626 ; 14627 return 0; 14628 } 14629 _ACEOF 14630 rm -f conftest.$ac_objext 14631 if { (ac_try="$ac_compile" 14632 case "(($ac_try" in 14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14634 *) ac_try_echo=$ac_try;; 14635 esac 14636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14637 $as_echo "$ac_try_echo") >&5 14638 (eval "$ac_compile") 2>conftest.er1 14639 ac_status=$? 14640 grep -v '^ *+' conftest.er1 >conftest.err 14641 rm -f conftest.er1 14642 cat conftest.err >&5 14643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14644 (exit $ac_status); } && { 14645 test -z "$ac_c_werror_flag" || 14646 test ! -s conftest.err 14647 } && test -s conftest.$ac_objext; then 14648 ac_cv_sys_large_files=no; break 14649 else 14650 $as_echo "$as_me: failed program was:" >&5 14651 sed 's/^/| /' conftest.$ac_ext >&5 14652 14653 14654 fi 14655 14656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14657 cat >conftest.$ac_ext <<_ACEOF 14658 /* confdefs.h. */ 14659 _ACEOF 14660 cat confdefs.h >>conftest.$ac_ext 14661 cat >>conftest.$ac_ext <<_ACEOF 14662 /* end confdefs.h. */ 14663 #define _LARGE_FILES 1 14664 #include <sys/types.h> 14665 /* Check that off_t can represent 2**63 - 1 correctly. 14666 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14667 since some C++ compilers masquerading as C compilers 14668 incorrectly reject 9223372036854775807. */ 14669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14670 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14671 && LARGE_OFF_T % 2147483647 == 1) 14672 ? 1 : -1]; 14673 int 14674 main () 14675 { 14676 14677 ; 14678 return 0; 14679 } 14680 _ACEOF 14681 rm -f conftest.$ac_objext 14682 if { (ac_try="$ac_compile" 14683 case "(($ac_try" in 14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14685 *) ac_try_echo=$ac_try;; 14686 esac 14687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14688 $as_echo "$ac_try_echo") >&5 14689 (eval "$ac_compile") 2>conftest.er1 14690 ac_status=$? 14691 grep -v '^ *+' conftest.er1 >conftest.err 14692 rm -f conftest.er1 14693 cat conftest.err >&5 14694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14695 (exit $ac_status); } && { 14696 test -z "$ac_c_werror_flag" || 14697 test ! -s conftest.err 14698 } && test -s conftest.$ac_objext; then 14699 ac_cv_sys_large_files=1; break 14700 else 14701 $as_echo "$as_me: failed program was:" >&5 14702 sed 's/^/| /' conftest.$ac_ext >&5 14703 14704 14705 fi 14706 14707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14708 ac_cv_sys_large_files=unknown 14709 break 14710 done 14711 fi 14712 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 14713 $as_echo "$ac_cv_sys_large_files" >&6; } 14714 case $ac_cv_sys_large_files in #( 14715 no | unknown) ;; 14716 *) 14717 cat >>confdefs.h <<_ACEOF 14718 #define _LARGE_FILES $ac_cv_sys_large_files 14719 _ACEOF 14720 ;; 14721 esac 14722 rm -rf conftest* 14723 fi 14724 fi 14725 14726 # Stick in "-Werror" if you want to be more aggressive. 14727 # (No need to use AC_SUBST on this default substituted environment variable.) 14728 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes" 14729 14730 # Output files 14731 14732 # Create a stdint.h-like file containing size-specific integer definitions 14733 # that will always be available. The <stdint.h> file is required by the 14734 # library, but we provide this anyway because the libptp2 stuff wants this 14735 # file. 14736 14737 ac_dir=`$as_dirname -- "src/_stdint.h" || 14738 $as_expr X"src/_stdint.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14739 X"src/_stdint.h" : 'X\(//\)[^/]' \| \ 14740 X"src/_stdint.h" : 'X\(//\)$' \| \ 14741 X"src/_stdint.h" : 'X\(/\)' \| . 2>/dev/null || 14742 $as_echo X"src/_stdint.h" | 14743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14744 s//\1/ 14745 q 14746 } 14747 /^X\(\/\/\)[^/].*/{ 14748 s//\1/ 14749 q 14750 } 14751 /^X\(\/\/\)$/{ 14752 s//\1/ 14753 q 14754 } 14755 /^X\(\/\).*/{ 14756 s//\1/ 14757 q 14758 } 14759 s/.*/./; q'` 14760 if test "$ac_dir" != "src/_stdint.h" && test "$ac_dir" != .; then 14761 # The file is in a subdirectory. 14762 test ! -d "$ac_dir" && { as_dir="$ac_dir" 14763 case $as_dir in #( 14764 -*) as_dir=./$as_dir;; 14765 esac 14766 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14767 as_dirs= 14768 while :; do 14769 case $as_dir in #( 14770 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14771 *) as_qdir=$as_dir;; 14772 esac 14773 as_dirs="'$as_qdir' $as_dirs" 14774 as_dir=`$as_dirname -- "$as_dir" || 14775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14776 X"$as_dir" : 'X\(//\)[^/]' \| \ 14777 X"$as_dir" : 'X\(//\)$' \| \ 14778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14779 $as_echo X"$as_dir" | 14780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14781 s//\1/ 14782 q 14783 } 14784 /^X\(\/\/\)[^/].*/{ 14785 s//\1/ 14786 q 14787 } 14788 /^X\(\/\/\)$/{ 14789 s//\1/ 14790 q 14791 } 14792 /^X\(\/\).*/{ 14793 s//\1/ 14794 q 14795 } 14796 s/.*/./; q'` 14797 test -d "$as_dir" && break 14798 done 14799 test -z "$as_dirs" || eval "mkdir $as_dirs" 14800 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14801 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14802 { (exit 1); exit 1; }; }; } 14803 fi 14804 14805 { $as_echo "$as_me:$LINENO: checking for uint8_t in stdint.h" >&5 14806 $as_echo_n "checking for uint8_t in stdint.h... " >&6; } 14807 cat >conftest.$ac_ext <<_ACEOF 14808 /* confdefs.h. */ 14809 _ACEOF 14810 cat confdefs.h >>conftest.$ac_ext 14811 cat >>conftest.$ac_ext <<_ACEOF 14812 /* end confdefs.h. */ 14813 #include <stdint.h> 14814 _ACEOF 14815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14816 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 14817 ac_cv_type_uint8_t=yes 14818 else 14819 ac_cv_type_uint8_t=no 14820 fi 14821 rm -f conftest* 14822 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 14823 $as_echo "$ac_cv_type_uint8_t" >&6; } 14824 if test $ac_cv_type_uint8_t = yes; then 14825 14826 cat > "src/_stdint.h" <<EOF 14827 /* This file is generated automatically by configure */ 14828 #include <stdint.h> 14829 EOF 14830 else 14831 { $as_echo "$as_me:$LINENO: checking for uint8_t in inttypes.h" >&5 14832 $as_echo_n "checking for uint8_t in inttypes.h... " >&6; } 14833 cat >conftest.$ac_ext <<_ACEOF 14834 /* confdefs.h. */ 14835 _ACEOF 14836 cat confdefs.h >>conftest.$ac_ext 14837 cat >>conftest.$ac_ext <<_ACEOF 14838 /* end confdefs.h. */ 14839 #include <inttypes.h> 14840 _ACEOF 14841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14842 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 14843 ac_cv_type_uint8_t=yes 14844 else 14845 ac_cv_type_uint8_t=no 14846 fi 14847 rm -f conftest* 14848 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 14849 $as_echo "$ac_cv_type_uint8_t" >&6; } 14850 if test $ac_cv_type_uint8_t = yes; then 14851 cat > "src/_stdint.h" <<EOF 14852 /* This file is generated automatically by configure */ 14853 #include <inttypes.h> 14854 EOF 14855 else 14856 { $as_echo "$as_me:$LINENO: checking for uint8_t in sys/types.h" >&5 14857 $as_echo_n "checking for uint8_t in sys/types.h... " >&6; } 14858 cat >conftest.$ac_ext <<_ACEOF 14859 /* confdefs.h. */ 14860 _ACEOF 14861 cat confdefs.h >>conftest.$ac_ext 14862 cat >>conftest.$ac_ext <<_ACEOF 14863 /* end confdefs.h. */ 14864 #include <sys/types.h> 14865 _ACEOF 14866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14867 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 14868 ac_cv_type_uint8_t=yes 14869 else 14870 ac_cv_type_uint8_t=no 14871 fi 14872 rm -f conftest* 14873 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 14874 $as_echo "$ac_cv_type_uint8_t" >&6; } 14875 if test $ac_cv_type_uint8_t = yes; then 14876 cat > "src/_stdint.h" <<EOF 14877 /* This file is generated automatically by configure */ 14878 #include <sys/types.h> 14879 EOF 14880 else 14881 { $as_echo "$as_me:$LINENO: checking for u_int8_t in sys/types.h" >&5 14882 $as_echo_n "checking for u_int8_t in sys/types.h... " >&6; } 14883 cat >conftest.$ac_ext <<_ACEOF 14884 /* confdefs.h. */ 14885 _ACEOF 14886 cat confdefs.h >>conftest.$ac_ext 14887 cat >>conftest.$ac_ext <<_ACEOF 14888 /* end confdefs.h. */ 14889 #include <sys/types.h> 14890 _ACEOF 14891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14892 $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 14893 ac_cv_type_u_int8_t=yes 14894 else 14895 ac_cv_type_u_int8_t=no 14896 fi 14897 rm -f conftest* 14898 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 14899 $as_echo "$ac_cv_type_u_int8_t" >&6; } 14900 if test $ac_cv_type_u_int8_t = yes; then 14901 cat > "src/_stdint.h" <<EOF 14902 /* This file is generated automatically by configure */ 14903 #ifndef __STDINT_H 14904 #define __STDINT_H 14905 #include <sys/types.h> 14906 typedef u_int8_t uint8_t; 14907 typedef u_int16_t uint16_t; 14908 typedef u_int32_t uint32_t; 14909 EOF 14910 14911 { $as_echo "$as_me:$LINENO: checking for u_int64_t in sys/types.h" >&5 14912 $as_echo_n "checking for u_int64_t in sys/types.h... " >&6; } 14913 cat >conftest.$ac_ext <<_ACEOF 14914 /* confdefs.h. */ 14915 _ACEOF 14916 cat confdefs.h >>conftest.$ac_ext 14917 cat >>conftest.$ac_ext <<_ACEOF 14918 /* end confdefs.h. */ 14919 #include <sys/types.h> 14920 _ACEOF 14921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14922 $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 14923 ac_cv_type_u_int64_t=yes 14924 else 14925 ac_cv_type_u_int64_t=no 14926 fi 14927 rm -f conftest* 14928 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 14929 $as_echo "$ac_cv_type_u_int64_t" >&6; } 14930 if test $ac_cv_type_u_int64_t = yes; then 14931 cat >> "src/_stdint.h" <<EOF 14932 typedef u_int64_t uint64_t; 14933 #endif /*!__STDINT_H*/ 14934 EOF 14935 else 14936 cat >> "src/_stdint.h" <<EOF 14937 /* 64-bit types are not available on this system */ 14938 /* typedef u_int64_t uint64_t; */ 14939 #endif /*!__STDINT_H*/ 14940 EOF 14941 fi 14942 14943 14944 14945 else 14946 { $as_echo "$as_me:$LINENO: WARNING: I can't find size-specific integer definitions on this system" >&5 14947 $as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;} 14948 if test -e "src/_stdint.h" ; then 14949 rm -f "src/_stdint.h" 14950 fi 14951 14952 fi 14953 14954 fi 14955 14956 fi 14957 14958 fi 14959 14960 14961 # Create a header file containing NetBSD-style byte swapping macros. 14962 # This m4 macros has caused severe pain, I am considering creating a 14963 # hard-coded byte swapper that will be eternally portable. 14964 14965 ac_dir=`$as_dirname -- "src/gphoto2-endian.h" || 14966 $as_expr X"src/gphoto2-endian.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14967 X"src/gphoto2-endian.h" : 'X\(//\)[^/]' \| \ 14968 X"src/gphoto2-endian.h" : 'X\(//\)$' \| \ 14969 X"src/gphoto2-endian.h" : 'X\(/\)' \| . 2>/dev/null || 14970 $as_echo X"src/gphoto2-endian.h" | 14971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14972 s//\1/ 14973 q 14974 } 14975 /^X\(\/\/\)[^/].*/{ 14976 s//\1/ 14977 q 14978 } 14979 /^X\(\/\/\)$/{ 14980 s//\1/ 14981 q 14982 } 14983 /^X\(\/\).*/{ 14984 s//\1/ 14985 q 14986 } 14987 s/.*/./; q'` 14988 if test "$ac_dir" != "src/gphoto2-endian.h" && test "$ac_dir" != .; then 14989 # The file is in a subdirectory. 14990 test ! -d "$ac_dir" && { as_dir="$ac_dir" 14991 case $as_dir in #( 14992 -*) as_dir=./$as_dir;; 14993 esac 14994 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14995 as_dirs= 14996 while :; do 14997 case $as_dir in #( 14998 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14999 *) as_qdir=$as_dir;; 15000 esac 15001 as_dirs="'$as_qdir' $as_dirs" 15002 as_dir=`$as_dirname -- "$as_dir" || 15003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15004 X"$as_dir" : 'X\(//\)[^/]' \| \ 15005 X"$as_dir" : 'X\(//\)$' \| \ 15006 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15007 $as_echo X"$as_dir" | 15008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15009 s//\1/ 15010 q 15011 } 15012 /^X\(\/\/\)[^/].*/{ 15013 s//\1/ 15014 q 15015 } 15016 /^X\(\/\/\)$/{ 15017 s//\1/ 15018 q 15019 } 15020 /^X\(\/\).*/{ 15021 s//\1/ 15022 q 15023 } 15024 s/.*/./; q'` 15025 test -d "$as_dir" && break 15026 done 15027 test -z "$as_dirs" || eval "mkdir $as_dirs" 15028 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15029 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15030 { (exit 1); exit 1; }; }; } 15031 fi 15032 15033 # We're only interested in the target CPU, but it's not always set 15034 effective_target="$target" 15035 if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then 15036 effective_target="$host" 15037 fi 15038 15039 15040 cat > "src/gphoto2-endian.h" << EOF 15041 /* This file is generated automatically by configure */ 15042 /* It is valid only for the system type ${effective_target} */ 15043 15044 #ifndef __BYTEORDER_H 15045 #define __BYTEORDER_H 15046 15047 EOF 15048 15049 15050 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 15051 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15052 if test "${ac_cv_c_bigendian+set}" = set; then 15053 $as_echo_n "(cached) " >&6 15054 else 15055 ac_cv_c_bigendian=unknown 15056 # See if we're dealing with a universal compiler. 15057 cat >conftest.$ac_ext <<_ACEOF 15058 /* confdefs.h. */ 15059 _ACEOF 15060 cat confdefs.h >>conftest.$ac_ext 15061 cat >>conftest.$ac_ext <<_ACEOF 15062 /* end confdefs.h. */ 15063 #ifndef __APPLE_CC__ 15064 not a universal capable compiler 15065 #endif 15066 typedef int dummy; 15067 15068 _ACEOF 15069 rm -f conftest.$ac_objext 15070 if { (ac_try="$ac_compile" 15071 case "(($ac_try" in 15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15073 *) ac_try_echo=$ac_try;; 15074 esac 15075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15076 $as_echo "$ac_try_echo") >&5 15077 (eval "$ac_compile") 2>conftest.er1 15078 ac_status=$? 15079 grep -v '^ *+' conftest.er1 >conftest.err 15080 rm -f conftest.er1 15081 cat conftest.err >&5 15082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15083 (exit $ac_status); } && { 15084 test -z "$ac_c_werror_flag" || 15085 test ! -s conftest.err 15086 } && test -s conftest.$ac_objext; then 15087 15088 # Check for potential -arch flags. It is not universal unless 15089 # there are some -arch flags. Note that *ppc* also matches 15090 # ppc64. This check is also rather less than ideal. 15091 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( 15092 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; 15093 esac 15094 else 15095 $as_echo "$as_me: failed program was:" >&5 15096 sed 's/^/| /' conftest.$ac_ext >&5 15097 15098 15099 fi 15100 15101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15102 if test $ac_cv_c_bigendian = unknown; then 15103 # See if sys/param.h defines the BYTE_ORDER macro. 15104 cat >conftest.$ac_ext <<_ACEOF 15105 /* confdefs.h. */ 15106 _ACEOF 15107 cat confdefs.h >>conftest.$ac_ext 15108 cat >>conftest.$ac_ext <<_ACEOF 15109 /* end confdefs.h. */ 15110 #include <sys/types.h> 15111 #include <sys/param.h> 15112 15113 int 15114 main () 15115 { 15116 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 15117 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 15118 && LITTLE_ENDIAN) 15119 bogus endian macros 15120 #endif 15121 15122 ; 15123 return 0; 15124 } 15125 _ACEOF 15126 rm -f conftest.$ac_objext 15127 if { (ac_try="$ac_compile" 15128 case "(($ac_try" in 15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15130 *) ac_try_echo=$ac_try;; 15131 esac 15132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15133 $as_echo "$ac_try_echo") >&5 15134 (eval "$ac_compile") 2>conftest.er1 15135 ac_status=$? 15136 grep -v '^ *+' conftest.er1 >conftest.err 15137 rm -f conftest.er1 15138 cat conftest.err >&5 15139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15140 (exit $ac_status); } && { 15141 test -z "$ac_c_werror_flag" || 15142 test ! -s conftest.err 15143 } && test -s conftest.$ac_objext; then 15144 # It does; now see whether it defined to BIG_ENDIAN or not. 15145 cat >conftest.$ac_ext <<_ACEOF 15146 /* confdefs.h. */ 15147 _ACEOF 15148 cat confdefs.h >>conftest.$ac_ext 15149 cat >>conftest.$ac_ext <<_ACEOF 15150 /* end confdefs.h. */ 15151 #include <sys/types.h> 15152 #include <sys/param.h> 15153 15154 int 15155 main () 15156 { 15157 #if BYTE_ORDER != BIG_ENDIAN 15158 not big endian 15159 #endif 15160 15161 ; 15162 return 0; 15163 } 15164 _ACEOF 15165 rm -f conftest.$ac_objext 15166 if { (ac_try="$ac_compile" 15167 case "(($ac_try" in 15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15169 *) ac_try_echo=$ac_try;; 15170 esac 15171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15172 $as_echo "$ac_try_echo") >&5 15173 (eval "$ac_compile") 2>conftest.er1 15174 ac_status=$? 15175 grep -v '^ *+' conftest.er1 >conftest.err 15176 rm -f conftest.er1 15177 cat conftest.err >&5 15178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15179 (exit $ac_status); } && { 15180 test -z "$ac_c_werror_flag" || 15181 test ! -s conftest.err 15182 } && test -s conftest.$ac_objext; then 15183 ac_cv_c_bigendian=yes 15184 else 15185 $as_echo "$as_me: failed program was:" >&5 15186 sed 's/^/| /' conftest.$ac_ext >&5 15187 15188 ac_cv_c_bigendian=no 15189 fi 15190 15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15192 else 15193 $as_echo "$as_me: failed program was:" >&5 15194 sed 's/^/| /' conftest.$ac_ext >&5 15195 15196 15197 fi 15198 15199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15200 fi 15201 if test $ac_cv_c_bigendian = unknown; then 15202 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 15203 cat >conftest.$ac_ext <<_ACEOF 15204 /* confdefs.h. */ 15205 _ACEOF 15206 cat confdefs.h >>conftest.$ac_ext 15207 cat >>conftest.$ac_ext <<_ACEOF 15208 /* end confdefs.h. */ 15209 #include <limits.h> 15210 15211 int 15212 main () 15213 { 15214 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 15215 bogus endian macros 15216 #endif 15217 15218 ; 15219 return 0; 15220 } 15221 _ACEOF 15222 rm -f conftest.$ac_objext 15223 if { (ac_try="$ac_compile" 15224 case "(($ac_try" in 15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15226 *) ac_try_echo=$ac_try;; 15227 esac 15228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15229 $as_echo "$ac_try_echo") >&5 15230 (eval "$ac_compile") 2>conftest.er1 15231 ac_status=$? 15232 grep -v '^ *+' conftest.er1 >conftest.err 15233 rm -f conftest.er1 15234 cat conftest.err >&5 15235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15236 (exit $ac_status); } && { 15237 test -z "$ac_c_werror_flag" || 15238 test ! -s conftest.err 15239 } && test -s conftest.$ac_objext; then 15240 # It does; now see whether it defined to _BIG_ENDIAN or not. 15241 cat >conftest.$ac_ext <<_ACEOF 15242 /* confdefs.h. */ 15243 _ACEOF 15244 cat confdefs.h >>conftest.$ac_ext 15245 cat >>conftest.$ac_ext <<_ACEOF 15246 /* end confdefs.h. */ 15247 #include <limits.h> 15248 15249 int 15250 main () 15251 { 15252 #ifndef _BIG_ENDIAN 15253 not big endian 15254 #endif 15255 15256 ; 15257 return 0; 15258 } 15259 _ACEOF 15260 rm -f conftest.$ac_objext 15261 if { (ac_try="$ac_compile" 15262 case "(($ac_try" in 15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15264 *) ac_try_echo=$ac_try;; 15265 esac 15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15267 $as_echo "$ac_try_echo") >&5 15268 (eval "$ac_compile") 2>conftest.er1 15269 ac_status=$? 15270 grep -v '^ *+' conftest.er1 >conftest.err 15271 rm -f conftest.er1 15272 cat conftest.err >&5 15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15274 (exit $ac_status); } && { 15275 test -z "$ac_c_werror_flag" || 15276 test ! -s conftest.err 15277 } && test -s conftest.$ac_objext; then 15278 ac_cv_c_bigendian=yes 15279 else 15280 $as_echo "$as_me: failed program was:" >&5 15281 sed 's/^/| /' conftest.$ac_ext >&5 15282 15283 ac_cv_c_bigendian=no 15284 fi 15285 15286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15287 else 15288 $as_echo "$as_me: failed program was:" >&5 15289 sed 's/^/| /' conftest.$ac_ext >&5 15290 15291 15292 fi 15293 15294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15295 fi 15296 if test $ac_cv_c_bigendian = unknown; then 15297 # Compile a test program. 15298 if test "$cross_compiling" = yes; then 15299 # Try to guess by grepping values from an object file. 15300 cat >conftest.$ac_ext <<_ACEOF 15301 /* confdefs.h. */ 15302 _ACEOF 15303 cat confdefs.h >>conftest.$ac_ext 15304 cat >>conftest.$ac_ext <<_ACEOF 15305 /* end confdefs.h. */ 15306 short int ascii_mm[] = 15307 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15308 short int ascii_ii[] = 15309 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15310 int use_ascii (int i) { 15311 return ascii_mm[i] + ascii_ii[i]; 15312 } 15313 short int ebcdic_ii[] = 15314 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15315 short int ebcdic_mm[] = 15316 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15317 int use_ebcdic (int i) { 15318 return ebcdic_mm[i] + ebcdic_ii[i]; 15319 } 15320 extern int foo; 15321 15322 int 15323 main () 15324 { 15325 return use_ascii (foo) == use_ebcdic (foo); 15326 ; 15327 return 0; 15328 } 15329 _ACEOF 15330 rm -f conftest.$ac_objext 15331 if { (ac_try="$ac_compile" 15332 case "(($ac_try" in 15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15334 *) ac_try_echo=$ac_try;; 15335 esac 15336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15337 $as_echo "$ac_try_echo") >&5 15338 (eval "$ac_compile") 2>conftest.er1 15339 ac_status=$? 15340 grep -v '^ *+' conftest.er1 >conftest.err 15341 rm -f conftest.er1 15342 cat conftest.err >&5 15343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15344 (exit $ac_status); } && { 15345 test -z "$ac_c_werror_flag" || 15346 test ! -s conftest.err 15347 } && test -s conftest.$ac_objext; then 15348 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15349 ac_cv_c_bigendian=yes 15350 fi 15351 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15352 if test "$ac_cv_c_bigendian" = unknown; then 15353 ac_cv_c_bigendian=no 15354 else 15355 # finding both strings is unlikely to happen, but who knows? 15356 ac_cv_c_bigendian=unknown 15357 fi 15358 fi 15359 else 15360 $as_echo "$as_me: failed program was:" >&5 15361 sed 's/^/| /' conftest.$ac_ext >&5 15362 15363 15364 fi 15365 15366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15367 else 15368 cat >conftest.$ac_ext <<_ACEOF 15369 /* confdefs.h. */ 15370 _ACEOF 15371 cat confdefs.h >>conftest.$ac_ext 15372 cat >>conftest.$ac_ext <<_ACEOF 15373 /* end confdefs.h. */ 15374 $ac_includes_default 15375 int 15376 main () 15377 { 15378 15379 /* Are we little or big endian? From Harbison&Steele. */ 15380 union 15381 { 15382 long int l; 15383 char c[sizeof (long int)]; 15384 } u; 15385 u.l = 1; 15386 return u.c[sizeof (long int) - 1] == 1; 15387 15388 ; 15389 return 0; 15390 } 15391 _ACEOF 15392 rm -f conftest$ac_exeext 15393 if { (ac_try="$ac_link" 15394 case "(($ac_try" in 15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15396 *) ac_try_echo=$ac_try;; 15397 esac 15398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15399 $as_echo "$ac_try_echo") >&5 15400 (eval "$ac_link") 2>&5 15401 ac_status=$? 15402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15404 { (case "(($ac_try" in 15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15406 *) ac_try_echo=$ac_try;; 15407 esac 15408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15409 $as_echo "$ac_try_echo") >&5 15410 (eval "$ac_try") 2>&5 15411 ac_status=$? 15412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15413 (exit $ac_status); }; }; then 15414 ac_cv_c_bigendian=no 15415 else 15416 $as_echo "$as_me: program exited with status $ac_status" >&5 15417 $as_echo "$as_me: failed program was:" >&5 15418 sed 's/^/| /' conftest.$ac_ext >&5 15419 15420 ( exit $ac_status ) 15421 ac_cv_c_bigendian=yes 15422 fi 15423 rm -rf conftest.dSYM 15424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15425 fi 15426 15427 15428 fi 15429 fi 15430 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 15431 $as_echo "$ac_cv_c_bigendian" >&6; } 15432 case $ac_cv_c_bigendian in #( 15433 yes) 15434 cat >>confdefs.h <<\_ACEOF 15435 #define WORDS_BIGENDIAN 1 15436 _ACEOF 15437 ;; #( 15438 no) 15439 ;; #( 15440 universal) 15441 15442 cat >>confdefs.h <<\_ACEOF 15443 #define AC_APPLE_UNIVERSAL_BUILD 1 15444 _ACEOF 15445 15446 ;; #( 15447 *) 15448 { { $as_echo "$as_me:$LINENO: error: unknown endianness 15449 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 15450 $as_echo "$as_me: error: unknown endianness 15451 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 15452 { (exit 1); exit 1; }; } ;; 15453 esac 15454 15455 15456 15457 { $as_echo "$as_me:$LINENO: checking for le32toh in machine/endian.h" >&5 15458 $as_echo_n "checking for le32toh in machine/endian.h... " >&6; } 15459 cat >conftest.$ac_ext <<_ACEOF 15460 /* confdefs.h. */ 15461 _ACEOF 15462 cat confdefs.h >>conftest.$ac_ext 15463 cat >>conftest.$ac_ext <<_ACEOF 15464 /* end confdefs.h. */ 15465 15466 #include <machine/endian.h> 15467 #ifdef le32toh 15468 symbol is present 15469 #endif 15470 15471 _ACEOF 15472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15473 $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then 15474 { $as_echo "$as_me:$LINENO: result: yes" >&5 15475 $as_echo "yes" >&6; } 15476 HAVE_LE32TOH=1 15477 cat >> "src/gphoto2-endian.h" << EOF 15478 /* extended byte swapping macros are already available */ 15479 #include <machine/endian.h> 15480 15481 EOF 15482 15483 else 15484 { $as_echo "$as_me:$LINENO: result: no" >&5 15485 $as_echo "no" >&6; } 15486 15487 15488 15489 { $as_echo "$as_me:$LINENO: checking for ntohl in arpa/inet.h" >&5 15490 $as_echo_n "checking for ntohl in arpa/inet.h... " >&6; } 15491 cat >conftest.$ac_ext <<_ACEOF 15492 /* confdefs.h. */ 15493 _ACEOF 15494 cat confdefs.h >>conftest.$ac_ext 15495 cat >>conftest.$ac_ext <<_ACEOF 15496 /* end confdefs.h. */ 15497 15498 #include <arpa/inet.h> 15499 #ifdef ntohl 15500 symbol is present 15501 #endif 15502 15503 _ACEOF 15504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15505 $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then 15506 { $as_echo "$as_me:$LINENO: result: yes" >&5 15507 $as_echo "yes" >&6; } 15508 cat >> "src/gphoto2-endian.h" << EOF 15509 /* ntohl and relatives live here */ 15510 #include <arpa/inet.h> 15511 15512 EOF 15513 15514 else 15515 { $as_echo "$as_me:$LINENO: result: no" >&5 15516 $as_echo "no" >&6; } 15517 15518 { $as_echo "$as_me:$LINENO: checking for ntohl in netinet/in.h" >&5 15519 $as_echo_n "checking for ntohl in netinet/in.h... " >&6; } 15520 cat >conftest.$ac_ext <<_ACEOF 15521 /* confdefs.h. */ 15522 _ACEOF 15523 cat confdefs.h >>conftest.$ac_ext 15524 cat >>conftest.$ac_ext <<_ACEOF 15525 /* end confdefs.h. */ 15526 15527 #include <netinet/in.h> 15528 #ifdef ntohl 15529 symbol is present 15530 #endif 15531 15532 _ACEOF 15533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15534 $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then 15535 { $as_echo "$as_me:$LINENO: result: yes" >&5 15536 $as_echo "yes" >&6; } 15537 cat >> "src/gphoto2-endian.h" << EOF 15538 /* ntohl and relatives live here */ 15539 #include <netinet/in.h> 15540 15541 EOF 15542 15543 else 15544 { $as_echo "$as_me:$LINENO: result: no" >&5 15545 $as_echo "no" >&6; } 15546 true 15547 15548 fi 15549 rm -f conftest* 15550 15551 15552 fi 15553 rm -f conftest* 15554 15555 15556 15557 fi 15558 rm -f conftest* 15559 15560 15561 15562 15563 { $as_echo "$as_me:$LINENO: checking for swap32 in machine/endian.h" >&5 15564 $as_echo_n "checking for swap32 in machine/endian.h... " >&6; } 15565 cat >conftest.$ac_ext <<_ACEOF 15566 /* confdefs.h. */ 15567 _ACEOF 15568 cat confdefs.h >>conftest.$ac_ext 15569 cat >>conftest.$ac_ext <<_ACEOF 15570 /* end confdefs.h. */ 15571 15572 #include <machine/endian.h> 15573 #ifdef swap32 15574 symbol is present 15575 #endif 15576 15577 _ACEOF 15578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15579 $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then 15580 { $as_echo "$as_me:$LINENO: result: yes" >&5 15581 $as_echo "yes" >&6; } 15582 cat >> "src/gphoto2-endian.h" << EOF 15583 /* swap32 and swap16 are defined in machine/endian.h */ 15584 15585 EOF 15586 15587 else 15588 { $as_echo "$as_me:$LINENO: result: no" >&5 15589 $as_echo "no" >&6; } 15590 15591 15592 { $as_echo "$as_me:$LINENO: checking for bswap_32 in byteswap.h" >&5 15593 $as_echo_n "checking for bswap_32 in byteswap.h... " >&6; } 15594 cat >conftest.$ac_ext <<_ACEOF 15595 /* confdefs.h. */ 15596 _ACEOF 15597 cat confdefs.h >>conftest.$ac_ext 15598 cat >>conftest.$ac_ext <<_ACEOF 15599 /* end confdefs.h. */ 15600 15601 #include <byteswap.h> 15602 #ifdef bswap_32 15603 symbol is present 15604 #endif 15605 15606 _ACEOF 15607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15608 $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then 15609 { $as_echo "$as_me:$LINENO: result: yes" >&5 15610 $as_echo "yes" >&6; } 15611 cat >> "src/gphoto2-endian.h" << EOF 15612 /* Define generic byte swapping functions */ 15613 #include <byteswap.h> 15614 #define swap16(x) bswap_16(x) 15615 #define swap32(x) bswap_32(x) 15616 #define swap64(x) bswap_64(x) 15617 15618 EOF 15619 15620 else 15621 { $as_echo "$as_me:$LINENO: result: no" >&5 15622 $as_echo "no" >&6; } 15623 15624 15625 { $as_echo "$as_me:$LINENO: checking for bswap32 in machine/endian.h" >&5 15626 $as_echo_n "checking for bswap32 in machine/endian.h... " >&6; } 15627 cat >conftest.$ac_ext <<_ACEOF 15628 /* confdefs.h. */ 15629 _ACEOF 15630 cat confdefs.h >>conftest.$ac_ext 15631 cat >>conftest.$ac_ext <<_ACEOF 15632 /* end confdefs.h. */ 15633 15634 #include <machine/endian.h> 15635 #ifdef bswap32 15636 symbol is present 15637 #endif 15638 15639 _ACEOF 15640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15641 $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then 15642 { $as_echo "$as_me:$LINENO: result: yes" >&5 15643 $as_echo "yes" >&6; } 15644 cat >> "src/gphoto2-endian.h" << EOF 15645 /* Define generic byte swapping functions */ 15646 EOF 15647 if test "$HAVE_LE32TOH" != "1"; then 15648 echo '#include <machine/endian.h>'>> "src/gphoto2-endian.h" 15649 fi 15650 cat >> "src/gphoto2-endian.h" << EOF 15651 #define swap16(x) bswap16(x) 15652 #define swap32(x) bswap32(x) 15653 #define swap64(x) bswap64(x) 15654 15655 EOF 15656 15657 else 15658 { $as_echo "$as_me:$LINENO: result: no" >&5 15659 $as_echo "no" >&6; } 15660 15661 15662 { $as_echo "$as_me:$LINENO: checking for __byte_swap_long in sys/types.h" >&5 15663 $as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; } 15664 cat >conftest.$ac_ext <<_ACEOF 15665 /* confdefs.h. */ 15666 _ACEOF 15667 cat confdefs.h >>conftest.$ac_ext 15668 cat >>conftest.$ac_ext <<_ACEOF 15669 /* end confdefs.h. */ 15670 15671 #include <sys/types.h> 15672 #ifdef __byte_swap_long 15673 symbol is present 15674 #endif 15675 15676 _ACEOF 15677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15678 $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then 15679 { $as_echo "$as_me:$LINENO: result: yes" >&5 15680 $as_echo "yes" >&6; } 15681 cat >> "src/gphoto2-endian.h" << EOF 15682 /* Define generic byte swapping functions */ 15683 #include <sys/types.h> 15684 #define swap16(x) __byte_swap_word(x) 15685 #define swap32(x) __byte_swap_long(x) 15686 /* No optimized 64 bit byte swapping macro is available */ 15687 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ 15688 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ 15689 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ 15690 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\ 15691 ((x) >> 8) & 0x00000000ff000000ULL | \\ 15692 ((x) >> 24) & 0x0000000000ff0000ULL | \\ 15693 ((x) >> 40) & 0x000000000000ff00ULL | \\ 15694 ((x) >> 56) & 0x00000000000000ffULL)) 15695 15696 EOF 15697 15698 else 15699 { $as_echo "$as_me:$LINENO: result: no" >&5 15700 $as_echo "no" >&6; } 15701 15702 15703 { $as_echo "$as_me:$LINENO: checking for NXSwapLong in machine/byte_order.h" >&5 15704 $as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; } 15705 cat >conftest.$ac_ext <<_ACEOF 15706 /* confdefs.h. */ 15707 _ACEOF 15708 cat confdefs.h >>conftest.$ac_ext 15709 cat >>conftest.$ac_ext <<_ACEOF 15710 /* end confdefs.h. */ 15711 15712 #include <machine/byte_order.h> 15713 #ifdef NXSwapLong 15714 symbol is present 15715 #endif 15716 15717 _ACEOF 15718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15719 $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then 15720 { $as_echo "$as_me:$LINENO: result: yes" >&5 15721 $as_echo "yes" >&6; } 15722 cat >> "src/gphoto2-endian.h" << EOF 15723 /* Define generic byte swapping functions */ 15724 #include <machine/byte_order.h> 15725 #define swap16(x) NXSwapShort(x) 15726 #define swap32(x) NXSwapLong(x) 15727 #define swap64(x) NXSwapLongLong(x) 15728 15729 EOF 15730 15731 else 15732 { $as_echo "$as_me:$LINENO: result: no" >&5 15733 $as_echo "no" >&6; } 15734 15735 if test $ac_cv_c_bigendian = yes; then 15736 cat >> "src/gphoto2-endian.h" << EOF 15737 /* No other byte swapping functions are available on this big-endian system */ 15738 #define swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) 15739 #define swap32(x) ((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\ 15740 ((uint32_t)(x) << 8) & 0x00ff0000UL | \\ 15741 ((x) >> 8) & 0x0000ff00UL | \\ 15742 ((x) >> 24) & 0x000000ffUL)) 15743 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ 15744 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ 15745 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ 15746 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\ 15747 ((x) >> 8) & 0x00000000ff000000ULL | \\ 15748 ((x) >> 24) & 0x0000000000ff0000ULL | \\ 15749 ((x) >> 40) & 0x000000000000ff00ULL | \\ 15750 ((x) >> 56) & 0x00000000000000ffULL)) 15751 15752 EOF 15753 else 15754 cat >> "src/gphoto2-endian.h" << EOF 15755 /* Use these as generic byteswapping macros on this little endian system */ 15756 #define swap16(x) ntohs(x) 15757 #define swap32(x) ntohl(x) 15758 /* No optimized 64 bit byte swapping macro is available */ 15759 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ 15760 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ 15761 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ 15762 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\ 15763 ((x) >> 8) & 0x00000000ff000000ULL | \\ 15764 ((x) >> 24) & 0x0000000000ff0000ULL | \\ 15765 ((x) >> 40) & 0x000000000000ff00ULL | \\ 15766 ((x) >> 56) & 0x00000000000000ffULL)) 15767 15768 EOF 15769 fi 15770 15771 15772 fi 15773 rm -f conftest* 15774 15775 15776 15777 fi 15778 rm -f conftest* 15779 15780 15781 15782 fi 15783 rm -f conftest* 15784 15785 15786 15787 fi 15788 rm -f conftest* 15789 15790 15791 15792 fi 15793 rm -f conftest* 15794 15795 15796 15797 15798 if test "$HAVE_LE32TOH" != "1"; then 15799 cat >> "src/gphoto2-endian.h" << EOF 15800 /* The byte swapping macros have the form: */ 15801 /* EENN[a]toh or htoEENN[a] where EE is be (big endian) or */ 15802 /* le (little-endian), NN is 16 or 32 (number of bits) and a, */ 15803 /* if present, indicates that the endian side is a pointer to an */ 15804 /* array of uint8_t bytes instead of an integer of the specified length. */ 15805 /* h refers to the host's ordering method. */ 15806 15807 /* So, to convert a 32-bit integer stored in a buffer in little-endian */ 15808 /* format into a uint32_t usable on this machine, you could use: */ 15809 /* uint32_t value = le32atoh(&buf[3]); */ 15810 /* To put that value back into the buffer, you could use: */ 15811 /* htole32a(&buf[3], value); */ 15812 15813 /* Define aliases for the standard byte swapping macros */ 15814 /* Arguments to these macros must be properly aligned on natural word */ 15815 /* boundaries in order to work properly on all architectures */ 15816 #ifndef htobe16 15817 # define htobe16(x) htons(x) 15818 #endif 15819 #ifndef htobe32 15820 # define htobe32(x) htonl(x) 15821 #endif 15822 #ifndef be16toh 15823 # define be16toh(x) ntohs(x) 15824 #endif 15825 #ifndef be32toh 15826 # define be32toh(x) ntohl(x) 15827 #endif 15828 15829 #define HTOBE16(x) (x) = htobe16(x) 15830 #define HTOBE32(x) (x) = htobe32(x) 15831 #define BE32TOH(x) (x) = be32toh(x) 15832 #define BE16TOH(x) (x) = be16toh(x) 15833 15834 EOF 15835 15836 if test $ac_cv_c_bigendian = yes; then 15837 cat >> "src/gphoto2-endian.h" << EOF 15838 /* Define our own extended byte swapping macros for big-endian machines */ 15839 #ifndef htole16 15840 # define htole16(x) swap16(x) 15841 #endif 15842 #ifndef htole32 15843 # define htole32(x) swap32(x) 15844 #endif 15845 #ifndef le16toh 15846 # define le16toh(x) swap16(x) 15847 #endif 15848 #ifndef le32toh 15849 # define le32toh(x) swap32(x) 15850 #endif 15851 #ifndef le64toh 15852 # define le64toh(x) swap64(x) 15853 #endif 15854 15855 #ifndef htobe64 15856 # define htobe64(x) (x) 15857 #endif 15858 #ifndef be64toh 15859 # define be64toh(x) (x) 15860 #endif 15861 15862 #define HTOLE16(x) (x) = htole16(x) 15863 #define HTOLE32(x) (x) = htole32(x) 15864 #define LE16TOH(x) (x) = le16toh(x) 15865 #define LE32TOH(x) (x) = le32toh(x) 15866 #define LE64TOH(x) (x) = le64toh(x) 15867 15868 #define HTOBE64(x) (void) (x) 15869 #define BE64TOH(x) (void) (x) 15870 15871 EOF 15872 else 15873 cat >> "src/gphoto2-endian.h" << EOF 15874 /* On little endian machines, these macros are null */ 15875 #ifndef htole16 15876 # define htole16(x) (x) 15877 #endif 15878 #ifndef htole32 15879 # define htole32(x) (x) 15880 #endif 15881 #ifndef htole64 15882 # define htole64(x) (x) 15883 #endif 15884 #ifndef le16toh 15885 # define le16toh(x) (x) 15886 #endif 15887 #ifndef le32toh 15888 # define le32toh(x) (x) 15889 #endif 15890 #ifndef le64toh 15891 # define le64toh(x) (x) 15892 #endif 15893 15894 #define HTOLE16(x) (void) (x) 15895 #define HTOLE32(x) (void) (x) 15896 #define HTOLE64(x) (void) (x) 15897 #define LE16TOH(x) (void) (x) 15898 #define LE32TOH(x) (void) (x) 15899 #define LE64TOH(x) (void) (x) 15900 15901 /* These don't have standard aliases */ 15902 #ifndef htobe64 15903 # define htobe64(x) swap64(x) 15904 #endif 15905 #ifndef be64toh 15906 # define be64toh(x) swap64(x) 15907 #endif 15908 15909 #define HTOBE64(x) (x) = htobe64(x) 15910 #define BE64TOH(x) (x) = be64toh(x) 15911 15912 EOF 15913 fi 15914 fi 15915 15916 cat >> "src/gphoto2-endian.h" << EOF 15917 /* Define the C99 standard length-specific integer types */ 15918 #include <_stdint.h> 15919 15920 EOF 15921 15922 case "${effective_target}" in 15923 i[3456]86-*) 15924 cat >> "src/gphoto2-endian.h" << EOF 15925 /* Here are some macros to create integers from a byte array */ 15926 /* These are used to get and put integers from/into a uint8_t array */ 15927 /* with a specific endianness. This is the most portable way to generate */ 15928 /* and read messages to a network or serial device. Each member of a */ 15929 /* packet structure must be handled separately. */ 15930 15931 /* The i386 and compatibles can handle unaligned memory access, */ 15932 /* so use the optimized macros above to do this job */ 15933 #ifndef be16atoh 15934 # define be16atoh(x) be16toh(*(uint16_t*)(x)) 15935 #endif 15936 #ifndef be32atoh 15937 # define be32atoh(x) be32toh(*(uint32_t*)(x)) 15938 #endif 15939 #ifndef be64atoh 15940 # define be64atoh(x) be64toh(*(uint64_t*)(x)) 15941 #endif 15942 #ifndef le16atoh 15943 # define le16atoh(x) le16toh(*(uint16_t*)(x)) 15944 #endif 15945 #ifndef le32atoh 15946 # define le32atoh(x) le32toh(*(uint32_t*)(x)) 15947 #endif 15948 #ifndef le64atoh 15949 # define le64atoh(x) le64toh(*(uint64_t*)(x)) 15950 #endif 15951 15952 #ifndef htob16a 15953 # define htobe16a(a,x) *(uint16_t*)(a) = htobe16(x) 15954 #endif 15955 #ifndef htobe32a 15956 # define htobe32a(a,x) *(uint32_t*)(a) = htobe32(x) 15957 #endif 15958 #ifndef htobe64a 15959 # define htobe64a(a,x) *(uint64_t*)(a) = htobe64(x) 15960 #endif 15961 #ifndef htole16a 15962 # define htole16a(a,x) *(uint16_t*)(a) = htole16(x) 15963 #endif 15964 #ifndef htole32a 15965 # define htole32a(a,x) *(uint32_t*)(a) = htole32(x) 15966 #endif 15967 #ifndef htole64a 15968 # define htole64a(a,x) *(uint64_t*)(a) = htole64(x) 15969 #endif 15970 15971 EOF 15972 ;; 15973 15974 *) 15975 cat >> "src/gphoto2-endian.h" << EOF 15976 /* Here are some macros to create integers from a byte array */ 15977 /* These are used to get and put integers from/into a uint8_t array */ 15978 /* with a specific endianness. This is the most portable way to generate */ 15979 /* and read messages to a network or serial device. Each member of a */ 15980 /* packet structure must be handled separately. */ 15981 15982 /* Non-optimized but portable macros */ 15983 #define be16atoh(x) ((uint16_t)(((x)[0]<<8)|(x)[1])) 15984 #define be32atoh(x) ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3])) 15985 #define be64atoh_x(x,off,shift) (((uint64_t)((x)[off]))<<shift) 15986 #define be64atoh(x) ((uint64_t)(be64atoh_x(x,0,56)|be64atoh_x(x,1,48)|be64atoh_x(x,2,40)| \\ 15987 be64atoh_x(x,3,32)|be64atoh_x(x,4,24)|be64atoh_x(x,5,16)|be64atoh_x(x,6,8)|((x)[7]))) 15988 #define le16atoh(x) ((uint16_t)(((x)[1]<<8)|(x)[0])) 15989 #define le32atoh(x) ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0])) 15990 #define le64atoh_x(x,off,shift) (((uint64_t)(x)[off])<<shift) 15991 #define le64atoh(x) ((uint64_t)(le64atoh_x(x,7,56)|le64atoh_x(x,6,48)|le64atoh_x(x,5,40)| \\ 15992 le64atoh_x(x,4,32)|le64atoh_x(x,3,24)|le64atoh_x(x,2,16)|le64atoh_x(x,1,8)|((x)[0]))) 15993 15994 #define htobe16a(a,x) (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x) 15995 #define htobe32a(a,x) (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\ 15996 (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x) 15997 #define htobe64a(a,x) (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\ 15998 (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\ 15999 (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\ 16000 (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x) 16001 #define htole16a(a,x) (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) 16002 #define htole32a(a,x) (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ 16003 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) 16004 #define htole64a(a,x) (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\ 16005 (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\ 16006 (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ 16007 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) 16008 16009 EOF 16010 ;; 16011 esac 16012 16013 16014 cat >> "src/gphoto2-endian.h" << EOF 16015 #endif /*__BYTEORDER_H*/ 16016 EOF 16017 16018 ac_config_files="$ac_config_files src/libmtp.h doc/Doxyfile Makefile doc/Makefile src/Makefile examples/Makefile libmtp.sh hotplug.sh libmtp.pc" 16019 16020 cat >confcache <<\_ACEOF 16021 # This file is a shell script that caches the results of configure 16022 # tests run on this system so they can be shared between configure 16023 # scripts and configure runs, see configure's option --config-cache. 16024 # It is not useful on other systems. If it contains results you don't 16025 # want to keep, you may remove or edit it. 16026 # 16027 # config.status only pays attention to the cache file if you give it 16028 # the --recheck option to rerun configure. 16029 # 16030 # `ac_cv_env_foo' variables (set or unset) will be overridden when 16031 # loading this file, other *unset* `ac_cv_foo' will be assigned the 16032 # following values. 16033 16034 _ACEOF 16035 16036 # The following way of writing the cache mishandles newlines in values, 16037 # but we know of no workaround that is simple, portable, and efficient. 16038 # So, we kill variables containing newlines. 16039 # Ultrix sh set writes to stderr and can't be redirected directly, 16040 # and sets the high bit in the cache file unless we assign to the vars. 16041 ( 16042 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16043 eval ac_val=\$$ac_var 16044 case $ac_val in #( 16045 *${as_nl}*) 16046 case $ac_var in #( 16047 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 16048 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16049 esac 16050 case $ac_var in #( 16051 _ | IFS | as_nl) ;; #( 16052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16053 *) $as_unset $ac_var ;; 16054 esac ;; 16055 esac 16056 done 16057 16058 (set) 2>&1 | 16059 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16060 *${as_nl}ac_space=\ *) 16061 # `set' does not quote correctly, so add quotes (double-quote 16062 # substitution turns \\\\ into \\, and sed turns \\ into \). 16063 sed -n \ 16064 "s/'/'\\\\''/g; 16065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16066 ;; #( 16067 *) 16068 # `set' quotes correctly as required by POSIX, so do not add quotes. 16069 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16070 ;; 16071 esac | 16072 sort 16073 ) | 16074 sed ' 16075 /^ac_cv_env_/b end 16076 t clear 16077 :clear 16078 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16079 t end 16080 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16081 :end' >>confcache 16082 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16083 if test -w "$cache_file"; then 16084 test "x$cache_file" != "x/dev/null" && 16085 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 16086 $as_echo "$as_me: updating cache $cache_file" >&6;} 16087 cat confcache >$cache_file 16088 else 16089 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 16090 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16091 fi 16092 fi 16093 rm -f confcache 16094 16095 test "x$prefix" = xNONE && prefix=$ac_default_prefix 16096 # Let make expand exec_prefix. 16097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16098 16099 DEFS=-DHAVE_CONFIG_H 16100 16101 ac_libobjs= 16102 ac_ltlibobjs= 16103 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16104 # 1. Remove the extension, and $U if already installed. 16105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16106 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16108 # will be set to the directory where LIBOBJS objects are built. 16109 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16110 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 16111 done 16112 LIBOBJS=$ac_libobjs 16113 16114 LTLIBOBJS=$ac_ltlibobjs 16115 16116 16117 if test -n "$EXEEXT"; then 16118 am__EXEEXT_TRUE= 16119 am__EXEEXT_FALSE='#' 16120 else 16121 am__EXEEXT_TRUE='#' 16122 am__EXEEXT_FALSE= 16123 fi 16124 16125 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16126 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 16127 Usually this means the macro was only invoked conditionally." >&5 16128 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 16129 Usually this means the macro was only invoked conditionally." >&2;} 16130 { (exit 1); exit 1; }; } 16131 fi 16132 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16133 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 16134 Usually this means the macro was only invoked conditionally." >&5 16135 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 16136 Usually this means the macro was only invoked conditionally." >&2;} 16137 { (exit 1); exit 1; }; } 16138 fi 16139 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 16140 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined. 16141 Usually this means the macro was only invoked conditionally." >&5 16142 $as_echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined. 16143 Usually this means the macro was only invoked conditionally." >&2;} 16144 { (exit 1); exit 1; }; } 16145 fi 16146 if test -z "${COMPILE_MINGW32_TRUE}" && test -z "${COMPILE_MINGW32_FALSE}"; then 16147 { { $as_echo "$as_me:$LINENO: error: conditional \"COMPILE_MINGW32\" was never defined. 16148 Usually this means the macro was only invoked conditionally." >&5 16149 $as_echo "$as_me: error: conditional \"COMPILE_MINGW32\" was never defined. 16150 Usually this means the macro was only invoked conditionally." >&2;} 16151 { (exit 1); exit 1; }; } 16152 fi 16153 if test -z "${MS_LIB_EXE_TRUE}" && test -z "${MS_LIB_EXE_FALSE}"; then 16154 { { $as_echo "$as_me:$LINENO: error: conditional \"MS_LIB_EXE\" was never defined. 16155 Usually this means the macro was only invoked conditionally." >&5 16156 $as_echo "$as_me: error: conditional \"MS_LIB_EXE\" was never defined. 16157 Usually this means the macro was only invoked conditionally." >&2;} 16158 { (exit 1); exit 1; }; } 16159 fi 16160 16161 16162 : ${CONFIG_STATUS=./config.status} 16163 ac_write_fail=0 16164 ac_clean_files_save=$ac_clean_files 16165 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16166 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 16167 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16168 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16169 #! $SHELL 16170 # Generated by $as_me. 16171 # Run this file to recreate the current configuration. 16172 # Compiler output produced by configure, useful for debugging 16173 # configure, is in config.log if it exists. 16174 16175 debug=false 16176 ac_cs_recheck=false 16177 ac_cs_silent=false 16178 SHELL=\${CONFIG_SHELL-$SHELL} 16179 _ACEOF 16180 16181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16182 ## --------------------- ## 16183 ## M4sh Initialization. ## 16184 ## --------------------- ## 16185 16186 # Be more Bourne compatible 16187 DUALCASE=1; export DUALCASE # for MKS sh 16188 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16189 emulate sh 16190 NULLCMD=: 16191 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16192 # is contrary to our usage. Disable this feature. 16193 alias -g '${1+"$@"}'='"$@"' 16194 setopt NO_GLOB_SUBST 16195 else 16196 case `(set -o) 2>/dev/null` in 16197 *posix*) set -o posix ;; 16198 esac 16199 16200 fi 16201 16202 16203 16204 16205 # PATH needs CR 16206 # Avoid depending upon Character Ranges. 16207 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16208 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16209 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16210 as_cr_digits='0123456789' 16211 as_cr_alnum=$as_cr_Letters$as_cr_digits 16212 16213 as_nl=' 16214 ' 16215 export as_nl 16216 # Printing a long string crashes Solaris 7 /usr/bin/printf. 16217 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16219 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16220 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16221 as_echo='printf %s\n' 16222 as_echo_n='printf %s' 16223 else 16224 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16225 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16226 as_echo_n='/usr/ucb/echo -n' 16227 else 16228 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16229 as_echo_n_body='eval 16230 arg=$1; 16231 case $arg in 16232 *"$as_nl"*) 16233 expr "X$arg" : "X\\(.*\\)$as_nl"; 16234 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16235 esac; 16236 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16237 ' 16238 export as_echo_n_body 16239 as_echo_n='sh -c $as_echo_n_body as_echo' 16240 fi 16241 export as_echo_body 16242 as_echo='sh -c $as_echo_body as_echo' 16243 fi 16244 16245 # The user is always right. 16246 if test "${PATH_SEPARATOR+set}" != set; then 16247 PATH_SEPARATOR=: 16248 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16249 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16250 PATH_SEPARATOR=';' 16251 } 16252 fi 16253 16254 # Support unset when possible. 16255 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 16256 as_unset=unset 16257 else 16258 as_unset=false 16259 fi 16260 16261 16262 # IFS 16263 # We need space, tab and new line, in precisely that order. Quoting is 16264 # there to prevent editors from complaining about space-tab. 16265 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 16266 # splitting by setting IFS to empty value.) 16267 IFS=" "" $as_nl" 16268 16269 # Find who we are. Look in the path if we contain no directory separator. 16270 case $0 in 16271 *[\\/]* ) as_myself=$0 ;; 16272 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16273 for as_dir in $PATH 16274 do 16275 IFS=$as_save_IFS 16276 test -z "$as_dir" && as_dir=. 16277 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16278 done 16279 IFS=$as_save_IFS 16280 16281 ;; 16282 esac 16283 # We did not find ourselves, most probably we were run as `sh COMMAND' 16284 # in which case we are not to be found in the path. 16285 if test "x$as_myself" = x; then 16286 as_myself=$0 16287 fi 16288 if test ! -f "$as_myself"; then 16289 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16290 { (exit 1); exit 1; } 16291 fi 16292 16293 # Work around bugs in pre-3.0 UWIN ksh. 16294 for as_var in ENV MAIL MAILPATH 16295 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 16296 done 16297 PS1='$ ' 16298 PS2='> ' 16299 PS4='+ ' 16300 16301 # NLS nuisances. 16302 LC_ALL=C 16303 export LC_ALL 16304 LANGUAGE=C 16305 export LANGUAGE 16306 16307 # Required to use basename. 16308 if expr a : '\(a\)' >/dev/null 2>&1 && 16309 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16310 as_expr=expr 16311 else 16312 as_expr=false 16313 fi 16314 16315 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16316 as_basename=basename 16317 else 16318 as_basename=false 16319 fi 16320 16321 16322 # Name of the executable. 16323 as_me=`$as_basename -- "$0" || 16324 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16325 X"$0" : 'X\(//\)$' \| \ 16326 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16327 $as_echo X/"$0" | 16328 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16329 s//\1/ 16330 q 16331 } 16332 /^X\/\(\/\/\)$/{ 16333 s//\1/ 16334 q 16335 } 16336 /^X\/\(\/\).*/{ 16337 s//\1/ 16338 q 16339 } 16340 s/.*/./; q'` 16341 16342 # CDPATH. 16343 $as_unset CDPATH 16344 16345 16346 16347 as_lineno_1=$LINENO 16348 as_lineno_2=$LINENO 16349 test "x$as_lineno_1" != "x$as_lineno_2" && 16350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 16351 16352 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 16353 # uniformly replaced by the line number. The first 'sed' inserts a 16354 # line-number line after each line using $LINENO; the second 'sed' 16355 # does the real work. The second script uses 'N' to pair each 16356 # line-number line with the line containing $LINENO, and appends 16357 # trailing '-' during substitution so that $LINENO is not a special 16358 # case at line end. 16359 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 16360 # scripts with optimization help from Paolo Bonzini. Blame Lee 16361 # E. McMahon (1931-1989) for sed's syntax. :-) 16362 sed -n ' 16363 p 16364 /[$]LINENO/= 16365 ' <$as_myself | 16366 sed ' 16367 s/[$]LINENO.*/&-/ 16368 t lineno 16369 b 16370 :lineno 16371 N 16372 :loop 16373 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 16374 t loop 16375 s/-\n.*// 16376 ' >$as_me.lineno && 16377 chmod +x "$as_me.lineno" || 16378 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 16379 { (exit 1); exit 1; }; } 16380 16381 # Don't try to exec as it changes $[0], causing all sort of problems 16382 # (the dirname of $[0] is not the place where we might find the 16383 # original and so on. Autoconf is especially sensitive to this). 16384 . "./$as_me.lineno" 16385 # Exit status is that of the last command. 16386 exit 16387 } 16388 16389 16390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16391 as_dirname=dirname 16392 else 16393 as_dirname=false 16394 fi 16395 16396 ECHO_C= ECHO_N= ECHO_T= 16397 case `echo -n x` in 16398 -n*) 16399 case `echo 'x\c'` in 16400 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16401 *) ECHO_C='\c';; 16402 esac;; 16403 *) 16404 ECHO_N='-n';; 16405 esac 16406 if expr a : '\(a\)' >/dev/null 2>&1 && 16407 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16408 as_expr=expr 16409 else 16410 as_expr=false 16411 fi 16412 16413 rm -f conf$$ conf$$.exe conf$$.file 16414 if test -d conf$$.dir; then 16415 rm -f conf$$.dir/conf$$.file 16416 else 16417 rm -f conf$$.dir 16418 mkdir conf$$.dir 2>/dev/null 16419 fi 16420 if (echo >conf$$.file) 2>/dev/null; then 16421 if ln -s conf$$.file conf$$ 2>/dev/null; then 16422 as_ln_s='ln -s' 16423 # ... but there are two gotchas: 16424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16426 # In both cases, we have to default to `cp -p'. 16427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16428 as_ln_s='cp -p' 16429 elif ln conf$$.file conf$$ 2>/dev/null; then 16430 as_ln_s=ln 16431 else 16432 as_ln_s='cp -p' 16433 fi 16434 else 16435 as_ln_s='cp -p' 16436 fi 16437 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16438 rmdir conf$$.dir 2>/dev/null 16439 16440 if mkdir -p . 2>/dev/null; then 16441 as_mkdir_p=: 16442 else 16443 test -d ./-p && rmdir ./-p 16444 as_mkdir_p=false 16445 fi 16446 16447 if test -x / >/dev/null 2>&1; then 16448 as_test_x='test -x' 16449 else 16450 if ls -dL / >/dev/null 2>&1; then 16451 as_ls_L_option=L 16452 else 16453 as_ls_L_option= 16454 fi 16455 as_test_x=' 16456 eval sh -c '\'' 16457 if test -d "$1"; then 16458 test -d "$1/."; 16459 else 16460 case $1 in 16461 -*)set "./$1";; 16462 esac; 16463 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 16464 ???[sx]*):;;*)false;;esac;fi 16465 '\'' sh 16466 ' 16467 fi 16468 as_executable_p=$as_test_x 16469 16470 # Sed expression to map a string onto a valid CPP name. 16471 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16472 16473 # Sed expression to map a string onto a valid variable name. 16474 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16475 16476 16477 exec 6>&1 16478 16479 # Save the log message, to keep $[0] and so on meaningful, and to 16480 # report actual input values of CONFIG_FILES etc. instead of their 16481 # values after options handling. 16482 ac_log=" 16483 This file was extended by libmtp $as_me 1.0.1, which was 16484 generated by GNU Autoconf 2.63. Invocation command line was 16485 16486 CONFIG_FILES = $CONFIG_FILES 16487 CONFIG_HEADERS = $CONFIG_HEADERS 16488 CONFIG_LINKS = $CONFIG_LINKS 16489 CONFIG_COMMANDS = $CONFIG_COMMANDS 16490 $ $0 $@ 16491 16492 on `(hostname || uname -n) 2>/dev/null | sed 1q` 16493 " 16494 16495 _ACEOF 16496 16497 case $ac_config_files in *" 16498 "*) set x $ac_config_files; shift; ac_config_files=$*;; 16499 esac 16500 16501 case $ac_config_headers in *" 16502 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16503 esac 16504 16505 16506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16507 # Files that config.status was made for. 16508 config_files="$ac_config_files" 16509 config_headers="$ac_config_headers" 16510 config_commands="$ac_config_commands" 16511 16512 _ACEOF 16513 16514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16515 ac_cs_usage="\ 16516 \`$as_me' instantiates files from templates according to the 16517 current configuration. 16518 16519 Usage: $0 [OPTION]... [FILE]... 16520 16521 -h, --help print this help, then exit 16522 -V, --version print version number and configuration settings, then exit 16523 -q, --quiet, --silent 16524 do not print progress messages 16525 -d, --debug don't remove temporary files 16526 --recheck update $as_me by reconfiguring in the same conditions 16527 --file=FILE[:TEMPLATE] 16528 instantiate the configuration file FILE 16529 --header=FILE[:TEMPLATE] 16530 instantiate the configuration header FILE 16531 16532 Configuration files: 16533 $config_files 16534 16535 Configuration headers: 16536 $config_headers 16537 16538 Configuration commands: 16539 $config_commands 16540 16541 Report bugs to <bug-autoconf (at] gnu.org>." 16542 16543 _ACEOF 16544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16545 ac_cs_version="\\ 16546 libmtp config.status 1.0.1 16547 configured by $0, generated by GNU Autoconf 2.63, 16548 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 16549 16550 Copyright (C) 2008 Free Software Foundation, Inc. 16551 This config.status script is free software; the Free Software Foundation 16552 gives unlimited permission to copy, distribute and modify it." 16553 16554 ac_pwd='$ac_pwd' 16555 srcdir='$srcdir' 16556 INSTALL='$INSTALL' 16557 MKDIR_P='$MKDIR_P' 16558 AWK='$AWK' 16559 test -n "\$AWK" || AWK=awk 16560 _ACEOF 16561 16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16563 # The default lists apply if the user does not specify any file. 16564 ac_need_defaults=: 16565 while test $# != 0 16566 do 16567 case $1 in 16568 --*=*) 16569 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16570 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16571 ac_shift=: 16572 ;; 16573 *) 16574 ac_option=$1 16575 ac_optarg=$2 16576 ac_shift=shift 16577 ;; 16578 esac 16579 16580 case $ac_option in 16581 # Handling of the options. 16582 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16583 ac_cs_recheck=: ;; 16584 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16585 $as_echo "$ac_cs_version"; exit ;; 16586 --debug | --debu | --deb | --de | --d | -d ) 16587 debug=: ;; 16588 --file | --fil | --fi | --f ) 16589 $ac_shift 16590 case $ac_optarg in 16591 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16592 esac 16593 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 16594 ac_need_defaults=false;; 16595 --header | --heade | --head | --hea ) 16596 $ac_shift 16597 case $ac_optarg in 16598 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16599 esac 16600 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 16601 ac_need_defaults=false;; 16602 --he | --h) 16603 # Conflict between --help and --header 16604 { $as_echo "$as_me: error: ambiguous option: $1 16605 Try \`$0 --help' for more information." >&2 16606 { (exit 1); exit 1; }; };; 16607 --help | --hel | -h ) 16608 $as_echo "$ac_cs_usage"; exit ;; 16609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16610 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16611 ac_cs_silent=: ;; 16612 16613 # This is an error. 16614 -*) { $as_echo "$as_me: error: unrecognized option: $1 16615 Try \`$0 --help' for more information." >&2 16616 { (exit 1); exit 1; }; } ;; 16617 16618 *) ac_config_targets="$ac_config_targets $1" 16619 ac_need_defaults=false ;; 16620 16621 esac 16622 shift 16623 done 16624 16625 ac_configure_extra_args= 16626 16627 if $ac_cs_silent; then 16628 exec 6>/dev/null 16629 ac_configure_extra_args="$ac_configure_extra_args --silent" 16630 fi 16631 16632 _ACEOF 16633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16634 if \$ac_cs_recheck; then 16635 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16636 shift 16637 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16638 CONFIG_SHELL='$SHELL' 16639 export CONFIG_SHELL 16640 exec "\$@" 16641 fi 16642 16643 _ACEOF 16644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16645 exec 5>>config.log 16646 { 16647 echo 16648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16649 ## Running $as_me. ## 16650 _ASBOX 16651 $as_echo "$ac_log" 16652 } >&5 16653 16654 _ACEOF 16655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16656 # 16657 # INIT-COMMANDS 16658 # 16659 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16660 16661 16662 # The HP-UX ksh and POSIX shell print the target directory to stdout 16663 # if CDPATH is set. 16664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16665 16666 sed_quote_subst='$sed_quote_subst' 16667 double_quote_subst='$double_quote_subst' 16668 delay_variable_subst='$delay_variable_subst' 16669 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 16670 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16671 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 16672 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 16673 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 16674 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 16675 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 16676 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 16677 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 16678 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 16679 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 16680 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 16681 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 16682 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 16683 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 16684 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 16685 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 16686 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 16687 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 16688 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 16689 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 16690 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 16691 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 16692 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 16693 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 16694 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 16695 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 16696 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 16697 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 16698 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 16699 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16700 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 16701 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 16702 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 16703 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16704 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 16705 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 16706 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16707 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16708 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16709 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 16710 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16711 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 16712 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 16713 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 16714 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 16715 lt_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"`' 16716 lt_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"`' 16717 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 16718 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 16719 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 16720 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 16721 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 16722 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 16723 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 16724 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 16725 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 16726 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 16727 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 16728 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 16729 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 16730 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16731 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 16732 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 16733 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16734 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16735 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 16736 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 16737 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16738 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16739 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 16740 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16741 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16742 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16743 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16744 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16745 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16746 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 16747 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16748 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16749 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16750 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 16751 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 16752 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 16753 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 16754 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 16755 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16756 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 16757 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 16758 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 16759 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 16760 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 16761 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16762 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16763 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16764 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16765 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 16766 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 16767 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16768 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 16769 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 16770 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16771 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16772 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 16773 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16774 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 16775 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16776 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16777 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16778 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16779 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 16780 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 16781 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16782 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16783 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 16784 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 16785 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 16786 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 16787 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 16788 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 16789 16790 LTCC='$LTCC' 16791 LTCFLAGS='$LTCFLAGS' 16792 compiler='$compiler_DEFAULT' 16793 16794 # Quote evaled strings. 16795 for var in SED \ 16796 GREP \ 16797 EGREP \ 16798 FGREP \ 16799 LD \ 16800 NM \ 16801 LN_S \ 16802 lt_SP2NL \ 16803 lt_NL2SP \ 16804 reload_flag \ 16805 deplibs_check_method \ 16806 file_magic_cmd \ 16807 AR \ 16808 AR_FLAGS \ 16809 STRIP \ 16810 RANLIB \ 16811 CC \ 16812 CFLAGS \ 16813 compiler \ 16814 lt_cv_sys_global_symbol_pipe \ 16815 lt_cv_sys_global_symbol_to_cdecl \ 16816 lt_cv_sys_global_symbol_to_c_name_address \ 16817 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16818 SHELL \ 16819 ECHO \ 16820 lt_prog_compiler_no_builtin_flag \ 16821 lt_prog_compiler_wl \ 16822 lt_prog_compiler_pic \ 16823 lt_prog_compiler_static \ 16824 lt_cv_prog_compiler_c_o \ 16825 need_locks \ 16826 DSYMUTIL \ 16827 NMEDIT \ 16828 LIPO \ 16829 OTOOL \ 16830 OTOOL64 \ 16831 shrext_cmds \ 16832 export_dynamic_flag_spec \ 16833 whole_archive_flag_spec \ 16834 compiler_needs_object \ 16835 with_gnu_ld \ 16836 allow_undefined_flag \ 16837 no_undefined_flag \ 16838 hardcode_libdir_flag_spec \ 16839 hardcode_libdir_flag_spec_ld \ 16840 hardcode_libdir_separator \ 16841 fix_srcfile_path \ 16842 exclude_expsyms \ 16843 include_expsyms \ 16844 file_list_spec \ 16845 variables_saved_for_relink \ 16846 libname_spec \ 16847 library_names_spec \ 16848 soname_spec \ 16849 finish_eval \ 16850 old_striplib \ 16851 striplib; do 16852 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16853 *[\\\\\\\`\\"\\\$]*) 16854 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16855 ;; 16856 *) 16857 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16858 ;; 16859 esac 16860 done 16861 16862 # Double-quote double-evaled strings. 16863 for var in reload_cmds \ 16864 old_postinstall_cmds \ 16865 old_postuninstall_cmds \ 16866 old_archive_cmds \ 16867 extract_expsyms_cmds \ 16868 old_archive_from_new_cmds \ 16869 old_archive_from_expsyms_cmds \ 16870 archive_cmds \ 16871 archive_expsym_cmds \ 16872 module_cmds \ 16873 module_expsym_cmds \ 16874 export_symbols_cmds \ 16875 prelink_cmds \ 16876 postinstall_cmds \ 16877 postuninstall_cmds \ 16878 finish_cmds \ 16879 sys_lib_search_path_spec \ 16880 sys_lib_dlsearch_path_spec; do 16881 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16882 *[\\\\\\\`\\"\\\$]*) 16883 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16884 ;; 16885 *) 16886 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16887 ;; 16888 esac 16889 done 16890 16891 # Fix-up fallback echo if it was mangled by the above quoting rules. 16892 case \$lt_ECHO in 16893 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 16894 ;; 16895 esac 16896 16897 ac_aux_dir='$ac_aux_dir' 16898 xsi_shell='$xsi_shell' 16899 lt_shell_append='$lt_shell_append' 16900 16901 # See if we are running on zsh, and set the options which allow our 16902 # commands through without removal of \ escapes INIT. 16903 if test -n "\${ZSH_VERSION+set}" ; then 16904 setopt NO_GLOB_SUBST 16905 fi 16906 16907 16908 PACKAGE='$PACKAGE' 16909 VERSION='$VERSION' 16910 TIMESTAMP='$TIMESTAMP' 16911 RM='$RM' 16912 ofile='$ofile' 16913 16914 16915 16916 16917 _ACEOF 16918 16919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16920 16921 # Handling of arguments. 16922 for ac_config_target in $ac_config_targets 16923 do 16924 case $ac_config_target in 16925 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16926 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16927 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16928 "src/libmtp.h") CONFIG_FILES="$CONFIG_FILES src/libmtp.h" ;; 16929 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 16930 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16931 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16932 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16933 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 16934 "libmtp.sh") CONFIG_FILES="$CONFIG_FILES libmtp.sh" ;; 16935 "hotplug.sh") CONFIG_FILES="$CONFIG_FILES hotplug.sh" ;; 16936 "libmtp.pc") CONFIG_FILES="$CONFIG_FILES libmtp.pc" ;; 16937 16938 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 16939 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 16940 { (exit 1); exit 1; }; };; 16941 esac 16942 done 16943 16944 16945 # If the user did not use the arguments to specify the items to instantiate, 16946 # then the envvar interface is used. Set only those that are not. 16947 # We use the long form for the default assignment because of an extremely 16948 # bizarre bug on SunOS 4.1.3. 16949 if $ac_need_defaults; then 16950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16953 fi 16954 16955 # Have a temporary directory for convenience. Make it in the build tree 16956 # simply because there is no reason against having it here, and in addition, 16957 # creating and moving files from /tmp can sometimes cause problems. 16958 # Hook for its removal unless debugging. 16959 # Note that there is a small window in which the directory will not be cleaned: 16960 # after its creation but before its name has been assigned to `$tmp'. 16961 $debug || 16962 { 16963 tmp= 16964 trap 'exit_status=$? 16965 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16966 ' 0 16967 trap '{ (exit 1); exit 1; }' 1 2 13 15 16968 } 16969 # Create a (secure) tmp directory for tmp files. 16970 16971 { 16972 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16973 test -n "$tmp" && test -d "$tmp" 16974 } || 16975 { 16976 tmp=./conf$$-$RANDOM 16977 (umask 077 && mkdir "$tmp") 16978 } || 16979 { 16980 $as_echo "$as_me: cannot create a temporary directory in ." >&2 16981 { (exit 1); exit 1; } 16982 } 16983 16984 # Set up the scripts for CONFIG_FILES section. 16985 # No need to generate them if there are no CONFIG_FILES. 16986 # This happens for instance with `./config.status config.h'. 16987 if test -n "$CONFIG_FILES"; then 16988 16989 16990 ac_cr=' ' 16992 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16993 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16994 ac_cs_awk_cr='\\r' 16995 else 16996 ac_cs_awk_cr=$ac_cr 16997 fi 16998 16999 echo 'BEGIN {' >"$tmp/subs1.awk" && 17000 _ACEOF 17001 17002 17003 { 17004 echo "cat >conf$$subs.awk <<_ACEOF" && 17005 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17006 echo "_ACEOF" 17007 } >conf$$subs.sh || 17008 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 17009 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 17010 { (exit 1); exit 1; }; } 17011 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 17012 ac_delim='%!_!# ' 17013 for ac_last_try in false false false false false :; do 17014 . ./conf$$subs.sh || 17015 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 17016 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 17017 { (exit 1); exit 1; }; } 17018 17019 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17020 if test $ac_delim_n = $ac_delim_num; then 17021 break 17022 elif $ac_last_try; then 17023 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 17024 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 17025 { (exit 1); exit 1; }; } 17026 else 17027 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17028 fi 17029 done 17030 rm -f conf$$subs.sh 17031 17032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17033 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 17034 _ACEOF 17035 sed -n ' 17036 h 17037 s/^/S["/; s/!.*/"]=/ 17038 p 17039 g 17040 s/^[^!]*!// 17041 :repl 17042 t repl 17043 s/'"$ac_delim"'$// 17044 t delim 17045 :nl 17046 h 17047 s/\(.\{148\}\).*/\1/ 17048 t more1 17049 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17050 p 17051 n 17052 b repl 17053 :more1 17054 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17055 p 17056 g 17057 s/.\{148\}// 17058 t nl 17059 :delim 17060 h 17061 s/\(.\{148\}\).*/\1/ 17062 t more2 17063 s/["\\]/\\&/g; s/^/"/; s/$/"/ 17064 p 17065 b 17066 :more2 17067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17068 p 17069 g 17070 s/.\{148\}// 17071 t delim 17072 ' <conf$$subs.awk | sed ' 17073 /^[^""]/{ 17074 N 17075 s/\n// 17076 } 17077 ' >>$CONFIG_STATUS || ac_write_fail=1 17078 rm -f conf$$subs.awk 17079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17080 _ACAWK 17081 cat >>"\$tmp/subs1.awk" <<_ACAWK && 17082 for (key in S) S_is_set[key] = 1 17083 FS = "" 17084 17085 } 17086 { 17087 line = $ 0 17088 nfields = split(line, field, "@") 17089 substed = 0 17090 len = length(field[1]) 17091 for (i = 2; i < nfields; i++) { 17092 key = field[i] 17093 keylen = length(key) 17094 if (S_is_set[key]) { 17095 value = S[key] 17096 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17097 len += length(value) + length(field[++i]) 17098 substed = 1 17099 } else 17100 len += 1 + keylen 17101 } 17102 17103 print line 17104 } 17105 17106 _ACAWK 17107 _ACEOF 17108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17109 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17110 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17111 else 17112 cat 17113 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 17114 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 17115 $as_echo "$as_me: error: could not setup config files machinery" >&2;} 17116 { (exit 1); exit 1; }; } 17117 _ACEOF 17118 17119 # VPATH may cause trouble with some makes, so we remove $(srcdir), 17120 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 17121 # trailing colons and then remove the whole line if VPATH becomes empty 17122 # (actually we leave an empty line to preserve line numbers). 17123 if test "x$srcdir" = x.; then 17124 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 17125 s/:*\$(srcdir):*/:/ 17126 s/:*\${srcdir}:*/:/ 17127 s/:*@srcdir@:*/:/ 17128 s/^\([^=]*=[ ]*\):*/\1/ 17129 s/:*$// 17130 s/^[^=]*=[ ]*$// 17131 }' 17132 fi 17133 17134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17135 fi # test -n "$CONFIG_FILES" 17136 17137 # Set up the scripts for CONFIG_HEADERS section. 17138 # No need to generate them if there are no CONFIG_HEADERS. 17139 # This happens for instance with `./config.status Makefile'. 17140 if test -n "$CONFIG_HEADERS"; then 17141 cat >"$tmp/defines.awk" <<\_ACAWK || 17142 BEGIN { 17143 _ACEOF 17144 17145 # Transform confdefs.h into an awk script `defines.awk', embedded as 17146 # here-document in config.status, that substitutes the proper values into 17147 # config.h.in to produce config.h. 17148 17149 # Create a delimiter string that does not exist in confdefs.h, to ease 17150 # handling of long lines. 17151 ac_delim='%!_!# ' 17152 for ac_last_try in false false :; do 17153 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 17154 if test -z "$ac_t"; then 17155 break 17156 elif $ac_last_try; then 17157 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 17158 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 17159 { (exit 1); exit 1; }; } 17160 else 17161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17162 fi 17163 done 17164 17165 # For the awk script, D is an array of macro values keyed by name, 17166 # likewise P contains macro parameters if any. Preserve backslash 17167 # newline sequences. 17168 17169 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17170 sed -n ' 17171 s/.\{148\}/&'"$ac_delim"'/g 17172 t rset 17173 :rset 17174 s/^[ ]*#[ ]*define[ ][ ]*/ / 17175 t def 17176 d 17177 :def 17178 s/\\$// 17179 t bsnl 17180 s/["\\]/\\&/g 17181 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17182 D["\1"]=" \3"/p 17183 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17184 d 17185 :bsnl 17186 s/["\\]/\\&/g 17187 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17188 D["\1"]=" \3\\\\\\n"\\/p 17189 t cont 17190 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17191 t cont 17192 d 17193 :cont 17194 n 17195 s/.\{148\}/&'"$ac_delim"'/g 17196 t clear 17197 :clear 17198 s/\\$// 17199 t bsnlc 17200 s/["\\]/\\&/g; s/^/"/; s/$/"/p 17201 d 17202 :bsnlc 17203 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17204 b cont 17205 ' <confdefs.h | sed ' 17206 s/'"$ac_delim"'/"\\\ 17207 "/g' >>$CONFIG_STATUS || ac_write_fail=1 17208 17209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17210 for (key in D) D_is_set[key] = 1 17211 FS = "" 17212 } 17213 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17214 line = \$ 0 17215 split(line, arg, " ") 17216 if (arg[1] == "#") { 17217 defundef = arg[2] 17218 mac1 = arg[3] 17219 } else { 17220 defundef = substr(arg[1], 2) 17221 mac1 = arg[2] 17222 } 17223 split(mac1, mac2, "(") #) 17224 macro = mac2[1] 17225 prefix = substr(line, 1, index(line, defundef) - 1) 17226 if (D_is_set[macro]) { 17227 # Preserve the white space surrounding the "#". 17228 print prefix "define", macro P[macro] D[macro] 17229 next 17230 } else { 17231 # Replace #undef with comments. This is necessary, for example, 17232 # in the case of _POSIX_SOURCE, which is predefined and required 17233 # on some systems where configure will not decide to define it. 17234 if (defundef == "undef") { 17235 print "/*", prefix defundef, macro, "*/" 17236 next 17237 } 17238 } 17239 } 17240 { print } 17241 _ACAWK 17242 _ACEOF 17243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17244 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 17245 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} 17246 { (exit 1); exit 1; }; } 17247 fi # test -n "$CONFIG_HEADERS" 17248 17249 17250 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17251 shift 17252 for ac_tag 17253 do 17254 case $ac_tag in 17255 :[FHLC]) ac_mode=$ac_tag; continue;; 17256 esac 17257 case $ac_mode$ac_tag in 17258 :[FHL]*:*);; 17259 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 17260 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 17261 { (exit 1); exit 1; }; };; 17262 :[FH]-) ac_tag=-:-;; 17263 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17264 esac 17265 ac_save_IFS=$IFS 17266 IFS=: 17267 set x $ac_tag 17268 IFS=$ac_save_IFS 17269 shift 17270 ac_file=$1 17271 shift 17272 17273 case $ac_mode in 17274 :L) ac_source=$1;; 17275 :[FH]) 17276 ac_file_inputs= 17277 for ac_f 17278 do 17279 case $ac_f in 17280 -) ac_f="$tmp/stdin";; 17281 *) # Look for the file first in the build tree, then in the source tree 17282 # (if the path is not absolute). The absolute path cannot be DOS-style, 17283 # because $ac_f cannot contain `:'. 17284 test -f "$ac_f" || 17285 case $ac_f in 17286 [\\/$]*) false;; 17287 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17288 esac || 17289 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 17290 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 17291 { (exit 1); exit 1; }; };; 17292 esac 17293 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17294 ac_file_inputs="$ac_file_inputs '$ac_f'" 17295 done 17296 17297 # Let's still pretend it is `configure' which instantiates (i.e., don't 17298 # use $as_me), people would be surprised to read: 17299 # /* config.h. Generated by config.status. */ 17300 configure_input='Generated from '` 17301 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17302 `' by configure.' 17303 if test x"$ac_file" != x-; then 17304 configure_input="$ac_file. $configure_input" 17305 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 17306 $as_echo "$as_me: creating $ac_file" >&6;} 17307 fi 17308 # Neutralize special characters interpreted by sed in replacement strings. 17309 case $configure_input in #( 17310 *\&* | *\|* | *\\* ) 17311 ac_sed_conf_input=`$as_echo "$configure_input" | 17312 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17313 *) ac_sed_conf_input=$configure_input;; 17314 esac 17315 17316 case $ac_tag in 17317 *:-:* | *:-) cat >"$tmp/stdin" \ 17318 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17319 $as_echo "$as_me: error: could not create $ac_file" >&2;} 17320 { (exit 1); exit 1; }; } ;; 17321 esac 17322 ;; 17323 esac 17324 17325 ac_dir=`$as_dirname -- "$ac_file" || 17326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17327 X"$ac_file" : 'X\(//\)[^/]' \| \ 17328 X"$ac_file" : 'X\(//\)$' \| \ 17329 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17330 $as_echo X"$ac_file" | 17331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17332 s//\1/ 17333 q 17334 } 17335 /^X\(\/\/\)[^/].*/{ 17336 s//\1/ 17337 q 17338 } 17339 /^X\(\/\/\)$/{ 17340 s//\1/ 17341 q 17342 } 17343 /^X\(\/\).*/{ 17344 s//\1/ 17345 q 17346 } 17347 s/.*/./; q'` 17348 { as_dir="$ac_dir" 17349 case $as_dir in #( 17350 -*) as_dir=./$as_dir;; 17351 esac 17352 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 17353 as_dirs= 17354 while :; do 17355 case $as_dir in #( 17356 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17357 *) as_qdir=$as_dir;; 17358 esac 17359 as_dirs="'$as_qdir' $as_dirs" 17360 as_dir=`$as_dirname -- "$as_dir" || 17361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17362 X"$as_dir" : 'X\(//\)[^/]' \| \ 17363 X"$as_dir" : 'X\(//\)$' \| \ 17364 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17365 $as_echo X"$as_dir" | 17366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17367 s//\1/ 17368 q 17369 } 17370 /^X\(\/\/\)[^/].*/{ 17371 s//\1/ 17372 q 17373 } 17374 /^X\(\/\/\)$/{ 17375 s//\1/ 17376 q 17377 } 17378 /^X\(\/\).*/{ 17379 s//\1/ 17380 q 17381 } 17382 s/.*/./; q'` 17383 test -d "$as_dir" && break 17384 done 17385 test -z "$as_dirs" || eval "mkdir $as_dirs" 17386 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 17387 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 17388 { (exit 1); exit 1; }; }; } 17389 ac_builddir=. 17390 17391 case "$ac_dir" in 17392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17393 *) 17394 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17395 # A ".." for each directory in $ac_dir_suffix. 17396 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17397 case $ac_top_builddir_sub in 17398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17400 esac ;; 17401 esac 17402 ac_abs_top_builddir=$ac_pwd 17403 ac_abs_builddir=$ac_pwd$ac_dir_suffix 17404 # for backward compatibility: 17405 ac_top_builddir=$ac_top_build_prefix 17406 17407 case $srcdir in 17408 .) # We are building in place. 17409 ac_srcdir=. 17410 ac_top_srcdir=$ac_top_builddir_sub 17411 ac_abs_top_srcdir=$ac_pwd ;; 17412 [\\/]* | ?:[\\/]* ) # Absolute name. 17413 ac_srcdir=$srcdir$ac_dir_suffix; 17414 ac_top_srcdir=$srcdir 17415 ac_abs_top_srcdir=$srcdir ;; 17416 *) # Relative name. 17417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17418 ac_top_srcdir=$ac_top_build_prefix$srcdir 17419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17420 esac 17421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17422 17423 17424 case $ac_mode in 17425 :F) 17426 # 17427 # CONFIG_FILE 17428 # 17429 17430 case $INSTALL in 17431 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17432 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17433 esac 17434 ac_MKDIR_P=$MKDIR_P 17435 case $MKDIR_P in 17436 [\\/$]* | ?:[\\/]* ) ;; 17437 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17438 esac 17439 _ACEOF 17440 17441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17442 # If the template does not know about datarootdir, expand it. 17443 # FIXME: This hack should be removed a few years after 2.60. 17444 ac_datarootdir_hack=; ac_datarootdir_seen= 17445 17446 ac_sed_dataroot=' 17447 /datarootdir/ { 17448 p 17449 q 17450 } 17451 /@datadir@/p 17452 /@docdir@/p 17453 /@infodir@/p 17454 /@localedir@/p 17455 /@mandir@/p 17456 ' 17457 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17458 *datarootdir*) ac_datarootdir_seen=yes;; 17459 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17460 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17461 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17462 _ACEOF 17463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17464 ac_datarootdir_hack=' 17465 s&@datadir@&$datadir&g 17466 s&@docdir@&$docdir&g 17467 s&@infodir@&$infodir&g 17468 s&@localedir@&$localedir&g 17469 s&@mandir@&$mandir&g 17470 s&\\\${datarootdir}&$datarootdir&g' ;; 17471 esac 17472 _ACEOF 17473 17474 # Neutralize VPATH when `$srcdir' = `.'. 17475 # Shell code in configure.ac might set extrasub. 17476 # FIXME: do we really want to maintain this feature? 17477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17478 ac_sed_extra="$ac_vpsub 17479 $extrasub 17480 _ACEOF 17481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17482 :t 17483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17484 s|@configure_input@|$ac_sed_conf_input|;t t 17485 s&@top_builddir@&$ac_top_builddir_sub&;t t 17486 s&@top_build_prefix@&$ac_top_build_prefix&;t t 17487 s&@srcdir@&$ac_srcdir&;t t 17488 s&@abs_srcdir@&$ac_abs_srcdir&;t t 17489 s&@top_srcdir@&$ac_top_srcdir&;t t 17490 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17491 s&@builddir@&$ac_builddir&;t t 17492 s&@abs_builddir@&$ac_abs_builddir&;t t 17493 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17494 s&@INSTALL@&$ac_INSTALL&;t t 17495 s&@MKDIR_P@&$ac_MKDIR_P&;t t 17496 $ac_datarootdir_hack 17497 " 17498 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17499 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17500 $as_echo "$as_me: error: could not create $ac_file" >&2;} 17501 { (exit 1); exit 1; }; } 17502 17503 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17504 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17505 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17506 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17507 which seems to be undefined. Please make sure it is defined." >&5 17508 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17509 which seems to be undefined. Please make sure it is defined." >&2;} 17510 17511 rm -f "$tmp/stdin" 17512 case $ac_file in 17513 -) cat "$tmp/out" && rm -f "$tmp/out";; 17514 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17515 esac \ 17516 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17517 $as_echo "$as_me: error: could not create $ac_file" >&2;} 17518 { (exit 1); exit 1; }; } 17519 ;; 17520 :H) 17521 # 17522 # CONFIG_HEADER 17523 # 17524 if test x"$ac_file" != x-; then 17525 { 17526 $as_echo "/* $configure_input */" \ 17527 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17528 } >"$tmp/config.h" \ 17529 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17530 $as_echo "$as_me: error: could not create $ac_file" >&2;} 17531 { (exit 1); exit 1; }; } 17532 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17533 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 17534 $as_echo "$as_me: $ac_file is unchanged" >&6;} 17535 else 17536 rm -f "$ac_file" 17537 mv "$tmp/config.h" "$ac_file" \ 17538 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17539 $as_echo "$as_me: error: could not create $ac_file" >&2;} 17540 { (exit 1); exit 1; }; } 17541 fi 17542 else 17543 $as_echo "/* $configure_input */" \ 17544 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17545 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 17546 $as_echo "$as_me: error: could not create -" >&2;} 17547 { (exit 1); exit 1; }; } 17548 fi 17549 # Compute "$ac_file"'s index in $config_headers. 17550 _am_arg="$ac_file" 17551 _am_stamp_count=1 17552 for _am_header in $config_headers :; do 17553 case $_am_header in 17554 $_am_arg | $_am_arg:* ) 17555 break ;; 17556 * ) 17557 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17558 esac 17559 done 17560 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17561 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17562 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17563 X"$_am_arg" : 'X\(//\)$' \| \ 17564 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17565 $as_echo X"$_am_arg" | 17566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17567 s//\1/ 17568 q 17569 } 17570 /^X\(\/\/\)[^/].*/{ 17571 s//\1/ 17572 q 17573 } 17574 /^X\(\/\/\)$/{ 17575 s//\1/ 17576 q 17577 } 17578 /^X\(\/\).*/{ 17579 s//\1/ 17580 q 17581 } 17582 s/.*/./; q'`/stamp-h$_am_stamp_count 17583 ;; 17584 17585 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 17586 $as_echo "$as_me: executing $ac_file commands" >&6;} 17587 ;; 17588 esac 17589 17590 17591 case $ac_file$ac_mode in 17592 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17593 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17594 # are listed without --file. Let's play safe and only enable the eval 17595 # if we detect the quoting. 17596 case $CONFIG_FILES in 17597 *\'*) eval set x "$CONFIG_FILES" ;; 17598 *) set x $CONFIG_FILES ;; 17599 esac 17600 shift 17601 for mf 17602 do 17603 # Strip MF so we end up with the name of the file. 17604 mf=`echo "$mf" | sed -e 's/:.*$//'` 17605 # Check whether this is an Automake generated Makefile or not. 17606 # We used to match only the files named `Makefile.in', but 17607 # some people rename them; so instead we look at the file content. 17608 # Grep'ing the first line is not enough: some people post-process 17609 # each Makefile.in and add a new line on top of each file to say so. 17610 # Grep'ing the whole file is not good either: AIX grep has a line 17611 # limit of 2048, but all sed's we know have understand at least 4000. 17612 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17613 dirpart=`$as_dirname -- "$mf" || 17614 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17615 X"$mf" : 'X\(//\)[^/]' \| \ 17616 X"$mf" : 'X\(//\)$' \| \ 17617 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17618 $as_echo X"$mf" | 17619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17620 s//\1/ 17621 q 17622 } 17623 /^X\(\/\/\)[^/].*/{ 17624 s//\1/ 17625 q 17626 } 17627 /^X\(\/\/\)$/{ 17628 s//\1/ 17629 q 17630 } 17631 /^X\(\/\).*/{ 17632 s//\1/ 17633 q 17634 } 17635 s/.*/./; q'` 17636 else 17637 continue 17638 fi 17639 # Extract the definition of DEPDIR, am__include, and am__quote 17640 # from the Makefile without running `make'. 17641 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17642 test -z "$DEPDIR" && continue 17643 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17644 test -z "am__include" && continue 17645 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17646 # When using ansi2knr, U may be empty or an underscore; expand it 17647 U=`sed -n 's/^U = //p' < "$mf"` 17648 # Find all dependency output files, they are included files with 17649 # $(DEPDIR) in their names. We invoke sed twice because it is the 17650 # simplest approach to changing $(DEPDIR) to its actual value in the 17651 # expansion. 17652 for file in `sed -n " 17653 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17654 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17655 # Make sure the directory exists. 17656 test -f "$dirpart/$file" && continue 17657 fdir=`$as_dirname -- "$file" || 17658 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17659 X"$file" : 'X\(//\)[^/]' \| \ 17660 X"$file" : 'X\(//\)$' \| \ 17661 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17662 $as_echo X"$file" | 17663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17664 s//\1/ 17665 q 17666 } 17667 /^X\(\/\/\)[^/].*/{ 17668 s//\1/ 17669 q 17670 } 17671 /^X\(\/\/\)$/{ 17672 s//\1/ 17673 q 17674 } 17675 /^X\(\/\).*/{ 17676 s//\1/ 17677 q 17678 } 17679 s/.*/./; q'` 17680 { as_dir=$dirpart/$fdir 17681 case $as_dir in #( 17682 -*) as_dir=./$as_dir;; 17683 esac 17684 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 17685 as_dirs= 17686 while :; do 17687 case $as_dir in #( 17688 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17689 *) as_qdir=$as_dir;; 17690 esac 17691 as_dirs="'$as_qdir' $as_dirs" 17692 as_dir=`$as_dirname -- "$as_dir" || 17693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17694 X"$as_dir" : 'X\(//\)[^/]' \| \ 17695 X"$as_dir" : 'X\(//\)$' \| \ 17696 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17697 $as_echo X"$as_dir" | 17698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17699 s//\1/ 17700 q 17701 } 17702 /^X\(\/\/\)[^/].*/{ 17703 s//\1/ 17704 q 17705 } 17706 /^X\(\/\/\)$/{ 17707 s//\1/ 17708 q 17709 } 17710 /^X\(\/\).*/{ 17711 s//\1/ 17712 q 17713 } 17714 s/.*/./; q'` 17715 test -d "$as_dir" && break 17716 done 17717 test -z "$as_dirs" || eval "mkdir $as_dirs" 17718 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 17719 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 17720 { (exit 1); exit 1; }; }; } 17721 # echo "creating $dirpart/$file" 17722 echo '# dummy' > "$dirpart/$file" 17723 done 17724 done 17725 } 17726 ;; 17727 "libtool":C) 17728 17729 # See if we are running on zsh, and set the options which allow our 17730 # commands through without removal of \ escapes. 17731 if test -n "${ZSH_VERSION+set}" ; then 17732 setopt NO_GLOB_SUBST 17733 fi 17734 17735 cfgfile="${ofile}T" 17736 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17737 $RM "$cfgfile" 17738 17739 cat <<_LT_EOF >> "$cfgfile" 17740 #! $SHELL 17741 17742 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17743 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17744 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17745 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 17746 # 17747 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17748 # 2006, 2007, 2008 Free Software Foundation, Inc. 17749 # Written by Gordon Matzigkeit, 1996 17750 # 17751 # This file is part of GNU Libtool. 17752 # 17753 # GNU Libtool is free software; you can redistribute it and/or 17754 # modify it under the terms of the GNU General Public License as 17755 # published by the Free Software Foundation; either version 2 of 17756 # the License, or (at your option) any later version. 17757 # 17758 # As a special exception to the GNU General Public License, 17759 # if you distribute this file as part of a program or library that 17760 # is built using GNU Libtool, you may include this file under the 17761 # same distribution terms that you use for the rest of that program. 17762 # 17763 # GNU Libtool is distributed in the hope that it will be useful, 17764 # but WITHOUT ANY WARRANTY; without even the implied warranty of 17765 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17766 # GNU General Public License for more details. 17767 # 17768 # You should have received a copy of the GNU General Public License 17769 # along with GNU Libtool; see the file COPYING. If not, a copy 17770 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17771 # obtained by writing to the Free Software Foundation, Inc., 17772 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17773 17774 17775 # The names of the tagged configurations supported by this script. 17776 available_tags="" 17777 17778 # ### BEGIN LIBTOOL CONFIG 17779 17780 # Assembler program. 17781 AS=$AS 17782 17783 # DLL creation program. 17784 DLLTOOL=$DLLTOOL 17785 17786 # Object dumper program. 17787 OBJDUMP=$OBJDUMP 17788 17789 # Which release of libtool.m4 was used? 17790 macro_version=$macro_version 17791 macro_revision=$macro_revision 17792 17793 # Whether or not to build shared libraries. 17794 build_libtool_libs=$enable_shared 17795 17796 # Whether or not to build static libraries. 17797 build_old_libs=$enable_static 17798 17799 # What type of objects to build. 17800 pic_mode=$pic_mode 17801 17802 # Whether or not to optimize for fast installation. 17803 fast_install=$enable_fast_install 17804 17805 # The host system. 17806 host_alias=$host_alias 17807 host=$host 17808 host_os=$host_os 17809 17810 # The build system. 17811 build_alias=$build_alias 17812 build=$build 17813 build_os=$build_os 17814 17815 # A sed program that does not truncate output. 17816 SED=$lt_SED 17817 17818 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 17819 Xsed="\$SED -e 1s/^X//" 17820 17821 # A grep program that handles long lines. 17822 GREP=$lt_GREP 17823 17824 # An ERE matcher. 17825 EGREP=$lt_EGREP 17826 17827 # A literal string matcher. 17828 FGREP=$lt_FGREP 17829 17830 # A BSD- or MS-compatible name lister. 17831 NM=$lt_NM 17832 17833 # Whether we need soft or hard links. 17834 LN_S=$lt_LN_S 17835 17836 # What is the maximum length of a command? 17837 max_cmd_len=$max_cmd_len 17838 17839 # Object file suffix (normally "o"). 17840 objext=$ac_objext 17841 17842 # Executable file suffix (normally ""). 17843 exeext=$exeext 17844 17845 # whether the shell understands "unset". 17846 lt_unset=$lt_unset 17847 17848 # turn spaces into newlines. 17849 SP2NL=$lt_lt_SP2NL 17850 17851 # turn newlines into spaces. 17852 NL2SP=$lt_lt_NL2SP 17853 17854 # How to create reloadable object files. 17855 reload_flag=$lt_reload_flag 17856 reload_cmds=$lt_reload_cmds 17857 17858 # Method to check whether dependent libraries are shared objects. 17859 deplibs_check_method=$lt_deplibs_check_method 17860 17861 # Command to use when deplibs_check_method == "file_magic". 17862 file_magic_cmd=$lt_file_magic_cmd 17863 17864 # The archiver. 17865 AR=$lt_AR 17866 AR_FLAGS=$lt_AR_FLAGS 17867 17868 # A symbol stripping program. 17869 STRIP=$lt_STRIP 17870 17871 # Commands used to install an old-style archive. 17872 RANLIB=$lt_RANLIB 17873 old_postinstall_cmds=$lt_old_postinstall_cmds 17874 old_postuninstall_cmds=$lt_old_postuninstall_cmds 17875 17876 # A C compiler. 17877 LTCC=$lt_CC 17878 17879 # LTCC compiler flags. 17880 LTCFLAGS=$lt_CFLAGS 17881 17882 # Take the output of nm and produce a listing of raw symbols and C names. 17883 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17884 17885 # Transform the output of nm in a proper C declaration. 17886 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17887 17888 # Transform the output of nm in a C name address pair. 17889 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17890 17891 # Transform the output of nm in a C name address pair when lib prefix is needed. 17892 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17893 17894 # The name of the directory that contains temporary libtool files. 17895 objdir=$objdir 17896 17897 # Shell to use when invoking shell scripts. 17898 SHELL=$lt_SHELL 17899 17900 # An echo program that does not interpret backslashes. 17901 ECHO=$lt_ECHO 17902 17903 # Used to examine libraries when file_magic_cmd begins with "file". 17904 MAGIC_CMD=$MAGIC_CMD 17905 17906 # Must we lock files when doing compilation? 17907 need_locks=$lt_need_locks 17908 17909 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17910 DSYMUTIL=$lt_DSYMUTIL 17911 17912 # Tool to change global to local symbols on Mac OS X. 17913 NMEDIT=$lt_NMEDIT 17914 17915 # Tool to manipulate fat objects and archives on Mac OS X. 17916 LIPO=$lt_LIPO 17917 17918 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 17919 OTOOL=$lt_OTOOL 17920 17921 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17922 OTOOL64=$lt_OTOOL64 17923 17924 # Old archive suffix (normally "a"). 17925 libext=$libext 17926 17927 # Shared library suffix (normally ".so"). 17928 shrext_cmds=$lt_shrext_cmds 17929 17930 # The commands to extract the exported symbol list from a shared archive. 17931 extract_expsyms_cmds=$lt_extract_expsyms_cmds 17932 17933 # Variables whose values should be saved in libtool wrapper scripts and 17934 # restored at link time. 17935 variables_saved_for_relink=$lt_variables_saved_for_relink 17936 17937 # Do we need the "lib" prefix for modules? 17938 need_lib_prefix=$need_lib_prefix 17939 17940 # Do we need a version for libraries? 17941 need_version=$need_version 17942 17943 # Library versioning type. 17944 version_type=$version_type 17945 17946 # Shared library runtime path variable. 17947 runpath_var=$runpath_var 17948 17949 # Shared library path variable. 17950 shlibpath_var=$shlibpath_var 17951 17952 # Is shlibpath searched before the hard-coded library search path? 17953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17954 17955 # Format of library name prefix. 17956 libname_spec=$lt_libname_spec 17957 17958 # List of archive names. First name is the real one, the rest are links. 17959 # The last name is the one that the linker finds with -lNAME 17960 library_names_spec=$lt_library_names_spec 17961 17962 # The coded name of the library, if different from the real name. 17963 soname_spec=$lt_soname_spec 17964 17965 # Command to use after installation of a shared archive. 17966 postinstall_cmds=$lt_postinstall_cmds 17967 17968 # Command to use after uninstallation of a shared archive. 17969 postuninstall_cmds=$lt_postuninstall_cmds 17970 17971 # Commands used to finish a libtool library installation in a directory. 17972 finish_cmds=$lt_finish_cmds 17973 17974 # As "finish_cmds", except a single script fragment to be evaled but 17975 # not shown. 17976 finish_eval=$lt_finish_eval 17977 17978 # Whether we should hardcode library paths into libraries. 17979 hardcode_into_libs=$hardcode_into_libs 17980 17981 # Compile-time system search path for libraries. 17982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17983 17984 # Run-time system search path for libraries. 17985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17986 17987 # Whether dlopen is supported. 17988 dlopen_support=$enable_dlopen 17989 17990 # Whether dlopen of programs is supported. 17991 dlopen_self=$enable_dlopen_self 17992 17993 # Whether dlopen of statically linked programs is supported. 17994 dlopen_self_static=$enable_dlopen_self_static 17995 17996 # Commands to strip libraries. 17997 old_striplib=$lt_old_striplib 17998 striplib=$lt_striplib 17999 18000 18001 # The linker used to build libraries. 18002 LD=$lt_LD 18003 18004 # Commands used to build an old-style archive. 18005 old_archive_cmds=$lt_old_archive_cmds 18006 18007 # A language specific compiler. 18008 CC=$lt_compiler 18009 18010 # Is the compiler the GNU compiler? 18011 with_gcc=$GCC 18012 18013 # Compiler flag to turn off builtin functions. 18014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18015 18016 # How to pass a linker flag through the compiler. 18017 wl=$lt_lt_prog_compiler_wl 18018 18019 # Additional compiler flags for building library objects. 18020 pic_flag=$lt_lt_prog_compiler_pic 18021 18022 # Compiler flag to prevent dynamic linking. 18023 link_static_flag=$lt_lt_prog_compiler_static 18024 18025 # Does compiler simultaneously support -c and -o options? 18026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18027 18028 # Whether or not to add -lc for building shared libraries. 18029 build_libtool_need_lc=$archive_cmds_need_lc 18030 18031 # Whether or not to disallow shared libs when runtime libs are static. 18032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18033 18034 # Compiler flag to allow reflexive dlopens. 18035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18036 18037 # Compiler flag to generate shared objects directly from archives. 18038 whole_archive_flag_spec=$lt_whole_archive_flag_spec 18039 18040 # Whether the compiler copes with passing no objects directly. 18041 compiler_needs_object=$lt_compiler_needs_object 18042 18043 # Create an old-style archive from a shared archive. 18044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18045 18046 # Create a temporary old-style archive to link instead of a shared archive. 18047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18048 18049 # Commands used to build a shared archive. 18050 archive_cmds=$lt_archive_cmds 18051 archive_expsym_cmds=$lt_archive_expsym_cmds 18052 18053 # Commands used to build a loadable module if different from building 18054 # a shared archive. 18055 module_cmds=$lt_module_cmds 18056 module_expsym_cmds=$lt_module_expsym_cmds 18057 18058 # Whether we are building with GNU ld or not. 18059 with_gnu_ld=$lt_with_gnu_ld 18060 18061 # Flag that allows shared libraries with undefined symbols to be built. 18062 allow_undefined_flag=$lt_allow_undefined_flag 18063 18064 # Flag that enforces no undefined symbols. 18065 no_undefined_flag=$lt_no_undefined_flag 18066 18067 # Flag to hardcode \$libdir into a binary during linking. 18068 # This must work even if \$libdir does not exist 18069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18070 18071 # If ld is used when linking, flag to hardcode \$libdir into a binary 18072 # during linking. This must work even if \$libdir does not exist. 18073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 18074 18075 # Whether we need a single "-rpath" flag with a separated argument. 18076 hardcode_libdir_separator=$lt_hardcode_libdir_separator 18077 18078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18079 # DIR into the resulting binary. 18080 hardcode_direct=$hardcode_direct 18081 18082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18083 # DIR into the resulting binary and the resulting library dependency is 18084 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18085 # library is relocated. 18086 hardcode_direct_absolute=$hardcode_direct_absolute 18087 18088 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18089 # into the resulting binary. 18090 hardcode_minus_L=$hardcode_minus_L 18091 18092 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18093 # into the resulting binary. 18094 hardcode_shlibpath_var=$hardcode_shlibpath_var 18095 18096 # Set to "yes" if building a shared library automatically hardcodes DIR 18097 # into the library and all subsequent libraries and executables linked 18098 # against it. 18099 hardcode_automatic=$hardcode_automatic 18100 18101 # Set to yes if linker adds runtime paths of dependent libraries 18102 # to runtime path list. 18103 inherit_rpath=$inherit_rpath 18104 18105 # Whether libtool must link a program against all its dependency libraries. 18106 link_all_deplibs=$link_all_deplibs 18107 18108 # Fix the shell variable \$srcfile for the compiler. 18109 fix_srcfile_path=$lt_fix_srcfile_path 18110 18111 # Set to "yes" if exported symbols are required. 18112 always_export_symbols=$always_export_symbols 18113 18114 # The commands to list exported symbols. 18115 export_symbols_cmds=$lt_export_symbols_cmds 18116 18117 # Symbols that should not be listed in the preloaded symbols. 18118 exclude_expsyms=$lt_exclude_expsyms 18119 18120 # Symbols that must always be exported. 18121 include_expsyms=$lt_include_expsyms 18122 18123 # Commands necessary for linking programs (against libraries) with templates. 18124 prelink_cmds=$lt_prelink_cmds 18125 18126 # Specify filename containing input files. 18127 file_list_spec=$lt_file_list_spec 18128 18129 # How to hardcode a shared library path into an executable. 18130 hardcode_action=$hardcode_action 18131 18132 # ### END LIBTOOL CONFIG 18133 18134 _LT_EOF 18135 18136 case $host_os in 18137 aix3*) 18138 cat <<\_LT_EOF >> "$cfgfile" 18139 # AIX sometimes has problems with the GCC collect2 program. For some 18140 # reason, if we set the COLLECT_NAMES environment variable, the problems 18141 # vanish in a puff of smoke. 18142 if test "X${COLLECT_NAMES+set}" != Xset; then 18143 COLLECT_NAMES= 18144 export COLLECT_NAMES 18145 fi 18146 _LT_EOF 18147 ;; 18148 esac 18149 18150 18151 ltmain="$ac_aux_dir/ltmain.sh" 18152 18153 18154 # We use sed instead of cat because bash on DJGPP gets confused if 18155 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18156 # text mode, it properly converts lines to CR/LF. This bash problem 18157 # is reportedly fixed, but why not run on old versions too? 18158 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 18159 || (rm -f "$cfgfile"; exit 1) 18160 18161 case $xsi_shell in 18162 yes) 18163 cat << \_LT_EOF >> "$cfgfile" 18164 18165 # func_dirname file append nondir_replacement 18166 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 18167 # otherwise set result to NONDIR_REPLACEMENT. 18168 func_dirname () 18169 { 18170 case ${1} in 18171 */*) func_dirname_result="${1%/*}${2}" ;; 18172 * ) func_dirname_result="${3}" ;; 18173 esac 18174 } 18175 18176 # func_basename file 18177 func_basename () 18178 { 18179 func_basename_result="${1##*/}" 18180 } 18181 18182 # func_dirname_and_basename file append nondir_replacement 18183 # perform func_basename and func_dirname in a single function 18184 # call: 18185 # dirname: Compute the dirname of FILE. If nonempty, 18186 # add APPEND to the result, otherwise set result 18187 # to NONDIR_REPLACEMENT. 18188 # value returned in "$func_dirname_result" 18189 # basename: Compute filename of FILE. 18190 # value retuned in "$func_basename_result" 18191 # Implementation must be kept synchronized with func_dirname 18192 # and func_basename. For efficiency, we do not delegate to 18193 # those functions but instead duplicate the functionality here. 18194 func_dirname_and_basename () 18195 { 18196 case ${1} in 18197 */*) func_dirname_result="${1%/*}${2}" ;; 18198 * ) func_dirname_result="${3}" ;; 18199 esac 18200 func_basename_result="${1##*/}" 18201 } 18202 18203 # func_stripname prefix suffix name 18204 # strip PREFIX and SUFFIX off of NAME. 18205 # PREFIX and SUFFIX must not contain globbing or regex special 18206 # characters, hashes, percent signs, but SUFFIX may contain a leading 18207 # dot (in which case that matches only a dot). 18208 func_stripname () 18209 { 18210 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 18211 # positional parameters, so assign one to ordinary parameter first. 18212 func_stripname_result=${3} 18213 func_stripname_result=${func_stripname_result#"${1}"} 18214 func_stripname_result=${func_stripname_result%"${2}"} 18215 } 18216 18217 # func_opt_split 18218 func_opt_split () 18219 { 18220 func_opt_split_opt=${1%%=*} 18221 func_opt_split_arg=${1#*=} 18222 } 18223 18224 # func_lo2o object 18225 func_lo2o () 18226 { 18227 case ${1} in 18228 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 18229 *) func_lo2o_result=${1} ;; 18230 esac 18231 } 18232 18233 # func_xform libobj-or-source 18234 func_xform () 18235 { 18236 func_xform_result=${1%.*}.lo 18237 } 18238 18239 # func_arith arithmetic-term... 18240 func_arith () 18241 { 18242 func_arith_result=$(( $* )) 18243 } 18244 18245 # func_len string 18246 # STRING may not start with a hyphen. 18247 func_len () 18248 { 18249 func_len_result=${#1} 18250 } 18251 18252 _LT_EOF 18253 ;; 18254 *) # Bourne compatible functions. 18255 cat << \_LT_EOF >> "$cfgfile" 18256 18257 # func_dirname file append nondir_replacement 18258 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 18259 # otherwise set result to NONDIR_REPLACEMENT. 18260 func_dirname () 18261 { 18262 # Extract subdirectory from the argument. 18263 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 18264 if test "X$func_dirname_result" = "X${1}"; then 18265 func_dirname_result="${3}" 18266 else 18267 func_dirname_result="$func_dirname_result${2}" 18268 fi 18269 } 18270 18271 # func_basename file 18272 func_basename () 18273 { 18274 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 18275 } 18276 18277 18278 # func_stripname prefix suffix name 18279 # strip PREFIX and SUFFIX off of NAME. 18280 # PREFIX and SUFFIX must not contain globbing or regex special 18281 # characters, hashes, percent signs, but SUFFIX may contain a leading 18282 # dot (in which case that matches only a dot). 18283 # func_strip_suffix prefix name 18284 func_stripname () 18285 { 18286 case ${2} in 18287 .*) func_stripname_result=`$ECHO "X${3}" \ 18288 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 18289 *) func_stripname_result=`$ECHO "X${3}" \ 18290 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 18291 esac 18292 } 18293 18294 # sed scripts: 18295 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 18296 my_sed_long_arg='1s/^-[^=]*=//' 18297 18298 # func_opt_split 18299 func_opt_split () 18300 { 18301 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 18302 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 18303 } 18304 18305 # func_lo2o object 18306 func_lo2o () 18307 { 18308 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 18309 } 18310 18311 # func_xform libobj-or-source 18312 func_xform () 18313 { 18314 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 18315 } 18316 18317 # func_arith arithmetic-term... 18318 func_arith () 18319 { 18320 func_arith_result=`expr "$@"` 18321 } 18322 18323 # func_len string 18324 # STRING may not start with a hyphen. 18325 func_len () 18326 { 18327 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 18328 } 18329 18330 _LT_EOF 18331 esac 18332 18333 case $lt_shell_append in 18334 yes) 18335 cat << \_LT_EOF >> "$cfgfile" 18336 18337 # func_append var value 18338 # Append VALUE to the end of shell variable VAR. 18339 func_append () 18340 { 18341 eval "$1+=\$2" 18342 } 18343 _LT_EOF 18344 ;; 18345 *) 18346 cat << \_LT_EOF >> "$cfgfile" 18347 18348 # func_append var value 18349 # Append VALUE to the end of shell variable VAR. 18350 func_append () 18351 { 18352 eval "$1=\$$1\$2" 18353 } 18354 18355 _LT_EOF 18356 ;; 18357 esac 18358 18359 18360 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 18361 || (rm -f "$cfgfile"; exit 1) 18362 18363 mv -f "$cfgfile" "$ofile" || 18364 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18365 chmod +x "$ofile" 18366 18367 ;; 18368 18369 esac 18370 done # for ac_tag 18371 18372 18373 { (exit 0); exit 0; } 18374 _ACEOF 18375 chmod +x $CONFIG_STATUS 18376 ac_clean_files=$ac_clean_files_save 18377 18378 test $ac_write_fail = 0 || 18379 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 18380 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 18381 { (exit 1); exit 1; }; } 18382 18383 18384 # configure is writing to config.log, and then calls config.status. 18385 # config.status does its own redirection, appending to config.log. 18386 # Unfortunately, on DOS this fails, as config.log is still kept open 18387 # by configure, so config.status won't be able to write to it; its 18388 # output is simply discarded. So we exec the FD to /dev/null, 18389 # effectively closing config.log, so it can be properly (re)opened and 18390 # appended to by config.status. When coming back to configure, we 18391 # need to make the FD available again. 18392 if test "$no_create" != yes; then 18393 ac_cs_success=: 18394 ac_config_status_args= 18395 test "$silent" = yes && 18396 ac_config_status_args="$ac_config_status_args --quiet" 18397 exec 5>/dev/null 18398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18399 exec 5>>config.log 18400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18401 # would make configure fail if this is the last instruction. 18402 $ac_cs_success || { (exit 1); exit 1; } 18403 fi 18404 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18405 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18406 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18407 fi 18408 18409 chmod +x hotplug.sh 18410