1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for libarchive 2.8.3. 4# 5# Report bugs to <kientzle@freebsd.org>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='libarchive' 747PACKAGE_TARNAME='libarchive' 748PACKAGE_VERSION='2.8.3' 749PACKAGE_STRING='libarchive 2.8.3' 750PACKAGE_BUGREPORT='kientzle@freebsd.org' 751 752ac_unique_file="libarchive" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='SHELL 790PATH_SEPARATOR 791PACKAGE_NAME 792PACKAGE_TARNAME 793PACKAGE_VERSION 794PACKAGE_STRING 795PACKAGE_BUGREPORT 796exec_prefix 797prefix 798program_transform_name 799bindir 800sbindir 801libexecdir 802datarootdir 803datadir 804sysconfdir 805sharedstatedir 806localstatedir 807includedir 808oldincludedir 809docdir 810infodir 811htmldir 812dvidir 813pdfdir 814psdir 815libdir 816localedir 817mandir 818DEFS 819ECHO_C 820ECHO_N 821ECHO_T 822LIBS 823build_alias 824host_alias 825target_alias 826INSTALL_PROGRAM 827INSTALL_SCRIPT 828INSTALL_DATA 829am__isrc 830CYGPATH_W 831PACKAGE 832VERSION 833ACLOCAL 834AUTOCONF 835AUTOMAKE 836AUTOHEADER 837MAKEINFO 838install_sh 839STRIP 840INSTALL_STRIP_PROGRAM 841MKDIR_P 842mkdir_p 843AWK 844SET_MAKE 845am__leading_dot 846AMTAR 847am__tar 848am__untar 849ARCHIVE_LIBTOOL_VERSION 850BSDCPIO_VERSION_STRING 851BSDTAR_VERSION_STRING 852LIBARCHIVE_VERSION_STRING 853LIBARCHIVE_VERSION_NUMBER 854build 855build_cpu 856build_vendor 857build_os 858host 859host_cpu 860host_vendor 861host_os 862INC_WINDOWS_FILES_TRUE 863INC_WINDOWS_FILES_FALSE 864INC_CYGWIN_FILES_TRUE 865INC_CYGWIN_FILES_FALSE 866PLATFORMCPPFLAGS 867CC 868CFLAGS 869LDFLAGS 870CPPFLAGS 871ac_ct_CC 872EXEEXT 873OBJEXT 874DEPDIR 875am__include 876am__quote 877AMDEP_TRUE 878AMDEP_FALSE 879AMDEPBACKSLASH 880CCDEPMODE 881am__fastdepCC_TRUE 882am__fastdepCC_FALSE 883CPP 884GREP 885EGREP 886AS 887DLLTOOL 888OBJDUMP 889LIBTOOL 890SED 891FGREP 892LD 893DUMPBIN 894ac_ct_DUMPBIN 895NM 896LN_S 897AR 898RANLIB 899lt_ECHO 900DSYMUTIL 901NMEDIT 902LIPO 903OTOOL 904OTOOL64 905BUILD_BSDTAR_TRUE 906BUILD_BSDTAR_FALSE 907STATIC_BSDTAR_TRUE 908STATIC_BSDTAR_FALSE 909BUILD_BSDCPIO_TRUE 910BUILD_BSDCPIO_FALSE 911STATIC_BSDCPIO_TRUE 912STATIC_BSDCPIO_FALSE 913XML2_CONFIG 914LIBOBJS 915LTLIBOBJS' 916ac_subst_files='' 917ac_user_opts=' 918enable_option_checking 919enable_dependency_tracking 920enable_shared 921enable_static 922with_pic 923enable_fast_install 924with_gnu_ld 925enable_libtool_lock 926enable_bsdtar 927enable_bsdcpio 928with_zlib 929with_bz2lib 930with_lzmadec 931with_lzma 932with_openssl 933with_xml2 934with_expat 935enable_xattr 936enable_acl 937enable_largefile 938' 939 ac_precious_vars='build_alias 940host_alias 941target_alias 942CC 943CFLAGS 944LDFLAGS 945LIBS 946CPPFLAGS 947CPP' 948 949 950# Initialize some variables set by options. 951ac_init_help= 952ac_init_version=false 953ac_unrecognized_opts= 954ac_unrecognized_sep= 955# The variables have the same names as the options, with 956# dashes changed to underlines. 957cache_file=/dev/null 958exec_prefix=NONE 959no_create= 960no_recursion= 961prefix=NONE 962program_prefix=NONE 963program_suffix=NONE 964program_transform_name=s,x,x, 965silent= 966site= 967srcdir= 968verbose= 969x_includes=NONE 970x_libraries=NONE 971 972# Installation directory options. 973# These are left unexpanded so users can "make install exec_prefix=/foo" 974# and all the variables that are supposed to be based on exec_prefix 975# by default will actually change. 976# Use braces instead of parens because sh, perl, etc. also accept them. 977# (The list follows the same order as the GNU Coding Standards.) 978bindir='${exec_prefix}/bin' 979sbindir='${exec_prefix}/sbin' 980libexecdir='${exec_prefix}/libexec' 981datarootdir='${prefix}/share' 982datadir='${datarootdir}' 983sysconfdir='${prefix}/etc' 984sharedstatedir='${prefix}/com' 985localstatedir='${prefix}/var' 986includedir='${prefix}/include' 987oldincludedir='/usr/include' 988docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 989infodir='${datarootdir}/info' 990htmldir='${docdir}' 991dvidir='${docdir}' 992pdfdir='${docdir}' 993psdir='${docdir}' 994libdir='${exec_prefix}/lib' 995localedir='${datarootdir}/locale' 996mandir='${datarootdir}/man' 997 998ac_prev= 999ac_dashdash= 1000for ac_option 1001do 1002 # If the previous option needs an argument, assign it. 1003 if test -n "$ac_prev"; then 1004 eval $ac_prev=\$ac_option 1005 ac_prev= 1006 continue 1007 fi 1008 1009 case $ac_option in 1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1011 *) ac_optarg=yes ;; 1012 esac 1013 1014 # Accept the important Cygnus configure options, so we can diagnose typos. 1015 1016 case $ac_dashdash$ac_option in 1017 --) 1018 ac_dashdash=yes ;; 1019 1020 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1021 ac_prev=bindir ;; 1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1023 bindir=$ac_optarg ;; 1024 1025 -build | --build | --buil | --bui | --bu) 1026 ac_prev=build_alias ;; 1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1028 build_alias=$ac_optarg ;; 1029 1030 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1032 ac_prev=cache_file ;; 1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1035 cache_file=$ac_optarg ;; 1036 1037 --config-cache | -C) 1038 cache_file=config.cache ;; 1039 1040 -datadir | --datadir | --datadi | --datad) 1041 ac_prev=datadir ;; 1042 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1043 datadir=$ac_optarg ;; 1044 1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1046 | --dataroo | --dataro | --datar) 1047 ac_prev=datarootdir ;; 1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1050 datarootdir=$ac_optarg ;; 1051 1052 -disable-* | --disable-*) 1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1054 # Reject names that are not valid shell variable names. 1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1056 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1057 { (exit 1); exit 1; }; } 1058 ac_useropt_orig=$ac_useropt 1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1060 case $ac_user_opts in 1061 *" 1062"enable_$ac_useropt" 1063"*) ;; 1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1065 ac_unrecognized_sep=', ';; 1066 esac 1067 eval enable_$ac_useropt=no ;; 1068 1069 -docdir | --docdir | --docdi | --doc | --do) 1070 ac_prev=docdir ;; 1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1072 docdir=$ac_optarg ;; 1073 1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1075 ac_prev=dvidir ;; 1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1077 dvidir=$ac_optarg ;; 1078 1079 -enable-* | --enable-*) 1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1084 { (exit 1); exit 1; }; } 1085 ac_useropt_orig=$ac_useropt 1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1087 case $ac_user_opts in 1088 *" 1089"enable_$ac_useropt" 1090"*) ;; 1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1092 ac_unrecognized_sep=', ';; 1093 esac 1094 eval enable_$ac_useropt=\$ac_optarg ;; 1095 1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1098 | --exec | --exe | --ex) 1099 ac_prev=exec_prefix ;; 1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1102 | --exec=* | --exe=* | --ex=*) 1103 exec_prefix=$ac_optarg ;; 1104 1105 -gas | --gas | --ga | --g) 1106 # Obsolete; use --with-gas. 1107 with_gas=yes ;; 1108 1109 -help | --help | --hel | --he | -h) 1110 ac_init_help=long ;; 1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1112 ac_init_help=recursive ;; 1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1114 ac_init_help=short ;; 1115 1116 -host | --host | --hos | --ho) 1117 ac_prev=host_alias ;; 1118 -host=* | --host=* | --hos=* | --ho=*) 1119 host_alias=$ac_optarg ;; 1120 1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1122 ac_prev=htmldir ;; 1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1124 | --ht=*) 1125 htmldir=$ac_optarg ;; 1126 1127 -includedir | --includedir | --includedi | --included | --include \ 1128 | --includ | --inclu | --incl | --inc) 1129 ac_prev=includedir ;; 1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1131 | --includ=* | --inclu=* | --incl=* | --inc=*) 1132 includedir=$ac_optarg ;; 1133 1134 -infodir | --infodir | --infodi | --infod | --info | --inf) 1135 ac_prev=infodir ;; 1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1137 infodir=$ac_optarg ;; 1138 1139 -libdir | --libdir | --libdi | --libd) 1140 ac_prev=libdir ;; 1141 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1142 libdir=$ac_optarg ;; 1143 1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1145 | --libexe | --libex | --libe) 1146 ac_prev=libexecdir ;; 1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1148 | --libexe=* | --libex=* | --libe=*) 1149 libexecdir=$ac_optarg ;; 1150 1151 -localedir | --localedir | --localedi | --localed | --locale) 1152 ac_prev=localedir ;; 1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1154 localedir=$ac_optarg ;; 1155 1156 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1157 | --localstate | --localstat | --localsta | --localst | --locals) 1158 ac_prev=localstatedir ;; 1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1161 localstatedir=$ac_optarg ;; 1162 1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1164 ac_prev=mandir ;; 1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1166 mandir=$ac_optarg ;; 1167 1168 -nfp | --nfp | --nf) 1169 # Obsolete; use --without-fp. 1170 with_fp=no ;; 1171 1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1173 | --no-cr | --no-c | -n) 1174 no_create=yes ;; 1175 1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1178 no_recursion=yes ;; 1179 1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1182 | --oldin | --oldi | --old | --ol | --o) 1183 ac_prev=oldincludedir ;; 1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1187 oldincludedir=$ac_optarg ;; 1188 1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1190 ac_prev=prefix ;; 1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1192 prefix=$ac_optarg ;; 1193 1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1195 | --program-pre | --program-pr | --program-p) 1196 ac_prev=program_prefix ;; 1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1199 program_prefix=$ac_optarg ;; 1200 1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1202 | --program-suf | --program-su | --program-s) 1203 ac_prev=program_suffix ;; 1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1206 program_suffix=$ac_optarg ;; 1207 1208 -program-transform-name | --program-transform-name \ 1209 | --program-transform-nam | --program-transform-na \ 1210 | --program-transform-n | --program-transform- \ 1211 | --program-transform | --program-transfor \ 1212 | --program-transfo | --program-transf \ 1213 | --program-trans | --program-tran \ 1214 | --progr-tra | --program-tr | --program-t) 1215 ac_prev=program_transform_name ;; 1216 -program-transform-name=* | --program-transform-name=* \ 1217 | --program-transform-nam=* | --program-transform-na=* \ 1218 | --program-transform-n=* | --program-transform-=* \ 1219 | --program-transform=* | --program-transfor=* \ 1220 | --program-transfo=* | --program-transf=* \ 1221 | --program-trans=* | --program-tran=* \ 1222 | --progr-tra=* | --program-tr=* | --program-t=*) 1223 program_transform_name=$ac_optarg ;; 1224 1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1226 ac_prev=pdfdir ;; 1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1228 pdfdir=$ac_optarg ;; 1229 1230 -psdir | --psdir | --psdi | --psd | --ps) 1231 ac_prev=psdir ;; 1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1233 psdir=$ac_optarg ;; 1234 1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1236 | -silent | --silent | --silen | --sile | --sil) 1237 silent=yes ;; 1238 1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1240 ac_prev=sbindir ;; 1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1242 | --sbi=* | --sb=*) 1243 sbindir=$ac_optarg ;; 1244 1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1247 | --sharedst | --shareds | --shared | --share | --shar \ 1248 | --sha | --sh) 1249 ac_prev=sharedstatedir ;; 1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1253 | --sha=* | --sh=*) 1254 sharedstatedir=$ac_optarg ;; 1255 1256 -site | --site | --sit) 1257 ac_prev=site ;; 1258 -site=* | --site=* | --sit=*) 1259 site=$ac_optarg ;; 1260 1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1262 ac_prev=srcdir ;; 1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1264 srcdir=$ac_optarg ;; 1265 1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1267 | --syscon | --sysco | --sysc | --sys | --sy) 1268 ac_prev=sysconfdir ;; 1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1271 sysconfdir=$ac_optarg ;; 1272 1273 -target | --target | --targe | --targ | --tar | --ta | --t) 1274 ac_prev=target_alias ;; 1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1276 target_alias=$ac_optarg ;; 1277 1278 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1279 verbose=yes ;; 1280 1281 -version | --version | --versio | --versi | --vers | -V) 1282 ac_init_version=: ;; 1283 1284 -with-* | --with-*) 1285 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1286 # Reject names that are not valid shell variable names. 1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1288 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1289 { (exit 1); exit 1; }; } 1290 ac_useropt_orig=$ac_useropt 1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1292 case $ac_user_opts in 1293 *" 1294"with_$ac_useropt" 1295"*) ;; 1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1297 ac_unrecognized_sep=', ';; 1298 esac 1299 eval with_$ac_useropt=\$ac_optarg ;; 1300 1301 -without-* | --without-*) 1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1303 # Reject names that are not valid shell variable names. 1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1305 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1306 { (exit 1); exit 1; }; } 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311"with_$ac_useropt" 1312"*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval with_$ac_useropt=no ;; 1317 1318 --x) 1319 # Obsolete; use --with-x. 1320 with_x=yes ;; 1321 1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1323 | --x-incl | --x-inc | --x-in | --x-i) 1324 ac_prev=x_includes ;; 1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1327 x_includes=$ac_optarg ;; 1328 1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1331 ac_prev=x_libraries ;; 1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1334 x_libraries=$ac_optarg ;; 1335 1336 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1337Try \`$0 --help' for more information." >&2 1338 { (exit 1); exit 1; }; } 1339 ;; 1340 1341 *=*) 1342 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1343 # Reject names that are not valid shell variable names. 1344 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1345 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1346 { (exit 1); exit 1; }; } 1347 eval $ac_envvar=\$ac_optarg 1348 export $ac_envvar ;; 1349 1350 *) 1351 # FIXME: should be removed in autoconf 3.0. 1352 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1354 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1355 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1356 ;; 1357 1358 esac 1359done 1360 1361if test -n "$ac_prev"; then 1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1363 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1364 { (exit 1); exit 1; }; } 1365fi 1366 1367if test -n "$ac_unrecognized_opts"; then 1368 case $enable_option_checking in 1369 no) ;; 1370 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1371 { (exit 1); exit 1; }; } ;; 1372 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1373 esac 1374fi 1375 1376# Check all directory arguments for consistency. 1377for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1378 datadir sysconfdir sharedstatedir localstatedir includedir \ 1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1380 libdir localedir mandir 1381do 1382 eval ac_val=\$$ac_var 1383 # Remove trailing slashes. 1384 case $ac_val in 1385 */ ) 1386 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1387 eval $ac_var=\$ac_val;; 1388 esac 1389 # Be sure to have absolute directory names. 1390 case $ac_val in 1391 [\\/$]* | ?:[\\/]* ) continue;; 1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1393 esac 1394 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1395 { (exit 1); exit 1; }; } 1396done 1397 1398# There might be people who depend on the old broken behavior: `$host' 1399# used to hold the argument of --host etc. 1400# FIXME: To remove some day. 1401build=$build_alias 1402host=$host_alias 1403target=$target_alias 1404 1405# FIXME: To remove some day. 1406if test "x$host_alias" != x; then 1407 if test "x$build_alias" = x; then 1408 cross_compiling=maybe 1409 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1410 If a cross compiler is detected then cross compile mode will be used." >&2 1411 elif test "x$build_alias" != "x$host_alias"; then 1412 cross_compiling=yes 1413 fi 1414fi 1415 1416ac_tool_prefix= 1417test -n "$host_alias" && ac_tool_prefix=$host_alias- 1418 1419test "$silent" = yes && exec 6>/dev/null 1420 1421 1422ac_pwd=`pwd` && test -n "$ac_pwd" && 1423ac_ls_di=`ls -di .` && 1424ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1425 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1426 { (exit 1); exit 1; }; } 1427test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1428 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1429 { (exit 1); exit 1; }; } 1430 1431 1432# Find the source files, if location was not specified. 1433if test -z "$srcdir"; then 1434 ac_srcdir_defaulted=yes 1435 # Try the directory containing this script, then the parent directory. 1436 ac_confdir=`$as_dirname -- "$as_myself" || 1437$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1438 X"$as_myself" : 'X\(//\)[^/]' \| \ 1439 X"$as_myself" : 'X\(//\)$' \| \ 1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1441$as_echo X"$as_myself" | 1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1443 s//\1/ 1444 q 1445 } 1446 /^X\(\/\/\)[^/].*/{ 1447 s//\1/ 1448 q 1449 } 1450 /^X\(\/\/\)$/{ 1451 s//\1/ 1452 q 1453 } 1454 /^X\(\/\).*/{ 1455 s//\1/ 1456 q 1457 } 1458 s/.*/./; q'` 1459 srcdir=$ac_confdir 1460 if test ! -r "$srcdir/$ac_unique_file"; then 1461 srcdir=.. 1462 fi 1463else 1464 ac_srcdir_defaulted=no 1465fi 1466if test ! -r "$srcdir/$ac_unique_file"; then 1467 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1468 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1469 { (exit 1); exit 1; }; } 1470fi 1471ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1472ac_abs_confdir=`( 1473 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1474 { (exit 1); exit 1; }; } 1475 pwd)` 1476# When building in place, set srcdir=. 1477if test "$ac_abs_confdir" = "$ac_pwd"; then 1478 srcdir=. 1479fi 1480# Remove unnecessary trailing slashes from srcdir. 1481# Double slashes in file names in object file debugging info 1482# mess up M-x gdb in Emacs. 1483case $srcdir in 1484*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1485esac 1486for ac_var in $ac_precious_vars; do 1487 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1488 eval ac_env_${ac_var}_value=\$${ac_var} 1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1490 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1491done 1492 1493# 1494# Report the --help message. 1495# 1496if test "$ac_init_help" = "long"; then 1497 # Omit some internal or obsolete options to make the list less imposing. 1498 # This message is too long to be a string in the A/UX 3.1 sh. 1499 cat <<_ACEOF 1500\`configure' configures libarchive 2.8.3 to adapt to many kinds of systems. 1501 1502Usage: $0 [OPTION]... [VAR=VALUE]... 1503 1504To assign environment variables (e.g., CC, CFLAGS...), specify them as 1505VAR=VALUE. See below for descriptions of some of the useful variables. 1506 1507Defaults for the options are specified in brackets. 1508 1509Configuration: 1510 -h, --help display this help and exit 1511 --help=short display options specific to this package 1512 --help=recursive display the short help of all the included packages 1513 -V, --version display version information and exit 1514 -q, --quiet, --silent do not print \`checking...' messages 1515 --cache-file=FILE cache test results in FILE [disabled] 1516 -C, --config-cache alias for \`--cache-file=config.cache' 1517 -n, --no-create do not create output files 1518 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1519 1520Installation directories: 1521 --prefix=PREFIX install architecture-independent files in PREFIX 1522 [$ac_default_prefix] 1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1524 [PREFIX] 1525 1526By default, \`make install' will install all the files in 1527\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1528an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1529for instance \`--prefix=\$HOME'. 1530 1531For better control, use the options below. 1532 1533Fine tuning of the installation directories: 1534 --bindir=DIR user executables [EPREFIX/bin] 1535 --sbindir=DIR system admin executables [EPREFIX/sbin] 1536 --libexecdir=DIR program executables [EPREFIX/libexec] 1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1540 --libdir=DIR object code libraries [EPREFIX/lib] 1541 --includedir=DIR C header files [PREFIX/include] 1542 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1545 --infodir=DIR info documentation [DATAROOTDIR/info] 1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1547 --mandir=DIR man documentation [DATAROOTDIR/man] 1548 --docdir=DIR documentation root [DATAROOTDIR/doc/libarchive] 1549 --htmldir=DIR html documentation [DOCDIR] 1550 --dvidir=DIR dvi documentation [DOCDIR] 1551 --pdfdir=DIR pdf documentation [DOCDIR] 1552 --psdir=DIR ps documentation [DOCDIR] 1553_ACEOF 1554 1555 cat <<\_ACEOF 1556 1557Program names: 1558 --program-prefix=PREFIX prepend PREFIX to installed program names 1559 --program-suffix=SUFFIX append SUFFIX to installed program names 1560 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1561 1562System types: 1563 --build=BUILD configure for building on BUILD [guessed] 1564 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1565_ACEOF 1566fi 1567 1568if test -n "$ac_init_help"; then 1569 case $ac_init_help in 1570 short | recursive ) echo "Configuration of libarchive 2.8.3:";; 1571 esac 1572 cat <<\_ACEOF 1573 1574Optional Features: 1575 --disable-option-checking ignore unrecognized --enable/--with options 1576 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1577 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1578 --disable-dependency-tracking speeds up one-time build 1579 --enable-dependency-tracking do not reject slow dependency extractors 1580 --enable-shared[=PKGS] build shared libraries [default=yes] 1581 --enable-static[=PKGS] build static libraries [default=yes] 1582 --enable-fast-install[=PKGS] 1583 optimize for fast installation [default=yes] 1584 --disable-libtool-lock avoid locking (might break parallel builds) 1585 --enable-bsdtar enable build of bsdtar (default) 1586 --enable-bsdtar=static force static build of bsdtar 1587 --enable-bsdtar=shared force dynamic build of bsdtar 1588 --disable-bsdtar disable build of bsdtar 1589 --enable-bsdcpio enable build of bsdcpio (default) 1590 --enable-bsdcpio=static static build of bsdcpio 1591 --enable-bsdcpio=shared dynamic build of bsdcpio 1592 --disable-bsdcpio disable build of bsdcpio 1593 --disable-xattr Enable Extended Attributes support (default: check) 1594 --disable-acl Enable ACL support (default: check) 1595 --disable-largefile omit support for large files 1596 1597Optional Packages: 1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1600 --with-pic try to use only PIC/non-PIC objects [default=use 1601 both] 1602 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1603 --without-zlib Don't build support for gzip through zlib 1604 --without-bz2lib Don't build support for bzip2 through bz2lib 1605 --without-lzmadec Don't build support for lzma through lzmadec 1606 --without-lzma Don't build support for xz through lzma 1607 --without-openssl Don't build support for mtree and xar hashes through 1608 openssl 1609 --without-xml2 Don't build support for xar through libxml2 1610 --without-expat Don't build support for xar through expat 1611 1612Some influential environment variables: 1613 CC C compiler command 1614 CFLAGS C compiler flags 1615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1616 nonstandard directory <lib dir> 1617 LIBS libraries to pass to the linker, e.g. -l<library> 1618 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1619 you have headers in a nonstandard directory <include dir> 1620 CPP C preprocessor 1621 1622Use these variables to override the choices made by `configure' or to help 1623it to find libraries and programs with nonstandard names/locations. 1624 1625Report bugs to <kientzle@freebsd.org>. 1626_ACEOF 1627ac_status=$? 1628fi 1629 1630if test "$ac_init_help" = "recursive"; then 1631 # If there are subdirs, report their specific --help. 1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1633 test -d "$ac_dir" || 1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1635 continue 1636 ac_builddir=. 1637 1638case "$ac_dir" in 1639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1640*) 1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1642 # A ".." for each directory in $ac_dir_suffix. 1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1644 case $ac_top_builddir_sub in 1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1647 esac ;; 1648esac 1649ac_abs_top_builddir=$ac_pwd 1650ac_abs_builddir=$ac_pwd$ac_dir_suffix 1651# for backward compatibility: 1652ac_top_builddir=$ac_top_build_prefix 1653 1654case $srcdir in 1655 .) # We are building in place. 1656 ac_srcdir=. 1657 ac_top_srcdir=$ac_top_builddir_sub 1658 ac_abs_top_srcdir=$ac_pwd ;; 1659 [\\/]* | ?:[\\/]* ) # Absolute name. 1660 ac_srcdir=$srcdir$ac_dir_suffix; 1661 ac_top_srcdir=$srcdir 1662 ac_abs_top_srcdir=$srcdir ;; 1663 *) # Relative name. 1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1665 ac_top_srcdir=$ac_top_build_prefix$srcdir 1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1667esac 1668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1669 1670 cd "$ac_dir" || { ac_status=$?; continue; } 1671 # Check for guested configure. 1672 if test -f "$ac_srcdir/configure.gnu"; then 1673 echo && 1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1675 elif test -f "$ac_srcdir/configure"; then 1676 echo && 1677 $SHELL "$ac_srcdir/configure" --help=recursive 1678 else 1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1680 fi || ac_status=$? 1681 cd "$ac_pwd" || { ac_status=$?; break; } 1682 done 1683fi 1684 1685test -n "$ac_init_help" && exit $ac_status 1686if $ac_init_version; then 1687 cat <<\_ACEOF 1688libarchive configure 2.8.3 1689generated by GNU Autoconf 2.62 1690 1691Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16922002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1693This configure script is free software; the Free Software Foundation 1694gives unlimited permission to copy, distribute and modify it. 1695_ACEOF 1696 exit 1697fi 1698cat >config.log <<_ACEOF 1699This file contains any messages produced by compilers while 1700running configure, to aid debugging if configure makes a mistake. 1701 1702It was created by libarchive $as_me 2.8.3, which was 1703generated by GNU Autoconf 2.62. Invocation command line was 1704 1705 $ $0 $@ 1706 1707_ACEOF 1708exec 5>>config.log 1709{ 1710cat <<_ASUNAME 1711## --------- ## 1712## Platform. ## 1713## --------- ## 1714 1715hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1716uname -m = `(uname -m) 2>/dev/null || echo unknown` 1717uname -r = `(uname -r) 2>/dev/null || echo unknown` 1718uname -s = `(uname -s) 2>/dev/null || echo unknown` 1719uname -v = `(uname -v) 2>/dev/null || echo unknown` 1720 1721/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1722/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1723 1724/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1725/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1726/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1727/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1728/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1729/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1730/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1731 1732_ASUNAME 1733 1734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1735for as_dir in $PATH 1736do 1737 IFS=$as_save_IFS 1738 test -z "$as_dir" && as_dir=. 1739 $as_echo "PATH: $as_dir" 1740done 1741IFS=$as_save_IFS 1742 1743} >&5 1744 1745cat >&5 <<_ACEOF 1746 1747 1748## ----------- ## 1749## Core tests. ## 1750## ----------- ## 1751 1752_ACEOF 1753 1754 1755# Keep a trace of the command line. 1756# Strip out --no-create and --no-recursion so they do not pile up. 1757# Strip out --silent because we don't want to record it for future runs. 1758# Also quote any args containing shell meta-characters. 1759# Make two passes to allow for proper duplicate-argument suppression. 1760ac_configure_args= 1761ac_configure_args0= 1762ac_configure_args1= 1763ac_must_keep_next=false 1764for ac_pass in 1 2 1765do 1766 for ac_arg 1767 do 1768 case $ac_arg in 1769 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1771 | -silent | --silent | --silen | --sile | --sil) 1772 continue ;; 1773 *\'*) 1774 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1775 esac 1776 case $ac_pass in 1777 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1778 2) 1779 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1780 if test $ac_must_keep_next = true; then 1781 ac_must_keep_next=false # Got value, back to normal. 1782 else 1783 case $ac_arg in 1784 *=* | --config-cache | -C | -disable-* | --disable-* \ 1785 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1786 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1787 | -with-* | --with-* | -without-* | --without-* | --x) 1788 case "$ac_configure_args0 " in 1789 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1790 esac 1791 ;; 1792 -* ) ac_must_keep_next=true ;; 1793 esac 1794 fi 1795 ac_configure_args="$ac_configure_args '$ac_arg'" 1796 ;; 1797 esac 1798 done 1799done 1800$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1801$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1802 1803# When interrupted or exit'd, cleanup temporary files, and complete 1804# config.log. We remove comments because anyway the quotes in there 1805# would cause problems or look ugly. 1806# WARNING: Use '\'' to represent an apostrophe within the trap. 1807# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1808trap 'exit_status=$? 1809 # Save into config.log some information that might help in debugging. 1810 { 1811 echo 1812 1813 cat <<\_ASBOX 1814## ---------------- ## 1815## Cache variables. ## 1816## ---------------- ## 1817_ASBOX 1818 echo 1819 # The following way of writing the cache mishandles newlines in values, 1820( 1821 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1822 eval ac_val=\$$ac_var 1823 case $ac_val in #( 1824 *${as_nl}*) 1825 case $ac_var in #( 1826 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1827$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1828 esac 1829 case $ac_var in #( 1830 _ | IFS | as_nl) ;; #( 1831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1832 *) $as_unset $ac_var ;; 1833 esac ;; 1834 esac 1835 done 1836 (set) 2>&1 | 1837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1838 *${as_nl}ac_space=\ *) 1839 sed -n \ 1840 "s/'\''/'\''\\\\'\'''\''/g; 1841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1842 ;; #( 1843 *) 1844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1845 ;; 1846 esac | 1847 sort 1848) 1849 echo 1850 1851 cat <<\_ASBOX 1852## ----------------- ## 1853## Output variables. ## 1854## ----------------- ## 1855_ASBOX 1856 echo 1857 for ac_var in $ac_subst_vars 1858 do 1859 eval ac_val=\$$ac_var 1860 case $ac_val in 1861 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1862 esac 1863 $as_echo "$ac_var='\''$ac_val'\''" 1864 done | sort 1865 echo 1866 1867 if test -n "$ac_subst_files"; then 1868 cat <<\_ASBOX 1869## ------------------- ## 1870## File substitutions. ## 1871## ------------------- ## 1872_ASBOX 1873 echo 1874 for ac_var in $ac_subst_files 1875 do 1876 eval ac_val=\$$ac_var 1877 case $ac_val in 1878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1879 esac 1880 $as_echo "$ac_var='\''$ac_val'\''" 1881 done | sort 1882 echo 1883 fi 1884 1885 if test -s confdefs.h; then 1886 cat <<\_ASBOX 1887## ----------- ## 1888## confdefs.h. ## 1889## ----------- ## 1890_ASBOX 1891 echo 1892 cat confdefs.h 1893 echo 1894 fi 1895 test "$ac_signal" != 0 && 1896 $as_echo "$as_me: caught signal $ac_signal" 1897 $as_echo "$as_me: exit $exit_status" 1898 } >&5 1899 rm -f core *.core core.conftest.* && 1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1901 exit $exit_status 1902' 0 1903for ac_signal in 1 2 13 15; do 1904 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1905done 1906ac_signal=0 1907 1908# confdefs.h avoids OS command line length limits that DEFS can exceed. 1909rm -f -r conftest* confdefs.h 1910 1911# Predefined preprocessor variables. 1912 1913cat >>confdefs.h <<_ACEOF 1914#define PACKAGE_NAME "$PACKAGE_NAME" 1915_ACEOF 1916 1917 1918cat >>confdefs.h <<_ACEOF 1919#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1920_ACEOF 1921 1922 1923cat >>confdefs.h <<_ACEOF 1924#define PACKAGE_VERSION "$PACKAGE_VERSION" 1925_ACEOF 1926 1927 1928cat >>confdefs.h <<_ACEOF 1929#define PACKAGE_STRING "$PACKAGE_STRING" 1930_ACEOF 1931 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1935_ACEOF 1936 1937 1938# Let the site file select an alternate cache file if it wants to. 1939# Prefer an explicitly selected file to automatically selected ones. 1940ac_site_file1=NONE 1941ac_site_file2=NONE 1942if test -n "$CONFIG_SITE"; then 1943 ac_site_file1=$CONFIG_SITE 1944elif test "x$prefix" != xNONE; then 1945 ac_site_file1=$prefix/share/config.site 1946 ac_site_file2=$prefix/etc/config.site 1947else 1948 ac_site_file1=$ac_default_prefix/share/config.site 1949 ac_site_file2=$ac_default_prefix/etc/config.site 1950fi 1951for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1952do 1953 test "x$ac_site_file" = xNONE && continue 1954 if test -r "$ac_site_file"; then 1955 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1956$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1957 sed 's/^/| /' "$ac_site_file" >&5 1958 . "$ac_site_file" 1959 fi 1960done 1961 1962if test -r "$cache_file"; then 1963 # Some versions of bash will fail to source /dev/null (special 1964 # files actually), so we avoid doing that. 1965 if test -f "$cache_file"; then 1966 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1967$as_echo "$as_me: loading cache $cache_file" >&6;} 1968 case $cache_file in 1969 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1970 *) . "./$cache_file";; 1971 esac 1972 fi 1973else 1974 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1975$as_echo "$as_me: creating cache $cache_file" >&6;} 1976 >$cache_file 1977fi 1978 1979# Check that the precious variables saved in the cache have kept the same 1980# value. 1981ac_cache_corrupted=false 1982for ac_var in $ac_precious_vars; do 1983 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1984 eval ac_new_set=\$ac_env_${ac_var}_set 1985 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1986 eval ac_new_val=\$ac_env_${ac_var}_value 1987 case $ac_old_set,$ac_new_set in 1988 set,) 1989 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1990$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1991 ac_cache_corrupted=: ;; 1992 ,set) 1993 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1994$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1995 ac_cache_corrupted=: ;; 1996 ,);; 1997 *) 1998 if test "x$ac_old_val" != "x$ac_new_val"; then 1999 # differences in whitespace do not lead to failure. 2000 ac_old_val_w=`echo x $ac_old_val` 2001 ac_new_val_w=`echo x $ac_new_val` 2002 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2004$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2005 ac_cache_corrupted=: 2006 else 2007 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2008$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2009 eval $ac_var=\$ac_old_val 2010 fi 2011 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2012$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2013 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2014$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2015 fi;; 2016 esac 2017 # Pass precious variables to config.status. 2018 if test "$ac_new_set" = set; then 2019 case $ac_new_val in 2020 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2021 *) ac_arg=$ac_var=$ac_new_val ;; 2022 esac 2023 case " $ac_configure_args " in 2024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2025 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2026 esac 2027 fi 2028done 2029if $ac_cache_corrupted; then 2030 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2031$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2032 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2033$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2034 { (exit 1); exit 1; }; } 2035fi 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061ac_ext=c 2062ac_cpp='$CPP $CPPFLAGS' 2063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2065ac_compiler_gnu=$ac_cv_c_compiler_gnu 2066 2067 2068# Make sure the srcdir contains "libarchive" directory 2069 2070# Use auxiliary subscripts from this subdirectory (cleans up root) 2071ac_aux_dir= 2072for ac_dir in build/autoconf "$srcdir"/build/autoconf; do 2073 if test -f "$ac_dir/install-sh"; then 2074 ac_aux_dir=$ac_dir 2075 ac_install_sh="$ac_aux_dir/install-sh -c" 2076 break 2077 elif test -f "$ac_dir/install.sh"; then 2078 ac_aux_dir=$ac_dir 2079 ac_install_sh="$ac_aux_dir/install.sh -c" 2080 break 2081 elif test -f "$ac_dir/shtool"; then 2082 ac_aux_dir=$ac_dir 2083 ac_install_sh="$ac_aux_dir/shtool install -c" 2084 break 2085 fi 2086done 2087if test -z "$ac_aux_dir"; then 2088 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build/autoconf \"$srcdir\"/build/autoconf" >&5 2089$as_echo "$as_me: error: cannot find install-sh or install.sh in build/autoconf \"$srcdir\"/build/autoconf" >&2;} 2090 { (exit 1); exit 1; }; } 2091fi 2092 2093# These three variables are undocumented and unsupported, 2094# and are intended to be withdrawn in a future Autoconf release. 2095# They can cause serious problems if a builder's source tree is in a directory 2096# whose full name contains unusual characters. 2097ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2098ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2099ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2100 2101 2102# M4 scripts 2103 2104# Must follow AC_CONFIG macros above... 2105am__api_version='1.10' 2106 2107# Find a good install program. We prefer a C program (faster), 2108# so one script is as good as another. But avoid the broken or 2109# incompatible versions: 2110# SysV /etc/install, /usr/sbin/install 2111# SunOS /usr/etc/install 2112# IRIX /sbin/install 2113# AIX /bin/install 2114# AmigaOS /C/install, which installs bootblocks on floppy discs 2115# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2116# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2117# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2118# OS/2's system install, which has a completely different semantic 2119# ./install, which can be erroneously created by make from ./install.sh. 2120# Reject install programs that cannot install multiple files. 2121{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2122$as_echo_n "checking for a BSD-compatible install... " >&6; } 2123if test -z "$INSTALL"; then 2124if test "${ac_cv_path_install+set}" = set; then 2125 $as_echo_n "(cached) " >&6 2126else 2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2128for as_dir in $PATH 2129do 2130 IFS=$as_save_IFS 2131 test -z "$as_dir" && as_dir=. 2132 # Account for people who put trailing slashes in PATH elements. 2133case $as_dir/ in 2134 ./ | .// | /cC/* | \ 2135 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2136 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2137 /usr/ucb/* ) ;; 2138 *) 2139 # OSF1 and SCO ODT 3.0 have their own names for install. 2140 # Don't use installbsd from OSF since it installs stuff as root 2141 # by default. 2142 for ac_prog in ginstall scoinst install; do 2143 for ac_exec_ext in '' $ac_executable_extensions; do 2144 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2145 if test $ac_prog = install && 2146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2147 # AIX install. It has an incompatible calling convention. 2148 : 2149 elif test $ac_prog = install && 2150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2151 # program-specific install script used by HP pwplus--don't use. 2152 : 2153 else 2154 rm -rf conftest.one conftest.two conftest.dir 2155 echo one > conftest.one 2156 echo two > conftest.two 2157 mkdir conftest.dir 2158 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2159 test -s conftest.one && test -s conftest.two && 2160 test -s conftest.dir/conftest.one && 2161 test -s conftest.dir/conftest.two 2162 then 2163 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2164 break 3 2165 fi 2166 fi 2167 fi 2168 done 2169 done 2170 ;; 2171esac 2172 2173done 2174IFS=$as_save_IFS 2175 2176rm -rf conftest.one conftest.two conftest.dir 2177 2178fi 2179 if test "${ac_cv_path_install+set}" = set; then 2180 INSTALL=$ac_cv_path_install 2181 else 2182 # As a last resort, use the slow shell script. Don't cache a 2183 # value for INSTALL within a source directory, because that will 2184 # break other packages using the cache if that directory is 2185 # removed, or if the value is a relative name. 2186 INSTALL=$ac_install_sh 2187 fi 2188fi 2189{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2190$as_echo "$INSTALL" >&6; } 2191 2192# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2193# It thinks the first close brace ends the variable substitution. 2194test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2195 2196test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2197 2198test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2199 2200{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2201$as_echo_n "checking whether build environment is sane... " >&6; } 2202# Just in case 2203sleep 1 2204echo timestamp > conftest.file 2205# Do `set' in a subshell so we don't clobber the current shell's 2206# arguments. Must try -L first in case configure is actually a 2207# symlink; some systems play weird games with the mod time of symlinks 2208# (eg FreeBSD returns the mod time of the symlink's containing 2209# directory). 2210if ( 2211 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2212 if test "$*" = "X"; then 2213 # -L didn't work. 2214 set X `ls -t $srcdir/configure conftest.file` 2215 fi 2216 rm -f conftest.file 2217 if test "$*" != "X $srcdir/configure conftest.file" \ 2218 && test "$*" != "X conftest.file $srcdir/configure"; then 2219 2220 # If neither matched, then we have a broken ls. This can happen 2221 # if, for instance, CONFIG_SHELL is bash and it inherits a 2222 # broken ls alias from the environment. This has actually 2223 # happened. Such a system could not be considered "sane". 2224 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2225alias in your environment" >&5 2226$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2227alias in your environment" >&2;} 2228 { (exit 1); exit 1; }; } 2229 fi 2230 2231 test "$2" = conftest.file 2232 ) 2233then 2234 # Ok. 2235 : 2236else 2237 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2238Check your system clock" >&5 2239$as_echo "$as_me: error: newly created file is older than distributed files! 2240Check your system clock" >&2;} 2241 { (exit 1); exit 1; }; } 2242fi 2243{ $as_echo "$as_me:$LINENO: result: yes" >&5 2244$as_echo "yes" >&6; } 2245test "$program_prefix" != NONE && 2246 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2247# Use a double $ so make ignores it. 2248test "$program_suffix" != NONE && 2249 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2250# Double any \ or $. 2251# By default was `s,x,x', remove it if useless. 2252ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2253program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2254 2255# expand $ac_aux_dir to an absolute path 2256am_aux_dir=`cd $ac_aux_dir && pwd` 2257 2258test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2259# Use eval to expand $SHELL 2260if eval "$MISSING --run true"; then 2261 am_missing_run="$MISSING --run " 2262else 2263 am_missing_run= 2264 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2265$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2266fi 2267 2268{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2269$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2270if test -z "$MKDIR_P"; then 2271 if test "${ac_cv_path_mkdir+set}" = set; then 2272 $as_echo_n "(cached) " >&6 2273else 2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2275for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2276do 2277 IFS=$as_save_IFS 2278 test -z "$as_dir" && as_dir=. 2279 for ac_prog in mkdir gmkdir; do 2280 for ac_exec_ext in '' $ac_executable_extensions; do 2281 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2282 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2283 'mkdir (GNU coreutils) '* | \ 2284 'mkdir (coreutils) '* | \ 2285 'mkdir (fileutils) '4.1*) 2286 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2287 break 3;; 2288 esac 2289 done 2290 done 2291done 2292IFS=$as_save_IFS 2293 2294fi 2295 2296 if test "${ac_cv_path_mkdir+set}" = set; then 2297 MKDIR_P="$ac_cv_path_mkdir -p" 2298 else 2299 # As a last resort, use the slow shell script. Don't cache a 2300 # value for MKDIR_P within a source directory, because that will 2301 # break other packages using the cache if that directory is 2302 # removed, or if the value is a relative name. 2303 test -d ./--version && rmdir ./--version 2304 MKDIR_P="$ac_install_sh -d" 2305 fi 2306fi 2307{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2308$as_echo "$MKDIR_P" >&6; } 2309 2310mkdir_p="$MKDIR_P" 2311case $mkdir_p in 2312 [\\/$]* | ?:[\\/]*) ;; 2313 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2314esac 2315 2316for ac_prog in gawk mawk nawk awk 2317do 2318 # Extract the first word of "$ac_prog", so it can be a program name with args. 2319set dummy $ac_prog; ac_word=$2 2320{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2321$as_echo_n "checking for $ac_word... " >&6; } 2322if test "${ac_cv_prog_AWK+set}" = set; then 2323 $as_echo_n "(cached) " >&6 2324else 2325 if test -n "$AWK"; then 2326 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2327else 2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2329for as_dir in $PATH 2330do 2331 IFS=$as_save_IFS 2332 test -z "$as_dir" && as_dir=. 2333 for ac_exec_ext in '' $ac_executable_extensions; do 2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2335 ac_cv_prog_AWK="$ac_prog" 2336 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2337 break 2 2338 fi 2339done 2340done 2341IFS=$as_save_IFS 2342 2343fi 2344fi 2345AWK=$ac_cv_prog_AWK 2346if test -n "$AWK"; then 2347 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2348$as_echo "$AWK" >&6; } 2349else 2350 { $as_echo "$as_me:$LINENO: result: no" >&5 2351$as_echo "no" >&6; } 2352fi 2353 2354 2355 test -n "$AWK" && break 2356done 2357 2358{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2359$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2360set x ${MAKE-make} 2361ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2362if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2363 $as_echo_n "(cached) " >&6 2364else 2365 cat >conftest.make <<\_ACEOF 2366SHELL = /bin/sh 2367all: 2368 @echo '@@@%%%=$(MAKE)=@@@%%%' 2369_ACEOF 2370# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2371case `${MAKE-make} -f conftest.make 2>/dev/null` in 2372 *@@@%%%=?*=@@@%%%*) 2373 eval ac_cv_prog_make_${ac_make}_set=yes;; 2374 *) 2375 eval ac_cv_prog_make_${ac_make}_set=no;; 2376esac 2377rm -f conftest.make 2378fi 2379if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2380 { $as_echo "$as_me:$LINENO: result: yes" >&5 2381$as_echo "yes" >&6; } 2382 SET_MAKE= 2383else 2384 { $as_echo "$as_me:$LINENO: result: no" >&5 2385$as_echo "no" >&6; } 2386 SET_MAKE="MAKE=${MAKE-make}" 2387fi 2388 2389rm -rf .tst 2>/dev/null 2390mkdir .tst 2>/dev/null 2391if test -d .tst; then 2392 am__leading_dot=. 2393else 2394 am__leading_dot=_ 2395fi 2396rmdir .tst 2>/dev/null 2397 2398if test "`cd $srcdir && pwd`" != "`pwd`"; then 2399 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2400 # is not polluted with repeated "-I." 2401 am__isrc=' -I$(srcdir)' 2402 # test to see if srcdir already configured 2403 if test -f $srcdir/config.status; then 2404 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2405$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2406 { (exit 1); exit 1; }; } 2407 fi 2408fi 2409 2410# test whether we have cygpath 2411if test -z "$CYGPATH_W"; then 2412 if (cygpath --version) >/dev/null 2>/dev/null; then 2413 CYGPATH_W='cygpath -w' 2414 else 2415 CYGPATH_W=echo 2416 fi 2417fi 2418 2419 2420# Define the identity of the package. 2421 PACKAGE='libarchive' 2422 VERSION='2.8.3' 2423 2424 2425cat >>confdefs.h <<_ACEOF 2426#define PACKAGE "$PACKAGE" 2427_ACEOF 2428 2429 2430cat >>confdefs.h <<_ACEOF 2431#define VERSION "$VERSION" 2432_ACEOF 2433 2434# Some tools Automake needs. 2435 2436ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2437 2438 2439AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2440 2441 2442AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2443 2444 2445AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2446 2447 2448MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2449 2450install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2451 2452# Installed binaries are usually stripped using `strip' when the user 2453# run `make install-strip'. However `strip' might not be the right 2454# tool to use in cross-compilation environments, therefore Automake 2455# will honor the `STRIP' environment variable to overrule this program. 2456if test "$cross_compiling" != no; then 2457 if test -n "$ac_tool_prefix"; then 2458 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2459set dummy ${ac_tool_prefix}strip; ac_word=$2 2460{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2461$as_echo_n "checking for $ac_word... " >&6; } 2462if test "${ac_cv_prog_STRIP+set}" = set; then 2463 $as_echo_n "(cached) " >&6 2464else 2465 if test -n "$STRIP"; then 2466 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2467else 2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2469for as_dir in $PATH 2470do 2471 IFS=$as_save_IFS 2472 test -z "$as_dir" && as_dir=. 2473 for ac_exec_ext in '' $ac_executable_extensions; do 2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2475 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2477 break 2 2478 fi 2479done 2480done 2481IFS=$as_save_IFS 2482 2483fi 2484fi 2485STRIP=$ac_cv_prog_STRIP 2486if test -n "$STRIP"; then 2487 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2488$as_echo "$STRIP" >&6; } 2489else 2490 { $as_echo "$as_me:$LINENO: result: no" >&5 2491$as_echo "no" >&6; } 2492fi 2493 2494 2495fi 2496if test -z "$ac_cv_prog_STRIP"; then 2497 ac_ct_STRIP=$STRIP 2498 # Extract the first word of "strip", so it can be a program name with args. 2499set dummy strip; ac_word=$2 2500{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2501$as_echo_n "checking for $ac_word... " >&6; } 2502if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2503 $as_echo_n "(cached) " >&6 2504else 2505 if test -n "$ac_ct_STRIP"; then 2506 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2507else 2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2509for as_dir in $PATH 2510do 2511 IFS=$as_save_IFS 2512 test -z "$as_dir" && as_dir=. 2513 for ac_exec_ext in '' $ac_executable_extensions; do 2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2515 ac_cv_prog_ac_ct_STRIP="strip" 2516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2517 break 2 2518 fi 2519done 2520done 2521IFS=$as_save_IFS 2522 2523fi 2524fi 2525ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2526if test -n "$ac_ct_STRIP"; then 2527 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2528$as_echo "$ac_ct_STRIP" >&6; } 2529else 2530 { $as_echo "$as_me:$LINENO: result: no" >&5 2531$as_echo "no" >&6; } 2532fi 2533 2534 if test "x$ac_ct_STRIP" = x; then 2535 STRIP=":" 2536 else 2537 case $cross_compiling:$ac_tool_warned in 2538yes:) 2539{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2540whose name does not start with the host triplet. If you think this 2541configuration is useful to you, please write to autoconf@gnu.org." >&5 2542$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2543whose name does not start with the host triplet. If you think this 2544configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2545ac_tool_warned=yes ;; 2546esac 2547 STRIP=$ac_ct_STRIP 2548 fi 2549else 2550 STRIP="$ac_cv_prog_STRIP" 2551fi 2552 2553fi 2554INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2555 2556# We need awk for the "check" target. The system "awk" is bad on 2557# some platforms. 2558# Always define AMTAR for backward compatibility. 2559 2560AMTAR=${AMTAR-"${am_missing_run}tar"} 2561 2562am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2563 2564 2565 2566 2567 2568 2569# Libtool versioning uses different conventions on different 2570# platforms. At least on FreeBSD, libtool uses an overly complex 2571# convention that attempts to solve problems that most people just 2572# don't have and which just causes confusion for most end users. 2573ARCHIVE_MAJOR=$(( 2008003 / 1000000 )) 2574ARCHIVE_MINOR=$(( (2008003 / 1000) % 1000 )) 2575ARCHIVE_REVISION=$(( 2008003 % 1000 )) 2576ARCHIVE_LIBTOOL_MAJOR=`echo $((${ARCHIVE_MAJOR} + ${ARCHIVE_MINOR}))` 2577ARCHIVE_LIBTOOL_VERSION=$ARCHIVE_LIBTOOL_MAJOR:$ARCHIVE_REVISION:$ARCHIVE_MINOR 2578 2579# Stick the version numbers into config.h 2580 2581cat >>confdefs.h <<\_ACEOF 2582#define LIBARCHIVE_VERSION_STRING "2.8.3" 2583_ACEOF 2584 2585 2586cat >>confdefs.h <<_ACEOF 2587#define LIBARCHIVE_VERSION_NUMBER "2008003" 2588_ACEOF 2589 2590 2591cat >>confdefs.h <<\_ACEOF 2592#define BSDCPIO_VERSION_STRING "2.8.3" 2593_ACEOF 2594 2595 2596cat >>confdefs.h <<\_ACEOF 2597#define BSDTAR_VERSION_STRING "2.8.3" 2598_ACEOF 2599 2600 2601# The shell variables here must be the same as the AC_SUBST() variables 2602# below, but the shell variable names apparently cannot be the same as 2603# the m4 macro names above. Why? Ask autoconf. 2604BSDCPIO_VERSION_STRING=2.8.3 2605BSDTAR_VERSION_STRING=2.8.3 2606LIBARCHIVE_VERSION_STRING=2.8.3 2607LIBARCHIVE_VERSION_NUMBER=2008003 2608 2609# Substitute the above version numbers into the various files below. 2610# Yes, I believe this is the fourth time we define what are essentially 2611# the same symbols. Why? Ask autoconf. 2612 2613 2614 2615 2616 2617 2618ac_config_headers="$ac_config_headers config.h" 2619 2620ac_config_files="$ac_config_files Makefile" 2621 2622ac_config_files="$ac_config_files build/pkgconfig/libarchive.pc" 2623 2624 2625# Check for host type 2626# Make sure we can run config.sub. 2627$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2628 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2629$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2630 { (exit 1); exit 1; }; } 2631 2632{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2633$as_echo_n "checking build system type... " >&6; } 2634if test "${ac_cv_build+set}" = set; then 2635 $as_echo_n "(cached) " >&6 2636else 2637 ac_build_alias=$build_alias 2638test "x$ac_build_alias" = x && 2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2640test "x$ac_build_alias" = x && 2641 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2642$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2643 { (exit 1); exit 1; }; } 2644ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2645 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2646$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2647 { (exit 1); exit 1; }; } 2648 2649fi 2650{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2651$as_echo "$ac_cv_build" >&6; } 2652case $ac_cv_build in 2653*-*-*) ;; 2654*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2655$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2656 { (exit 1); exit 1; }; };; 2657esac 2658build=$ac_cv_build 2659ac_save_IFS=$IFS; IFS='-' 2660set x $ac_cv_build 2661shift 2662build_cpu=$1 2663build_vendor=$2 2664shift; shift 2665# Remember, the first character of IFS is used to create $*, 2666# except with old shells: 2667build_os=$* 2668IFS=$ac_save_IFS 2669case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2670 2671 2672{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2673$as_echo_n "checking host system type... " >&6; } 2674if test "${ac_cv_host+set}" = set; then 2675 $as_echo_n "(cached) " >&6 2676else 2677 if test "x$host_alias" = x; then 2678 ac_cv_host=$ac_cv_build 2679else 2680 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2681 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2682$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2683 { (exit 1); exit 1; }; } 2684fi 2685 2686fi 2687{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2688$as_echo "$ac_cv_host" >&6; } 2689case $ac_cv_host in 2690*-*-*) ;; 2691*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2692$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2693 { (exit 1); exit 1; }; };; 2694esac 2695host=$ac_cv_host 2696ac_save_IFS=$IFS; IFS='-' 2697set x $ac_cv_host 2698shift 2699host_cpu=$1 2700host_vendor=$2 2701shift; shift 2702# Remember, the first character of IFS is used to create $*, 2703# except with old shells: 2704host_os=$* 2705IFS=$ac_save_IFS 2706case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2707 2708 2709 2710inc_windows_files=no 2711inc_cygwin_files=no 2712case "$host_os" in 2713 *mingw* ) inc_windows_files=yes ;; 2714 *cygwin*) inc_cygwin_files=yes ;; 2715esac 2716 if test $inc_windows_files = yes; then 2717 INC_WINDOWS_FILES_TRUE= 2718 INC_WINDOWS_FILES_FALSE='#' 2719else 2720 INC_WINDOWS_FILES_TRUE='#' 2721 INC_WINDOWS_FILES_FALSE= 2722fi 2723 2724 if test $inc_cygwin_files = yes; then 2725 INC_CYGWIN_FILES_TRUE= 2726 INC_CYGWIN_FILES_FALSE='#' 2727else 2728 INC_CYGWIN_FILES_TRUE='#' 2729 INC_CYGWIN_FILES_FALSE= 2730fi 2731 2732 2733PLATFORMCPPFLAGS= 2734case "$host_os" in 2735 *mingw* ) PLATFORMCPPFLAGS=-D__USE_MINGW_ANSI_STDIO ;; 2736esac 2737 2738 2739# Checks for programs. 2740ac_ext=c 2741ac_cpp='$CPP $CPPFLAGS' 2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2744ac_compiler_gnu=$ac_cv_c_compiler_gnu 2745if test -n "$ac_tool_prefix"; then 2746 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2747set dummy ${ac_tool_prefix}gcc; ac_word=$2 2748{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2749$as_echo_n "checking for $ac_word... " >&6; } 2750if test "${ac_cv_prog_CC+set}" = set; then 2751 $as_echo_n "(cached) " >&6 2752else 2753 if test -n "$CC"; then 2754 ac_cv_prog_CC="$CC" # Let the user override the test. 2755else 2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH 2758do 2759 IFS=$as_save_IFS 2760 test -z "$as_dir" && as_dir=. 2761 for ac_exec_ext in '' $ac_executable_extensions; do 2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2763 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2764 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2765 break 2 2766 fi 2767done 2768done 2769IFS=$as_save_IFS 2770 2771fi 2772fi 2773CC=$ac_cv_prog_CC 2774if test -n "$CC"; then 2775 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2776$as_echo "$CC" >&6; } 2777else 2778 { $as_echo "$as_me:$LINENO: result: no" >&5 2779$as_echo "no" >&6; } 2780fi 2781 2782 2783fi 2784if test -z "$ac_cv_prog_CC"; then 2785 ac_ct_CC=$CC 2786 # Extract the first word of "gcc", so it can be a program name with args. 2787set dummy gcc; ac_word=$2 2788{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2789$as_echo_n "checking for $ac_word... " >&6; } 2790if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2791 $as_echo_n "(cached) " >&6 2792else 2793 if test -n "$ac_ct_CC"; then 2794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2795else 2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797for as_dir in $PATH 2798do 2799 IFS=$as_save_IFS 2800 test -z "$as_dir" && as_dir=. 2801 for ac_exec_ext in '' $ac_executable_extensions; do 2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2803 ac_cv_prog_ac_ct_CC="gcc" 2804 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807done 2808done 2809IFS=$as_save_IFS 2810 2811fi 2812fi 2813ac_ct_CC=$ac_cv_prog_ac_ct_CC 2814if test -n "$ac_ct_CC"; then 2815 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2816$as_echo "$ac_ct_CC" >&6; } 2817else 2818 { $as_echo "$as_me:$LINENO: result: no" >&5 2819$as_echo "no" >&6; } 2820fi 2821 2822 if test "x$ac_ct_CC" = x; then 2823 CC="" 2824 else 2825 case $cross_compiling:$ac_tool_warned in 2826yes:) 2827{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2828whose name does not start with the host triplet. If you think this 2829configuration is useful to you, please write to autoconf@gnu.org." >&5 2830$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2831whose name does not start with the host triplet. If you think this 2832configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2833ac_tool_warned=yes ;; 2834esac 2835 CC=$ac_ct_CC 2836 fi 2837else 2838 CC="$ac_cv_prog_CC" 2839fi 2840 2841if test -z "$CC"; then 2842 if test -n "$ac_tool_prefix"; then 2843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2844set dummy ${ac_tool_prefix}cc; ac_word=$2 2845{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2846$as_echo_n "checking for $ac_word... " >&6; } 2847if test "${ac_cv_prog_CC+set}" = set; then 2848 $as_echo_n "(cached) " >&6 2849else 2850 if test -n "$CC"; then 2851 ac_cv_prog_CC="$CC" # Let the user override the test. 2852else 2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2854for as_dir in $PATH 2855do 2856 IFS=$as_save_IFS 2857 test -z "$as_dir" && as_dir=. 2858 for ac_exec_ext in '' $ac_executable_extensions; do 2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2860 ac_cv_prog_CC="${ac_tool_prefix}cc" 2861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2862 break 2 2863 fi 2864done 2865done 2866IFS=$as_save_IFS 2867 2868fi 2869fi 2870CC=$ac_cv_prog_CC 2871if test -n "$CC"; then 2872 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2873$as_echo "$CC" >&6; } 2874else 2875 { $as_echo "$as_me:$LINENO: result: no" >&5 2876$as_echo "no" >&6; } 2877fi 2878 2879 2880 fi 2881fi 2882if test -z "$CC"; then 2883 # Extract the first word of "cc", so it can be a program name with args. 2884set dummy cc; ac_word=$2 2885{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2886$as_echo_n "checking for $ac_word... " >&6; } 2887if test "${ac_cv_prog_CC+set}" = set; then 2888 $as_echo_n "(cached) " >&6 2889else 2890 if test -n "$CC"; then 2891 ac_cv_prog_CC="$CC" # Let the user override the test. 2892else 2893 ac_prog_rejected=no 2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2895for as_dir in $PATH 2896do 2897 IFS=$as_save_IFS 2898 test -z "$as_dir" && as_dir=. 2899 for ac_exec_ext in '' $ac_executable_extensions; do 2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2902 ac_prog_rejected=yes 2903 continue 2904 fi 2905 ac_cv_prog_CC="cc" 2906 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 break 2 2908 fi 2909done 2910done 2911IFS=$as_save_IFS 2912 2913if test $ac_prog_rejected = yes; then 2914 # We found a bogon in the path, so make sure we never use it. 2915 set dummy $ac_cv_prog_CC 2916 shift 2917 if test $# != 0; then 2918 # We chose a different compiler from the bogus one. 2919 # However, it has the same basename, so the bogon will be chosen 2920 # first if we set CC to just the basename; use the full file name. 2921 shift 2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2923 fi 2924fi 2925fi 2926fi 2927CC=$ac_cv_prog_CC 2928if test -n "$CC"; then 2929 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2930$as_echo "$CC" >&6; } 2931else 2932 { $as_echo "$as_me:$LINENO: result: no" >&5 2933$as_echo "no" >&6; } 2934fi 2935 2936 2937fi 2938if test -z "$CC"; then 2939 if test -n "$ac_tool_prefix"; then 2940 for ac_prog in cl.exe 2941 do 2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2943set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2944{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2945$as_echo_n "checking for $ac_word... " >&6; } 2946if test "${ac_cv_prog_CC+set}" = set; then 2947 $as_echo_n "(cached) " >&6 2948else 2949 if test -n "$CC"; then 2950 ac_cv_prog_CC="$CC" # Let the user override the test. 2951else 2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2953for as_dir in $PATH 2954do 2955 IFS=$as_save_IFS 2956 test -z "$as_dir" && as_dir=. 2957 for ac_exec_ext in '' $ac_executable_extensions; do 2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2961 break 2 2962 fi 2963done 2964done 2965IFS=$as_save_IFS 2966 2967fi 2968fi 2969CC=$ac_cv_prog_CC 2970if test -n "$CC"; then 2971 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2972$as_echo "$CC" >&6; } 2973else 2974 { $as_echo "$as_me:$LINENO: result: no" >&5 2975$as_echo "no" >&6; } 2976fi 2977 2978 2979 test -n "$CC" && break 2980 done 2981fi 2982if test -z "$CC"; then 2983 ac_ct_CC=$CC 2984 for ac_prog in cl.exe 2985do 2986 # Extract the first word of "$ac_prog", so it can be a program name with args. 2987set dummy $ac_prog; ac_word=$2 2988{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2989$as_echo_n "checking for $ac_word... " >&6; } 2990if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2991 $as_echo_n "(cached) " >&6 2992else 2993 if test -n "$ac_ct_CC"; then 2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2995else 2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2997for as_dir in $PATH 2998do 2999 IFS=$as_save_IFS 3000 test -z "$as_dir" && as_dir=. 3001 for ac_exec_ext in '' $ac_executable_extensions; do 3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3003 ac_cv_prog_ac_ct_CC="$ac_prog" 3004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3005 break 2 3006 fi 3007done 3008done 3009IFS=$as_save_IFS 3010 3011fi 3012fi 3013ac_ct_CC=$ac_cv_prog_ac_ct_CC 3014if test -n "$ac_ct_CC"; then 3015 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3016$as_echo "$ac_ct_CC" >&6; } 3017else 3018 { $as_echo "$as_me:$LINENO: result: no" >&5 3019$as_echo "no" >&6; } 3020fi 3021 3022 3023 test -n "$ac_ct_CC" && break 3024done 3025 3026 if test "x$ac_ct_CC" = x; then 3027 CC="" 3028 else 3029 case $cross_compiling:$ac_tool_warned in 3030yes:) 3031{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3032whose name does not start with the host triplet. If you think this 3033configuration is useful to you, please write to autoconf@gnu.org." >&5 3034$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3035whose name does not start with the host triplet. If you think this 3036configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3037ac_tool_warned=yes ;; 3038esac 3039 CC=$ac_ct_CC 3040 fi 3041fi 3042 3043fi 3044 3045 3046test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3047See \`config.log' for more details." >&5 3048$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3049See \`config.log' for more details." >&2;} 3050 { (exit 1); exit 1; }; } 3051 3052# Provide some information about the compiler. 3053$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3054set X $ac_compile 3055ac_compiler=$2 3056{ (ac_try="$ac_compiler --version >&5" 3057case "(($ac_try" in 3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3059 *) ac_try_echo=$ac_try;; 3060esac 3061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3062$as_echo "$ac_try_echo") >&5 3063 (eval "$ac_compiler --version >&5") 2>&5 3064 ac_status=$? 3065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3066 (exit $ac_status); } 3067{ (ac_try="$ac_compiler -v >&5" 3068case "(($ac_try" in 3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070 *) ac_try_echo=$ac_try;; 3071esac 3072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3073$as_echo "$ac_try_echo") >&5 3074 (eval "$ac_compiler -v >&5") 2>&5 3075 ac_status=$? 3076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3077 (exit $ac_status); } 3078{ (ac_try="$ac_compiler -V >&5" 3079case "(($ac_try" in 3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3081 *) ac_try_echo=$ac_try;; 3082esac 3083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3084$as_echo "$ac_try_echo") >&5 3085 (eval "$ac_compiler -V >&5") 2>&5 3086 ac_status=$? 3087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 (exit $ac_status); } 3089 3090cat >conftest.$ac_ext <<_ACEOF 3091/* confdefs.h. */ 3092_ACEOF 3093cat confdefs.h >>conftest.$ac_ext 3094cat >>conftest.$ac_ext <<_ACEOF 3095/* end confdefs.h. */ 3096 3097int 3098main () 3099{ 3100 3101 ; 3102 return 0; 3103} 3104_ACEOF 3105ac_clean_files_save=$ac_clean_files 3106ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3107# Try to create an executable without -o first, disregard a.out. 3108# It will help us diagnose broken compilers, and finding out an intuition 3109# of exeext. 3110{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3111$as_echo_n "checking for C compiler default output file name... " >&6; } 3112ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3113 3114# The possible output files: 3115ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3116 3117ac_rmfiles= 3118for ac_file in $ac_files 3119do 3120 case $ac_file in 3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3122 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3123 esac 3124done 3125rm -f $ac_rmfiles 3126 3127if { (ac_try="$ac_link_default" 3128case "(($ac_try" in 3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3130 *) ac_try_echo=$ac_try;; 3131esac 3132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3133$as_echo "$ac_try_echo") >&5 3134 (eval "$ac_link_default") 2>&5 3135 ac_status=$? 3136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 (exit $ac_status); }; then 3138 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3139# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3140# in a Makefile. We should not override ac_cv_exeext if it was cached, 3141# so that the user can short-circuit this test for compilers unknown to 3142# Autoconf. 3143for ac_file in $ac_files '' 3144do 3145 test -f "$ac_file" || continue 3146 case $ac_file in 3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3148 ;; 3149 [ab].out ) 3150 # We found the default executable, but exeext='' is most 3151 # certainly right. 3152 break;; 3153 *.* ) 3154 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3155 then :; else 3156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3157 fi 3158 # We set ac_cv_exeext here because the later test for it is not 3159 # safe: cross compilers may not add the suffix if given an `-o' 3160 # argument, so we may need to know it at that point already. 3161 # Even if this section looks crufty: it has the advantage of 3162 # actually working. 3163 break;; 3164 * ) 3165 break;; 3166 esac 3167done 3168test "$ac_cv_exeext" = no && ac_cv_exeext= 3169 3170else 3171 ac_file='' 3172fi 3173 3174{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3175$as_echo "$ac_file" >&6; } 3176if test -z "$ac_file"; then 3177 $as_echo "$as_me: failed program was:" >&5 3178sed 's/^/| /' conftest.$ac_ext >&5 3179 3180{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3181See \`config.log' for more details." >&5 3182$as_echo "$as_me: error: C compiler cannot create executables 3183See \`config.log' for more details." >&2;} 3184 { (exit 77); exit 77; }; } 3185fi 3186 3187ac_exeext=$ac_cv_exeext 3188 3189# Check that the compiler produces executables we can run. If not, either 3190# the compiler is broken, or we cross compile. 3191{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3192$as_echo_n "checking whether the C compiler works... " >&6; } 3193# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3194# If not cross compiling, check that we can run a simple program. 3195if test "$cross_compiling" != yes; then 3196 if { ac_try='./$ac_file' 3197 { (case "(($ac_try" in 3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3199 *) ac_try_echo=$ac_try;; 3200esac 3201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3202$as_echo "$ac_try_echo") >&5 3203 (eval "$ac_try") 2>&5 3204 ac_status=$? 3205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3206 (exit $ac_status); }; }; then 3207 cross_compiling=no 3208 else 3209 if test "$cross_compiling" = maybe; then 3210 cross_compiling=yes 3211 else 3212 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3213If you meant to cross compile, use \`--host'. 3214See \`config.log' for more details." >&5 3215$as_echo "$as_me: error: cannot run C compiled programs. 3216If you meant to cross compile, use \`--host'. 3217See \`config.log' for more details." >&2;} 3218 { (exit 1); exit 1; }; } 3219 fi 3220 fi 3221fi 3222{ $as_echo "$as_me:$LINENO: result: yes" >&5 3223$as_echo "yes" >&6; } 3224 3225rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3226ac_clean_files=$ac_clean_files_save 3227# Check that the compiler produces executables we can run. If not, either 3228# the compiler is broken, or we cross compile. 3229{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3230$as_echo_n "checking whether we are cross compiling... " >&6; } 3231{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3232$as_echo "$cross_compiling" >&6; } 3233 3234{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3235$as_echo_n "checking for suffix of executables... " >&6; } 3236if { (ac_try="$ac_link" 3237case "(($ac_try" in 3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3239 *) ac_try_echo=$ac_try;; 3240esac 3241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3242$as_echo "$ac_try_echo") >&5 3243 (eval "$ac_link") 2>&5 3244 ac_status=$? 3245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3246 (exit $ac_status); }; then 3247 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3248# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3249# work properly (i.e., refer to `conftest.exe'), while it won't with 3250# `rm'. 3251for ac_file in conftest.exe conftest conftest.*; do 3252 test -f "$ac_file" || continue 3253 case $ac_file in 3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3255 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3256 break;; 3257 * ) break;; 3258 esac 3259done 3260else 3261 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3262See \`config.log' for more details." >&5 3263$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3264See \`config.log' for more details." >&2;} 3265 { (exit 1); exit 1; }; } 3266fi 3267 3268rm -f conftest$ac_cv_exeext 3269{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3270$as_echo "$ac_cv_exeext" >&6; } 3271 3272rm -f conftest.$ac_ext 3273EXEEXT=$ac_cv_exeext 3274ac_exeext=$EXEEXT 3275{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3276$as_echo_n "checking for suffix of object files... " >&6; } 3277if test "${ac_cv_objext+set}" = set; then 3278 $as_echo_n "(cached) " >&6 3279else 3280 cat >conftest.$ac_ext <<_ACEOF 3281/* confdefs.h. */ 3282_ACEOF 3283cat confdefs.h >>conftest.$ac_ext 3284cat >>conftest.$ac_ext <<_ACEOF 3285/* end confdefs.h. */ 3286 3287int 3288main () 3289{ 3290 3291 ; 3292 return 0; 3293} 3294_ACEOF 3295rm -f conftest.o conftest.obj 3296if { (ac_try="$ac_compile" 3297case "(($ac_try" in 3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3299 *) ac_try_echo=$ac_try;; 3300esac 3301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3302$as_echo "$ac_try_echo") >&5 3303 (eval "$ac_compile") 2>&5 3304 ac_status=$? 3305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3306 (exit $ac_status); }; then 3307 for ac_file in conftest.o conftest.obj conftest.*; do 3308 test -f "$ac_file" || continue; 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3312 break;; 3313 esac 3314done 3315else 3316 $as_echo "$as_me: failed program was:" >&5 3317sed 's/^/| /' conftest.$ac_ext >&5 3318 3319{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3320See \`config.log' for more details." >&5 3321$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3322See \`config.log' for more details." >&2;} 3323 { (exit 1); exit 1; }; } 3324fi 3325 3326rm -f conftest.$ac_cv_objext conftest.$ac_ext 3327fi 3328{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3329$as_echo "$ac_cv_objext" >&6; } 3330OBJEXT=$ac_cv_objext 3331ac_objext=$OBJEXT 3332{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3333$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3334if test "${ac_cv_c_compiler_gnu+set}" = set; then 3335 $as_echo_n "(cached) " >&6 3336else 3337 cat >conftest.$ac_ext <<_ACEOF 3338/* confdefs.h. */ 3339_ACEOF 3340cat confdefs.h >>conftest.$ac_ext 3341cat >>conftest.$ac_ext <<_ACEOF 3342/* end confdefs.h. */ 3343 3344int 3345main () 3346{ 3347#ifndef __GNUC__ 3348 choke me 3349#endif 3350 3351 ; 3352 return 0; 3353} 3354_ACEOF 3355rm -f conftest.$ac_objext 3356if { (ac_try="$ac_compile" 3357case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3362$as_echo "$ac_try_echo") >&5 3363 (eval "$ac_compile") 2>conftest.er1 3364 ac_status=$? 3365 grep -v '^ *+' conftest.er1 >conftest.err 3366 rm -f conftest.er1 3367 cat conftest.err >&5 3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3369 (exit $ac_status); } && { 3370 test -z "$ac_c_werror_flag" || 3371 test ! -s conftest.err 3372 } && test -s conftest.$ac_objext; then 3373 ac_compiler_gnu=yes 3374else 3375 $as_echo "$as_me: failed program was:" >&5 3376sed 's/^/| /' conftest.$ac_ext >&5 3377 3378 ac_compiler_gnu=no 3379fi 3380 3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3382ac_cv_c_compiler_gnu=$ac_compiler_gnu 3383 3384fi 3385{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3386$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3387if test $ac_compiler_gnu = yes; then 3388 GCC=yes 3389else 3390 GCC= 3391fi 3392ac_test_CFLAGS=${CFLAGS+set} 3393ac_save_CFLAGS=$CFLAGS 3394{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3395$as_echo_n "checking whether $CC accepts -g... " >&6; } 3396if test "${ac_cv_prog_cc_g+set}" = set; then 3397 $as_echo_n "(cached) " >&6 3398else 3399 ac_save_c_werror_flag=$ac_c_werror_flag 3400 ac_c_werror_flag=yes 3401 ac_cv_prog_cc_g=no 3402 CFLAGS="-g" 3403 cat >conftest.$ac_ext <<_ACEOF 3404/* confdefs.h. */ 3405_ACEOF 3406cat confdefs.h >>conftest.$ac_ext 3407cat >>conftest.$ac_ext <<_ACEOF 3408/* end confdefs.h. */ 3409 3410int 3411main () 3412{ 3413 3414 ; 3415 return 0; 3416} 3417_ACEOF 3418rm -f conftest.$ac_objext 3419if { (ac_try="$ac_compile" 3420case "(($ac_try" in 3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3422 *) ac_try_echo=$ac_try;; 3423esac 3424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3425$as_echo "$ac_try_echo") >&5 3426 (eval "$ac_compile") 2>conftest.er1 3427 ac_status=$? 3428 grep -v '^ *+' conftest.er1 >conftest.err 3429 rm -f conftest.er1 3430 cat conftest.err >&5 3431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3432 (exit $ac_status); } && { 3433 test -z "$ac_c_werror_flag" || 3434 test ! -s conftest.err 3435 } && test -s conftest.$ac_objext; then 3436 ac_cv_prog_cc_g=yes 3437else 3438 $as_echo "$as_me: failed program was:" >&5 3439sed 's/^/| /' conftest.$ac_ext >&5 3440 3441 CFLAGS="" 3442 cat >conftest.$ac_ext <<_ACEOF 3443/* confdefs.h. */ 3444_ACEOF 3445cat confdefs.h >>conftest.$ac_ext 3446cat >>conftest.$ac_ext <<_ACEOF 3447/* end confdefs.h. */ 3448 3449int 3450main () 3451{ 3452 3453 ; 3454 return 0; 3455} 3456_ACEOF 3457rm -f conftest.$ac_objext 3458if { (ac_try="$ac_compile" 3459case "(($ac_try" in 3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3461 *) ac_try_echo=$ac_try;; 3462esac 3463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3464$as_echo "$ac_try_echo") >&5 3465 (eval "$ac_compile") 2>conftest.er1 3466 ac_status=$? 3467 grep -v '^ *+' conftest.er1 >conftest.err 3468 rm -f conftest.er1 3469 cat conftest.err >&5 3470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3471 (exit $ac_status); } && { 3472 test -z "$ac_c_werror_flag" || 3473 test ! -s conftest.err 3474 } && test -s conftest.$ac_objext; then 3475 : 3476else 3477 $as_echo "$as_me: failed program was:" >&5 3478sed 's/^/| /' conftest.$ac_ext >&5 3479 3480 ac_c_werror_flag=$ac_save_c_werror_flag 3481 CFLAGS="-g" 3482 cat >conftest.$ac_ext <<_ACEOF 3483/* confdefs.h. */ 3484_ACEOF 3485cat confdefs.h >>conftest.$ac_ext 3486cat >>conftest.$ac_ext <<_ACEOF 3487/* end confdefs.h. */ 3488 3489int 3490main () 3491{ 3492 3493 ; 3494 return 0; 3495} 3496_ACEOF 3497rm -f conftest.$ac_objext 3498if { (ac_try="$ac_compile" 3499case "(($ac_try" in 3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3501 *) ac_try_echo=$ac_try;; 3502esac 3503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3504$as_echo "$ac_try_echo") >&5 3505 (eval "$ac_compile") 2>conftest.er1 3506 ac_status=$? 3507 grep -v '^ *+' conftest.er1 >conftest.err 3508 rm -f conftest.er1 3509 cat conftest.err >&5 3510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3511 (exit $ac_status); } && { 3512 test -z "$ac_c_werror_flag" || 3513 test ! -s conftest.err 3514 } && test -s conftest.$ac_objext; then 3515 ac_cv_prog_cc_g=yes 3516else 3517 $as_echo "$as_me: failed program was:" >&5 3518sed 's/^/| /' conftest.$ac_ext >&5 3519 3520 3521fi 3522 3523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3524fi 3525 3526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3527fi 3528 3529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3530 ac_c_werror_flag=$ac_save_c_werror_flag 3531fi 3532{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3533$as_echo "$ac_cv_prog_cc_g" >&6; } 3534if test "$ac_test_CFLAGS" = set; then 3535 CFLAGS=$ac_save_CFLAGS 3536elif test $ac_cv_prog_cc_g = yes; then 3537 if test "$GCC" = yes; then 3538 CFLAGS="-g -O2" 3539 else 3540 CFLAGS="-g" 3541 fi 3542else 3543 if test "$GCC" = yes; then 3544 CFLAGS="-O2" 3545 else 3546 CFLAGS= 3547 fi 3548fi 3549{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3550$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3551if test "${ac_cv_prog_cc_c89+set}" = set; then 3552 $as_echo_n "(cached) " >&6 3553else 3554 ac_cv_prog_cc_c89=no 3555ac_save_CC=$CC 3556cat >conftest.$ac_ext <<_ACEOF 3557/* confdefs.h. */ 3558_ACEOF 3559cat confdefs.h >>conftest.$ac_ext 3560cat >>conftest.$ac_ext <<_ACEOF 3561/* end confdefs.h. */ 3562#include <stdarg.h> 3563#include <stdio.h> 3564#include <sys/types.h> 3565#include <sys/stat.h> 3566/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3567struct buf { int x; }; 3568FILE * (*rcsopen) (struct buf *, struct stat *, int); 3569static char *e (p, i) 3570 char **p; 3571 int i; 3572{ 3573 return p[i]; 3574} 3575static char *f (char * (*g) (char **, int), char **p, ...) 3576{ 3577 char *s; 3578 va_list v; 3579 va_start (v,p); 3580 s = g (p, va_arg (v,int)); 3581 va_end (v); 3582 return s; 3583} 3584 3585/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3586 function prototypes and stuff, but not '\xHH' hex character constants. 3587 These don't provoke an error unfortunately, instead are silently treated 3588 as 'x'. The following induces an error, until -std is added to get 3589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3590 array size at least. It's necessary to write '\x00'==0 to get something 3591 that's true only with -std. */ 3592int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3593 3594/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3595 inside strings and character constants. */ 3596#define FOO(x) 'x' 3597int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3598 3599int test (int i, double x); 3600struct s1 {int (*f) (int a);}; 3601struct s2 {int (*f) (double a);}; 3602int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3603int argc; 3604char **argv; 3605int 3606main () 3607{ 3608return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3609 ; 3610 return 0; 3611} 3612_ACEOF 3613for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3614 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3615do 3616 CC="$ac_save_CC $ac_arg" 3617 rm -f conftest.$ac_objext 3618if { (ac_try="$ac_compile" 3619case "(($ac_try" in 3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3621 *) ac_try_echo=$ac_try;; 3622esac 3623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3624$as_echo "$ac_try_echo") >&5 3625 (eval "$ac_compile") 2>conftest.er1 3626 ac_status=$? 3627 grep -v '^ *+' conftest.er1 >conftest.err 3628 rm -f conftest.er1 3629 cat conftest.err >&5 3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3631 (exit $ac_status); } && { 3632 test -z "$ac_c_werror_flag" || 3633 test ! -s conftest.err 3634 } && test -s conftest.$ac_objext; then 3635 ac_cv_prog_cc_c89=$ac_arg 3636else 3637 $as_echo "$as_me: failed program was:" >&5 3638sed 's/^/| /' conftest.$ac_ext >&5 3639 3640 3641fi 3642 3643rm -f core conftest.err conftest.$ac_objext 3644 test "x$ac_cv_prog_cc_c89" != "xno" && break 3645done 3646rm -f conftest.$ac_ext 3647CC=$ac_save_CC 3648 3649fi 3650# AC_CACHE_VAL 3651case "x$ac_cv_prog_cc_c89" in 3652 x) 3653 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3654$as_echo "none needed" >&6; } ;; 3655 xno) 3656 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3657$as_echo "unsupported" >&6; } ;; 3658 *) 3659 CC="$CC $ac_cv_prog_cc_c89" 3660 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3661$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3662esac 3663 3664 3665ac_ext=c 3666ac_cpp='$CPP $CPPFLAGS' 3667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3669ac_compiler_gnu=$ac_cv_c_compiler_gnu 3670DEPDIR="${am__leading_dot}deps" 3671 3672ac_config_commands="$ac_config_commands depfiles" 3673 3674 3675am_make=${MAKE-make} 3676cat > confinc << 'END' 3677am__doit: 3678 @echo done 3679.PHONY: am__doit 3680END 3681# If we don't find an include directive, just comment out the code. 3682{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3683$as_echo_n "checking for style of include used by $am_make... " >&6; } 3684am__include="#" 3685am__quote= 3686_am_result=none 3687# First try GNU make style include. 3688echo "include confinc" > confmf 3689# We grep out `Entering directory' and `Leaving directory' 3690# messages which can occur if `w' ends up in MAKEFLAGS. 3691# In particular we don't look at `^make:' because GNU make might 3692# be invoked under some other name (usually "gmake"), in which 3693# case it prints its new name instead of `make'. 3694if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3695 am__include=include 3696 am__quote= 3697 _am_result=GNU 3698fi 3699# Now try BSD make style include. 3700if test "$am__include" = "#"; then 3701 echo '.include "confinc"' > confmf 3702 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3703 am__include=.include 3704 am__quote="\"" 3705 _am_result=BSD 3706 fi 3707fi 3708 3709 3710{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3711$as_echo "$_am_result" >&6; } 3712rm -f confinc confmf 3713 3714# Check whether --enable-dependency-tracking was given. 3715if test "${enable_dependency_tracking+set}" = set; then 3716 enableval=$enable_dependency_tracking; 3717fi 3718 3719if test "x$enable_dependency_tracking" != xno; then 3720 am_depcomp="$ac_aux_dir/depcomp" 3721 AMDEPBACKSLASH='\' 3722fi 3723 if test "x$enable_dependency_tracking" != xno; then 3724 AMDEP_TRUE= 3725 AMDEP_FALSE='#' 3726else 3727 AMDEP_TRUE='#' 3728 AMDEP_FALSE= 3729fi 3730 3731 3732 3733depcc="$CC" am_compiler_list= 3734 3735{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3736$as_echo_n "checking dependency style of $depcc... " >&6; } 3737if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3738 $as_echo_n "(cached) " >&6 3739else 3740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3741 # We make a subdir and do the tests there. Otherwise we can end up 3742 # making bogus files that we don't know about and never remove. For 3743 # instance it was reported that on HP-UX the gcc test will end up 3744 # making a dummy file named `D' -- because `-MD' means `put the output 3745 # in D'. 3746 mkdir conftest.dir 3747 # Copy depcomp to subdir because otherwise we won't find it if we're 3748 # using a relative directory. 3749 cp "$am_depcomp" conftest.dir 3750 cd conftest.dir 3751 # We will build objects and dependencies in a subdirectory because 3752 # it helps to detect inapplicable dependency modes. For instance 3753 # both Tru64's cc and ICC support -MD to output dependencies as a 3754 # side effect of compilation, but ICC will put the dependencies in 3755 # the current directory while Tru64 will put them in the object 3756 # directory. 3757 mkdir sub 3758 3759 am_cv_CC_dependencies_compiler_type=none 3760 if test "$am_compiler_list" = ""; then 3761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3762 fi 3763 for depmode in $am_compiler_list; do 3764 # Setup a source with many dependencies, because some compilers 3765 # like to wrap large dependency lists on column 80 (with \), and 3766 # we should not choose a depcomp mode which is confused by this. 3767 # 3768 # We need to recreate these files for each test, as the compiler may 3769 # overwrite some of them when testing with obscure command lines. 3770 # This happens at least with the AIX C compiler. 3771 : > sub/conftest.c 3772 for i in 1 2 3 4 5 6; do 3773 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3775 # Solaris 8's {/usr,}/bin/sh. 3776 touch sub/conftst$i.h 3777 done 3778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3779 3780 case $depmode in 3781 nosideeffect) 3782 # after this tag, mechanisms are not by side-effect, so they'll 3783 # only be used when explicitly requested 3784 if test "x$enable_dependency_tracking" = xyes; then 3785 continue 3786 else 3787 break 3788 fi 3789 ;; 3790 none) break ;; 3791 esac 3792 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3793 # mode. It turns out that the SunPro C++ compiler does not properly 3794 # handle `-M -o', and we need to detect this. 3795 if depmode=$depmode \ 3796 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3798 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3799 >/dev/null 2>conftest.err && 3800 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3801 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3802 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3803 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3804 # icc doesn't choke on unknown options, it will just issue warnings 3805 # or remarks (even with -Werror). So we grep stderr for any message 3806 # that says an option was ignored or not supported. 3807 # When given -MP, icc 7.0 and 7.1 complain thusly: 3808 # icc: Command line warning: ignoring option '-M'; no argument required 3809 # The diagnosis changed in icc 8.0: 3810 # icc: Command line remark: option '-MP' not supported 3811 if (grep 'ignoring option' conftest.err || 3812 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3813 am_cv_CC_dependencies_compiler_type=$depmode 3814 break 3815 fi 3816 fi 3817 done 3818 3819 cd .. 3820 rm -rf conftest.dir 3821else 3822 am_cv_CC_dependencies_compiler_type=none 3823fi 3824 3825fi 3826{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3827$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3828CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3829 3830 if 3831 test "x$enable_dependency_tracking" != xno \ 3832 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3833 am__fastdepCC_TRUE= 3834 am__fastdepCC_FALSE='#' 3835else 3836 am__fastdepCC_TRUE='#' 3837 am__fastdepCC_FALSE= 3838fi 3839 3840 3841if test "x$CC" != xcc; then 3842 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 3843$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 3844else 3845 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 3846$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 3847fi 3848set dummy $CC; ac_cc=`$as_echo "$2" | 3849 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3850if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 3851 $as_echo_n "(cached) " >&6 3852else 3853 cat >conftest.$ac_ext <<_ACEOF 3854/* confdefs.h. */ 3855_ACEOF 3856cat confdefs.h >>conftest.$ac_ext 3857cat >>conftest.$ac_ext <<_ACEOF 3858/* end confdefs.h. */ 3859 3860int 3861main () 3862{ 3863 3864 ; 3865 return 0; 3866} 3867_ACEOF 3868# Make sure it works both with $CC and with simple cc. 3869# We do the test twice because some compilers refuse to overwrite an 3870# existing .o file with -o, though they will create one. 3871ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3872rm -f conftest2.* 3873if { (case "(($ac_try" in 3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3875 *) ac_try_echo=$ac_try;; 3876esac 3877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3878$as_echo "$ac_try_echo") >&5 3879 (eval "$ac_try") 2>&5 3880 ac_status=$? 3881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3882 (exit $ac_status); } && 3883 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3885 *) ac_try_echo=$ac_try;; 3886esac 3887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3888$as_echo "$ac_try_echo") >&5 3889 (eval "$ac_try") 2>&5 3890 ac_status=$? 3891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892 (exit $ac_status); }; 3893then 3894 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3895 if test "x$CC" != xcc; then 3896 # Test first that cc exists at all. 3897 if { ac_try='cc -c conftest.$ac_ext >&5' 3898 { (case "(($ac_try" in 3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3900 *) ac_try_echo=$ac_try;; 3901esac 3902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3903$as_echo "$ac_try_echo") >&5 3904 (eval "$ac_try") 2>&5 3905 ac_status=$? 3906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3907 (exit $ac_status); }; }; then 3908 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3909 rm -f conftest2.* 3910 if { (case "(($ac_try" in 3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912 *) ac_try_echo=$ac_try;; 3913esac 3914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3915$as_echo "$ac_try_echo") >&5 3916 (eval "$ac_try") 2>&5 3917 ac_status=$? 3918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3919 (exit $ac_status); } && 3920 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3922 *) ac_try_echo=$ac_try;; 3923esac 3924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3925$as_echo "$ac_try_echo") >&5 3926 (eval "$ac_try") 2>&5 3927 ac_status=$? 3928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3929 (exit $ac_status); }; 3930 then 3931 # cc works too. 3932 : 3933 else 3934 # cc exists but doesn't like -o. 3935 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3936 fi 3937 fi 3938 fi 3939else 3940 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3941fi 3942rm -f core conftest* 3943 3944fi 3945if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 3946 { $as_echo "$as_me:$LINENO: result: yes" >&5 3947$as_echo "yes" >&6; } 3948else 3949 { $as_echo "$as_me:$LINENO: result: no" >&5 3950$as_echo "no" >&6; } 3951 3952cat >>confdefs.h <<\_ACEOF 3953#define NO_MINUS_C_MINUS_O 1 3954_ACEOF 3955 3956fi 3957 3958# FIXME: we rely on the cache variable name because 3959# there is no other way. 3960set dummy $CC 3961ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3962if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 3963 # Losing compiler, so override with the script. 3964 # FIXME: It is wrong to rewrite CC. 3965 # But if we don't then we get into trouble of one sort or another. 3966 # A longer-term fix would be to have automake use am__CC in this case, 3967 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3968 CC="$am_aux_dir/compile $CC" 3969fi 3970 3971 3972 3973ac_ext=c 3974ac_cpp='$CPP $CPPFLAGS' 3975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3977ac_compiler_gnu=$ac_cv_c_compiler_gnu 3978{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3979$as_echo_n "checking how to run the C preprocessor... " >&6; } 3980# On Suns, sometimes $CPP names a directory. 3981if test -n "$CPP" && test -d "$CPP"; then 3982 CPP= 3983fi 3984if test -z "$CPP"; then 3985 if test "${ac_cv_prog_CPP+set}" = set; then 3986 $as_echo_n "(cached) " >&6 3987else 3988 # Double quotes because CPP needs to be expanded 3989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3990 do 3991 ac_preproc_ok=false 3992for ac_c_preproc_warn_flag in '' yes 3993do 3994 # Use a header file that comes with gcc, so configuring glibc 3995 # with a fresh cross-compiler works. 3996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3997 # <limits.h> exists even on freestanding compilers. 3998 # On the NeXT, cc -E runs the code through the compiler's parser, 3999 # not just through cpp. "Syntax error" is here to catch this case. 4000 cat >conftest.$ac_ext <<_ACEOF 4001/* confdefs.h. */ 4002_ACEOF 4003cat confdefs.h >>conftest.$ac_ext 4004cat >>conftest.$ac_ext <<_ACEOF 4005/* end confdefs.h. */ 4006#ifdef __STDC__ 4007# include <limits.h> 4008#else 4009# include <assert.h> 4010#endif 4011 Syntax error 4012_ACEOF 4013if { (ac_try="$ac_cpp conftest.$ac_ext" 4014case "(($ac_try" in 4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4016 *) ac_try_echo=$ac_try;; 4017esac 4018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4019$as_echo "$ac_try_echo") >&5 4020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4021 ac_status=$? 4022 grep -v '^ *+' conftest.er1 >conftest.err 4023 rm -f conftest.er1 4024 cat conftest.err >&5 4025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4026 (exit $ac_status); } >/dev/null && { 4027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4028 test ! -s conftest.err 4029 }; then 4030 : 4031else 4032 $as_echo "$as_me: failed program was:" >&5 4033sed 's/^/| /' conftest.$ac_ext >&5 4034 4035 # Broken: fails on valid input. 4036continue 4037fi 4038 4039rm -f conftest.err conftest.$ac_ext 4040 4041 # OK, works on sane cases. Now check whether nonexistent headers 4042 # can be detected and how. 4043 cat >conftest.$ac_ext <<_ACEOF 4044/* confdefs.h. */ 4045_ACEOF 4046cat confdefs.h >>conftest.$ac_ext 4047cat >>conftest.$ac_ext <<_ACEOF 4048/* end confdefs.h. */ 4049#include <ac_nonexistent.h> 4050_ACEOF 4051if { (ac_try="$ac_cpp conftest.$ac_ext" 4052case "(($ac_try" in 4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4054 *) ac_try_echo=$ac_try;; 4055esac 4056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4057$as_echo "$ac_try_echo") >&5 4058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4059 ac_status=$? 4060 grep -v '^ *+' conftest.er1 >conftest.err 4061 rm -f conftest.er1 4062 cat conftest.err >&5 4063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4064 (exit $ac_status); } >/dev/null && { 4065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4066 test ! -s conftest.err 4067 }; then 4068 # Broken: success on invalid input. 4069continue 4070else 4071 $as_echo "$as_me: failed program was:" >&5 4072sed 's/^/| /' conftest.$ac_ext >&5 4073 4074 # Passes both tests. 4075ac_preproc_ok=: 4076break 4077fi 4078 4079rm -f conftest.err conftest.$ac_ext 4080 4081done 4082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4083rm -f conftest.err conftest.$ac_ext 4084if $ac_preproc_ok; then 4085 break 4086fi 4087 4088 done 4089 ac_cv_prog_CPP=$CPP 4090 4091fi 4092 CPP=$ac_cv_prog_CPP 4093else 4094 ac_cv_prog_CPP=$CPP 4095fi 4096{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4097$as_echo "$CPP" >&6; } 4098ac_preproc_ok=false 4099for ac_c_preproc_warn_flag in '' yes 4100do 4101 # Use a header file that comes with gcc, so configuring glibc 4102 # with a fresh cross-compiler works. 4103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4104 # <limits.h> exists even on freestanding compilers. 4105 # On the NeXT, cc -E runs the code through the compiler's parser, 4106 # not just through cpp. "Syntax error" is here to catch this case. 4107 cat >conftest.$ac_ext <<_ACEOF 4108/* confdefs.h. */ 4109_ACEOF 4110cat confdefs.h >>conftest.$ac_ext 4111cat >>conftest.$ac_ext <<_ACEOF 4112/* end confdefs.h. */ 4113#ifdef __STDC__ 4114# include <limits.h> 4115#else 4116# include <assert.h> 4117#endif 4118 Syntax error 4119_ACEOF 4120if { (ac_try="$ac_cpp conftest.$ac_ext" 4121case "(($ac_try" in 4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4123 *) ac_try_echo=$ac_try;; 4124esac 4125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4126$as_echo "$ac_try_echo") >&5 4127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4128 ac_status=$? 4129 grep -v '^ *+' conftest.er1 >conftest.err 4130 rm -f conftest.er1 4131 cat conftest.err >&5 4132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4133 (exit $ac_status); } >/dev/null && { 4134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4135 test ! -s conftest.err 4136 }; then 4137 : 4138else 4139 $as_echo "$as_me: failed program was:" >&5 4140sed 's/^/| /' conftest.$ac_ext >&5 4141 4142 # Broken: fails on valid input. 4143continue 4144fi 4145 4146rm -f conftest.err conftest.$ac_ext 4147 4148 # OK, works on sane cases. Now check whether nonexistent headers 4149 # can be detected and how. 4150 cat >conftest.$ac_ext <<_ACEOF 4151/* confdefs.h. */ 4152_ACEOF 4153cat confdefs.h >>conftest.$ac_ext 4154cat >>conftest.$ac_ext <<_ACEOF 4155/* end confdefs.h. */ 4156#include <ac_nonexistent.h> 4157_ACEOF 4158if { (ac_try="$ac_cpp conftest.$ac_ext" 4159case "(($ac_try" in 4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4161 *) ac_try_echo=$ac_try;; 4162esac 4163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4164$as_echo "$ac_try_echo") >&5 4165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4166 ac_status=$? 4167 grep -v '^ *+' conftest.er1 >conftest.err 4168 rm -f conftest.er1 4169 cat conftest.err >&5 4170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4171 (exit $ac_status); } >/dev/null && { 4172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4173 test ! -s conftest.err 4174 }; then 4175 # Broken: success on invalid input. 4176continue 4177else 4178 $as_echo "$as_me: failed program was:" >&5 4179sed 's/^/| /' conftest.$ac_ext >&5 4180 4181 # Passes both tests. 4182ac_preproc_ok=: 4183break 4184fi 4185 4186rm -f conftest.err conftest.$ac_ext 4187 4188done 4189# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4190rm -f conftest.err conftest.$ac_ext 4191if $ac_preproc_ok; then 4192 : 4193else 4194 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4195See \`config.log' for more details." >&5 4196$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4197See \`config.log' for more details." >&2;} 4198 { (exit 1); exit 1; }; } 4199fi 4200 4201ac_ext=c 4202ac_cpp='$CPP $CPPFLAGS' 4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4205ac_compiler_gnu=$ac_cv_c_compiler_gnu 4206 4207 4208{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4209$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4210if test "${ac_cv_path_GREP+set}" = set; then 4211 $as_echo_n "(cached) " >&6 4212else 4213 if test -z "$GREP"; then 4214 ac_path_GREP_found=false 4215 # Loop through the user's path and test for each of PROGNAME-LIST 4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4218do 4219 IFS=$as_save_IFS 4220 test -z "$as_dir" && as_dir=. 4221 for ac_prog in grep ggrep; do 4222 for ac_exec_ext in '' $ac_executable_extensions; do 4223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4224 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4225# Check for GNU ac_path_GREP and select it if it is found. 4226 # Check for GNU $ac_path_GREP 4227case `"$ac_path_GREP" --version 2>&1` in 4228*GNU*) 4229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4230*) 4231 ac_count=0 4232 $as_echo_n 0123456789 >"conftest.in" 4233 while : 4234 do 4235 cat "conftest.in" "conftest.in" >"conftest.tmp" 4236 mv "conftest.tmp" "conftest.in" 4237 cp "conftest.in" "conftest.nl" 4238 $as_echo 'GREP' >> "conftest.nl" 4239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4241 ac_count=`expr $ac_count + 1` 4242 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4243 # Best one so far, save it but keep looking for a better one 4244 ac_cv_path_GREP="$ac_path_GREP" 4245 ac_path_GREP_max=$ac_count 4246 fi 4247 # 10*(2^10) chars as input seems more than enough 4248 test $ac_count -gt 10 && break 4249 done 4250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4251esac 4252 4253 $ac_path_GREP_found && break 3 4254 done 4255 done 4256done 4257IFS=$as_save_IFS 4258 if test -z "$ac_cv_path_GREP"; then 4259 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4260$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4261 { (exit 1); exit 1; }; } 4262 fi 4263else 4264 ac_cv_path_GREP=$GREP 4265fi 4266 4267fi 4268{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4269$as_echo "$ac_cv_path_GREP" >&6; } 4270 GREP="$ac_cv_path_GREP" 4271 4272 4273{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4274$as_echo_n "checking for egrep... " >&6; } 4275if test "${ac_cv_path_EGREP+set}" = set; then 4276 $as_echo_n "(cached) " >&6 4277else 4278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4279 then ac_cv_path_EGREP="$GREP -E" 4280 else 4281 if test -z "$EGREP"; then 4282 ac_path_EGREP_found=false 4283 # Loop through the user's path and test for each of PROGNAME-LIST 4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4285for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4286do 4287 IFS=$as_save_IFS 4288 test -z "$as_dir" && as_dir=. 4289 for ac_prog in egrep; do 4290 for ac_exec_ext in '' $ac_executable_extensions; do 4291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4292 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4293# Check for GNU ac_path_EGREP and select it if it is found. 4294 # Check for GNU $ac_path_EGREP 4295case `"$ac_path_EGREP" --version 2>&1` in 4296*GNU*) 4297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4298*) 4299 ac_count=0 4300 $as_echo_n 0123456789 >"conftest.in" 4301 while : 4302 do 4303 cat "conftest.in" "conftest.in" >"conftest.tmp" 4304 mv "conftest.tmp" "conftest.in" 4305 cp "conftest.in" "conftest.nl" 4306 $as_echo 'EGREP' >> "conftest.nl" 4307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4309 ac_count=`expr $ac_count + 1` 4310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4311 # Best one so far, save it but keep looking for a better one 4312 ac_cv_path_EGREP="$ac_path_EGREP" 4313 ac_path_EGREP_max=$ac_count 4314 fi 4315 # 10*(2^10) chars as input seems more than enough 4316 test $ac_count -gt 10 && break 4317 done 4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4319esac 4320 4321 $ac_path_EGREP_found && break 3 4322 done 4323 done 4324done 4325IFS=$as_save_IFS 4326 if test -z "$ac_cv_path_EGREP"; then 4327 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4328$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4329 { (exit 1); exit 1; }; } 4330 fi 4331else 4332 ac_cv_path_EGREP=$EGREP 4333fi 4334 4335 fi 4336fi 4337{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4338$as_echo "$ac_cv_path_EGREP" >&6; } 4339 EGREP="$ac_cv_path_EGREP" 4340 4341 4342{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4343$as_echo_n "checking for ANSI C header files... " >&6; } 4344if test "${ac_cv_header_stdc+set}" = set; then 4345 $as_echo_n "(cached) " >&6 4346else 4347 cat >conftest.$ac_ext <<_ACEOF 4348/* confdefs.h. */ 4349_ACEOF 4350cat confdefs.h >>conftest.$ac_ext 4351cat >>conftest.$ac_ext <<_ACEOF 4352/* end confdefs.h. */ 4353#include <stdlib.h> 4354#include <stdarg.h> 4355#include <string.h> 4356#include <float.h> 4357 4358int 4359main () 4360{ 4361 4362 ; 4363 return 0; 4364} 4365_ACEOF 4366rm -f conftest.$ac_objext 4367if { (ac_try="$ac_compile" 4368case "(($ac_try" in 4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4370 *) ac_try_echo=$ac_try;; 4371esac 4372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4373$as_echo "$ac_try_echo") >&5 4374 (eval "$ac_compile") 2>conftest.er1 4375 ac_status=$? 4376 grep -v '^ *+' conftest.er1 >conftest.err 4377 rm -f conftest.er1 4378 cat conftest.err >&5 4379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4380 (exit $ac_status); } && { 4381 test -z "$ac_c_werror_flag" || 4382 test ! -s conftest.err 4383 } && test -s conftest.$ac_objext; then 4384 ac_cv_header_stdc=yes 4385else 4386 $as_echo "$as_me: failed program was:" >&5 4387sed 's/^/| /' conftest.$ac_ext >&5 4388 4389 ac_cv_header_stdc=no 4390fi 4391 4392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4393 4394if test $ac_cv_header_stdc = yes; then 4395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4396 cat >conftest.$ac_ext <<_ACEOF 4397/* confdefs.h. */ 4398_ACEOF 4399cat confdefs.h >>conftest.$ac_ext 4400cat >>conftest.$ac_ext <<_ACEOF 4401/* end confdefs.h. */ 4402#include <string.h> 4403 4404_ACEOF 4405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4406 $EGREP "memchr" >/dev/null 2>&1; then 4407 : 4408else 4409 ac_cv_header_stdc=no 4410fi 4411rm -f conftest* 4412 4413fi 4414 4415if test $ac_cv_header_stdc = yes; then 4416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4417 cat >conftest.$ac_ext <<_ACEOF 4418/* confdefs.h. */ 4419_ACEOF 4420cat confdefs.h >>conftest.$ac_ext 4421cat >>conftest.$ac_ext <<_ACEOF 4422/* end confdefs.h. */ 4423#include <stdlib.h> 4424 4425_ACEOF 4426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4427 $EGREP "free" >/dev/null 2>&1; then 4428 : 4429else 4430 ac_cv_header_stdc=no 4431fi 4432rm -f conftest* 4433 4434fi 4435 4436if test $ac_cv_header_stdc = yes; then 4437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4438 if test "$cross_compiling" = yes; then 4439 : 4440else 4441 cat >conftest.$ac_ext <<_ACEOF 4442/* confdefs.h. */ 4443_ACEOF 4444cat confdefs.h >>conftest.$ac_ext 4445cat >>conftest.$ac_ext <<_ACEOF 4446/* end confdefs.h. */ 4447#include <ctype.h> 4448#include <stdlib.h> 4449#if ((' ' & 0x0FF) == 0x020) 4450# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4451# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4452#else 4453# define ISLOWER(c) \ 4454 (('a' <= (c) && (c) <= 'i') \ 4455 || ('j' <= (c) && (c) <= 'r') \ 4456 || ('s' <= (c) && (c) <= 'z')) 4457# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4458#endif 4459 4460#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4461int 4462main () 4463{ 4464 int i; 4465 for (i = 0; i < 256; i++) 4466 if (XOR (islower (i), ISLOWER (i)) 4467 || toupper (i) != TOUPPER (i)) 4468 return 2; 4469 return 0; 4470} 4471_ACEOF 4472rm -f conftest$ac_exeext 4473if { (ac_try="$ac_link" 4474case "(($ac_try" in 4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4476 *) ac_try_echo=$ac_try;; 4477esac 4478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4479$as_echo "$ac_try_echo") >&5 4480 (eval "$ac_link") 2>&5 4481 ac_status=$? 4482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4484 { (case "(($ac_try" in 4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4486 *) ac_try_echo=$ac_try;; 4487esac 4488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4489$as_echo "$ac_try_echo") >&5 4490 (eval "$ac_try") 2>&5 4491 ac_status=$? 4492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); }; }; then 4494 : 4495else 4496 $as_echo "$as_me: program exited with status $ac_status" >&5 4497$as_echo "$as_me: failed program was:" >&5 4498sed 's/^/| /' conftest.$ac_ext >&5 4499 4500( exit $ac_status ) 4501ac_cv_header_stdc=no 4502fi 4503rm -rf conftest.dSYM 4504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4505fi 4506 4507 4508fi 4509fi 4510{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4511$as_echo "$ac_cv_header_stdc" >&6; } 4512if test $ac_cv_header_stdc = yes; then 4513 4514cat >>confdefs.h <<\_ACEOF 4515#define STDC_HEADERS 1 4516_ACEOF 4517 4518fi 4519 4520# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4531 inttypes.h stdint.h unistd.h 4532do 4533as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4534{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4535$as_echo_n "checking for $ac_header... " >&6; } 4536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4537 $as_echo_n "(cached) " >&6 4538else 4539 cat >conftest.$ac_ext <<_ACEOF 4540/* confdefs.h. */ 4541_ACEOF 4542cat confdefs.h >>conftest.$ac_ext 4543cat >>conftest.$ac_ext <<_ACEOF 4544/* end confdefs.h. */ 4545$ac_includes_default 4546 4547#include <$ac_header> 4548_ACEOF 4549rm -f conftest.$ac_objext 4550if { (ac_try="$ac_compile" 4551case "(($ac_try" in 4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4553 *) ac_try_echo=$ac_try;; 4554esac 4555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4556$as_echo "$ac_try_echo") >&5 4557 (eval "$ac_compile") 2>conftest.er1 4558 ac_status=$? 4559 grep -v '^ *+' conftest.er1 >conftest.err 4560 rm -f conftest.er1 4561 cat conftest.err >&5 4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); } && { 4564 test -z "$ac_c_werror_flag" || 4565 test ! -s conftest.err 4566 } && test -s conftest.$ac_objext; then 4567 eval "$as_ac_Header=yes" 4568else 4569 $as_echo "$as_me: failed program was:" >&5 4570sed 's/^/| /' conftest.$ac_ext >&5 4571 4572 eval "$as_ac_Header=no" 4573fi 4574 4575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4576fi 4577ac_res=`eval 'as_val=${'$as_ac_Header'} 4578 $as_echo "$as_val"'` 4579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4580$as_echo "$ac_res" >&6; } 4581if test `eval 'as_val=${'$as_ac_Header'} 4582 $as_echo "$as_val"'` = yes; then 4583 cat >>confdefs.h <<_ACEOF 4584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4585_ACEOF 4586 4587fi 4588 4589done 4590 4591 4592 4593 if test "${ac_cv_header_minix_config_h+set}" = set; then 4594 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4595$as_echo_n "checking for minix/config.h... " >&6; } 4596if test "${ac_cv_header_minix_config_h+set}" = set; then 4597 $as_echo_n "(cached) " >&6 4598fi 4599{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4600$as_echo "$ac_cv_header_minix_config_h" >&6; } 4601else 4602 # Is the header compilable? 4603{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 4604$as_echo_n "checking minix/config.h usability... " >&6; } 4605cat >conftest.$ac_ext <<_ACEOF 4606/* confdefs.h. */ 4607_ACEOF 4608cat confdefs.h >>conftest.$ac_ext 4609cat >>conftest.$ac_ext <<_ACEOF 4610/* end confdefs.h. */ 4611$ac_includes_default 4612#include <minix/config.h> 4613_ACEOF 4614rm -f conftest.$ac_objext 4615if { (ac_try="$ac_compile" 4616case "(($ac_try" in 4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4618 *) ac_try_echo=$ac_try;; 4619esac 4620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4621$as_echo "$ac_try_echo") >&5 4622 (eval "$ac_compile") 2>conftest.er1 4623 ac_status=$? 4624 grep -v '^ *+' conftest.er1 >conftest.err 4625 rm -f conftest.er1 4626 cat conftest.err >&5 4627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4628 (exit $ac_status); } && { 4629 test -z "$ac_c_werror_flag" || 4630 test ! -s conftest.err 4631 } && test -s conftest.$ac_objext; then 4632 ac_header_compiler=yes 4633else 4634 $as_echo "$as_me: failed program was:" >&5 4635sed 's/^/| /' conftest.$ac_ext >&5 4636 4637 ac_header_compiler=no 4638fi 4639 4640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4641{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4642$as_echo "$ac_header_compiler" >&6; } 4643 4644# Is the header present? 4645{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 4646$as_echo_n "checking minix/config.h presence... " >&6; } 4647cat >conftest.$ac_ext <<_ACEOF 4648/* confdefs.h. */ 4649_ACEOF 4650cat confdefs.h >>conftest.$ac_ext 4651cat >>conftest.$ac_ext <<_ACEOF 4652/* end confdefs.h. */ 4653#include <minix/config.h> 4654_ACEOF 4655if { (ac_try="$ac_cpp conftest.$ac_ext" 4656case "(($ac_try" in 4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4658 *) ac_try_echo=$ac_try;; 4659esac 4660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4661$as_echo "$ac_try_echo") >&5 4662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4663 ac_status=$? 4664 grep -v '^ *+' conftest.er1 >conftest.err 4665 rm -f conftest.er1 4666 cat conftest.err >&5 4667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4668 (exit $ac_status); } >/dev/null && { 4669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4670 test ! -s conftest.err 4671 }; then 4672 ac_header_preproc=yes 4673else 4674 $as_echo "$as_me: failed program was:" >&5 4675sed 's/^/| /' conftest.$ac_ext >&5 4676 4677 ac_header_preproc=no 4678fi 4679 4680rm -f conftest.err conftest.$ac_ext 4681{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4682$as_echo "$ac_header_preproc" >&6; } 4683 4684# So? What about this header? 4685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4686 yes:no: ) 4687 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 4688$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4689 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 4690$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 4691 ac_header_preproc=yes 4692 ;; 4693 no:yes:* ) 4694 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 4695$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 4696 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 4697$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 4698 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 4699$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 4700 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 4701$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 4702 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 4703$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 4704 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 4705$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 4706 ( cat <<\_ASBOX 4707## ----------------------------------- ## 4708## Report this to kientzle@freebsd.org ## 4709## ----------------------------------- ## 4710_ASBOX 4711 ) | sed "s/^/$as_me: WARNING: /" >&2 4712 ;; 4713esac 4714{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4715$as_echo_n "checking for minix/config.h... " >&6; } 4716if test "${ac_cv_header_minix_config_h+set}" = set; then 4717 $as_echo_n "(cached) " >&6 4718else 4719 ac_cv_header_minix_config_h=$ac_header_preproc 4720fi 4721{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4722$as_echo "$ac_cv_header_minix_config_h" >&6; } 4723 4724fi 4725if test $ac_cv_header_minix_config_h = yes; then 4726 MINIX=yes 4727else 4728 MINIX= 4729fi 4730 4731 4732 if test "$MINIX" = yes; then 4733 4734cat >>confdefs.h <<\_ACEOF 4735#define _POSIX_SOURCE 1 4736_ACEOF 4737 4738 4739cat >>confdefs.h <<\_ACEOF 4740#define _POSIX_1_SOURCE 2 4741_ACEOF 4742 4743 4744cat >>confdefs.h <<\_ACEOF 4745#define _MINIX 1 4746_ACEOF 4747 4748 fi 4749 4750 4751 4752 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 4753$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4754if test "${ac_cv_safe_to_define___extensions__+set}" = set; then 4755 $as_echo_n "(cached) " >&6 4756else 4757 cat >conftest.$ac_ext <<_ACEOF 4758/* confdefs.h. */ 4759_ACEOF 4760cat confdefs.h >>conftest.$ac_ext 4761cat >>conftest.$ac_ext <<_ACEOF 4762/* end confdefs.h. */ 4763 4764# define __EXTENSIONS__ 1 4765 $ac_includes_default 4766int 4767main () 4768{ 4769 4770 ; 4771 return 0; 4772} 4773_ACEOF 4774rm -f conftest.$ac_objext 4775if { (ac_try="$ac_compile" 4776case "(($ac_try" in 4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4778 *) ac_try_echo=$ac_try;; 4779esac 4780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4781$as_echo "$ac_try_echo") >&5 4782 (eval "$ac_compile") 2>conftest.er1 4783 ac_status=$? 4784 grep -v '^ *+' conftest.er1 >conftest.err 4785 rm -f conftest.er1 4786 cat conftest.err >&5 4787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 (exit $ac_status); } && { 4789 test -z "$ac_c_werror_flag" || 4790 test ! -s conftest.err 4791 } && test -s conftest.$ac_objext; then 4792 ac_cv_safe_to_define___extensions__=yes 4793else 4794 $as_echo "$as_me: failed program was:" >&5 4795sed 's/^/| /' conftest.$ac_ext >&5 4796 4797 ac_cv_safe_to_define___extensions__=no 4798fi 4799 4800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4801fi 4802{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 4803$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4804 test $ac_cv_safe_to_define___extensions__ = yes && 4805 cat >>confdefs.h <<\_ACEOF 4806#define __EXTENSIONS__ 1 4807_ACEOF 4808 4809 cat >>confdefs.h <<\_ACEOF 4810#define _ALL_SOURCE 1 4811_ACEOF 4812 4813 cat >>confdefs.h <<\_ACEOF 4814#define _GNU_SOURCE 1 4815_ACEOF 4816 4817 cat >>confdefs.h <<\_ACEOF 4818#define _POSIX_PTHREAD_SEMANTICS 1 4819_ACEOF 4820 4821 cat >>confdefs.h <<\_ACEOF 4822#define _TANDEM_SOURCE 1 4823_ACEOF 4824 4825 4826enable_win32_dll=yes 4827 4828case $host in 4829*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 4830 if test -n "$ac_tool_prefix"; then 4831 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4832set dummy ${ac_tool_prefix}as; ac_word=$2 4833{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4834$as_echo_n "checking for $ac_word... " >&6; } 4835if test "${ac_cv_prog_AS+set}" = set; then 4836 $as_echo_n "(cached) " >&6 4837else 4838 if test -n "$AS"; then 4839 ac_cv_prog_AS="$AS" # Let the user override the test. 4840else 4841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4842for as_dir in $PATH 4843do 4844 IFS=$as_save_IFS 4845 test -z "$as_dir" && as_dir=. 4846 for ac_exec_ext in '' $ac_executable_extensions; do 4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4848 ac_cv_prog_AS="${ac_tool_prefix}as" 4849 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4850 break 2 4851 fi 4852done 4853done 4854IFS=$as_save_IFS 4855 4856fi 4857fi 4858AS=$ac_cv_prog_AS 4859if test -n "$AS"; then 4860 { $as_echo "$as_me:$LINENO: result: $AS" >&5 4861$as_echo "$AS" >&6; } 4862else 4863 { $as_echo "$as_me:$LINENO: result: no" >&5 4864$as_echo "no" >&6; } 4865fi 4866 4867 4868fi 4869if test -z "$ac_cv_prog_AS"; then 4870 ac_ct_AS=$AS 4871 # Extract the first word of "as", so it can be a program name with args. 4872set dummy as; ac_word=$2 4873{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4874$as_echo_n "checking for $ac_word... " >&6; } 4875if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 4876 $as_echo_n "(cached) " >&6 4877else 4878 if test -n "$ac_ct_AS"; then 4879 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4880else 4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4882for as_dir in $PATH 4883do 4884 IFS=$as_save_IFS 4885 test -z "$as_dir" && as_dir=. 4886 for ac_exec_ext in '' $ac_executable_extensions; do 4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4888 ac_cv_prog_ac_ct_AS="as" 4889 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4890 break 2 4891 fi 4892done 4893done 4894IFS=$as_save_IFS 4895 4896fi 4897fi 4898ac_ct_AS=$ac_cv_prog_ac_ct_AS 4899if test -n "$ac_ct_AS"; then 4900 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 4901$as_echo "$ac_ct_AS" >&6; } 4902else 4903 { $as_echo "$as_me:$LINENO: result: no" >&5 4904$as_echo "no" >&6; } 4905fi 4906 4907 if test "x$ac_ct_AS" = x; then 4908 AS="false" 4909 else 4910 case $cross_compiling:$ac_tool_warned in 4911yes:) 4912{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4913whose name does not start with the host triplet. If you think this 4914configuration is useful to you, please write to autoconf@gnu.org." >&5 4915$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4916whose name does not start with the host triplet. If you think this 4917configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4918ac_tool_warned=yes ;; 4919esac 4920 AS=$ac_ct_AS 4921 fi 4922else 4923 AS="$ac_cv_prog_AS" 4924fi 4925 4926 if test -n "$ac_tool_prefix"; then 4927 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4928set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4929{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4930$as_echo_n "checking for $ac_word... " >&6; } 4931if test "${ac_cv_prog_DLLTOOL+set}" = set; then 4932 $as_echo_n "(cached) " >&6 4933else 4934 if test -n "$DLLTOOL"; then 4935 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4936else 4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4938for as_dir in $PATH 4939do 4940 IFS=$as_save_IFS 4941 test -z "$as_dir" && as_dir=. 4942 for ac_exec_ext in '' $ac_executable_extensions; do 4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4944 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4946 break 2 4947 fi 4948done 4949done 4950IFS=$as_save_IFS 4951 4952fi 4953fi 4954DLLTOOL=$ac_cv_prog_DLLTOOL 4955if test -n "$DLLTOOL"; then 4956 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5 4957$as_echo "$DLLTOOL" >&6; } 4958else 4959 { $as_echo "$as_me:$LINENO: result: no" >&5 4960$as_echo "no" >&6; } 4961fi 4962 4963 4964fi 4965if test -z "$ac_cv_prog_DLLTOOL"; then 4966 ac_ct_DLLTOOL=$DLLTOOL 4967 # Extract the first word of "dlltool", so it can be a program name with args. 4968set dummy dlltool; ac_word=$2 4969{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4970$as_echo_n "checking for $ac_word... " >&6; } 4971if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 4972 $as_echo_n "(cached) " >&6 4973else 4974 if test -n "$ac_ct_DLLTOOL"; then 4975 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4976else 4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4978for as_dir in $PATH 4979do 4980 IFS=$as_save_IFS 4981 test -z "$as_dir" && as_dir=. 4982 for ac_exec_ext in '' $ac_executable_extensions; do 4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4984 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4985 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4986 break 2 4987 fi 4988done 4989done 4990IFS=$as_save_IFS 4991 4992fi 4993fi 4994ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4995if test -n "$ac_ct_DLLTOOL"; then 4996 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 4997$as_echo "$ac_ct_DLLTOOL" >&6; } 4998else 4999 { $as_echo "$as_me:$LINENO: result: no" >&5 5000$as_echo "no" >&6; } 5001fi 5002 5003 if test "x$ac_ct_DLLTOOL" = x; then 5004 DLLTOOL="false" 5005 else 5006 case $cross_compiling:$ac_tool_warned in 5007yes:) 5008{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5009whose name does not start with the host triplet. If you think this 5010configuration is useful to you, please write to autoconf@gnu.org." >&5 5011$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5012whose name does not start with the host triplet. If you think this 5013configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5014ac_tool_warned=yes ;; 5015esac 5016 DLLTOOL=$ac_ct_DLLTOOL 5017 fi 5018else 5019 DLLTOOL="$ac_cv_prog_DLLTOOL" 5020fi 5021 5022 if test -n "$ac_tool_prefix"; then 5023 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5024set dummy ${ac_tool_prefix}objdump; ac_word=$2 5025{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5026$as_echo_n "checking for $ac_word... " >&6; } 5027if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5028 $as_echo_n "(cached) " >&6 5029else 5030 if test -n "$OBJDUMP"; then 5031 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5032else 5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5034for as_dir in $PATH 5035do 5036 IFS=$as_save_IFS 5037 test -z "$as_dir" && as_dir=. 5038 for ac_exec_ext in '' $ac_executable_extensions; do 5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5040 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5042 break 2 5043 fi 5044done 5045done 5046IFS=$as_save_IFS 5047 5048fi 5049fi 5050OBJDUMP=$ac_cv_prog_OBJDUMP 5051if test -n "$OBJDUMP"; then 5052 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5053$as_echo "$OBJDUMP" >&6; } 5054else 5055 { $as_echo "$as_me:$LINENO: result: no" >&5 5056$as_echo "no" >&6; } 5057fi 5058 5059 5060fi 5061if test -z "$ac_cv_prog_OBJDUMP"; then 5062 ac_ct_OBJDUMP=$OBJDUMP 5063 # Extract the first word of "objdump", so it can be a program name with args. 5064set dummy objdump; ac_word=$2 5065{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5066$as_echo_n "checking for $ac_word... " >&6; } 5067if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5068 $as_echo_n "(cached) " >&6 5069else 5070 if test -n "$ac_ct_OBJDUMP"; then 5071 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5072else 5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5074for as_dir in $PATH 5075do 5076 IFS=$as_save_IFS 5077 test -z "$as_dir" && as_dir=. 5078 for ac_exec_ext in '' $ac_executable_extensions; do 5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5080 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5082 break 2 5083 fi 5084done 5085done 5086IFS=$as_save_IFS 5087 5088fi 5089fi 5090ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5091if test -n "$ac_ct_OBJDUMP"; then 5092 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5093$as_echo "$ac_ct_OBJDUMP" >&6; } 5094else 5095 { $as_echo "$as_me:$LINENO: result: no" >&5 5096$as_echo "no" >&6; } 5097fi 5098 5099 if test "x$ac_ct_OBJDUMP" = x; then 5100 OBJDUMP="false" 5101 else 5102 case $cross_compiling:$ac_tool_warned in 5103yes:) 5104{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5105whose name does not start with the host triplet. If you think this 5106configuration is useful to you, please write to autoconf@gnu.org." >&5 5107$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5108whose name does not start with the host triplet. If you think this 5109configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5110ac_tool_warned=yes ;; 5111esac 5112 OBJDUMP=$ac_ct_OBJDUMP 5113 fi 5114else 5115 OBJDUMP="$ac_cv_prog_OBJDUMP" 5116fi 5117 5118 ;; 5119esac 5120 5121test -z "$AS" && AS=as 5122 5123 5124 5125 5126 5127test -z "$DLLTOOL" && DLLTOOL=dlltool 5128 5129 5130 5131 5132 5133test -z "$OBJDUMP" && OBJDUMP=objdump 5134 5135 5136 5137 5138 5139 5140 5141case `pwd` in 5142 *\ * | *\ *) 5143 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5144$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5145esac 5146 5147 5148 5149macro_version='2.2.6b' 5150macro_revision='1.3017' 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164ltmain="$ac_aux_dir/ltmain.sh" 5165 5166{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5167$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5168if test "${ac_cv_path_SED+set}" = set; then 5169 $as_echo_n "(cached) " >&6 5170else 5171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5172 for ac_i in 1 2 3 4 5 6 7; do 5173 ac_script="$ac_script$as_nl$ac_script" 5174 done 5175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5176 $as_unset ac_script || ac_script= 5177 if test -z "$SED"; then 5178 ac_path_SED_found=false 5179 # Loop through the user's path and test for each of PROGNAME-LIST 5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5181for as_dir in $PATH 5182do 5183 IFS=$as_save_IFS 5184 test -z "$as_dir" && as_dir=. 5185 for ac_prog in sed gsed; do 5186 for ac_exec_ext in '' $ac_executable_extensions; do 5187 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5188 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5189# Check for GNU ac_path_SED and select it if it is found. 5190 # Check for GNU $ac_path_SED 5191case `"$ac_path_SED" --version 2>&1` in 5192*GNU*) 5193 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5194*) 5195 ac_count=0 5196 $as_echo_n 0123456789 >"conftest.in" 5197 while : 5198 do 5199 cat "conftest.in" "conftest.in" >"conftest.tmp" 5200 mv "conftest.tmp" "conftest.in" 5201 cp "conftest.in" "conftest.nl" 5202 $as_echo '' >> "conftest.nl" 5203 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5205 ac_count=`expr $ac_count + 1` 5206 if test $ac_count -gt ${ac_path_SED_max-0}; then 5207 # Best one so far, save it but keep looking for a better one 5208 ac_cv_path_SED="$ac_path_SED" 5209 ac_path_SED_max=$ac_count 5210 fi 5211 # 10*(2^10) chars as input seems more than enough 5212 test $ac_count -gt 10 && break 5213 done 5214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5215esac 5216 5217 $ac_path_SED_found && break 3 5218 done 5219 done 5220done 5221IFS=$as_save_IFS 5222 if test -z "$ac_cv_path_SED"; then 5223 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 5224$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 5225 { (exit 1); exit 1; }; } 5226 fi 5227else 5228 ac_cv_path_SED=$SED 5229fi 5230 5231fi 5232{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 5233$as_echo "$ac_cv_path_SED" >&6; } 5234 SED="$ac_cv_path_SED" 5235 rm -f conftest.sed 5236 5237test -z "$SED" && SED=sed 5238Xsed="$SED -e 1s/^X//" 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 5251$as_echo_n "checking for fgrep... " >&6; } 5252if test "${ac_cv_path_FGREP+set}" = set; then 5253 $as_echo_n "(cached) " >&6 5254else 5255 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5256 then ac_cv_path_FGREP="$GREP -F" 5257 else 5258 if test -z "$FGREP"; then 5259 ac_path_FGREP_found=false 5260 # Loop through the user's path and test for each of PROGNAME-LIST 5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5263do 5264 IFS=$as_save_IFS 5265 test -z "$as_dir" && as_dir=. 5266 for ac_prog in fgrep; do 5267 for ac_exec_ext in '' $ac_executable_extensions; do 5268 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5269 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5270# Check for GNU ac_path_FGREP and select it if it is found. 5271 # Check for GNU $ac_path_FGREP 5272case `"$ac_path_FGREP" --version 2>&1` in 5273*GNU*) 5274 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5275*) 5276 ac_count=0 5277 $as_echo_n 0123456789 >"conftest.in" 5278 while : 5279 do 5280 cat "conftest.in" "conftest.in" >"conftest.tmp" 5281 mv "conftest.tmp" "conftest.in" 5282 cp "conftest.in" "conftest.nl" 5283 $as_echo 'FGREP' >> "conftest.nl" 5284 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5286 ac_count=`expr $ac_count + 1` 5287 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5288 # Best one so far, save it but keep looking for a better one 5289 ac_cv_path_FGREP="$ac_path_FGREP" 5290 ac_path_FGREP_max=$ac_count 5291 fi 5292 # 10*(2^10) chars as input seems more than enough 5293 test $ac_count -gt 10 && break 5294 done 5295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5296esac 5297 5298 $ac_path_FGREP_found && break 3 5299 done 5300 done 5301done 5302IFS=$as_save_IFS 5303 if test -z "$ac_cv_path_FGREP"; then 5304 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5305$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5306 { (exit 1); exit 1; }; } 5307 fi 5308else 5309 ac_cv_path_FGREP=$FGREP 5310fi 5311 5312 fi 5313fi 5314{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 5315$as_echo "$ac_cv_path_FGREP" >&6; } 5316 FGREP="$ac_cv_path_FGREP" 5317 5318 5319test -z "$GREP" && GREP=grep 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339# Check whether --with-gnu-ld was given. 5340if test "${with_gnu_ld+set}" = set; then 5341 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5342else 5343 with_gnu_ld=no 5344fi 5345 5346ac_prog=ld 5347if test "$GCC" = yes; then 5348 # Check if gcc -print-prog-name=ld gives a path. 5349 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5350$as_echo_n "checking for ld used by $CC... " >&6; } 5351 case $host in 5352 *-*-mingw*) 5353 # gcc leaves a trailing carriage return which upsets mingw 5354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5355 *) 5356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5357 esac 5358 case $ac_prog in 5359 # Accept absolute paths. 5360 [\\/]* | ?:[\\/]*) 5361 re_direlt='/[^/][^/]*/\.\./' 5362 # Canonicalize the pathname of ld 5363 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5364 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5365 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5366 done 5367 test -z "$LD" && LD="$ac_prog" 5368 ;; 5369 "") 5370 # If it fails, then pretend we aren't using GCC. 5371 ac_prog=ld 5372 ;; 5373 *) 5374 # If it is relative, then search for the first ld in PATH. 5375 with_gnu_ld=unknown 5376 ;; 5377 esac 5378elif test "$with_gnu_ld" = yes; then 5379 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 5380$as_echo_n "checking for GNU ld... " >&6; } 5381else 5382 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5383$as_echo_n "checking for non-GNU ld... " >&6; } 5384fi 5385if test "${lt_cv_path_LD+set}" = set; then 5386 $as_echo_n "(cached) " >&6 5387else 5388 if test -z "$LD"; then 5389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5390 for ac_dir in $PATH; do 5391 IFS="$lt_save_ifs" 5392 test -z "$ac_dir" && ac_dir=. 5393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5394 lt_cv_path_LD="$ac_dir/$ac_prog" 5395 # Check to see if the program is GNU ld. I'd rather use --version, 5396 # but apparently some variants of GNU ld only accept -v. 5397 # Break only if it was the GNU/non-GNU ld that we prefer. 5398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5399 *GNU* | *'with BFD'*) 5400 test "$with_gnu_ld" != no && break 5401 ;; 5402 *) 5403 test "$with_gnu_ld" != yes && break 5404 ;; 5405 esac 5406 fi 5407 done 5408 IFS="$lt_save_ifs" 5409else 5410 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5411fi 5412fi 5413 5414LD="$lt_cv_path_LD" 5415if test -n "$LD"; then 5416 { $as_echo "$as_me:$LINENO: result: $LD" >&5 5417$as_echo "$LD" >&6; } 5418else 5419 { $as_echo "$as_me:$LINENO: result: no" >&5 5420$as_echo "no" >&6; } 5421fi 5422test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5423$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5424 { (exit 1); exit 1; }; } 5425{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5426$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5427if test "${lt_cv_prog_gnu_ld+set}" = set; then 5428 $as_echo_n "(cached) " >&6 5429else 5430 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5431case `$LD -v 2>&1 </dev/null` in 5432*GNU* | *'with BFD'*) 5433 lt_cv_prog_gnu_ld=yes 5434 ;; 5435*) 5436 lt_cv_prog_gnu_ld=no 5437 ;; 5438esac 5439fi 5440{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5441$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5442with_gnu_ld=$lt_cv_prog_gnu_ld 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5453$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5454if test "${lt_cv_path_NM+set}" = set; then 5455 $as_echo_n "(cached) " >&6 5456else 5457 if test -n "$NM"; then 5458 # Let the user override the test. 5459 lt_cv_path_NM="$NM" 5460else 5461 lt_nm_to_check="${ac_tool_prefix}nm" 5462 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5463 lt_nm_to_check="$lt_nm_to_check nm" 5464 fi 5465 for lt_tmp_nm in $lt_nm_to_check; do 5466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5467 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5468 IFS="$lt_save_ifs" 5469 test -z "$ac_dir" && ac_dir=. 5470 tmp_nm="$ac_dir/$lt_tmp_nm" 5471 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5472 # Check to see if the nm accepts a BSD-compat flag. 5473 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5474 # nm: unknown option "B" ignored 5475 # Tru64's nm complains that /dev/null is an invalid object file 5476 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5477 */dev/null* | *'Invalid file or object type'*) 5478 lt_cv_path_NM="$tmp_nm -B" 5479 break 5480 ;; 5481 *) 5482 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5483 */dev/null*) 5484 lt_cv_path_NM="$tmp_nm -p" 5485 break 5486 ;; 5487 *) 5488 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5489 continue # so that we can try to find one that supports BSD flags 5490 ;; 5491 esac 5492 ;; 5493 esac 5494 fi 5495 done 5496 IFS="$lt_save_ifs" 5497 done 5498 : ${lt_cv_path_NM=no} 5499fi 5500fi 5501{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5502$as_echo "$lt_cv_path_NM" >&6; } 5503if test "$lt_cv_path_NM" != "no"; then 5504 NM="$lt_cv_path_NM" 5505else 5506 # Didn't find any BSD compatible name lister, look for dumpbin. 5507 if test -n "$ac_tool_prefix"; then 5508 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5509 do 5510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5511set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5512{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5513$as_echo_n "checking for $ac_word... " >&6; } 5514if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5515 $as_echo_n "(cached) " >&6 5516else 5517 if test -n "$DUMPBIN"; then 5518 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5519else 5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5521for as_dir in $PATH 5522do 5523 IFS=$as_save_IFS 5524 test -z "$as_dir" && as_dir=. 5525 for ac_exec_ext in '' $ac_executable_extensions; do 5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5527 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5529 break 2 5530 fi 5531done 5532done 5533IFS=$as_save_IFS 5534 5535fi 5536fi 5537DUMPBIN=$ac_cv_prog_DUMPBIN 5538if test -n "$DUMPBIN"; then 5539 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5540$as_echo "$DUMPBIN" >&6; } 5541else 5542 { $as_echo "$as_me:$LINENO: result: no" >&5 5543$as_echo "no" >&6; } 5544fi 5545 5546 5547 test -n "$DUMPBIN" && break 5548 done 5549fi 5550if test -z "$DUMPBIN"; then 5551 ac_ct_DUMPBIN=$DUMPBIN 5552 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5553do 5554 # Extract the first word of "$ac_prog", so it can be a program name with args. 5555set dummy $ac_prog; ac_word=$2 5556{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5557$as_echo_n "checking for $ac_word... " >&6; } 5558if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5559 $as_echo_n "(cached) " >&6 5560else 5561 if test -n "$ac_ct_DUMPBIN"; then 5562 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5563else 5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5565for as_dir in $PATH 5566do 5567 IFS=$as_save_IFS 5568 test -z "$as_dir" && as_dir=. 5569 for ac_exec_ext in '' $ac_executable_extensions; do 5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5571 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5573 break 2 5574 fi 5575done 5576done 5577IFS=$as_save_IFS 5578 5579fi 5580fi 5581ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5582if test -n "$ac_ct_DUMPBIN"; then 5583 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5584$as_echo "$ac_ct_DUMPBIN" >&6; } 5585else 5586 { $as_echo "$as_me:$LINENO: result: no" >&5 5587$as_echo "no" >&6; } 5588fi 5589 5590 5591 test -n "$ac_ct_DUMPBIN" && break 5592done 5593 5594 if test "x$ac_ct_DUMPBIN" = x; then 5595 DUMPBIN=":" 5596 else 5597 case $cross_compiling:$ac_tool_warned in 5598yes:) 5599{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5600whose name does not start with the host triplet. If you think this 5601configuration is useful to you, please write to autoconf@gnu.org." >&5 5602$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5603whose name does not start with the host triplet. If you think this 5604configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5605ac_tool_warned=yes ;; 5606esac 5607 DUMPBIN=$ac_ct_DUMPBIN 5608 fi 5609fi 5610 5611 5612 if test "$DUMPBIN" != ":"; then 5613 NM="$DUMPBIN" 5614 fi 5615fi 5616test -z "$NM" && NM=nm 5617 5618 5619 5620 5621 5622 5623{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5624$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5625if test "${lt_cv_nm_interface+set}" = set; then 5626 $as_echo_n "(cached) " >&6 5627else 5628 lt_cv_nm_interface="BSD nm" 5629 echo "int some_variable = 0;" > conftest.$ac_ext 5630 (eval echo "\"\$as_me:5630: $ac_compile\"" >&5) 5631 (eval "$ac_compile" 2>conftest.err) 5632 cat conftest.err >&5 5633 (eval echo "\"\$as_me:5633: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5634 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5635 cat conftest.err >&5 5636 (eval echo "\"\$as_me:5636: output\"" >&5) 5637 cat conftest.out >&5 5638 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5639 lt_cv_nm_interface="MS dumpbin" 5640 fi 5641 rm -f conftest* 5642fi 5643{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5644$as_echo "$lt_cv_nm_interface" >&6; } 5645 5646{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5647$as_echo_n "checking whether ln -s works... " >&6; } 5648LN_S=$as_ln_s 5649if test "$LN_S" = "ln -s"; then 5650 { $as_echo "$as_me:$LINENO: result: yes" >&5 5651$as_echo "yes" >&6; } 5652else 5653 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5654$as_echo "no, using $LN_S" >&6; } 5655fi 5656 5657# find the maximum length of command line arguments 5658{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5659$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5660if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5661 $as_echo_n "(cached) " >&6 5662else 5663 i=0 5664 teststring="ABCD" 5665 5666 case $build_os in 5667 msdosdjgpp*) 5668 # On DJGPP, this test can blow up pretty badly due to problems in libc 5669 # (any single argument exceeding 2000 bytes causes a buffer overrun 5670 # during glob expansion). Even if it were fixed, the result of this 5671 # check would be larger than it should be. 5672 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5673 ;; 5674 5675 gnu*) 5676 # Under GNU Hurd, this test is not required because there is 5677 # no limit to the length of command line arguments. 5678 # Libtool will interpret -1 as no limit whatsoever 5679 lt_cv_sys_max_cmd_len=-1; 5680 ;; 5681 5682 cygwin* | mingw* | cegcc*) 5683 # On Win9x/ME, this test blows up -- it succeeds, but takes 5684 # about 5 minutes as the teststring grows exponentially. 5685 # Worse, since 9x/ME are not pre-emptively multitasking, 5686 # you end up with a "frozen" computer, even though with patience 5687 # the test eventually succeeds (with a max line length of 256k). 5688 # Instead, let's just punt: use the minimum linelength reported by 5689 # all of the supported platforms: 8192 (on NT/2K/XP). 5690 lt_cv_sys_max_cmd_len=8192; 5691 ;; 5692 5693 amigaos*) 5694 # On AmigaOS with pdksh, this test takes hours, literally. 5695 # So we just punt and use a minimum line length of 8192. 5696 lt_cv_sys_max_cmd_len=8192; 5697 ;; 5698 5699 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5700 # This has been around since 386BSD, at least. Likely further. 5701 if test -x /sbin/sysctl; then 5702 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5703 elif test -x /usr/sbin/sysctl; then 5704 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5705 else 5706 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5707 fi 5708 # And add a safety zone 5709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5711 ;; 5712 5713 interix*) 5714 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5715 lt_cv_sys_max_cmd_len=196608 5716 ;; 5717 5718 osf*) 5719 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5720 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5721 # nice to cause kernel panics so lets avoid the loop below. 5722 # First set a reasonable default. 5723 lt_cv_sys_max_cmd_len=16384 5724 # 5725 if test -x /sbin/sysconfig; then 5726 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5727 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5728 esac 5729 fi 5730 ;; 5731 sco3.2v5*) 5732 lt_cv_sys_max_cmd_len=102400 5733 ;; 5734 sysv5* | sco5v6* | sysv4.2uw2*) 5735 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5736 if test -n "$kargmax"; then 5737 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5738 else 5739 lt_cv_sys_max_cmd_len=32768 5740 fi 5741 ;; 5742 *) 5743 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5744 if test -n "$lt_cv_sys_max_cmd_len"; then 5745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5747 else 5748 # Make teststring a little bigger before we do anything with it. 5749 # a 1K string should be a reasonable start. 5750 for i in 1 2 3 4 5 6 7 8 ; do 5751 teststring=$teststring$teststring 5752 done 5753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5754 # If test is not a shell built-in, we'll probably end up computing a 5755 # maximum length that is only half of the actual maximum length, but 5756 # we can't tell. 5757 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5758 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5759 test $i != 17 # 1/2 MB should be enough 5760 do 5761 i=`expr $i + 1` 5762 teststring=$teststring$teststring 5763 done 5764 # Only check the string length outside the loop. 5765 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5766 teststring= 5767 # Add a significant safety factor because C++ compilers can tack on 5768 # massive amounts of additional arguments before passing them to the 5769 # linker. It appears as though 1/2 is a usable value. 5770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5771 fi 5772 ;; 5773 esac 5774 5775fi 5776 5777if test -n $lt_cv_sys_max_cmd_len ; then 5778 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5779$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5780else 5781 { $as_echo "$as_me:$LINENO: result: none" >&5 5782$as_echo "none" >&6; } 5783fi 5784max_cmd_len=$lt_cv_sys_max_cmd_len 5785 5786 5787 5788 5789 5790 5791: ${CP="cp -f"} 5792: ${MV="mv -f"} 5793: ${RM="rm -f"} 5794 5795{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5796$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5797# Try some XSI features 5798xsi_shell=no 5799( _lt_dummy="a/b/c" 5800 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5801 = c,a/b,, \ 5802 && eval 'test $(( 1 + 1 )) -eq 2 \ 5803 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5804 && xsi_shell=yes 5805{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5806$as_echo "$xsi_shell" >&6; } 5807 5808 5809{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5810$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5811lt_shell_append=no 5812( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5813 >/dev/null 2>&1 \ 5814 && lt_shell_append=yes 5815{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5816$as_echo "$lt_shell_append" >&6; } 5817 5818 5819if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5820 lt_unset=unset 5821else 5822 lt_unset=false 5823fi 5824 5825 5826 5827 5828 5829# test EBCDIC or ASCII 5830case `echo X|tr X '\101'` in 5831 A) # ASCII based system 5832 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5833 lt_SP2NL='tr \040 \012' 5834 lt_NL2SP='tr \015\012 \040\040' 5835 ;; 5836 *) # EBCDIC based system 5837 lt_SP2NL='tr \100 \n' 5838 lt_NL2SP='tr \r\n \100\100' 5839 ;; 5840esac 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5851$as_echo_n "checking for $LD option to reload object files... " >&6; } 5852if test "${lt_cv_ld_reload_flag+set}" = set; then 5853 $as_echo_n "(cached) " >&6 5854else 5855 lt_cv_ld_reload_flag='-r' 5856fi 5857{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5858$as_echo "$lt_cv_ld_reload_flag" >&6; } 5859reload_flag=$lt_cv_ld_reload_flag 5860case $reload_flag in 5861"" | " "*) ;; 5862*) reload_flag=" $reload_flag" ;; 5863esac 5864reload_cmds='$LD$reload_flag -o $output$reload_objs' 5865case $host_os in 5866 darwin*) 5867 if test "$GCC" = yes; then 5868 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5869 else 5870 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5871 fi 5872 ;; 5873esac 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883if test -n "$ac_tool_prefix"; then 5884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5885set dummy ${ac_tool_prefix}objdump; ac_word=$2 5886{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5887$as_echo_n "checking for $ac_word... " >&6; } 5888if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5889 $as_echo_n "(cached) " >&6 5890else 5891 if test -n "$OBJDUMP"; then 5892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5893else 5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5895for as_dir in $PATH 5896do 5897 IFS=$as_save_IFS 5898 test -z "$as_dir" && as_dir=. 5899 for ac_exec_ext in '' $ac_executable_extensions; do 5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5903 break 2 5904 fi 5905done 5906done 5907IFS=$as_save_IFS 5908 5909fi 5910fi 5911OBJDUMP=$ac_cv_prog_OBJDUMP 5912if test -n "$OBJDUMP"; then 5913 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5914$as_echo "$OBJDUMP" >&6; } 5915else 5916 { $as_echo "$as_me:$LINENO: result: no" >&5 5917$as_echo "no" >&6; } 5918fi 5919 5920 5921fi 5922if test -z "$ac_cv_prog_OBJDUMP"; then 5923 ac_ct_OBJDUMP=$OBJDUMP 5924 # Extract the first word of "objdump", so it can be a program name with args. 5925set dummy objdump; ac_word=$2 5926{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5927$as_echo_n "checking for $ac_word... " >&6; } 5928if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5929 $as_echo_n "(cached) " >&6 5930else 5931 if test -n "$ac_ct_OBJDUMP"; then 5932 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5933else 5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5941 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946done 5947IFS=$as_save_IFS 5948 5949fi 5950fi 5951ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5952if test -n "$ac_ct_OBJDUMP"; then 5953 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5954$as_echo "$ac_ct_OBJDUMP" >&6; } 5955else 5956 { $as_echo "$as_me:$LINENO: result: no" >&5 5957$as_echo "no" >&6; } 5958fi 5959 5960 if test "x$ac_ct_OBJDUMP" = x; then 5961 OBJDUMP="false" 5962 else 5963 case $cross_compiling:$ac_tool_warned in 5964yes:) 5965{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5966whose name does not start with the host triplet. If you think this 5967configuration is useful to you, please write to autoconf@gnu.org." >&5 5968$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5969whose name does not start with the host triplet. If you think this 5970configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5971ac_tool_warned=yes ;; 5972esac 5973 OBJDUMP=$ac_ct_OBJDUMP 5974 fi 5975else 5976 OBJDUMP="$ac_cv_prog_OBJDUMP" 5977fi 5978 5979test -z "$OBJDUMP" && OBJDUMP=objdump 5980 5981 5982 5983 5984 5985 5986{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5987$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5988if test "${lt_cv_deplibs_check_method+set}" = set; then 5989 $as_echo_n "(cached) " >&6 5990else 5991 lt_cv_file_magic_cmd='$MAGIC_CMD' 5992lt_cv_file_magic_test_file= 5993lt_cv_deplibs_check_method='unknown' 5994# Need to set the preceding variable on all platforms that support 5995# interlibrary dependencies. 5996# 'none' -- dependencies not supported. 5997# `unknown' -- same as none, but documents that we really don't know. 5998# 'pass_all' -- all dependencies passed with no checks. 5999# 'test_compile' -- check by making test program. 6000# 'file_magic [[regex]]' -- check by looking for files in library path 6001# which responds to the $file_magic_cmd with a given extended regex. 6002# If you have `file' or equivalent on your system and you're not sure 6003# whether `pass_all' will *always* work, you probably want this one. 6004 6005case $host_os in 6006aix[4-9]*) 6007 lt_cv_deplibs_check_method=pass_all 6008 ;; 6009 6010beos*) 6011 lt_cv_deplibs_check_method=pass_all 6012 ;; 6013 6014bsdi[45]*) 6015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6016 lt_cv_file_magic_cmd='/usr/bin/file -L' 6017 lt_cv_file_magic_test_file=/shlib/libc.so 6018 ;; 6019 6020cygwin*) 6021 # func_win32_libid is a shell function defined in ltmain.sh 6022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6023 lt_cv_file_magic_cmd='func_win32_libid' 6024 ;; 6025 6026mingw* | pw32*) 6027 # Base MSYS/MinGW do not provide the 'file' command needed by 6028 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6029 # unless we find 'file', for example because we are cross-compiling. 6030 if ( file / ) >/dev/null 2>&1; then 6031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6032 lt_cv_file_magic_cmd='func_win32_libid' 6033 else 6034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6035 lt_cv_file_magic_cmd='$OBJDUMP -f' 6036 fi 6037 ;; 6038 6039cegcc) 6040 # use the weaker test based on 'objdump'. See mingw*. 6041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6042 lt_cv_file_magic_cmd='$OBJDUMP -f' 6043 ;; 6044 6045darwin* | rhapsody*) 6046 lt_cv_deplibs_check_method=pass_all 6047 ;; 6048 6049freebsd* | dragonfly*) 6050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6051 case $host_cpu in 6052 i*86 ) 6053 # Not sure whether the presence of OpenBSD here was a mistake. 6054 # Let's accept both of them until this is cleared up. 6055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6056 lt_cv_file_magic_cmd=/usr/bin/file 6057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6058 ;; 6059 esac 6060 else 6061 lt_cv_deplibs_check_method=pass_all 6062 fi 6063 ;; 6064 6065gnu*) 6066 lt_cv_deplibs_check_method=pass_all 6067 ;; 6068 6069hpux10.20* | hpux11*) 6070 lt_cv_file_magic_cmd=/usr/bin/file 6071 case $host_cpu in 6072 ia64*) 6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6075 ;; 6076 hppa*64*) 6077 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]' 6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6079 ;; 6080 *) 6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6083 ;; 6084 esac 6085 ;; 6086 6087interix[3-9]*) 6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6090 ;; 6091 6092irix5* | irix6* | nonstopux*) 6093 case $LD in 6094 *-32|*"-32 ") libmagic=32-bit;; 6095 *-n32|*"-n32 ") libmagic=N32;; 6096 *-64|*"-64 ") libmagic=64-bit;; 6097 *) libmagic=never-match;; 6098 esac 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101 6102# This must be Linux ELF. 6103linux* | k*bsd*-gnu) 6104 lt_cv_deplibs_check_method=pass_all 6105 ;; 6106 6107netbsd*) 6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6110 else 6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6112 fi 6113 ;; 6114 6115newos6*) 6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6117 lt_cv_file_magic_cmd=/usr/bin/file 6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6119 ;; 6120 6121*nto* | *qnx*) 6122 lt_cv_deplibs_check_method=pass_all 6123 ;; 6124 6125openbsd*) 6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6128 else 6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6130 fi 6131 ;; 6132 6133osf3* | osf4* | osf5*) 6134 lt_cv_deplibs_check_method=pass_all 6135 ;; 6136 6137rdos*) 6138 lt_cv_deplibs_check_method=pass_all 6139 ;; 6140 6141solaris*) 6142 lt_cv_deplibs_check_method=pass_all 6143 ;; 6144 6145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6146 lt_cv_deplibs_check_method=pass_all 6147 ;; 6148 6149sysv4 | sysv4.3*) 6150 case $host_vendor in 6151 motorola) 6152 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]' 6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6154 ;; 6155 ncr) 6156 lt_cv_deplibs_check_method=pass_all 6157 ;; 6158 sequent) 6159 lt_cv_file_magic_cmd='/bin/file' 6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6161 ;; 6162 sni) 6163 lt_cv_file_magic_cmd='/bin/file' 6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6165 lt_cv_file_magic_test_file=/lib/libc.so 6166 ;; 6167 siemens) 6168 lt_cv_deplibs_check_method=pass_all 6169 ;; 6170 pc) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173 esac 6174 ;; 6175 6176tpf*) 6177 lt_cv_deplibs_check_method=pass_all 6178 ;; 6179esac 6180 6181fi 6182{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6183$as_echo "$lt_cv_deplibs_check_method" >&6; } 6184file_magic_cmd=$lt_cv_file_magic_cmd 6185deplibs_check_method=$lt_cv_deplibs_check_method 6186test -z "$deplibs_check_method" && deplibs_check_method=unknown 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199if test -n "$ac_tool_prefix"; then 6200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6201set dummy ${ac_tool_prefix}ar; ac_word=$2 6202{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6203$as_echo_n "checking for $ac_word... " >&6; } 6204if test "${ac_cv_prog_AR+set}" = set; then 6205 $as_echo_n "(cached) " >&6 6206else 6207 if test -n "$AR"; then 6208 ac_cv_prog_AR="$AR" # Let the user override the test. 6209else 6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6211for as_dir in $PATH 6212do 6213 IFS=$as_save_IFS 6214 test -z "$as_dir" && as_dir=. 6215 for ac_exec_ext in '' $ac_executable_extensions; do 6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6217 ac_cv_prog_AR="${ac_tool_prefix}ar" 6218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6219 break 2 6220 fi 6221done 6222done 6223IFS=$as_save_IFS 6224 6225fi 6226fi 6227AR=$ac_cv_prog_AR 6228if test -n "$AR"; then 6229 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6230$as_echo "$AR" >&6; } 6231else 6232 { $as_echo "$as_me:$LINENO: result: no" >&5 6233$as_echo "no" >&6; } 6234fi 6235 6236 6237fi 6238if test -z "$ac_cv_prog_AR"; then 6239 ac_ct_AR=$AR 6240 # Extract the first word of "ar", so it can be a program name with args. 6241set dummy ar; ac_word=$2 6242{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6243$as_echo_n "checking for $ac_word... " >&6; } 6244if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6245 $as_echo_n "(cached) " >&6 6246else 6247 if test -n "$ac_ct_AR"; then 6248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6249else 6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6251for as_dir in $PATH 6252do 6253 IFS=$as_save_IFS 6254 test -z "$as_dir" && as_dir=. 6255 for ac_exec_ext in '' $ac_executable_extensions; do 6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6257 ac_cv_prog_ac_ct_AR="ar" 6258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6259 break 2 6260 fi 6261done 6262done 6263IFS=$as_save_IFS 6264 6265fi 6266fi 6267ac_ct_AR=$ac_cv_prog_ac_ct_AR 6268if test -n "$ac_ct_AR"; then 6269 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6270$as_echo "$ac_ct_AR" >&6; } 6271else 6272 { $as_echo "$as_me:$LINENO: result: no" >&5 6273$as_echo "no" >&6; } 6274fi 6275 6276 if test "x$ac_ct_AR" = x; then 6277 AR="false" 6278 else 6279 case $cross_compiling:$ac_tool_warned in 6280yes:) 6281{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6282whose name does not start with the host triplet. If you think this 6283configuration is useful to you, please write to autoconf@gnu.org." >&5 6284$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6285whose name does not start with the host triplet. If you think this 6286configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6287ac_tool_warned=yes ;; 6288esac 6289 AR=$ac_ct_AR 6290 fi 6291else 6292 AR="$ac_cv_prog_AR" 6293fi 6294 6295test -z "$AR" && AR=ar 6296test -z "$AR_FLAGS" && AR_FLAGS=cru 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308if test -n "$ac_tool_prefix"; then 6309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6310set dummy ${ac_tool_prefix}strip; ac_word=$2 6311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6312$as_echo_n "checking for $ac_word... " >&6; } 6313if test "${ac_cv_prog_STRIP+set}" = set; then 6314 $as_echo_n "(cached) " >&6 6315else 6316 if test -n "$STRIP"; then 6317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6318else 6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6320for as_dir in $PATH 6321do 6322 IFS=$as_save_IFS 6323 test -z "$as_dir" && as_dir=. 6324 for ac_exec_ext in '' $ac_executable_extensions; do 6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6326 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6328 break 2 6329 fi 6330done 6331done 6332IFS=$as_save_IFS 6333 6334fi 6335fi 6336STRIP=$ac_cv_prog_STRIP 6337if test -n "$STRIP"; then 6338 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6339$as_echo "$STRIP" >&6; } 6340else 6341 { $as_echo "$as_me:$LINENO: result: no" >&5 6342$as_echo "no" >&6; } 6343fi 6344 6345 6346fi 6347if test -z "$ac_cv_prog_STRIP"; then 6348 ac_ct_STRIP=$STRIP 6349 # Extract the first word of "strip", so it can be a program name with args. 6350set dummy strip; ac_word=$2 6351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6352$as_echo_n "checking for $ac_word... " >&6; } 6353if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6354 $as_echo_n "(cached) " >&6 6355else 6356 if test -n "$ac_ct_STRIP"; then 6357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6358else 6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6360for as_dir in $PATH 6361do 6362 IFS=$as_save_IFS 6363 test -z "$as_dir" && as_dir=. 6364 for ac_exec_ext in '' $ac_executable_extensions; do 6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6366 ac_cv_prog_ac_ct_STRIP="strip" 6367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6368 break 2 6369 fi 6370done 6371done 6372IFS=$as_save_IFS 6373 6374fi 6375fi 6376ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6377if test -n "$ac_ct_STRIP"; then 6378 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6379$as_echo "$ac_ct_STRIP" >&6; } 6380else 6381 { $as_echo "$as_me:$LINENO: result: no" >&5 6382$as_echo "no" >&6; } 6383fi 6384 6385 if test "x$ac_ct_STRIP" = x; then 6386 STRIP=":" 6387 else 6388 case $cross_compiling:$ac_tool_warned in 6389yes:) 6390{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6391whose name does not start with the host triplet. If you think this 6392configuration is useful to you, please write to autoconf@gnu.org." >&5 6393$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6394whose name does not start with the host triplet. If you think this 6395configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6396ac_tool_warned=yes ;; 6397esac 6398 STRIP=$ac_ct_STRIP 6399 fi 6400else 6401 STRIP="$ac_cv_prog_STRIP" 6402fi 6403 6404test -z "$STRIP" && STRIP=: 6405 6406 6407 6408 6409 6410 6411if test -n "$ac_tool_prefix"; then 6412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6413set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6415$as_echo_n "checking for $ac_word... " >&6; } 6416if test "${ac_cv_prog_RANLIB+set}" = set; then 6417 $as_echo_n "(cached) " >&6 6418else 6419 if test -n "$RANLIB"; then 6420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6421else 6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6423for as_dir in $PATH 6424do 6425 IFS=$as_save_IFS 6426 test -z "$as_dir" && as_dir=. 6427 for ac_exec_ext in '' $ac_executable_extensions; do 6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6431 break 2 6432 fi 6433done 6434done 6435IFS=$as_save_IFS 6436 6437fi 6438fi 6439RANLIB=$ac_cv_prog_RANLIB 6440if test -n "$RANLIB"; then 6441 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6442$as_echo "$RANLIB" >&6; } 6443else 6444 { $as_echo "$as_me:$LINENO: result: no" >&5 6445$as_echo "no" >&6; } 6446fi 6447 6448 6449fi 6450if test -z "$ac_cv_prog_RANLIB"; then 6451 ac_ct_RANLIB=$RANLIB 6452 # Extract the first word of "ranlib", so it can be a program name with args. 6453set dummy ranlib; ac_word=$2 6454{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6455$as_echo_n "checking for $ac_word... " >&6; } 6456if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6457 $as_echo_n "(cached) " >&6 6458else 6459 if test -n "$ac_ct_RANLIB"; then 6460 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6461else 6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6463for as_dir in $PATH 6464do 6465 IFS=$as_save_IFS 6466 test -z "$as_dir" && as_dir=. 6467 for ac_exec_ext in '' $ac_executable_extensions; do 6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6469 ac_cv_prog_ac_ct_RANLIB="ranlib" 6470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6471 break 2 6472 fi 6473done 6474done 6475IFS=$as_save_IFS 6476 6477fi 6478fi 6479ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6480if test -n "$ac_ct_RANLIB"; then 6481 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6482$as_echo "$ac_ct_RANLIB" >&6; } 6483else 6484 { $as_echo "$as_me:$LINENO: result: no" >&5 6485$as_echo "no" >&6; } 6486fi 6487 6488 if test "x$ac_ct_RANLIB" = x; then 6489 RANLIB=":" 6490 else 6491 case $cross_compiling:$ac_tool_warned in 6492yes:) 6493{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6494whose name does not start with the host triplet. If you think this 6495configuration is useful to you, please write to autoconf@gnu.org." >&5 6496$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6497whose name does not start with the host triplet. If you think this 6498configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6499ac_tool_warned=yes ;; 6500esac 6501 RANLIB=$ac_ct_RANLIB 6502 fi 6503else 6504 RANLIB="$ac_cv_prog_RANLIB" 6505fi 6506 6507test -z "$RANLIB" && RANLIB=: 6508 6509 6510 6511 6512 6513 6514# Determine commands to create old-style static archives. 6515old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6516old_postinstall_cmds='chmod 644 $oldlib' 6517old_postuninstall_cmds= 6518 6519if test -n "$RANLIB"; then 6520 case $host_os in 6521 openbsd*) 6522 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6523 ;; 6524 *) 6525 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6526 ;; 6527 esac 6528 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6529fi 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564# If no C compiler was specified, use CC. 6565LTCC=${LTCC-"$CC"} 6566 6567# If no C compiler flags were specified, use CFLAGS. 6568LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6569 6570# Allow CC to be a program name with arguments. 6571compiler=$CC 6572 6573 6574# Check for command to grab the raw symbol name followed by C symbol from nm. 6575{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6576$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6577if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6578 $as_echo_n "(cached) " >&6 6579else 6580 6581# These are sane defaults that work on at least a few old systems. 6582# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6583 6584# Character class describing NM global symbol codes. 6585symcode='[BCDEGRST]' 6586 6587# Regexp to match symbols that can be accessed directly from C. 6588sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6589 6590# Define system-specific variables. 6591case $host_os in 6592aix*) 6593 symcode='[BCDT]' 6594 ;; 6595cygwin* | mingw* | pw32* | cegcc*) 6596 symcode='[ABCDGISTW]' 6597 ;; 6598hpux*) 6599 if test "$host_cpu" = ia64; then 6600 symcode='[ABCDEGRST]' 6601 fi 6602 ;; 6603irix* | nonstopux*) 6604 symcode='[BCDEGRST]' 6605 ;; 6606osf*) 6607 symcode='[BCDEGQRST]' 6608 ;; 6609solaris*) 6610 symcode='[BDRT]' 6611 ;; 6612sco3.2v5*) 6613 symcode='[DT]' 6614 ;; 6615sysv4.2uw2*) 6616 symcode='[DT]' 6617 ;; 6618sysv5* | sco5v6* | unixware* | OpenUNIX*) 6619 symcode='[ABDT]' 6620 ;; 6621sysv4) 6622 symcode='[DFNSTU]' 6623 ;; 6624esac 6625 6626# If we're using GNU nm, then use its standard symbol codes. 6627case `$NM -V 2>&1` in 6628*GNU* | *'with BFD'*) 6629 symcode='[ABCDGIRSTW]' ;; 6630esac 6631 6632# Transform an extracted symbol line into a proper C declaration. 6633# Some systems (esp. on ia64) link data and code symbols differently, 6634# so use this general approach. 6635lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6636 6637# Transform an extracted symbol line into symbol name and symbol address 6638lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6639lt_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'" 6640 6641# Handle CRLF in mingw tool chain 6642opt_cr= 6643case $build_os in 6644mingw*) 6645 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6646 ;; 6647esac 6648 6649# Try without a prefix underscore, then with it. 6650for ac_symprfx in "" "_"; do 6651 6652 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6653 symxfrm="\\1 $ac_symprfx\\2 \\2" 6654 6655 # Write the raw and C identifiers. 6656 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6657 # Fake it for dumpbin and say T for any non-static function 6658 # and D for any global variable. 6659 # Also find C++ and __fastcall symbols from MSVC++, 6660 # which start with @ or ?. 6661 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6662" {last_section=section; section=\$ 3};"\ 6663" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6664" \$ 0!~/External *\|/{next};"\ 6665" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6666" {if(hide[section]) next};"\ 6667" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6668" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6669" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6670" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6671" ' prfx=^$ac_symprfx" 6672 else 6673 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6674 fi 6675 6676 # Check to see that the pipe works correctly. 6677 pipe_works=no 6678 6679 rm -f conftest* 6680 cat > conftest.$ac_ext <<_LT_EOF 6681#ifdef __cplusplus 6682extern "C" { 6683#endif 6684char nm_test_var; 6685void nm_test_func(void); 6686void nm_test_func(void){} 6687#ifdef __cplusplus 6688} 6689#endif 6690int main(){nm_test_var='a';nm_test_func();return(0);} 6691_LT_EOF 6692 6693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6694 (eval $ac_compile) 2>&5 6695 ac_status=$? 6696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6697 (exit $ac_status); }; then 6698 # Now try to grab the symbols. 6699 nlist=conftest.nm 6700 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6701 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6702 ac_status=$? 6703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6704 (exit $ac_status); } && test -s "$nlist"; then 6705 # Try sorting and uniquifying the output. 6706 if sort "$nlist" | uniq > "$nlist"T; then 6707 mv -f "$nlist"T "$nlist" 6708 else 6709 rm -f "$nlist"T 6710 fi 6711 6712 # Make sure that we snagged all the symbols we need. 6713 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6714 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6715 cat <<_LT_EOF > conftest.$ac_ext 6716#ifdef __cplusplus 6717extern "C" { 6718#endif 6719 6720_LT_EOF 6721 # Now generate the symbol file. 6722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6723 6724 cat <<_LT_EOF >> conftest.$ac_ext 6725 6726/* The mapping between symbol names and symbols. */ 6727const struct { 6728 const char *name; 6729 void *address; 6730} 6731lt__PROGRAM__LTX_preloaded_symbols[] = 6732{ 6733 { "@PROGRAM@", (void *) 0 }, 6734_LT_EOF 6735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6736 cat <<\_LT_EOF >> conftest.$ac_ext 6737 {0, (void *) 0} 6738}; 6739 6740/* This works around a problem in FreeBSD linker */ 6741#ifdef FREEBSD_WORKAROUND 6742static const void *lt_preloaded_setup() { 6743 return lt__PROGRAM__LTX_preloaded_symbols; 6744} 6745#endif 6746 6747#ifdef __cplusplus 6748} 6749#endif 6750_LT_EOF 6751 # Now try linking the two files. 6752 mv conftest.$ac_objext conftstm.$ac_objext 6753 lt_save_LIBS="$LIBS" 6754 lt_save_CFLAGS="$CFLAGS" 6755 LIBS="conftstm.$ac_objext" 6756 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6758 (eval $ac_link) 2>&5 6759 ac_status=$? 6760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6761 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6762 pipe_works=yes 6763 fi 6764 LIBS="$lt_save_LIBS" 6765 CFLAGS="$lt_save_CFLAGS" 6766 else 6767 echo "cannot find nm_test_func in $nlist" >&5 6768 fi 6769 else 6770 echo "cannot find nm_test_var in $nlist" >&5 6771 fi 6772 else 6773 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6774 fi 6775 else 6776 echo "$progname: failed program was:" >&5 6777 cat conftest.$ac_ext >&5 6778 fi 6779 rm -rf conftest* conftst* 6780 6781 # Do not use the global_symbol_pipe unless it works. 6782 if test "$pipe_works" = yes; then 6783 break 6784 else 6785 lt_cv_sys_global_symbol_pipe= 6786 fi 6787done 6788 6789fi 6790 6791if test -z "$lt_cv_sys_global_symbol_pipe"; then 6792 lt_cv_sys_global_symbol_to_cdecl= 6793fi 6794if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6795 { $as_echo "$as_me:$LINENO: result: failed" >&5 6796$as_echo "failed" >&6; } 6797else 6798 { $as_echo "$as_me:$LINENO: result: ok" >&5 6799$as_echo "ok" >&6; } 6800fi 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823# Check whether --enable-libtool-lock was given. 6824if test "${enable_libtool_lock+set}" = set; then 6825 enableval=$enable_libtool_lock; 6826fi 6827 6828test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6829 6830# Some flags need to be propagated to the compiler or linker for good 6831# libtool support. 6832case $host in 6833ia64-*-hpux*) 6834 # Find out which ABI we are using. 6835 echo 'int i;' > conftest.$ac_ext 6836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6837 (eval $ac_compile) 2>&5 6838 ac_status=$? 6839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6840 (exit $ac_status); }; then 6841 case `/usr/bin/file conftest.$ac_objext` in 6842 *ELF-32*) 6843 HPUX_IA64_MODE="32" 6844 ;; 6845 *ELF-64*) 6846 HPUX_IA64_MODE="64" 6847 ;; 6848 esac 6849 fi 6850 rm -rf conftest* 6851 ;; 6852*-*-irix6*) 6853 # Find out which ABI we are using. 6854 echo '#line 6854 "configure"' > conftest.$ac_ext 6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6856 (eval $ac_compile) 2>&5 6857 ac_status=$? 6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6859 (exit $ac_status); }; then 6860 if test "$lt_cv_prog_gnu_ld" = yes; then 6861 case `/usr/bin/file conftest.$ac_objext` in 6862 *32-bit*) 6863 LD="${LD-ld} -melf32bsmip" 6864 ;; 6865 *N32*) 6866 LD="${LD-ld} -melf32bmipn32" 6867 ;; 6868 *64-bit*) 6869 LD="${LD-ld} -melf64bmip" 6870 ;; 6871 esac 6872 else 6873 case `/usr/bin/file conftest.$ac_objext` in 6874 *32-bit*) 6875 LD="${LD-ld} -32" 6876 ;; 6877 *N32*) 6878 LD="${LD-ld} -n32" 6879 ;; 6880 *64-bit*) 6881 LD="${LD-ld} -64" 6882 ;; 6883 esac 6884 fi 6885 fi 6886 rm -rf conftest* 6887 ;; 6888 6889x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6890s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6891 # Find out which ABI we are using. 6892 echo 'int i;' > conftest.$ac_ext 6893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6894 (eval $ac_compile) 2>&5 6895 ac_status=$? 6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6897 (exit $ac_status); }; then 6898 case `/usr/bin/file conftest.o` in 6899 *32-bit*) 6900 case $host in 6901 x86_64-*kfreebsd*-gnu) 6902 LD="${LD-ld} -m elf_i386_fbsd" 6903 ;; 6904 x86_64-*linux*) 6905 LD="${LD-ld} -m elf_i386" 6906 ;; 6907 ppc64-*linux*|powerpc64-*linux*) 6908 LD="${LD-ld} -m elf32ppclinux" 6909 ;; 6910 s390x-*linux*) 6911 LD="${LD-ld} -m elf_s390" 6912 ;; 6913 sparc64-*linux*) 6914 LD="${LD-ld} -m elf32_sparc" 6915 ;; 6916 esac 6917 ;; 6918 *64-bit*) 6919 case $host in 6920 x86_64-*kfreebsd*-gnu) 6921 LD="${LD-ld} -m elf_x86_64_fbsd" 6922 ;; 6923 x86_64-*linux*) 6924 LD="${LD-ld} -m elf_x86_64" 6925 ;; 6926 ppc*-*linux*|powerpc*-*linux*) 6927 LD="${LD-ld} -m elf64ppc" 6928 ;; 6929 s390*-*linux*|s390*-*tpf*) 6930 LD="${LD-ld} -m elf64_s390" 6931 ;; 6932 sparc*-*linux*) 6933 LD="${LD-ld} -m elf64_sparc" 6934 ;; 6935 esac 6936 ;; 6937 esac 6938 fi 6939 rm -rf conftest* 6940 ;; 6941 6942*-*-sco3.2v5*) 6943 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6944 SAVE_CFLAGS="$CFLAGS" 6945 CFLAGS="$CFLAGS -belf" 6946 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6947$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6948if test "${lt_cv_cc_needs_belf+set}" = set; then 6949 $as_echo_n "(cached) " >&6 6950else 6951 ac_ext=c 6952ac_cpp='$CPP $CPPFLAGS' 6953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6955ac_compiler_gnu=$ac_cv_c_compiler_gnu 6956 6957 cat >conftest.$ac_ext <<_ACEOF 6958/* confdefs.h. */ 6959_ACEOF 6960cat confdefs.h >>conftest.$ac_ext 6961cat >>conftest.$ac_ext <<_ACEOF 6962/* end confdefs.h. */ 6963 6964int 6965main () 6966{ 6967 6968 ; 6969 return 0; 6970} 6971_ACEOF 6972rm -f conftest.$ac_objext conftest$ac_exeext 6973if { (ac_try="$ac_link" 6974case "(($ac_try" in 6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6976 *) ac_try_echo=$ac_try;; 6977esac 6978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6979$as_echo "$ac_try_echo") >&5 6980 (eval "$ac_link") 2>conftest.er1 6981 ac_status=$? 6982 grep -v '^ *+' conftest.er1 >conftest.err 6983 rm -f conftest.er1 6984 cat conftest.err >&5 6985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6986 (exit $ac_status); } && { 6987 test -z "$ac_c_werror_flag" || 6988 test ! -s conftest.err 6989 } && test -s conftest$ac_exeext && { 6990 test "$cross_compiling" = yes || 6991 $as_test_x conftest$ac_exeext 6992 }; then 6993 lt_cv_cc_needs_belf=yes 6994else 6995 $as_echo "$as_me: failed program was:" >&5 6996sed 's/^/| /' conftest.$ac_ext >&5 6997 6998 lt_cv_cc_needs_belf=no 6999fi 7000 7001rm -rf conftest.dSYM 7002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7003 conftest$ac_exeext conftest.$ac_ext 7004 ac_ext=c 7005ac_cpp='$CPP $CPPFLAGS' 7006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7008ac_compiler_gnu=$ac_cv_c_compiler_gnu 7009 7010fi 7011{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7012$as_echo "$lt_cv_cc_needs_belf" >&6; } 7013 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7014 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7015 CFLAGS="$SAVE_CFLAGS" 7016 fi 7017 ;; 7018sparc*-*solaris*) 7019 # Find out which ABI we are using. 7020 echo 'int i;' > conftest.$ac_ext 7021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7022 (eval $ac_compile) 2>&5 7023 ac_status=$? 7024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7025 (exit $ac_status); }; then 7026 case `/usr/bin/file conftest.o` in 7027 *64-bit*) 7028 case $lt_cv_prog_gnu_ld in 7029 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7030 *) 7031 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7032 LD="${LD-ld} -64" 7033 fi 7034 ;; 7035 esac 7036 ;; 7037 esac 7038 fi 7039 rm -rf conftest* 7040 ;; 7041esac 7042 7043need_locks="$enable_libtool_lock" 7044 7045 7046 case $host_os in 7047 rhapsody* | darwin*) 7048 if test -n "$ac_tool_prefix"; then 7049 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7050set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7051{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7052$as_echo_n "checking for $ac_word... " >&6; } 7053if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7054 $as_echo_n "(cached) " >&6 7055else 7056 if test -n "$DSYMUTIL"; then 7057 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7058else 7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7066 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071done 7072IFS=$as_save_IFS 7073 7074fi 7075fi 7076DSYMUTIL=$ac_cv_prog_DSYMUTIL 7077if test -n "$DSYMUTIL"; then 7078 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7079$as_echo "$DSYMUTIL" >&6; } 7080else 7081 { $as_echo "$as_me:$LINENO: result: no" >&5 7082$as_echo "no" >&6; } 7083fi 7084 7085 7086fi 7087if test -z "$ac_cv_prog_DSYMUTIL"; then 7088 ac_ct_DSYMUTIL=$DSYMUTIL 7089 # Extract the first word of "dsymutil", so it can be a program name with args. 7090set dummy dsymutil; ac_word=$2 7091{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7092$as_echo_n "checking for $ac_word... " >&6; } 7093if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7094 $as_echo_n "(cached) " >&6 7095else 7096 if test -n "$ac_ct_DSYMUTIL"; then 7097 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7098else 7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7100for as_dir in $PATH 7101do 7102 IFS=$as_save_IFS 7103 test -z "$as_dir" && as_dir=. 7104 for ac_exec_ext in '' $ac_executable_extensions; do 7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7106 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7108 break 2 7109 fi 7110done 7111done 7112IFS=$as_save_IFS 7113 7114fi 7115fi 7116ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7117if test -n "$ac_ct_DSYMUTIL"; then 7118 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7119$as_echo "$ac_ct_DSYMUTIL" >&6; } 7120else 7121 { $as_echo "$as_me:$LINENO: result: no" >&5 7122$as_echo "no" >&6; } 7123fi 7124 7125 if test "x$ac_ct_DSYMUTIL" = x; then 7126 DSYMUTIL=":" 7127 else 7128 case $cross_compiling:$ac_tool_warned in 7129yes:) 7130{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7131whose name does not start with the host triplet. If you think this 7132configuration is useful to you, please write to autoconf@gnu.org." >&5 7133$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7134whose name does not start with the host triplet. If you think this 7135configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7136ac_tool_warned=yes ;; 7137esac 7138 DSYMUTIL=$ac_ct_DSYMUTIL 7139 fi 7140else 7141 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7142fi 7143 7144 if test -n "$ac_tool_prefix"; then 7145 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7146set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7147{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7148$as_echo_n "checking for $ac_word... " >&6; } 7149if test "${ac_cv_prog_NMEDIT+set}" = set; then 7150 $as_echo_n "(cached) " >&6 7151else 7152 if test -n "$NMEDIT"; then 7153 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7154else 7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7156for as_dir in $PATH 7157do 7158 IFS=$as_save_IFS 7159 test -z "$as_dir" && as_dir=. 7160 for ac_exec_ext in '' $ac_executable_extensions; do 7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7162 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7164 break 2 7165 fi 7166done 7167done 7168IFS=$as_save_IFS 7169 7170fi 7171fi 7172NMEDIT=$ac_cv_prog_NMEDIT 7173if test -n "$NMEDIT"; then 7174 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7175$as_echo "$NMEDIT" >&6; } 7176else 7177 { $as_echo "$as_me:$LINENO: result: no" >&5 7178$as_echo "no" >&6; } 7179fi 7180 7181 7182fi 7183if test -z "$ac_cv_prog_NMEDIT"; then 7184 ac_ct_NMEDIT=$NMEDIT 7185 # Extract the first word of "nmedit", so it can be a program name with args. 7186set dummy nmedit; ac_word=$2 7187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7188$as_echo_n "checking for $ac_word... " >&6; } 7189if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7190 $as_echo_n "(cached) " >&6 7191else 7192 if test -n "$ac_ct_NMEDIT"; then 7193 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7194else 7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7196for as_dir in $PATH 7197do 7198 IFS=$as_save_IFS 7199 test -z "$as_dir" && as_dir=. 7200 for ac_exec_ext in '' $ac_executable_extensions; do 7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7202 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7204 break 2 7205 fi 7206done 7207done 7208IFS=$as_save_IFS 7209 7210fi 7211fi 7212ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7213if test -n "$ac_ct_NMEDIT"; then 7214 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7215$as_echo "$ac_ct_NMEDIT" >&6; } 7216else 7217 { $as_echo "$as_me:$LINENO: result: no" >&5 7218$as_echo "no" >&6; } 7219fi 7220 7221 if test "x$ac_ct_NMEDIT" = x; then 7222 NMEDIT=":" 7223 else 7224 case $cross_compiling:$ac_tool_warned in 7225yes:) 7226{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7227whose name does not start with the host triplet. If you think this 7228configuration is useful to you, please write to autoconf@gnu.org." >&5 7229$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7230whose name does not start with the host triplet. If you think this 7231configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7232ac_tool_warned=yes ;; 7233esac 7234 NMEDIT=$ac_ct_NMEDIT 7235 fi 7236else 7237 NMEDIT="$ac_cv_prog_NMEDIT" 7238fi 7239 7240 if test -n "$ac_tool_prefix"; then 7241 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7242set dummy ${ac_tool_prefix}lipo; ac_word=$2 7243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7244$as_echo_n "checking for $ac_word... " >&6; } 7245if test "${ac_cv_prog_LIPO+set}" = set; then 7246 $as_echo_n "(cached) " >&6 7247else 7248 if test -n "$LIPO"; then 7249 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7250else 7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7252for as_dir in $PATH 7253do 7254 IFS=$as_save_IFS 7255 test -z "$as_dir" && as_dir=. 7256 for ac_exec_ext in '' $ac_executable_extensions; do 7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7258 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7260 break 2 7261 fi 7262done 7263done 7264IFS=$as_save_IFS 7265 7266fi 7267fi 7268LIPO=$ac_cv_prog_LIPO 7269if test -n "$LIPO"; then 7270 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 7271$as_echo "$LIPO" >&6; } 7272else 7273 { $as_echo "$as_me:$LINENO: result: no" >&5 7274$as_echo "no" >&6; } 7275fi 7276 7277 7278fi 7279if test -z "$ac_cv_prog_LIPO"; then 7280 ac_ct_LIPO=$LIPO 7281 # Extract the first word of "lipo", so it can be a program name with args. 7282set dummy lipo; ac_word=$2 7283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7284$as_echo_n "checking for $ac_word... " >&6; } 7285if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 7286 $as_echo_n "(cached) " >&6 7287else 7288 if test -n "$ac_ct_LIPO"; then 7289 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7290else 7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292for as_dir in $PATH 7293do 7294 IFS=$as_save_IFS 7295 test -z "$as_dir" && as_dir=. 7296 for ac_exec_ext in '' $ac_executable_extensions; do 7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7298 ac_cv_prog_ac_ct_LIPO="lipo" 7299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7300 break 2 7301 fi 7302done 7303done 7304IFS=$as_save_IFS 7305 7306fi 7307fi 7308ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7309if test -n "$ac_ct_LIPO"; then 7310 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 7311$as_echo "$ac_ct_LIPO" >&6; } 7312else 7313 { $as_echo "$as_me:$LINENO: result: no" >&5 7314$as_echo "no" >&6; } 7315fi 7316 7317 if test "x$ac_ct_LIPO" = x; then 7318 LIPO=":" 7319 else 7320 case $cross_compiling:$ac_tool_warned in 7321yes:) 7322{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7323whose name does not start with the host triplet. If you think this 7324configuration is useful to you, please write to autoconf@gnu.org." >&5 7325$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7326whose name does not start with the host triplet. If you think this 7327configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7328ac_tool_warned=yes ;; 7329esac 7330 LIPO=$ac_ct_LIPO 7331 fi 7332else 7333 LIPO="$ac_cv_prog_LIPO" 7334fi 7335 7336 if test -n "$ac_tool_prefix"; then 7337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7338set dummy ${ac_tool_prefix}otool; ac_word=$2 7339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7340$as_echo_n "checking for $ac_word... " >&6; } 7341if test "${ac_cv_prog_OTOOL+set}" = set; then 7342 $as_echo_n "(cached) " >&6 7343else 7344 if test -n "$OTOOL"; then 7345 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7346else 7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7348for as_dir in $PATH 7349do 7350 IFS=$as_save_IFS 7351 test -z "$as_dir" && as_dir=. 7352 for ac_exec_ext in '' $ac_executable_extensions; do 7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7354 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7356 break 2 7357 fi 7358done 7359done 7360IFS=$as_save_IFS 7361 7362fi 7363fi 7364OTOOL=$ac_cv_prog_OTOOL 7365if test -n "$OTOOL"; then 7366 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 7367$as_echo "$OTOOL" >&6; } 7368else 7369 { $as_echo "$as_me:$LINENO: result: no" >&5 7370$as_echo "no" >&6; } 7371fi 7372 7373 7374fi 7375if test -z "$ac_cv_prog_OTOOL"; then 7376 ac_ct_OTOOL=$OTOOL 7377 # Extract the first word of "otool", so it can be a program name with args. 7378set dummy otool; ac_word=$2 7379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7380$as_echo_n "checking for $ac_word... " >&6; } 7381if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 7382 $as_echo_n "(cached) " >&6 7383else 7384 if test -n "$ac_ct_OTOOL"; then 7385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7386else 7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7388for as_dir in $PATH 7389do 7390 IFS=$as_save_IFS 7391 test -z "$as_dir" && as_dir=. 7392 for ac_exec_ext in '' $ac_executable_extensions; do 7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7394 ac_cv_prog_ac_ct_OTOOL="otool" 7395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7396 break 2 7397 fi 7398done 7399done 7400IFS=$as_save_IFS 7401 7402fi 7403fi 7404ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7405if test -n "$ac_ct_OTOOL"; then 7406 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 7407$as_echo "$ac_ct_OTOOL" >&6; } 7408else 7409 { $as_echo "$as_me:$LINENO: result: no" >&5 7410$as_echo "no" >&6; } 7411fi 7412 7413 if test "x$ac_ct_OTOOL" = x; then 7414 OTOOL=":" 7415 else 7416 case $cross_compiling:$ac_tool_warned in 7417yes:) 7418{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7419whose name does not start with the host triplet. If you think this 7420configuration is useful to you, please write to autoconf@gnu.org." >&5 7421$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7422whose name does not start with the host triplet. If you think this 7423configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7424ac_tool_warned=yes ;; 7425esac 7426 OTOOL=$ac_ct_OTOOL 7427 fi 7428else 7429 OTOOL="$ac_cv_prog_OTOOL" 7430fi 7431 7432 if test -n "$ac_tool_prefix"; then 7433 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7434set dummy ${ac_tool_prefix}otool64; ac_word=$2 7435{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7436$as_echo_n "checking for $ac_word... " >&6; } 7437if test "${ac_cv_prog_OTOOL64+set}" = set; then 7438 $as_echo_n "(cached) " >&6 7439else 7440 if test -n "$OTOOL64"; then 7441 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7442else 7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7444for as_dir in $PATH 7445do 7446 IFS=$as_save_IFS 7447 test -z "$as_dir" && as_dir=. 7448 for ac_exec_ext in '' $ac_executable_extensions; do 7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7450 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7452 break 2 7453 fi 7454done 7455done 7456IFS=$as_save_IFS 7457 7458fi 7459fi 7460OTOOL64=$ac_cv_prog_OTOOL64 7461if test -n "$OTOOL64"; then 7462 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 7463$as_echo "$OTOOL64" >&6; } 7464else 7465 { $as_echo "$as_me:$LINENO: result: no" >&5 7466$as_echo "no" >&6; } 7467fi 7468 7469 7470fi 7471if test -z "$ac_cv_prog_OTOOL64"; then 7472 ac_ct_OTOOL64=$OTOOL64 7473 # Extract the first word of "otool64", so it can be a program name with args. 7474set dummy otool64; ac_word=$2 7475{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7476$as_echo_n "checking for $ac_word... " >&6; } 7477if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7478 $as_echo_n "(cached) " >&6 7479else 7480 if test -n "$ac_ct_OTOOL64"; then 7481 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7482else 7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7484for as_dir in $PATH 7485do 7486 IFS=$as_save_IFS 7487 test -z "$as_dir" && as_dir=. 7488 for ac_exec_ext in '' $ac_executable_extensions; do 7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7490 ac_cv_prog_ac_ct_OTOOL64="otool64" 7491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7492 break 2 7493 fi 7494done 7495done 7496IFS=$as_save_IFS 7497 7498fi 7499fi 7500ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7501if test -n "$ac_ct_OTOOL64"; then 7502 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7503$as_echo "$ac_ct_OTOOL64" >&6; } 7504else 7505 { $as_echo "$as_me:$LINENO: result: no" >&5 7506$as_echo "no" >&6; } 7507fi 7508 7509 if test "x$ac_ct_OTOOL64" = x; then 7510 OTOOL64=":" 7511 else 7512 case $cross_compiling:$ac_tool_warned in 7513yes:) 7514{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7515whose name does not start with the host triplet. If you think this 7516configuration is useful to you, please write to autoconf@gnu.org." >&5 7517$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7518whose name does not start with the host triplet. If you think this 7519configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7520ac_tool_warned=yes ;; 7521esac 7522 OTOOL64=$ac_ct_OTOOL64 7523 fi 7524else 7525 OTOOL64="$ac_cv_prog_OTOOL64" 7526fi 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7555$as_echo_n "checking for -single_module linker flag... " >&6; } 7556if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7557 $as_echo_n "(cached) " >&6 7558else 7559 lt_cv_apple_cc_single_mod=no 7560 if test -z "${LT_MULTI_MODULE}"; then 7561 # By default we will add the -single_module flag. You can override 7562 # by either setting the environment variable LT_MULTI_MODULE 7563 # non-empty at configure time, or by adding -multi_module to the 7564 # link flags. 7565 rm -rf libconftest.dylib* 7566 echo "int foo(void){return 1;}" > conftest.c 7567 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7568-dynamiclib -Wl,-single_module conftest.c" >&5 7569 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7570 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7571 _lt_result=$? 7572 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7573 lt_cv_apple_cc_single_mod=yes 7574 else 7575 cat conftest.err >&5 7576 fi 7577 rm -rf libconftest.dylib* 7578 rm -f conftest.* 7579 fi 7580fi 7581{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7582$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7583 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7584$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7585if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7586 $as_echo_n "(cached) " >&6 7587else 7588 lt_cv_ld_exported_symbols_list=no 7589 save_LDFLAGS=$LDFLAGS 7590 echo "_main" > conftest.sym 7591 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7592 cat >conftest.$ac_ext <<_ACEOF 7593/* confdefs.h. */ 7594_ACEOF 7595cat confdefs.h >>conftest.$ac_ext 7596cat >>conftest.$ac_ext <<_ACEOF 7597/* end confdefs.h. */ 7598 7599int 7600main () 7601{ 7602 7603 ; 7604 return 0; 7605} 7606_ACEOF 7607rm -f conftest.$ac_objext conftest$ac_exeext 7608if { (ac_try="$ac_link" 7609case "(($ac_try" in 7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7611 *) ac_try_echo=$ac_try;; 7612esac 7613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7614$as_echo "$ac_try_echo") >&5 7615 (eval "$ac_link") 2>conftest.er1 7616 ac_status=$? 7617 grep -v '^ *+' conftest.er1 >conftest.err 7618 rm -f conftest.er1 7619 cat conftest.err >&5 7620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7621 (exit $ac_status); } && { 7622 test -z "$ac_c_werror_flag" || 7623 test ! -s conftest.err 7624 } && test -s conftest$ac_exeext && { 7625 test "$cross_compiling" = yes || 7626 $as_test_x conftest$ac_exeext 7627 }; then 7628 lt_cv_ld_exported_symbols_list=yes 7629else 7630 $as_echo "$as_me: failed program was:" >&5 7631sed 's/^/| /' conftest.$ac_ext >&5 7632 7633 lt_cv_ld_exported_symbols_list=no 7634fi 7635 7636rm -rf conftest.dSYM 7637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7638 conftest$ac_exeext conftest.$ac_ext 7639 LDFLAGS="$save_LDFLAGS" 7640 7641fi 7642{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7643$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7644 case $host_os in 7645 rhapsody* | darwin1.[012]) 7646 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7647 darwin1.*) 7648 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7649 darwin*) # darwin 5.x on 7650 # if running on 10.5 or later, the deployment target defaults 7651 # to the OS version, if on x86, and 10.4, the deployment 7652 # target defaults to 10.4. Don't you love it? 7653 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7654 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7655 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7656 10.[012]*) 7657 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7658 10.*) 7659 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7660 esac 7661 ;; 7662 esac 7663 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7664 _lt_dar_single_mod='$single_module' 7665 fi 7666 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7667 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7668 else 7669 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7670 fi 7671 if test "$DSYMUTIL" != ":"; then 7672 _lt_dsymutil='~$DSYMUTIL $lib || :' 7673 else 7674 _lt_dsymutil= 7675 fi 7676 ;; 7677 esac 7678 7679 7680for ac_header in dlfcn.h 7681do 7682as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7683{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7684$as_echo_n "checking for $ac_header... " >&6; } 7685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7686 $as_echo_n "(cached) " >&6 7687else 7688 cat >conftest.$ac_ext <<_ACEOF 7689/* confdefs.h. */ 7690_ACEOF 7691cat confdefs.h >>conftest.$ac_ext 7692cat >>conftest.$ac_ext <<_ACEOF 7693/* end confdefs.h. */ 7694$ac_includes_default 7695 7696#include <$ac_header> 7697_ACEOF 7698rm -f conftest.$ac_objext 7699if { (ac_try="$ac_compile" 7700case "(($ac_try" in 7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7702 *) ac_try_echo=$ac_try;; 7703esac 7704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7705$as_echo "$ac_try_echo") >&5 7706 (eval "$ac_compile") 2>conftest.er1 7707 ac_status=$? 7708 grep -v '^ *+' conftest.er1 >conftest.err 7709 rm -f conftest.er1 7710 cat conftest.err >&5 7711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7712 (exit $ac_status); } && { 7713 test -z "$ac_c_werror_flag" || 7714 test ! -s conftest.err 7715 } && test -s conftest.$ac_objext; then 7716 eval "$as_ac_Header=yes" 7717else 7718 $as_echo "$as_me: failed program was:" >&5 7719sed 's/^/| /' conftest.$ac_ext >&5 7720 7721 eval "$as_ac_Header=no" 7722fi 7723 7724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7725fi 7726ac_res=`eval 'as_val=${'$as_ac_Header'} 7727 $as_echo "$as_val"'` 7728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7729$as_echo "$ac_res" >&6; } 7730if test `eval 'as_val=${'$as_ac_Header'} 7731 $as_echo "$as_val"'` = yes; then 7732 cat >>confdefs.h <<_ACEOF 7733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7734_ACEOF 7735 7736fi 7737 7738done 7739 7740 7741 7742# Set options 7743 7744 7745 7746 enable_dlopen=no 7747 7748 7749 7750 # Check whether --enable-shared was given. 7751if test "${enable_shared+set}" = set; then 7752 enableval=$enable_shared; p=${PACKAGE-default} 7753 case $enableval in 7754 yes) enable_shared=yes ;; 7755 no) enable_shared=no ;; 7756 *) 7757 enable_shared=no 7758 # Look at the argument we got. We use all the common list separators. 7759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7760 for pkg in $enableval; do 7761 IFS="$lt_save_ifs" 7762 if test "X$pkg" = "X$p"; then 7763 enable_shared=yes 7764 fi 7765 done 7766 IFS="$lt_save_ifs" 7767 ;; 7768 esac 7769else 7770 enable_shared=yes 7771fi 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 # Check whether --enable-static was given. 7782if test "${enable_static+set}" = set; then 7783 enableval=$enable_static; p=${PACKAGE-default} 7784 case $enableval in 7785 yes) enable_static=yes ;; 7786 no) enable_static=no ;; 7787 *) 7788 enable_static=no 7789 # Look at the argument we got. We use all the common list separators. 7790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7791 for pkg in $enableval; do 7792 IFS="$lt_save_ifs" 7793 if test "X$pkg" = "X$p"; then 7794 enable_static=yes 7795 fi 7796 done 7797 IFS="$lt_save_ifs" 7798 ;; 7799 esac 7800else 7801 enable_static=yes 7802fi 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813# Check whether --with-pic was given. 7814if test "${with_pic+set}" = set; then 7815 withval=$with_pic; pic_mode="$withval" 7816else 7817 pic_mode=default 7818fi 7819 7820 7821test -z "$pic_mode" && pic_mode=default 7822 7823 7824 7825 7826 7827 7828 7829 # Check whether --enable-fast-install was given. 7830if test "${enable_fast_install+set}" = set; then 7831 enableval=$enable_fast_install; p=${PACKAGE-default} 7832 case $enableval in 7833 yes) enable_fast_install=yes ;; 7834 no) enable_fast_install=no ;; 7835 *) 7836 enable_fast_install=no 7837 # Look at the argument we got. We use all the common list separators. 7838 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7839 for pkg in $enableval; do 7840 IFS="$lt_save_ifs" 7841 if test "X$pkg" = "X$p"; then 7842 enable_fast_install=yes 7843 fi 7844 done 7845 IFS="$lt_save_ifs" 7846 ;; 7847 esac 7848else 7849 enable_fast_install=yes 7850fi 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862# This can be used to rebuild libtool when needed 7863LIBTOOL_DEPS="$ltmain" 7864 7865# Always use our own libtool. 7866LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892test -z "$LN_S" && LN_S="ln -s" 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907if test -n "${ZSH_VERSION+set}" ; then 7908 setopt NO_GLOB_SUBST 7909fi 7910 7911{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7912$as_echo_n "checking for objdir... " >&6; } 7913if test "${lt_cv_objdir+set}" = set; then 7914 $as_echo_n "(cached) " >&6 7915else 7916 rm -f .libs 2>/dev/null 7917mkdir .libs 2>/dev/null 7918if test -d .libs; then 7919 lt_cv_objdir=.libs 7920else 7921 # MS-DOS does not allow filenames that begin with a dot. 7922 lt_cv_objdir=_libs 7923fi 7924rmdir .libs 2>/dev/null 7925fi 7926{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7927$as_echo "$lt_cv_objdir" >&6; } 7928objdir=$lt_cv_objdir 7929 7930 7931 7932 7933 7934cat >>confdefs.h <<_ACEOF 7935#define LT_OBJDIR "$lt_cv_objdir/" 7936_ACEOF 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954case $host_os in 7955aix3*) 7956 # AIX sometimes has problems with the GCC collect2 program. For some 7957 # reason, if we set the COLLECT_NAMES environment variable, the problems 7958 # vanish in a puff of smoke. 7959 if test "X${COLLECT_NAMES+set}" != Xset; then 7960 COLLECT_NAMES= 7961 export COLLECT_NAMES 7962 fi 7963 ;; 7964esac 7965 7966# Sed substitution that helps us do robust quoting. It backslashifies 7967# metacharacters that are still active within double-quoted strings. 7968sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7969 7970# Same as above, but do not quote variable references. 7971double_quote_subst='s/\(["`\\]\)/\\\1/g' 7972 7973# Sed substitution to delay expansion of an escaped shell variable in a 7974# double_quote_subst'ed string. 7975delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7976 7977# Sed substitution to delay expansion of an escaped single quote. 7978delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7979 7980# Sed substitution to avoid accidental globbing in evaled expressions 7981no_glob_subst='s/\*/\\\*/g' 7982 7983# Global variables: 7984ofile=libtool 7985can_build_shared=yes 7986 7987# All known linkers require a `.a' archive for static linking (except MSVC, 7988# which needs '.lib'). 7989libext=a 7990 7991with_gnu_ld="$lt_cv_prog_gnu_ld" 7992 7993old_CC="$CC" 7994old_CFLAGS="$CFLAGS" 7995 7996# Set sane defaults for various variables 7997test -z "$CC" && CC=cc 7998test -z "$LTCC" && LTCC=$CC 7999test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8000test -z "$LD" && LD=ld 8001test -z "$ac_objext" && ac_objext=o 8002 8003for cc_temp in $compiler""; do 8004 case $cc_temp in 8005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8007 \-*) ;; 8008 *) break;; 8009 esac 8010done 8011cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8012 8013 8014# Only perform the check for file, if the check method requires it 8015test -z "$MAGIC_CMD" && MAGIC_CMD=file 8016case $deplibs_check_method in 8017file_magic*) 8018 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8019 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8020$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8021if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8022 $as_echo_n "(cached) " >&6 8023else 8024 case $MAGIC_CMD in 8025[\\/*] | ?:[\\/]*) 8026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8027 ;; 8028*) 8029 lt_save_MAGIC_CMD="$MAGIC_CMD" 8030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8032 for ac_dir in $ac_dummy; do 8033 IFS="$lt_save_ifs" 8034 test -z "$ac_dir" && ac_dir=. 8035 if test -f $ac_dir/${ac_tool_prefix}file; then 8036 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8037 if test -n "$file_magic_test_file"; then 8038 case $deplibs_check_method in 8039 "file_magic "*) 8040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8043 $EGREP "$file_magic_regex" > /dev/null; then 8044 : 8045 else 8046 cat <<_LT_EOF 1>&2 8047 8048*** Warning: the command libtool uses to detect shared libraries, 8049*** $file_magic_cmd, produces output that libtool cannot recognize. 8050*** The result is that libtool may fail to recognize shared libraries 8051*** as such. This will affect the creation of libtool libraries that 8052*** depend on shared libraries, but programs linked with such libtool 8053*** libraries will work regardless of this problem. Nevertheless, you 8054*** may want to report the problem to your system manager and/or to 8055*** bug-libtool@gnu.org 8056 8057_LT_EOF 8058 fi ;; 8059 esac 8060 fi 8061 break 8062 fi 8063 done 8064 IFS="$lt_save_ifs" 8065 MAGIC_CMD="$lt_save_MAGIC_CMD" 8066 ;; 8067esac 8068fi 8069 8070MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8071if test -n "$MAGIC_CMD"; then 8072 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8073$as_echo "$MAGIC_CMD" >&6; } 8074else 8075 { $as_echo "$as_me:$LINENO: result: no" >&5 8076$as_echo "no" >&6; } 8077fi 8078 8079 8080 8081 8082 8083if test -z "$lt_cv_path_MAGIC_CMD"; then 8084 if test -n "$ac_tool_prefix"; then 8085 { $as_echo "$as_me:$LINENO: checking for file" >&5 8086$as_echo_n "checking for file... " >&6; } 8087if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8088 $as_echo_n "(cached) " >&6 8089else 8090 case $MAGIC_CMD in 8091[\\/*] | ?:[\\/]*) 8092 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8093 ;; 8094*) 8095 lt_save_MAGIC_CMD="$MAGIC_CMD" 8096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8097 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8098 for ac_dir in $ac_dummy; do 8099 IFS="$lt_save_ifs" 8100 test -z "$ac_dir" && ac_dir=. 8101 if test -f $ac_dir/file; then 8102 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8103 if test -n "$file_magic_test_file"; then 8104 case $deplibs_check_method in 8105 "file_magic "*) 8106 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8108 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8109 $EGREP "$file_magic_regex" > /dev/null; then 8110 : 8111 else 8112 cat <<_LT_EOF 1>&2 8113 8114*** Warning: the command libtool uses to detect shared libraries, 8115*** $file_magic_cmd, produces output that libtool cannot recognize. 8116*** The result is that libtool may fail to recognize shared libraries 8117*** as such. This will affect the creation of libtool libraries that 8118*** depend on shared libraries, but programs linked with such libtool 8119*** libraries will work regardless of this problem. Nevertheless, you 8120*** may want to report the problem to your system manager and/or to 8121*** bug-libtool@gnu.org 8122 8123_LT_EOF 8124 fi ;; 8125 esac 8126 fi 8127 break 8128 fi 8129 done 8130 IFS="$lt_save_ifs" 8131 MAGIC_CMD="$lt_save_MAGIC_CMD" 8132 ;; 8133esac 8134fi 8135 8136MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8137if test -n "$MAGIC_CMD"; then 8138 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8139$as_echo "$MAGIC_CMD" >&6; } 8140else 8141 { $as_echo "$as_me:$LINENO: result: no" >&5 8142$as_echo "no" >&6; } 8143fi 8144 8145 8146 else 8147 MAGIC_CMD=: 8148 fi 8149fi 8150 8151 fi 8152 ;; 8153esac 8154 8155# Use C for the default configuration in the libtool script 8156 8157lt_save_CC="$CC" 8158ac_ext=c 8159ac_cpp='$CPP $CPPFLAGS' 8160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8162ac_compiler_gnu=$ac_cv_c_compiler_gnu 8163 8164 8165# Source file extension for C test sources. 8166ac_ext=c 8167 8168# Object file extension for compiled C test sources. 8169objext=o 8170objext=$objext 8171 8172# Code to be used in simple compile tests 8173lt_simple_compile_test_code="int some_variable = 0;" 8174 8175# Code to be used in simple link tests 8176lt_simple_link_test_code='int main(){return(0);}' 8177 8178 8179 8180 8181 8182 8183 8184# If no C compiler was specified, use CC. 8185LTCC=${LTCC-"$CC"} 8186 8187# If no C compiler flags were specified, use CFLAGS. 8188LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8189 8190# Allow CC to be a program name with arguments. 8191compiler=$CC 8192 8193# Save the default compiler, since it gets overwritten when the other 8194# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8195compiler_DEFAULT=$CC 8196 8197# save warnings/boilerplate of simple test code 8198ac_outfile=conftest.$ac_objext 8199echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8200eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8201_lt_compiler_boilerplate=`cat conftest.err` 8202$RM conftest* 8203 8204ac_outfile=conftest.$ac_objext 8205echo "$lt_simple_link_test_code" >conftest.$ac_ext 8206eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8207_lt_linker_boilerplate=`cat conftest.err` 8208$RM -r conftest* 8209 8210 8211if test -n "$compiler"; then 8212 8213lt_prog_compiler_no_builtin_flag= 8214 8215if test "$GCC" = yes; then 8216 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8217 8218 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8219$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8220if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8221 $as_echo_n "(cached) " >&6 8222else 8223 lt_cv_prog_compiler_rtti_exceptions=no 8224 ac_outfile=conftest.$ac_objext 8225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8226 lt_compiler_flag="-fno-rtti -fno-exceptions" 8227 # Insert the option either (1) after the last *FLAGS variable, or 8228 # (2) before a word containing "conftest.", or (3) at the end. 8229 # Note that $ac_compile itself does not contain backslashes and begins 8230 # with a dollar sign (not a hyphen), so the echo should work correctly. 8231 # The option is referenced via a variable to avoid confusing sed. 8232 lt_compile=`echo "$ac_compile" | $SED \ 8233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8235 -e 's:$: $lt_compiler_flag:'` 8236 (eval echo "\"\$as_me:8236: $lt_compile\"" >&5) 8237 (eval "$lt_compile" 2>conftest.err) 8238 ac_status=$? 8239 cat conftest.err >&5 8240 echo "$as_me:8240: \$? = $ac_status" >&5 8241 if (exit $ac_status) && test -s "$ac_outfile"; then 8242 # The compiler can only warn and ignore the option if not recognized 8243 # So say no if there are warnings other than the usual output. 8244 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8247 lt_cv_prog_compiler_rtti_exceptions=yes 8248 fi 8249 fi 8250 $RM conftest* 8251 8252fi 8253{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8254$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8255 8256if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8257 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8258else 8259 : 8260fi 8261 8262fi 8263 8264 8265 8266 8267 8268 8269 lt_prog_compiler_wl= 8270lt_prog_compiler_pic= 8271lt_prog_compiler_static= 8272 8273{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8274$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8275 8276 if test "$GCC" = yes; then 8277 lt_prog_compiler_wl='-Wl,' 8278 lt_prog_compiler_static='-static' 8279 8280 case $host_os in 8281 aix*) 8282 # All AIX code is PIC. 8283 if test "$host_cpu" = ia64; then 8284 # AIX 5 now supports IA64 processor 8285 lt_prog_compiler_static='-Bstatic' 8286 fi 8287 ;; 8288 8289 amigaos*) 8290 case $host_cpu in 8291 powerpc) 8292 # see comment about AmigaOS4 .so support 8293 lt_prog_compiler_pic='-fPIC' 8294 ;; 8295 m68k) 8296 # FIXME: we need at least 68020 code to build shared libraries, but 8297 # adding the `-m68020' flag to GCC prevents building anything better, 8298 # like `-m68040'. 8299 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8300 ;; 8301 esac 8302 ;; 8303 8304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8305 # PIC is the default for these OSes. 8306 ;; 8307 8308 mingw* | cygwin* | pw32* | os2* | cegcc*) 8309 # This hack is so that the source file can tell whether it is being 8310 # built for inclusion in a dll (and should export symbols for example). 8311 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8312 # (--disable-auto-import) libraries 8313 lt_prog_compiler_pic='-DDLL_EXPORT' 8314 ;; 8315 8316 darwin* | rhapsody*) 8317 # PIC is the default on this platform 8318 # Common symbols not allowed in MH_DYLIB files 8319 lt_prog_compiler_pic='-fno-common' 8320 ;; 8321 8322 hpux*) 8323 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8324 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8325 # sets the default TLS model and affects inlining. 8326 case $host_cpu in 8327 hppa*64*) 8328 # +Z the default 8329 ;; 8330 *) 8331 lt_prog_compiler_pic='-fPIC' 8332 ;; 8333 esac 8334 ;; 8335 8336 interix[3-9]*) 8337 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8338 # Instead, we relocate shared libraries at runtime. 8339 ;; 8340 8341 msdosdjgpp*) 8342 # Just because we use GCC doesn't mean we suddenly get shared libraries 8343 # on systems that don't support them. 8344 lt_prog_compiler_can_build_shared=no 8345 enable_shared=no 8346 ;; 8347 8348 *nto* | *qnx*) 8349 # QNX uses GNU C++, but need to define -shared option too, otherwise 8350 # it will coredump. 8351 lt_prog_compiler_pic='-fPIC -shared' 8352 ;; 8353 8354 sysv4*MP*) 8355 if test -d /usr/nec; then 8356 lt_prog_compiler_pic=-Kconform_pic 8357 fi 8358 ;; 8359 8360 *) 8361 lt_prog_compiler_pic='-fPIC' 8362 ;; 8363 esac 8364 else 8365 # PORTME Check for flag to pass linker flags through the system compiler. 8366 case $host_os in 8367 aix*) 8368 lt_prog_compiler_wl='-Wl,' 8369 if test "$host_cpu" = ia64; then 8370 # AIX 5 now supports IA64 processor 8371 lt_prog_compiler_static='-Bstatic' 8372 else 8373 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8374 fi 8375 ;; 8376 8377 mingw* | cygwin* | pw32* | os2* | cegcc*) 8378 # This hack is so that the source file can tell whether it is being 8379 # built for inclusion in a dll (and should export symbols for example). 8380 lt_prog_compiler_pic='-DDLL_EXPORT' 8381 ;; 8382 8383 hpux9* | hpux10* | hpux11*) 8384 lt_prog_compiler_wl='-Wl,' 8385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8386 # not for PA HP-UX. 8387 case $host_cpu in 8388 hppa*64*|ia64*) 8389 # +Z the default 8390 ;; 8391 *) 8392 lt_prog_compiler_pic='+Z' 8393 ;; 8394 esac 8395 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8396 lt_prog_compiler_static='${wl}-a ${wl}archive' 8397 ;; 8398 8399 irix5* | irix6* | nonstopux*) 8400 lt_prog_compiler_wl='-Wl,' 8401 # PIC (with -KPIC) is the default. 8402 lt_prog_compiler_static='-non_shared' 8403 ;; 8404 8405 linux* | k*bsd*-gnu) 8406 case $cc_basename in 8407 # old Intel for x86_64 which still supported -KPIC. 8408 ecc*) 8409 lt_prog_compiler_wl='-Wl,' 8410 lt_prog_compiler_pic='-KPIC' 8411 lt_prog_compiler_static='-static' 8412 ;; 8413 # icc used to be incompatible with GCC. 8414 # ICC 10 doesn't accept -KPIC any more. 8415 icc* | ifort*) 8416 lt_prog_compiler_wl='-Wl,' 8417 lt_prog_compiler_pic='-fPIC' 8418 lt_prog_compiler_static='-static' 8419 ;; 8420 # Lahey Fortran 8.1. 8421 lf95*) 8422 lt_prog_compiler_wl='-Wl,' 8423 lt_prog_compiler_pic='--shared' 8424 lt_prog_compiler_static='--static' 8425 ;; 8426 pgcc* | pgf77* | pgf90* | pgf95*) 8427 # Portland Group compilers (*not* the Pentium gcc compiler, 8428 # which looks to be a dead project) 8429 lt_prog_compiler_wl='-Wl,' 8430 lt_prog_compiler_pic='-fpic' 8431 lt_prog_compiler_static='-Bstatic' 8432 ;; 8433 ccc*) 8434 lt_prog_compiler_wl='-Wl,' 8435 # All Alpha code is PIC. 8436 lt_prog_compiler_static='-non_shared' 8437 ;; 8438 xl*) 8439 # IBM XL C 8.0/Fortran 10.1 on PPC 8440 lt_prog_compiler_wl='-Wl,' 8441 lt_prog_compiler_pic='-qpic' 8442 lt_prog_compiler_static='-qstaticlink' 8443 ;; 8444 *) 8445 case `$CC -V 2>&1 | sed 5q` in 8446 *Sun\ C*) 8447 # Sun C 5.9 8448 lt_prog_compiler_pic='-KPIC' 8449 lt_prog_compiler_static='-Bstatic' 8450 lt_prog_compiler_wl='-Wl,' 8451 ;; 8452 *Sun\ F*) 8453 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8454 lt_prog_compiler_pic='-KPIC' 8455 lt_prog_compiler_static='-Bstatic' 8456 lt_prog_compiler_wl='' 8457 ;; 8458 esac 8459 ;; 8460 esac 8461 ;; 8462 8463 newsos6) 8464 lt_prog_compiler_pic='-KPIC' 8465 lt_prog_compiler_static='-Bstatic' 8466 ;; 8467 8468 *nto* | *qnx*) 8469 # QNX uses GNU C++, but need to define -shared option too, otherwise 8470 # it will coredump. 8471 lt_prog_compiler_pic='-fPIC -shared' 8472 ;; 8473 8474 osf3* | osf4* | osf5*) 8475 lt_prog_compiler_wl='-Wl,' 8476 # All OSF/1 code is PIC. 8477 lt_prog_compiler_static='-non_shared' 8478 ;; 8479 8480 rdos*) 8481 lt_prog_compiler_static='-non_shared' 8482 ;; 8483 8484 solaris*) 8485 lt_prog_compiler_pic='-KPIC' 8486 lt_prog_compiler_static='-Bstatic' 8487 case $cc_basename in 8488 f77* | f90* | f95*) 8489 lt_prog_compiler_wl='-Qoption ld ';; 8490 *) 8491 lt_prog_compiler_wl='-Wl,';; 8492 esac 8493 ;; 8494 8495 sunos4*) 8496 lt_prog_compiler_wl='-Qoption ld ' 8497 lt_prog_compiler_pic='-PIC' 8498 lt_prog_compiler_static='-Bstatic' 8499 ;; 8500 8501 sysv4 | sysv4.2uw2* | sysv4.3*) 8502 lt_prog_compiler_wl='-Wl,' 8503 lt_prog_compiler_pic='-KPIC' 8504 lt_prog_compiler_static='-Bstatic' 8505 ;; 8506 8507 sysv4*MP*) 8508 if test -d /usr/nec ;then 8509 lt_prog_compiler_pic='-Kconform_pic' 8510 lt_prog_compiler_static='-Bstatic' 8511 fi 8512 ;; 8513 8514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8515 lt_prog_compiler_wl='-Wl,' 8516 lt_prog_compiler_pic='-KPIC' 8517 lt_prog_compiler_static='-Bstatic' 8518 ;; 8519 8520 unicos*) 8521 lt_prog_compiler_wl='-Wl,' 8522 lt_prog_compiler_can_build_shared=no 8523 ;; 8524 8525 uts4*) 8526 lt_prog_compiler_pic='-pic' 8527 lt_prog_compiler_static='-Bstatic' 8528 ;; 8529 8530 *) 8531 lt_prog_compiler_can_build_shared=no 8532 ;; 8533 esac 8534 fi 8535 8536case $host_os in 8537 # For platforms which do not support PIC, -DPIC is meaningless: 8538 *djgpp*) 8539 lt_prog_compiler_pic= 8540 ;; 8541 *) 8542 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8543 ;; 8544esac 8545{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8546$as_echo "$lt_prog_compiler_pic" >&6; } 8547 8548 8549 8550 8551 8552 8553# 8554# Check to make sure the PIC flag actually works. 8555# 8556if test -n "$lt_prog_compiler_pic"; then 8557 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8558$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8559if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8560 $as_echo_n "(cached) " >&6 8561else 8562 lt_cv_prog_compiler_pic_works=no 8563 ac_outfile=conftest.$ac_objext 8564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8565 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8566 # Insert the option either (1) after the last *FLAGS variable, or 8567 # (2) before a word containing "conftest.", or (3) at the end. 8568 # Note that $ac_compile itself does not contain backslashes and begins 8569 # with a dollar sign (not a hyphen), so the echo should work correctly. 8570 # The option is referenced via a variable to avoid confusing sed. 8571 lt_compile=`echo "$ac_compile" | $SED \ 8572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8574 -e 's:$: $lt_compiler_flag:'` 8575 (eval echo "\"\$as_me:8575: $lt_compile\"" >&5) 8576 (eval "$lt_compile" 2>conftest.err) 8577 ac_status=$? 8578 cat conftest.err >&5 8579 echo "$as_me:8579: \$? = $ac_status" >&5 8580 if (exit $ac_status) && test -s "$ac_outfile"; then 8581 # The compiler can only warn and ignore the option if not recognized 8582 # So say no if there are warnings other than the usual output. 8583 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8586 lt_cv_prog_compiler_pic_works=yes 8587 fi 8588 fi 8589 $RM conftest* 8590 8591fi 8592{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8593$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8594 8595if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8596 case $lt_prog_compiler_pic in 8597 "" | " "*) ;; 8598 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8599 esac 8600else 8601 lt_prog_compiler_pic= 8602 lt_prog_compiler_can_build_shared=no 8603fi 8604 8605fi 8606 8607 8608 8609 8610 8611 8612# 8613# Check to make sure the static flag actually works. 8614# 8615wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8616{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8617$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8618if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8619 $as_echo_n "(cached) " >&6 8620else 8621 lt_cv_prog_compiler_static_works=no 8622 save_LDFLAGS="$LDFLAGS" 8623 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8624 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8625 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8626 # The linker can only warn and ignore the option if not recognized 8627 # So say no if there are warnings 8628 if test -s conftest.err; then 8629 # Append any errors to the config.log. 8630 cat conftest.err 1>&5 8631 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8633 if diff conftest.exp conftest.er2 >/dev/null; then 8634 lt_cv_prog_compiler_static_works=yes 8635 fi 8636 else 8637 lt_cv_prog_compiler_static_works=yes 8638 fi 8639 fi 8640 $RM -r conftest* 8641 LDFLAGS="$save_LDFLAGS" 8642 8643fi 8644{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8645$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8646 8647if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8648 : 8649else 8650 lt_prog_compiler_static= 8651fi 8652 8653 8654 8655 8656 8657 8658 8659 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8660$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8661if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8662 $as_echo_n "(cached) " >&6 8663else 8664 lt_cv_prog_compiler_c_o=no 8665 $RM -r conftest 2>/dev/null 8666 mkdir conftest 8667 cd conftest 8668 mkdir out 8669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8670 8671 lt_compiler_flag="-o out/conftest2.$ac_objext" 8672 # Insert the option either (1) after the last *FLAGS variable, or 8673 # (2) before a word containing "conftest.", or (3) at the end. 8674 # Note that $ac_compile itself does not contain backslashes and begins 8675 # with a dollar sign (not a hyphen), so the echo should work correctly. 8676 lt_compile=`echo "$ac_compile" | $SED \ 8677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8679 -e 's:$: $lt_compiler_flag:'` 8680 (eval echo "\"\$as_me:8680: $lt_compile\"" >&5) 8681 (eval "$lt_compile" 2>out/conftest.err) 8682 ac_status=$? 8683 cat out/conftest.err >&5 8684 echo "$as_me:8684: \$? = $ac_status" >&5 8685 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8686 then 8687 # The compiler can only warn and ignore the option if not recognized 8688 # So say no if there are warnings 8689 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8692 lt_cv_prog_compiler_c_o=yes 8693 fi 8694 fi 8695 chmod u+w . 2>&5 8696 $RM conftest* 8697 # SGI C++ compiler will create directory out/ii_files/ for 8698 # template instantiation 8699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8700 $RM out/* && rmdir out 8701 cd .. 8702 $RM -r conftest 8703 $RM conftest* 8704 8705fi 8706{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8707$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8708 8709 8710 8711 8712 8713 8714 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8715$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8716if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8717 $as_echo_n "(cached) " >&6 8718else 8719 lt_cv_prog_compiler_c_o=no 8720 $RM -r conftest 2>/dev/null 8721 mkdir conftest 8722 cd conftest 8723 mkdir out 8724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8725 8726 lt_compiler_flag="-o out/conftest2.$ac_objext" 8727 # Insert the option either (1) after the last *FLAGS variable, or 8728 # (2) before a word containing "conftest.", or (3) at the end. 8729 # Note that $ac_compile itself does not contain backslashes and begins 8730 # with a dollar sign (not a hyphen), so the echo should work correctly. 8731 lt_compile=`echo "$ac_compile" | $SED \ 8732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8734 -e 's:$: $lt_compiler_flag:'` 8735 (eval echo "\"\$as_me:8735: $lt_compile\"" >&5) 8736 (eval "$lt_compile" 2>out/conftest.err) 8737 ac_status=$? 8738 cat out/conftest.err >&5 8739 echo "$as_me:8739: \$? = $ac_status" >&5 8740 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8741 then 8742 # The compiler can only warn and ignore the option if not recognized 8743 # So say no if there are warnings 8744 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8747 lt_cv_prog_compiler_c_o=yes 8748 fi 8749 fi 8750 chmod u+w . 2>&5 8751 $RM conftest* 8752 # SGI C++ compiler will create directory out/ii_files/ for 8753 # template instantiation 8754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8755 $RM out/* && rmdir out 8756 cd .. 8757 $RM -r conftest 8758 $RM conftest* 8759 8760fi 8761{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8762$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8763 8764 8765 8766 8767hard_links="nottested" 8768if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8769 # do not overwrite the value of need_locks provided by the user 8770 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8771$as_echo_n "checking if we can lock with hard links... " >&6; } 8772 hard_links=yes 8773 $RM conftest* 8774 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8775 touch conftest.a 8776 ln conftest.a conftest.b 2>&5 || hard_links=no 8777 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8778 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8779$as_echo "$hard_links" >&6; } 8780 if test "$hard_links" = no; then 8781 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8782$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8783 need_locks=warn 8784 fi 8785else 8786 need_locks=no 8787fi 8788 8789 8790 8791 8792 8793 8794 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8795$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8796 8797 runpath_var= 8798 allow_undefined_flag= 8799 always_export_symbols=no 8800 archive_cmds= 8801 archive_expsym_cmds= 8802 compiler_needs_object=no 8803 enable_shared_with_static_runtimes=no 8804 export_dynamic_flag_spec= 8805 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8806 hardcode_automatic=no 8807 hardcode_direct=no 8808 hardcode_direct_absolute=no 8809 hardcode_libdir_flag_spec= 8810 hardcode_libdir_flag_spec_ld= 8811 hardcode_libdir_separator= 8812 hardcode_minus_L=no 8813 hardcode_shlibpath_var=unsupported 8814 inherit_rpath=no 8815 link_all_deplibs=unknown 8816 module_cmds= 8817 module_expsym_cmds= 8818 old_archive_from_new_cmds= 8819 old_archive_from_expsyms_cmds= 8820 thread_safe_flag_spec= 8821 whole_archive_flag_spec= 8822 # include_expsyms should be a list of space-separated symbols to be *always* 8823 # included in the symbol list 8824 include_expsyms= 8825 # exclude_expsyms can be an extended regexp of symbols to exclude 8826 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8827 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8828 # as well as any symbol that contains `d'. 8829 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8830 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8831 # platforms (ab)use it in PIC code, but their linkers get confused if 8832 # the symbol is explicitly referenced. Since portable code cannot 8833 # rely on this symbol name, it's probably fine to never include it in 8834 # preloaded symbol tables. 8835 # Exclude shared library initialization/finalization symbols. 8836 extract_expsyms_cmds= 8837 8838 case $host_os in 8839 cygwin* | mingw* | pw32* | cegcc*) 8840 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8841 # When not using gcc, we currently assume that we are using 8842 # Microsoft Visual C++. 8843 if test "$GCC" != yes; then 8844 with_gnu_ld=no 8845 fi 8846 ;; 8847 interix*) 8848 # we just hope/assume this is gcc and not c89 (= MSVC++) 8849 with_gnu_ld=yes 8850 ;; 8851 openbsd*) 8852 with_gnu_ld=no 8853 ;; 8854 esac 8855 8856 ld_shlibs=yes 8857 if test "$with_gnu_ld" = yes; then 8858 # If archive_cmds runs LD, not CC, wlarc should be empty 8859 wlarc='${wl}' 8860 8861 # Set some defaults for GNU ld with shared library support. These 8862 # are reset later if shared libraries are not supported. Putting them 8863 # here allows them to be overridden if necessary. 8864 runpath_var=LD_RUN_PATH 8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8866 export_dynamic_flag_spec='${wl}--export-dynamic' 8867 # ancient GNU ld didn't support --whole-archive et. al. 8868 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8869 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8870 else 8871 whole_archive_flag_spec= 8872 fi 8873 supports_anon_versioning=no 8874 case `$LD -v 2>&1` in 8875 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8878 *\ 2.11.*) ;; # other 2.11 versions 8879 *) supports_anon_versioning=yes ;; 8880 esac 8881 8882 # See if GNU ld supports shared libraries. 8883 case $host_os in 8884 aix[3-9]*) 8885 # On AIX/PPC, the GNU linker is very broken 8886 if test "$host_cpu" != ia64; then 8887 ld_shlibs=no 8888 cat <<_LT_EOF 1>&2 8889 8890*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8891*** to be unable to reliably create shared libraries on AIX. 8892*** Therefore, libtool is disabling shared libraries support. If you 8893*** really care for shared libraries, you may want to modify your PATH 8894*** so that a non-GNU linker is found, and then restart. 8895 8896_LT_EOF 8897 fi 8898 ;; 8899 8900 amigaos*) 8901 case $host_cpu in 8902 powerpc) 8903 # see comment about AmigaOS4 .so support 8904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8905 archive_expsym_cmds='' 8906 ;; 8907 m68k) 8908 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)' 8909 hardcode_libdir_flag_spec='-L$libdir' 8910 hardcode_minus_L=yes 8911 ;; 8912 esac 8913 ;; 8914 8915 beos*) 8916 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8917 allow_undefined_flag=unsupported 8918 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8919 # support --undefined. This deserves some investigation. FIXME 8920 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8921 else 8922 ld_shlibs=no 8923 fi 8924 ;; 8925 8926 cygwin* | mingw* | pw32* | cegcc*) 8927 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8928 # as there is no search path for DLLs. 8929 hardcode_libdir_flag_spec='-L$libdir' 8930 allow_undefined_flag=unsupported 8931 always_export_symbols=no 8932 enable_shared_with_static_runtimes=yes 8933 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8934 8935 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8937 # If the export-symbols file already is a .def file (1st line 8938 # is EXPORTS), use it as is; otherwise, prepend... 8939 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8940 cp $export_symbols $output_objdir/$soname.def; 8941 else 8942 echo EXPORTS > $output_objdir/$soname.def; 8943 cat $export_symbols >> $output_objdir/$soname.def; 8944 fi~ 8945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8946 else 8947 ld_shlibs=no 8948 fi 8949 ;; 8950 8951 interix[3-9]*) 8952 hardcode_direct=no 8953 hardcode_shlibpath_var=no 8954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8955 export_dynamic_flag_spec='${wl}-E' 8956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8957 # Instead, shared libraries are loaded at an image base (0x10000000 by 8958 # default) and relocated if they conflict, which is a slow very memory 8959 # consuming and fragmenting process. To avoid this, we pick a random, 8960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8961 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8963 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' 8964 ;; 8965 8966 gnu* | linux* | tpf* | k*bsd*-gnu) 8967 tmp_diet=no 8968 if test "$host_os" = linux-dietlibc; then 8969 case $cc_basename in 8970 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8971 esac 8972 fi 8973 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8974 && test "$tmp_diet" = no 8975 then 8976 tmp_addflag= 8977 tmp_sharedflag='-shared' 8978 case $cc_basename,$host_cpu in 8979 pgcc*) # Portland Group C compiler 8980 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' 8981 tmp_addflag=' $pic_flag' 8982 ;; 8983 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8984 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' 8985 tmp_addflag=' $pic_flag -Mnomain' ;; 8986 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8987 tmp_addflag=' -i_dynamic' ;; 8988 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8989 tmp_addflag=' -i_dynamic -nofor_main' ;; 8990 ifc* | ifort*) # Intel Fortran compiler 8991 tmp_addflag=' -nofor_main' ;; 8992 lf95*) # Lahey Fortran 8.1 8993 whole_archive_flag_spec= 8994 tmp_sharedflag='--shared' ;; 8995 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8996 tmp_sharedflag='-qmkshrobj' 8997 tmp_addflag= ;; 8998 esac 8999 case `$CC -V 2>&1 | sed 5q` in 9000 *Sun\ C*) # Sun C 5.9 9001 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' 9002 compiler_needs_object=yes 9003 tmp_sharedflag='-G' ;; 9004 *Sun\ F*) # Sun Fortran 8.3 9005 tmp_sharedflag='-G' ;; 9006 esac 9007 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9008 9009 if test "x$supports_anon_versioning" = xyes; then 9010 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9012 echo "local: *; };" >> $output_objdir/$libname.ver~ 9013 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9014 fi 9015 9016 case $cc_basename in 9017 xlf*) 9018 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9019 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9020 hardcode_libdir_flag_spec= 9021 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9022 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9023 if test "x$supports_anon_versioning" = xyes; then 9024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9026 echo "local: *; };" >> $output_objdir/$libname.ver~ 9027 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9028 fi 9029 ;; 9030 esac 9031 else 9032 ld_shlibs=no 9033 fi 9034 ;; 9035 9036 netbsd*) 9037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9038 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9039 wlarc= 9040 else 9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9043 fi 9044 ;; 9045 9046 solaris*) 9047 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9048 ld_shlibs=no 9049 cat <<_LT_EOF 1>&2 9050 9051*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9052*** create shared libraries on Solaris systems. Therefore, libtool 9053*** is disabling shared libraries support. We urge you to upgrade GNU 9054*** binutils to release 2.9.1 or newer. Another option is to modify 9055*** your PATH or compiler configuration so that the native linker is 9056*** used, and then restart. 9057 9058_LT_EOF 9059 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9061 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9062 else 9063 ld_shlibs=no 9064 fi 9065 ;; 9066 9067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9068 case `$LD -v 2>&1` in 9069 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9070 ld_shlibs=no 9071 cat <<_LT_EOF 1>&2 9072 9073*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9074*** reliably create shared libraries on SCO systems. Therefore, libtool 9075*** is disabling shared libraries support. We urge you to upgrade GNU 9076*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9077*** your PATH or compiler configuration so that the native linker is 9078*** used, and then restart. 9079 9080_LT_EOF 9081 ;; 9082 *) 9083 # For security reasons, it is highly recommended that you always 9084 # use absolute paths for naming shared libraries, and exclude the 9085 # DT_RUNPATH tag from executables and libraries. But doing so 9086 # requires that you compile everything twice, which is a pain. 9087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9091 else 9092 ld_shlibs=no 9093 fi 9094 ;; 9095 esac 9096 ;; 9097 9098 sunos4*) 9099 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9100 wlarc= 9101 hardcode_direct=yes 9102 hardcode_shlibpath_var=no 9103 ;; 9104 9105 *) 9106 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9109 else 9110 ld_shlibs=no 9111 fi 9112 ;; 9113 esac 9114 9115 if test "$ld_shlibs" = no; then 9116 runpath_var= 9117 hardcode_libdir_flag_spec= 9118 export_dynamic_flag_spec= 9119 whole_archive_flag_spec= 9120 fi 9121 else 9122 # PORTME fill in a description of your system's linker (not GNU ld) 9123 case $host_os in 9124 aix3*) 9125 allow_undefined_flag=unsupported 9126 always_export_symbols=yes 9127 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' 9128 # Note: this linker hardcodes the directories in LIBPATH if there 9129 # are no directories specified by -L. 9130 hardcode_minus_L=yes 9131 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9132 # Neither direct hardcoding nor static linking is supported with a 9133 # broken collect2. 9134 hardcode_direct=unsupported 9135 fi 9136 ;; 9137 9138 aix[4-9]*) 9139 if test "$host_cpu" = ia64; then 9140 # On IA64, the linker does run time linking by default, so we don't 9141 # have to do anything special. 9142 aix_use_runtimelinking=no 9143 exp_sym_flag='-Bexport' 9144 no_entry_flag="" 9145 else 9146 # If we're using GNU nm, then we don't want the "-C" option. 9147 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9148 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9149 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' 9150 else 9151 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' 9152 fi 9153 aix_use_runtimelinking=no 9154 9155 # Test if we are trying to use run time linking or normal 9156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9157 # need to do runtime linking. 9158 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9159 for ld_flag in $LDFLAGS; do 9160 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9161 aix_use_runtimelinking=yes 9162 break 9163 fi 9164 done 9165 ;; 9166 esac 9167 9168 exp_sym_flag='-bexport' 9169 no_entry_flag='-bnoentry' 9170 fi 9171 9172 # When large executables or shared objects are built, AIX ld can 9173 # have problems creating the table of contents. If linking a library 9174 # or program results in "error TOC overflow" add -mminimal-toc to 9175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9177 9178 archive_cmds='' 9179 hardcode_direct=yes 9180 hardcode_direct_absolute=yes 9181 hardcode_libdir_separator=':' 9182 link_all_deplibs=yes 9183 file_list_spec='${wl}-f,' 9184 9185 if test "$GCC" = yes; then 9186 case $host_os in aix4.[012]|aix4.[012].*) 9187 # We only want to do this on AIX 4.2 and lower, the check 9188 # below for broken collect2 doesn't work under 4.3+ 9189 collect2name=`${CC} -print-prog-name=collect2` 9190 if test -f "$collect2name" && 9191 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9192 then 9193 # We have reworked collect2 9194 : 9195 else 9196 # We have old collect2 9197 hardcode_direct=unsupported 9198 # It fails to find uninstalled libraries when the uninstalled 9199 # path is not listed in the libpath. Setting hardcode_minus_L 9200 # to unsupported forces relinking 9201 hardcode_minus_L=yes 9202 hardcode_libdir_flag_spec='-L$libdir' 9203 hardcode_libdir_separator= 9204 fi 9205 ;; 9206 esac 9207 shared_flag='-shared' 9208 if test "$aix_use_runtimelinking" = yes; then 9209 shared_flag="$shared_flag "'${wl}-G' 9210 fi 9211 else 9212 # not using gcc 9213 if test "$host_cpu" = ia64; then 9214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9215 # chokes on -Wl,-G. The following line is correct: 9216 shared_flag='-G' 9217 else 9218 if test "$aix_use_runtimelinking" = yes; then 9219 shared_flag='${wl}-G' 9220 else 9221 shared_flag='${wl}-bM:SRE' 9222 fi 9223 fi 9224 fi 9225 9226 export_dynamic_flag_spec='${wl}-bexpall' 9227 # It seems that -bexpall does not export symbols beginning with 9228 # underscore (_), so it is better to generate a list of symbols to export. 9229 always_export_symbols=yes 9230 if test "$aix_use_runtimelinking" = yes; then 9231 # Warning - without using the other runtime loading flags (-brtl), 9232 # -berok will link without error, but may produce a broken library. 9233 allow_undefined_flag='-berok' 9234 # Determine the default libpath from the value encoded in an 9235 # empty executable. 9236 cat >conftest.$ac_ext <<_ACEOF 9237/* confdefs.h. */ 9238_ACEOF 9239cat confdefs.h >>conftest.$ac_ext 9240cat >>conftest.$ac_ext <<_ACEOF 9241/* end confdefs.h. */ 9242 9243int 9244main () 9245{ 9246 9247 ; 9248 return 0; 9249} 9250_ACEOF 9251rm -f conftest.$ac_objext conftest$ac_exeext 9252if { (ac_try="$ac_link" 9253case "(($ac_try" in 9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9255 *) ac_try_echo=$ac_try;; 9256esac 9257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9258$as_echo "$ac_try_echo") >&5 9259 (eval "$ac_link") 2>conftest.er1 9260 ac_status=$? 9261 grep -v '^ *+' conftest.er1 >conftest.err 9262 rm -f conftest.er1 9263 cat conftest.err >&5 9264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9265 (exit $ac_status); } && { 9266 test -z "$ac_c_werror_flag" || 9267 test ! -s conftest.err 9268 } && test -s conftest$ac_exeext && { 9269 test "$cross_compiling" = yes || 9270 $as_test_x conftest$ac_exeext 9271 }; then 9272 9273lt_aix_libpath_sed=' 9274 /Import File Strings/,/^$/ { 9275 /^0/ { 9276 s/^0 *\(.*\)$/\1/ 9277 p 9278 } 9279 }' 9280aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9281# Check for a 64-bit object if we didn't find anything. 9282if test -z "$aix_libpath"; then 9283 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9284fi 9285else 9286 $as_echo "$as_me: failed program was:" >&5 9287sed 's/^/| /' conftest.$ac_ext >&5 9288 9289 9290fi 9291 9292rm -rf conftest.dSYM 9293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9294 conftest$ac_exeext conftest.$ac_ext 9295if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9296 9297 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9298 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" 9299 else 9300 if test "$host_cpu" = ia64; then 9301 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9302 allow_undefined_flag="-z nodefs" 9303 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" 9304 else 9305 # Determine the default libpath from the value encoded in an 9306 # empty executable. 9307 cat >conftest.$ac_ext <<_ACEOF 9308/* confdefs.h. */ 9309_ACEOF 9310cat confdefs.h >>conftest.$ac_ext 9311cat >>conftest.$ac_ext <<_ACEOF 9312/* end confdefs.h. */ 9313 9314int 9315main () 9316{ 9317 9318 ; 9319 return 0; 9320} 9321_ACEOF 9322rm -f conftest.$ac_objext conftest$ac_exeext 9323if { (ac_try="$ac_link" 9324case "(($ac_try" in 9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9326 *) ac_try_echo=$ac_try;; 9327esac 9328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9329$as_echo "$ac_try_echo") >&5 9330 (eval "$ac_link") 2>conftest.er1 9331 ac_status=$? 9332 grep -v '^ *+' conftest.er1 >conftest.err 9333 rm -f conftest.er1 9334 cat conftest.err >&5 9335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9336 (exit $ac_status); } && { 9337 test -z "$ac_c_werror_flag" || 9338 test ! -s conftest.err 9339 } && test -s conftest$ac_exeext && { 9340 test "$cross_compiling" = yes || 9341 $as_test_x conftest$ac_exeext 9342 }; then 9343 9344lt_aix_libpath_sed=' 9345 /Import File Strings/,/^$/ { 9346 /^0/ { 9347 s/^0 *\(.*\)$/\1/ 9348 p 9349 } 9350 }' 9351aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9352# Check for a 64-bit object if we didn't find anything. 9353if test -z "$aix_libpath"; then 9354 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9355fi 9356else 9357 $as_echo "$as_me: failed program was:" >&5 9358sed 's/^/| /' conftest.$ac_ext >&5 9359 9360 9361fi 9362 9363rm -rf conftest.dSYM 9364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9365 conftest$ac_exeext conftest.$ac_ext 9366if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9367 9368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9369 # Warning - without using the other run time loading flags, 9370 # -berok will link without error, but may produce a broken library. 9371 no_undefined_flag=' ${wl}-bernotok' 9372 allow_undefined_flag=' ${wl}-berok' 9373 # Exported symbols can be pulled into shared objects from archives 9374 whole_archive_flag_spec='$convenience' 9375 archive_cmds_need_lc=yes 9376 # This is similar to how AIX traditionally builds its shared libraries. 9377 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' 9378 fi 9379 fi 9380 ;; 9381 9382 amigaos*) 9383 case $host_cpu in 9384 powerpc) 9385 # see comment about AmigaOS4 .so support 9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9387 archive_expsym_cmds='' 9388 ;; 9389 m68k) 9390 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)' 9391 hardcode_libdir_flag_spec='-L$libdir' 9392 hardcode_minus_L=yes 9393 ;; 9394 esac 9395 ;; 9396 9397 bsdi[45]*) 9398 export_dynamic_flag_spec=-rdynamic 9399 ;; 9400 9401 cygwin* | mingw* | pw32* | cegcc*) 9402 # When not using gcc, we currently assume that we are using 9403 # Microsoft Visual C++. 9404 # hardcode_libdir_flag_spec is actually meaningless, as there is 9405 # no search path for DLLs. 9406 hardcode_libdir_flag_spec=' ' 9407 allow_undefined_flag=unsupported 9408 # Tell ltmain to make .lib files, not .a files. 9409 libext=lib 9410 # Tell ltmain to make .dll files, not .so files. 9411 shrext_cmds=".dll" 9412 # FIXME: Setting linknames here is a bad hack. 9413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9414 # The linker will automatically build a .lib file if we build a DLL. 9415 old_archive_from_new_cmds='true' 9416 # FIXME: Should let the user specify the lib program. 9417 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9418 fix_srcfile_path='`cygpath -w "$srcfile"`' 9419 enable_shared_with_static_runtimes=yes 9420 ;; 9421 9422 darwin* | rhapsody*) 9423 9424 9425 archive_cmds_need_lc=no 9426 hardcode_direct=no 9427 hardcode_automatic=yes 9428 hardcode_shlibpath_var=unsupported 9429 whole_archive_flag_spec='' 9430 link_all_deplibs=yes 9431 allow_undefined_flag="$_lt_dar_allow_undefined" 9432 case $cc_basename in 9433 ifort*) _lt_dar_can_shared=yes ;; 9434 *) _lt_dar_can_shared=$GCC ;; 9435 esac 9436 if test "$_lt_dar_can_shared" = "yes"; then 9437 output_verbose_link_cmd=echo 9438 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9439 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9440 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}" 9441 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}" 9442 9443 else 9444 ld_shlibs=no 9445 fi 9446 9447 ;; 9448 9449 dgux*) 9450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9451 hardcode_libdir_flag_spec='-L$libdir' 9452 hardcode_shlibpath_var=no 9453 ;; 9454 9455 freebsd1*) 9456 ld_shlibs=no 9457 ;; 9458 9459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9460 # support. Future versions do this automatically, but an explicit c++rt0.o 9461 # does not break anything, and helps significantly (at the cost of a little 9462 # extra space). 9463 freebsd2.2*) 9464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9465 hardcode_libdir_flag_spec='-R$libdir' 9466 hardcode_direct=yes 9467 hardcode_shlibpath_var=no 9468 ;; 9469 9470 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9471 freebsd2*) 9472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9473 hardcode_direct=yes 9474 hardcode_minus_L=yes 9475 hardcode_shlibpath_var=no 9476 ;; 9477 9478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9479 freebsd* | dragonfly*) 9480 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9481 hardcode_libdir_flag_spec='-R$libdir' 9482 hardcode_direct=yes 9483 hardcode_shlibpath_var=no 9484 ;; 9485 9486 hpux9*) 9487 if test "$GCC" = yes; then 9488 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' 9489 else 9490 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' 9491 fi 9492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9493 hardcode_libdir_separator=: 9494 hardcode_direct=yes 9495 9496 # hardcode_minus_L: Not really in the search PATH, 9497 # but as the default location of the library. 9498 hardcode_minus_L=yes 9499 export_dynamic_flag_spec='${wl}-E' 9500 ;; 9501 9502 hpux10*) 9503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9504 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9505 else 9506 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9507 fi 9508 if test "$with_gnu_ld" = no; then 9509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9510 hardcode_libdir_flag_spec_ld='+b $libdir' 9511 hardcode_libdir_separator=: 9512 hardcode_direct=yes 9513 hardcode_direct_absolute=yes 9514 export_dynamic_flag_spec='${wl}-E' 9515 # hardcode_minus_L: Not really in the search PATH, 9516 # but as the default location of the library. 9517 hardcode_minus_L=yes 9518 fi 9519 ;; 9520 9521 hpux11*) 9522 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9523 case $host_cpu in 9524 hppa*64*) 9525 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9526 ;; 9527 ia64*) 9528 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9529 ;; 9530 *) 9531 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9532 ;; 9533 esac 9534 else 9535 case $host_cpu in 9536 hppa*64*) 9537 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9538 ;; 9539 ia64*) 9540 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9541 ;; 9542 *) 9543 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9544 ;; 9545 esac 9546 fi 9547 if test "$with_gnu_ld" = no; then 9548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9549 hardcode_libdir_separator=: 9550 9551 case $host_cpu in 9552 hppa*64*|ia64*) 9553 hardcode_direct=no 9554 hardcode_shlibpath_var=no 9555 ;; 9556 *) 9557 hardcode_direct=yes 9558 hardcode_direct_absolute=yes 9559 export_dynamic_flag_spec='${wl}-E' 9560 9561 # hardcode_minus_L: Not really in the search PATH, 9562 # but as the default location of the library. 9563 hardcode_minus_L=yes 9564 ;; 9565 esac 9566 fi 9567 ;; 9568 9569 irix5* | irix6* | nonstopux*) 9570 if test "$GCC" = yes; then 9571 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' 9572 # Try to use the -exported_symbol ld option, if it does not 9573 # work, assume that -exports_file does not work either and 9574 # implicitly export all symbols. 9575 save_LDFLAGS="$LDFLAGS" 9576 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9577 cat >conftest.$ac_ext <<_ACEOF 9578int foo(void) {} 9579_ACEOF 9580rm -f conftest.$ac_objext conftest$ac_exeext 9581if { (ac_try="$ac_link" 9582case "(($ac_try" in 9583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9584 *) ac_try_echo=$ac_try;; 9585esac 9586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9587$as_echo "$ac_try_echo") >&5 9588 (eval "$ac_link") 2>conftest.er1 9589 ac_status=$? 9590 grep -v '^ *+' conftest.er1 >conftest.err 9591 rm -f conftest.er1 9592 cat conftest.err >&5 9593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9594 (exit $ac_status); } && { 9595 test -z "$ac_c_werror_flag" || 9596 test ! -s conftest.err 9597 } && test -s conftest$ac_exeext && { 9598 test "$cross_compiling" = yes || 9599 $as_test_x conftest$ac_exeext 9600 }; then 9601 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' 9602 9603else 9604 $as_echo "$as_me: failed program was:" >&5 9605sed 's/^/| /' conftest.$ac_ext >&5 9606 9607 9608fi 9609 9610rm -rf conftest.dSYM 9611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9612 conftest$ac_exeext conftest.$ac_ext 9613 LDFLAGS="$save_LDFLAGS" 9614 else 9615 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' 9616 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' 9617 fi 9618 archive_cmds_need_lc='no' 9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9620 hardcode_libdir_separator=: 9621 inherit_rpath=yes 9622 link_all_deplibs=yes 9623 ;; 9624 9625 netbsd*) 9626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9628 else 9629 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9630 fi 9631 hardcode_libdir_flag_spec='-R$libdir' 9632 hardcode_direct=yes 9633 hardcode_shlibpath_var=no 9634 ;; 9635 9636 newsos6) 9637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9638 hardcode_direct=yes 9639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9640 hardcode_libdir_separator=: 9641 hardcode_shlibpath_var=no 9642 ;; 9643 9644 *nto* | *qnx*) 9645 ;; 9646 9647 openbsd*) 9648 if test -f /usr/libexec/ld.so; then 9649 hardcode_direct=yes 9650 hardcode_shlibpath_var=no 9651 hardcode_direct_absolute=yes 9652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9654 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9656 export_dynamic_flag_spec='${wl}-E' 9657 else 9658 case $host_os in 9659 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9661 hardcode_libdir_flag_spec='-R$libdir' 9662 ;; 9663 *) 9664 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9666 ;; 9667 esac 9668 fi 9669 else 9670 ld_shlibs=no 9671 fi 9672 ;; 9673 9674 os2*) 9675 hardcode_libdir_flag_spec='-L$libdir' 9676 hardcode_minus_L=yes 9677 allow_undefined_flag=unsupported 9678 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' 9679 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9680 ;; 9681 9682 osf3*) 9683 if test "$GCC" = yes; then 9684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9685 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' 9686 else 9687 allow_undefined_flag=' -expect_unresolved \*' 9688 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' 9689 fi 9690 archive_cmds_need_lc='no' 9691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9692 hardcode_libdir_separator=: 9693 ;; 9694 9695 osf4* | osf5*) # as osf3* with the addition of -msym flag 9696 if test "$GCC" = yes; then 9697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9698 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' 9699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9700 else 9701 allow_undefined_flag=' -expect_unresolved \*' 9702 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' 9703 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~ 9704 $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' 9705 9706 # Both c and cxx compiler support -rpath directly 9707 hardcode_libdir_flag_spec='-rpath $libdir' 9708 fi 9709 archive_cmds_need_lc='no' 9710 hardcode_libdir_separator=: 9711 ;; 9712 9713 solaris*) 9714 no_undefined_flag=' -z defs' 9715 if test "$GCC" = yes; then 9716 wlarc='${wl}' 9717 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9718 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9719 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9720 else 9721 case `$CC -V 2>&1` in 9722 *"Compilers 5.0"*) 9723 wlarc='' 9724 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9725 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9726 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9727 ;; 9728 *) 9729 wlarc='${wl}' 9730 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9731 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9732 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9733 ;; 9734 esac 9735 fi 9736 hardcode_libdir_flag_spec='-R$libdir' 9737 hardcode_shlibpath_var=no 9738 case $host_os in 9739 solaris2.[0-5] | solaris2.[0-5].*) ;; 9740 *) 9741 # The compiler driver will combine and reorder linker options, 9742 # but understands `-z linker_flag'. GCC discards it without `$wl', 9743 # but is careful enough not to reorder. 9744 # Supported since Solaris 2.6 (maybe 2.5.1?) 9745 if test "$GCC" = yes; then 9746 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9747 else 9748 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9749 fi 9750 ;; 9751 esac 9752 link_all_deplibs=yes 9753 ;; 9754 9755 sunos4*) 9756 if test "x$host_vendor" = xsequent; then 9757 # Use $CC to link under sequent, because it throws in some extra .o 9758 # files that make .init and .fini sections work. 9759 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9760 else 9761 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9762 fi 9763 hardcode_libdir_flag_spec='-L$libdir' 9764 hardcode_direct=yes 9765 hardcode_minus_L=yes 9766 hardcode_shlibpath_var=no 9767 ;; 9768 9769 sysv4) 9770 case $host_vendor in 9771 sni) 9772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9773 hardcode_direct=yes # is this really true??? 9774 ;; 9775 siemens) 9776 ## LD is ld it makes a PLAMLIB 9777 ## CC just makes a GrossModule. 9778 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9779 reload_cmds='$CC -r -o $output$reload_objs' 9780 hardcode_direct=no 9781 ;; 9782 motorola) 9783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9784 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9785 ;; 9786 esac 9787 runpath_var='LD_RUN_PATH' 9788 hardcode_shlibpath_var=no 9789 ;; 9790 9791 sysv4.3*) 9792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9793 hardcode_shlibpath_var=no 9794 export_dynamic_flag_spec='-Bexport' 9795 ;; 9796 9797 sysv4*MP*) 9798 if test -d /usr/nec; then 9799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9800 hardcode_shlibpath_var=no 9801 runpath_var=LD_RUN_PATH 9802 hardcode_runpath_var=yes 9803 ld_shlibs=yes 9804 fi 9805 ;; 9806 9807 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9808 no_undefined_flag='${wl}-z,text' 9809 archive_cmds_need_lc=no 9810 hardcode_shlibpath_var=no 9811 runpath_var='LD_RUN_PATH' 9812 9813 if test "$GCC" = yes; then 9814 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9815 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9816 else 9817 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9818 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9819 fi 9820 ;; 9821 9822 sysv5* | sco3.2v5* | sco5v6*) 9823 # Note: We can NOT use -z defs as we might desire, because we do not 9824 # link with -lc, and that would cause any symbols used from libc to 9825 # always be unresolved, which means just about no library would 9826 # ever link correctly. If we're not using GNU ld we use -z text 9827 # though, which does catch some bad symbols but isn't as heavy-handed 9828 # as -z defs. 9829 no_undefined_flag='${wl}-z,text' 9830 allow_undefined_flag='${wl}-z,nodefs' 9831 archive_cmds_need_lc=no 9832 hardcode_shlibpath_var=no 9833 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9834 hardcode_libdir_separator=':' 9835 link_all_deplibs=yes 9836 export_dynamic_flag_spec='${wl}-Bexport' 9837 runpath_var='LD_RUN_PATH' 9838 9839 if test "$GCC" = yes; then 9840 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9841 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9842 else 9843 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9844 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9845 fi 9846 ;; 9847 9848 uts4*) 9849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9850 hardcode_libdir_flag_spec='-L$libdir' 9851 hardcode_shlibpath_var=no 9852 ;; 9853 9854 *) 9855 ld_shlibs=no 9856 ;; 9857 esac 9858 9859 if test x$host_vendor = xsni; then 9860 case $host in 9861 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9862 export_dynamic_flag_spec='${wl}-Blargedynsym' 9863 ;; 9864 esac 9865 fi 9866 fi 9867 9868{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9869$as_echo "$ld_shlibs" >&6; } 9870test "$ld_shlibs" = no && can_build_shared=no 9871 9872with_gnu_ld=$with_gnu_ld 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888# 9889# Do we need to explicitly link libc? 9890# 9891case "x$archive_cmds_need_lc" in 9892x|xyes) 9893 # Assume -lc should be added 9894 archive_cmds_need_lc=yes 9895 9896 if test "$enable_shared" = yes && test "$GCC" = yes; then 9897 case $archive_cmds in 9898 *'~'*) 9899 # FIXME: we may have to deal with multi-command sequences. 9900 ;; 9901 '$CC '*) 9902 # Test whether the compiler implicitly links with -lc since on some 9903 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9904 # to ld, don't add -lc before -lgcc. 9905 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9906$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9907 $RM conftest* 9908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9909 9910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9911 (eval $ac_compile) 2>&5 9912 ac_status=$? 9913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9914 (exit $ac_status); } 2>conftest.err; then 9915 soname=conftest 9916 lib=conftest 9917 libobjs=conftest.$ac_objext 9918 deplibs= 9919 wl=$lt_prog_compiler_wl 9920 pic_flag=$lt_prog_compiler_pic 9921 compiler_flags=-v 9922 linker_flags=-v 9923 verstring= 9924 output_objdir=. 9925 libname=conftest 9926 lt_save_allow_undefined_flag=$allow_undefined_flag 9927 allow_undefined_flag= 9928 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9929 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9930 ac_status=$? 9931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9932 (exit $ac_status); } 9933 then 9934 archive_cmds_need_lc=no 9935 else 9936 archive_cmds_need_lc=yes 9937 fi 9938 allow_undefined_flag=$lt_save_allow_undefined_flag 9939 else 9940 cat conftest.err 1>&5 9941 fi 9942 $RM conftest* 9943 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9944$as_echo "$archive_cmds_need_lc" >&6; } 9945 ;; 9946 esac 9947 fi 9948 ;; 9949esac 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10108$as_echo_n "checking dynamic linker characteristics... " >&6; } 10109 10110if test "$GCC" = yes; then 10111 case $host_os in 10112 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10113 *) lt_awk_arg="/^libraries:/" ;; 10114 esac 10115 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10116 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10117 # if the path contains ";" then we assume it to be the separator 10118 # otherwise default to the standard path separator (i.e. ":") - it is 10119 # assumed that no part of a normal pathname contains ";" but that should 10120 # okay in the real world where ";" in dirpaths is itself problematic. 10121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10122 else 10123 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10124 fi 10125 # Ok, now we have the path, separated by spaces, we can step through it 10126 # and add multilib dir if necessary. 10127 lt_tmp_lt_search_path_spec= 10128 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10129 for lt_sys_path in $lt_search_path_spec; do 10130 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10131 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10132 else 10133 test -d "$lt_sys_path" && \ 10134 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10135 fi 10136 done 10137 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10138BEGIN {RS=" "; FS="/|\n";} { 10139 lt_foo=""; 10140 lt_count=0; 10141 for (lt_i = NF; lt_i > 0; lt_i--) { 10142 if ($lt_i != "" && $lt_i != ".") { 10143 if ($lt_i == "..") { 10144 lt_count++; 10145 } else { 10146 if (lt_count == 0) { 10147 lt_foo="/" $lt_i lt_foo; 10148 } else { 10149 lt_count--; 10150 } 10151 } 10152 } 10153 } 10154 if (lt_foo != "") { lt_freq[lt_foo]++; } 10155 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10156}'` 10157 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10158else 10159 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10160fi 10161library_names_spec= 10162libname_spec='lib$name' 10163soname_spec= 10164shrext_cmds=".so" 10165postinstall_cmds= 10166postuninstall_cmds= 10167finish_cmds= 10168finish_eval= 10169shlibpath_var= 10170shlibpath_overrides_runpath=unknown 10171version_type=none 10172dynamic_linker="$host_os ld.so" 10173sys_lib_dlsearch_path_spec="/lib /usr/lib" 10174need_lib_prefix=unknown 10175hardcode_into_libs=no 10176 10177# when you set need_version to no, make sure it does not cause -set_version 10178# flags to be left without arguments 10179need_version=unknown 10180 10181case $host_os in 10182aix3*) 10183 version_type=linux 10184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10185 shlibpath_var=LIBPATH 10186 10187 # AIX 3 has no versioning support, so we append a major version to the name. 10188 soname_spec='${libname}${release}${shared_ext}$major' 10189 ;; 10190 10191aix[4-9]*) 10192 version_type=linux 10193 need_lib_prefix=no 10194 need_version=no 10195 hardcode_into_libs=yes 10196 if test "$host_cpu" = ia64; then 10197 # AIX 5 supports IA64 10198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10199 shlibpath_var=LD_LIBRARY_PATH 10200 else 10201 # With GCC up to 2.95.x, collect2 would create an import file 10202 # for dependence libraries. The import file would start with 10203 # the line `#! .'. This would cause the generated library to 10204 # depend on `.', always an invalid library. This was fixed in 10205 # development snapshots of GCC prior to 3.0. 10206 case $host_os in 10207 aix4 | aix4.[01] | aix4.[01].*) 10208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10209 echo ' yes ' 10210 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10211 : 10212 else 10213 can_build_shared=no 10214 fi 10215 ;; 10216 esac 10217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10218 # soname into executable. Probably we can add versioning support to 10219 # collect2, so additional links can be useful in future. 10220 if test "$aix_use_runtimelinking" = yes; then 10221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10222 # instead of lib<name>.a to let people know that these are not 10223 # typical AIX shared libraries. 10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10225 else 10226 # We preserve .a as extension for shared libraries through AIX4.2 10227 # and later when we are not doing run time linking. 10228 library_names_spec='${libname}${release}.a $libname.a' 10229 soname_spec='${libname}${release}${shared_ext}$major' 10230 fi 10231 shlibpath_var=LIBPATH 10232 fi 10233 ;; 10234 10235amigaos*) 10236 case $host_cpu in 10237 powerpc) 10238 # Since July 2007 AmigaOS4 officially supports .so libraries. 10239 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10241 ;; 10242 m68k) 10243 library_names_spec='$libname.ixlibrary $libname.a' 10244 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10245 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' 10246 ;; 10247 esac 10248 ;; 10249 10250beos*) 10251 library_names_spec='${libname}${shared_ext}' 10252 dynamic_linker="$host_os ld.so" 10253 shlibpath_var=LIBRARY_PATH 10254 ;; 10255 10256bsdi[45]*) 10257 version_type=linux 10258 need_version=no 10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10260 soname_spec='${libname}${release}${shared_ext}$major' 10261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10262 shlibpath_var=LD_LIBRARY_PATH 10263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10265 # the default ld.so.conf also contains /usr/contrib/lib and 10266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10267 # libtool to hard-code these into programs 10268 ;; 10269 10270cygwin* | mingw* | pw32* | cegcc*) 10271 version_type=windows 10272 shrext_cmds=".dll" 10273 need_version=no 10274 need_lib_prefix=no 10275 10276 case $GCC,$host_os in 10277 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10278 library_names_spec='$libname.dll.a' 10279 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10280 postinstall_cmds='base_file=`basename \${file}`~ 10281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10282 dldir=$destdir/`dirname \$dlpath`~ 10283 test -d \$dldir || mkdir -p \$dldir~ 10284 $install_prog $dir/$dlname \$dldir/$dlname~ 10285 chmod a+x \$dldir/$dlname~ 10286 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10287 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10288 fi' 10289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10290 dlpath=$dir/\$dldll~ 10291 $RM \$dlpath' 10292 shlibpath_overrides_runpath=yes 10293 10294 case $host_os in 10295 cygwin*) 10296 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10298 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10299 ;; 10300 mingw* | cegcc*) 10301 # MinGW DLLs use traditional 'lib' prefix 10302 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10303 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10304 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10305 # It is most probably a Windows format PATH printed by 10306 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10307 # path with ; separators, and with drive letters. We can handle the 10308 # drive letters (cygwin fileutils understands them), so leave them, 10309 # especially as we might pass files found there to a mingw objdump, 10310 # which wouldn't understand a cygwinified path. Ahh. 10311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10312 else 10313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10314 fi 10315 ;; 10316 pw32*) 10317 # pw32 DLLs use 'pw' prefix rather than 'lib' 10318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10319 ;; 10320 esac 10321 ;; 10322 10323 *) 10324 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10325 ;; 10326 esac 10327 dynamic_linker='Win32 ld.exe' 10328 # FIXME: first we should search . and the directory the executable is in 10329 shlibpath_var=PATH 10330 ;; 10331 10332darwin* | rhapsody*) 10333 dynamic_linker="$host_os dyld" 10334 version_type=darwin 10335 need_lib_prefix=no 10336 need_version=no 10337 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10338 soname_spec='${libname}${release}${major}$shared_ext' 10339 shlibpath_overrides_runpath=yes 10340 shlibpath_var=DYLD_LIBRARY_PATH 10341 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10342 10343 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10345 ;; 10346 10347dgux*) 10348 version_type=linux 10349 need_lib_prefix=no 10350 need_version=no 10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10352 soname_spec='${libname}${release}${shared_ext}$major' 10353 shlibpath_var=LD_LIBRARY_PATH 10354 ;; 10355 10356freebsd1*) 10357 dynamic_linker=no 10358 ;; 10359 10360freebsd* | dragonfly*) 10361 # DragonFly does not have aout. When/if they implement a new 10362 # versioning mechanism, adjust this. 10363 if test -x /usr/bin/objformat; then 10364 objformat=`/usr/bin/objformat` 10365 else 10366 case $host_os in 10367 freebsd[123]*) objformat=aout ;; 10368 *) objformat=elf ;; 10369 esac 10370 fi 10371 version_type=freebsd-$objformat 10372 case $version_type in 10373 freebsd-elf*) 10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10375 need_version=no 10376 need_lib_prefix=no 10377 ;; 10378 freebsd-*) 10379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10380 need_version=yes 10381 ;; 10382 esac 10383 shlibpath_var=LD_LIBRARY_PATH 10384 case $host_os in 10385 freebsd2*) 10386 shlibpath_overrides_runpath=yes 10387 ;; 10388 freebsd3.[01]* | freebsdelf3.[01]*) 10389 shlibpath_overrides_runpath=yes 10390 hardcode_into_libs=yes 10391 ;; 10392 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10393 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10394 shlibpath_overrides_runpath=no 10395 hardcode_into_libs=yes 10396 ;; 10397 *) # from 4.6 on, and DragonFly 10398 shlibpath_overrides_runpath=yes 10399 hardcode_into_libs=yes 10400 ;; 10401 esac 10402 ;; 10403 10404gnu*) 10405 version_type=linux 10406 need_lib_prefix=no 10407 need_version=no 10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10409 soname_spec='${libname}${release}${shared_ext}$major' 10410 shlibpath_var=LD_LIBRARY_PATH 10411 hardcode_into_libs=yes 10412 ;; 10413 10414hpux9* | hpux10* | hpux11*) 10415 # Give a soname corresponding to the major version so that dld.sl refuses to 10416 # link against other versions. 10417 version_type=sunos 10418 need_lib_prefix=no 10419 need_version=no 10420 case $host_cpu in 10421 ia64*) 10422 shrext_cmds='.so' 10423 hardcode_into_libs=yes 10424 dynamic_linker="$host_os dld.so" 10425 shlibpath_var=LD_LIBRARY_PATH 10426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10428 soname_spec='${libname}${release}${shared_ext}$major' 10429 if test "X$HPUX_IA64_MODE" = X32; then 10430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10431 else 10432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10433 fi 10434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10435 ;; 10436 hppa*64*) 10437 shrext_cmds='.sl' 10438 hardcode_into_libs=yes 10439 dynamic_linker="$host_os dld.sl" 10440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10443 soname_spec='${libname}${release}${shared_ext}$major' 10444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10446 ;; 10447 *) 10448 shrext_cmds='.sl' 10449 dynamic_linker="$host_os dld.sl" 10450 shlibpath_var=SHLIB_PATH 10451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10453 soname_spec='${libname}${release}${shared_ext}$major' 10454 ;; 10455 esac 10456 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10457 postinstall_cmds='chmod 555 $lib' 10458 ;; 10459 10460interix[3-9]*) 10461 version_type=linux 10462 need_lib_prefix=no 10463 need_version=no 10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10465 soname_spec='${libname}${release}${shared_ext}$major' 10466 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10467 shlibpath_var=LD_LIBRARY_PATH 10468 shlibpath_overrides_runpath=no 10469 hardcode_into_libs=yes 10470 ;; 10471 10472irix5* | irix6* | nonstopux*) 10473 case $host_os in 10474 nonstopux*) version_type=nonstopux ;; 10475 *) 10476 if test "$lt_cv_prog_gnu_ld" = yes; then 10477 version_type=linux 10478 else 10479 version_type=irix 10480 fi ;; 10481 esac 10482 need_lib_prefix=no 10483 need_version=no 10484 soname_spec='${libname}${release}${shared_ext}$major' 10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10486 case $host_os in 10487 irix5* | nonstopux*) 10488 libsuff= shlibsuff= 10489 ;; 10490 *) 10491 case $LD in # libtool.m4 will add one of these switches to LD 10492 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10493 libsuff= shlibsuff= libmagic=32-bit;; 10494 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10495 libsuff=32 shlibsuff=N32 libmagic=N32;; 10496 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10497 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10498 *) libsuff= shlibsuff= libmagic=never-match;; 10499 esac 10500 ;; 10501 esac 10502 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10503 shlibpath_overrides_runpath=no 10504 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10505 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10506 hardcode_into_libs=yes 10507 ;; 10508 10509# No shared lib support for Linux oldld, aout, or coff. 10510linux*oldld* | linux*aout* | linux*coff*) 10511 dynamic_linker=no 10512 ;; 10513 10514# This must be Linux ELF. 10515linux* | k*bsd*-gnu) 10516 version_type=linux 10517 need_lib_prefix=no 10518 need_version=no 10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10520 soname_spec='${libname}${release}${shared_ext}$major' 10521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10522 shlibpath_var=LD_LIBRARY_PATH 10523 shlibpath_overrides_runpath=no 10524 # Some binutils ld are patched to set DT_RUNPATH 10525 save_LDFLAGS=$LDFLAGS 10526 save_libdir=$libdir 10527 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10528 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10529 cat >conftest.$ac_ext <<_ACEOF 10530/* confdefs.h. */ 10531_ACEOF 10532cat confdefs.h >>conftest.$ac_ext 10533cat >>conftest.$ac_ext <<_ACEOF 10534/* end confdefs.h. */ 10535 10536int 10537main () 10538{ 10539 10540 ; 10541 return 0; 10542} 10543_ACEOF 10544rm -f conftest.$ac_objext conftest$ac_exeext 10545if { (ac_try="$ac_link" 10546case "(($ac_try" in 10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10548 *) ac_try_echo=$ac_try;; 10549esac 10550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10551$as_echo "$ac_try_echo") >&5 10552 (eval "$ac_link") 2>conftest.er1 10553 ac_status=$? 10554 grep -v '^ *+' conftest.er1 >conftest.err 10555 rm -f conftest.er1 10556 cat conftest.err >&5 10557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10558 (exit $ac_status); } && { 10559 test -z "$ac_c_werror_flag" || 10560 test ! -s conftest.err 10561 } && test -s conftest$ac_exeext && { 10562 test "$cross_compiling" = yes || 10563 $as_test_x conftest$ac_exeext 10564 }; then 10565 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10566 shlibpath_overrides_runpath=yes 10567fi 10568 10569else 10570 $as_echo "$as_me: failed program was:" >&5 10571sed 's/^/| /' conftest.$ac_ext >&5 10572 10573 10574fi 10575 10576rm -rf conftest.dSYM 10577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10578 conftest$ac_exeext conftest.$ac_ext 10579 LDFLAGS=$save_LDFLAGS 10580 libdir=$save_libdir 10581 10582 # This implies no fast_install, which is unacceptable. 10583 # Some rework will be needed to allow for fast_install 10584 # before this can be enabled. 10585 hardcode_into_libs=yes 10586 10587 # Append ld.so.conf contents to the search path 10588 if test -f /etc/ld.so.conf; then 10589 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' ' '` 10590 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10591 fi 10592 10593 # We used to test for /lib/ld.so.1 and disable shared libraries on 10594 # powerpc, because MkLinux only supported shared libraries with the 10595 # GNU dynamic linker. Since this was broken with cross compilers, 10596 # most powerpc-linux boxes support dynamic linking these days and 10597 # people can always --disable-shared, the test was removed, and we 10598 # assume the GNU/Linux dynamic linker is in use. 10599 dynamic_linker='GNU/Linux ld.so' 10600 ;; 10601 10602netbsd*) 10603 version_type=sunos 10604 need_lib_prefix=no 10605 need_version=no 10606 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10609 dynamic_linker='NetBSD (a.out) ld.so' 10610 else 10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10612 soname_spec='${libname}${release}${shared_ext}$major' 10613 dynamic_linker='NetBSD ld.elf_so' 10614 fi 10615 shlibpath_var=LD_LIBRARY_PATH 10616 shlibpath_overrides_runpath=yes 10617 hardcode_into_libs=yes 10618 ;; 10619 10620newsos6) 10621 version_type=linux 10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10623 shlibpath_var=LD_LIBRARY_PATH 10624 shlibpath_overrides_runpath=yes 10625 ;; 10626 10627*nto* | *qnx*) 10628 version_type=qnx 10629 need_lib_prefix=no 10630 need_version=no 10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10632 soname_spec='${libname}${release}${shared_ext}$major' 10633 shlibpath_var=LD_LIBRARY_PATH 10634 shlibpath_overrides_runpath=no 10635 hardcode_into_libs=yes 10636 dynamic_linker='ldqnx.so' 10637 ;; 10638 10639openbsd*) 10640 version_type=sunos 10641 sys_lib_dlsearch_path_spec="/usr/lib" 10642 need_lib_prefix=no 10643 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10644 case $host_os in 10645 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10646 *) need_version=no ;; 10647 esac 10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10650 shlibpath_var=LD_LIBRARY_PATH 10651 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10652 case $host_os in 10653 openbsd2.[89] | openbsd2.[89].*) 10654 shlibpath_overrides_runpath=no 10655 ;; 10656 *) 10657 shlibpath_overrides_runpath=yes 10658 ;; 10659 esac 10660 else 10661 shlibpath_overrides_runpath=yes 10662 fi 10663 ;; 10664 10665os2*) 10666 libname_spec='$name' 10667 shrext_cmds=".dll" 10668 need_lib_prefix=no 10669 library_names_spec='$libname${shared_ext} $libname.a' 10670 dynamic_linker='OS/2 ld.exe' 10671 shlibpath_var=LIBPATH 10672 ;; 10673 10674osf3* | osf4* | osf5*) 10675 version_type=osf 10676 need_lib_prefix=no 10677 need_version=no 10678 soname_spec='${libname}${release}${shared_ext}$major' 10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10680 shlibpath_var=LD_LIBRARY_PATH 10681 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10682 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10683 ;; 10684 10685rdos*) 10686 dynamic_linker=no 10687 ;; 10688 10689solaris*) 10690 version_type=linux 10691 need_lib_prefix=no 10692 need_version=no 10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10694 soname_spec='${libname}${release}${shared_ext}$major' 10695 shlibpath_var=LD_LIBRARY_PATH 10696 shlibpath_overrides_runpath=yes 10697 hardcode_into_libs=yes 10698 # ldd complains unless libraries are executable 10699 postinstall_cmds='chmod +x $lib' 10700 ;; 10701 10702sunos4*) 10703 version_type=sunos 10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10705 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10706 shlibpath_var=LD_LIBRARY_PATH 10707 shlibpath_overrides_runpath=yes 10708 if test "$with_gnu_ld" = yes; then 10709 need_lib_prefix=no 10710 fi 10711 need_version=yes 10712 ;; 10713 10714sysv4 | sysv4.3*) 10715 version_type=linux 10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10717 soname_spec='${libname}${release}${shared_ext}$major' 10718 shlibpath_var=LD_LIBRARY_PATH 10719 case $host_vendor in 10720 sni) 10721 shlibpath_overrides_runpath=no 10722 need_lib_prefix=no 10723 runpath_var=LD_RUN_PATH 10724 ;; 10725 siemens) 10726 need_lib_prefix=no 10727 ;; 10728 motorola) 10729 need_lib_prefix=no 10730 need_version=no 10731 shlibpath_overrides_runpath=no 10732 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10733 ;; 10734 esac 10735 ;; 10736 10737sysv4*MP*) 10738 if test -d /usr/nec ;then 10739 version_type=linux 10740 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10741 soname_spec='$libname${shared_ext}.$major' 10742 shlibpath_var=LD_LIBRARY_PATH 10743 fi 10744 ;; 10745 10746sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10747 version_type=freebsd-elf 10748 need_lib_prefix=no 10749 need_version=no 10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10751 soname_spec='${libname}${release}${shared_ext}$major' 10752 shlibpath_var=LD_LIBRARY_PATH 10753 shlibpath_overrides_runpath=yes 10754 hardcode_into_libs=yes 10755 if test "$with_gnu_ld" = yes; then 10756 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10757 else 10758 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10759 case $host_os in 10760 sco3.2v5*) 10761 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10762 ;; 10763 esac 10764 fi 10765 sys_lib_dlsearch_path_spec='/usr/lib' 10766 ;; 10767 10768tpf*) 10769 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10770 version_type=linux 10771 need_lib_prefix=no 10772 need_version=no 10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10774 shlibpath_var=LD_LIBRARY_PATH 10775 shlibpath_overrides_runpath=no 10776 hardcode_into_libs=yes 10777 ;; 10778 10779uts4*) 10780 version_type=linux 10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10782 soname_spec='${libname}${release}${shared_ext}$major' 10783 shlibpath_var=LD_LIBRARY_PATH 10784 ;; 10785 10786*) 10787 dynamic_linker=no 10788 ;; 10789esac 10790{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10791$as_echo "$dynamic_linker" >&6; } 10792test "$dynamic_linker" = no && can_build_shared=no 10793 10794variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10795if test "$GCC" = yes; then 10796 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10797fi 10798 10799if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10800 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10801fi 10802if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10803 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10804fi 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10893$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10894hardcode_action= 10895if test -n "$hardcode_libdir_flag_spec" || 10896 test -n "$runpath_var" || 10897 test "X$hardcode_automatic" = "Xyes" ; then 10898 10899 # We can hardcode non-existent directories. 10900 if test "$hardcode_direct" != no && 10901 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10902 # have to relink, otherwise we might link with an installed library 10903 # when we should be linking with a yet-to-be-installed one 10904 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10905 test "$hardcode_minus_L" != no; then 10906 # Linking always hardcodes the temporary library directory. 10907 hardcode_action=relink 10908 else 10909 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10910 hardcode_action=immediate 10911 fi 10912else 10913 # We cannot hardcode anything, or else we can only hardcode existing 10914 # directories. 10915 hardcode_action=unsupported 10916fi 10917{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10918$as_echo "$hardcode_action" >&6; } 10919 10920if test "$hardcode_action" = relink || 10921 test "$inherit_rpath" = yes; then 10922 # Fast installation is not supported 10923 enable_fast_install=no 10924elif test "$shlibpath_overrides_runpath" = yes || 10925 test "$enable_shared" = no; then 10926 # Fast installation is not necessary 10927 enable_fast_install=needless 10928fi 10929 10930 10931 10932 10933 10934 10935 if test "x$enable_dlopen" != xyes; then 10936 enable_dlopen=unknown 10937 enable_dlopen_self=unknown 10938 enable_dlopen_self_static=unknown 10939else 10940 lt_cv_dlopen=no 10941 lt_cv_dlopen_libs= 10942 10943 case $host_os in 10944 beos*) 10945 lt_cv_dlopen="load_add_on" 10946 lt_cv_dlopen_libs= 10947 lt_cv_dlopen_self=yes 10948 ;; 10949 10950 mingw* | pw32* | cegcc*) 10951 lt_cv_dlopen="LoadLibrary" 10952 lt_cv_dlopen_libs= 10953 ;; 10954 10955 cygwin*) 10956 lt_cv_dlopen="dlopen" 10957 lt_cv_dlopen_libs= 10958 ;; 10959 10960 darwin*) 10961 # if libdl is installed we need to link against it 10962 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10963$as_echo_n "checking for dlopen in -ldl... " >&6; } 10964if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10965 $as_echo_n "(cached) " >&6 10966else 10967 ac_check_lib_save_LIBS=$LIBS 10968LIBS="-ldl $LIBS" 10969cat >conftest.$ac_ext <<_ACEOF 10970/* confdefs.h. */ 10971_ACEOF 10972cat confdefs.h >>conftest.$ac_ext 10973cat >>conftest.$ac_ext <<_ACEOF 10974/* end confdefs.h. */ 10975 10976/* Override any GCC internal prototype to avoid an error. 10977 Use char because int might match the return type of a GCC 10978 builtin and then its argument prototype would still apply. */ 10979#ifdef __cplusplus 10980extern "C" 10981#endif 10982char dlopen (); 10983int 10984main () 10985{ 10986return dlopen (); 10987 ; 10988 return 0; 10989} 10990_ACEOF 10991rm -f conftest.$ac_objext conftest$ac_exeext 10992if { (ac_try="$ac_link" 10993case "(($ac_try" in 10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10995 *) ac_try_echo=$ac_try;; 10996esac 10997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10998$as_echo "$ac_try_echo") >&5 10999 (eval "$ac_link") 2>conftest.er1 11000 ac_status=$? 11001 grep -v '^ *+' conftest.er1 >conftest.err 11002 rm -f conftest.er1 11003 cat conftest.err >&5 11004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11005 (exit $ac_status); } && { 11006 test -z "$ac_c_werror_flag" || 11007 test ! -s conftest.err 11008 } && test -s conftest$ac_exeext && { 11009 test "$cross_compiling" = yes || 11010 $as_test_x conftest$ac_exeext 11011 }; then 11012 ac_cv_lib_dl_dlopen=yes 11013else 11014 $as_echo "$as_me: failed program was:" >&5 11015sed 's/^/| /' conftest.$ac_ext >&5 11016 11017 ac_cv_lib_dl_dlopen=no 11018fi 11019 11020rm -rf conftest.dSYM 11021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11022 conftest$ac_exeext conftest.$ac_ext 11023LIBS=$ac_check_lib_save_LIBS 11024fi 11025{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11026$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11027if test $ac_cv_lib_dl_dlopen = yes; then 11028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11029else 11030 11031 lt_cv_dlopen="dyld" 11032 lt_cv_dlopen_libs= 11033 lt_cv_dlopen_self=yes 11034 11035fi 11036 11037 ;; 11038 11039 *) 11040 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11041$as_echo_n "checking for shl_load... " >&6; } 11042if test "${ac_cv_func_shl_load+set}" = set; then 11043 $as_echo_n "(cached) " >&6 11044else 11045 cat >conftest.$ac_ext <<_ACEOF 11046/* confdefs.h. */ 11047_ACEOF 11048cat confdefs.h >>conftest.$ac_ext 11049cat >>conftest.$ac_ext <<_ACEOF 11050/* end confdefs.h. */ 11051/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11052 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11053#define shl_load innocuous_shl_load 11054 11055/* System header to define __stub macros and hopefully few prototypes, 11056 which can conflict with char shl_load (); below. 11057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11058 <limits.h> exists even on freestanding compilers. */ 11059 11060#ifdef __STDC__ 11061# include <limits.h> 11062#else 11063# include <assert.h> 11064#endif 11065 11066#undef shl_load 11067 11068/* Override any GCC internal prototype to avoid an error. 11069 Use char because int might match the return type of a GCC 11070 builtin and then its argument prototype would still apply. */ 11071#ifdef __cplusplus 11072extern "C" 11073#endif 11074char shl_load (); 11075/* The GNU C library defines this for functions which it implements 11076 to always fail with ENOSYS. Some functions are actually named 11077 something starting with __ and the normal name is an alias. */ 11078#if defined __stub_shl_load || defined __stub___shl_load 11079choke me 11080#endif 11081 11082int 11083main () 11084{ 11085return shl_load (); 11086 ; 11087 return 0; 11088} 11089_ACEOF 11090rm -f conftest.$ac_objext conftest$ac_exeext 11091if { (ac_try="$ac_link" 11092case "(($ac_try" in 11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11094 *) ac_try_echo=$ac_try;; 11095esac 11096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11097$as_echo "$ac_try_echo") >&5 11098 (eval "$ac_link") 2>conftest.er1 11099 ac_status=$? 11100 grep -v '^ *+' conftest.er1 >conftest.err 11101 rm -f conftest.er1 11102 cat conftest.err >&5 11103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11104 (exit $ac_status); } && { 11105 test -z "$ac_c_werror_flag" || 11106 test ! -s conftest.err 11107 } && test -s conftest$ac_exeext && { 11108 test "$cross_compiling" = yes || 11109 $as_test_x conftest$ac_exeext 11110 }; then 11111 ac_cv_func_shl_load=yes 11112else 11113 $as_echo "$as_me: failed program was:" >&5 11114sed 's/^/| /' conftest.$ac_ext >&5 11115 11116 ac_cv_func_shl_load=no 11117fi 11118 11119rm -rf conftest.dSYM 11120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11121 conftest$ac_exeext conftest.$ac_ext 11122fi 11123{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11124$as_echo "$ac_cv_func_shl_load" >&6; } 11125if test $ac_cv_func_shl_load = yes; then 11126 lt_cv_dlopen="shl_load" 11127else 11128 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11129$as_echo_n "checking for shl_load in -ldld... " >&6; } 11130if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11131 $as_echo_n "(cached) " >&6 11132else 11133 ac_check_lib_save_LIBS=$LIBS 11134LIBS="-ldld $LIBS" 11135cat >conftest.$ac_ext <<_ACEOF 11136/* confdefs.h. */ 11137_ACEOF 11138cat confdefs.h >>conftest.$ac_ext 11139cat >>conftest.$ac_ext <<_ACEOF 11140/* end confdefs.h. */ 11141 11142/* Override any GCC internal prototype to avoid an error. 11143 Use char because int might match the return type of a GCC 11144 builtin and then its argument prototype would still apply. */ 11145#ifdef __cplusplus 11146extern "C" 11147#endif 11148char shl_load (); 11149int 11150main () 11151{ 11152return shl_load (); 11153 ; 11154 return 0; 11155} 11156_ACEOF 11157rm -f conftest.$ac_objext conftest$ac_exeext 11158if { (ac_try="$ac_link" 11159case "(($ac_try" in 11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11161 *) ac_try_echo=$ac_try;; 11162esac 11163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11164$as_echo "$ac_try_echo") >&5 11165 (eval "$ac_link") 2>conftest.er1 11166 ac_status=$? 11167 grep -v '^ *+' conftest.er1 >conftest.err 11168 rm -f conftest.er1 11169 cat conftest.err >&5 11170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11171 (exit $ac_status); } && { 11172 test -z "$ac_c_werror_flag" || 11173 test ! -s conftest.err 11174 } && test -s conftest$ac_exeext && { 11175 test "$cross_compiling" = yes || 11176 $as_test_x conftest$ac_exeext 11177 }; then 11178 ac_cv_lib_dld_shl_load=yes 11179else 11180 $as_echo "$as_me: failed program was:" >&5 11181sed 's/^/| /' conftest.$ac_ext >&5 11182 11183 ac_cv_lib_dld_shl_load=no 11184fi 11185 11186rm -rf conftest.dSYM 11187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11188 conftest$ac_exeext conftest.$ac_ext 11189LIBS=$ac_check_lib_save_LIBS 11190fi 11191{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11192$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11193if test $ac_cv_lib_dld_shl_load = yes; then 11194 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11195else 11196 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11197$as_echo_n "checking for dlopen... " >&6; } 11198if test "${ac_cv_func_dlopen+set}" = set; then 11199 $as_echo_n "(cached) " >&6 11200else 11201 cat >conftest.$ac_ext <<_ACEOF 11202/* confdefs.h. */ 11203_ACEOF 11204cat confdefs.h >>conftest.$ac_ext 11205cat >>conftest.$ac_ext <<_ACEOF 11206/* end confdefs.h. */ 11207/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11208 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11209#define dlopen innocuous_dlopen 11210 11211/* System header to define __stub macros and hopefully few prototypes, 11212 which can conflict with char dlopen (); below. 11213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11214 <limits.h> exists even on freestanding compilers. */ 11215 11216#ifdef __STDC__ 11217# include <limits.h> 11218#else 11219# include <assert.h> 11220#endif 11221 11222#undef dlopen 11223 11224/* Override any GCC internal prototype to avoid an error. 11225 Use char because int might match the return type of a GCC 11226 builtin and then its argument prototype would still apply. */ 11227#ifdef __cplusplus 11228extern "C" 11229#endif 11230char dlopen (); 11231/* The GNU C library defines this for functions which it implements 11232 to always fail with ENOSYS. Some functions are actually named 11233 something starting with __ and the normal name is an alias. */ 11234#if defined __stub_dlopen || defined __stub___dlopen 11235choke me 11236#endif 11237 11238int 11239main () 11240{ 11241return dlopen (); 11242 ; 11243 return 0; 11244} 11245_ACEOF 11246rm -f conftest.$ac_objext conftest$ac_exeext 11247if { (ac_try="$ac_link" 11248case "(($ac_try" in 11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11250 *) ac_try_echo=$ac_try;; 11251esac 11252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11253$as_echo "$ac_try_echo") >&5 11254 (eval "$ac_link") 2>conftest.er1 11255 ac_status=$? 11256 grep -v '^ *+' conftest.er1 >conftest.err 11257 rm -f conftest.er1 11258 cat conftest.err >&5 11259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11260 (exit $ac_status); } && { 11261 test -z "$ac_c_werror_flag" || 11262 test ! -s conftest.err 11263 } && test -s conftest$ac_exeext && { 11264 test "$cross_compiling" = yes || 11265 $as_test_x conftest$ac_exeext 11266 }; then 11267 ac_cv_func_dlopen=yes 11268else 11269 $as_echo "$as_me: failed program was:" >&5 11270sed 's/^/| /' conftest.$ac_ext >&5 11271 11272 ac_cv_func_dlopen=no 11273fi 11274 11275rm -rf conftest.dSYM 11276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11277 conftest$ac_exeext conftest.$ac_ext 11278fi 11279{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11280$as_echo "$ac_cv_func_dlopen" >&6; } 11281if test $ac_cv_func_dlopen = yes; then 11282 lt_cv_dlopen="dlopen" 11283else 11284 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11285$as_echo_n "checking for dlopen in -ldl... " >&6; } 11286if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11287 $as_echo_n "(cached) " >&6 11288else 11289 ac_check_lib_save_LIBS=$LIBS 11290LIBS="-ldl $LIBS" 11291cat >conftest.$ac_ext <<_ACEOF 11292/* confdefs.h. */ 11293_ACEOF 11294cat confdefs.h >>conftest.$ac_ext 11295cat >>conftest.$ac_ext <<_ACEOF 11296/* end confdefs.h. */ 11297 11298/* Override any GCC internal prototype to avoid an error. 11299 Use char because int might match the return type of a GCC 11300 builtin and then its argument prototype would still apply. */ 11301#ifdef __cplusplus 11302extern "C" 11303#endif 11304char dlopen (); 11305int 11306main () 11307{ 11308return dlopen (); 11309 ; 11310 return 0; 11311} 11312_ACEOF 11313rm -f conftest.$ac_objext conftest$ac_exeext 11314if { (ac_try="$ac_link" 11315case "(($ac_try" in 11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11317 *) ac_try_echo=$ac_try;; 11318esac 11319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11320$as_echo "$ac_try_echo") >&5 11321 (eval "$ac_link") 2>conftest.er1 11322 ac_status=$? 11323 grep -v '^ *+' conftest.er1 >conftest.err 11324 rm -f conftest.er1 11325 cat conftest.err >&5 11326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11327 (exit $ac_status); } && { 11328 test -z "$ac_c_werror_flag" || 11329 test ! -s conftest.err 11330 } && test -s conftest$ac_exeext && { 11331 test "$cross_compiling" = yes || 11332 $as_test_x conftest$ac_exeext 11333 }; then 11334 ac_cv_lib_dl_dlopen=yes 11335else 11336 $as_echo "$as_me: failed program was:" >&5 11337sed 's/^/| /' conftest.$ac_ext >&5 11338 11339 ac_cv_lib_dl_dlopen=no 11340fi 11341 11342rm -rf conftest.dSYM 11343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11344 conftest$ac_exeext conftest.$ac_ext 11345LIBS=$ac_check_lib_save_LIBS 11346fi 11347{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11348$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11349if test $ac_cv_lib_dl_dlopen = yes; then 11350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11351else 11352 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11353$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11354if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11355 $as_echo_n "(cached) " >&6 11356else 11357 ac_check_lib_save_LIBS=$LIBS 11358LIBS="-lsvld $LIBS" 11359cat >conftest.$ac_ext <<_ACEOF 11360/* confdefs.h. */ 11361_ACEOF 11362cat confdefs.h >>conftest.$ac_ext 11363cat >>conftest.$ac_ext <<_ACEOF 11364/* end confdefs.h. */ 11365 11366/* Override any GCC internal prototype to avoid an error. 11367 Use char because int might match the return type of a GCC 11368 builtin and then its argument prototype would still apply. */ 11369#ifdef __cplusplus 11370extern "C" 11371#endif 11372char dlopen (); 11373int 11374main () 11375{ 11376return dlopen (); 11377 ; 11378 return 0; 11379} 11380_ACEOF 11381rm -f conftest.$ac_objext conftest$ac_exeext 11382if { (ac_try="$ac_link" 11383case "(($ac_try" in 11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11385 *) ac_try_echo=$ac_try;; 11386esac 11387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11388$as_echo "$ac_try_echo") >&5 11389 (eval "$ac_link") 2>conftest.er1 11390 ac_status=$? 11391 grep -v '^ *+' conftest.er1 >conftest.err 11392 rm -f conftest.er1 11393 cat conftest.err >&5 11394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11395 (exit $ac_status); } && { 11396 test -z "$ac_c_werror_flag" || 11397 test ! -s conftest.err 11398 } && test -s conftest$ac_exeext && { 11399 test "$cross_compiling" = yes || 11400 $as_test_x conftest$ac_exeext 11401 }; then 11402 ac_cv_lib_svld_dlopen=yes 11403else 11404 $as_echo "$as_me: failed program was:" >&5 11405sed 's/^/| /' conftest.$ac_ext >&5 11406 11407 ac_cv_lib_svld_dlopen=no 11408fi 11409 11410rm -rf conftest.dSYM 11411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11412 conftest$ac_exeext conftest.$ac_ext 11413LIBS=$ac_check_lib_save_LIBS 11414fi 11415{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11416$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11417if test $ac_cv_lib_svld_dlopen = yes; then 11418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11419else 11420 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11421$as_echo_n "checking for dld_link in -ldld... " >&6; } 11422if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11423 $as_echo_n "(cached) " >&6 11424else 11425 ac_check_lib_save_LIBS=$LIBS 11426LIBS="-ldld $LIBS" 11427cat >conftest.$ac_ext <<_ACEOF 11428/* confdefs.h. */ 11429_ACEOF 11430cat confdefs.h >>conftest.$ac_ext 11431cat >>conftest.$ac_ext <<_ACEOF 11432/* end confdefs.h. */ 11433 11434/* Override any GCC internal prototype to avoid an error. 11435 Use char because int might match the return type of a GCC 11436 builtin and then its argument prototype would still apply. */ 11437#ifdef __cplusplus 11438extern "C" 11439#endif 11440char dld_link (); 11441int 11442main () 11443{ 11444return dld_link (); 11445 ; 11446 return 0; 11447} 11448_ACEOF 11449rm -f conftest.$ac_objext conftest$ac_exeext 11450if { (ac_try="$ac_link" 11451case "(($ac_try" in 11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11453 *) ac_try_echo=$ac_try;; 11454esac 11455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11456$as_echo "$ac_try_echo") >&5 11457 (eval "$ac_link") 2>conftest.er1 11458 ac_status=$? 11459 grep -v '^ *+' conftest.er1 >conftest.err 11460 rm -f conftest.er1 11461 cat conftest.err >&5 11462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11463 (exit $ac_status); } && { 11464 test -z "$ac_c_werror_flag" || 11465 test ! -s conftest.err 11466 } && test -s conftest$ac_exeext && { 11467 test "$cross_compiling" = yes || 11468 $as_test_x conftest$ac_exeext 11469 }; then 11470 ac_cv_lib_dld_dld_link=yes 11471else 11472 $as_echo "$as_me: failed program was:" >&5 11473sed 's/^/| /' conftest.$ac_ext >&5 11474 11475 ac_cv_lib_dld_dld_link=no 11476fi 11477 11478rm -rf conftest.dSYM 11479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11480 conftest$ac_exeext conftest.$ac_ext 11481LIBS=$ac_check_lib_save_LIBS 11482fi 11483{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11484$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11485if test $ac_cv_lib_dld_dld_link = yes; then 11486 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11487fi 11488 11489 11490fi 11491 11492 11493fi 11494 11495 11496fi 11497 11498 11499fi 11500 11501 11502fi 11503 11504 ;; 11505 esac 11506 11507 if test "x$lt_cv_dlopen" != xno; then 11508 enable_dlopen=yes 11509 else 11510 enable_dlopen=no 11511 fi 11512 11513 case $lt_cv_dlopen in 11514 dlopen) 11515 save_CPPFLAGS="$CPPFLAGS" 11516 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11517 11518 save_LDFLAGS="$LDFLAGS" 11519 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11520 11521 save_LIBS="$LIBS" 11522 LIBS="$lt_cv_dlopen_libs $LIBS" 11523 11524 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11525$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11526if test "${lt_cv_dlopen_self+set}" = set; then 11527 $as_echo_n "(cached) " >&6 11528else 11529 if test "$cross_compiling" = yes; then : 11530 lt_cv_dlopen_self=cross 11531else 11532 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11533 lt_status=$lt_dlunknown 11534 cat > conftest.$ac_ext <<_LT_EOF 11535#line 11535 "configure" 11536#include "confdefs.h" 11537 11538#if HAVE_DLFCN_H 11539#include <dlfcn.h> 11540#endif 11541 11542#include <stdio.h> 11543 11544#ifdef RTLD_GLOBAL 11545# define LT_DLGLOBAL RTLD_GLOBAL 11546#else 11547# ifdef DL_GLOBAL 11548# define LT_DLGLOBAL DL_GLOBAL 11549# else 11550# define LT_DLGLOBAL 0 11551# endif 11552#endif 11553 11554/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11555 find out it does not work in some platform. */ 11556#ifndef LT_DLLAZY_OR_NOW 11557# ifdef RTLD_LAZY 11558# define LT_DLLAZY_OR_NOW RTLD_LAZY 11559# else 11560# ifdef DL_LAZY 11561# define LT_DLLAZY_OR_NOW DL_LAZY 11562# else 11563# ifdef RTLD_NOW 11564# define LT_DLLAZY_OR_NOW RTLD_NOW 11565# else 11566# ifdef DL_NOW 11567# define LT_DLLAZY_OR_NOW DL_NOW 11568# else 11569# define LT_DLLAZY_OR_NOW 0 11570# endif 11571# endif 11572# endif 11573# endif 11574#endif 11575 11576void fnord() { int i=42;} 11577int main () 11578{ 11579 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11580 int status = $lt_dlunknown; 11581 11582 if (self) 11583 { 11584 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11585 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11586 /* dlclose (self); */ 11587 } 11588 else 11589 puts (dlerror ()); 11590 11591 return status; 11592} 11593_LT_EOF 11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11595 (eval $ac_link) 2>&5 11596 ac_status=$? 11597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11598 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11599 (./conftest; exit; ) >&5 2>/dev/null 11600 lt_status=$? 11601 case x$lt_status in 11602 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11603 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11604 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11605 esac 11606 else : 11607 # compilation failed 11608 lt_cv_dlopen_self=no 11609 fi 11610fi 11611rm -fr conftest* 11612 11613 11614fi 11615{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11616$as_echo "$lt_cv_dlopen_self" >&6; } 11617 11618 if test "x$lt_cv_dlopen_self" = xyes; then 11619 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11620 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11621$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11622if test "${lt_cv_dlopen_self_static+set}" = set; then 11623 $as_echo_n "(cached) " >&6 11624else 11625 if test "$cross_compiling" = yes; then : 11626 lt_cv_dlopen_self_static=cross 11627else 11628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11629 lt_status=$lt_dlunknown 11630 cat > conftest.$ac_ext <<_LT_EOF 11631#line 11631 "configure" 11632#include "confdefs.h" 11633 11634#if HAVE_DLFCN_H 11635#include <dlfcn.h> 11636#endif 11637 11638#include <stdio.h> 11639 11640#ifdef RTLD_GLOBAL 11641# define LT_DLGLOBAL RTLD_GLOBAL 11642#else 11643# ifdef DL_GLOBAL 11644# define LT_DLGLOBAL DL_GLOBAL 11645# else 11646# define LT_DLGLOBAL 0 11647# endif 11648#endif 11649 11650/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11651 find out it does not work in some platform. */ 11652#ifndef LT_DLLAZY_OR_NOW 11653# ifdef RTLD_LAZY 11654# define LT_DLLAZY_OR_NOW RTLD_LAZY 11655# else 11656# ifdef DL_LAZY 11657# define LT_DLLAZY_OR_NOW DL_LAZY 11658# else 11659# ifdef RTLD_NOW 11660# define LT_DLLAZY_OR_NOW RTLD_NOW 11661# else 11662# ifdef DL_NOW 11663# define LT_DLLAZY_OR_NOW DL_NOW 11664# else 11665# define LT_DLLAZY_OR_NOW 0 11666# endif 11667# endif 11668# endif 11669# endif 11670#endif 11671 11672void fnord() { int i=42;} 11673int main () 11674{ 11675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11676 int status = $lt_dlunknown; 11677 11678 if (self) 11679 { 11680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11681 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11682 /* dlclose (self); */ 11683 } 11684 else 11685 puts (dlerror ()); 11686 11687 return status; 11688} 11689_LT_EOF 11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11691 (eval $ac_link) 2>&5 11692 ac_status=$? 11693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11694 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11695 (./conftest; exit; ) >&5 2>/dev/null 11696 lt_status=$? 11697 case x$lt_status in 11698 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11699 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11700 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11701 esac 11702 else : 11703 # compilation failed 11704 lt_cv_dlopen_self_static=no 11705 fi 11706fi 11707rm -fr conftest* 11708 11709 11710fi 11711{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11712$as_echo "$lt_cv_dlopen_self_static" >&6; } 11713 fi 11714 11715 CPPFLAGS="$save_CPPFLAGS" 11716 LDFLAGS="$save_LDFLAGS" 11717 LIBS="$save_LIBS" 11718 ;; 11719 esac 11720 11721 case $lt_cv_dlopen_self in 11722 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11723 *) enable_dlopen_self=unknown ;; 11724 esac 11725 11726 case $lt_cv_dlopen_self_static in 11727 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11728 *) enable_dlopen_self_static=unknown ;; 11729 esac 11730fi 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748striplib= 11749old_striplib= 11750{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11751$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11752if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11753 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11754 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11755 { $as_echo "$as_me:$LINENO: result: yes" >&5 11756$as_echo "yes" >&6; } 11757else 11758# FIXME - insert some real tests, host_os isn't really good enough 11759 case $host_os in 11760 darwin*) 11761 if test -n "$STRIP" ; then 11762 striplib="$STRIP -x" 11763 old_striplib="$STRIP -S" 11764 { $as_echo "$as_me:$LINENO: result: yes" >&5 11765$as_echo "yes" >&6; } 11766 else 11767 { $as_echo "$as_me:$LINENO: result: no" >&5 11768$as_echo "no" >&6; } 11769 fi 11770 ;; 11771 *) 11772 { $as_echo "$as_me:$LINENO: result: no" >&5 11773$as_echo "no" >&6; } 11774 ;; 11775 esac 11776fi 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 # Report which library types will actually be built 11790 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11791$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11792 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11793$as_echo "$can_build_shared" >&6; } 11794 11795 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11796$as_echo_n "checking whether to build shared libraries... " >&6; } 11797 test "$can_build_shared" = "no" && enable_shared=no 11798 11799 # On AIX, shared libraries and static libraries use the same namespace, and 11800 # are all built from PIC. 11801 case $host_os in 11802 aix3*) 11803 test "$enable_shared" = yes && enable_static=no 11804 if test -n "$RANLIB"; then 11805 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11806 postinstall_cmds='$RANLIB $lib' 11807 fi 11808 ;; 11809 11810 aix[4-9]*) 11811 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11812 test "$enable_shared" = yes && enable_static=no 11813 fi 11814 ;; 11815 esac 11816 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11817$as_echo "$enable_shared" >&6; } 11818 11819 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11820$as_echo_n "checking whether to build static libraries... " >&6; } 11821 # Make sure either enable_shared or enable_static is yes. 11822 test "$enable_shared" = yes || enable_static=yes 11823 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11824$as_echo "$enable_static" >&6; } 11825 11826 11827 11828 11829fi 11830ac_ext=c 11831ac_cpp='$CPP $CPPFLAGS' 11832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11834ac_compiler_gnu=$ac_cv_c_compiler_gnu 11835 11836CC="$lt_save_CC" 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 ac_config_commands="$ac_config_commands libtool" 11851 11852 11853 11854 11855# Only expand once: 11856 11857 11858if test -n "$ac_tool_prefix"; then 11859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11860set dummy ${ac_tool_prefix}strip; ac_word=$2 11861{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11862$as_echo_n "checking for $ac_word... " >&6; } 11863if test "${ac_cv_prog_STRIP+set}" = set; then 11864 $as_echo_n "(cached) " >&6 11865else 11866 if test -n "$STRIP"; then 11867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11868else 11869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11870for as_dir in $PATH 11871do 11872 IFS=$as_save_IFS 11873 test -z "$as_dir" && as_dir=. 11874 for ac_exec_ext in '' $ac_executable_extensions; do 11875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11876 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11878 break 2 11879 fi 11880done 11881done 11882IFS=$as_save_IFS 11883 11884fi 11885fi 11886STRIP=$ac_cv_prog_STRIP 11887if test -n "$STRIP"; then 11888 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 11889$as_echo "$STRIP" >&6; } 11890else 11891 { $as_echo "$as_me:$LINENO: result: no" >&5 11892$as_echo "no" >&6; } 11893fi 11894 11895 11896fi 11897if test -z "$ac_cv_prog_STRIP"; then 11898 ac_ct_STRIP=$STRIP 11899 # Extract the first word of "strip", so it can be a program name with args. 11900set dummy strip; ac_word=$2 11901{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11902$as_echo_n "checking for $ac_word... " >&6; } 11903if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 11904 $as_echo_n "(cached) " >&6 11905else 11906 if test -n "$ac_ct_STRIP"; then 11907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11908else 11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11910for as_dir in $PATH 11911do 11912 IFS=$as_save_IFS 11913 test -z "$as_dir" && as_dir=. 11914 for ac_exec_ext in '' $ac_executable_extensions; do 11915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11916 ac_cv_prog_ac_ct_STRIP="strip" 11917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11918 break 2 11919 fi 11920done 11921done 11922IFS=$as_save_IFS 11923 11924fi 11925fi 11926ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11927if test -n "$ac_ct_STRIP"; then 11928 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 11929$as_echo "$ac_ct_STRIP" >&6; } 11930else 11931 { $as_echo "$as_me:$LINENO: result: no" >&5 11932$as_echo "no" >&6; } 11933fi 11934 11935 if test "x$ac_ct_STRIP" = x; then 11936 STRIP="" 11937 else 11938 case $cross_compiling:$ac_tool_warned in 11939yes:) 11940{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11941whose name does not start with the host triplet. If you think this 11942configuration is useful to you, please write to autoconf@gnu.org." >&5 11943$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11944whose name does not start with the host triplet. If you think this 11945configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11946ac_tool_warned=yes ;; 11947esac 11948 STRIP=$ac_ct_STRIP 11949 fi 11950else 11951 STRIP="$ac_cv_prog_STRIP" 11952fi 11953 11954 11955# 11956# Options for building bsdtar. 11957# 11958# Default is to build bsdtar, but allow people to override that. 11959# 11960# Check whether --enable-bsdtar was given. 11961if test "${enable_bsdtar+set}" = set; then 11962 enableval=$enable_bsdtar; 11963else 11964 enable_bsdtar=yes 11965fi 11966 11967 11968case "$enable_bsdtar" in 11969yes) 11970 if test "$enable_static" = "no"; then 11971 static_bsdtar=no 11972 else 11973 static_bsdtar=yes 11974 fi 11975 build_bsdtar=yes 11976 ;; 11977dynamic|shared) 11978 if test "$enable_shared" = "no"; then 11979 { { $as_echo "$as_me:$LINENO: error: Shared linking of bsdtar requires shared libarchive 11980See \`config.log' for more details." >&5 11981$as_echo "$as_me: error: Shared linking of bsdtar requires shared libarchive 11982See \`config.log' for more details." >&2;} 11983 { (exit 1); exit 1; }; } 11984 fi 11985 build_bsdtar=yes 11986 static_bsdtar=no 11987 ;; 11988static) 11989 build_bsdtar=yes 11990 static_bsdtar=yes 11991 ;; 11992no) 11993 build_bsdtar=no 11994 static_bsdtar=no 11995 ;; 11996*) 11997 { { $as_echo "$as_me:$LINENO: error: Unsupported value for --enable-bsdtar 11998See \`config.log' for more details." >&5 11999$as_echo "$as_me: error: Unsupported value for --enable-bsdtar 12000See \`config.log' for more details." >&2;} 12001 { (exit 1); exit 1; }; } 12002 ;; 12003esac 12004 12005 if test "$build_bsdtar" = yes ; then 12006 BUILD_BSDTAR_TRUE= 12007 BUILD_BSDTAR_FALSE='#' 12008else 12009 BUILD_BSDTAR_TRUE='#' 12010 BUILD_BSDTAR_FALSE= 12011fi 12012 12013 if test "$static_bsdtar" = yes ; then 12014 STATIC_BSDTAR_TRUE= 12015 STATIC_BSDTAR_FALSE='#' 12016else 12017 STATIC_BSDTAR_TRUE='#' 12018 STATIC_BSDTAR_FALSE= 12019fi 12020 12021 12022# 12023# Options for building bsdcpio. 12024# 12025# Default is not to build bsdcpio, but that can be overridden. 12026# 12027# Check whether --enable-bsdcpio was given. 12028if test "${enable_bsdcpio+set}" = set; then 12029 enableval=$enable_bsdcpio; 12030else 12031 enable_bsdcpio=yes 12032fi 12033 12034 12035case "$enable_bsdcpio" in 12036yes) 12037 if test "$enable_static" = "no"; then 12038 static_bsdcpio=no 12039 else 12040 static_bsdcpio=yes 12041 fi 12042 build_bsdcpio=yes 12043 ;; 12044dynamic|shared) 12045 if test "$enabled_shared" = "no"; then 12046 { { $as_echo "$as_me:$LINENO: error: Shared linking of bsdcpio requires shared libarchive 12047See \`config.log' for more details." >&5 12048$as_echo "$as_me: error: Shared linking of bsdcpio requires shared libarchive 12049See \`config.log' for more details." >&2;} 12050 { (exit 1); exit 1; }; } 12051 fi 12052 build_bsdcpio=yes 12053 ;; 12054static) 12055 build_bsdcpio=yes 12056 static_bsdcpio=yes 12057 ;; 12058no) 12059 build_bsdcpio=no 12060 static_bsdcpio=no 12061 ;; 12062*) 12063 { { $as_echo "$as_me:$LINENO: error: Unsupported value for --enable-bsdcpio 12064See \`config.log' for more details." >&5 12065$as_echo "$as_me: error: Unsupported value for --enable-bsdcpio 12066See \`config.log' for more details." >&2;} 12067 { (exit 1); exit 1; }; } 12068 ;; 12069esac 12070 12071 if test "$build_bsdcpio" = yes ; then 12072 BUILD_BSDCPIO_TRUE= 12073 BUILD_BSDCPIO_FALSE='#' 12074else 12075 BUILD_BSDCPIO_TRUE='#' 12076 BUILD_BSDCPIO_FALSE= 12077fi 12078 12079 if test "$static_bsdcpio" = yes ; then 12080 STATIC_BSDCPIO_TRUE= 12081 STATIC_BSDCPIO_FALSE='#' 12082else 12083 STATIC_BSDCPIO_TRUE='#' 12084 STATIC_BSDCPIO_FALSE= 12085fi 12086 12087 12088# Set up defines needed before including any headers 12089case $host in 12090 *mingw* | *cygwin* ) 12091 12092cat >>confdefs.h <<\_ACEOF 12093#define _WIN32_WINNT 0x0500 12094_ACEOF 12095 12096 12097cat >>confdefs.h <<\_ACEOF 12098#define WINVER 0x0500 12099_ACEOF 12100 12101 ;; 12102esac 12103 12104# Checks for header files. 12105 12106 12107 12108 12109 12110ac_header_dirent=no 12111for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 12112 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 12113{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 12114$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 12115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12116 $as_echo_n "(cached) " >&6 12117else 12118 cat >conftest.$ac_ext <<_ACEOF 12119/* confdefs.h. */ 12120_ACEOF 12121cat confdefs.h >>conftest.$ac_ext 12122cat >>conftest.$ac_ext <<_ACEOF 12123/* end confdefs.h. */ 12124#include <sys/types.h> 12125#include <$ac_hdr> 12126 12127int 12128main () 12129{ 12130if ((DIR *) 0) 12131return 0; 12132 ; 12133 return 0; 12134} 12135_ACEOF 12136rm -f conftest.$ac_objext 12137if { (ac_try="$ac_compile" 12138case "(($ac_try" in 12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12140 *) ac_try_echo=$ac_try;; 12141esac 12142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12143$as_echo "$ac_try_echo") >&5 12144 (eval "$ac_compile") 2>conftest.er1 12145 ac_status=$? 12146 grep -v '^ *+' conftest.er1 >conftest.err 12147 rm -f conftest.er1 12148 cat conftest.err >&5 12149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12150 (exit $ac_status); } && { 12151 test -z "$ac_c_werror_flag" || 12152 test ! -s conftest.err 12153 } && test -s conftest.$ac_objext; then 12154 eval "$as_ac_Header=yes" 12155else 12156 $as_echo "$as_me: failed program was:" >&5 12157sed 's/^/| /' conftest.$ac_ext >&5 12158 12159 eval "$as_ac_Header=no" 12160fi 12161 12162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12163fi 12164ac_res=`eval 'as_val=${'$as_ac_Header'} 12165 $as_echo "$as_val"'` 12166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12167$as_echo "$ac_res" >&6; } 12168if test `eval 'as_val=${'$as_ac_Header'} 12169 $as_echo "$as_val"'` = yes; then 12170 cat >>confdefs.h <<_ACEOF 12171#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 12172_ACEOF 12173 12174ac_header_dirent=$ac_hdr; break 12175fi 12176 12177done 12178# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 12179if test $ac_header_dirent = dirent.h; then 12180 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 12181$as_echo_n "checking for library containing opendir... " >&6; } 12182if test "${ac_cv_search_opendir+set}" = set; then 12183 $as_echo_n "(cached) " >&6 12184else 12185 ac_func_search_save_LIBS=$LIBS 12186cat >conftest.$ac_ext <<_ACEOF 12187/* confdefs.h. */ 12188_ACEOF 12189cat confdefs.h >>conftest.$ac_ext 12190cat >>conftest.$ac_ext <<_ACEOF 12191/* end confdefs.h. */ 12192 12193/* Override any GCC internal prototype to avoid an error. 12194 Use char because int might match the return type of a GCC 12195 builtin and then its argument prototype would still apply. */ 12196#ifdef __cplusplus 12197extern "C" 12198#endif 12199char opendir (); 12200int 12201main () 12202{ 12203return opendir (); 12204 ; 12205 return 0; 12206} 12207_ACEOF 12208for ac_lib in '' dir; do 12209 if test -z "$ac_lib"; then 12210 ac_res="none required" 12211 else 12212 ac_res=-l$ac_lib 12213 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12214 fi 12215 rm -f conftest.$ac_objext conftest$ac_exeext 12216if { (ac_try="$ac_link" 12217case "(($ac_try" in 12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12219 *) ac_try_echo=$ac_try;; 12220esac 12221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12222$as_echo "$ac_try_echo") >&5 12223 (eval "$ac_link") 2>conftest.er1 12224 ac_status=$? 12225 grep -v '^ *+' conftest.er1 >conftest.err 12226 rm -f conftest.er1 12227 cat conftest.err >&5 12228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12229 (exit $ac_status); } && { 12230 test -z "$ac_c_werror_flag" || 12231 test ! -s conftest.err 12232 } && test -s conftest$ac_exeext && { 12233 test "$cross_compiling" = yes || 12234 $as_test_x conftest$ac_exeext 12235 }; then 12236 ac_cv_search_opendir=$ac_res 12237else 12238 $as_echo "$as_me: failed program was:" >&5 12239sed 's/^/| /' conftest.$ac_ext >&5 12240 12241 12242fi 12243 12244rm -rf conftest.dSYM 12245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12246 conftest$ac_exeext 12247 if test "${ac_cv_search_opendir+set}" = set; then 12248 break 12249fi 12250done 12251if test "${ac_cv_search_opendir+set}" = set; then 12252 : 12253else 12254 ac_cv_search_opendir=no 12255fi 12256rm conftest.$ac_ext 12257LIBS=$ac_func_search_save_LIBS 12258fi 12259{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 12260$as_echo "$ac_cv_search_opendir" >&6; } 12261ac_res=$ac_cv_search_opendir 12262if test "$ac_res" != no; then 12263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12264 12265fi 12266 12267else 12268 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 12269$as_echo_n "checking for library containing opendir... " >&6; } 12270if test "${ac_cv_search_opendir+set}" = set; then 12271 $as_echo_n "(cached) " >&6 12272else 12273 ac_func_search_save_LIBS=$LIBS 12274cat >conftest.$ac_ext <<_ACEOF 12275/* confdefs.h. */ 12276_ACEOF 12277cat confdefs.h >>conftest.$ac_ext 12278cat >>conftest.$ac_ext <<_ACEOF 12279/* end confdefs.h. */ 12280 12281/* Override any GCC internal prototype to avoid an error. 12282 Use char because int might match the return type of a GCC 12283 builtin and then its argument prototype would still apply. */ 12284#ifdef __cplusplus 12285extern "C" 12286#endif 12287char opendir (); 12288int 12289main () 12290{ 12291return opendir (); 12292 ; 12293 return 0; 12294} 12295_ACEOF 12296for ac_lib in '' x; do 12297 if test -z "$ac_lib"; then 12298 ac_res="none required" 12299 else 12300 ac_res=-l$ac_lib 12301 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12302 fi 12303 rm -f conftest.$ac_objext conftest$ac_exeext 12304if { (ac_try="$ac_link" 12305case "(($ac_try" in 12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12307 *) ac_try_echo=$ac_try;; 12308esac 12309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12310$as_echo "$ac_try_echo") >&5 12311 (eval "$ac_link") 2>conftest.er1 12312 ac_status=$? 12313 grep -v '^ *+' conftest.er1 >conftest.err 12314 rm -f conftest.er1 12315 cat conftest.err >&5 12316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12317 (exit $ac_status); } && { 12318 test -z "$ac_c_werror_flag" || 12319 test ! -s conftest.err 12320 } && test -s conftest$ac_exeext && { 12321 test "$cross_compiling" = yes || 12322 $as_test_x conftest$ac_exeext 12323 }; then 12324 ac_cv_search_opendir=$ac_res 12325else 12326 $as_echo "$as_me: failed program was:" >&5 12327sed 's/^/| /' conftest.$ac_ext >&5 12328 12329 12330fi 12331 12332rm -rf conftest.dSYM 12333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12334 conftest$ac_exeext 12335 if test "${ac_cv_search_opendir+set}" = set; then 12336 break 12337fi 12338done 12339if test "${ac_cv_search_opendir+set}" = set; then 12340 : 12341else 12342 ac_cv_search_opendir=no 12343fi 12344rm conftest.$ac_ext 12345LIBS=$ac_func_search_save_LIBS 12346fi 12347{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 12348$as_echo "$ac_cv_search_opendir" >&6; } 12349ac_res=$ac_cv_search_opendir 12350if test "$ac_res" != no; then 12351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12352 12353fi 12354 12355fi 12356 12357{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 12358$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12359if test "${ac_cv_header_sys_wait_h+set}" = set; then 12360 $as_echo_n "(cached) " >&6 12361else 12362 cat >conftest.$ac_ext <<_ACEOF 12363/* confdefs.h. */ 12364_ACEOF 12365cat confdefs.h >>conftest.$ac_ext 12366cat >>conftest.$ac_ext <<_ACEOF 12367/* end confdefs.h. */ 12368#include <sys/types.h> 12369#include <sys/wait.h> 12370#ifndef WEXITSTATUS 12371# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 12372#endif 12373#ifndef WIFEXITED 12374# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 12375#endif 12376 12377int 12378main () 12379{ 12380 int s; 12381 wait (&s); 12382 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12383 ; 12384 return 0; 12385} 12386_ACEOF 12387rm -f conftest.$ac_objext 12388if { (ac_try="$ac_compile" 12389case "(($ac_try" in 12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12391 *) ac_try_echo=$ac_try;; 12392esac 12393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12394$as_echo "$ac_try_echo") >&5 12395 (eval "$ac_compile") 2>conftest.er1 12396 ac_status=$? 12397 grep -v '^ *+' conftest.er1 >conftest.err 12398 rm -f conftest.er1 12399 cat conftest.err >&5 12400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12401 (exit $ac_status); } && { 12402 test -z "$ac_c_werror_flag" || 12403 test ! -s conftest.err 12404 } && test -s conftest.$ac_objext; then 12405 ac_cv_header_sys_wait_h=yes 12406else 12407 $as_echo "$as_me: failed program was:" >&5 12408sed 's/^/| /' conftest.$ac_ext >&5 12409 12410 ac_cv_header_sys_wait_h=no 12411fi 12412 12413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12414fi 12415{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 12416$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12417if test $ac_cv_header_sys_wait_h = yes; then 12418 12419cat >>confdefs.h <<\_ACEOF 12420#define HAVE_SYS_WAIT_H 1 12421_ACEOF 12422 12423fi 12424 12425 12426 12427 12428 12429for ac_header in acl/libacl.h attr/xattr.h ctype.h errno.h 12430do 12431as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12433 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12434$as_echo_n "checking for $ac_header... " >&6; } 12435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12436 $as_echo_n "(cached) " >&6 12437fi 12438ac_res=`eval 'as_val=${'$as_ac_Header'} 12439 $as_echo "$as_val"'` 12440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12441$as_echo "$ac_res" >&6; } 12442else 12443 # Is the header compilable? 12444{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12445$as_echo_n "checking $ac_header usability... " >&6; } 12446cat >conftest.$ac_ext <<_ACEOF 12447/* confdefs.h. */ 12448_ACEOF 12449cat confdefs.h >>conftest.$ac_ext 12450cat >>conftest.$ac_ext <<_ACEOF 12451/* end confdefs.h. */ 12452$ac_includes_default 12453#include <$ac_header> 12454_ACEOF 12455rm -f conftest.$ac_objext 12456if { (ac_try="$ac_compile" 12457case "(($ac_try" in 12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12459 *) ac_try_echo=$ac_try;; 12460esac 12461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12462$as_echo "$ac_try_echo") >&5 12463 (eval "$ac_compile") 2>conftest.er1 12464 ac_status=$? 12465 grep -v '^ *+' conftest.er1 >conftest.err 12466 rm -f conftest.er1 12467 cat conftest.err >&5 12468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12469 (exit $ac_status); } && { 12470 test -z "$ac_c_werror_flag" || 12471 test ! -s conftest.err 12472 } && test -s conftest.$ac_objext; then 12473 ac_header_compiler=yes 12474else 12475 $as_echo "$as_me: failed program was:" >&5 12476sed 's/^/| /' conftest.$ac_ext >&5 12477 12478 ac_header_compiler=no 12479fi 12480 12481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12482{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12483$as_echo "$ac_header_compiler" >&6; } 12484 12485# Is the header present? 12486{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12487$as_echo_n "checking $ac_header presence... " >&6; } 12488cat >conftest.$ac_ext <<_ACEOF 12489/* confdefs.h. */ 12490_ACEOF 12491cat confdefs.h >>conftest.$ac_ext 12492cat >>conftest.$ac_ext <<_ACEOF 12493/* end confdefs.h. */ 12494#include <$ac_header> 12495_ACEOF 12496if { (ac_try="$ac_cpp conftest.$ac_ext" 12497case "(($ac_try" in 12498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12499 *) ac_try_echo=$ac_try;; 12500esac 12501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12502$as_echo "$ac_try_echo") >&5 12503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12504 ac_status=$? 12505 grep -v '^ *+' conftest.er1 >conftest.err 12506 rm -f conftest.er1 12507 cat conftest.err >&5 12508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12509 (exit $ac_status); } >/dev/null && { 12510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12511 test ! -s conftest.err 12512 }; then 12513 ac_header_preproc=yes 12514else 12515 $as_echo "$as_me: failed program was:" >&5 12516sed 's/^/| /' conftest.$ac_ext >&5 12517 12518 ac_header_preproc=no 12519fi 12520 12521rm -f conftest.err conftest.$ac_ext 12522{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12523$as_echo "$ac_header_preproc" >&6; } 12524 12525# So? What about this header? 12526case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12527 yes:no: ) 12528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12529$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12531$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12532 ac_header_preproc=yes 12533 ;; 12534 no:yes:* ) 12535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12536$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12538$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12540$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12542$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12544$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12546$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12547 ( cat <<\_ASBOX 12548## ----------------------------------- ## 12549## Report this to kientzle@freebsd.org ## 12550## ----------------------------------- ## 12551_ASBOX 12552 ) | sed "s/^/$as_me: WARNING: /" >&2 12553 ;; 12554esac 12555{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12556$as_echo_n "checking for $ac_header... " >&6; } 12557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12558 $as_echo_n "(cached) " >&6 12559else 12560 eval "$as_ac_Header=\$ac_header_preproc" 12561fi 12562ac_res=`eval 'as_val=${'$as_ac_Header'} 12563 $as_echo "$as_val"'` 12564 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12565$as_echo "$ac_res" >&6; } 12566 12567fi 12568if test `eval 'as_val=${'$as_ac_Header'} 12569 $as_echo "$as_val"'` = yes; then 12570 cat >>confdefs.h <<_ACEOF 12571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12572_ACEOF 12573 12574fi 12575 12576done 12577 12578 12579 12580 12581for ac_header in ext2fs/ext2_fs.h fcntl.h grp.h 12582do 12583as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12586$as_echo_n "checking for $ac_header... " >&6; } 12587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12588 $as_echo_n "(cached) " >&6 12589fi 12590ac_res=`eval 'as_val=${'$as_ac_Header'} 12591 $as_echo "$as_val"'` 12592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12593$as_echo "$ac_res" >&6; } 12594else 12595 # Is the header compilable? 12596{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12597$as_echo_n "checking $ac_header usability... " >&6; } 12598cat >conftest.$ac_ext <<_ACEOF 12599/* confdefs.h. */ 12600_ACEOF 12601cat confdefs.h >>conftest.$ac_ext 12602cat >>conftest.$ac_ext <<_ACEOF 12603/* end confdefs.h. */ 12604$ac_includes_default 12605#include <$ac_header> 12606_ACEOF 12607rm -f conftest.$ac_objext 12608if { (ac_try="$ac_compile" 12609case "(($ac_try" in 12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12611 *) ac_try_echo=$ac_try;; 12612esac 12613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12614$as_echo "$ac_try_echo") >&5 12615 (eval "$ac_compile") 2>conftest.er1 12616 ac_status=$? 12617 grep -v '^ *+' conftest.er1 >conftest.err 12618 rm -f conftest.er1 12619 cat conftest.err >&5 12620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12621 (exit $ac_status); } && { 12622 test -z "$ac_c_werror_flag" || 12623 test ! -s conftest.err 12624 } && test -s conftest.$ac_objext; then 12625 ac_header_compiler=yes 12626else 12627 $as_echo "$as_me: failed program was:" >&5 12628sed 's/^/| /' conftest.$ac_ext >&5 12629 12630 ac_header_compiler=no 12631fi 12632 12633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12634{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12635$as_echo "$ac_header_compiler" >&6; } 12636 12637# Is the header present? 12638{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12639$as_echo_n "checking $ac_header presence... " >&6; } 12640cat >conftest.$ac_ext <<_ACEOF 12641/* confdefs.h. */ 12642_ACEOF 12643cat confdefs.h >>conftest.$ac_ext 12644cat >>conftest.$ac_ext <<_ACEOF 12645/* end confdefs.h. */ 12646#include <$ac_header> 12647_ACEOF 12648if { (ac_try="$ac_cpp conftest.$ac_ext" 12649case "(($ac_try" in 12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12651 *) ac_try_echo=$ac_try;; 12652esac 12653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12654$as_echo "$ac_try_echo") >&5 12655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12656 ac_status=$? 12657 grep -v '^ *+' conftest.er1 >conftest.err 12658 rm -f conftest.er1 12659 cat conftest.err >&5 12660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12661 (exit $ac_status); } >/dev/null && { 12662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12663 test ! -s conftest.err 12664 }; then 12665 ac_header_preproc=yes 12666else 12667 $as_echo "$as_me: failed program was:" >&5 12668sed 's/^/| /' conftest.$ac_ext >&5 12669 12670 ac_header_preproc=no 12671fi 12672 12673rm -f conftest.err conftest.$ac_ext 12674{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12675$as_echo "$ac_header_preproc" >&6; } 12676 12677# So? What about this header? 12678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12679 yes:no: ) 12680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12681$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12683$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12684 ac_header_preproc=yes 12685 ;; 12686 no:yes:* ) 12687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12688$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12690$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12692$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12694$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12696$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12698$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12699 ( cat <<\_ASBOX 12700## ----------------------------------- ## 12701## Report this to kientzle@freebsd.org ## 12702## ----------------------------------- ## 12703_ASBOX 12704 ) | sed "s/^/$as_me: WARNING: /" >&2 12705 ;; 12706esac 12707{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12708$as_echo_n "checking for $ac_header... " >&6; } 12709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12710 $as_echo_n "(cached) " >&6 12711else 12712 eval "$as_ac_Header=\$ac_header_preproc" 12713fi 12714ac_res=`eval 'as_val=${'$as_ac_Header'} 12715 $as_echo "$as_val"'` 12716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12717$as_echo "$ac_res" >&6; } 12718 12719fi 12720if test `eval 'as_val=${'$as_ac_Header'} 12721 $as_echo "$as_val"'` = yes; then 12722 cat >>confdefs.h <<_ACEOF 12723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12724_ACEOF 12725 12726fi 12727 12728done 12729 12730 12731 12732 12733 12734 12735for ac_header in inttypes.h io.h langinfo.h limits.h linux/fs.h 12736do 12737as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12739 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12740$as_echo_n "checking for $ac_header... " >&6; } 12741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12742 $as_echo_n "(cached) " >&6 12743fi 12744ac_res=`eval 'as_val=${'$as_ac_Header'} 12745 $as_echo "$as_val"'` 12746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12747$as_echo "$ac_res" >&6; } 12748else 12749 # Is the header compilable? 12750{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12751$as_echo_n "checking $ac_header usability... " >&6; } 12752cat >conftest.$ac_ext <<_ACEOF 12753/* confdefs.h. */ 12754_ACEOF 12755cat confdefs.h >>conftest.$ac_ext 12756cat >>conftest.$ac_ext <<_ACEOF 12757/* end confdefs.h. */ 12758$ac_includes_default 12759#include <$ac_header> 12760_ACEOF 12761rm -f conftest.$ac_objext 12762if { (ac_try="$ac_compile" 12763case "(($ac_try" in 12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12765 *) ac_try_echo=$ac_try;; 12766esac 12767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12768$as_echo "$ac_try_echo") >&5 12769 (eval "$ac_compile") 2>conftest.er1 12770 ac_status=$? 12771 grep -v '^ *+' conftest.er1 >conftest.err 12772 rm -f conftest.er1 12773 cat conftest.err >&5 12774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12775 (exit $ac_status); } && { 12776 test -z "$ac_c_werror_flag" || 12777 test ! -s conftest.err 12778 } && test -s conftest.$ac_objext; then 12779 ac_header_compiler=yes 12780else 12781 $as_echo "$as_me: failed program was:" >&5 12782sed 's/^/| /' conftest.$ac_ext >&5 12783 12784 ac_header_compiler=no 12785fi 12786 12787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12788{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12789$as_echo "$ac_header_compiler" >&6; } 12790 12791# Is the header present? 12792{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12793$as_echo_n "checking $ac_header presence... " >&6; } 12794cat >conftest.$ac_ext <<_ACEOF 12795/* confdefs.h. */ 12796_ACEOF 12797cat confdefs.h >>conftest.$ac_ext 12798cat >>conftest.$ac_ext <<_ACEOF 12799/* end confdefs.h. */ 12800#include <$ac_header> 12801_ACEOF 12802if { (ac_try="$ac_cpp conftest.$ac_ext" 12803case "(($ac_try" in 12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12805 *) ac_try_echo=$ac_try;; 12806esac 12807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12808$as_echo "$ac_try_echo") >&5 12809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12810 ac_status=$? 12811 grep -v '^ *+' conftest.er1 >conftest.err 12812 rm -f conftest.er1 12813 cat conftest.err >&5 12814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12815 (exit $ac_status); } >/dev/null && { 12816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12817 test ! -s conftest.err 12818 }; then 12819 ac_header_preproc=yes 12820else 12821 $as_echo "$as_me: failed program was:" >&5 12822sed 's/^/| /' conftest.$ac_ext >&5 12823 12824 ac_header_preproc=no 12825fi 12826 12827rm -f conftest.err conftest.$ac_ext 12828{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12829$as_echo "$ac_header_preproc" >&6; } 12830 12831# So? What about this header? 12832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12833 yes:no: ) 12834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12835$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12837$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12838 ac_header_preproc=yes 12839 ;; 12840 no:yes:* ) 12841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12842$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12844$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12846$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12848$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12850$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12852$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12853 ( cat <<\_ASBOX 12854## ----------------------------------- ## 12855## Report this to kientzle@freebsd.org ## 12856## ----------------------------------- ## 12857_ASBOX 12858 ) | sed "s/^/$as_me: WARNING: /" >&2 12859 ;; 12860esac 12861{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12862$as_echo_n "checking for $ac_header... " >&6; } 12863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12864 $as_echo_n "(cached) " >&6 12865else 12866 eval "$as_ac_Header=\$ac_header_preproc" 12867fi 12868ac_res=`eval 'as_val=${'$as_ac_Header'} 12869 $as_echo "$as_val"'` 12870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12871$as_echo "$ac_res" >&6; } 12872 12873fi 12874if test `eval 'as_val=${'$as_ac_Header'} 12875 $as_echo "$as_val"'` = yes; then 12876 cat >>confdefs.h <<_ACEOF 12877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12878_ACEOF 12879 12880fi 12881 12882done 12883 12884 12885 12886 12887 12888 12889 12890 12891for ac_header in locale.h paths.h poll.h pwd.h regex.h signal.h stdarg.h 12892do 12893as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12896$as_echo_n "checking for $ac_header... " >&6; } 12897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12898 $as_echo_n "(cached) " >&6 12899fi 12900ac_res=`eval 'as_val=${'$as_ac_Header'} 12901 $as_echo "$as_val"'` 12902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12903$as_echo "$ac_res" >&6; } 12904else 12905 # Is the header compilable? 12906{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12907$as_echo_n "checking $ac_header usability... " >&6; } 12908cat >conftest.$ac_ext <<_ACEOF 12909/* confdefs.h. */ 12910_ACEOF 12911cat confdefs.h >>conftest.$ac_ext 12912cat >>conftest.$ac_ext <<_ACEOF 12913/* end confdefs.h. */ 12914$ac_includes_default 12915#include <$ac_header> 12916_ACEOF 12917rm -f conftest.$ac_objext 12918if { (ac_try="$ac_compile" 12919case "(($ac_try" in 12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12921 *) ac_try_echo=$ac_try;; 12922esac 12923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12924$as_echo "$ac_try_echo") >&5 12925 (eval "$ac_compile") 2>conftest.er1 12926 ac_status=$? 12927 grep -v '^ *+' conftest.er1 >conftest.err 12928 rm -f conftest.er1 12929 cat conftest.err >&5 12930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12931 (exit $ac_status); } && { 12932 test -z "$ac_c_werror_flag" || 12933 test ! -s conftest.err 12934 } && test -s conftest.$ac_objext; then 12935 ac_header_compiler=yes 12936else 12937 $as_echo "$as_me: failed program was:" >&5 12938sed 's/^/| /' conftest.$ac_ext >&5 12939 12940 ac_header_compiler=no 12941fi 12942 12943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12944{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12945$as_echo "$ac_header_compiler" >&6; } 12946 12947# Is the header present? 12948{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12949$as_echo_n "checking $ac_header presence... " >&6; } 12950cat >conftest.$ac_ext <<_ACEOF 12951/* confdefs.h. */ 12952_ACEOF 12953cat confdefs.h >>conftest.$ac_ext 12954cat >>conftest.$ac_ext <<_ACEOF 12955/* end confdefs.h. */ 12956#include <$ac_header> 12957_ACEOF 12958if { (ac_try="$ac_cpp conftest.$ac_ext" 12959case "(($ac_try" in 12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12961 *) ac_try_echo=$ac_try;; 12962esac 12963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12964$as_echo "$ac_try_echo") >&5 12965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12966 ac_status=$? 12967 grep -v '^ *+' conftest.er1 >conftest.err 12968 rm -f conftest.er1 12969 cat conftest.err >&5 12970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12971 (exit $ac_status); } >/dev/null && { 12972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12973 test ! -s conftest.err 12974 }; then 12975 ac_header_preproc=yes 12976else 12977 $as_echo "$as_me: failed program was:" >&5 12978sed 's/^/| /' conftest.$ac_ext >&5 12979 12980 ac_header_preproc=no 12981fi 12982 12983rm -f conftest.err conftest.$ac_ext 12984{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12985$as_echo "$ac_header_preproc" >&6; } 12986 12987# So? What about this header? 12988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12989 yes:no: ) 12990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12991$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12993$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12994 ac_header_preproc=yes 12995 ;; 12996 no:yes:* ) 12997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12998$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13000$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13002$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13004$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13006$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13008$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13009 ( cat <<\_ASBOX 13010## ----------------------------------- ## 13011## Report this to kientzle@freebsd.org ## 13012## ----------------------------------- ## 13013_ASBOX 13014 ) | sed "s/^/$as_me: WARNING: /" >&2 13015 ;; 13016esac 13017{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13018$as_echo_n "checking for $ac_header... " >&6; } 13019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13020 $as_echo_n "(cached) " >&6 13021else 13022 eval "$as_ac_Header=\$ac_header_preproc" 13023fi 13024ac_res=`eval 'as_val=${'$as_ac_Header'} 13025 $as_echo "$as_val"'` 13026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13027$as_echo "$ac_res" >&6; } 13028 13029fi 13030if test `eval 'as_val=${'$as_ac_Header'} 13031 $as_echo "$as_val"'` = yes; then 13032 cat >>confdefs.h <<_ACEOF 13033#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13034_ACEOF 13035 13036fi 13037 13038done 13039 13040 13041 13042 13043for ac_header in stdint.h stdlib.h string.h 13044do 13045as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13048$as_echo_n "checking for $ac_header... " >&6; } 13049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13050 $as_echo_n "(cached) " >&6 13051fi 13052ac_res=`eval 'as_val=${'$as_ac_Header'} 13053 $as_echo "$as_val"'` 13054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13055$as_echo "$ac_res" >&6; } 13056else 13057 # Is the header compilable? 13058{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13059$as_echo_n "checking $ac_header usability... " >&6; } 13060cat >conftest.$ac_ext <<_ACEOF 13061/* confdefs.h. */ 13062_ACEOF 13063cat confdefs.h >>conftest.$ac_ext 13064cat >>conftest.$ac_ext <<_ACEOF 13065/* end confdefs.h. */ 13066$ac_includes_default 13067#include <$ac_header> 13068_ACEOF 13069rm -f conftest.$ac_objext 13070if { (ac_try="$ac_compile" 13071case "(($ac_try" in 13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13073 *) ac_try_echo=$ac_try;; 13074esac 13075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13076$as_echo "$ac_try_echo") >&5 13077 (eval "$ac_compile") 2>conftest.er1 13078 ac_status=$? 13079 grep -v '^ *+' conftest.er1 >conftest.err 13080 rm -f conftest.er1 13081 cat conftest.err >&5 13082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13083 (exit $ac_status); } && { 13084 test -z "$ac_c_werror_flag" || 13085 test ! -s conftest.err 13086 } && test -s conftest.$ac_objext; then 13087 ac_header_compiler=yes 13088else 13089 $as_echo "$as_me: failed program was:" >&5 13090sed 's/^/| /' conftest.$ac_ext >&5 13091 13092 ac_header_compiler=no 13093fi 13094 13095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13096{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13097$as_echo "$ac_header_compiler" >&6; } 13098 13099# Is the header present? 13100{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13101$as_echo_n "checking $ac_header presence... " >&6; } 13102cat >conftest.$ac_ext <<_ACEOF 13103/* confdefs.h. */ 13104_ACEOF 13105cat confdefs.h >>conftest.$ac_ext 13106cat >>conftest.$ac_ext <<_ACEOF 13107/* end confdefs.h. */ 13108#include <$ac_header> 13109_ACEOF 13110if { (ac_try="$ac_cpp conftest.$ac_ext" 13111case "(($ac_try" in 13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13113 *) ac_try_echo=$ac_try;; 13114esac 13115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13116$as_echo "$ac_try_echo") >&5 13117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13118 ac_status=$? 13119 grep -v '^ *+' conftest.er1 >conftest.err 13120 rm -f conftest.er1 13121 cat conftest.err >&5 13122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13123 (exit $ac_status); } >/dev/null && { 13124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13125 test ! -s conftest.err 13126 }; then 13127 ac_header_preproc=yes 13128else 13129 $as_echo "$as_me: failed program was:" >&5 13130sed 's/^/| /' conftest.$ac_ext >&5 13131 13132 ac_header_preproc=no 13133fi 13134 13135rm -f conftest.err conftest.$ac_ext 13136{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13137$as_echo "$ac_header_preproc" >&6; } 13138 13139# So? What about this header? 13140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13141 yes:no: ) 13142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13143$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13145$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13146 ac_header_preproc=yes 13147 ;; 13148 no:yes:* ) 13149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13150$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13152$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13154$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13156$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13158$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13160$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13161 ( cat <<\_ASBOX 13162## ----------------------------------- ## 13163## Report this to kientzle@freebsd.org ## 13164## ----------------------------------- ## 13165_ASBOX 13166 ) | sed "s/^/$as_me: WARNING: /" >&2 13167 ;; 13168esac 13169{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13170$as_echo_n "checking for $ac_header... " >&6; } 13171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13172 $as_echo_n "(cached) " >&6 13173else 13174 eval "$as_ac_Header=\$ac_header_preproc" 13175fi 13176ac_res=`eval 'as_val=${'$as_ac_Header'} 13177 $as_echo "$as_val"'` 13178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13179$as_echo "$ac_res" >&6; } 13180 13181fi 13182if test `eval 'as_val=${'$as_ac_Header'} 13183 $as_echo "$as_val"'` = yes; then 13184 cat >>confdefs.h <<_ACEOF 13185#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13186_ACEOF 13187 13188fi 13189 13190done 13191 13192 13193 13194 13195 13196 13197for ac_header in sys/acl.h sys/cdefs.h sys/extattr.h sys/ioctl.h sys/mkdev.h 13198do 13199as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13202$as_echo_n "checking for $ac_header... " >&6; } 13203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13204 $as_echo_n "(cached) " >&6 13205fi 13206ac_res=`eval 'as_val=${'$as_ac_Header'} 13207 $as_echo "$as_val"'` 13208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13209$as_echo "$ac_res" >&6; } 13210else 13211 # Is the header compilable? 13212{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13213$as_echo_n "checking $ac_header usability... " >&6; } 13214cat >conftest.$ac_ext <<_ACEOF 13215/* confdefs.h. */ 13216_ACEOF 13217cat confdefs.h >>conftest.$ac_ext 13218cat >>conftest.$ac_ext <<_ACEOF 13219/* end confdefs.h. */ 13220$ac_includes_default 13221#include <$ac_header> 13222_ACEOF 13223rm -f conftest.$ac_objext 13224if { (ac_try="$ac_compile" 13225case "(($ac_try" in 13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13227 *) ac_try_echo=$ac_try;; 13228esac 13229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13230$as_echo "$ac_try_echo") >&5 13231 (eval "$ac_compile") 2>conftest.er1 13232 ac_status=$? 13233 grep -v '^ *+' conftest.er1 >conftest.err 13234 rm -f conftest.er1 13235 cat conftest.err >&5 13236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13237 (exit $ac_status); } && { 13238 test -z "$ac_c_werror_flag" || 13239 test ! -s conftest.err 13240 } && test -s conftest.$ac_objext; then 13241 ac_header_compiler=yes 13242else 13243 $as_echo "$as_me: failed program was:" >&5 13244sed 's/^/| /' conftest.$ac_ext >&5 13245 13246 ac_header_compiler=no 13247fi 13248 13249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13250{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13251$as_echo "$ac_header_compiler" >&6; } 13252 13253# Is the header present? 13254{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13255$as_echo_n "checking $ac_header presence... " >&6; } 13256cat >conftest.$ac_ext <<_ACEOF 13257/* confdefs.h. */ 13258_ACEOF 13259cat confdefs.h >>conftest.$ac_ext 13260cat >>conftest.$ac_ext <<_ACEOF 13261/* end confdefs.h. */ 13262#include <$ac_header> 13263_ACEOF 13264if { (ac_try="$ac_cpp conftest.$ac_ext" 13265case "(($ac_try" in 13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13267 *) ac_try_echo=$ac_try;; 13268esac 13269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13270$as_echo "$ac_try_echo") >&5 13271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13272 ac_status=$? 13273 grep -v '^ *+' conftest.er1 >conftest.err 13274 rm -f conftest.er1 13275 cat conftest.err >&5 13276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13277 (exit $ac_status); } >/dev/null && { 13278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13279 test ! -s conftest.err 13280 }; then 13281 ac_header_preproc=yes 13282else 13283 $as_echo "$as_me: failed program was:" >&5 13284sed 's/^/| /' conftest.$ac_ext >&5 13285 13286 ac_header_preproc=no 13287fi 13288 13289rm -f conftest.err conftest.$ac_ext 13290{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13291$as_echo "$ac_header_preproc" >&6; } 13292 13293# So? What about this header? 13294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13295 yes:no: ) 13296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13297$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13299$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13300 ac_header_preproc=yes 13301 ;; 13302 no:yes:* ) 13303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13304$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13306$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13308$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13310$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13312$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13314$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13315 ( cat <<\_ASBOX 13316## ----------------------------------- ## 13317## Report this to kientzle@freebsd.org ## 13318## ----------------------------------- ## 13319_ASBOX 13320 ) | sed "s/^/$as_me: WARNING: /" >&2 13321 ;; 13322esac 13323{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13324$as_echo_n "checking for $ac_header... " >&6; } 13325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13326 $as_echo_n "(cached) " >&6 13327else 13328 eval "$as_ac_Header=\$ac_header_preproc" 13329fi 13330ac_res=`eval 'as_val=${'$as_ac_Header'} 13331 $as_echo "$as_val"'` 13332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13333$as_echo "$ac_res" >&6; } 13334 13335fi 13336if test `eval 'as_val=${'$as_ac_Header'} 13337 $as_echo "$as_val"'` = yes; then 13338 cat >>confdefs.h <<_ACEOF 13339#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13340_ACEOF 13341 13342fi 13343 13344done 13345 13346 13347 13348 13349 13350 13351for ac_header in sys/param.h sys/poll.h sys/select.h sys/time.h sys/utime.h 13352do 13353as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13356$as_echo_n "checking for $ac_header... " >&6; } 13357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13358 $as_echo_n "(cached) " >&6 13359fi 13360ac_res=`eval 'as_val=${'$as_ac_Header'} 13361 $as_echo "$as_val"'` 13362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13363$as_echo "$ac_res" >&6; } 13364else 13365 # Is the header compilable? 13366{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13367$as_echo_n "checking $ac_header usability... " >&6; } 13368cat >conftest.$ac_ext <<_ACEOF 13369/* confdefs.h. */ 13370_ACEOF 13371cat confdefs.h >>conftest.$ac_ext 13372cat >>conftest.$ac_ext <<_ACEOF 13373/* end confdefs.h. */ 13374$ac_includes_default 13375#include <$ac_header> 13376_ACEOF 13377rm -f conftest.$ac_objext 13378if { (ac_try="$ac_compile" 13379case "(($ac_try" in 13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13381 *) ac_try_echo=$ac_try;; 13382esac 13383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13384$as_echo "$ac_try_echo") >&5 13385 (eval "$ac_compile") 2>conftest.er1 13386 ac_status=$? 13387 grep -v '^ *+' conftest.er1 >conftest.err 13388 rm -f conftest.er1 13389 cat conftest.err >&5 13390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13391 (exit $ac_status); } && { 13392 test -z "$ac_c_werror_flag" || 13393 test ! -s conftest.err 13394 } && test -s conftest.$ac_objext; then 13395 ac_header_compiler=yes 13396else 13397 $as_echo "$as_me: failed program was:" >&5 13398sed 's/^/| /' conftest.$ac_ext >&5 13399 13400 ac_header_compiler=no 13401fi 13402 13403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13404{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13405$as_echo "$ac_header_compiler" >&6; } 13406 13407# Is the header present? 13408{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13409$as_echo_n "checking $ac_header presence... " >&6; } 13410cat >conftest.$ac_ext <<_ACEOF 13411/* confdefs.h. */ 13412_ACEOF 13413cat confdefs.h >>conftest.$ac_ext 13414cat >>conftest.$ac_ext <<_ACEOF 13415/* end confdefs.h. */ 13416#include <$ac_header> 13417_ACEOF 13418if { (ac_try="$ac_cpp conftest.$ac_ext" 13419case "(($ac_try" in 13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13421 *) ac_try_echo=$ac_try;; 13422esac 13423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13424$as_echo "$ac_try_echo") >&5 13425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13426 ac_status=$? 13427 grep -v '^ *+' conftest.er1 >conftest.err 13428 rm -f conftest.er1 13429 cat conftest.err >&5 13430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13431 (exit $ac_status); } >/dev/null && { 13432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13433 test ! -s conftest.err 13434 }; then 13435 ac_header_preproc=yes 13436else 13437 $as_echo "$as_me: failed program was:" >&5 13438sed 's/^/| /' conftest.$ac_ext >&5 13439 13440 ac_header_preproc=no 13441fi 13442 13443rm -f conftest.err conftest.$ac_ext 13444{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13445$as_echo "$ac_header_preproc" >&6; } 13446 13447# So? What about this header? 13448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13449 yes:no: ) 13450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13451$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13453$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13454 ac_header_preproc=yes 13455 ;; 13456 no:yes:* ) 13457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13458$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13460$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13462$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13464$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13466$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13468$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13469 ( cat <<\_ASBOX 13470## ----------------------------------- ## 13471## Report this to kientzle@freebsd.org ## 13472## ----------------------------------- ## 13473_ASBOX 13474 ) | sed "s/^/$as_me: WARNING: /" >&2 13475 ;; 13476esac 13477{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13478$as_echo_n "checking for $ac_header... " >&6; } 13479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13480 $as_echo_n "(cached) " >&6 13481else 13482 eval "$as_ac_Header=\$ac_header_preproc" 13483fi 13484ac_res=`eval 'as_val=${'$as_ac_Header'} 13485 $as_echo "$as_val"'` 13486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13487$as_echo "$ac_res" >&6; } 13488 13489fi 13490if test `eval 'as_val=${'$as_ac_Header'} 13491 $as_echo "$as_val"'` = yes; then 13492 cat >>confdefs.h <<_ACEOF 13493#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13494_ACEOF 13495 13496fi 13497 13498done 13499 13500 13501 13502 13503 13504 13505 13506for ac_header in time.h unistd.h utime.h wchar.h wctype.h windows.h 13507do 13508as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13510 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13511$as_echo_n "checking for $ac_header... " >&6; } 13512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13513 $as_echo_n "(cached) " >&6 13514fi 13515ac_res=`eval 'as_val=${'$as_ac_Header'} 13516 $as_echo "$as_val"'` 13517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13518$as_echo "$ac_res" >&6; } 13519else 13520 # Is the header compilable? 13521{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13522$as_echo_n "checking $ac_header usability... " >&6; } 13523cat >conftest.$ac_ext <<_ACEOF 13524/* confdefs.h. */ 13525_ACEOF 13526cat confdefs.h >>conftest.$ac_ext 13527cat >>conftest.$ac_ext <<_ACEOF 13528/* end confdefs.h. */ 13529$ac_includes_default 13530#include <$ac_header> 13531_ACEOF 13532rm -f conftest.$ac_objext 13533if { (ac_try="$ac_compile" 13534case "(($ac_try" in 13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13536 *) ac_try_echo=$ac_try;; 13537esac 13538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13539$as_echo "$ac_try_echo") >&5 13540 (eval "$ac_compile") 2>conftest.er1 13541 ac_status=$? 13542 grep -v '^ *+' conftest.er1 >conftest.err 13543 rm -f conftest.er1 13544 cat conftest.err >&5 13545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13546 (exit $ac_status); } && { 13547 test -z "$ac_c_werror_flag" || 13548 test ! -s conftest.err 13549 } && test -s conftest.$ac_objext; then 13550 ac_header_compiler=yes 13551else 13552 $as_echo "$as_me: failed program was:" >&5 13553sed 's/^/| /' conftest.$ac_ext >&5 13554 13555 ac_header_compiler=no 13556fi 13557 13558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13559{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13560$as_echo "$ac_header_compiler" >&6; } 13561 13562# Is the header present? 13563{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13564$as_echo_n "checking $ac_header presence... " >&6; } 13565cat >conftest.$ac_ext <<_ACEOF 13566/* confdefs.h. */ 13567_ACEOF 13568cat confdefs.h >>conftest.$ac_ext 13569cat >>conftest.$ac_ext <<_ACEOF 13570/* end confdefs.h. */ 13571#include <$ac_header> 13572_ACEOF 13573if { (ac_try="$ac_cpp conftest.$ac_ext" 13574case "(($ac_try" in 13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13576 *) ac_try_echo=$ac_try;; 13577esac 13578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13579$as_echo "$ac_try_echo") >&5 13580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13581 ac_status=$? 13582 grep -v '^ *+' conftest.er1 >conftest.err 13583 rm -f conftest.er1 13584 cat conftest.err >&5 13585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13586 (exit $ac_status); } >/dev/null && { 13587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13588 test ! -s conftest.err 13589 }; then 13590 ac_header_preproc=yes 13591else 13592 $as_echo "$as_me: failed program was:" >&5 13593sed 's/^/| /' conftest.$ac_ext >&5 13594 13595 ac_header_preproc=no 13596fi 13597 13598rm -f conftest.err conftest.$ac_ext 13599{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13600$as_echo "$ac_header_preproc" >&6; } 13601 13602# So? What about this header? 13603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13604 yes:no: ) 13605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13606$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13608$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13609 ac_header_preproc=yes 13610 ;; 13611 no:yes:* ) 13612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13613$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13615$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13617$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13619$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13621$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13623$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13624 ( cat <<\_ASBOX 13625## ----------------------------------- ## 13626## Report this to kientzle@freebsd.org ## 13627## ----------------------------------- ## 13628_ASBOX 13629 ) | sed "s/^/$as_me: WARNING: /" >&2 13630 ;; 13631esac 13632{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13633$as_echo_n "checking for $ac_header... " >&6; } 13634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13635 $as_echo_n "(cached) " >&6 13636else 13637 eval "$as_ac_Header=\$ac_header_preproc" 13638fi 13639ac_res=`eval 'as_val=${'$as_ac_Header'} 13640 $as_echo "$as_val"'` 13641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13642$as_echo "$ac_res" >&6; } 13643 13644fi 13645if test `eval 'as_val=${'$as_ac_Header'} 13646 $as_echo "$as_val"'` = yes; then 13647 cat >>confdefs.h <<_ACEOF 13648#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13649_ACEOF 13650 13651fi 13652 13653done 13654 13655 13656# Checks for libraries. 13657 13658# Check whether --with-zlib was given. 13659if test "${with_zlib+set}" = set; then 13660 withval=$with_zlib; 13661fi 13662 13663 13664if test "x$with_zlib" != "xno"; then 13665 13666for ac_header in zlib.h 13667do 13668as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13671$as_echo_n "checking for $ac_header... " >&6; } 13672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13673 $as_echo_n "(cached) " >&6 13674fi 13675ac_res=`eval 'as_val=${'$as_ac_Header'} 13676 $as_echo "$as_val"'` 13677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13678$as_echo "$ac_res" >&6; } 13679else 13680 # Is the header compilable? 13681{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13682$as_echo_n "checking $ac_header usability... " >&6; } 13683cat >conftest.$ac_ext <<_ACEOF 13684/* confdefs.h. */ 13685_ACEOF 13686cat confdefs.h >>conftest.$ac_ext 13687cat >>conftest.$ac_ext <<_ACEOF 13688/* end confdefs.h. */ 13689$ac_includes_default 13690#include <$ac_header> 13691_ACEOF 13692rm -f conftest.$ac_objext 13693if { (ac_try="$ac_compile" 13694case "(($ac_try" in 13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13696 *) ac_try_echo=$ac_try;; 13697esac 13698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13699$as_echo "$ac_try_echo") >&5 13700 (eval "$ac_compile") 2>conftest.er1 13701 ac_status=$? 13702 grep -v '^ *+' conftest.er1 >conftest.err 13703 rm -f conftest.er1 13704 cat conftest.err >&5 13705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13706 (exit $ac_status); } && { 13707 test -z "$ac_c_werror_flag" || 13708 test ! -s conftest.err 13709 } && test -s conftest.$ac_objext; then 13710 ac_header_compiler=yes 13711else 13712 $as_echo "$as_me: failed program was:" >&5 13713sed 's/^/| /' conftest.$ac_ext >&5 13714 13715 ac_header_compiler=no 13716fi 13717 13718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13719{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13720$as_echo "$ac_header_compiler" >&6; } 13721 13722# Is the header present? 13723{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13724$as_echo_n "checking $ac_header presence... " >&6; } 13725cat >conftest.$ac_ext <<_ACEOF 13726/* confdefs.h. */ 13727_ACEOF 13728cat confdefs.h >>conftest.$ac_ext 13729cat >>conftest.$ac_ext <<_ACEOF 13730/* end confdefs.h. */ 13731#include <$ac_header> 13732_ACEOF 13733if { (ac_try="$ac_cpp conftest.$ac_ext" 13734case "(($ac_try" in 13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13736 *) ac_try_echo=$ac_try;; 13737esac 13738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13739$as_echo "$ac_try_echo") >&5 13740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13741 ac_status=$? 13742 grep -v '^ *+' conftest.er1 >conftest.err 13743 rm -f conftest.er1 13744 cat conftest.err >&5 13745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13746 (exit $ac_status); } >/dev/null && { 13747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13748 test ! -s conftest.err 13749 }; then 13750 ac_header_preproc=yes 13751else 13752 $as_echo "$as_me: failed program was:" >&5 13753sed 's/^/| /' conftest.$ac_ext >&5 13754 13755 ac_header_preproc=no 13756fi 13757 13758rm -f conftest.err conftest.$ac_ext 13759{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13760$as_echo "$ac_header_preproc" >&6; } 13761 13762# So? What about this header? 13763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13764 yes:no: ) 13765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13766$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13768$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13769 ac_header_preproc=yes 13770 ;; 13771 no:yes:* ) 13772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13773$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13775$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13777$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13779$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13781$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13783$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13784 ( cat <<\_ASBOX 13785## ----------------------------------- ## 13786## Report this to kientzle@freebsd.org ## 13787## ----------------------------------- ## 13788_ASBOX 13789 ) | sed "s/^/$as_me: WARNING: /" >&2 13790 ;; 13791esac 13792{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13793$as_echo_n "checking for $ac_header... " >&6; } 13794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13795 $as_echo_n "(cached) " >&6 13796else 13797 eval "$as_ac_Header=\$ac_header_preproc" 13798fi 13799ac_res=`eval 'as_val=${'$as_ac_Header'} 13800 $as_echo "$as_val"'` 13801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13802$as_echo "$ac_res" >&6; } 13803 13804fi 13805if test `eval 'as_val=${'$as_ac_Header'} 13806 $as_echo "$as_val"'` = yes; then 13807 cat >>confdefs.h <<_ACEOF 13808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13809_ACEOF 13810 13811fi 13812 13813done 13814 13815 13816{ $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5 13817$as_echo_n "checking for inflate in -lz... " >&6; } 13818if test "${ac_cv_lib_z_inflate+set}" = set; then 13819 $as_echo_n "(cached) " >&6 13820else 13821 ac_check_lib_save_LIBS=$LIBS 13822LIBS="-lz $LIBS" 13823cat >conftest.$ac_ext <<_ACEOF 13824/* confdefs.h. */ 13825_ACEOF 13826cat confdefs.h >>conftest.$ac_ext 13827cat >>conftest.$ac_ext <<_ACEOF 13828/* end confdefs.h. */ 13829 13830/* Override any GCC internal prototype to avoid an error. 13831 Use char because int might match the return type of a GCC 13832 builtin and then its argument prototype would still apply. */ 13833#ifdef __cplusplus 13834extern "C" 13835#endif 13836char inflate (); 13837int 13838main () 13839{ 13840return inflate (); 13841 ; 13842 return 0; 13843} 13844_ACEOF 13845rm -f conftest.$ac_objext conftest$ac_exeext 13846if { (ac_try="$ac_link" 13847case "(($ac_try" in 13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13849 *) ac_try_echo=$ac_try;; 13850esac 13851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13852$as_echo "$ac_try_echo") >&5 13853 (eval "$ac_link") 2>conftest.er1 13854 ac_status=$? 13855 grep -v '^ *+' conftest.er1 >conftest.err 13856 rm -f conftest.er1 13857 cat conftest.err >&5 13858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13859 (exit $ac_status); } && { 13860 test -z "$ac_c_werror_flag" || 13861 test ! -s conftest.err 13862 } && test -s conftest$ac_exeext && { 13863 test "$cross_compiling" = yes || 13864 $as_test_x conftest$ac_exeext 13865 }; then 13866 ac_cv_lib_z_inflate=yes 13867else 13868 $as_echo "$as_me: failed program was:" >&5 13869sed 's/^/| /' conftest.$ac_ext >&5 13870 13871 ac_cv_lib_z_inflate=no 13872fi 13873 13874rm -rf conftest.dSYM 13875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13876 conftest$ac_exeext conftest.$ac_ext 13877LIBS=$ac_check_lib_save_LIBS 13878fi 13879{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5 13880$as_echo "$ac_cv_lib_z_inflate" >&6; } 13881if test $ac_cv_lib_z_inflate = yes; then 13882 cat >>confdefs.h <<_ACEOF 13883#define HAVE_LIBZ 1 13884_ACEOF 13885 13886 LIBS="-lz $LIBS" 13887 13888fi 13889 13890fi 13891 13892 13893# Check whether --with-bz2lib was given. 13894if test "${with_bz2lib+set}" = set; then 13895 withval=$with_bz2lib; 13896fi 13897 13898 13899if test "x$with_bz2lib" != "xno"; then 13900 13901for ac_header in bzlib.h 13902do 13903as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13906$as_echo_n "checking for $ac_header... " >&6; } 13907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13908 $as_echo_n "(cached) " >&6 13909fi 13910ac_res=`eval 'as_val=${'$as_ac_Header'} 13911 $as_echo "$as_val"'` 13912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13913$as_echo "$ac_res" >&6; } 13914else 13915 # Is the header compilable? 13916{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13917$as_echo_n "checking $ac_header usability... " >&6; } 13918cat >conftest.$ac_ext <<_ACEOF 13919/* confdefs.h. */ 13920_ACEOF 13921cat confdefs.h >>conftest.$ac_ext 13922cat >>conftest.$ac_ext <<_ACEOF 13923/* end confdefs.h. */ 13924$ac_includes_default 13925#include <$ac_header> 13926_ACEOF 13927rm -f conftest.$ac_objext 13928if { (ac_try="$ac_compile" 13929case "(($ac_try" in 13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13931 *) ac_try_echo=$ac_try;; 13932esac 13933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13934$as_echo "$ac_try_echo") >&5 13935 (eval "$ac_compile") 2>conftest.er1 13936 ac_status=$? 13937 grep -v '^ *+' conftest.er1 >conftest.err 13938 rm -f conftest.er1 13939 cat conftest.err >&5 13940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13941 (exit $ac_status); } && { 13942 test -z "$ac_c_werror_flag" || 13943 test ! -s conftest.err 13944 } && test -s conftest.$ac_objext; then 13945 ac_header_compiler=yes 13946else 13947 $as_echo "$as_me: failed program was:" >&5 13948sed 's/^/| /' conftest.$ac_ext >&5 13949 13950 ac_header_compiler=no 13951fi 13952 13953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13954{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13955$as_echo "$ac_header_compiler" >&6; } 13956 13957# Is the header present? 13958{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13959$as_echo_n "checking $ac_header presence... " >&6; } 13960cat >conftest.$ac_ext <<_ACEOF 13961/* confdefs.h. */ 13962_ACEOF 13963cat confdefs.h >>conftest.$ac_ext 13964cat >>conftest.$ac_ext <<_ACEOF 13965/* end confdefs.h. */ 13966#include <$ac_header> 13967_ACEOF 13968if { (ac_try="$ac_cpp conftest.$ac_ext" 13969case "(($ac_try" in 13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13971 *) ac_try_echo=$ac_try;; 13972esac 13973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13974$as_echo "$ac_try_echo") >&5 13975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13976 ac_status=$? 13977 grep -v '^ *+' conftest.er1 >conftest.err 13978 rm -f conftest.er1 13979 cat conftest.err >&5 13980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13981 (exit $ac_status); } >/dev/null && { 13982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13983 test ! -s conftest.err 13984 }; then 13985 ac_header_preproc=yes 13986else 13987 $as_echo "$as_me: failed program was:" >&5 13988sed 's/^/| /' conftest.$ac_ext >&5 13989 13990 ac_header_preproc=no 13991fi 13992 13993rm -f conftest.err conftest.$ac_ext 13994{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13995$as_echo "$ac_header_preproc" >&6; } 13996 13997# So? What about this header? 13998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13999 yes:no: ) 14000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14001$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14003$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14004 ac_header_preproc=yes 14005 ;; 14006 no:yes:* ) 14007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14008$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14010$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14012$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14014$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14016$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14018$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14019 ( cat <<\_ASBOX 14020## ----------------------------------- ## 14021## Report this to kientzle@freebsd.org ## 14022## ----------------------------------- ## 14023_ASBOX 14024 ) | sed "s/^/$as_me: WARNING: /" >&2 14025 ;; 14026esac 14027{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14028$as_echo_n "checking for $ac_header... " >&6; } 14029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14030 $as_echo_n "(cached) " >&6 14031else 14032 eval "$as_ac_Header=\$ac_header_preproc" 14033fi 14034ac_res=`eval 'as_val=${'$as_ac_Header'} 14035 $as_echo "$as_val"'` 14036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14037$as_echo "$ac_res" >&6; } 14038 14039fi 14040if test `eval 'as_val=${'$as_ac_Header'} 14041 $as_echo "$as_val"'` = yes; then 14042 cat >>confdefs.h <<_ACEOF 14043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14044_ACEOF 14045 14046fi 14047 14048done 14049 14050 14051{ $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompressInit in -lbz2" >&5 14052$as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; } 14053if test "${ac_cv_lib_bz2_BZ2_bzDecompressInit+set}" = set; then 14054 $as_echo_n "(cached) " >&6 14055else 14056 ac_check_lib_save_LIBS=$LIBS 14057LIBS="-lbz2 $LIBS" 14058cat >conftest.$ac_ext <<_ACEOF 14059/* confdefs.h. */ 14060_ACEOF 14061cat confdefs.h >>conftest.$ac_ext 14062cat >>conftest.$ac_ext <<_ACEOF 14063/* end confdefs.h. */ 14064 14065/* Override any GCC internal prototype to avoid an error. 14066 Use char because int might match the return type of a GCC 14067 builtin and then its argument prototype would still apply. */ 14068#ifdef __cplusplus 14069extern "C" 14070#endif 14071char BZ2_bzDecompressInit (); 14072int 14073main () 14074{ 14075return BZ2_bzDecompressInit (); 14076 ; 14077 return 0; 14078} 14079_ACEOF 14080rm -f conftest.$ac_objext conftest$ac_exeext 14081if { (ac_try="$ac_link" 14082case "(($ac_try" in 14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14084 *) ac_try_echo=$ac_try;; 14085esac 14086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14087$as_echo "$ac_try_echo") >&5 14088 (eval "$ac_link") 2>conftest.er1 14089 ac_status=$? 14090 grep -v '^ *+' conftest.er1 >conftest.err 14091 rm -f conftest.er1 14092 cat conftest.err >&5 14093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14094 (exit $ac_status); } && { 14095 test -z "$ac_c_werror_flag" || 14096 test ! -s conftest.err 14097 } && test -s conftest$ac_exeext && { 14098 test "$cross_compiling" = yes || 14099 $as_test_x conftest$ac_exeext 14100 }; then 14101 ac_cv_lib_bz2_BZ2_bzDecompressInit=yes 14102else 14103 $as_echo "$as_me: failed program was:" >&5 14104sed 's/^/| /' conftest.$ac_ext >&5 14105 14106 ac_cv_lib_bz2_BZ2_bzDecompressInit=no 14107fi 14108 14109rm -rf conftest.dSYM 14110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14111 conftest$ac_exeext conftest.$ac_ext 14112LIBS=$ac_check_lib_save_LIBS 14113fi 14114{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5 14115$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; } 14116if test $ac_cv_lib_bz2_BZ2_bzDecompressInit = yes; then 14117 cat >>confdefs.h <<_ACEOF 14118#define HAVE_LIBBZ2 1 14119_ACEOF 14120 14121 LIBS="-lbz2 $LIBS" 14122 14123fi 14124 14125fi 14126 14127 14128# Check whether --with-lzmadec was given. 14129if test "${with_lzmadec+set}" = set; then 14130 withval=$with_lzmadec; 14131fi 14132 14133 14134if test "x$with_lzmadec" != "xno"; then 14135 14136for ac_header in lzmadec.h 14137do 14138as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14141$as_echo_n "checking for $ac_header... " >&6; } 14142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14143 $as_echo_n "(cached) " >&6 14144fi 14145ac_res=`eval 'as_val=${'$as_ac_Header'} 14146 $as_echo "$as_val"'` 14147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14148$as_echo "$ac_res" >&6; } 14149else 14150 # Is the header compilable? 14151{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 14152$as_echo_n "checking $ac_header usability... " >&6; } 14153cat >conftest.$ac_ext <<_ACEOF 14154/* confdefs.h. */ 14155_ACEOF 14156cat confdefs.h >>conftest.$ac_ext 14157cat >>conftest.$ac_ext <<_ACEOF 14158/* end confdefs.h. */ 14159$ac_includes_default 14160#include <$ac_header> 14161_ACEOF 14162rm -f conftest.$ac_objext 14163if { (ac_try="$ac_compile" 14164case "(($ac_try" in 14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14166 *) ac_try_echo=$ac_try;; 14167esac 14168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14169$as_echo "$ac_try_echo") >&5 14170 (eval "$ac_compile") 2>conftest.er1 14171 ac_status=$? 14172 grep -v '^ *+' conftest.er1 >conftest.err 14173 rm -f conftest.er1 14174 cat conftest.err >&5 14175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14176 (exit $ac_status); } && { 14177 test -z "$ac_c_werror_flag" || 14178 test ! -s conftest.err 14179 } && test -s conftest.$ac_objext; then 14180 ac_header_compiler=yes 14181else 14182 $as_echo "$as_me: failed program was:" >&5 14183sed 's/^/| /' conftest.$ac_ext >&5 14184 14185 ac_header_compiler=no 14186fi 14187 14188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14189{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14190$as_echo "$ac_header_compiler" >&6; } 14191 14192# Is the header present? 14193{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 14194$as_echo_n "checking $ac_header presence... " >&6; } 14195cat >conftest.$ac_ext <<_ACEOF 14196/* confdefs.h. */ 14197_ACEOF 14198cat confdefs.h >>conftest.$ac_ext 14199cat >>conftest.$ac_ext <<_ACEOF 14200/* end confdefs.h. */ 14201#include <$ac_header> 14202_ACEOF 14203if { (ac_try="$ac_cpp conftest.$ac_ext" 14204case "(($ac_try" in 14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14206 *) ac_try_echo=$ac_try;; 14207esac 14208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14209$as_echo "$ac_try_echo") >&5 14210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14211 ac_status=$? 14212 grep -v '^ *+' conftest.er1 >conftest.err 14213 rm -f conftest.er1 14214 cat conftest.err >&5 14215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14216 (exit $ac_status); } >/dev/null && { 14217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14218 test ! -s conftest.err 14219 }; then 14220 ac_header_preproc=yes 14221else 14222 $as_echo "$as_me: failed program was:" >&5 14223sed 's/^/| /' conftest.$ac_ext >&5 14224 14225 ac_header_preproc=no 14226fi 14227 14228rm -f conftest.err conftest.$ac_ext 14229{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14230$as_echo "$ac_header_preproc" >&6; } 14231 14232# So? What about this header? 14233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14234 yes:no: ) 14235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14236$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14238$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14239 ac_header_preproc=yes 14240 ;; 14241 no:yes:* ) 14242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14243$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14245$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14247$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14249$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14251$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14253$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14254 ( cat <<\_ASBOX 14255## ----------------------------------- ## 14256## Report this to kientzle@freebsd.org ## 14257## ----------------------------------- ## 14258_ASBOX 14259 ) | sed "s/^/$as_me: WARNING: /" >&2 14260 ;; 14261esac 14262{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14263$as_echo_n "checking for $ac_header... " >&6; } 14264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14265 $as_echo_n "(cached) " >&6 14266else 14267 eval "$as_ac_Header=\$ac_header_preproc" 14268fi 14269ac_res=`eval 'as_val=${'$as_ac_Header'} 14270 $as_echo "$as_val"'` 14271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14272$as_echo "$ac_res" >&6; } 14273 14274fi 14275if test `eval 'as_val=${'$as_ac_Header'} 14276 $as_echo "$as_val"'` = yes; then 14277 cat >>confdefs.h <<_ACEOF 14278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14279_ACEOF 14280 14281fi 14282 14283done 14284 14285 14286{ $as_echo "$as_me:$LINENO: checking for lzmadec_decode in -llzmadec" >&5 14287$as_echo_n "checking for lzmadec_decode in -llzmadec... " >&6; } 14288if test "${ac_cv_lib_lzmadec_lzmadec_decode+set}" = set; then 14289 $as_echo_n "(cached) " >&6 14290else 14291 ac_check_lib_save_LIBS=$LIBS 14292LIBS="-llzmadec $LIBS" 14293cat >conftest.$ac_ext <<_ACEOF 14294/* confdefs.h. */ 14295_ACEOF 14296cat confdefs.h >>conftest.$ac_ext 14297cat >>conftest.$ac_ext <<_ACEOF 14298/* end confdefs.h. */ 14299 14300/* Override any GCC internal prototype to avoid an error. 14301 Use char because int might match the return type of a GCC 14302 builtin and then its argument prototype would still apply. */ 14303#ifdef __cplusplus 14304extern "C" 14305#endif 14306char lzmadec_decode (); 14307int 14308main () 14309{ 14310return lzmadec_decode (); 14311 ; 14312 return 0; 14313} 14314_ACEOF 14315rm -f conftest.$ac_objext conftest$ac_exeext 14316if { (ac_try="$ac_link" 14317case "(($ac_try" in 14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14319 *) ac_try_echo=$ac_try;; 14320esac 14321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14322$as_echo "$ac_try_echo") >&5 14323 (eval "$ac_link") 2>conftest.er1 14324 ac_status=$? 14325 grep -v '^ *+' conftest.er1 >conftest.err 14326 rm -f conftest.er1 14327 cat conftest.err >&5 14328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14329 (exit $ac_status); } && { 14330 test -z "$ac_c_werror_flag" || 14331 test ! -s conftest.err 14332 } && test -s conftest$ac_exeext && { 14333 test "$cross_compiling" = yes || 14334 $as_test_x conftest$ac_exeext 14335 }; then 14336 ac_cv_lib_lzmadec_lzmadec_decode=yes 14337else 14338 $as_echo "$as_me: failed program was:" >&5 14339sed 's/^/| /' conftest.$ac_ext >&5 14340 14341 ac_cv_lib_lzmadec_lzmadec_decode=no 14342fi 14343 14344rm -rf conftest.dSYM 14345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14346 conftest$ac_exeext conftest.$ac_ext 14347LIBS=$ac_check_lib_save_LIBS 14348fi 14349{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzmadec_lzmadec_decode" >&5 14350$as_echo "$ac_cv_lib_lzmadec_lzmadec_decode" >&6; } 14351if test $ac_cv_lib_lzmadec_lzmadec_decode = yes; then 14352 cat >>confdefs.h <<_ACEOF 14353#define HAVE_LIBLZMADEC 1 14354_ACEOF 14355 14356 LIBS="-llzmadec $LIBS" 14357 14358fi 14359 14360fi 14361 14362 14363# Check whether --with-lzma was given. 14364if test "${with_lzma+set}" = set; then 14365 withval=$with_lzma; 14366fi 14367 14368 14369if test "x$with_lzma" != "xno"; then 14370 14371for ac_header in lzma.h 14372do 14373as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14375 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14376$as_echo_n "checking for $ac_header... " >&6; } 14377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14378 $as_echo_n "(cached) " >&6 14379fi 14380ac_res=`eval 'as_val=${'$as_ac_Header'} 14381 $as_echo "$as_val"'` 14382 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14383$as_echo "$ac_res" >&6; } 14384else 14385 # Is the header compilable? 14386{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 14387$as_echo_n "checking $ac_header usability... " >&6; } 14388cat >conftest.$ac_ext <<_ACEOF 14389/* confdefs.h. */ 14390_ACEOF 14391cat confdefs.h >>conftest.$ac_ext 14392cat >>conftest.$ac_ext <<_ACEOF 14393/* end confdefs.h. */ 14394$ac_includes_default 14395#include <$ac_header> 14396_ACEOF 14397rm -f conftest.$ac_objext 14398if { (ac_try="$ac_compile" 14399case "(($ac_try" in 14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14401 *) ac_try_echo=$ac_try;; 14402esac 14403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14404$as_echo "$ac_try_echo") >&5 14405 (eval "$ac_compile") 2>conftest.er1 14406 ac_status=$? 14407 grep -v '^ *+' conftest.er1 >conftest.err 14408 rm -f conftest.er1 14409 cat conftest.err >&5 14410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14411 (exit $ac_status); } && { 14412 test -z "$ac_c_werror_flag" || 14413 test ! -s conftest.err 14414 } && test -s conftest.$ac_objext; then 14415 ac_header_compiler=yes 14416else 14417 $as_echo "$as_me: failed program was:" >&5 14418sed 's/^/| /' conftest.$ac_ext >&5 14419 14420 ac_header_compiler=no 14421fi 14422 14423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14424{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14425$as_echo "$ac_header_compiler" >&6; } 14426 14427# Is the header present? 14428{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 14429$as_echo_n "checking $ac_header presence... " >&6; } 14430cat >conftest.$ac_ext <<_ACEOF 14431/* confdefs.h. */ 14432_ACEOF 14433cat confdefs.h >>conftest.$ac_ext 14434cat >>conftest.$ac_ext <<_ACEOF 14435/* end confdefs.h. */ 14436#include <$ac_header> 14437_ACEOF 14438if { (ac_try="$ac_cpp conftest.$ac_ext" 14439case "(($ac_try" in 14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14441 *) ac_try_echo=$ac_try;; 14442esac 14443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14444$as_echo "$ac_try_echo") >&5 14445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14446 ac_status=$? 14447 grep -v '^ *+' conftest.er1 >conftest.err 14448 rm -f conftest.er1 14449 cat conftest.err >&5 14450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14451 (exit $ac_status); } >/dev/null && { 14452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14453 test ! -s conftest.err 14454 }; then 14455 ac_header_preproc=yes 14456else 14457 $as_echo "$as_me: failed program was:" >&5 14458sed 's/^/| /' conftest.$ac_ext >&5 14459 14460 ac_header_preproc=no 14461fi 14462 14463rm -f conftest.err conftest.$ac_ext 14464{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14465$as_echo "$ac_header_preproc" >&6; } 14466 14467# So? What about this header? 14468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14469 yes:no: ) 14470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14471$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14473$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14474 ac_header_preproc=yes 14475 ;; 14476 no:yes:* ) 14477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14478$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14480$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14482$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14484$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14486$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14488$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14489 ( cat <<\_ASBOX 14490## ----------------------------------- ## 14491## Report this to kientzle@freebsd.org ## 14492## ----------------------------------- ## 14493_ASBOX 14494 ) | sed "s/^/$as_me: WARNING: /" >&2 14495 ;; 14496esac 14497{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14498$as_echo_n "checking for $ac_header... " >&6; } 14499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14500 $as_echo_n "(cached) " >&6 14501else 14502 eval "$as_ac_Header=\$ac_header_preproc" 14503fi 14504ac_res=`eval 'as_val=${'$as_ac_Header'} 14505 $as_echo "$as_val"'` 14506 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14507$as_echo "$ac_res" >&6; } 14508 14509fi 14510if test `eval 'as_val=${'$as_ac_Header'} 14511 $as_echo "$as_val"'` = yes; then 14512 cat >>confdefs.h <<_ACEOF 14513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14514_ACEOF 14515 14516fi 14517 14518done 14519 14520 14521{ $as_echo "$as_me:$LINENO: checking for lzma_stream_decoder in -llzma" >&5 14522$as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; } 14523if test "${ac_cv_lib_lzma_lzma_stream_decoder+set}" = set; then 14524 $as_echo_n "(cached) " >&6 14525else 14526 ac_check_lib_save_LIBS=$LIBS 14527LIBS="-llzma $LIBS" 14528cat >conftest.$ac_ext <<_ACEOF 14529/* confdefs.h. */ 14530_ACEOF 14531cat confdefs.h >>conftest.$ac_ext 14532cat >>conftest.$ac_ext <<_ACEOF 14533/* end confdefs.h. */ 14534 14535/* Override any GCC internal prototype to avoid an error. 14536 Use char because int might match the return type of a GCC 14537 builtin and then its argument prototype would still apply. */ 14538#ifdef __cplusplus 14539extern "C" 14540#endif 14541char lzma_stream_decoder (); 14542int 14543main () 14544{ 14545return lzma_stream_decoder (); 14546 ; 14547 return 0; 14548} 14549_ACEOF 14550rm -f conftest.$ac_objext conftest$ac_exeext 14551if { (ac_try="$ac_link" 14552case "(($ac_try" in 14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14554 *) ac_try_echo=$ac_try;; 14555esac 14556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14557$as_echo "$ac_try_echo") >&5 14558 (eval "$ac_link") 2>conftest.er1 14559 ac_status=$? 14560 grep -v '^ *+' conftest.er1 >conftest.err 14561 rm -f conftest.er1 14562 cat conftest.err >&5 14563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14564 (exit $ac_status); } && { 14565 test -z "$ac_c_werror_flag" || 14566 test ! -s conftest.err 14567 } && test -s conftest$ac_exeext && { 14568 test "$cross_compiling" = yes || 14569 $as_test_x conftest$ac_exeext 14570 }; then 14571 ac_cv_lib_lzma_lzma_stream_decoder=yes 14572else 14573 $as_echo "$as_me: failed program was:" >&5 14574sed 's/^/| /' conftest.$ac_ext >&5 14575 14576 ac_cv_lib_lzma_lzma_stream_decoder=no 14577fi 14578 14579rm -rf conftest.dSYM 14580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14581 conftest$ac_exeext conftest.$ac_ext 14582LIBS=$ac_check_lib_save_LIBS 14583fi 14584{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5 14585$as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; } 14586if test $ac_cv_lib_lzma_lzma_stream_decoder = yes; then 14587 cat >>confdefs.h <<_ACEOF 14588#define HAVE_LIBLZMA 1 14589_ACEOF 14590 14591 LIBS="-llzma $LIBS" 14592 14593fi 14594 14595fi 14596 14597 14598# Check whether --with-openssl was given. 14599if test "${with_openssl+set}" = set; then 14600 withval=$with_openssl; 14601fi 14602 14603 14604 14605# Check whether --with-xml2 was given. 14606if test "${with_xml2+set}" = set; then 14607 withval=$with_xml2; 14608fi 14609 14610 14611# Check whether --with-expat was given. 14612if test "${with_expat+set}" = set; then 14613 withval=$with_expat; 14614fi 14615 14616 14617if test "x$with_xml2" != "xno"; then 14618 # Extract the first word of "xml2-config", so it can be a program name with args. 14619set dummy xml2-config; ac_word=$2 14620{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 14621$as_echo_n "checking for $ac_word... " >&6; } 14622if test "${ac_cv_path_XML2_CONFIG+set}" = set; then 14623 $as_echo_n "(cached) " >&6 14624else 14625 case $XML2_CONFIG in 14626 [\\/]* | ?:[\\/]*) 14627 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. 14628 ;; 14629 *) 14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14631for as_dir in ${PATH} 14632do 14633 IFS=$as_save_IFS 14634 test -z "$as_dir" && as_dir=. 14635 for ac_exec_ext in '' $ac_executable_extensions; do 14636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14637 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14638 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14639 break 2 14640 fi 14641done 14642done 14643IFS=$as_save_IFS 14644 14645 ;; 14646esac 14647fi 14648XML2_CONFIG=$ac_cv_path_XML2_CONFIG 14649if test -n "$XML2_CONFIG"; then 14650 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5 14651$as_echo "$XML2_CONFIG" >&6; } 14652else 14653 { $as_echo "$as_me:$LINENO: result: no" >&5 14654$as_echo "no" >&6; } 14655fi 14656 14657 14658 if test "x$XML2_CONFIG" != "x"; then 14659 CPPFLAGS="${CPPFLAGS} `${XML2_CONFIG} --cflags`" 14660 LIBS="${LIBS} `${XML2_CONFIG} --libs`" 14661 fi 14662 14663for ac_header in libxml/xmlreader.h 14664do 14665as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14667 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14668$as_echo_n "checking for $ac_header... " >&6; } 14669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14670 $as_echo_n "(cached) " >&6 14671fi 14672ac_res=`eval 'as_val=${'$as_ac_Header'} 14673 $as_echo "$as_val"'` 14674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14675$as_echo "$ac_res" >&6; } 14676else 14677 # Is the header compilable? 14678{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 14679$as_echo_n "checking $ac_header usability... " >&6; } 14680cat >conftest.$ac_ext <<_ACEOF 14681/* confdefs.h. */ 14682_ACEOF 14683cat confdefs.h >>conftest.$ac_ext 14684cat >>conftest.$ac_ext <<_ACEOF 14685/* end confdefs.h. */ 14686$ac_includes_default 14687#include <$ac_header> 14688_ACEOF 14689rm -f conftest.$ac_objext 14690if { (ac_try="$ac_compile" 14691case "(($ac_try" in 14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14693 *) ac_try_echo=$ac_try;; 14694esac 14695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14696$as_echo "$ac_try_echo") >&5 14697 (eval "$ac_compile") 2>conftest.er1 14698 ac_status=$? 14699 grep -v '^ *+' conftest.er1 >conftest.err 14700 rm -f conftest.er1 14701 cat conftest.err >&5 14702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14703 (exit $ac_status); } && { 14704 test -z "$ac_c_werror_flag" || 14705 test ! -s conftest.err 14706 } && test -s conftest.$ac_objext; then 14707 ac_header_compiler=yes 14708else 14709 $as_echo "$as_me: failed program was:" >&5 14710sed 's/^/| /' conftest.$ac_ext >&5 14711 14712 ac_header_compiler=no 14713fi 14714 14715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14716{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14717$as_echo "$ac_header_compiler" >&6; } 14718 14719# Is the header present? 14720{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 14721$as_echo_n "checking $ac_header presence... " >&6; } 14722cat >conftest.$ac_ext <<_ACEOF 14723/* confdefs.h. */ 14724_ACEOF 14725cat confdefs.h >>conftest.$ac_ext 14726cat >>conftest.$ac_ext <<_ACEOF 14727/* end confdefs.h. */ 14728#include <$ac_header> 14729_ACEOF 14730if { (ac_try="$ac_cpp conftest.$ac_ext" 14731case "(($ac_try" in 14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14733 *) ac_try_echo=$ac_try;; 14734esac 14735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14736$as_echo "$ac_try_echo") >&5 14737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14738 ac_status=$? 14739 grep -v '^ *+' conftest.er1 >conftest.err 14740 rm -f conftest.er1 14741 cat conftest.err >&5 14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14743 (exit $ac_status); } >/dev/null && { 14744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14745 test ! -s conftest.err 14746 }; then 14747 ac_header_preproc=yes 14748else 14749 $as_echo "$as_me: failed program was:" >&5 14750sed 's/^/| /' conftest.$ac_ext >&5 14751 14752 ac_header_preproc=no 14753fi 14754 14755rm -f conftest.err conftest.$ac_ext 14756{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14757$as_echo "$ac_header_preproc" >&6; } 14758 14759# So? What about this header? 14760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14761 yes:no: ) 14762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14763$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14765$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14766 ac_header_preproc=yes 14767 ;; 14768 no:yes:* ) 14769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14770$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14772$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14774$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14776$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14778$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14780$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14781 ( cat <<\_ASBOX 14782## ----------------------------------- ## 14783## Report this to kientzle@freebsd.org ## 14784## ----------------------------------- ## 14785_ASBOX 14786 ) | sed "s/^/$as_me: WARNING: /" >&2 14787 ;; 14788esac 14789{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14790$as_echo_n "checking for $ac_header... " >&6; } 14791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14792 $as_echo_n "(cached) " >&6 14793else 14794 eval "$as_ac_Header=\$ac_header_preproc" 14795fi 14796ac_res=`eval 'as_val=${'$as_ac_Header'} 14797 $as_echo "$as_val"'` 14798 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14799$as_echo "$ac_res" >&6; } 14800 14801fi 14802if test `eval 'as_val=${'$as_ac_Header'} 14803 $as_echo "$as_val"'` = yes; then 14804 cat >>confdefs.h <<_ACEOF 14805#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14806_ACEOF 14807 14808fi 14809 14810done 14811 14812 14813{ $as_echo "$as_me:$LINENO: checking for xmlInitParser in -lxml2" >&5 14814$as_echo_n "checking for xmlInitParser in -lxml2... " >&6; } 14815if test "${ac_cv_lib_xml2_xmlInitParser+set}" = set; then 14816 $as_echo_n "(cached) " >&6 14817else 14818 ac_check_lib_save_LIBS=$LIBS 14819LIBS="-lxml2 $LIBS" 14820cat >conftest.$ac_ext <<_ACEOF 14821/* confdefs.h. */ 14822_ACEOF 14823cat confdefs.h >>conftest.$ac_ext 14824cat >>conftest.$ac_ext <<_ACEOF 14825/* end confdefs.h. */ 14826 14827/* Override any GCC internal prototype to avoid an error. 14828 Use char because int might match the return type of a GCC 14829 builtin and then its argument prototype would still apply. */ 14830#ifdef __cplusplus 14831extern "C" 14832#endif 14833char xmlInitParser (); 14834int 14835main () 14836{ 14837return xmlInitParser (); 14838 ; 14839 return 0; 14840} 14841_ACEOF 14842rm -f conftest.$ac_objext conftest$ac_exeext 14843if { (ac_try="$ac_link" 14844case "(($ac_try" in 14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14846 *) ac_try_echo=$ac_try;; 14847esac 14848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14849$as_echo "$ac_try_echo") >&5 14850 (eval "$ac_link") 2>conftest.er1 14851 ac_status=$? 14852 grep -v '^ *+' conftest.er1 >conftest.err 14853 rm -f conftest.er1 14854 cat conftest.err >&5 14855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14856 (exit $ac_status); } && { 14857 test -z "$ac_c_werror_flag" || 14858 test ! -s conftest.err 14859 } && test -s conftest$ac_exeext && { 14860 test "$cross_compiling" = yes || 14861 $as_test_x conftest$ac_exeext 14862 }; then 14863 ac_cv_lib_xml2_xmlInitParser=yes 14864else 14865 $as_echo "$as_me: failed program was:" >&5 14866sed 's/^/| /' conftest.$ac_ext >&5 14867 14868 ac_cv_lib_xml2_xmlInitParser=no 14869fi 14870 14871rm -rf conftest.dSYM 14872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14873 conftest$ac_exeext conftest.$ac_ext 14874LIBS=$ac_check_lib_save_LIBS 14875fi 14876{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlInitParser" >&5 14877$as_echo "$ac_cv_lib_xml2_xmlInitParser" >&6; } 14878if test $ac_cv_lib_xml2_xmlInitParser = yes; then 14879 cat >>confdefs.h <<_ACEOF 14880#define HAVE_LIBXML2 1 14881_ACEOF 14882 14883 LIBS="-lxml2 $LIBS" 14884 14885fi 14886 14887fi 14888if test "x$ac_cv_header_libxml_xmlreader_h" != "xyes"; then 14889 if test "x$with_expat" != "xno"; then 14890 14891for ac_header in expat.h 14892do 14893as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14896$as_echo_n "checking for $ac_header... " >&6; } 14897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14898 $as_echo_n "(cached) " >&6 14899fi 14900ac_res=`eval 'as_val=${'$as_ac_Header'} 14901 $as_echo "$as_val"'` 14902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14903$as_echo "$ac_res" >&6; } 14904else 14905 # Is the header compilable? 14906{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 14907$as_echo_n "checking $ac_header usability... " >&6; } 14908cat >conftest.$ac_ext <<_ACEOF 14909/* confdefs.h. */ 14910_ACEOF 14911cat confdefs.h >>conftest.$ac_ext 14912cat >>conftest.$ac_ext <<_ACEOF 14913/* end confdefs.h. */ 14914$ac_includes_default 14915#include <$ac_header> 14916_ACEOF 14917rm -f conftest.$ac_objext 14918if { (ac_try="$ac_compile" 14919case "(($ac_try" in 14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14921 *) ac_try_echo=$ac_try;; 14922esac 14923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14924$as_echo "$ac_try_echo") >&5 14925 (eval "$ac_compile") 2>conftest.er1 14926 ac_status=$? 14927 grep -v '^ *+' conftest.er1 >conftest.err 14928 rm -f conftest.er1 14929 cat conftest.err >&5 14930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14931 (exit $ac_status); } && { 14932 test -z "$ac_c_werror_flag" || 14933 test ! -s conftest.err 14934 } && test -s conftest.$ac_objext; then 14935 ac_header_compiler=yes 14936else 14937 $as_echo "$as_me: failed program was:" >&5 14938sed 's/^/| /' conftest.$ac_ext >&5 14939 14940 ac_header_compiler=no 14941fi 14942 14943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14944{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14945$as_echo "$ac_header_compiler" >&6; } 14946 14947# Is the header present? 14948{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 14949$as_echo_n "checking $ac_header presence... " >&6; } 14950cat >conftest.$ac_ext <<_ACEOF 14951/* confdefs.h. */ 14952_ACEOF 14953cat confdefs.h >>conftest.$ac_ext 14954cat >>conftest.$ac_ext <<_ACEOF 14955/* end confdefs.h. */ 14956#include <$ac_header> 14957_ACEOF 14958if { (ac_try="$ac_cpp conftest.$ac_ext" 14959case "(($ac_try" in 14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14961 *) ac_try_echo=$ac_try;; 14962esac 14963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14964$as_echo "$ac_try_echo") >&5 14965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14966 ac_status=$? 14967 grep -v '^ *+' conftest.er1 >conftest.err 14968 rm -f conftest.er1 14969 cat conftest.err >&5 14970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14971 (exit $ac_status); } >/dev/null && { 14972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14973 test ! -s conftest.err 14974 }; then 14975 ac_header_preproc=yes 14976else 14977 $as_echo "$as_me: failed program was:" >&5 14978sed 's/^/| /' conftest.$ac_ext >&5 14979 14980 ac_header_preproc=no 14981fi 14982 14983rm -f conftest.err conftest.$ac_ext 14984{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14985$as_echo "$ac_header_preproc" >&6; } 14986 14987# So? What about this header? 14988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14989 yes:no: ) 14990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14991$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14993$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14994 ac_header_preproc=yes 14995 ;; 14996 no:yes:* ) 14997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14998$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15000$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15002$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15004$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15006$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15008$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15009 ( cat <<\_ASBOX 15010## ----------------------------------- ## 15011## Report this to kientzle@freebsd.org ## 15012## ----------------------------------- ## 15013_ASBOX 15014 ) | sed "s/^/$as_me: WARNING: /" >&2 15015 ;; 15016esac 15017{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15018$as_echo_n "checking for $ac_header... " >&6; } 15019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15020 $as_echo_n "(cached) " >&6 15021else 15022 eval "$as_ac_Header=\$ac_header_preproc" 15023fi 15024ac_res=`eval 'as_val=${'$as_ac_Header'} 15025 $as_echo "$as_val"'` 15026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15027$as_echo "$ac_res" >&6; } 15028 15029fi 15030if test `eval 'as_val=${'$as_ac_Header'} 15031 $as_echo "$as_val"'` = yes; then 15032 cat >>confdefs.h <<_ACEOF 15033#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15034_ACEOF 15035 15036fi 15037 15038done 15039 15040 15041{ $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 15042$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; } 15043if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then 15044 $as_echo_n "(cached) " >&6 15045else 15046 ac_check_lib_save_LIBS=$LIBS 15047LIBS="-lexpat $LIBS" 15048cat >conftest.$ac_ext <<_ACEOF 15049/* confdefs.h. */ 15050_ACEOF 15051cat confdefs.h >>conftest.$ac_ext 15052cat >>conftest.$ac_ext <<_ACEOF 15053/* end confdefs.h. */ 15054 15055/* Override any GCC internal prototype to avoid an error. 15056 Use char because int might match the return type of a GCC 15057 builtin and then its argument prototype would still apply. */ 15058#ifdef __cplusplus 15059extern "C" 15060#endif 15061char XML_ParserCreate (); 15062int 15063main () 15064{ 15065return XML_ParserCreate (); 15066 ; 15067 return 0; 15068} 15069_ACEOF 15070rm -f conftest.$ac_objext conftest$ac_exeext 15071if { (ac_try="$ac_link" 15072case "(($ac_try" in 15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15074 *) ac_try_echo=$ac_try;; 15075esac 15076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15077$as_echo "$ac_try_echo") >&5 15078 (eval "$ac_link") 2>conftest.er1 15079 ac_status=$? 15080 grep -v '^ *+' conftest.er1 >conftest.err 15081 rm -f conftest.er1 15082 cat conftest.err >&5 15083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15084 (exit $ac_status); } && { 15085 test -z "$ac_c_werror_flag" || 15086 test ! -s conftest.err 15087 } && test -s conftest$ac_exeext && { 15088 test "$cross_compiling" = yes || 15089 $as_test_x conftest$ac_exeext 15090 }; then 15091 ac_cv_lib_expat_XML_ParserCreate=yes 15092else 15093 $as_echo "$as_me: failed program was:" >&5 15094sed 's/^/| /' conftest.$ac_ext >&5 15095 15096 ac_cv_lib_expat_XML_ParserCreate=no 15097fi 15098 15099rm -rf conftest.dSYM 15100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15101 conftest$ac_exeext conftest.$ac_ext 15102LIBS=$ac_check_lib_save_LIBS 15103fi 15104{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 15105$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; } 15106if test $ac_cv_lib_expat_XML_ParserCreate = yes; then 15107 cat >>confdefs.h <<_ACEOF 15108#define HAVE_LIBEXPAT 1 15109_ACEOF 15110 15111 LIBS="-lexpat $LIBS" 15112 15113fi 15114 15115 fi 15116fi 15117 15118 15119 15120 15121 15122 15123 15124 15125for ac_header in md5.h ripemd.h rmd160.h sha.h sha1.h sha2.h sha256.h 15126do 15127as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15130$as_echo_n "checking for $ac_header... " >&6; } 15131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15132 $as_echo_n "(cached) " >&6 15133fi 15134ac_res=`eval 'as_val=${'$as_ac_Header'} 15135 $as_echo "$as_val"'` 15136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15137$as_echo "$ac_res" >&6; } 15138else 15139 # Is the header compilable? 15140{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 15141$as_echo_n "checking $ac_header usability... " >&6; } 15142cat >conftest.$ac_ext <<_ACEOF 15143/* confdefs.h. */ 15144_ACEOF 15145cat confdefs.h >>conftest.$ac_ext 15146cat >>conftest.$ac_ext <<_ACEOF 15147/* end confdefs.h. */ 15148$ac_includes_default 15149#include <$ac_header> 15150_ACEOF 15151rm -f conftest.$ac_objext 15152if { (ac_try="$ac_compile" 15153case "(($ac_try" in 15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15155 *) ac_try_echo=$ac_try;; 15156esac 15157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15158$as_echo "$ac_try_echo") >&5 15159 (eval "$ac_compile") 2>conftest.er1 15160 ac_status=$? 15161 grep -v '^ *+' conftest.er1 >conftest.err 15162 rm -f conftest.er1 15163 cat conftest.err >&5 15164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15165 (exit $ac_status); } && { 15166 test -z "$ac_c_werror_flag" || 15167 test ! -s conftest.err 15168 } && test -s conftest.$ac_objext; then 15169 ac_header_compiler=yes 15170else 15171 $as_echo "$as_me: failed program was:" >&5 15172sed 's/^/| /' conftest.$ac_ext >&5 15173 15174 ac_header_compiler=no 15175fi 15176 15177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15178{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15179$as_echo "$ac_header_compiler" >&6; } 15180 15181# Is the header present? 15182{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 15183$as_echo_n "checking $ac_header presence... " >&6; } 15184cat >conftest.$ac_ext <<_ACEOF 15185/* confdefs.h. */ 15186_ACEOF 15187cat confdefs.h >>conftest.$ac_ext 15188cat >>conftest.$ac_ext <<_ACEOF 15189/* end confdefs.h. */ 15190#include <$ac_header> 15191_ACEOF 15192if { (ac_try="$ac_cpp conftest.$ac_ext" 15193case "(($ac_try" in 15194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15195 *) ac_try_echo=$ac_try;; 15196esac 15197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15198$as_echo "$ac_try_echo") >&5 15199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15200 ac_status=$? 15201 grep -v '^ *+' conftest.er1 >conftest.err 15202 rm -f conftest.er1 15203 cat conftest.err >&5 15204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15205 (exit $ac_status); } >/dev/null && { 15206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15207 test ! -s conftest.err 15208 }; then 15209 ac_header_preproc=yes 15210else 15211 $as_echo "$as_me: failed program was:" >&5 15212sed 's/^/| /' conftest.$ac_ext >&5 15213 15214 ac_header_preproc=no 15215fi 15216 15217rm -f conftest.err conftest.$ac_ext 15218{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15219$as_echo "$ac_header_preproc" >&6; } 15220 15221# So? What about this header? 15222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15223 yes:no: ) 15224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15225$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15227$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15228 ac_header_preproc=yes 15229 ;; 15230 no:yes:* ) 15231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15232$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15234$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15236$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15238$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15240$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15242$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15243 ( cat <<\_ASBOX 15244## ----------------------------------- ## 15245## Report this to kientzle@freebsd.org ## 15246## ----------------------------------- ## 15247_ASBOX 15248 ) | sed "s/^/$as_me: WARNING: /" >&2 15249 ;; 15250esac 15251{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15252$as_echo_n "checking for $ac_header... " >&6; } 15253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15254 $as_echo_n "(cached) " >&6 15255else 15256 eval "$as_ac_Header=\$ac_header_preproc" 15257fi 15258ac_res=`eval 'as_val=${'$as_ac_Header'} 15259 $as_echo "$as_val"'` 15260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15261$as_echo "$ac_res" >&6; } 15262 15263fi 15264if test `eval 'as_val=${'$as_ac_Header'} 15265 $as_echo "$as_val"'` = yes; then 15266 cat >>confdefs.h <<_ACEOF 15267#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15268_ACEOF 15269 15270fi 15271 15272done 15273 15274# Common names for libc implementation on NetBSD and OpenBSD 15275 15276 15277 15278for ac_func in MD5Init RMD160Init SHA1Init 15279do 15280as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15281{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15282$as_echo_n "checking for $ac_func... " >&6; } 15283if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15284 $as_echo_n "(cached) " >&6 15285else 15286 cat >conftest.$ac_ext <<_ACEOF 15287/* confdefs.h. */ 15288_ACEOF 15289cat confdefs.h >>conftest.$ac_ext 15290cat >>conftest.$ac_ext <<_ACEOF 15291/* end confdefs.h. */ 15292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15293 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15294#define $ac_func innocuous_$ac_func 15295 15296/* System header to define __stub macros and hopefully few prototypes, 15297 which can conflict with char $ac_func (); below. 15298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15299 <limits.h> exists even on freestanding compilers. */ 15300 15301#ifdef __STDC__ 15302# include <limits.h> 15303#else 15304# include <assert.h> 15305#endif 15306 15307#undef $ac_func 15308 15309/* Override any GCC internal prototype to avoid an error. 15310 Use char because int might match the return type of a GCC 15311 builtin and then its argument prototype would still apply. */ 15312#ifdef __cplusplus 15313extern "C" 15314#endif 15315char $ac_func (); 15316/* The GNU C library defines this for functions which it implements 15317 to always fail with ENOSYS. Some functions are actually named 15318 something starting with __ and the normal name is an alias. */ 15319#if defined __stub_$ac_func || defined __stub___$ac_func 15320choke me 15321#endif 15322 15323int 15324main () 15325{ 15326return $ac_func (); 15327 ; 15328 return 0; 15329} 15330_ACEOF 15331rm -f conftest.$ac_objext conftest$ac_exeext 15332if { (ac_try="$ac_link" 15333case "(($ac_try" in 15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15335 *) ac_try_echo=$ac_try;; 15336esac 15337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15338$as_echo "$ac_try_echo") >&5 15339 (eval "$ac_link") 2>conftest.er1 15340 ac_status=$? 15341 grep -v '^ *+' conftest.er1 >conftest.err 15342 rm -f conftest.er1 15343 cat conftest.err >&5 15344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15345 (exit $ac_status); } && { 15346 test -z "$ac_c_werror_flag" || 15347 test ! -s conftest.err 15348 } && test -s conftest$ac_exeext && { 15349 test "$cross_compiling" = yes || 15350 $as_test_x conftest$ac_exeext 15351 }; then 15352 eval "$as_ac_var=yes" 15353else 15354 $as_echo "$as_me: failed program was:" >&5 15355sed 's/^/| /' conftest.$ac_ext >&5 15356 15357 eval "$as_ac_var=no" 15358fi 15359 15360rm -rf conftest.dSYM 15361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15362 conftest$ac_exeext conftest.$ac_ext 15363fi 15364ac_res=`eval 'as_val=${'$as_ac_var'} 15365 $as_echo "$as_val"'` 15366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15367$as_echo "$ac_res" >&6; } 15368if test `eval 'as_val=${'$as_ac_var'} 15369 $as_echo "$as_val"'` = yes; then 15370 cat >>confdefs.h <<_ACEOF 15371#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15372_ACEOF 15373 15374fi 15375done 15376 15377# SHA2 on NetBSD and older OpenBSD 15378 15379 15380 15381for ac_func in SHA256_Init SHA384_Init SHA512_Init 15382do 15383as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15384{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15385$as_echo_n "checking for $ac_func... " >&6; } 15386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15387 $as_echo_n "(cached) " >&6 15388else 15389 cat >conftest.$ac_ext <<_ACEOF 15390/* confdefs.h. */ 15391_ACEOF 15392cat confdefs.h >>conftest.$ac_ext 15393cat >>conftest.$ac_ext <<_ACEOF 15394/* end confdefs.h. */ 15395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15396 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15397#define $ac_func innocuous_$ac_func 15398 15399/* System header to define __stub macros and hopefully few prototypes, 15400 which can conflict with char $ac_func (); below. 15401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15402 <limits.h> exists even on freestanding compilers. */ 15403 15404#ifdef __STDC__ 15405# include <limits.h> 15406#else 15407# include <assert.h> 15408#endif 15409 15410#undef $ac_func 15411 15412/* Override any GCC internal prototype to avoid an error. 15413 Use char because int might match the return type of a GCC 15414 builtin and then its argument prototype would still apply. */ 15415#ifdef __cplusplus 15416extern "C" 15417#endif 15418char $ac_func (); 15419/* The GNU C library defines this for functions which it implements 15420 to always fail with ENOSYS. Some functions are actually named 15421 something starting with __ and the normal name is an alias. */ 15422#if defined __stub_$ac_func || defined __stub___$ac_func 15423choke me 15424#endif 15425 15426int 15427main () 15428{ 15429return $ac_func (); 15430 ; 15431 return 0; 15432} 15433_ACEOF 15434rm -f conftest.$ac_objext conftest$ac_exeext 15435if { (ac_try="$ac_link" 15436case "(($ac_try" in 15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15438 *) ac_try_echo=$ac_try;; 15439esac 15440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15441$as_echo "$ac_try_echo") >&5 15442 (eval "$ac_link") 2>conftest.er1 15443 ac_status=$? 15444 grep -v '^ *+' conftest.er1 >conftest.err 15445 rm -f conftest.er1 15446 cat conftest.err >&5 15447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15448 (exit $ac_status); } && { 15449 test -z "$ac_c_werror_flag" || 15450 test ! -s conftest.err 15451 } && test -s conftest$ac_exeext && { 15452 test "$cross_compiling" = yes || 15453 $as_test_x conftest$ac_exeext 15454 }; then 15455 eval "$as_ac_var=yes" 15456else 15457 $as_echo "$as_me: failed program was:" >&5 15458sed 's/^/| /' conftest.$ac_ext >&5 15459 15460 eval "$as_ac_var=no" 15461fi 15462 15463rm -rf conftest.dSYM 15464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15465 conftest$ac_exeext conftest.$ac_ext 15466fi 15467ac_res=`eval 'as_val=${'$as_ac_var'} 15468 $as_echo "$as_val"'` 15469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15470$as_echo "$ac_res" >&6; } 15471if test `eval 'as_val=${'$as_ac_var'} 15472 $as_echo "$as_val"'` = yes; then 15473 cat >>confdefs.h <<_ACEOF 15474#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15475_ACEOF 15476 15477fi 15478done 15479 15480# SHA2 on newer OpenBSD 15481 15482 15483 15484for ac_func in SHA256Init SHA384Init SHA512Init 15485do 15486as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15487{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15488$as_echo_n "checking for $ac_func... " >&6; } 15489if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15490 $as_echo_n "(cached) " >&6 15491else 15492 cat >conftest.$ac_ext <<_ACEOF 15493/* confdefs.h. */ 15494_ACEOF 15495cat confdefs.h >>conftest.$ac_ext 15496cat >>conftest.$ac_ext <<_ACEOF 15497/* end confdefs.h. */ 15498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15499 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15500#define $ac_func innocuous_$ac_func 15501 15502/* System header to define __stub macros and hopefully few prototypes, 15503 which can conflict with char $ac_func (); below. 15504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15505 <limits.h> exists even on freestanding compilers. */ 15506 15507#ifdef __STDC__ 15508# include <limits.h> 15509#else 15510# include <assert.h> 15511#endif 15512 15513#undef $ac_func 15514 15515/* Override any GCC internal prototype to avoid an error. 15516 Use char because int might match the return type of a GCC 15517 builtin and then its argument prototype would still apply. */ 15518#ifdef __cplusplus 15519extern "C" 15520#endif 15521char $ac_func (); 15522/* The GNU C library defines this for functions which it implements 15523 to always fail with ENOSYS. Some functions are actually named 15524 something starting with __ and the normal name is an alias. */ 15525#if defined __stub_$ac_func || defined __stub___$ac_func 15526choke me 15527#endif 15528 15529int 15530main () 15531{ 15532return $ac_func (); 15533 ; 15534 return 0; 15535} 15536_ACEOF 15537rm -f conftest.$ac_objext conftest$ac_exeext 15538if { (ac_try="$ac_link" 15539case "(($ac_try" in 15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15541 *) ac_try_echo=$ac_try;; 15542esac 15543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15544$as_echo "$ac_try_echo") >&5 15545 (eval "$ac_link") 2>conftest.er1 15546 ac_status=$? 15547 grep -v '^ *+' conftest.er1 >conftest.err 15548 rm -f conftest.er1 15549 cat conftest.err >&5 15550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15551 (exit $ac_status); } && { 15552 test -z "$ac_c_werror_flag" || 15553 test ! -s conftest.err 15554 } && test -s conftest$ac_exeext && { 15555 test "$cross_compiling" = yes || 15556 $as_test_x conftest$ac_exeext 15557 }; then 15558 eval "$as_ac_var=yes" 15559else 15560 $as_echo "$as_me: failed program was:" >&5 15561sed 's/^/| /' conftest.$ac_ext >&5 15562 15563 eval "$as_ac_var=no" 15564fi 15565 15566rm -rf conftest.dSYM 15567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15568 conftest$ac_exeext conftest.$ac_ext 15569fi 15570ac_res=`eval 'as_val=${'$as_ac_var'} 15571 $as_echo "$as_val"'` 15572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15573$as_echo "$ac_res" >&6; } 15574if test `eval 'as_val=${'$as_ac_var'} 15575 $as_echo "$as_val"'` = yes; then 15576 cat >>confdefs.h <<_ACEOF 15577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15578_ACEOF 15579 15580fi 15581done 15582 15583 15584if test "x$with_openssl" != "xno"; then 15585 if test "$ac_cv_func_MD5Init" != "yes"; then 15586 15587for ac_header in openssl/md5.h 15588do 15589as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15592$as_echo_n "checking for $ac_header... " >&6; } 15593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15594 $as_echo_n "(cached) " >&6 15595fi 15596ac_res=`eval 'as_val=${'$as_ac_Header'} 15597 $as_echo "$as_val"'` 15598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15599$as_echo "$ac_res" >&6; } 15600else 15601 # Is the header compilable? 15602{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 15603$as_echo_n "checking $ac_header usability... " >&6; } 15604cat >conftest.$ac_ext <<_ACEOF 15605/* confdefs.h. */ 15606_ACEOF 15607cat confdefs.h >>conftest.$ac_ext 15608cat >>conftest.$ac_ext <<_ACEOF 15609/* end confdefs.h. */ 15610$ac_includes_default 15611#include <$ac_header> 15612_ACEOF 15613rm -f conftest.$ac_objext 15614if { (ac_try="$ac_compile" 15615case "(($ac_try" in 15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15617 *) ac_try_echo=$ac_try;; 15618esac 15619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15620$as_echo "$ac_try_echo") >&5 15621 (eval "$ac_compile") 2>conftest.er1 15622 ac_status=$? 15623 grep -v '^ *+' conftest.er1 >conftest.err 15624 rm -f conftest.er1 15625 cat conftest.err >&5 15626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15627 (exit $ac_status); } && { 15628 test -z "$ac_c_werror_flag" || 15629 test ! -s conftest.err 15630 } && test -s conftest.$ac_objext; then 15631 ac_header_compiler=yes 15632else 15633 $as_echo "$as_me: failed program was:" >&5 15634sed 's/^/| /' conftest.$ac_ext >&5 15635 15636 ac_header_compiler=no 15637fi 15638 15639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15640{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15641$as_echo "$ac_header_compiler" >&6; } 15642 15643# Is the header present? 15644{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 15645$as_echo_n "checking $ac_header presence... " >&6; } 15646cat >conftest.$ac_ext <<_ACEOF 15647/* confdefs.h. */ 15648_ACEOF 15649cat confdefs.h >>conftest.$ac_ext 15650cat >>conftest.$ac_ext <<_ACEOF 15651/* end confdefs.h. */ 15652#include <$ac_header> 15653_ACEOF 15654if { (ac_try="$ac_cpp conftest.$ac_ext" 15655case "(($ac_try" in 15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15657 *) ac_try_echo=$ac_try;; 15658esac 15659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15660$as_echo "$ac_try_echo") >&5 15661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15662 ac_status=$? 15663 grep -v '^ *+' conftest.er1 >conftest.err 15664 rm -f conftest.er1 15665 cat conftest.err >&5 15666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15667 (exit $ac_status); } >/dev/null && { 15668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15669 test ! -s conftest.err 15670 }; then 15671 ac_header_preproc=yes 15672else 15673 $as_echo "$as_me: failed program was:" >&5 15674sed 's/^/| /' conftest.$ac_ext >&5 15675 15676 ac_header_preproc=no 15677fi 15678 15679rm -f conftest.err conftest.$ac_ext 15680{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15681$as_echo "$ac_header_preproc" >&6; } 15682 15683# So? What about this header? 15684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15685 yes:no: ) 15686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15687$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15689$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15690 ac_header_preproc=yes 15691 ;; 15692 no:yes:* ) 15693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15694$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15696$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15698$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15700$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15702$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15704$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15705 ( cat <<\_ASBOX 15706## ----------------------------------- ## 15707## Report this to kientzle@freebsd.org ## 15708## ----------------------------------- ## 15709_ASBOX 15710 ) | sed "s/^/$as_me: WARNING: /" >&2 15711 ;; 15712esac 15713{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15714$as_echo_n "checking for $ac_header... " >&6; } 15715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15716 $as_echo_n "(cached) " >&6 15717else 15718 eval "$as_ac_Header=\$ac_header_preproc" 15719fi 15720ac_res=`eval 'as_val=${'$as_ac_Header'} 15721 $as_echo "$as_val"'` 15722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15723$as_echo "$ac_res" >&6; } 15724 15725fi 15726if test `eval 'as_val=${'$as_ac_Header'} 15727 $as_echo "$as_val"'` = yes; then 15728 cat >>confdefs.h <<_ACEOF 15729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15730_ACEOF 15731 15732fi 15733 15734done 15735 15736 { $as_echo "$as_me:$LINENO: checking for library containing MD5_Init" >&5 15737$as_echo_n "checking for library containing MD5_Init... " >&6; } 15738if test "${ac_cv_search_MD5_Init+set}" = set; then 15739 $as_echo_n "(cached) " >&6 15740else 15741 ac_func_search_save_LIBS=$LIBS 15742cat >conftest.$ac_ext <<_ACEOF 15743/* confdefs.h. */ 15744_ACEOF 15745cat confdefs.h >>conftest.$ac_ext 15746cat >>conftest.$ac_ext <<_ACEOF 15747/* end confdefs.h. */ 15748 15749/* Override any GCC internal prototype to avoid an error. 15750 Use char because int might match the return type of a GCC 15751 builtin and then its argument prototype would still apply. */ 15752#ifdef __cplusplus 15753extern "C" 15754#endif 15755char MD5_Init (); 15756int 15757main () 15758{ 15759return MD5_Init (); 15760 ; 15761 return 0; 15762} 15763_ACEOF 15764for ac_lib in '' crypto; do 15765 if test -z "$ac_lib"; then 15766 ac_res="none required" 15767 else 15768 ac_res=-l$ac_lib 15769 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15770 fi 15771 rm -f conftest.$ac_objext conftest$ac_exeext 15772if { (ac_try="$ac_link" 15773case "(($ac_try" in 15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15775 *) ac_try_echo=$ac_try;; 15776esac 15777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15778$as_echo "$ac_try_echo") >&5 15779 (eval "$ac_link") 2>conftest.er1 15780 ac_status=$? 15781 grep -v '^ *+' conftest.er1 >conftest.err 15782 rm -f conftest.er1 15783 cat conftest.err >&5 15784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15785 (exit $ac_status); } && { 15786 test -z "$ac_c_werror_flag" || 15787 test ! -s conftest.err 15788 } && test -s conftest$ac_exeext && { 15789 test "$cross_compiling" = yes || 15790 $as_test_x conftest$ac_exeext 15791 }; then 15792 ac_cv_search_MD5_Init=$ac_res 15793else 15794 $as_echo "$as_me: failed program was:" >&5 15795sed 's/^/| /' conftest.$ac_ext >&5 15796 15797 15798fi 15799 15800rm -rf conftest.dSYM 15801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15802 conftest$ac_exeext 15803 if test "${ac_cv_search_MD5_Init+set}" = set; then 15804 break 15805fi 15806done 15807if test "${ac_cv_search_MD5_Init+set}" = set; then 15808 : 15809else 15810 ac_cv_search_MD5_Init=no 15811fi 15812rm conftest.$ac_ext 15813LIBS=$ac_func_search_save_LIBS 15814fi 15815{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_MD5_Init" >&5 15816$as_echo "$ac_cv_search_MD5_Init" >&6; } 15817ac_res=$ac_cv_search_MD5_Init 15818if test "$ac_res" != no; then 15819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15820 15821fi 15822 15823 fi 15824 if test "$ac_cv_func_RMD160Init" != "yes"; then 15825 15826for ac_header in openssl/ripemd.h 15827do 15828as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15831$as_echo_n "checking for $ac_header... " >&6; } 15832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15833 $as_echo_n "(cached) " >&6 15834fi 15835ac_res=`eval 'as_val=${'$as_ac_Header'} 15836 $as_echo "$as_val"'` 15837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15838$as_echo "$ac_res" >&6; } 15839else 15840 # Is the header compilable? 15841{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 15842$as_echo_n "checking $ac_header usability... " >&6; } 15843cat >conftest.$ac_ext <<_ACEOF 15844/* confdefs.h. */ 15845_ACEOF 15846cat confdefs.h >>conftest.$ac_ext 15847cat >>conftest.$ac_ext <<_ACEOF 15848/* end confdefs.h. */ 15849$ac_includes_default 15850#include <$ac_header> 15851_ACEOF 15852rm -f conftest.$ac_objext 15853if { (ac_try="$ac_compile" 15854case "(($ac_try" in 15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15856 *) ac_try_echo=$ac_try;; 15857esac 15858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15859$as_echo "$ac_try_echo") >&5 15860 (eval "$ac_compile") 2>conftest.er1 15861 ac_status=$? 15862 grep -v '^ *+' conftest.er1 >conftest.err 15863 rm -f conftest.er1 15864 cat conftest.err >&5 15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15866 (exit $ac_status); } && { 15867 test -z "$ac_c_werror_flag" || 15868 test ! -s conftest.err 15869 } && test -s conftest.$ac_objext; then 15870 ac_header_compiler=yes 15871else 15872 $as_echo "$as_me: failed program was:" >&5 15873sed 's/^/| /' conftest.$ac_ext >&5 15874 15875 ac_header_compiler=no 15876fi 15877 15878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15879{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15880$as_echo "$ac_header_compiler" >&6; } 15881 15882# Is the header present? 15883{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 15884$as_echo_n "checking $ac_header presence... " >&6; } 15885cat >conftest.$ac_ext <<_ACEOF 15886/* confdefs.h. */ 15887_ACEOF 15888cat confdefs.h >>conftest.$ac_ext 15889cat >>conftest.$ac_ext <<_ACEOF 15890/* end confdefs.h. */ 15891#include <$ac_header> 15892_ACEOF 15893if { (ac_try="$ac_cpp conftest.$ac_ext" 15894case "(($ac_try" in 15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15896 *) ac_try_echo=$ac_try;; 15897esac 15898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15899$as_echo "$ac_try_echo") >&5 15900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15901 ac_status=$? 15902 grep -v '^ *+' conftest.er1 >conftest.err 15903 rm -f conftest.er1 15904 cat conftest.err >&5 15905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15906 (exit $ac_status); } >/dev/null && { 15907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15908 test ! -s conftest.err 15909 }; then 15910 ac_header_preproc=yes 15911else 15912 $as_echo "$as_me: failed program was:" >&5 15913sed 's/^/| /' conftest.$ac_ext >&5 15914 15915 ac_header_preproc=no 15916fi 15917 15918rm -f conftest.err conftest.$ac_ext 15919{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15920$as_echo "$ac_header_preproc" >&6; } 15921 15922# So? What about this header? 15923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15924 yes:no: ) 15925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15926$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15928$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15929 ac_header_preproc=yes 15930 ;; 15931 no:yes:* ) 15932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15933$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15935$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15937$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15939$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15941$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15943$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15944 ( cat <<\_ASBOX 15945## ----------------------------------- ## 15946## Report this to kientzle@freebsd.org ## 15947## ----------------------------------- ## 15948_ASBOX 15949 ) | sed "s/^/$as_me: WARNING: /" >&2 15950 ;; 15951esac 15952{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15953$as_echo_n "checking for $ac_header... " >&6; } 15954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15955 $as_echo_n "(cached) " >&6 15956else 15957 eval "$as_ac_Header=\$ac_header_preproc" 15958fi 15959ac_res=`eval 'as_val=${'$as_ac_Header'} 15960 $as_echo "$as_val"'` 15961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15962$as_echo "$ac_res" >&6; } 15963 15964fi 15965if test `eval 'as_val=${'$as_ac_Header'} 15966 $as_echo "$as_val"'` = yes; then 15967 cat >>confdefs.h <<_ACEOF 15968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15969_ACEOF 15970 15971fi 15972 15973done 15974 15975 { $as_echo "$as_me:$LINENO: checking for library containing RIPEMD160_Init" >&5 15976$as_echo_n "checking for library containing RIPEMD160_Init... " >&6; } 15977if test "${ac_cv_search_RIPEMD160_Init+set}" = set; then 15978 $as_echo_n "(cached) " >&6 15979else 15980 ac_func_search_save_LIBS=$LIBS 15981cat >conftest.$ac_ext <<_ACEOF 15982/* confdefs.h. */ 15983_ACEOF 15984cat confdefs.h >>conftest.$ac_ext 15985cat >>conftest.$ac_ext <<_ACEOF 15986/* end confdefs.h. */ 15987 15988/* Override any GCC internal prototype to avoid an error. 15989 Use char because int might match the return type of a GCC 15990 builtin and then its argument prototype would still apply. */ 15991#ifdef __cplusplus 15992extern "C" 15993#endif 15994char RIPEMD160_Init (); 15995int 15996main () 15997{ 15998return RIPEMD160_Init (); 15999 ; 16000 return 0; 16001} 16002_ACEOF 16003for ac_lib in '' crypto; do 16004 if test -z "$ac_lib"; then 16005 ac_res="none required" 16006 else 16007 ac_res=-l$ac_lib 16008 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16009 fi 16010 rm -f conftest.$ac_objext conftest$ac_exeext 16011if { (ac_try="$ac_link" 16012case "(($ac_try" in 16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16014 *) ac_try_echo=$ac_try;; 16015esac 16016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16017$as_echo "$ac_try_echo") >&5 16018 (eval "$ac_link") 2>conftest.er1 16019 ac_status=$? 16020 grep -v '^ *+' conftest.er1 >conftest.err 16021 rm -f conftest.er1 16022 cat conftest.err >&5 16023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16024 (exit $ac_status); } && { 16025 test -z "$ac_c_werror_flag" || 16026 test ! -s conftest.err 16027 } && test -s conftest$ac_exeext && { 16028 test "$cross_compiling" = yes || 16029 $as_test_x conftest$ac_exeext 16030 }; then 16031 ac_cv_search_RIPEMD160_Init=$ac_res 16032else 16033 $as_echo "$as_me: failed program was:" >&5 16034sed 's/^/| /' conftest.$ac_ext >&5 16035 16036 16037fi 16038 16039rm -rf conftest.dSYM 16040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16041 conftest$ac_exeext 16042 if test "${ac_cv_search_RIPEMD160_Init+set}" = set; then 16043 break 16044fi 16045done 16046if test "${ac_cv_search_RIPEMD160_Init+set}" = set; then 16047 : 16048else 16049 ac_cv_search_RIPEMD160_Init=no 16050fi 16051rm conftest.$ac_ext 16052LIBS=$ac_func_search_save_LIBS 16053fi 16054{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_RIPEMD160_Init" >&5 16055$as_echo "$ac_cv_search_RIPEMD160_Init" >&6; } 16056ac_res=$ac_cv_search_RIPEMD160_Init 16057if test "$ac_res" != no; then 16058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16059 16060fi 16061 16062 fi 16063 if test "$ac_cv_func_SHA1Init" != "yes"; then 16064 16065for ac_header in openssl/sha.h 16066do 16067as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16069 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16070$as_echo_n "checking for $ac_header... " >&6; } 16071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16072 $as_echo_n "(cached) " >&6 16073fi 16074ac_res=`eval 'as_val=${'$as_ac_Header'} 16075 $as_echo "$as_val"'` 16076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16077$as_echo "$ac_res" >&6; } 16078else 16079 # Is the header compilable? 16080{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16081$as_echo_n "checking $ac_header usability... " >&6; } 16082cat >conftest.$ac_ext <<_ACEOF 16083/* confdefs.h. */ 16084_ACEOF 16085cat confdefs.h >>conftest.$ac_ext 16086cat >>conftest.$ac_ext <<_ACEOF 16087/* end confdefs.h. */ 16088$ac_includes_default 16089#include <$ac_header> 16090_ACEOF 16091rm -f conftest.$ac_objext 16092if { (ac_try="$ac_compile" 16093case "(($ac_try" in 16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16095 *) ac_try_echo=$ac_try;; 16096esac 16097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16098$as_echo "$ac_try_echo") >&5 16099 (eval "$ac_compile") 2>conftest.er1 16100 ac_status=$? 16101 grep -v '^ *+' conftest.er1 >conftest.err 16102 rm -f conftest.er1 16103 cat conftest.err >&5 16104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16105 (exit $ac_status); } && { 16106 test -z "$ac_c_werror_flag" || 16107 test ! -s conftest.err 16108 } && test -s conftest.$ac_objext; then 16109 ac_header_compiler=yes 16110else 16111 $as_echo "$as_me: failed program was:" >&5 16112sed 's/^/| /' conftest.$ac_ext >&5 16113 16114 ac_header_compiler=no 16115fi 16116 16117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16118{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16119$as_echo "$ac_header_compiler" >&6; } 16120 16121# Is the header present? 16122{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16123$as_echo_n "checking $ac_header presence... " >&6; } 16124cat >conftest.$ac_ext <<_ACEOF 16125/* confdefs.h. */ 16126_ACEOF 16127cat confdefs.h >>conftest.$ac_ext 16128cat >>conftest.$ac_ext <<_ACEOF 16129/* end confdefs.h. */ 16130#include <$ac_header> 16131_ACEOF 16132if { (ac_try="$ac_cpp conftest.$ac_ext" 16133case "(($ac_try" in 16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16135 *) ac_try_echo=$ac_try;; 16136esac 16137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16138$as_echo "$ac_try_echo") >&5 16139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16140 ac_status=$? 16141 grep -v '^ *+' conftest.er1 >conftest.err 16142 rm -f conftest.er1 16143 cat conftest.err >&5 16144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16145 (exit $ac_status); } >/dev/null && { 16146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16147 test ! -s conftest.err 16148 }; then 16149 ac_header_preproc=yes 16150else 16151 $as_echo "$as_me: failed program was:" >&5 16152sed 's/^/| /' conftest.$ac_ext >&5 16153 16154 ac_header_preproc=no 16155fi 16156 16157rm -f conftest.err conftest.$ac_ext 16158{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16159$as_echo "$ac_header_preproc" >&6; } 16160 16161# So? What about this header? 16162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16163 yes:no: ) 16164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16165$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16167$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16168 ac_header_preproc=yes 16169 ;; 16170 no:yes:* ) 16171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16172$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16174$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16176$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16178$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16180$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16182$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16183 ( cat <<\_ASBOX 16184## ----------------------------------- ## 16185## Report this to kientzle@freebsd.org ## 16186## ----------------------------------- ## 16187_ASBOX 16188 ) | sed "s/^/$as_me: WARNING: /" >&2 16189 ;; 16190esac 16191{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16192$as_echo_n "checking for $ac_header... " >&6; } 16193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16194 $as_echo_n "(cached) " >&6 16195else 16196 eval "$as_ac_Header=\$ac_header_preproc" 16197fi 16198ac_res=`eval 'as_val=${'$as_ac_Header'} 16199 $as_echo "$as_val"'` 16200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16201$as_echo "$ac_res" >&6; } 16202 16203fi 16204if test `eval 'as_val=${'$as_ac_Header'} 16205 $as_echo "$as_val"'` = yes; then 16206 cat >>confdefs.h <<_ACEOF 16207#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16208_ACEOF 16209 16210fi 16211 16212done 16213 16214 { $as_echo "$as_me:$LINENO: checking for library containing SHA1_Init" >&5 16215$as_echo_n "checking for library containing SHA1_Init... " >&6; } 16216if test "${ac_cv_search_SHA1_Init+set}" = set; then 16217 $as_echo_n "(cached) " >&6 16218else 16219 ac_func_search_save_LIBS=$LIBS 16220cat >conftest.$ac_ext <<_ACEOF 16221/* confdefs.h. */ 16222_ACEOF 16223cat confdefs.h >>conftest.$ac_ext 16224cat >>conftest.$ac_ext <<_ACEOF 16225/* end confdefs.h. */ 16226 16227/* Override any GCC internal prototype to avoid an error. 16228 Use char because int might match the return type of a GCC 16229 builtin and then its argument prototype would still apply. */ 16230#ifdef __cplusplus 16231extern "C" 16232#endif 16233char SHA1_Init (); 16234int 16235main () 16236{ 16237return SHA1_Init (); 16238 ; 16239 return 0; 16240} 16241_ACEOF 16242for ac_lib in '' crypto; do 16243 if test -z "$ac_lib"; then 16244 ac_res="none required" 16245 else 16246 ac_res=-l$ac_lib 16247 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16248 fi 16249 rm -f conftest.$ac_objext conftest$ac_exeext 16250if { (ac_try="$ac_link" 16251case "(($ac_try" in 16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16253 *) ac_try_echo=$ac_try;; 16254esac 16255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16256$as_echo "$ac_try_echo") >&5 16257 (eval "$ac_link") 2>conftest.er1 16258 ac_status=$? 16259 grep -v '^ *+' conftest.er1 >conftest.err 16260 rm -f conftest.er1 16261 cat conftest.err >&5 16262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16263 (exit $ac_status); } && { 16264 test -z "$ac_c_werror_flag" || 16265 test ! -s conftest.err 16266 } && test -s conftest$ac_exeext && { 16267 test "$cross_compiling" = yes || 16268 $as_test_x conftest$ac_exeext 16269 }; then 16270 ac_cv_search_SHA1_Init=$ac_res 16271else 16272 $as_echo "$as_me: failed program was:" >&5 16273sed 's/^/| /' conftest.$ac_ext >&5 16274 16275 16276fi 16277 16278rm -rf conftest.dSYM 16279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16280 conftest$ac_exeext 16281 if test "${ac_cv_search_SHA1_Init+set}" = set; then 16282 break 16283fi 16284done 16285if test "${ac_cv_search_SHA1_Init+set}" = set; then 16286 : 16287else 16288 ac_cv_search_SHA1_Init=no 16289fi 16290rm conftest.$ac_ext 16291LIBS=$ac_func_search_save_LIBS 16292fi 16293{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_SHA1_Init" >&5 16294$as_echo "$ac_cv_search_SHA1_Init" >&6; } 16295ac_res=$ac_cv_search_SHA1_Init 16296if test "$ac_res" != no; then 16297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16298 16299fi 16300 16301 fi 16302 16303 16304for ac_header in openssl/sha.h 16305do 16306as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16309$as_echo_n "checking for $ac_header... " >&6; } 16310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16311 $as_echo_n "(cached) " >&6 16312fi 16313ac_res=`eval 'as_val=${'$as_ac_Header'} 16314 $as_echo "$as_val"'` 16315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16316$as_echo "$ac_res" >&6; } 16317else 16318 # Is the header compilable? 16319{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16320$as_echo_n "checking $ac_header usability... " >&6; } 16321cat >conftest.$ac_ext <<_ACEOF 16322/* confdefs.h. */ 16323_ACEOF 16324cat confdefs.h >>conftest.$ac_ext 16325cat >>conftest.$ac_ext <<_ACEOF 16326/* end confdefs.h. */ 16327$ac_includes_default 16328#include <$ac_header> 16329_ACEOF 16330rm -f conftest.$ac_objext 16331if { (ac_try="$ac_compile" 16332case "(($ac_try" in 16333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16334 *) ac_try_echo=$ac_try;; 16335esac 16336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16337$as_echo "$ac_try_echo") >&5 16338 (eval "$ac_compile") 2>conftest.er1 16339 ac_status=$? 16340 grep -v '^ *+' conftest.er1 >conftest.err 16341 rm -f conftest.er1 16342 cat conftest.err >&5 16343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16344 (exit $ac_status); } && { 16345 test -z "$ac_c_werror_flag" || 16346 test ! -s conftest.err 16347 } && test -s conftest.$ac_objext; then 16348 ac_header_compiler=yes 16349else 16350 $as_echo "$as_me: failed program was:" >&5 16351sed 's/^/| /' conftest.$ac_ext >&5 16352 16353 ac_header_compiler=no 16354fi 16355 16356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16357{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16358$as_echo "$ac_header_compiler" >&6; } 16359 16360# Is the header present? 16361{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16362$as_echo_n "checking $ac_header presence... " >&6; } 16363cat >conftest.$ac_ext <<_ACEOF 16364/* confdefs.h. */ 16365_ACEOF 16366cat confdefs.h >>conftest.$ac_ext 16367cat >>conftest.$ac_ext <<_ACEOF 16368/* end confdefs.h. */ 16369#include <$ac_header> 16370_ACEOF 16371if { (ac_try="$ac_cpp conftest.$ac_ext" 16372case "(($ac_try" in 16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16374 *) ac_try_echo=$ac_try;; 16375esac 16376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16377$as_echo "$ac_try_echo") >&5 16378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16379 ac_status=$? 16380 grep -v '^ *+' conftest.er1 >conftest.err 16381 rm -f conftest.er1 16382 cat conftest.err >&5 16383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16384 (exit $ac_status); } >/dev/null && { 16385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16386 test ! -s conftest.err 16387 }; then 16388 ac_header_preproc=yes 16389else 16390 $as_echo "$as_me: failed program was:" >&5 16391sed 's/^/| /' conftest.$ac_ext >&5 16392 16393 ac_header_preproc=no 16394fi 16395 16396rm -f conftest.err conftest.$ac_ext 16397{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16398$as_echo "$ac_header_preproc" >&6; } 16399 16400# So? What about this header? 16401case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16402 yes:no: ) 16403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16404$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16406$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16407 ac_header_preproc=yes 16408 ;; 16409 no:yes:* ) 16410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16411$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16413$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16415$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16417$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16419$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16421$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16422 ( cat <<\_ASBOX 16423## ----------------------------------- ## 16424## Report this to kientzle@freebsd.org ## 16425## ----------------------------------- ## 16426_ASBOX 16427 ) | sed "s/^/$as_me: WARNING: /" >&2 16428 ;; 16429esac 16430{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16431$as_echo_n "checking for $ac_header... " >&6; } 16432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16433 $as_echo_n "(cached) " >&6 16434else 16435 eval "$as_ac_Header=\$ac_header_preproc" 16436fi 16437ac_res=`eval 'as_val=${'$as_ac_Header'} 16438 $as_echo "$as_val"'` 16439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16440$as_echo "$ac_res" >&6; } 16441 16442fi 16443if test `eval 'as_val=${'$as_ac_Header'} 16444 $as_echo "$as_val"'` = yes; then 16445 cat >>confdefs.h <<_ACEOF 16446#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16447_ACEOF 16448 16449fi 16450 16451done 16452 16453 if test "$ac_cv_func_SHA256Init" != "yes" && 16454 test "$ac_cv_func_SHA256_Init" != "yes"; then 16455 { $as_echo "$as_me:$LINENO: checking for library containing SHA256_Init" >&5 16456$as_echo_n "checking for library containing SHA256_Init... " >&6; } 16457if test "${ac_cv_search_SHA256_Init+set}" = set; then 16458 $as_echo_n "(cached) " >&6 16459else 16460 ac_func_search_save_LIBS=$LIBS 16461cat >conftest.$ac_ext <<_ACEOF 16462/* confdefs.h. */ 16463_ACEOF 16464cat confdefs.h >>conftest.$ac_ext 16465cat >>conftest.$ac_ext <<_ACEOF 16466/* end confdefs.h. */ 16467 16468/* Override any GCC internal prototype to avoid an error. 16469 Use char because int might match the return type of a GCC 16470 builtin and then its argument prototype would still apply. */ 16471#ifdef __cplusplus 16472extern "C" 16473#endif 16474char SHA256_Init (); 16475int 16476main () 16477{ 16478return SHA256_Init (); 16479 ; 16480 return 0; 16481} 16482_ACEOF 16483for ac_lib in '' crypto; do 16484 if test -z "$ac_lib"; then 16485 ac_res="none required" 16486 else 16487 ac_res=-l$ac_lib 16488 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16489 fi 16490 rm -f conftest.$ac_objext conftest$ac_exeext 16491if { (ac_try="$ac_link" 16492case "(($ac_try" in 16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16494 *) ac_try_echo=$ac_try;; 16495esac 16496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16497$as_echo "$ac_try_echo") >&5 16498 (eval "$ac_link") 2>conftest.er1 16499 ac_status=$? 16500 grep -v '^ *+' conftest.er1 >conftest.err 16501 rm -f conftest.er1 16502 cat conftest.err >&5 16503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16504 (exit $ac_status); } && { 16505 test -z "$ac_c_werror_flag" || 16506 test ! -s conftest.err 16507 } && test -s conftest$ac_exeext && { 16508 test "$cross_compiling" = yes || 16509 $as_test_x conftest$ac_exeext 16510 }; then 16511 ac_cv_search_SHA256_Init=$ac_res 16512else 16513 $as_echo "$as_me: failed program was:" >&5 16514sed 's/^/| /' conftest.$ac_ext >&5 16515 16516 16517fi 16518 16519rm -rf conftest.dSYM 16520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16521 conftest$ac_exeext 16522 if test "${ac_cv_search_SHA256_Init+set}" = set; then 16523 break 16524fi 16525done 16526if test "${ac_cv_search_SHA256_Init+set}" = set; then 16527 : 16528else 16529 ac_cv_search_SHA256_Init=no 16530fi 16531rm conftest.$ac_ext 16532LIBS=$ac_func_search_save_LIBS 16533fi 16534{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_SHA256_Init" >&5 16535$as_echo "$ac_cv_search_SHA256_Init" >&6; } 16536ac_res=$ac_cv_search_SHA256_Init 16537if test "$ac_res" != no; then 16538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16539 16540fi 16541 16542 if test "$ac_cv_func_SHA256_Init" = "yes" && 16543 test "$ac_cv_header_openssl_sha_h" = "yes"; then 16544 16545cat >>confdefs.h <<\_ACEOF 16546#define HAVE_OPENSSL_SHA256_INIT 1 16547_ACEOF 16548 16549 fi 16550 fi 16551 if test "$ac_cv_func_SHA384Init" != "yes" && 16552 test "$ac_cv_func_SHA384_Init" != "yes"; then 16553 { $as_echo "$as_me:$LINENO: checking for library containing SHA384_Init" >&5 16554$as_echo_n "checking for library containing SHA384_Init... " >&6; } 16555if test "${ac_cv_search_SHA384_Init+set}" = set; then 16556 $as_echo_n "(cached) " >&6 16557else 16558 ac_func_search_save_LIBS=$LIBS 16559cat >conftest.$ac_ext <<_ACEOF 16560/* confdefs.h. */ 16561_ACEOF 16562cat confdefs.h >>conftest.$ac_ext 16563cat >>conftest.$ac_ext <<_ACEOF 16564/* end confdefs.h. */ 16565 16566/* Override any GCC internal prototype to avoid an error. 16567 Use char because int might match the return type of a GCC 16568 builtin and then its argument prototype would still apply. */ 16569#ifdef __cplusplus 16570extern "C" 16571#endif 16572char SHA384_Init (); 16573int 16574main () 16575{ 16576return SHA384_Init (); 16577 ; 16578 return 0; 16579} 16580_ACEOF 16581for ac_lib in '' crypto; do 16582 if test -z "$ac_lib"; then 16583 ac_res="none required" 16584 else 16585 ac_res=-l$ac_lib 16586 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16587 fi 16588 rm -f conftest.$ac_objext conftest$ac_exeext 16589if { (ac_try="$ac_link" 16590case "(($ac_try" in 16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16592 *) ac_try_echo=$ac_try;; 16593esac 16594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16595$as_echo "$ac_try_echo") >&5 16596 (eval "$ac_link") 2>conftest.er1 16597 ac_status=$? 16598 grep -v '^ *+' conftest.er1 >conftest.err 16599 rm -f conftest.er1 16600 cat conftest.err >&5 16601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16602 (exit $ac_status); } && { 16603 test -z "$ac_c_werror_flag" || 16604 test ! -s conftest.err 16605 } && test -s conftest$ac_exeext && { 16606 test "$cross_compiling" = yes || 16607 $as_test_x conftest$ac_exeext 16608 }; then 16609 ac_cv_search_SHA384_Init=$ac_res 16610else 16611 $as_echo "$as_me: failed program was:" >&5 16612sed 's/^/| /' conftest.$ac_ext >&5 16613 16614 16615fi 16616 16617rm -rf conftest.dSYM 16618rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16619 conftest$ac_exeext 16620 if test "${ac_cv_search_SHA384_Init+set}" = set; then 16621 break 16622fi 16623done 16624if test "${ac_cv_search_SHA384_Init+set}" = set; then 16625 : 16626else 16627 ac_cv_search_SHA384_Init=no 16628fi 16629rm conftest.$ac_ext 16630LIBS=$ac_func_search_save_LIBS 16631fi 16632{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_SHA384_Init" >&5 16633$as_echo "$ac_cv_search_SHA384_Init" >&6; } 16634ac_res=$ac_cv_search_SHA384_Init 16635if test "$ac_res" != no; then 16636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16637 16638fi 16639 16640 if test "$ac_cv_func_SHA384_Init" = "yes" && 16641 test "$ac_cv_header_openssl_sha_h" = "yes"; then 16642 16643cat >>confdefs.h <<\_ACEOF 16644#define HAVE_OPENSSL_SHA384_INIT 1 16645_ACEOF 16646 16647 fi 16648 fi 16649 if test "$ac_cv_func_SHA512Init" != "yes" && 16650 test "$ac_cv_func_SHA512_Init" != "yes"; then 16651 { $as_echo "$as_me:$LINENO: checking for library containing SHA512_Init" >&5 16652$as_echo_n "checking for library containing SHA512_Init... " >&6; } 16653if test "${ac_cv_search_SHA512_Init+set}" = set; then 16654 $as_echo_n "(cached) " >&6 16655else 16656 ac_func_search_save_LIBS=$LIBS 16657cat >conftest.$ac_ext <<_ACEOF 16658/* confdefs.h. */ 16659_ACEOF 16660cat confdefs.h >>conftest.$ac_ext 16661cat >>conftest.$ac_ext <<_ACEOF 16662/* end confdefs.h. */ 16663 16664/* Override any GCC internal prototype to avoid an error. 16665 Use char because int might match the return type of a GCC 16666 builtin and then its argument prototype would still apply. */ 16667#ifdef __cplusplus 16668extern "C" 16669#endif 16670char SHA512_Init (); 16671int 16672main () 16673{ 16674return SHA512_Init (); 16675 ; 16676 return 0; 16677} 16678_ACEOF 16679for ac_lib in '' crypto; do 16680 if test -z "$ac_lib"; then 16681 ac_res="none required" 16682 else 16683 ac_res=-l$ac_lib 16684 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16685 fi 16686 rm -f conftest.$ac_objext conftest$ac_exeext 16687if { (ac_try="$ac_link" 16688case "(($ac_try" in 16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16690 *) ac_try_echo=$ac_try;; 16691esac 16692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16693$as_echo "$ac_try_echo") >&5 16694 (eval "$ac_link") 2>conftest.er1 16695 ac_status=$? 16696 grep -v '^ *+' conftest.er1 >conftest.err 16697 rm -f conftest.er1 16698 cat conftest.err >&5 16699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16700 (exit $ac_status); } && { 16701 test -z "$ac_c_werror_flag" || 16702 test ! -s conftest.err 16703 } && test -s conftest$ac_exeext && { 16704 test "$cross_compiling" = yes || 16705 $as_test_x conftest$ac_exeext 16706 }; then 16707 ac_cv_search_SHA512_Init=$ac_res 16708else 16709 $as_echo "$as_me: failed program was:" >&5 16710sed 's/^/| /' conftest.$ac_ext >&5 16711 16712 16713fi 16714 16715rm -rf conftest.dSYM 16716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16717 conftest$ac_exeext 16718 if test "${ac_cv_search_SHA512_Init+set}" = set; then 16719 break 16720fi 16721done 16722if test "${ac_cv_search_SHA512_Init+set}" = set; then 16723 : 16724else 16725 ac_cv_search_SHA512_Init=no 16726fi 16727rm conftest.$ac_ext 16728LIBS=$ac_func_search_save_LIBS 16729fi 16730{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_SHA512_Init" >&5 16731$as_echo "$ac_cv_search_SHA512_Init" >&6; } 16732ac_res=$ac_cv_search_SHA512_Init 16733if test "$ac_res" != no; then 16734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16735 16736fi 16737 16738 if test "$ac_cv_func_SHA512_Init" = "yes" && 16739 test "$ac_cv_header_openssl_sha_h" = "yes"; then 16740 16741cat >>confdefs.h <<\_ACEOF 16742#define HAVE_OPENSSL_SHA512_INIT 1 16743_ACEOF 16744 16745 fi 16746 fi 16747fi 16748 16749# TODO: Give the user the option of using a pre-existing system 16750# libarchive. This will define HAVE_LIBARCHIVE which will cause 16751# bsdtar_platform.h to use #include <...> for the libarchive headers. 16752# Need to include Makefile.am magic to link against system 16753# -larchive in that case. 16754#AC_CHECK_LIB(archive,archive_version) 16755 16756# Checks for typedefs, structures, and compiler characteristics. 16757{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 16758$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16759if test "${ac_cv_c_const+set}" = set; then 16760 $as_echo_n "(cached) " >&6 16761else 16762 cat >conftest.$ac_ext <<_ACEOF 16763/* confdefs.h. */ 16764_ACEOF 16765cat confdefs.h >>conftest.$ac_ext 16766cat >>conftest.$ac_ext <<_ACEOF 16767/* end confdefs.h. */ 16768 16769int 16770main () 16771{ 16772/* FIXME: Include the comments suggested by Paul. */ 16773#ifndef __cplusplus 16774 /* Ultrix mips cc rejects this. */ 16775 typedef int charset[2]; 16776 const charset cs; 16777 /* SunOS 4.1.1 cc rejects this. */ 16778 char const *const *pcpcc; 16779 char **ppc; 16780 /* NEC SVR4.0.2 mips cc rejects this. */ 16781 struct point {int x, y;}; 16782 static struct point const zero = {0,0}; 16783 /* AIX XL C 1.02.0.0 rejects this. 16784 It does not let you subtract one const X* pointer from another in 16785 an arm of an if-expression whose if-part is not a constant 16786 expression */ 16787 const char *g = "string"; 16788 pcpcc = &g + (g ? g-g : 0); 16789 /* HPUX 7.0 cc rejects these. */ 16790 ++pcpcc; 16791 ppc = (char**) pcpcc; 16792 pcpcc = (char const *const *) ppc; 16793 { /* SCO 3.2v4 cc rejects this. */ 16794 char *t; 16795 char const *s = 0 ? (char *) 0 : (char const *) 0; 16796 16797 *t++ = 0; 16798 if (s) return 0; 16799 } 16800 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16801 int x[] = {25, 17}; 16802 const int *foo = &x[0]; 16803 ++foo; 16804 } 16805 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16806 typedef const int *iptr; 16807 iptr p = 0; 16808 ++p; 16809 } 16810 { /* AIX XL C 1.02.0.0 rejects this saying 16811 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16812 struct s { int j; const int *ap[3]; }; 16813 struct s *b; b->j = 5; 16814 } 16815 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16816 const int foo = 10; 16817 if (!foo) return 0; 16818 } 16819 return !cs[0] && !zero.x; 16820#endif 16821 16822 ; 16823 return 0; 16824} 16825_ACEOF 16826rm -f conftest.$ac_objext 16827if { (ac_try="$ac_compile" 16828case "(($ac_try" in 16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16830 *) ac_try_echo=$ac_try;; 16831esac 16832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16833$as_echo "$ac_try_echo") >&5 16834 (eval "$ac_compile") 2>conftest.er1 16835 ac_status=$? 16836 grep -v '^ *+' conftest.er1 >conftest.err 16837 rm -f conftest.er1 16838 cat conftest.err >&5 16839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16840 (exit $ac_status); } && { 16841 test -z "$ac_c_werror_flag" || 16842 test ! -s conftest.err 16843 } && test -s conftest.$ac_objext; then 16844 ac_cv_c_const=yes 16845else 16846 $as_echo "$as_me: failed program was:" >&5 16847sed 's/^/| /' conftest.$ac_ext >&5 16848 16849 ac_cv_c_const=no 16850fi 16851 16852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16853fi 16854{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 16855$as_echo "$ac_cv_c_const" >&6; } 16856if test $ac_cv_c_const = no; then 16857 16858cat >>confdefs.h <<\_ACEOF 16859#define const /**/ 16860_ACEOF 16861 16862fi 16863 16864# AC_TYPE_UID_T defaults to "int", which is incorrect for MinGW 16865# and MSVC. Use a customized version. 16866{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 16867$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 16868if test "${la_cv_type_uid_t+set}" = set; then 16869 $as_echo_n "(cached) " >&6 16870else 16871 cat >conftest.$ac_ext <<_ACEOF 16872/* confdefs.h. */ 16873_ACEOF 16874cat confdefs.h >>conftest.$ac_ext 16875cat >>conftest.$ac_ext <<_ACEOF 16876/* end confdefs.h. */ 16877#include <sys/types.h> 16878 16879_ACEOF 16880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16881 $EGREP "uid_t" >/dev/null 2>&1; then 16882 la_cv_type_uid_t=yes 16883else 16884 la_cv_type_uid_t=no 16885fi 16886rm -f conftest* 16887 16888fi 16889{ $as_echo "$as_me:$LINENO: result: $la_cv_type_uid_t" >&5 16890$as_echo "$la_cv_type_uid_t" >&6; } 16891if test $la_cv_type_uid_t = no; then 16892 case $host in 16893 *mingw*) def_uid_t=short ;; 16894 *) def_uid_t=int ;; 16895 esac 16896 16897cat >>confdefs.h <<_ACEOF 16898#define uid_t $def_uid_t 16899_ACEOF 16900 16901 16902cat >>confdefs.h <<_ACEOF 16903#define gid_t $def_uid_t 16904_ACEOF 16905 16906fi 16907 16908{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5 16909$as_echo_n "checking for mode_t... " >&6; } 16910if test "${ac_cv_type_mode_t+set}" = set; then 16911 $as_echo_n "(cached) " >&6 16912else 16913 ac_cv_type_mode_t=no 16914cat >conftest.$ac_ext <<_ACEOF 16915/* confdefs.h. */ 16916_ACEOF 16917cat confdefs.h >>conftest.$ac_ext 16918cat >>conftest.$ac_ext <<_ACEOF 16919/* end confdefs.h. */ 16920$ac_includes_default 16921int 16922main () 16923{ 16924if (sizeof (mode_t)) 16925 return 0; 16926 ; 16927 return 0; 16928} 16929_ACEOF 16930rm -f conftest.$ac_objext 16931if { (ac_try="$ac_compile" 16932case "(($ac_try" in 16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16934 *) ac_try_echo=$ac_try;; 16935esac 16936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16937$as_echo "$ac_try_echo") >&5 16938 (eval "$ac_compile") 2>conftest.er1 16939 ac_status=$? 16940 grep -v '^ *+' conftest.er1 >conftest.err 16941 rm -f conftest.er1 16942 cat conftest.err >&5 16943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16944 (exit $ac_status); } && { 16945 test -z "$ac_c_werror_flag" || 16946 test ! -s conftest.err 16947 } && test -s conftest.$ac_objext; then 16948 cat >conftest.$ac_ext <<_ACEOF 16949/* confdefs.h. */ 16950_ACEOF 16951cat confdefs.h >>conftest.$ac_ext 16952cat >>conftest.$ac_ext <<_ACEOF 16953/* end confdefs.h. */ 16954$ac_includes_default 16955int 16956main () 16957{ 16958if (sizeof ((mode_t))) 16959 return 0; 16960 ; 16961 return 0; 16962} 16963_ACEOF 16964rm -f conftest.$ac_objext 16965if { (ac_try="$ac_compile" 16966case "(($ac_try" in 16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16968 *) ac_try_echo=$ac_try;; 16969esac 16970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16971$as_echo "$ac_try_echo") >&5 16972 (eval "$ac_compile") 2>conftest.er1 16973 ac_status=$? 16974 grep -v '^ *+' conftest.er1 >conftest.err 16975 rm -f conftest.er1 16976 cat conftest.err >&5 16977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16978 (exit $ac_status); } && { 16979 test -z "$ac_c_werror_flag" || 16980 test ! -s conftest.err 16981 } && test -s conftest.$ac_objext; then 16982 : 16983else 16984 $as_echo "$as_me: failed program was:" >&5 16985sed 's/^/| /' conftest.$ac_ext >&5 16986 16987 ac_cv_type_mode_t=yes 16988fi 16989 16990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16991else 16992 $as_echo "$as_me: failed program was:" >&5 16993sed 's/^/| /' conftest.$ac_ext >&5 16994 16995 16996fi 16997 16998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16999fi 17000{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 17001$as_echo "$ac_cv_type_mode_t" >&6; } 17002if test $ac_cv_type_mode_t = yes; then 17003 : 17004else 17005 17006cat >>confdefs.h <<_ACEOF 17007#define mode_t int 17008_ACEOF 17009 17010fi 17011 17012# AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on 17013# most systems... default to "long long" instead. 17014{ $as_echo "$as_me:$LINENO: checking for off_t" >&5 17015$as_echo_n "checking for off_t... " >&6; } 17016if test "${ac_cv_type_off_t+set}" = set; then 17017 $as_echo_n "(cached) " >&6 17018else 17019 ac_cv_type_off_t=no 17020cat >conftest.$ac_ext <<_ACEOF 17021/* confdefs.h. */ 17022_ACEOF 17023cat confdefs.h >>conftest.$ac_ext 17024cat >>conftest.$ac_ext <<_ACEOF 17025/* end confdefs.h. */ 17026$ac_includes_default 17027int 17028main () 17029{ 17030if (sizeof (off_t)) 17031 return 0; 17032 ; 17033 return 0; 17034} 17035_ACEOF 17036rm -f conftest.$ac_objext 17037if { (ac_try="$ac_compile" 17038case "(($ac_try" in 17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17040 *) ac_try_echo=$ac_try;; 17041esac 17042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17043$as_echo "$ac_try_echo") >&5 17044 (eval "$ac_compile") 2>conftest.er1 17045 ac_status=$? 17046 grep -v '^ *+' conftest.er1 >conftest.err 17047 rm -f conftest.er1 17048 cat conftest.err >&5 17049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17050 (exit $ac_status); } && { 17051 test -z "$ac_c_werror_flag" || 17052 test ! -s conftest.err 17053 } && test -s conftest.$ac_objext; then 17054 cat >conftest.$ac_ext <<_ACEOF 17055/* confdefs.h. */ 17056_ACEOF 17057cat confdefs.h >>conftest.$ac_ext 17058cat >>conftest.$ac_ext <<_ACEOF 17059/* end confdefs.h. */ 17060$ac_includes_default 17061int 17062main () 17063{ 17064if (sizeof ((off_t))) 17065 return 0; 17066 ; 17067 return 0; 17068} 17069_ACEOF 17070rm -f conftest.$ac_objext 17071if { (ac_try="$ac_compile" 17072case "(($ac_try" in 17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17074 *) ac_try_echo=$ac_try;; 17075esac 17076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17077$as_echo "$ac_try_echo") >&5 17078 (eval "$ac_compile") 2>conftest.er1 17079 ac_status=$? 17080 grep -v '^ *+' conftest.er1 >conftest.err 17081 rm -f conftest.er1 17082 cat conftest.err >&5 17083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17084 (exit $ac_status); } && { 17085 test -z "$ac_c_werror_flag" || 17086 test ! -s conftest.err 17087 } && test -s conftest.$ac_objext; then 17088 : 17089else 17090 $as_echo "$as_me: failed program was:" >&5 17091sed 's/^/| /' conftest.$ac_ext >&5 17092 17093 ac_cv_type_off_t=yes 17094fi 17095 17096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17097else 17098 $as_echo "$as_me: failed program was:" >&5 17099sed 's/^/| /' conftest.$ac_ext >&5 17100 17101 17102fi 17103 17104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17105fi 17106{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 17107$as_echo "$ac_cv_type_off_t" >&6; } 17108if test $ac_cv_type_off_t = yes; then 17109 : 17110else 17111 17112cat >>confdefs.h <<_ACEOF 17113#define off_t long long 17114_ACEOF 17115 17116fi 17117 17118{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 17119$as_echo_n "checking for size_t... " >&6; } 17120if test "${ac_cv_type_size_t+set}" = set; then 17121 $as_echo_n "(cached) " >&6 17122else 17123 ac_cv_type_size_t=no 17124cat >conftest.$ac_ext <<_ACEOF 17125/* confdefs.h. */ 17126_ACEOF 17127cat confdefs.h >>conftest.$ac_ext 17128cat >>conftest.$ac_ext <<_ACEOF 17129/* end confdefs.h. */ 17130$ac_includes_default 17131int 17132main () 17133{ 17134if (sizeof (size_t)) 17135 return 0; 17136 ; 17137 return 0; 17138} 17139_ACEOF 17140rm -f conftest.$ac_objext 17141if { (ac_try="$ac_compile" 17142case "(($ac_try" in 17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17144 *) ac_try_echo=$ac_try;; 17145esac 17146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17147$as_echo "$ac_try_echo") >&5 17148 (eval "$ac_compile") 2>conftest.er1 17149 ac_status=$? 17150 grep -v '^ *+' conftest.er1 >conftest.err 17151 rm -f conftest.er1 17152 cat conftest.err >&5 17153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17154 (exit $ac_status); } && { 17155 test -z "$ac_c_werror_flag" || 17156 test ! -s conftest.err 17157 } && test -s conftest.$ac_objext; then 17158 cat >conftest.$ac_ext <<_ACEOF 17159/* confdefs.h. */ 17160_ACEOF 17161cat confdefs.h >>conftest.$ac_ext 17162cat >>conftest.$ac_ext <<_ACEOF 17163/* end confdefs.h. */ 17164$ac_includes_default 17165int 17166main () 17167{ 17168if (sizeof ((size_t))) 17169 return 0; 17170 ; 17171 return 0; 17172} 17173_ACEOF 17174rm -f conftest.$ac_objext 17175if { (ac_try="$ac_compile" 17176case "(($ac_try" in 17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17178 *) ac_try_echo=$ac_try;; 17179esac 17180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17181$as_echo "$ac_try_echo") >&5 17182 (eval "$ac_compile") 2>conftest.er1 17183 ac_status=$? 17184 grep -v '^ *+' conftest.er1 >conftest.err 17185 rm -f conftest.er1 17186 cat conftest.err >&5 17187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17188 (exit $ac_status); } && { 17189 test -z "$ac_c_werror_flag" || 17190 test ! -s conftest.err 17191 } && test -s conftest.$ac_objext; then 17192 : 17193else 17194 $as_echo "$as_me: failed program was:" >&5 17195sed 's/^/| /' conftest.$ac_ext >&5 17196 17197 ac_cv_type_size_t=yes 17198fi 17199 17200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17201else 17202 $as_echo "$as_me: failed program was:" >&5 17203sed 's/^/| /' conftest.$ac_ext >&5 17204 17205 17206fi 17207 17208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17209fi 17210{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 17211$as_echo "$ac_cv_type_size_t" >&6; } 17212if test $ac_cv_type_size_t = yes; then 17213 : 17214else 17215 17216cat >>confdefs.h <<_ACEOF 17217#define size_t unsigned int 17218_ACEOF 17219 17220fi 17221 17222{ $as_echo "$as_me:$LINENO: checking for id_t" >&5 17223$as_echo_n "checking for id_t... " >&6; } 17224if test "${ac_cv_type_id_t+set}" = set; then 17225 $as_echo_n "(cached) " >&6 17226else 17227 ac_cv_type_id_t=no 17228cat >conftest.$ac_ext <<_ACEOF 17229/* confdefs.h. */ 17230_ACEOF 17231cat confdefs.h >>conftest.$ac_ext 17232cat >>conftest.$ac_ext <<_ACEOF 17233/* end confdefs.h. */ 17234$ac_includes_default 17235int 17236main () 17237{ 17238if (sizeof (id_t)) 17239 return 0; 17240 ; 17241 return 0; 17242} 17243_ACEOF 17244rm -f conftest.$ac_objext 17245if { (ac_try="$ac_compile" 17246case "(($ac_try" in 17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17248 *) ac_try_echo=$ac_try;; 17249esac 17250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17251$as_echo "$ac_try_echo") >&5 17252 (eval "$ac_compile") 2>conftest.er1 17253 ac_status=$? 17254 grep -v '^ *+' conftest.er1 >conftest.err 17255 rm -f conftest.er1 17256 cat conftest.err >&5 17257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17258 (exit $ac_status); } && { 17259 test -z "$ac_c_werror_flag" || 17260 test ! -s conftest.err 17261 } && test -s conftest.$ac_objext; then 17262 cat >conftest.$ac_ext <<_ACEOF 17263/* confdefs.h. */ 17264_ACEOF 17265cat confdefs.h >>conftest.$ac_ext 17266cat >>conftest.$ac_ext <<_ACEOF 17267/* end confdefs.h. */ 17268$ac_includes_default 17269int 17270main () 17271{ 17272if (sizeof ((id_t))) 17273 return 0; 17274 ; 17275 return 0; 17276} 17277_ACEOF 17278rm -f conftest.$ac_objext 17279if { (ac_try="$ac_compile" 17280case "(($ac_try" in 17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17282 *) ac_try_echo=$ac_try;; 17283esac 17284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17285$as_echo "$ac_try_echo") >&5 17286 (eval "$ac_compile") 2>conftest.er1 17287 ac_status=$? 17288 grep -v '^ *+' conftest.er1 >conftest.err 17289 rm -f conftest.er1 17290 cat conftest.err >&5 17291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17292 (exit $ac_status); } && { 17293 test -z "$ac_c_werror_flag" || 17294 test ! -s conftest.err 17295 } && test -s conftest.$ac_objext; then 17296 : 17297else 17298 $as_echo "$as_me: failed program was:" >&5 17299sed 's/^/| /' conftest.$ac_ext >&5 17300 17301 ac_cv_type_id_t=yes 17302fi 17303 17304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17305else 17306 $as_echo "$as_me: failed program was:" >&5 17307sed 's/^/| /' conftest.$ac_ext >&5 17308 17309 17310fi 17311 17312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17313fi 17314{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5 17315$as_echo "$ac_cv_type_id_t" >&6; } 17316if test $ac_cv_type_id_t = yes; then 17317 : 17318else 17319 17320cat >>confdefs.h <<_ACEOF 17321#define id_t unsigned long 17322_ACEOF 17323 17324fi 17325 17326{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 17327$as_echo_n "checking for uintptr_t... " >&6; } 17328if test "${ac_cv_type_uintptr_t+set}" = set; then 17329 $as_echo_n "(cached) " >&6 17330else 17331 ac_cv_type_uintptr_t=no 17332cat >conftest.$ac_ext <<_ACEOF 17333/* confdefs.h. */ 17334_ACEOF 17335cat confdefs.h >>conftest.$ac_ext 17336cat >>conftest.$ac_ext <<_ACEOF 17337/* end confdefs.h. */ 17338$ac_includes_default 17339int 17340main () 17341{ 17342if (sizeof (uintptr_t)) 17343 return 0; 17344 ; 17345 return 0; 17346} 17347_ACEOF 17348rm -f conftest.$ac_objext 17349if { (ac_try="$ac_compile" 17350case "(($ac_try" in 17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17352 *) ac_try_echo=$ac_try;; 17353esac 17354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17355$as_echo "$ac_try_echo") >&5 17356 (eval "$ac_compile") 2>conftest.er1 17357 ac_status=$? 17358 grep -v '^ *+' conftest.er1 >conftest.err 17359 rm -f conftest.er1 17360 cat conftest.err >&5 17361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17362 (exit $ac_status); } && { 17363 test -z "$ac_c_werror_flag" || 17364 test ! -s conftest.err 17365 } && test -s conftest.$ac_objext; then 17366 cat >conftest.$ac_ext <<_ACEOF 17367/* confdefs.h. */ 17368_ACEOF 17369cat confdefs.h >>conftest.$ac_ext 17370cat >>conftest.$ac_ext <<_ACEOF 17371/* end confdefs.h. */ 17372$ac_includes_default 17373int 17374main () 17375{ 17376if (sizeof ((uintptr_t))) 17377 return 0; 17378 ; 17379 return 0; 17380} 17381_ACEOF 17382rm -f conftest.$ac_objext 17383if { (ac_try="$ac_compile" 17384case "(($ac_try" in 17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17386 *) ac_try_echo=$ac_try;; 17387esac 17388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17389$as_echo "$ac_try_echo") >&5 17390 (eval "$ac_compile") 2>conftest.er1 17391 ac_status=$? 17392 grep -v '^ *+' conftest.er1 >conftest.err 17393 rm -f conftest.er1 17394 cat conftest.err >&5 17395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17396 (exit $ac_status); } && { 17397 test -z "$ac_c_werror_flag" || 17398 test ! -s conftest.err 17399 } && test -s conftest.$ac_objext; then 17400 : 17401else 17402 $as_echo "$as_me: failed program was:" >&5 17403sed 's/^/| /' conftest.$ac_ext >&5 17404 17405 ac_cv_type_uintptr_t=yes 17406fi 17407 17408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17409else 17410 $as_echo "$as_me: failed program was:" >&5 17411sed 's/^/| /' conftest.$ac_ext >&5 17412 17413 17414fi 17415 17416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17417fi 17418{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 17419$as_echo "$ac_cv_type_uintptr_t" >&6; } 17420if test $ac_cv_type_uintptr_t = yes; then 17421 : 17422else 17423 17424cat >>confdefs.h <<_ACEOF 17425#define uintptr_t unsigned int 17426_ACEOF 17427 17428fi 17429 17430 17431# Check for birthtime in struct stat 17432{ $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 17433$as_echo_n "checking for struct stat.st_birthtime... " >&6; } 17434if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then 17435 $as_echo_n "(cached) " >&6 17436else 17437 cat >conftest.$ac_ext <<_ACEOF 17438/* confdefs.h. */ 17439_ACEOF 17440cat confdefs.h >>conftest.$ac_ext 17441cat >>conftest.$ac_ext <<_ACEOF 17442/* end confdefs.h. */ 17443$ac_includes_default 17444int 17445main () 17446{ 17447static struct stat ac_aggr; 17448if (ac_aggr.st_birthtime) 17449return 0; 17450 ; 17451 return 0; 17452} 17453_ACEOF 17454rm -f conftest.$ac_objext 17455if { (ac_try="$ac_compile" 17456case "(($ac_try" in 17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17458 *) ac_try_echo=$ac_try;; 17459esac 17460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17461$as_echo "$ac_try_echo") >&5 17462 (eval "$ac_compile") 2>conftest.er1 17463 ac_status=$? 17464 grep -v '^ *+' conftest.er1 >conftest.err 17465 rm -f conftest.er1 17466 cat conftest.err >&5 17467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17468 (exit $ac_status); } && { 17469 test -z "$ac_c_werror_flag" || 17470 test ! -s conftest.err 17471 } && test -s conftest.$ac_objext; then 17472 ac_cv_member_struct_stat_st_birthtime=yes 17473else 17474 $as_echo "$as_me: failed program was:" >&5 17475sed 's/^/| /' conftest.$ac_ext >&5 17476 17477 cat >conftest.$ac_ext <<_ACEOF 17478/* confdefs.h. */ 17479_ACEOF 17480cat confdefs.h >>conftest.$ac_ext 17481cat >>conftest.$ac_ext <<_ACEOF 17482/* end confdefs.h. */ 17483$ac_includes_default 17484int 17485main () 17486{ 17487static struct stat ac_aggr; 17488if (sizeof ac_aggr.st_birthtime) 17489return 0; 17490 ; 17491 return 0; 17492} 17493_ACEOF 17494rm -f conftest.$ac_objext 17495if { (ac_try="$ac_compile" 17496case "(($ac_try" in 17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17498 *) ac_try_echo=$ac_try;; 17499esac 17500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17501$as_echo "$ac_try_echo") >&5 17502 (eval "$ac_compile") 2>conftest.er1 17503 ac_status=$? 17504 grep -v '^ *+' conftest.er1 >conftest.err 17505 rm -f conftest.er1 17506 cat conftest.err >&5 17507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17508 (exit $ac_status); } && { 17509 test -z "$ac_c_werror_flag" || 17510 test ! -s conftest.err 17511 } && test -s conftest.$ac_objext; then 17512 ac_cv_member_struct_stat_st_birthtime=yes 17513else 17514 $as_echo "$as_me: failed program was:" >&5 17515sed 's/^/| /' conftest.$ac_ext >&5 17516 17517 ac_cv_member_struct_stat_st_birthtime=no 17518fi 17519 17520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17521fi 17522 17523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17524fi 17525{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 17526$as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; } 17527if test $ac_cv_member_struct_stat_st_birthtime = yes; then 17528 17529cat >>confdefs.h <<_ACEOF 17530#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 17531_ACEOF 17532 17533 17534fi 17535 17536 17537# Check for high-resolution timestamps in struct stat 17538{ $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5 17539$as_echo_n "checking for struct stat.st_birthtimespec.tv_nsec... " >&6; } 17540if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then 17541 $as_echo_n "(cached) " >&6 17542else 17543 cat >conftest.$ac_ext <<_ACEOF 17544/* confdefs.h. */ 17545_ACEOF 17546cat confdefs.h >>conftest.$ac_ext 17547cat >>conftest.$ac_ext <<_ACEOF 17548/* end confdefs.h. */ 17549$ac_includes_default 17550int 17551main () 17552{ 17553static struct stat ac_aggr; 17554if (ac_aggr.st_birthtimespec.tv_nsec) 17555return 0; 17556 ; 17557 return 0; 17558} 17559_ACEOF 17560rm -f conftest.$ac_objext 17561if { (ac_try="$ac_compile" 17562case "(($ac_try" in 17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17564 *) ac_try_echo=$ac_try;; 17565esac 17566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17567$as_echo "$ac_try_echo") >&5 17568 (eval "$ac_compile") 2>conftest.er1 17569 ac_status=$? 17570 grep -v '^ *+' conftest.er1 >conftest.err 17571 rm -f conftest.er1 17572 cat conftest.err >&5 17573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17574 (exit $ac_status); } && { 17575 test -z "$ac_c_werror_flag" || 17576 test ! -s conftest.err 17577 } && test -s conftest.$ac_objext; then 17578 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes 17579else 17580 $as_echo "$as_me: failed program was:" >&5 17581sed 's/^/| /' conftest.$ac_ext >&5 17582 17583 cat >conftest.$ac_ext <<_ACEOF 17584/* confdefs.h. */ 17585_ACEOF 17586cat confdefs.h >>conftest.$ac_ext 17587cat >>conftest.$ac_ext <<_ACEOF 17588/* end confdefs.h. */ 17589$ac_includes_default 17590int 17591main () 17592{ 17593static struct stat ac_aggr; 17594if (sizeof ac_aggr.st_birthtimespec.tv_nsec) 17595return 0; 17596 ; 17597 return 0; 17598} 17599_ACEOF 17600rm -f conftest.$ac_objext 17601if { (ac_try="$ac_compile" 17602case "(($ac_try" in 17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17604 *) ac_try_echo=$ac_try;; 17605esac 17606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17607$as_echo "$ac_try_echo") >&5 17608 (eval "$ac_compile") 2>conftest.er1 17609 ac_status=$? 17610 grep -v '^ *+' conftest.er1 >conftest.err 17611 rm -f conftest.er1 17612 cat conftest.err >&5 17613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17614 (exit $ac_status); } && { 17615 test -z "$ac_c_werror_flag" || 17616 test ! -s conftest.err 17617 } && test -s conftest.$ac_objext; then 17618 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes 17619else 17620 $as_echo "$as_me: failed program was:" >&5 17621sed 's/^/| /' conftest.$ac_ext >&5 17622 17623 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no 17624fi 17625 17626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17627fi 17628 17629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17630fi 17631{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5 17632$as_echo "$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; } 17633if test $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec = yes; then 17634 17635cat >>confdefs.h <<_ACEOF 17636#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1 17637_ACEOF 17638 17639 17640fi 17641 17642{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimespec.tv_nsec" >&5 17643$as_echo_n "checking for struct stat.st_mtimespec.tv_nsec... " >&6; } 17644if test "${ac_cv_member_struct_stat_st_mtimespec_tv_nsec+set}" = set; then 17645 $as_echo_n "(cached) " >&6 17646else 17647 cat >conftest.$ac_ext <<_ACEOF 17648/* confdefs.h. */ 17649_ACEOF 17650cat confdefs.h >>conftest.$ac_ext 17651cat >>conftest.$ac_ext <<_ACEOF 17652/* end confdefs.h. */ 17653$ac_includes_default 17654int 17655main () 17656{ 17657static struct stat ac_aggr; 17658if (ac_aggr.st_mtimespec.tv_nsec) 17659return 0; 17660 ; 17661 return 0; 17662} 17663_ACEOF 17664rm -f conftest.$ac_objext 17665if { (ac_try="$ac_compile" 17666case "(($ac_try" in 17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17668 *) ac_try_echo=$ac_try;; 17669esac 17670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17671$as_echo "$ac_try_echo") >&5 17672 (eval "$ac_compile") 2>conftest.er1 17673 ac_status=$? 17674 grep -v '^ *+' conftest.er1 >conftest.err 17675 rm -f conftest.er1 17676 cat conftest.err >&5 17677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17678 (exit $ac_status); } && { 17679 test -z "$ac_c_werror_flag" || 17680 test ! -s conftest.err 17681 } && test -s conftest.$ac_objext; then 17682 ac_cv_member_struct_stat_st_mtimespec_tv_nsec=yes 17683else 17684 $as_echo "$as_me: failed program was:" >&5 17685sed 's/^/| /' conftest.$ac_ext >&5 17686 17687 cat >conftest.$ac_ext <<_ACEOF 17688/* confdefs.h. */ 17689_ACEOF 17690cat confdefs.h >>conftest.$ac_ext 17691cat >>conftest.$ac_ext <<_ACEOF 17692/* end confdefs.h. */ 17693$ac_includes_default 17694int 17695main () 17696{ 17697static struct stat ac_aggr; 17698if (sizeof ac_aggr.st_mtimespec.tv_nsec) 17699return 0; 17700 ; 17701 return 0; 17702} 17703_ACEOF 17704rm -f conftest.$ac_objext 17705if { (ac_try="$ac_compile" 17706case "(($ac_try" in 17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17708 *) ac_try_echo=$ac_try;; 17709esac 17710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17711$as_echo "$ac_try_echo") >&5 17712 (eval "$ac_compile") 2>conftest.er1 17713 ac_status=$? 17714 grep -v '^ *+' conftest.er1 >conftest.err 17715 rm -f conftest.er1 17716 cat conftest.err >&5 17717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17718 (exit $ac_status); } && { 17719 test -z "$ac_c_werror_flag" || 17720 test ! -s conftest.err 17721 } && test -s conftest.$ac_objext; then 17722 ac_cv_member_struct_stat_st_mtimespec_tv_nsec=yes 17723else 17724 $as_echo "$as_me: failed program was:" >&5 17725sed 's/^/| /' conftest.$ac_ext >&5 17726 17727 ac_cv_member_struct_stat_st_mtimespec_tv_nsec=no 17728fi 17729 17730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17731fi 17732 17733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17734fi 17735{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec_tv_nsec" >&5 17736$as_echo "$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" >&6; } 17737if test $ac_cv_member_struct_stat_st_mtimespec_tv_nsec = yes; then 17738 17739cat >>confdefs.h <<_ACEOF 17740#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1 17741_ACEOF 17742 17743 17744fi 17745 17746{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim.tv_nsec" >&5 17747$as_echo_n "checking for struct stat.st_mtim.tv_nsec... " >&6; } 17748if test "${ac_cv_member_struct_stat_st_mtim_tv_nsec+set}" = set; then 17749 $as_echo_n "(cached) " >&6 17750else 17751 cat >conftest.$ac_ext <<_ACEOF 17752/* confdefs.h. */ 17753_ACEOF 17754cat confdefs.h >>conftest.$ac_ext 17755cat >>conftest.$ac_ext <<_ACEOF 17756/* end confdefs.h. */ 17757$ac_includes_default 17758int 17759main () 17760{ 17761static struct stat ac_aggr; 17762if (ac_aggr.st_mtim.tv_nsec) 17763return 0; 17764 ; 17765 return 0; 17766} 17767_ACEOF 17768rm -f conftest.$ac_objext 17769if { (ac_try="$ac_compile" 17770case "(($ac_try" in 17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17772 *) ac_try_echo=$ac_try;; 17773esac 17774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17775$as_echo "$ac_try_echo") >&5 17776 (eval "$ac_compile") 2>conftest.er1 17777 ac_status=$? 17778 grep -v '^ *+' conftest.er1 >conftest.err 17779 rm -f conftest.er1 17780 cat conftest.err >&5 17781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17782 (exit $ac_status); } && { 17783 test -z "$ac_c_werror_flag" || 17784 test ! -s conftest.err 17785 } && test -s conftest.$ac_objext; then 17786 ac_cv_member_struct_stat_st_mtim_tv_nsec=yes 17787else 17788 $as_echo "$as_me: failed program was:" >&5 17789sed 's/^/| /' conftest.$ac_ext >&5 17790 17791 cat >conftest.$ac_ext <<_ACEOF 17792/* confdefs.h. */ 17793_ACEOF 17794cat confdefs.h >>conftest.$ac_ext 17795cat >>conftest.$ac_ext <<_ACEOF 17796/* end confdefs.h. */ 17797$ac_includes_default 17798int 17799main () 17800{ 17801static struct stat ac_aggr; 17802if (sizeof ac_aggr.st_mtim.tv_nsec) 17803return 0; 17804 ; 17805 return 0; 17806} 17807_ACEOF 17808rm -f conftest.$ac_objext 17809if { (ac_try="$ac_compile" 17810case "(($ac_try" in 17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17812 *) ac_try_echo=$ac_try;; 17813esac 17814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17815$as_echo "$ac_try_echo") >&5 17816 (eval "$ac_compile") 2>conftest.er1 17817 ac_status=$? 17818 grep -v '^ *+' conftest.er1 >conftest.err 17819 rm -f conftest.er1 17820 cat conftest.err >&5 17821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17822 (exit $ac_status); } && { 17823 test -z "$ac_c_werror_flag" || 17824 test ! -s conftest.err 17825 } && test -s conftest.$ac_objext; then 17826 ac_cv_member_struct_stat_st_mtim_tv_nsec=yes 17827else 17828 $as_echo "$as_me: failed program was:" >&5 17829sed 's/^/| /' conftest.$ac_ext >&5 17830 17831 ac_cv_member_struct_stat_st_mtim_tv_nsec=no 17832fi 17833 17834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17835fi 17836 17837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17838fi 17839{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_tv_nsec" >&5 17840$as_echo "$ac_cv_member_struct_stat_st_mtim_tv_nsec" >&6; } 17841if test $ac_cv_member_struct_stat_st_mtim_tv_nsec = yes; then 17842 17843cat >>confdefs.h <<_ACEOF 17844#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 17845_ACEOF 17846 17847 17848fi 17849 17850{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtime_n" >&5 17851$as_echo_n "checking for struct stat.st_mtime_n... " >&6; } 17852if test "${ac_cv_member_struct_stat_st_mtime_n+set}" = set; then 17853 $as_echo_n "(cached) " >&6 17854else 17855 cat >conftest.$ac_ext <<_ACEOF 17856/* confdefs.h. */ 17857_ACEOF 17858cat confdefs.h >>conftest.$ac_ext 17859cat >>conftest.$ac_ext <<_ACEOF 17860/* end confdefs.h. */ 17861$ac_includes_default 17862int 17863main () 17864{ 17865static struct stat ac_aggr; 17866if (ac_aggr.st_mtime_n) 17867return 0; 17868 ; 17869 return 0; 17870} 17871_ACEOF 17872rm -f conftest.$ac_objext 17873if { (ac_try="$ac_compile" 17874case "(($ac_try" in 17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17876 *) ac_try_echo=$ac_try;; 17877esac 17878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17879$as_echo "$ac_try_echo") >&5 17880 (eval "$ac_compile") 2>conftest.er1 17881 ac_status=$? 17882 grep -v '^ *+' conftest.er1 >conftest.err 17883 rm -f conftest.er1 17884 cat conftest.err >&5 17885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17886 (exit $ac_status); } && { 17887 test -z "$ac_c_werror_flag" || 17888 test ! -s conftest.err 17889 } && test -s conftest.$ac_objext; then 17890 ac_cv_member_struct_stat_st_mtime_n=yes 17891else 17892 $as_echo "$as_me: failed program was:" >&5 17893sed 's/^/| /' conftest.$ac_ext >&5 17894 17895 cat >conftest.$ac_ext <<_ACEOF 17896/* confdefs.h. */ 17897_ACEOF 17898cat confdefs.h >>conftest.$ac_ext 17899cat >>conftest.$ac_ext <<_ACEOF 17900/* end confdefs.h. */ 17901$ac_includes_default 17902int 17903main () 17904{ 17905static struct stat ac_aggr; 17906if (sizeof ac_aggr.st_mtime_n) 17907return 0; 17908 ; 17909 return 0; 17910} 17911_ACEOF 17912rm -f conftest.$ac_objext 17913if { (ac_try="$ac_compile" 17914case "(($ac_try" in 17915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17916 *) ac_try_echo=$ac_try;; 17917esac 17918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17919$as_echo "$ac_try_echo") >&5 17920 (eval "$ac_compile") 2>conftest.er1 17921 ac_status=$? 17922 grep -v '^ *+' conftest.er1 >conftest.err 17923 rm -f conftest.er1 17924 cat conftest.err >&5 17925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17926 (exit $ac_status); } && { 17927 test -z "$ac_c_werror_flag" || 17928 test ! -s conftest.err 17929 } && test -s conftest.$ac_objext; then 17930 ac_cv_member_struct_stat_st_mtime_n=yes 17931else 17932 $as_echo "$as_me: failed program was:" >&5 17933sed 's/^/| /' conftest.$ac_ext >&5 17934 17935 ac_cv_member_struct_stat_st_mtime_n=no 17936fi 17937 17938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17939fi 17940 17941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17942fi 17943{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtime_n" >&5 17944$as_echo "$ac_cv_member_struct_stat_st_mtime_n" >&6; } 17945if test $ac_cv_member_struct_stat_st_mtime_n = yes; then 17946 17947cat >>confdefs.h <<_ACEOF 17948#define HAVE_STRUCT_STAT_ST_MTIME_N 1 17949_ACEOF 17950 17951 17952fi 17953 # AIX 17954{ $as_echo "$as_me:$LINENO: checking for struct stat.st_umtime" >&5 17955$as_echo_n "checking for struct stat.st_umtime... " >&6; } 17956if test "${ac_cv_member_struct_stat_st_umtime+set}" = set; then 17957 $as_echo_n "(cached) " >&6 17958else 17959 cat >conftest.$ac_ext <<_ACEOF 17960/* confdefs.h. */ 17961_ACEOF 17962cat confdefs.h >>conftest.$ac_ext 17963cat >>conftest.$ac_ext <<_ACEOF 17964/* end confdefs.h. */ 17965$ac_includes_default 17966int 17967main () 17968{ 17969static struct stat ac_aggr; 17970if (ac_aggr.st_umtime) 17971return 0; 17972 ; 17973 return 0; 17974} 17975_ACEOF 17976rm -f conftest.$ac_objext 17977if { (ac_try="$ac_compile" 17978case "(($ac_try" in 17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17980 *) ac_try_echo=$ac_try;; 17981esac 17982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17983$as_echo "$ac_try_echo") >&5 17984 (eval "$ac_compile") 2>conftest.er1 17985 ac_status=$? 17986 grep -v '^ *+' conftest.er1 >conftest.err 17987 rm -f conftest.er1 17988 cat conftest.err >&5 17989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17990 (exit $ac_status); } && { 17991 test -z "$ac_c_werror_flag" || 17992 test ! -s conftest.err 17993 } && test -s conftest.$ac_objext; then 17994 ac_cv_member_struct_stat_st_umtime=yes 17995else 17996 $as_echo "$as_me: failed program was:" >&5 17997sed 's/^/| /' conftest.$ac_ext >&5 17998 17999 cat >conftest.$ac_ext <<_ACEOF 18000/* confdefs.h. */ 18001_ACEOF 18002cat confdefs.h >>conftest.$ac_ext 18003cat >>conftest.$ac_ext <<_ACEOF 18004/* end confdefs.h. */ 18005$ac_includes_default 18006int 18007main () 18008{ 18009static struct stat ac_aggr; 18010if (sizeof ac_aggr.st_umtime) 18011return 0; 18012 ; 18013 return 0; 18014} 18015_ACEOF 18016rm -f conftest.$ac_objext 18017if { (ac_try="$ac_compile" 18018case "(($ac_try" in 18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18020 *) ac_try_echo=$ac_try;; 18021esac 18022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18023$as_echo "$ac_try_echo") >&5 18024 (eval "$ac_compile") 2>conftest.er1 18025 ac_status=$? 18026 grep -v '^ *+' conftest.er1 >conftest.err 18027 rm -f conftest.er1 18028 cat conftest.err >&5 18029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18030 (exit $ac_status); } && { 18031 test -z "$ac_c_werror_flag" || 18032 test ! -s conftest.err 18033 } && test -s conftest.$ac_objext; then 18034 ac_cv_member_struct_stat_st_umtime=yes 18035else 18036 $as_echo "$as_me: failed program was:" >&5 18037sed 's/^/| /' conftest.$ac_ext >&5 18038 18039 ac_cv_member_struct_stat_st_umtime=no 18040fi 18041 18042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18043fi 18044 18045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18046fi 18047{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_umtime" >&5 18048$as_echo "$ac_cv_member_struct_stat_st_umtime" >&6; } 18049if test $ac_cv_member_struct_stat_st_umtime = yes; then 18050 18051cat >>confdefs.h <<_ACEOF 18052#define HAVE_STRUCT_STAT_ST_UMTIME 1 18053_ACEOF 18054 18055 18056fi 18057 # Tru64 18058{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtime_usec" >&5 18059$as_echo_n "checking for struct stat.st_mtime_usec... " >&6; } 18060if test "${ac_cv_member_struct_stat_st_mtime_usec+set}" = set; then 18061 $as_echo_n "(cached) " >&6 18062else 18063 cat >conftest.$ac_ext <<_ACEOF 18064/* confdefs.h. */ 18065_ACEOF 18066cat confdefs.h >>conftest.$ac_ext 18067cat >>conftest.$ac_ext <<_ACEOF 18068/* end confdefs.h. */ 18069$ac_includes_default 18070int 18071main () 18072{ 18073static struct stat ac_aggr; 18074if (ac_aggr.st_mtime_usec) 18075return 0; 18076 ; 18077 return 0; 18078} 18079_ACEOF 18080rm -f conftest.$ac_objext 18081if { (ac_try="$ac_compile" 18082case "(($ac_try" in 18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18084 *) ac_try_echo=$ac_try;; 18085esac 18086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18087$as_echo "$ac_try_echo") >&5 18088 (eval "$ac_compile") 2>conftest.er1 18089 ac_status=$? 18090 grep -v '^ *+' conftest.er1 >conftest.err 18091 rm -f conftest.er1 18092 cat conftest.err >&5 18093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18094 (exit $ac_status); } && { 18095 test -z "$ac_c_werror_flag" || 18096 test ! -s conftest.err 18097 } && test -s conftest.$ac_objext; then 18098 ac_cv_member_struct_stat_st_mtime_usec=yes 18099else 18100 $as_echo "$as_me: failed program was:" >&5 18101sed 's/^/| /' conftest.$ac_ext >&5 18102 18103 cat >conftest.$ac_ext <<_ACEOF 18104/* confdefs.h. */ 18105_ACEOF 18106cat confdefs.h >>conftest.$ac_ext 18107cat >>conftest.$ac_ext <<_ACEOF 18108/* end confdefs.h. */ 18109$ac_includes_default 18110int 18111main () 18112{ 18113static struct stat ac_aggr; 18114if (sizeof ac_aggr.st_mtime_usec) 18115return 0; 18116 ; 18117 return 0; 18118} 18119_ACEOF 18120rm -f conftest.$ac_objext 18121if { (ac_try="$ac_compile" 18122case "(($ac_try" in 18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18124 *) ac_try_echo=$ac_try;; 18125esac 18126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18127$as_echo "$ac_try_echo") >&5 18128 (eval "$ac_compile") 2>conftest.er1 18129 ac_status=$? 18130 grep -v '^ *+' conftest.er1 >conftest.err 18131 rm -f conftest.er1 18132 cat conftest.err >&5 18133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18134 (exit $ac_status); } && { 18135 test -z "$ac_c_werror_flag" || 18136 test ! -s conftest.err 18137 } && test -s conftest.$ac_objext; then 18138 ac_cv_member_struct_stat_st_mtime_usec=yes 18139else 18140 $as_echo "$as_me: failed program was:" >&5 18141sed 's/^/| /' conftest.$ac_ext >&5 18142 18143 ac_cv_member_struct_stat_st_mtime_usec=no 18144fi 18145 18146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18147fi 18148 18149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18150fi 18151{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtime_usec" >&5 18152$as_echo "$ac_cv_member_struct_stat_st_mtime_usec" >&6; } 18153if test $ac_cv_member_struct_stat_st_mtime_usec = yes; then 18154 18155cat >>confdefs.h <<_ACEOF 18156#define HAVE_STRUCT_STAT_ST_MTIME_USEC 1 18157_ACEOF 18158 18159 18160fi 18161 # Hurd 18162# Check for block size support in struct stat 18163{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 18164$as_echo_n "checking for struct stat.st_blksize... " >&6; } 18165if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then 18166 $as_echo_n "(cached) " >&6 18167else 18168 cat >conftest.$ac_ext <<_ACEOF 18169/* confdefs.h. */ 18170_ACEOF 18171cat confdefs.h >>conftest.$ac_ext 18172cat >>conftest.$ac_ext <<_ACEOF 18173/* end confdefs.h. */ 18174$ac_includes_default 18175int 18176main () 18177{ 18178static struct stat ac_aggr; 18179if (ac_aggr.st_blksize) 18180return 0; 18181 ; 18182 return 0; 18183} 18184_ACEOF 18185rm -f conftest.$ac_objext 18186if { (ac_try="$ac_compile" 18187case "(($ac_try" in 18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18189 *) ac_try_echo=$ac_try;; 18190esac 18191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18192$as_echo "$ac_try_echo") >&5 18193 (eval "$ac_compile") 2>conftest.er1 18194 ac_status=$? 18195 grep -v '^ *+' conftest.er1 >conftest.err 18196 rm -f conftest.er1 18197 cat conftest.err >&5 18198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18199 (exit $ac_status); } && { 18200 test -z "$ac_c_werror_flag" || 18201 test ! -s conftest.err 18202 } && test -s conftest.$ac_objext; then 18203 ac_cv_member_struct_stat_st_blksize=yes 18204else 18205 $as_echo "$as_me: failed program was:" >&5 18206sed 's/^/| /' conftest.$ac_ext >&5 18207 18208 cat >conftest.$ac_ext <<_ACEOF 18209/* confdefs.h. */ 18210_ACEOF 18211cat confdefs.h >>conftest.$ac_ext 18212cat >>conftest.$ac_ext <<_ACEOF 18213/* end confdefs.h. */ 18214$ac_includes_default 18215int 18216main () 18217{ 18218static struct stat ac_aggr; 18219if (sizeof ac_aggr.st_blksize) 18220return 0; 18221 ; 18222 return 0; 18223} 18224_ACEOF 18225rm -f conftest.$ac_objext 18226if { (ac_try="$ac_compile" 18227case "(($ac_try" in 18228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18229 *) ac_try_echo=$ac_try;; 18230esac 18231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18232$as_echo "$ac_try_echo") >&5 18233 (eval "$ac_compile") 2>conftest.er1 18234 ac_status=$? 18235 grep -v '^ *+' conftest.er1 >conftest.err 18236 rm -f conftest.er1 18237 cat conftest.err >&5 18238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18239 (exit $ac_status); } && { 18240 test -z "$ac_c_werror_flag" || 18241 test ! -s conftest.err 18242 } && test -s conftest.$ac_objext; then 18243 ac_cv_member_struct_stat_st_blksize=yes 18244else 18245 $as_echo "$as_me: failed program was:" >&5 18246sed 's/^/| /' conftest.$ac_ext >&5 18247 18248 ac_cv_member_struct_stat_st_blksize=no 18249fi 18250 18251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18252fi 18253 18254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18255fi 18256{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 18257$as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; } 18258if test $ac_cv_member_struct_stat_st_blksize = yes; then 18259 18260cat >>confdefs.h <<_ACEOF 18261#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 18262_ACEOF 18263 18264 18265fi 18266 18267# Check for st_flags in struct stat (BSD fflags) 18268{ $as_echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 18269$as_echo_n "checking for struct stat.st_flags... " >&6; } 18270if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then 18271 $as_echo_n "(cached) " >&6 18272else 18273 cat >conftest.$ac_ext <<_ACEOF 18274/* confdefs.h. */ 18275_ACEOF 18276cat confdefs.h >>conftest.$ac_ext 18277cat >>conftest.$ac_ext <<_ACEOF 18278/* end confdefs.h. */ 18279$ac_includes_default 18280int 18281main () 18282{ 18283static struct stat ac_aggr; 18284if (ac_aggr.st_flags) 18285return 0; 18286 ; 18287 return 0; 18288} 18289_ACEOF 18290rm -f conftest.$ac_objext 18291if { (ac_try="$ac_compile" 18292case "(($ac_try" in 18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18294 *) ac_try_echo=$ac_try;; 18295esac 18296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18297$as_echo "$ac_try_echo") >&5 18298 (eval "$ac_compile") 2>conftest.er1 18299 ac_status=$? 18300 grep -v '^ *+' conftest.er1 >conftest.err 18301 rm -f conftest.er1 18302 cat conftest.err >&5 18303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18304 (exit $ac_status); } && { 18305 test -z "$ac_c_werror_flag" || 18306 test ! -s conftest.err 18307 } && test -s conftest.$ac_objext; then 18308 ac_cv_member_struct_stat_st_flags=yes 18309else 18310 $as_echo "$as_me: failed program was:" >&5 18311sed 's/^/| /' conftest.$ac_ext >&5 18312 18313 cat >conftest.$ac_ext <<_ACEOF 18314/* confdefs.h. */ 18315_ACEOF 18316cat confdefs.h >>conftest.$ac_ext 18317cat >>conftest.$ac_ext <<_ACEOF 18318/* end confdefs.h. */ 18319$ac_includes_default 18320int 18321main () 18322{ 18323static struct stat ac_aggr; 18324if (sizeof ac_aggr.st_flags) 18325return 0; 18326 ; 18327 return 0; 18328} 18329_ACEOF 18330rm -f conftest.$ac_objext 18331if { (ac_try="$ac_compile" 18332case "(($ac_try" in 18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18334 *) ac_try_echo=$ac_try;; 18335esac 18336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18337$as_echo "$ac_try_echo") >&5 18338 (eval "$ac_compile") 2>conftest.er1 18339 ac_status=$? 18340 grep -v '^ *+' conftest.er1 >conftest.err 18341 rm -f conftest.er1 18342 cat conftest.err >&5 18343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18344 (exit $ac_status); } && { 18345 test -z "$ac_c_werror_flag" || 18346 test ! -s conftest.err 18347 } && test -s conftest.$ac_objext; then 18348 ac_cv_member_struct_stat_st_flags=yes 18349else 18350 $as_echo "$as_me: failed program was:" >&5 18351sed 's/^/| /' conftest.$ac_ext >&5 18352 18353 ac_cv_member_struct_stat_st_flags=no 18354fi 18355 18356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18357fi 18358 18359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18360fi 18361{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 18362$as_echo "$ac_cv_member_struct_stat_st_flags" >&6; } 18363if test $ac_cv_member_struct_stat_st_flags = yes; then 18364 18365cat >>confdefs.h <<_ACEOF 18366#define HAVE_STRUCT_STAT_ST_FLAGS 1 18367_ACEOF 18368 18369 18370fi 18371 18372 18373# If you have uintmax_t, we assume printf supports %ju 18374# If you have unsigned long long, we assume printf supports %llu 18375# TODO: Check for %ju and %llu support directly. 18376{ $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5 18377$as_echo_n "checking for uintmax_t... " >&6; } 18378if test "${ac_cv_type_uintmax_t+set}" = set; then 18379 $as_echo_n "(cached) " >&6 18380else 18381 ac_cv_type_uintmax_t=no 18382cat >conftest.$ac_ext <<_ACEOF 18383/* confdefs.h. */ 18384_ACEOF 18385cat confdefs.h >>conftest.$ac_ext 18386cat >>conftest.$ac_ext <<_ACEOF 18387/* end confdefs.h. */ 18388$ac_includes_default 18389int 18390main () 18391{ 18392if (sizeof (uintmax_t)) 18393 return 0; 18394 ; 18395 return 0; 18396} 18397_ACEOF 18398rm -f conftest.$ac_objext 18399if { (ac_try="$ac_compile" 18400case "(($ac_try" in 18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18402 *) ac_try_echo=$ac_try;; 18403esac 18404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18405$as_echo "$ac_try_echo") >&5 18406 (eval "$ac_compile") 2>conftest.er1 18407 ac_status=$? 18408 grep -v '^ *+' conftest.er1 >conftest.err 18409 rm -f conftest.er1 18410 cat conftest.err >&5 18411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18412 (exit $ac_status); } && { 18413 test -z "$ac_c_werror_flag" || 18414 test ! -s conftest.err 18415 } && test -s conftest.$ac_objext; then 18416 cat >conftest.$ac_ext <<_ACEOF 18417/* confdefs.h. */ 18418_ACEOF 18419cat confdefs.h >>conftest.$ac_ext 18420cat >>conftest.$ac_ext <<_ACEOF 18421/* end confdefs.h. */ 18422$ac_includes_default 18423int 18424main () 18425{ 18426if (sizeof ((uintmax_t))) 18427 return 0; 18428 ; 18429 return 0; 18430} 18431_ACEOF 18432rm -f conftest.$ac_objext 18433if { (ac_try="$ac_compile" 18434case "(($ac_try" in 18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18436 *) ac_try_echo=$ac_try;; 18437esac 18438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18439$as_echo "$ac_try_echo") >&5 18440 (eval "$ac_compile") 2>conftest.er1 18441 ac_status=$? 18442 grep -v '^ *+' conftest.er1 >conftest.err 18443 rm -f conftest.er1 18444 cat conftest.err >&5 18445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18446 (exit $ac_status); } && { 18447 test -z "$ac_c_werror_flag" || 18448 test ! -s conftest.err 18449 } && test -s conftest.$ac_objext; then 18450 : 18451else 18452 $as_echo "$as_me: failed program was:" >&5 18453sed 's/^/| /' conftest.$ac_ext >&5 18454 18455 ac_cv_type_uintmax_t=yes 18456fi 18457 18458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18459else 18460 $as_echo "$as_me: failed program was:" >&5 18461sed 's/^/| /' conftest.$ac_ext >&5 18462 18463 18464fi 18465 18466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18467fi 18468{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 18469$as_echo "$ac_cv_type_uintmax_t" >&6; } 18470if test $ac_cv_type_uintmax_t = yes; then 18471 18472cat >>confdefs.h <<_ACEOF 18473#define HAVE_UINTMAX_T 1 18474_ACEOF 18475 18476 18477fi 18478{ $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 18479$as_echo_n "checking for unsigned long long... " >&6; } 18480if test "${ac_cv_type_unsigned_long_long+set}" = set; then 18481 $as_echo_n "(cached) " >&6 18482else 18483 ac_cv_type_unsigned_long_long=no 18484cat >conftest.$ac_ext <<_ACEOF 18485/* confdefs.h. */ 18486_ACEOF 18487cat confdefs.h >>conftest.$ac_ext 18488cat >>conftest.$ac_ext <<_ACEOF 18489/* end confdefs.h. */ 18490$ac_includes_default 18491int 18492main () 18493{ 18494if (sizeof (unsigned long long)) 18495 return 0; 18496 ; 18497 return 0; 18498} 18499_ACEOF 18500rm -f conftest.$ac_objext 18501if { (ac_try="$ac_compile" 18502case "(($ac_try" in 18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18504 *) ac_try_echo=$ac_try;; 18505esac 18506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18507$as_echo "$ac_try_echo") >&5 18508 (eval "$ac_compile") 2>conftest.er1 18509 ac_status=$? 18510 grep -v '^ *+' conftest.er1 >conftest.err 18511 rm -f conftest.er1 18512 cat conftest.err >&5 18513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18514 (exit $ac_status); } && { 18515 test -z "$ac_c_werror_flag" || 18516 test ! -s conftest.err 18517 } && test -s conftest.$ac_objext; then 18518 cat >conftest.$ac_ext <<_ACEOF 18519/* confdefs.h. */ 18520_ACEOF 18521cat confdefs.h >>conftest.$ac_ext 18522cat >>conftest.$ac_ext <<_ACEOF 18523/* end confdefs.h. */ 18524$ac_includes_default 18525int 18526main () 18527{ 18528if (sizeof ((unsigned long long))) 18529 return 0; 18530 ; 18531 return 0; 18532} 18533_ACEOF 18534rm -f conftest.$ac_objext 18535if { (ac_try="$ac_compile" 18536case "(($ac_try" in 18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18538 *) ac_try_echo=$ac_try;; 18539esac 18540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18541$as_echo "$ac_try_echo") >&5 18542 (eval "$ac_compile") 2>conftest.er1 18543 ac_status=$? 18544 grep -v '^ *+' conftest.er1 >conftest.err 18545 rm -f conftest.er1 18546 cat conftest.err >&5 18547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18548 (exit $ac_status); } && { 18549 test -z "$ac_c_werror_flag" || 18550 test ! -s conftest.err 18551 } && test -s conftest.$ac_objext; then 18552 : 18553else 18554 $as_echo "$as_me: failed program was:" >&5 18555sed 's/^/| /' conftest.$ac_ext >&5 18556 18557 ac_cv_type_unsigned_long_long=yes 18558fi 18559 18560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18561else 18562 $as_echo "$as_me: failed program was:" >&5 18563sed 's/^/| /' conftest.$ac_ext >&5 18564 18565 18566fi 18567 18568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18569fi 18570{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 18571$as_echo "$ac_cv_type_unsigned_long_long" >&6; } 18572if test $ac_cv_type_unsigned_long_long = yes; then 18573 18574cat >>confdefs.h <<_ACEOF 18575#define HAVE_UNSIGNED_LONG_LONG 1 18576_ACEOF 18577 18578 18579fi 18580 18581 18582# We need int64_t, uint64_t, intmax_t, and uintmax_t 18583 18584 { $as_echo "$as_me:$LINENO: checking for long long int" >&5 18585$as_echo_n "checking for long long int... " >&6; } 18586if test "${ac_cv_type_long_long_int+set}" = set; then 18587 $as_echo_n "(cached) " >&6 18588else 18589 cat >conftest.$ac_ext <<_ACEOF 18590 18591 /* confdefs.h. */ 18592_ACEOF 18593cat confdefs.h >>conftest.$ac_ext 18594cat >>conftest.$ac_ext <<_ACEOF 18595/* end confdefs.h. */ 18596/* For now, do not test the preprocessor; as of 2007 there are too many 18597 implementations with broken preprocessors. Perhaps this can 18598 be revisited in 2012. In the meantime, code should not expect 18599 #if to work with literals wider than 32 bits. */ 18600 /* Test literals. */ 18601 long long int ll = 9223372036854775807ll; 18602 long long int nll = -9223372036854775807LL; 18603 unsigned long long int ull = 18446744073709551615ULL; 18604 /* Test constant expressions. */ 18605 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 18606 ? 1 : -1)]; 18607 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 18608 ? 1 : -1)]; 18609 int i = 63; 18610int 18611main () 18612{ 18613/* Test availability of runtime routines for shift and division. */ 18614 long long int llmax = 9223372036854775807ll; 18615 unsigned long long int ullmax = 18446744073709551615ull; 18616 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 18617 | (llmax / ll) | (llmax % ll) 18618 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 18619 | (ullmax / ull) | (ullmax % ull)); 18620 ; 18621 return 0; 18622} 18623 18624_ACEOF 18625rm -f conftest.$ac_objext conftest$ac_exeext 18626if { (ac_try="$ac_link" 18627case "(($ac_try" in 18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18629 *) ac_try_echo=$ac_try;; 18630esac 18631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18632$as_echo "$ac_try_echo") >&5 18633 (eval "$ac_link") 2>conftest.er1 18634 ac_status=$? 18635 grep -v '^ *+' conftest.er1 >conftest.err 18636 rm -f conftest.er1 18637 cat conftest.err >&5 18638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18639 (exit $ac_status); } && { 18640 test -z "$ac_c_werror_flag" || 18641 test ! -s conftest.err 18642 } && test -s conftest$ac_exeext && { 18643 test "$cross_compiling" = yes || 18644 $as_test_x conftest$ac_exeext 18645 }; then 18646 if test "$cross_compiling" = yes; then 18647 ac_cv_type_long_long_int=yes 18648else 18649 cat >conftest.$ac_ext <<_ACEOF 18650/* confdefs.h. */ 18651_ACEOF 18652cat confdefs.h >>conftest.$ac_ext 18653cat >>conftest.$ac_ext <<_ACEOF 18654/* end confdefs.h. */ 18655#include <limits.h> 18656 #ifndef LLONG_MAX 18657 # define HALF \ 18658 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 18659 # define LLONG_MAX (HALF - 1 + HALF) 18660 #endif 18661int 18662main () 18663{ 18664long long int n = 1; 18665 int i; 18666 for (i = 0; ; i++) 18667 { 18668 long long int m = n << i; 18669 if (m >> i != n) 18670 return 1; 18671 if (LLONG_MAX / 2 < m) 18672 break; 18673 } 18674 return 0; 18675 ; 18676 return 0; 18677} 18678_ACEOF 18679rm -f conftest$ac_exeext 18680if { (ac_try="$ac_link" 18681case "(($ac_try" in 18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18683 *) ac_try_echo=$ac_try;; 18684esac 18685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18686$as_echo "$ac_try_echo") >&5 18687 (eval "$ac_link") 2>&5 18688 ac_status=$? 18689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18691 { (case "(($ac_try" in 18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18693 *) ac_try_echo=$ac_try;; 18694esac 18695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18696$as_echo "$ac_try_echo") >&5 18697 (eval "$ac_try") 2>&5 18698 ac_status=$? 18699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18700 (exit $ac_status); }; }; then 18701 ac_cv_type_long_long_int=yes 18702else 18703 $as_echo "$as_me: program exited with status $ac_status" >&5 18704$as_echo "$as_me: failed program was:" >&5 18705sed 's/^/| /' conftest.$ac_ext >&5 18706 18707( exit $ac_status ) 18708ac_cv_type_long_long_int=no 18709fi 18710rm -rf conftest.dSYM 18711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18712fi 18713 18714 18715else 18716 $as_echo "$as_me: failed program was:" >&5 18717sed 's/^/| /' conftest.$ac_ext >&5 18718 18719 ac_cv_type_long_long_int=no 18720fi 18721 18722rm -rf conftest.dSYM 18723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18724 conftest$ac_exeext conftest.$ac_ext 18725fi 18726{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 18727$as_echo "$ac_cv_type_long_long_int" >&6; } 18728 if test $ac_cv_type_long_long_int = yes; then 18729 18730cat >>confdefs.h <<\_ACEOF 18731#define HAVE_LONG_LONG_INT 1 18732_ACEOF 18733 18734 fi 18735 18736 18737 18738 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5 18739$as_echo_n "checking for intmax_t... " >&6; } 18740if test "${ac_cv_type_intmax_t+set}" = set; then 18741 $as_echo_n "(cached) " >&6 18742else 18743 ac_cv_type_intmax_t=no 18744cat >conftest.$ac_ext <<_ACEOF 18745/* confdefs.h. */ 18746_ACEOF 18747cat confdefs.h >>conftest.$ac_ext 18748cat >>conftest.$ac_ext <<_ACEOF 18749/* end confdefs.h. */ 18750$ac_includes_default 18751int 18752main () 18753{ 18754if (sizeof (intmax_t)) 18755 return 0; 18756 ; 18757 return 0; 18758} 18759_ACEOF 18760rm -f conftest.$ac_objext 18761if { (ac_try="$ac_compile" 18762case "(($ac_try" in 18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18764 *) ac_try_echo=$ac_try;; 18765esac 18766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18767$as_echo "$ac_try_echo") >&5 18768 (eval "$ac_compile") 2>conftest.er1 18769 ac_status=$? 18770 grep -v '^ *+' conftest.er1 >conftest.err 18771 rm -f conftest.er1 18772 cat conftest.err >&5 18773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18774 (exit $ac_status); } && { 18775 test -z "$ac_c_werror_flag" || 18776 test ! -s conftest.err 18777 } && test -s conftest.$ac_objext; then 18778 cat >conftest.$ac_ext <<_ACEOF 18779/* confdefs.h. */ 18780_ACEOF 18781cat confdefs.h >>conftest.$ac_ext 18782cat >>conftest.$ac_ext <<_ACEOF 18783/* end confdefs.h. */ 18784$ac_includes_default 18785int 18786main () 18787{ 18788if (sizeof ((intmax_t))) 18789 return 0; 18790 ; 18791 return 0; 18792} 18793_ACEOF 18794rm -f conftest.$ac_objext 18795if { (ac_try="$ac_compile" 18796case "(($ac_try" in 18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18798 *) ac_try_echo=$ac_try;; 18799esac 18800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18801$as_echo "$ac_try_echo") >&5 18802 (eval "$ac_compile") 2>conftest.er1 18803 ac_status=$? 18804 grep -v '^ *+' conftest.er1 >conftest.err 18805 rm -f conftest.er1 18806 cat conftest.err >&5 18807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18808 (exit $ac_status); } && { 18809 test -z "$ac_c_werror_flag" || 18810 test ! -s conftest.err 18811 } && test -s conftest.$ac_objext; then 18812 : 18813else 18814 $as_echo "$as_me: failed program was:" >&5 18815sed 's/^/| /' conftest.$ac_ext >&5 18816 18817 ac_cv_type_intmax_t=yes 18818fi 18819 18820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18821else 18822 $as_echo "$as_me: failed program was:" >&5 18823sed 's/^/| /' conftest.$ac_ext >&5 18824 18825 18826fi 18827 18828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18829fi 18830{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 18831$as_echo "$ac_cv_type_intmax_t" >&6; } 18832if test $ac_cv_type_intmax_t = yes; then 18833 18834cat >>confdefs.h <<\_ACEOF 18835#define HAVE_INTMAX_T 1 18836_ACEOF 18837 18838else 18839 test $ac_cv_type_long_long_int = yes \ 18840 && ac_type='long long int' \ 18841 || ac_type='long int' 18842 18843cat >>confdefs.h <<_ACEOF 18844#define intmax_t $ac_type 18845_ACEOF 18846 18847fi 18848 18849 18850 18851 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 18852$as_echo_n "checking for int64_t... " >&6; } 18853if test "${ac_cv_c_int64_t+set}" = set; then 18854 $as_echo_n "(cached) " >&6 18855else 18856 ac_cv_c_int64_t=no 18857 for ac_type in 'int64_t' 'int' 'long int' \ 18858 'long long int' 'short int' 'signed char'; do 18859 cat >conftest.$ac_ext <<_ACEOF 18860/* confdefs.h. */ 18861_ACEOF 18862cat confdefs.h >>conftest.$ac_ext 18863cat >>conftest.$ac_ext <<_ACEOF 18864/* end confdefs.h. */ 18865$ac_includes_default 18866int 18867main () 18868{ 18869static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; 18870test_array [0] = 0 18871 18872 ; 18873 return 0; 18874} 18875_ACEOF 18876rm -f conftest.$ac_objext 18877if { (ac_try="$ac_compile" 18878case "(($ac_try" in 18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18880 *) ac_try_echo=$ac_try;; 18881esac 18882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18883$as_echo "$ac_try_echo") >&5 18884 (eval "$ac_compile") 2>conftest.er1 18885 ac_status=$? 18886 grep -v '^ *+' conftest.er1 >conftest.err 18887 rm -f conftest.er1 18888 cat conftest.err >&5 18889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18890 (exit $ac_status); } && { 18891 test -z "$ac_c_werror_flag" || 18892 test ! -s conftest.err 18893 } && test -s conftest.$ac_objext; then 18894 cat >conftest.$ac_ext <<_ACEOF 18895/* confdefs.h. */ 18896_ACEOF 18897cat confdefs.h >>conftest.$ac_ext 18898cat >>conftest.$ac_ext <<_ACEOF 18899/* end confdefs.h. */ 18900$ac_includes_default 18901int 18902main () 18903{ 18904static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) 18905 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; 18906test_array [0] = 0 18907 18908 ; 18909 return 0; 18910} 18911_ACEOF 18912rm -f conftest.$ac_objext 18913if { (ac_try="$ac_compile" 18914case "(($ac_try" in 18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18916 *) ac_try_echo=$ac_try;; 18917esac 18918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18919$as_echo "$ac_try_echo") >&5 18920 (eval "$ac_compile") 2>conftest.er1 18921 ac_status=$? 18922 grep -v '^ *+' conftest.er1 >conftest.err 18923 rm -f conftest.er1 18924 cat conftest.err >&5 18925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18926 (exit $ac_status); } && { 18927 test -z "$ac_c_werror_flag" || 18928 test ! -s conftest.err 18929 } && test -s conftest.$ac_objext; then 18930 : 18931else 18932 $as_echo "$as_me: failed program was:" >&5 18933sed 's/^/| /' conftest.$ac_ext >&5 18934 18935 case $ac_type in 18936 int64_t) ac_cv_c_int64_t=yes ;; 18937 *) ac_cv_c_int64_t=$ac_type ;; 18938esac 18939 18940fi 18941 18942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18943else 18944 $as_echo "$as_me: failed program was:" >&5 18945sed 's/^/| /' conftest.$ac_ext >&5 18946 18947 18948fi 18949 18950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18951 test "$ac_cv_c_int64_t" != no && break 18952 done 18953fi 18954{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 18955$as_echo "$ac_cv_c_int64_t" >&6; } 18956 case $ac_cv_c_int64_t in #( 18957 no|yes) ;; #( 18958 *) 18959 18960cat >>confdefs.h <<_ACEOF 18961#define int64_t $ac_cv_c_int64_t 18962_ACEOF 18963;; 18964 esac 18965 18966 18967 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5 18968$as_echo_n "checking for unsigned long long int... " >&6; } 18969if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then 18970 $as_echo_n "(cached) " >&6 18971else 18972 cat >conftest.$ac_ext <<_ACEOF 18973 18974 /* confdefs.h. */ 18975_ACEOF 18976cat confdefs.h >>conftest.$ac_ext 18977cat >>conftest.$ac_ext <<_ACEOF 18978/* end confdefs.h. */ 18979/* For now, do not test the preprocessor; as of 2007 there are too many 18980 implementations with broken preprocessors. Perhaps this can 18981 be revisited in 2012. In the meantime, code should not expect 18982 #if to work with literals wider than 32 bits. */ 18983 /* Test literals. */ 18984 long long int ll = 9223372036854775807ll; 18985 long long int nll = -9223372036854775807LL; 18986 unsigned long long int ull = 18446744073709551615ULL; 18987 /* Test constant expressions. */ 18988 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 18989 ? 1 : -1)]; 18990 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 18991 ? 1 : -1)]; 18992 int i = 63; 18993int 18994main () 18995{ 18996/* Test availability of runtime routines for shift and division. */ 18997 long long int llmax = 9223372036854775807ll; 18998 unsigned long long int ullmax = 18446744073709551615ull; 18999 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 19000 | (llmax / ll) | (llmax % ll) 19001 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 19002 | (ullmax / ull) | (ullmax % ull)); 19003 ; 19004 return 0; 19005} 19006 19007_ACEOF 19008rm -f conftest.$ac_objext conftest$ac_exeext 19009if { (ac_try="$ac_link" 19010case "(($ac_try" in 19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19012 *) ac_try_echo=$ac_try;; 19013esac 19014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19015$as_echo "$ac_try_echo") >&5 19016 (eval "$ac_link") 2>conftest.er1 19017 ac_status=$? 19018 grep -v '^ *+' conftest.er1 >conftest.err 19019 rm -f conftest.er1 19020 cat conftest.err >&5 19021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19022 (exit $ac_status); } && { 19023 test -z "$ac_c_werror_flag" || 19024 test ! -s conftest.err 19025 } && test -s conftest$ac_exeext && { 19026 test "$cross_compiling" = yes || 19027 $as_test_x conftest$ac_exeext 19028 }; then 19029 ac_cv_type_unsigned_long_long_int=yes 19030else 19031 $as_echo "$as_me: failed program was:" >&5 19032sed 's/^/| /' conftest.$ac_ext >&5 19033 19034 ac_cv_type_unsigned_long_long_int=no 19035fi 19036 19037rm -rf conftest.dSYM 19038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19039 conftest$ac_exeext conftest.$ac_ext 19040fi 19041{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 19042$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 19043 if test $ac_cv_type_unsigned_long_long_int = yes; then 19044 19045cat >>confdefs.h <<\_ACEOF 19046#define HAVE_UNSIGNED_LONG_LONG_INT 1 19047_ACEOF 19048 19049 fi 19050 19051 19052 19053 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5 19054$as_echo_n "checking for uintmax_t... " >&6; } 19055if test "${ac_cv_type_uintmax_t+set}" = set; then 19056 $as_echo_n "(cached) " >&6 19057else 19058 ac_cv_type_uintmax_t=no 19059cat >conftest.$ac_ext <<_ACEOF 19060/* confdefs.h. */ 19061_ACEOF 19062cat confdefs.h >>conftest.$ac_ext 19063cat >>conftest.$ac_ext <<_ACEOF 19064/* end confdefs.h. */ 19065$ac_includes_default 19066int 19067main () 19068{ 19069if (sizeof (uintmax_t)) 19070 return 0; 19071 ; 19072 return 0; 19073} 19074_ACEOF 19075rm -f conftest.$ac_objext 19076if { (ac_try="$ac_compile" 19077case "(($ac_try" in 19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19079 *) ac_try_echo=$ac_try;; 19080esac 19081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19082$as_echo "$ac_try_echo") >&5 19083 (eval "$ac_compile") 2>conftest.er1 19084 ac_status=$? 19085 grep -v '^ *+' conftest.er1 >conftest.err 19086 rm -f conftest.er1 19087 cat conftest.err >&5 19088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19089 (exit $ac_status); } && { 19090 test -z "$ac_c_werror_flag" || 19091 test ! -s conftest.err 19092 } && test -s conftest.$ac_objext; then 19093 cat >conftest.$ac_ext <<_ACEOF 19094/* confdefs.h. */ 19095_ACEOF 19096cat confdefs.h >>conftest.$ac_ext 19097cat >>conftest.$ac_ext <<_ACEOF 19098/* end confdefs.h. */ 19099$ac_includes_default 19100int 19101main () 19102{ 19103if (sizeof ((uintmax_t))) 19104 return 0; 19105 ; 19106 return 0; 19107} 19108_ACEOF 19109rm -f conftest.$ac_objext 19110if { (ac_try="$ac_compile" 19111case "(($ac_try" in 19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19113 *) ac_try_echo=$ac_try;; 19114esac 19115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19116$as_echo "$ac_try_echo") >&5 19117 (eval "$ac_compile") 2>conftest.er1 19118 ac_status=$? 19119 grep -v '^ *+' conftest.er1 >conftest.err 19120 rm -f conftest.er1 19121 cat conftest.err >&5 19122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19123 (exit $ac_status); } && { 19124 test -z "$ac_c_werror_flag" || 19125 test ! -s conftest.err 19126 } && test -s conftest.$ac_objext; then 19127 : 19128else 19129 $as_echo "$as_me: failed program was:" >&5 19130sed 's/^/| /' conftest.$ac_ext >&5 19131 19132 ac_cv_type_uintmax_t=yes 19133fi 19134 19135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19136else 19137 $as_echo "$as_me: failed program was:" >&5 19138sed 's/^/| /' conftest.$ac_ext >&5 19139 19140 19141fi 19142 19143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19144fi 19145{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 19146$as_echo "$ac_cv_type_uintmax_t" >&6; } 19147if test $ac_cv_type_uintmax_t = yes; then 19148 19149cat >>confdefs.h <<\_ACEOF 19150#define HAVE_UINTMAX_T 1 19151_ACEOF 19152 19153else 19154 test $ac_cv_type_unsigned_long_long_int = yes \ 19155 && ac_type='unsigned long long int' \ 19156 || ac_type='unsigned long int' 19157 19158cat >>confdefs.h <<_ACEOF 19159#define uintmax_t $ac_type 19160_ACEOF 19161 19162fi 19163 19164 19165 19166 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 19167$as_echo_n "checking for uint64_t... " >&6; } 19168if test "${ac_cv_c_uint64_t+set}" = set; then 19169 $as_echo_n "(cached) " >&6 19170else 19171 ac_cv_c_uint64_t=no 19172 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ 19173 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 19174 cat >conftest.$ac_ext <<_ACEOF 19175/* confdefs.h. */ 19176_ACEOF 19177cat confdefs.h >>conftest.$ac_ext 19178cat >>conftest.$ac_ext <<_ACEOF 19179/* end confdefs.h. */ 19180$ac_includes_default 19181int 19182main () 19183{ 19184static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; 19185test_array [0] = 0 19186 19187 ; 19188 return 0; 19189} 19190_ACEOF 19191rm -f conftest.$ac_objext 19192if { (ac_try="$ac_compile" 19193case "(($ac_try" in 19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19195 *) ac_try_echo=$ac_try;; 19196esac 19197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19198$as_echo "$ac_try_echo") >&5 19199 (eval "$ac_compile") 2>conftest.er1 19200 ac_status=$? 19201 grep -v '^ *+' conftest.er1 >conftest.err 19202 rm -f conftest.er1 19203 cat conftest.err >&5 19204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19205 (exit $ac_status); } && { 19206 test -z "$ac_c_werror_flag" || 19207 test ! -s conftest.err 19208 } && test -s conftest.$ac_objext; then 19209 case $ac_type in 19210 uint64_t) ac_cv_c_uint64_t=yes ;; 19211 *) ac_cv_c_uint64_t=$ac_type ;; 19212esac 19213 19214else 19215 $as_echo "$as_me: failed program was:" >&5 19216sed 's/^/| /' conftest.$ac_ext >&5 19217 19218 19219fi 19220 19221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19222 test "$ac_cv_c_uint64_t" != no && break 19223 done 19224fi 19225{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 19226$as_echo "$ac_cv_c_uint64_t" >&6; } 19227 case $ac_cv_c_uint64_t in #( 19228 no|yes) ;; #( 19229 *) 19230 19231cat >>confdefs.h <<\_ACEOF 19232#define _UINT64_T 1 19233_ACEOF 19234 19235 19236cat >>confdefs.h <<_ACEOF 19237#define uint64_t $ac_cv_c_uint64_t 19238_ACEOF 19239;; 19240 esac 19241 19242 19243# TODO: If any of these are missing, define them right here. 19244{ $as_echo "$as_me:$LINENO: checking whether SIZE_MAX is declared" >&5 19245$as_echo_n "checking whether SIZE_MAX is declared... " >&6; } 19246if test "${ac_cv_have_decl_SIZE_MAX+set}" = set; then 19247 $as_echo_n "(cached) " >&6 19248else 19249 cat >conftest.$ac_ext <<_ACEOF 19250/* confdefs.h. */ 19251_ACEOF 19252cat confdefs.h >>conftest.$ac_ext 19253cat >>conftest.$ac_ext <<_ACEOF 19254/* end confdefs.h. */ 19255$ac_includes_default 19256int 19257main () 19258{ 19259#ifndef SIZE_MAX 19260 (void) SIZE_MAX; 19261#endif 19262 19263 ; 19264 return 0; 19265} 19266_ACEOF 19267rm -f conftest.$ac_objext 19268if { (ac_try="$ac_compile" 19269case "(($ac_try" in 19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19271 *) ac_try_echo=$ac_try;; 19272esac 19273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19274$as_echo "$ac_try_echo") >&5 19275 (eval "$ac_compile") 2>conftest.er1 19276 ac_status=$? 19277 grep -v '^ *+' conftest.er1 >conftest.err 19278 rm -f conftest.er1 19279 cat conftest.err >&5 19280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19281 (exit $ac_status); } && { 19282 test -z "$ac_c_werror_flag" || 19283 test ! -s conftest.err 19284 } && test -s conftest.$ac_objext; then 19285 ac_cv_have_decl_SIZE_MAX=yes 19286else 19287 $as_echo "$as_me: failed program was:" >&5 19288sed 's/^/| /' conftest.$ac_ext >&5 19289 19290 ac_cv_have_decl_SIZE_MAX=no 19291fi 19292 19293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19294fi 19295{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_SIZE_MAX" >&5 19296$as_echo "$ac_cv_have_decl_SIZE_MAX" >&6; } 19297if test $ac_cv_have_decl_SIZE_MAX = yes; then 19298 19299cat >>confdefs.h <<_ACEOF 19300#define HAVE_DECL_SIZE_MAX 1 19301_ACEOF 19302 19303 19304else 19305 cat >>confdefs.h <<_ACEOF 19306#define HAVE_DECL_SIZE_MAX 0 19307_ACEOF 19308 19309 19310fi 19311{ $as_echo "$as_me:$LINENO: checking whether SSIZE_MAX is declared" >&5 19312$as_echo_n "checking whether SSIZE_MAX is declared... " >&6; } 19313if test "${ac_cv_have_decl_SSIZE_MAX+set}" = set; then 19314 $as_echo_n "(cached) " >&6 19315else 19316 cat >conftest.$ac_ext <<_ACEOF 19317/* confdefs.h. */ 19318_ACEOF 19319cat confdefs.h >>conftest.$ac_ext 19320cat >>conftest.$ac_ext <<_ACEOF 19321/* end confdefs.h. */ 19322$ac_includes_default 19323int 19324main () 19325{ 19326#ifndef SSIZE_MAX 19327 (void) SSIZE_MAX; 19328#endif 19329 19330 ; 19331 return 0; 19332} 19333_ACEOF 19334rm -f conftest.$ac_objext 19335if { (ac_try="$ac_compile" 19336case "(($ac_try" in 19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19338 *) ac_try_echo=$ac_try;; 19339esac 19340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19341$as_echo "$ac_try_echo") >&5 19342 (eval "$ac_compile") 2>conftest.er1 19343 ac_status=$? 19344 grep -v '^ *+' conftest.er1 >conftest.err 19345 rm -f conftest.er1 19346 cat conftest.err >&5 19347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19348 (exit $ac_status); } && { 19349 test -z "$ac_c_werror_flag" || 19350 test ! -s conftest.err 19351 } && test -s conftest.$ac_objext; then 19352 ac_cv_have_decl_SSIZE_MAX=yes 19353else 19354 $as_echo "$as_me: failed program was:" >&5 19355sed 's/^/| /' conftest.$ac_ext >&5 19356 19357 ac_cv_have_decl_SSIZE_MAX=no 19358fi 19359 19360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19361fi 19362{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_SSIZE_MAX" >&5 19363$as_echo "$ac_cv_have_decl_SSIZE_MAX" >&6; } 19364if test $ac_cv_have_decl_SSIZE_MAX = yes; then 19365 19366cat >>confdefs.h <<_ACEOF 19367#define HAVE_DECL_SSIZE_MAX 1 19368_ACEOF 19369 19370 19371else 19372 cat >>confdefs.h <<_ACEOF 19373#define HAVE_DECL_SSIZE_MAX 0 19374_ACEOF 19375 19376 19377fi 19378{ $as_echo "$as_me:$LINENO: checking whether INT64_MAX is declared" >&5 19379$as_echo_n "checking whether INT64_MAX is declared... " >&6; } 19380if test "${ac_cv_have_decl_INT64_MAX+set}" = set; then 19381 $as_echo_n "(cached) " >&6 19382else 19383 cat >conftest.$ac_ext <<_ACEOF 19384/* confdefs.h. */ 19385_ACEOF 19386cat confdefs.h >>conftest.$ac_ext 19387cat >>conftest.$ac_ext <<_ACEOF 19388/* end confdefs.h. */ 19389$ac_includes_default 19390int 19391main () 19392{ 19393#ifndef INT64_MAX 19394 (void) INT64_MAX; 19395#endif 19396 19397 ; 19398 return 0; 19399} 19400_ACEOF 19401rm -f conftest.$ac_objext 19402if { (ac_try="$ac_compile" 19403case "(($ac_try" in 19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19405 *) ac_try_echo=$ac_try;; 19406esac 19407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19408$as_echo "$ac_try_echo") >&5 19409 (eval "$ac_compile") 2>conftest.er1 19410 ac_status=$? 19411 grep -v '^ *+' conftest.er1 >conftest.err 19412 rm -f conftest.er1 19413 cat conftest.err >&5 19414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19415 (exit $ac_status); } && { 19416 test -z "$ac_c_werror_flag" || 19417 test ! -s conftest.err 19418 } && test -s conftest.$ac_objext; then 19419 ac_cv_have_decl_INT64_MAX=yes 19420else 19421 $as_echo "$as_me: failed program was:" >&5 19422sed 's/^/| /' conftest.$ac_ext >&5 19423 19424 ac_cv_have_decl_INT64_MAX=no 19425fi 19426 19427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19428fi 19429{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_INT64_MAX" >&5 19430$as_echo "$ac_cv_have_decl_INT64_MAX" >&6; } 19431if test $ac_cv_have_decl_INT64_MAX = yes; then 19432 19433cat >>confdefs.h <<_ACEOF 19434#define HAVE_DECL_INT64_MAX 1 19435_ACEOF 19436 19437 19438else 19439 cat >>confdefs.h <<_ACEOF 19440#define HAVE_DECL_INT64_MAX 0 19441_ACEOF 19442 19443 19444fi 19445{ $as_echo "$as_me:$LINENO: checking whether INT64_MIN is declared" >&5 19446$as_echo_n "checking whether INT64_MIN is declared... " >&6; } 19447if test "${ac_cv_have_decl_INT64_MIN+set}" = set; then 19448 $as_echo_n "(cached) " >&6 19449else 19450 cat >conftest.$ac_ext <<_ACEOF 19451/* confdefs.h. */ 19452_ACEOF 19453cat confdefs.h >>conftest.$ac_ext 19454cat >>conftest.$ac_ext <<_ACEOF 19455/* end confdefs.h. */ 19456$ac_includes_default 19457int 19458main () 19459{ 19460#ifndef INT64_MIN 19461 (void) INT64_MIN; 19462#endif 19463 19464 ; 19465 return 0; 19466} 19467_ACEOF 19468rm -f conftest.$ac_objext 19469if { (ac_try="$ac_compile" 19470case "(($ac_try" in 19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19472 *) ac_try_echo=$ac_try;; 19473esac 19474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19475$as_echo "$ac_try_echo") >&5 19476 (eval "$ac_compile") 2>conftest.er1 19477 ac_status=$? 19478 grep -v '^ *+' conftest.er1 >conftest.err 19479 rm -f conftest.er1 19480 cat conftest.err >&5 19481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19482 (exit $ac_status); } && { 19483 test -z "$ac_c_werror_flag" || 19484 test ! -s conftest.err 19485 } && test -s conftest.$ac_objext; then 19486 ac_cv_have_decl_INT64_MIN=yes 19487else 19488 $as_echo "$as_me: failed program was:" >&5 19489sed 's/^/| /' conftest.$ac_ext >&5 19490 19491 ac_cv_have_decl_INT64_MIN=no 19492fi 19493 19494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19495fi 19496{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_INT64_MIN" >&5 19497$as_echo "$ac_cv_have_decl_INT64_MIN" >&6; } 19498if test $ac_cv_have_decl_INT64_MIN = yes; then 19499 19500cat >>confdefs.h <<_ACEOF 19501#define HAVE_DECL_INT64_MIN 1 19502_ACEOF 19503 19504 19505else 19506 cat >>confdefs.h <<_ACEOF 19507#define HAVE_DECL_INT64_MIN 0 19508_ACEOF 19509 19510 19511fi 19512{ $as_echo "$as_me:$LINENO: checking whether UINT64_MAX is declared" >&5 19513$as_echo_n "checking whether UINT64_MAX is declared... " >&6; } 19514if test "${ac_cv_have_decl_UINT64_MAX+set}" = set; then 19515 $as_echo_n "(cached) " >&6 19516else 19517 cat >conftest.$ac_ext <<_ACEOF 19518/* confdefs.h. */ 19519_ACEOF 19520cat confdefs.h >>conftest.$ac_ext 19521cat >>conftest.$ac_ext <<_ACEOF 19522/* end confdefs.h. */ 19523$ac_includes_default 19524int 19525main () 19526{ 19527#ifndef UINT64_MAX 19528 (void) UINT64_MAX; 19529#endif 19530 19531 ; 19532 return 0; 19533} 19534_ACEOF 19535rm -f conftest.$ac_objext 19536if { (ac_try="$ac_compile" 19537case "(($ac_try" in 19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19539 *) ac_try_echo=$ac_try;; 19540esac 19541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19542$as_echo "$ac_try_echo") >&5 19543 (eval "$ac_compile") 2>conftest.er1 19544 ac_status=$? 19545 grep -v '^ *+' conftest.er1 >conftest.err 19546 rm -f conftest.er1 19547 cat conftest.err >&5 19548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19549 (exit $ac_status); } && { 19550 test -z "$ac_c_werror_flag" || 19551 test ! -s conftest.err 19552 } && test -s conftest.$ac_objext; then 19553 ac_cv_have_decl_UINT64_MAX=yes 19554else 19555 $as_echo "$as_me: failed program was:" >&5 19556sed 's/^/| /' conftest.$ac_ext >&5 19557 19558 ac_cv_have_decl_UINT64_MAX=no 19559fi 19560 19561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19562fi 19563{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_UINT64_MAX" >&5 19564$as_echo "$ac_cv_have_decl_UINT64_MAX" >&6; } 19565if test $ac_cv_have_decl_UINT64_MAX = yes; then 19566 19567cat >>confdefs.h <<_ACEOF 19568#define HAVE_DECL_UINT64_MAX 1 19569_ACEOF 19570 19571 19572else 19573 cat >>confdefs.h <<_ACEOF 19574#define HAVE_DECL_UINT64_MAX 0 19575_ACEOF 19576 19577 19578fi 19579{ $as_echo "$as_me:$LINENO: checking whether UINT32_MAX is declared" >&5 19580$as_echo_n "checking whether UINT32_MAX is declared... " >&6; } 19581if test "${ac_cv_have_decl_UINT32_MAX+set}" = set; then 19582 $as_echo_n "(cached) " >&6 19583else 19584 cat >conftest.$ac_ext <<_ACEOF 19585/* confdefs.h. */ 19586_ACEOF 19587cat confdefs.h >>conftest.$ac_ext 19588cat >>conftest.$ac_ext <<_ACEOF 19589/* end confdefs.h. */ 19590$ac_includes_default 19591int 19592main () 19593{ 19594#ifndef UINT32_MAX 19595 (void) UINT32_MAX; 19596#endif 19597 19598 ; 19599 return 0; 19600} 19601_ACEOF 19602rm -f conftest.$ac_objext 19603if { (ac_try="$ac_compile" 19604case "(($ac_try" in 19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19606 *) ac_try_echo=$ac_try;; 19607esac 19608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19609$as_echo "$ac_try_echo") >&5 19610 (eval "$ac_compile") 2>conftest.er1 19611 ac_status=$? 19612 grep -v '^ *+' conftest.er1 >conftest.err 19613 rm -f conftest.er1 19614 cat conftest.err >&5 19615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19616 (exit $ac_status); } && { 19617 test -z "$ac_c_werror_flag" || 19618 test ! -s conftest.err 19619 } && test -s conftest.$ac_objext; then 19620 ac_cv_have_decl_UINT32_MAX=yes 19621else 19622 $as_echo "$as_me: failed program was:" >&5 19623sed 's/^/| /' conftest.$ac_ext >&5 19624 19625 ac_cv_have_decl_UINT32_MAX=no 19626fi 19627 19628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19629fi 19630{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_UINT32_MAX" >&5 19631$as_echo "$ac_cv_have_decl_UINT32_MAX" >&6; } 19632if test $ac_cv_have_decl_UINT32_MAX = yes; then 19633 19634cat >>confdefs.h <<_ACEOF 19635#define HAVE_DECL_UINT32_MAX 1 19636_ACEOF 19637 19638 19639else 19640 cat >>confdefs.h <<_ACEOF 19641#define HAVE_DECL_UINT32_MAX 0 19642_ACEOF 19643 19644 19645fi 19646 19647 19648 19649{ $as_echo "$as_me:$LINENO: checking whether EFTYPE is declared" >&5 19650$as_echo_n "checking whether EFTYPE is declared... " >&6; } 19651if test "${ac_cv_have_decl_EFTYPE+set}" = set; then 19652 $as_echo_n "(cached) " >&6 19653else 19654 cat >conftest.$ac_ext <<_ACEOF 19655/* confdefs.h. */ 19656_ACEOF 19657cat confdefs.h >>conftest.$ac_ext 19658cat >>conftest.$ac_ext <<_ACEOF 19659/* end confdefs.h. */ 19660#include <errno.h> 19661 19662int 19663main () 19664{ 19665#ifndef EFTYPE 19666 (void) EFTYPE; 19667#endif 19668 19669 ; 19670 return 0; 19671} 19672_ACEOF 19673rm -f conftest.$ac_objext 19674if { (ac_try="$ac_compile" 19675case "(($ac_try" in 19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19677 *) ac_try_echo=$ac_try;; 19678esac 19679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19680$as_echo "$ac_try_echo") >&5 19681 (eval "$ac_compile") 2>conftest.er1 19682 ac_status=$? 19683 grep -v '^ *+' conftest.er1 >conftest.err 19684 rm -f conftest.er1 19685 cat conftest.err >&5 19686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19687 (exit $ac_status); } && { 19688 test -z "$ac_c_werror_flag" || 19689 test ! -s conftest.err 19690 } && test -s conftest.$ac_objext; then 19691 ac_cv_have_decl_EFTYPE=yes 19692else 19693 $as_echo "$as_me: failed program was:" >&5 19694sed 's/^/| /' conftest.$ac_ext >&5 19695 19696 ac_cv_have_decl_EFTYPE=no 19697fi 19698 19699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19700fi 19701{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_EFTYPE" >&5 19702$as_echo "$ac_cv_have_decl_EFTYPE" >&6; } 19703if test $ac_cv_have_decl_EFTYPE = yes; then 19704 19705cat >>confdefs.h <<\_ACEOF 19706#define HAVE_EFTYPE 1 19707_ACEOF 19708 19709fi 19710 19711{ $as_echo "$as_me:$LINENO: checking whether EILSEQ is declared" >&5 19712$as_echo_n "checking whether EILSEQ is declared... " >&6; } 19713if test "${ac_cv_have_decl_EILSEQ+set}" = set; then 19714 $as_echo_n "(cached) " >&6 19715else 19716 cat >conftest.$ac_ext <<_ACEOF 19717/* confdefs.h. */ 19718_ACEOF 19719cat confdefs.h >>conftest.$ac_ext 19720cat >>conftest.$ac_ext <<_ACEOF 19721/* end confdefs.h. */ 19722#include <errno.h> 19723 19724int 19725main () 19726{ 19727#ifndef EILSEQ 19728 (void) EILSEQ; 19729#endif 19730 19731 ; 19732 return 0; 19733} 19734_ACEOF 19735rm -f conftest.$ac_objext 19736if { (ac_try="$ac_compile" 19737case "(($ac_try" in 19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19739 *) ac_try_echo=$ac_try;; 19740esac 19741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19742$as_echo "$ac_try_echo") >&5 19743 (eval "$ac_compile") 2>conftest.er1 19744 ac_status=$? 19745 grep -v '^ *+' conftest.er1 >conftest.err 19746 rm -f conftest.er1 19747 cat conftest.err >&5 19748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19749 (exit $ac_status); } && { 19750 test -z "$ac_c_werror_flag" || 19751 test ! -s conftest.err 19752 } && test -s conftest.$ac_objext; then 19753 ac_cv_have_decl_EILSEQ=yes 19754else 19755 $as_echo "$as_me: failed program was:" >&5 19756sed 's/^/| /' conftest.$ac_ext >&5 19757 19758 ac_cv_have_decl_EILSEQ=no 19759fi 19760 19761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19762fi 19763{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_EILSEQ" >&5 19764$as_echo "$ac_cv_have_decl_EILSEQ" >&6; } 19765if test $ac_cv_have_decl_EILSEQ = yes; then 19766 19767cat >>confdefs.h <<\_ACEOF 19768#define HAVE_EILSEQ 1 19769_ACEOF 19770 19771fi 19772 19773{ $as_echo "$as_me:$LINENO: checking for wchar_t" >&5 19774$as_echo_n "checking for wchar_t... " >&6; } 19775if test "${ac_cv_type_wchar_t+set}" = set; then 19776 $as_echo_n "(cached) " >&6 19777else 19778 ac_cv_type_wchar_t=no 19779cat >conftest.$ac_ext <<_ACEOF 19780/* confdefs.h. */ 19781_ACEOF 19782cat confdefs.h >>conftest.$ac_ext 19783cat >>conftest.$ac_ext <<_ACEOF 19784/* end confdefs.h. */ 19785$ac_includes_default 19786int 19787main () 19788{ 19789if (sizeof (wchar_t)) 19790 return 0; 19791 ; 19792 return 0; 19793} 19794_ACEOF 19795rm -f conftest.$ac_objext 19796if { (ac_try="$ac_compile" 19797case "(($ac_try" in 19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19799 *) ac_try_echo=$ac_try;; 19800esac 19801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19802$as_echo "$ac_try_echo") >&5 19803 (eval "$ac_compile") 2>conftest.er1 19804 ac_status=$? 19805 grep -v '^ *+' conftest.er1 >conftest.err 19806 rm -f conftest.er1 19807 cat conftest.err >&5 19808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19809 (exit $ac_status); } && { 19810 test -z "$ac_c_werror_flag" || 19811 test ! -s conftest.err 19812 } && test -s conftest.$ac_objext; then 19813 cat >conftest.$ac_ext <<_ACEOF 19814/* confdefs.h. */ 19815_ACEOF 19816cat confdefs.h >>conftest.$ac_ext 19817cat >>conftest.$ac_ext <<_ACEOF 19818/* end confdefs.h. */ 19819$ac_includes_default 19820int 19821main () 19822{ 19823if (sizeof ((wchar_t))) 19824 return 0; 19825 ; 19826 return 0; 19827} 19828_ACEOF 19829rm -f conftest.$ac_objext 19830if { (ac_try="$ac_compile" 19831case "(($ac_try" in 19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19833 *) ac_try_echo=$ac_try;; 19834esac 19835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19836$as_echo "$ac_try_echo") >&5 19837 (eval "$ac_compile") 2>conftest.er1 19838 ac_status=$? 19839 grep -v '^ *+' conftest.er1 >conftest.err 19840 rm -f conftest.er1 19841 cat conftest.err >&5 19842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19843 (exit $ac_status); } && { 19844 test -z "$ac_c_werror_flag" || 19845 test ! -s conftest.err 19846 } && test -s conftest.$ac_objext; then 19847 : 19848else 19849 $as_echo "$as_me: failed program was:" >&5 19850sed 's/^/| /' conftest.$ac_ext >&5 19851 19852 ac_cv_type_wchar_t=yes 19853fi 19854 19855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19856else 19857 $as_echo "$as_me: failed program was:" >&5 19858sed 's/^/| /' conftest.$ac_ext >&5 19859 19860 19861fi 19862 19863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19864fi 19865{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 19866$as_echo "$ac_cv_type_wchar_t" >&6; } 19867if test $ac_cv_type_wchar_t = yes; then 19868 19869cat >>confdefs.h <<_ACEOF 19870#define HAVE_WCHAR_T 1 19871_ACEOF 19872 # The cast to long int works around a bug in the HP C Compiler 19873# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19874# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19875# This bug is HP SR number 8606223364. 19876{ $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5 19877$as_echo_n "checking size of wchar_t... " >&6; } 19878if test "${ac_cv_sizeof_wchar_t+set}" = set; then 19879 $as_echo_n "(cached) " >&6 19880else 19881 if test "$cross_compiling" = yes; then 19882 # Depending upon the size, compute the lo and hi bounds. 19883cat >conftest.$ac_ext <<_ACEOF 19884/* confdefs.h. */ 19885_ACEOF 19886cat confdefs.h >>conftest.$ac_ext 19887cat >>conftest.$ac_ext <<_ACEOF 19888/* end confdefs.h. */ 19889$ac_includes_default 19890int 19891main () 19892{ 19893static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)]; 19894test_array [0] = 0 19895 19896 ; 19897 return 0; 19898} 19899_ACEOF 19900rm -f conftest.$ac_objext 19901if { (ac_try="$ac_compile" 19902case "(($ac_try" in 19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19904 *) ac_try_echo=$ac_try;; 19905esac 19906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19907$as_echo "$ac_try_echo") >&5 19908 (eval "$ac_compile") 2>conftest.er1 19909 ac_status=$? 19910 grep -v '^ *+' conftest.er1 >conftest.err 19911 rm -f conftest.er1 19912 cat conftest.err >&5 19913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19914 (exit $ac_status); } && { 19915 test -z "$ac_c_werror_flag" || 19916 test ! -s conftest.err 19917 } && test -s conftest.$ac_objext; then 19918 ac_lo=0 ac_mid=0 19919 while :; do 19920 cat >conftest.$ac_ext <<_ACEOF 19921/* confdefs.h. */ 19922_ACEOF 19923cat confdefs.h >>conftest.$ac_ext 19924cat >>conftest.$ac_ext <<_ACEOF 19925/* end confdefs.h. */ 19926$ac_includes_default 19927int 19928main () 19929{ 19930static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)]; 19931test_array [0] = 0 19932 19933 ; 19934 return 0; 19935} 19936_ACEOF 19937rm -f conftest.$ac_objext 19938if { (ac_try="$ac_compile" 19939case "(($ac_try" in 19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19941 *) ac_try_echo=$ac_try;; 19942esac 19943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19944$as_echo "$ac_try_echo") >&5 19945 (eval "$ac_compile") 2>conftest.er1 19946 ac_status=$? 19947 grep -v '^ *+' conftest.er1 >conftest.err 19948 rm -f conftest.er1 19949 cat conftest.err >&5 19950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19951 (exit $ac_status); } && { 19952 test -z "$ac_c_werror_flag" || 19953 test ! -s conftest.err 19954 } && test -s conftest.$ac_objext; then 19955 ac_hi=$ac_mid; break 19956else 19957 $as_echo "$as_me: failed program was:" >&5 19958sed 's/^/| /' conftest.$ac_ext >&5 19959 19960 ac_lo=`expr $ac_mid + 1` 19961 if test $ac_lo -le $ac_mid; then 19962 ac_lo= ac_hi= 19963 break 19964 fi 19965 ac_mid=`expr 2 '*' $ac_mid + 1` 19966fi 19967 19968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19969 done 19970else 19971 $as_echo "$as_me: failed program was:" >&5 19972sed 's/^/| /' conftest.$ac_ext >&5 19973 19974 cat >conftest.$ac_ext <<_ACEOF 19975/* confdefs.h. */ 19976_ACEOF 19977cat confdefs.h >>conftest.$ac_ext 19978cat >>conftest.$ac_ext <<_ACEOF 19979/* end confdefs.h. */ 19980$ac_includes_default 19981int 19982main () 19983{ 19984static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)]; 19985test_array [0] = 0 19986 19987 ; 19988 return 0; 19989} 19990_ACEOF 19991rm -f conftest.$ac_objext 19992if { (ac_try="$ac_compile" 19993case "(($ac_try" in 19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19995 *) ac_try_echo=$ac_try;; 19996esac 19997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19998$as_echo "$ac_try_echo") >&5 19999 (eval "$ac_compile") 2>conftest.er1 20000 ac_status=$? 20001 grep -v '^ *+' conftest.er1 >conftest.err 20002 rm -f conftest.er1 20003 cat conftest.err >&5 20004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20005 (exit $ac_status); } && { 20006 test -z "$ac_c_werror_flag" || 20007 test ! -s conftest.err 20008 } && test -s conftest.$ac_objext; then 20009 ac_hi=-1 ac_mid=-1 20010 while :; do 20011 cat >conftest.$ac_ext <<_ACEOF 20012/* confdefs.h. */ 20013_ACEOF 20014cat confdefs.h >>conftest.$ac_ext 20015cat >>conftest.$ac_ext <<_ACEOF 20016/* end confdefs.h. */ 20017$ac_includes_default 20018int 20019main () 20020{ 20021static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)]; 20022test_array [0] = 0 20023 20024 ; 20025 return 0; 20026} 20027_ACEOF 20028rm -f conftest.$ac_objext 20029if { (ac_try="$ac_compile" 20030case "(($ac_try" in 20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20032 *) ac_try_echo=$ac_try;; 20033esac 20034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20035$as_echo "$ac_try_echo") >&5 20036 (eval "$ac_compile") 2>conftest.er1 20037 ac_status=$? 20038 grep -v '^ *+' conftest.er1 >conftest.err 20039 rm -f conftest.er1 20040 cat conftest.err >&5 20041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20042 (exit $ac_status); } && { 20043 test -z "$ac_c_werror_flag" || 20044 test ! -s conftest.err 20045 } && test -s conftest.$ac_objext; then 20046 ac_lo=$ac_mid; break 20047else 20048 $as_echo "$as_me: failed program was:" >&5 20049sed 's/^/| /' conftest.$ac_ext >&5 20050 20051 ac_hi=`expr '(' $ac_mid ')' - 1` 20052 if test $ac_mid -le $ac_hi; then 20053 ac_lo= ac_hi= 20054 break 20055 fi 20056 ac_mid=`expr 2 '*' $ac_mid` 20057fi 20058 20059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20060 done 20061else 20062 $as_echo "$as_me: failed program was:" >&5 20063sed 's/^/| /' conftest.$ac_ext >&5 20064 20065 ac_lo= ac_hi= 20066fi 20067 20068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20069fi 20070 20071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20072# Binary search between lo and hi bounds. 20073while test "x$ac_lo" != "x$ac_hi"; do 20074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20075 cat >conftest.$ac_ext <<_ACEOF 20076/* confdefs.h. */ 20077_ACEOF 20078cat confdefs.h >>conftest.$ac_ext 20079cat >>conftest.$ac_ext <<_ACEOF 20080/* end confdefs.h. */ 20081$ac_includes_default 20082int 20083main () 20084{ 20085static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)]; 20086test_array [0] = 0 20087 20088 ; 20089 return 0; 20090} 20091_ACEOF 20092rm -f conftest.$ac_objext 20093if { (ac_try="$ac_compile" 20094case "(($ac_try" in 20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20096 *) ac_try_echo=$ac_try;; 20097esac 20098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20099$as_echo "$ac_try_echo") >&5 20100 (eval "$ac_compile") 2>conftest.er1 20101 ac_status=$? 20102 grep -v '^ *+' conftest.er1 >conftest.err 20103 rm -f conftest.er1 20104 cat conftest.err >&5 20105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20106 (exit $ac_status); } && { 20107 test -z "$ac_c_werror_flag" || 20108 test ! -s conftest.err 20109 } && test -s conftest.$ac_objext; then 20110 ac_hi=$ac_mid 20111else 20112 $as_echo "$as_me: failed program was:" >&5 20113sed 's/^/| /' conftest.$ac_ext >&5 20114 20115 ac_lo=`expr '(' $ac_mid ')' + 1` 20116fi 20117 20118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20119done 20120case $ac_lo in 20121?*) ac_cv_sizeof_wchar_t=$ac_lo;; 20122'') if test "$ac_cv_type_wchar_t" = yes; then 20123 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) 20124See \`config.log' for more details." >&5 20125$as_echo "$as_me: error: cannot compute sizeof (wchar_t) 20126See \`config.log' for more details." >&2;} 20127 { (exit 77); exit 77; }; } 20128 else 20129 ac_cv_sizeof_wchar_t=0 20130 fi ;; 20131esac 20132else 20133 cat >conftest.$ac_ext <<_ACEOF 20134/* confdefs.h. */ 20135_ACEOF 20136cat confdefs.h >>conftest.$ac_ext 20137cat >>conftest.$ac_ext <<_ACEOF 20138/* end confdefs.h. */ 20139$ac_includes_default 20140static long int longval () { return (long int) (sizeof (wchar_t)); } 20141static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); } 20142#include <stdio.h> 20143#include <stdlib.h> 20144int 20145main () 20146{ 20147 20148 FILE *f = fopen ("conftest.val", "w"); 20149 if (! f) 20150 return 1; 20151 if (((long int) (sizeof (wchar_t))) < 0) 20152 { 20153 long int i = longval (); 20154 if (i != ((long int) (sizeof (wchar_t)))) 20155 return 1; 20156 fprintf (f, "%ld", i); 20157 } 20158 else 20159 { 20160 unsigned long int i = ulongval (); 20161 if (i != ((long int) (sizeof (wchar_t)))) 20162 return 1; 20163 fprintf (f, "%lu", i); 20164 } 20165 /* Do not output a trailing newline, as this causes \r\n confusion 20166 on some platforms. */ 20167 return ferror (f) || fclose (f) != 0; 20168 20169 ; 20170 return 0; 20171} 20172_ACEOF 20173rm -f conftest$ac_exeext 20174if { (ac_try="$ac_link" 20175case "(($ac_try" in 20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20177 *) ac_try_echo=$ac_try;; 20178esac 20179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20180$as_echo "$ac_try_echo") >&5 20181 (eval "$ac_link") 2>&5 20182 ac_status=$? 20183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20185 { (case "(($ac_try" in 20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20187 *) ac_try_echo=$ac_try;; 20188esac 20189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20190$as_echo "$ac_try_echo") >&5 20191 (eval "$ac_try") 2>&5 20192 ac_status=$? 20193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20194 (exit $ac_status); }; }; then 20195 ac_cv_sizeof_wchar_t=`cat conftest.val` 20196else 20197 $as_echo "$as_me: program exited with status $ac_status" >&5 20198$as_echo "$as_me: failed program was:" >&5 20199sed 's/^/| /' conftest.$ac_ext >&5 20200 20201( exit $ac_status ) 20202if test "$ac_cv_type_wchar_t" = yes; then 20203 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) 20204See \`config.log' for more details." >&5 20205$as_echo "$as_me: error: cannot compute sizeof (wchar_t) 20206See \`config.log' for more details." >&2;} 20207 { (exit 77); exit 77; }; } 20208 else 20209 ac_cv_sizeof_wchar_t=0 20210 fi 20211fi 20212rm -rf conftest.dSYM 20213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20214fi 20215rm -f conftest.val 20216fi 20217{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 20218$as_echo "$ac_cv_sizeof_wchar_t" >&6; } 20219 20220 20221 20222cat >>confdefs.h <<_ACEOF 20223#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 20224_ACEOF 20225 20226 20227fi 20228 20229 20230{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 20231$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 20232if test "${ac_cv_header_time+set}" = set; then 20233 $as_echo_n "(cached) " >&6 20234else 20235 cat >conftest.$ac_ext <<_ACEOF 20236/* confdefs.h. */ 20237_ACEOF 20238cat confdefs.h >>conftest.$ac_ext 20239cat >>conftest.$ac_ext <<_ACEOF 20240/* end confdefs.h. */ 20241#include <sys/types.h> 20242#include <sys/time.h> 20243#include <time.h> 20244 20245int 20246main () 20247{ 20248if ((struct tm *) 0) 20249return 0; 20250 ; 20251 return 0; 20252} 20253_ACEOF 20254rm -f conftest.$ac_objext 20255if { (ac_try="$ac_compile" 20256case "(($ac_try" in 20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20258 *) ac_try_echo=$ac_try;; 20259esac 20260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20261$as_echo "$ac_try_echo") >&5 20262 (eval "$ac_compile") 2>conftest.er1 20263 ac_status=$? 20264 grep -v '^ *+' conftest.er1 >conftest.err 20265 rm -f conftest.er1 20266 cat conftest.err >&5 20267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20268 (exit $ac_status); } && { 20269 test -z "$ac_c_werror_flag" || 20270 test ! -s conftest.err 20271 } && test -s conftest.$ac_objext; then 20272 ac_cv_header_time=yes 20273else 20274 $as_echo "$as_me: failed program was:" >&5 20275sed 's/^/| /' conftest.$ac_ext >&5 20276 20277 ac_cv_header_time=no 20278fi 20279 20280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20281fi 20282{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 20283$as_echo "$ac_cv_header_time" >&6; } 20284if test $ac_cv_header_time = yes; then 20285 20286cat >>confdefs.h <<\_ACEOF 20287#define TIME_WITH_SYS_TIME 1 20288_ACEOF 20289 20290fi 20291 20292 20293# Checks for library functions. 20294if test $ac_cv_c_compiler_gnu = yes; then 20295 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 20296$as_echo_n "checking whether $CC needs -traditional... " >&6; } 20297if test "${ac_cv_prog_gcc_traditional+set}" = set; then 20298 $as_echo_n "(cached) " >&6 20299else 20300 ac_pattern="Autoconf.*'x'" 20301 cat >conftest.$ac_ext <<_ACEOF 20302/* confdefs.h. */ 20303_ACEOF 20304cat confdefs.h >>conftest.$ac_ext 20305cat >>conftest.$ac_ext <<_ACEOF 20306/* end confdefs.h. */ 20307#include <sgtty.h> 20308Autoconf TIOCGETP 20309_ACEOF 20310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20311 $EGREP "$ac_pattern" >/dev/null 2>&1; then 20312 ac_cv_prog_gcc_traditional=yes 20313else 20314 ac_cv_prog_gcc_traditional=no 20315fi 20316rm -f conftest* 20317 20318 20319 if test $ac_cv_prog_gcc_traditional = no; then 20320 cat >conftest.$ac_ext <<_ACEOF 20321/* confdefs.h. */ 20322_ACEOF 20323cat confdefs.h >>conftest.$ac_ext 20324cat >>conftest.$ac_ext <<_ACEOF 20325/* end confdefs.h. */ 20326#include <termio.h> 20327Autoconf TCGETA 20328_ACEOF 20329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20330 $EGREP "$ac_pattern" >/dev/null 2>&1; then 20331 ac_cv_prog_gcc_traditional=yes 20332fi 20333rm -f conftest* 20334 20335 fi 20336fi 20337{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 20338$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 20339 if test $ac_cv_prog_gcc_traditional = yes; then 20340 CC="$CC -traditional" 20341 fi 20342fi 20343 20344{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 20345$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 20346if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then 20347 $as_echo_n "(cached) " >&6 20348else 20349 cat >conftest.$ac_ext <<_ACEOF 20350/* confdefs.h. */ 20351_ACEOF 20352cat confdefs.h >>conftest.$ac_ext 20353cat >>conftest.$ac_ext <<_ACEOF 20354/* end confdefs.h. */ 20355#include <sys/types.h> 20356int 20357main () 20358{ 20359return makedev(0, 0); 20360 ; 20361 return 0; 20362} 20363_ACEOF 20364rm -f conftest.$ac_objext conftest$ac_exeext 20365if { (ac_try="$ac_link" 20366case "(($ac_try" in 20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20368 *) ac_try_echo=$ac_try;; 20369esac 20370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20371$as_echo "$ac_try_echo") >&5 20372 (eval "$ac_link") 2>conftest.er1 20373 ac_status=$? 20374 grep -v '^ *+' conftest.er1 >conftest.err 20375 rm -f conftest.er1 20376 cat conftest.err >&5 20377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20378 (exit $ac_status); } && { 20379 test -z "$ac_c_werror_flag" || 20380 test ! -s conftest.err 20381 } && test -s conftest$ac_exeext && { 20382 test "$cross_compiling" = yes || 20383 $as_test_x conftest$ac_exeext 20384 }; then 20385 ac_cv_header_sys_types_h_makedev=yes 20386else 20387 $as_echo "$as_me: failed program was:" >&5 20388sed 's/^/| /' conftest.$ac_ext >&5 20389 20390 ac_cv_header_sys_types_h_makedev=no 20391fi 20392 20393rm -rf conftest.dSYM 20394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20395 conftest$ac_exeext conftest.$ac_ext 20396 20397fi 20398{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 20399$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 20400 20401if test $ac_cv_header_sys_types_h_makedev = no; then 20402if test "${ac_cv_header_sys_mkdev_h+set}" = set; then 20403 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 20404$as_echo_n "checking for sys/mkdev.h... " >&6; } 20405if test "${ac_cv_header_sys_mkdev_h+set}" = set; then 20406 $as_echo_n "(cached) " >&6 20407fi 20408{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 20409$as_echo "$ac_cv_header_sys_mkdev_h" >&6; } 20410else 20411 # Is the header compilable? 20412{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 20413$as_echo_n "checking sys/mkdev.h usability... " >&6; } 20414cat >conftest.$ac_ext <<_ACEOF 20415/* confdefs.h. */ 20416_ACEOF 20417cat confdefs.h >>conftest.$ac_ext 20418cat >>conftest.$ac_ext <<_ACEOF 20419/* end confdefs.h. */ 20420$ac_includes_default 20421#include <sys/mkdev.h> 20422_ACEOF 20423rm -f conftest.$ac_objext 20424if { (ac_try="$ac_compile" 20425case "(($ac_try" in 20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20427 *) ac_try_echo=$ac_try;; 20428esac 20429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20430$as_echo "$ac_try_echo") >&5 20431 (eval "$ac_compile") 2>conftest.er1 20432 ac_status=$? 20433 grep -v '^ *+' conftest.er1 >conftest.err 20434 rm -f conftest.er1 20435 cat conftest.err >&5 20436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20437 (exit $ac_status); } && { 20438 test -z "$ac_c_werror_flag" || 20439 test ! -s conftest.err 20440 } && test -s conftest.$ac_objext; then 20441 ac_header_compiler=yes 20442else 20443 $as_echo "$as_me: failed program was:" >&5 20444sed 's/^/| /' conftest.$ac_ext >&5 20445 20446 ac_header_compiler=no 20447fi 20448 20449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20450{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20451$as_echo "$ac_header_compiler" >&6; } 20452 20453# Is the header present? 20454{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 20455$as_echo_n "checking sys/mkdev.h presence... " >&6; } 20456cat >conftest.$ac_ext <<_ACEOF 20457/* confdefs.h. */ 20458_ACEOF 20459cat confdefs.h >>conftest.$ac_ext 20460cat >>conftest.$ac_ext <<_ACEOF 20461/* end confdefs.h. */ 20462#include <sys/mkdev.h> 20463_ACEOF 20464if { (ac_try="$ac_cpp conftest.$ac_ext" 20465case "(($ac_try" in 20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20467 *) ac_try_echo=$ac_try;; 20468esac 20469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20470$as_echo "$ac_try_echo") >&5 20471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20472 ac_status=$? 20473 grep -v '^ *+' conftest.er1 >conftest.err 20474 rm -f conftest.er1 20475 cat conftest.err >&5 20476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20477 (exit $ac_status); } >/dev/null && { 20478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20479 test ! -s conftest.err 20480 }; then 20481 ac_header_preproc=yes 20482else 20483 $as_echo "$as_me: failed program was:" >&5 20484sed 's/^/| /' conftest.$ac_ext >&5 20485 20486 ac_header_preproc=no 20487fi 20488 20489rm -f conftest.err conftest.$ac_ext 20490{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20491$as_echo "$ac_header_preproc" >&6; } 20492 20493# So? What about this header? 20494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20495 yes:no: ) 20496 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 20497$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20498 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 20499$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} 20500 ac_header_preproc=yes 20501 ;; 20502 no:yes:* ) 20503 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 20504$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} 20505 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 20506$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} 20507 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 20508$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} 20509 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 20510$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} 20511 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 20512$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} 20513 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 20514$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} 20515 ( cat <<\_ASBOX 20516## ----------------------------------- ## 20517## Report this to kientzle@freebsd.org ## 20518## ----------------------------------- ## 20519_ASBOX 20520 ) | sed "s/^/$as_me: WARNING: /" >&2 20521 ;; 20522esac 20523{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 20524$as_echo_n "checking for sys/mkdev.h... " >&6; } 20525if test "${ac_cv_header_sys_mkdev_h+set}" = set; then 20526 $as_echo_n "(cached) " >&6 20527else 20528 ac_cv_header_sys_mkdev_h=$ac_header_preproc 20529fi 20530{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 20531$as_echo "$ac_cv_header_sys_mkdev_h" >&6; } 20532 20533fi 20534if test $ac_cv_header_sys_mkdev_h = yes; then 20535 20536cat >>confdefs.h <<\_ACEOF 20537#define MAJOR_IN_MKDEV 1 20538_ACEOF 20539 20540fi 20541 20542 20543 20544 if test $ac_cv_header_sys_mkdev_h = no; then 20545 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 20546 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 20547$as_echo_n "checking for sys/sysmacros.h... " >&6; } 20548if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 20549 $as_echo_n "(cached) " >&6 20550fi 20551{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 20552$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } 20553else 20554 # Is the header compilable? 20555{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 20556$as_echo_n "checking sys/sysmacros.h usability... " >&6; } 20557cat >conftest.$ac_ext <<_ACEOF 20558/* confdefs.h. */ 20559_ACEOF 20560cat confdefs.h >>conftest.$ac_ext 20561cat >>conftest.$ac_ext <<_ACEOF 20562/* end confdefs.h. */ 20563$ac_includes_default 20564#include <sys/sysmacros.h> 20565_ACEOF 20566rm -f conftest.$ac_objext 20567if { (ac_try="$ac_compile" 20568case "(($ac_try" in 20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20570 *) ac_try_echo=$ac_try;; 20571esac 20572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20573$as_echo "$ac_try_echo") >&5 20574 (eval "$ac_compile") 2>conftest.er1 20575 ac_status=$? 20576 grep -v '^ *+' conftest.er1 >conftest.err 20577 rm -f conftest.er1 20578 cat conftest.err >&5 20579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20580 (exit $ac_status); } && { 20581 test -z "$ac_c_werror_flag" || 20582 test ! -s conftest.err 20583 } && test -s conftest.$ac_objext; then 20584 ac_header_compiler=yes 20585else 20586 $as_echo "$as_me: failed program was:" >&5 20587sed 's/^/| /' conftest.$ac_ext >&5 20588 20589 ac_header_compiler=no 20590fi 20591 20592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20593{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20594$as_echo "$ac_header_compiler" >&6; } 20595 20596# Is the header present? 20597{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 20598$as_echo_n "checking sys/sysmacros.h presence... " >&6; } 20599cat >conftest.$ac_ext <<_ACEOF 20600/* confdefs.h. */ 20601_ACEOF 20602cat confdefs.h >>conftest.$ac_ext 20603cat >>conftest.$ac_ext <<_ACEOF 20604/* end confdefs.h. */ 20605#include <sys/sysmacros.h> 20606_ACEOF 20607if { (ac_try="$ac_cpp conftest.$ac_ext" 20608case "(($ac_try" in 20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20610 *) ac_try_echo=$ac_try;; 20611esac 20612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20613$as_echo "$ac_try_echo") >&5 20614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20615 ac_status=$? 20616 grep -v '^ *+' conftest.er1 >conftest.err 20617 rm -f conftest.er1 20618 cat conftest.err >&5 20619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20620 (exit $ac_status); } >/dev/null && { 20621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20622 test ! -s conftest.err 20623 }; then 20624 ac_header_preproc=yes 20625else 20626 $as_echo "$as_me: failed program was:" >&5 20627sed 's/^/| /' conftest.$ac_ext >&5 20628 20629 ac_header_preproc=no 20630fi 20631 20632rm -f conftest.err conftest.$ac_ext 20633{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20634$as_echo "$ac_header_preproc" >&6; } 20635 20636# So? What about this header? 20637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20638 yes:no: ) 20639 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 20640$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20641 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 20642$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} 20643 ac_header_preproc=yes 20644 ;; 20645 no:yes:* ) 20646 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 20647$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} 20648 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 20649$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} 20650 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 20651$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} 20652 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 20653$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} 20654 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 20655$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} 20656 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 20657$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} 20658 ( cat <<\_ASBOX 20659## ----------------------------------- ## 20660## Report this to kientzle@freebsd.org ## 20661## ----------------------------------- ## 20662_ASBOX 20663 ) | sed "s/^/$as_me: WARNING: /" >&2 20664 ;; 20665esac 20666{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 20667$as_echo_n "checking for sys/sysmacros.h... " >&6; } 20668if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 20669 $as_echo_n "(cached) " >&6 20670else 20671 ac_cv_header_sys_sysmacros_h=$ac_header_preproc 20672fi 20673{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 20674$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } 20675 20676fi 20677if test $ac_cv_header_sys_sysmacros_h = yes; then 20678 20679cat >>confdefs.h <<\_ACEOF 20680#define MAJOR_IN_SYSMACROS 1 20681_ACEOF 20682 20683fi 20684 20685 20686 fi 20687fi 20688 20689{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 20690$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 20691if test "${ac_cv_sys_largefile_source+set}" = set; then 20692 $as_echo_n "(cached) " >&6 20693else 20694 while :; do 20695 cat >conftest.$ac_ext <<_ACEOF 20696/* confdefs.h. */ 20697_ACEOF 20698cat confdefs.h >>conftest.$ac_ext 20699cat >>conftest.$ac_ext <<_ACEOF 20700/* end confdefs.h. */ 20701#include <sys/types.h> /* for off_t */ 20702 #include <stdio.h> 20703int 20704main () 20705{ 20706int (*fp) (FILE *, off_t, int) = fseeko; 20707 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 20708 ; 20709 return 0; 20710} 20711_ACEOF 20712rm -f conftest.$ac_objext conftest$ac_exeext 20713if { (ac_try="$ac_link" 20714case "(($ac_try" in 20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20716 *) ac_try_echo=$ac_try;; 20717esac 20718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20719$as_echo "$ac_try_echo") >&5 20720 (eval "$ac_link") 2>conftest.er1 20721 ac_status=$? 20722 grep -v '^ *+' conftest.er1 >conftest.err 20723 rm -f conftest.er1 20724 cat conftest.err >&5 20725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20726 (exit $ac_status); } && { 20727 test -z "$ac_c_werror_flag" || 20728 test ! -s conftest.err 20729 } && test -s conftest$ac_exeext && { 20730 test "$cross_compiling" = yes || 20731 $as_test_x conftest$ac_exeext 20732 }; then 20733 ac_cv_sys_largefile_source=no; break 20734else 20735 $as_echo "$as_me: failed program was:" >&5 20736sed 's/^/| /' conftest.$ac_ext >&5 20737 20738 20739fi 20740 20741rm -rf conftest.dSYM 20742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20743 conftest$ac_exeext conftest.$ac_ext 20744 cat >conftest.$ac_ext <<_ACEOF 20745/* confdefs.h. */ 20746_ACEOF 20747cat confdefs.h >>conftest.$ac_ext 20748cat >>conftest.$ac_ext <<_ACEOF 20749/* end confdefs.h. */ 20750#define _LARGEFILE_SOURCE 1 20751#include <sys/types.h> /* for off_t */ 20752 #include <stdio.h> 20753int 20754main () 20755{ 20756int (*fp) (FILE *, off_t, int) = fseeko; 20757 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 20758 ; 20759 return 0; 20760} 20761_ACEOF 20762rm -f conftest.$ac_objext conftest$ac_exeext 20763if { (ac_try="$ac_link" 20764case "(($ac_try" in 20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20766 *) ac_try_echo=$ac_try;; 20767esac 20768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20769$as_echo "$ac_try_echo") >&5 20770 (eval "$ac_link") 2>conftest.er1 20771 ac_status=$? 20772 grep -v '^ *+' conftest.er1 >conftest.err 20773 rm -f conftest.er1 20774 cat conftest.err >&5 20775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20776 (exit $ac_status); } && { 20777 test -z "$ac_c_werror_flag" || 20778 test ! -s conftest.err 20779 } && test -s conftest$ac_exeext && { 20780 test "$cross_compiling" = yes || 20781 $as_test_x conftest$ac_exeext 20782 }; then 20783 ac_cv_sys_largefile_source=1; break 20784else 20785 $as_echo "$as_me: failed program was:" >&5 20786sed 's/^/| /' conftest.$ac_ext >&5 20787 20788 20789fi 20790 20791rm -rf conftest.dSYM 20792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20793 conftest$ac_exeext conftest.$ac_ext 20794 ac_cv_sys_largefile_source=unknown 20795 break 20796done 20797fi 20798{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 20799$as_echo "$ac_cv_sys_largefile_source" >&6; } 20800case $ac_cv_sys_largefile_source in #( 20801 no | unknown) ;; 20802 *) 20803cat >>confdefs.h <<_ACEOF 20804#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 20805_ACEOF 20806;; 20807esac 20808rm -rf conftest* 20809 20810# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 20811# in glibc 2.1.3, but that breaks too many other things. 20812# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 20813if test $ac_cv_sys_largefile_source != unknown; then 20814 20815cat >>confdefs.h <<\_ACEOF 20816#define HAVE_FSEEKO 1 20817_ACEOF 20818 20819fi 20820 20821{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 20822$as_echo_n "checking for working memcmp... " >&6; } 20823if test "${ac_cv_func_memcmp_working+set}" = set; then 20824 $as_echo_n "(cached) " >&6 20825else 20826 if test "$cross_compiling" = yes; then 20827 ac_cv_func_memcmp_working=no 20828else 20829 cat >conftest.$ac_ext <<_ACEOF 20830/* confdefs.h. */ 20831_ACEOF 20832cat confdefs.h >>conftest.$ac_ext 20833cat >>conftest.$ac_ext <<_ACEOF 20834/* end confdefs.h. */ 20835$ac_includes_default 20836int 20837main () 20838{ 20839 20840 /* Some versions of memcmp are not 8-bit clean. */ 20841 char c0 = '\100', c1 = '\200', c2 = '\201'; 20842 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 20843 return 1; 20844 20845 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 20846 or more and with at least one buffer not starting on a 4-byte boundary. 20847 William Lewis provided this test program. */ 20848 { 20849 char foo[21]; 20850 char bar[21]; 20851 int i; 20852 for (i = 0; i < 4; i++) 20853 { 20854 char *a = foo + i; 20855 char *b = bar + i; 20856 strcpy (a, "--------01111111"); 20857 strcpy (b, "--------10000000"); 20858 if (memcmp (a, b, 16) >= 0) 20859 return 1; 20860 } 20861 return 0; 20862 } 20863 20864 ; 20865 return 0; 20866} 20867_ACEOF 20868rm -f conftest$ac_exeext 20869if { (ac_try="$ac_link" 20870case "(($ac_try" in 20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20872 *) ac_try_echo=$ac_try;; 20873esac 20874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20875$as_echo "$ac_try_echo") >&5 20876 (eval "$ac_link") 2>&5 20877 ac_status=$? 20878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20880 { (case "(($ac_try" in 20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20882 *) ac_try_echo=$ac_try;; 20883esac 20884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20885$as_echo "$ac_try_echo") >&5 20886 (eval "$ac_try") 2>&5 20887 ac_status=$? 20888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20889 (exit $ac_status); }; }; then 20890 ac_cv_func_memcmp_working=yes 20891else 20892 $as_echo "$as_me: program exited with status $ac_status" >&5 20893$as_echo "$as_me: failed program was:" >&5 20894sed 's/^/| /' conftest.$ac_ext >&5 20895 20896( exit $ac_status ) 20897ac_cv_func_memcmp_working=no 20898fi 20899rm -rf conftest.dSYM 20900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20901fi 20902 20903 20904fi 20905{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 20906$as_echo "$ac_cv_func_memcmp_working" >&6; } 20907test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 20908 *" memcmp.$ac_objext "* ) ;; 20909 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 20910 ;; 20911esac 20912 20913 20914{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 20915$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } 20916if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then 20917 $as_echo_n "(cached) " >&6 20918else 20919 rm -f conftest.sym conftest.file 20920echo >conftest.file 20921if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 20922 if test "$cross_compiling" = yes; then 20923 ac_cv_func_lstat_dereferences_slashed_symlink=no 20924else 20925 cat >conftest.$ac_ext <<_ACEOF 20926/* confdefs.h. */ 20927_ACEOF 20928cat confdefs.h >>conftest.$ac_ext 20929cat >>conftest.$ac_ext <<_ACEOF 20930/* end confdefs.h. */ 20931$ac_includes_default 20932int 20933main () 20934{ 20935struct stat sbuf; 20936 /* Linux will dereference the symlink and fail. 20937 That is better in the sense that it means we will not 20938 have to compile and use the lstat wrapper. */ 20939 return lstat ("conftest.sym/", &sbuf) == 0; 20940 ; 20941 return 0; 20942} 20943_ACEOF 20944rm -f conftest$ac_exeext 20945if { (ac_try="$ac_link" 20946case "(($ac_try" in 20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20948 *) ac_try_echo=$ac_try;; 20949esac 20950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20951$as_echo "$ac_try_echo") >&5 20952 (eval "$ac_link") 2>&5 20953 ac_status=$? 20954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20956 { (case "(($ac_try" in 20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20958 *) ac_try_echo=$ac_try;; 20959esac 20960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20961$as_echo "$ac_try_echo") >&5 20962 (eval "$ac_try") 2>&5 20963 ac_status=$? 20964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20965 (exit $ac_status); }; }; then 20966 ac_cv_func_lstat_dereferences_slashed_symlink=yes 20967else 20968 $as_echo "$as_me: program exited with status $ac_status" >&5 20969$as_echo "$as_me: failed program was:" >&5 20970sed 's/^/| /' conftest.$ac_ext >&5 20971 20972( exit $ac_status ) 20973ac_cv_func_lstat_dereferences_slashed_symlink=no 20974fi 20975rm -rf conftest.dSYM 20976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20977fi 20978 20979 20980else 20981 # If the `ln -s' command failed, then we probably don't even 20982 # have an lstat function. 20983 ac_cv_func_lstat_dereferences_slashed_symlink=no 20984fi 20985rm -f conftest.sym conftest.file 20986 20987fi 20988{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 20989$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 20990 20991test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 20992 20993cat >>confdefs.h <<_ACEOF 20994#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 20995_ACEOF 20996 20997 20998if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then 20999 case " $LIBOBJS " in 21000 *" lstat.$ac_objext "* ) ;; 21001 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 21002 ;; 21003esac 21004 21005fi 21006 21007{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 21008$as_echo_n "checking whether lstat accepts an empty string... " >&6; } 21009if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then 21010 $as_echo_n "(cached) " >&6 21011else 21012 if test "$cross_compiling" = yes; then 21013 ac_cv_func_lstat_empty_string_bug=yes 21014else 21015 cat >conftest.$ac_ext <<_ACEOF 21016/* confdefs.h. */ 21017_ACEOF 21018cat confdefs.h >>conftest.$ac_ext 21019cat >>conftest.$ac_ext <<_ACEOF 21020/* end confdefs.h. */ 21021$ac_includes_default 21022int 21023main () 21024{ 21025struct stat sbuf; 21026 return lstat ("", &sbuf) == 0; 21027 ; 21028 return 0; 21029} 21030_ACEOF 21031rm -f conftest$ac_exeext 21032if { (ac_try="$ac_link" 21033case "(($ac_try" in 21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21035 *) ac_try_echo=$ac_try;; 21036esac 21037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21038$as_echo "$ac_try_echo") >&5 21039 (eval "$ac_link") 2>&5 21040 ac_status=$? 21041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21043 { (case "(($ac_try" in 21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21045 *) ac_try_echo=$ac_try;; 21046esac 21047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21048$as_echo "$ac_try_echo") >&5 21049 (eval "$ac_try") 2>&5 21050 ac_status=$? 21051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21052 (exit $ac_status); }; }; then 21053 ac_cv_func_lstat_empty_string_bug=no 21054else 21055 $as_echo "$as_me: program exited with status $ac_status" >&5 21056$as_echo "$as_me: failed program was:" >&5 21057sed 's/^/| /' conftest.$ac_ext >&5 21058 21059( exit $ac_status ) 21060ac_cv_func_lstat_empty_string_bug=yes 21061fi 21062rm -rf conftest.dSYM 21063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21064fi 21065 21066 21067fi 21068{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 21069$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } 21070if test $ac_cv_func_lstat_empty_string_bug = yes; then 21071 case " $LIBOBJS " in 21072 *" lstat.$ac_objext "* ) ;; 21073 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 21074 ;; 21075esac 21076 21077 21078cat >>confdefs.h <<_ACEOF 21079#define HAVE_LSTAT_EMPTY_STRING_BUG 1 21080_ACEOF 21081 21082fi 21083 21084{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 21085$as_echo_n "checking whether stat accepts an empty string... " >&6; } 21086if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then 21087 $as_echo_n "(cached) " >&6 21088else 21089 if test "$cross_compiling" = yes; then 21090 ac_cv_func_stat_empty_string_bug=yes 21091else 21092 cat >conftest.$ac_ext <<_ACEOF 21093/* confdefs.h. */ 21094_ACEOF 21095cat confdefs.h >>conftest.$ac_ext 21096cat >>conftest.$ac_ext <<_ACEOF 21097/* end confdefs.h. */ 21098$ac_includes_default 21099int 21100main () 21101{ 21102struct stat sbuf; 21103 return stat ("", &sbuf) == 0; 21104 ; 21105 return 0; 21106} 21107_ACEOF 21108rm -f conftest$ac_exeext 21109if { (ac_try="$ac_link" 21110case "(($ac_try" in 21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21112 *) ac_try_echo=$ac_try;; 21113esac 21114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21115$as_echo "$ac_try_echo") >&5 21116 (eval "$ac_link") 2>&5 21117 ac_status=$? 21118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21120 { (case "(($ac_try" in 21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21122 *) ac_try_echo=$ac_try;; 21123esac 21124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21125$as_echo "$ac_try_echo") >&5 21126 (eval "$ac_try") 2>&5 21127 ac_status=$? 21128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21129 (exit $ac_status); }; }; then 21130 ac_cv_func_stat_empty_string_bug=no 21131else 21132 $as_echo "$as_me: program exited with status $ac_status" >&5 21133$as_echo "$as_me: failed program was:" >&5 21134sed 's/^/| /' conftest.$ac_ext >&5 21135 21136( exit $ac_status ) 21137ac_cv_func_stat_empty_string_bug=yes 21138fi 21139rm -rf conftest.dSYM 21140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21141fi 21142 21143 21144fi 21145{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 21146$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 21147if test $ac_cv_func_stat_empty_string_bug = yes; then 21148 case " $LIBOBJS " in 21149 *" stat.$ac_objext "* ) ;; 21150 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 21151 ;; 21152esac 21153 21154 21155cat >>confdefs.h <<_ACEOF 21156#define HAVE_STAT_EMPTY_STRING_BUG 1 21157_ACEOF 21158 21159fi 21160 21161{ $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 21162$as_echo_n "checking whether strerror_r is declared... " >&6; } 21163if test "${ac_cv_have_decl_strerror_r+set}" = set; then 21164 $as_echo_n "(cached) " >&6 21165else 21166 cat >conftest.$ac_ext <<_ACEOF 21167/* confdefs.h. */ 21168_ACEOF 21169cat confdefs.h >>conftest.$ac_ext 21170cat >>conftest.$ac_ext <<_ACEOF 21171/* end confdefs.h. */ 21172$ac_includes_default 21173int 21174main () 21175{ 21176#ifndef strerror_r 21177 (void) strerror_r; 21178#endif 21179 21180 ; 21181 return 0; 21182} 21183_ACEOF 21184rm -f conftest.$ac_objext 21185if { (ac_try="$ac_compile" 21186case "(($ac_try" in 21187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21188 *) ac_try_echo=$ac_try;; 21189esac 21190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21191$as_echo "$ac_try_echo") >&5 21192 (eval "$ac_compile") 2>conftest.er1 21193 ac_status=$? 21194 grep -v '^ *+' conftest.er1 >conftest.err 21195 rm -f conftest.er1 21196 cat conftest.err >&5 21197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21198 (exit $ac_status); } && { 21199 test -z "$ac_c_werror_flag" || 21200 test ! -s conftest.err 21201 } && test -s conftest.$ac_objext; then 21202 ac_cv_have_decl_strerror_r=yes 21203else 21204 $as_echo "$as_me: failed program was:" >&5 21205sed 's/^/| /' conftest.$ac_ext >&5 21206 21207 ac_cv_have_decl_strerror_r=no 21208fi 21209 21210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21211fi 21212{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 21213$as_echo "$ac_cv_have_decl_strerror_r" >&6; } 21214if test $ac_cv_have_decl_strerror_r = yes; then 21215 21216cat >>confdefs.h <<_ACEOF 21217#define HAVE_DECL_STRERROR_R 1 21218_ACEOF 21219 21220 21221else 21222 cat >>confdefs.h <<_ACEOF 21223#define HAVE_DECL_STRERROR_R 0 21224_ACEOF 21225 21226 21227fi 21228 21229 21230 21231for ac_func in strerror_r 21232do 21233as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21234{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 21235$as_echo_n "checking for $ac_func... " >&6; } 21236if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21237 $as_echo_n "(cached) " >&6 21238else 21239 cat >conftest.$ac_ext <<_ACEOF 21240/* confdefs.h. */ 21241_ACEOF 21242cat confdefs.h >>conftest.$ac_ext 21243cat >>conftest.$ac_ext <<_ACEOF 21244/* end confdefs.h. */ 21245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21246 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21247#define $ac_func innocuous_$ac_func 21248 21249/* System header to define __stub macros and hopefully few prototypes, 21250 which can conflict with char $ac_func (); below. 21251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21252 <limits.h> exists even on freestanding compilers. */ 21253 21254#ifdef __STDC__ 21255# include <limits.h> 21256#else 21257# include <assert.h> 21258#endif 21259 21260#undef $ac_func 21261 21262/* Override any GCC internal prototype to avoid an error. 21263 Use char because int might match the return type of a GCC 21264 builtin and then its argument prototype would still apply. */ 21265#ifdef __cplusplus 21266extern "C" 21267#endif 21268char $ac_func (); 21269/* The GNU C library defines this for functions which it implements 21270 to always fail with ENOSYS. Some functions are actually named 21271 something starting with __ and the normal name is an alias. */ 21272#if defined __stub_$ac_func || defined __stub___$ac_func 21273choke me 21274#endif 21275 21276int 21277main () 21278{ 21279return $ac_func (); 21280 ; 21281 return 0; 21282} 21283_ACEOF 21284rm -f conftest.$ac_objext conftest$ac_exeext 21285if { (ac_try="$ac_link" 21286case "(($ac_try" in 21287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21288 *) ac_try_echo=$ac_try;; 21289esac 21290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21291$as_echo "$ac_try_echo") >&5 21292 (eval "$ac_link") 2>conftest.er1 21293 ac_status=$? 21294 grep -v '^ *+' conftest.er1 >conftest.err 21295 rm -f conftest.er1 21296 cat conftest.err >&5 21297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21298 (exit $ac_status); } && { 21299 test -z "$ac_c_werror_flag" || 21300 test ! -s conftest.err 21301 } && test -s conftest$ac_exeext && { 21302 test "$cross_compiling" = yes || 21303 $as_test_x conftest$ac_exeext 21304 }; then 21305 eval "$as_ac_var=yes" 21306else 21307 $as_echo "$as_me: failed program was:" >&5 21308sed 's/^/| /' conftest.$ac_ext >&5 21309 21310 eval "$as_ac_var=no" 21311fi 21312 21313rm -rf conftest.dSYM 21314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21315 conftest$ac_exeext conftest.$ac_ext 21316fi 21317ac_res=`eval 'as_val=${'$as_ac_var'} 21318 $as_echo "$as_val"'` 21319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21320$as_echo "$ac_res" >&6; } 21321if test `eval 'as_val=${'$as_ac_var'} 21322 $as_echo "$as_val"'` = yes; then 21323 cat >>confdefs.h <<_ACEOF 21324#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21325_ACEOF 21326 21327fi 21328done 21329 21330{ $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 21331$as_echo_n "checking whether strerror_r returns char *... " >&6; } 21332if test "${ac_cv_func_strerror_r_char_p+set}" = set; then 21333 $as_echo_n "(cached) " >&6 21334else 21335 21336 ac_cv_func_strerror_r_char_p=no 21337 if test $ac_cv_have_decl_strerror_r = yes; then 21338 cat >conftest.$ac_ext <<_ACEOF 21339/* confdefs.h. */ 21340_ACEOF 21341cat confdefs.h >>conftest.$ac_ext 21342cat >>conftest.$ac_ext <<_ACEOF 21343/* end confdefs.h. */ 21344$ac_includes_default 21345int 21346main () 21347{ 21348 21349 char buf[100]; 21350 char x = *strerror_r (0, buf, sizeof buf); 21351 char *p = strerror_r (0, buf, sizeof buf); 21352 return !p || x; 21353 21354 ; 21355 return 0; 21356} 21357_ACEOF 21358rm -f conftest.$ac_objext 21359if { (ac_try="$ac_compile" 21360case "(($ac_try" in 21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21362 *) ac_try_echo=$ac_try;; 21363esac 21364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21365$as_echo "$ac_try_echo") >&5 21366 (eval "$ac_compile") 2>conftest.er1 21367 ac_status=$? 21368 grep -v '^ *+' conftest.er1 >conftest.err 21369 rm -f conftest.er1 21370 cat conftest.err >&5 21371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21372 (exit $ac_status); } && { 21373 test -z "$ac_c_werror_flag" || 21374 test ! -s conftest.err 21375 } && test -s conftest.$ac_objext; then 21376 ac_cv_func_strerror_r_char_p=yes 21377else 21378 $as_echo "$as_me: failed program was:" >&5 21379sed 's/^/| /' conftest.$ac_ext >&5 21380 21381 21382fi 21383 21384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21385 else 21386 # strerror_r is not declared. Choose between 21387 # systems that have relatively inaccessible declarations for the 21388 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 21389 # former has a strerror_r that returns char*, while the latter 21390 # has a strerror_r that returns `int'. 21391 # This test should segfault on the DEC system. 21392 if test "$cross_compiling" = yes; then 21393 : 21394else 21395 cat >conftest.$ac_ext <<_ACEOF 21396/* confdefs.h. */ 21397_ACEOF 21398cat confdefs.h >>conftest.$ac_ext 21399cat >>conftest.$ac_ext <<_ACEOF 21400/* end confdefs.h. */ 21401$ac_includes_default 21402 extern char *strerror_r (); 21403int 21404main () 21405{ 21406char buf[100]; 21407 char x = *strerror_r (0, buf, sizeof buf); 21408 return ! isalpha (x); 21409 ; 21410 return 0; 21411} 21412_ACEOF 21413rm -f conftest$ac_exeext 21414if { (ac_try="$ac_link" 21415case "(($ac_try" in 21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21417 *) ac_try_echo=$ac_try;; 21418esac 21419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21420$as_echo "$ac_try_echo") >&5 21421 (eval "$ac_link") 2>&5 21422 ac_status=$? 21423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21425 { (case "(($ac_try" in 21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21427 *) ac_try_echo=$ac_try;; 21428esac 21429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21430$as_echo "$ac_try_echo") >&5 21431 (eval "$ac_try") 2>&5 21432 ac_status=$? 21433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21434 (exit $ac_status); }; }; then 21435 ac_cv_func_strerror_r_char_p=yes 21436else 21437 $as_echo "$as_me: program exited with status $ac_status" >&5 21438$as_echo "$as_me: failed program was:" >&5 21439sed 's/^/| /' conftest.$ac_ext >&5 21440 21441fi 21442rm -rf conftest.dSYM 21443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21444fi 21445 21446 21447 fi 21448 21449fi 21450{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 21451$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 21452if test $ac_cv_func_strerror_r_char_p = yes; then 21453 21454cat >>confdefs.h <<\_ACEOF 21455#define STRERROR_R_CHAR_P 1 21456_ACEOF 21457 21458fi 21459 21460 21461for ac_func in strftime 21462do 21463as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21464{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 21465$as_echo_n "checking for $ac_func... " >&6; } 21466if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21467 $as_echo_n "(cached) " >&6 21468else 21469 cat >conftest.$ac_ext <<_ACEOF 21470/* confdefs.h. */ 21471_ACEOF 21472cat confdefs.h >>conftest.$ac_ext 21473cat >>conftest.$ac_ext <<_ACEOF 21474/* end confdefs.h. */ 21475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21476 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21477#define $ac_func innocuous_$ac_func 21478 21479/* System header to define __stub macros and hopefully few prototypes, 21480 which can conflict with char $ac_func (); below. 21481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21482 <limits.h> exists even on freestanding compilers. */ 21483 21484#ifdef __STDC__ 21485# include <limits.h> 21486#else 21487# include <assert.h> 21488#endif 21489 21490#undef $ac_func 21491 21492/* Override any GCC internal prototype to avoid an error. 21493 Use char because int might match the return type of a GCC 21494 builtin and then its argument prototype would still apply. */ 21495#ifdef __cplusplus 21496extern "C" 21497#endif 21498char $ac_func (); 21499/* The GNU C library defines this for functions which it implements 21500 to always fail with ENOSYS. Some functions are actually named 21501 something starting with __ and the normal name is an alias. */ 21502#if defined __stub_$ac_func || defined __stub___$ac_func 21503choke me 21504#endif 21505 21506int 21507main () 21508{ 21509return $ac_func (); 21510 ; 21511 return 0; 21512} 21513_ACEOF 21514rm -f conftest.$ac_objext conftest$ac_exeext 21515if { (ac_try="$ac_link" 21516case "(($ac_try" in 21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21518 *) ac_try_echo=$ac_try;; 21519esac 21520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21521$as_echo "$ac_try_echo") >&5 21522 (eval "$ac_link") 2>conftest.er1 21523 ac_status=$? 21524 grep -v '^ *+' conftest.er1 >conftest.err 21525 rm -f conftest.er1 21526 cat conftest.err >&5 21527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21528 (exit $ac_status); } && { 21529 test -z "$ac_c_werror_flag" || 21530 test ! -s conftest.err 21531 } && test -s conftest$ac_exeext && { 21532 test "$cross_compiling" = yes || 21533 $as_test_x conftest$ac_exeext 21534 }; then 21535 eval "$as_ac_var=yes" 21536else 21537 $as_echo "$as_me: failed program was:" >&5 21538sed 's/^/| /' conftest.$ac_ext >&5 21539 21540 eval "$as_ac_var=no" 21541fi 21542 21543rm -rf conftest.dSYM 21544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21545 conftest$ac_exeext conftest.$ac_ext 21546fi 21547ac_res=`eval 'as_val=${'$as_ac_var'} 21548 $as_echo "$as_val"'` 21549 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21550$as_echo "$ac_res" >&6; } 21551if test `eval 'as_val=${'$as_ac_var'} 21552 $as_echo "$as_val"'` = yes; then 21553 cat >>confdefs.h <<_ACEOF 21554#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21555_ACEOF 21556 21557else 21558 # strftime is in -lintl on SCO UNIX. 21559{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 21560$as_echo_n "checking for strftime in -lintl... " >&6; } 21561if test "${ac_cv_lib_intl_strftime+set}" = set; then 21562 $as_echo_n "(cached) " >&6 21563else 21564 ac_check_lib_save_LIBS=$LIBS 21565LIBS="-lintl $LIBS" 21566cat >conftest.$ac_ext <<_ACEOF 21567/* confdefs.h. */ 21568_ACEOF 21569cat confdefs.h >>conftest.$ac_ext 21570cat >>conftest.$ac_ext <<_ACEOF 21571/* end confdefs.h. */ 21572 21573/* Override any GCC internal prototype to avoid an error. 21574 Use char because int might match the return type of a GCC 21575 builtin and then its argument prototype would still apply. */ 21576#ifdef __cplusplus 21577extern "C" 21578#endif 21579char strftime (); 21580int 21581main () 21582{ 21583return strftime (); 21584 ; 21585 return 0; 21586} 21587_ACEOF 21588rm -f conftest.$ac_objext conftest$ac_exeext 21589if { (ac_try="$ac_link" 21590case "(($ac_try" in 21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21592 *) ac_try_echo=$ac_try;; 21593esac 21594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21595$as_echo "$ac_try_echo") >&5 21596 (eval "$ac_link") 2>conftest.er1 21597 ac_status=$? 21598 grep -v '^ *+' conftest.er1 >conftest.err 21599 rm -f conftest.er1 21600 cat conftest.err >&5 21601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21602 (exit $ac_status); } && { 21603 test -z "$ac_c_werror_flag" || 21604 test ! -s conftest.err 21605 } && test -s conftest$ac_exeext && { 21606 test "$cross_compiling" = yes || 21607 $as_test_x conftest$ac_exeext 21608 }; then 21609 ac_cv_lib_intl_strftime=yes 21610else 21611 $as_echo "$as_me: failed program was:" >&5 21612sed 's/^/| /' conftest.$ac_ext >&5 21613 21614 ac_cv_lib_intl_strftime=no 21615fi 21616 21617rm -rf conftest.dSYM 21618rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21619 conftest$ac_exeext conftest.$ac_ext 21620LIBS=$ac_check_lib_save_LIBS 21621fi 21622{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 21623$as_echo "$ac_cv_lib_intl_strftime" >&6; } 21624if test $ac_cv_lib_intl_strftime = yes; then 21625 cat >>confdefs.h <<\_ACEOF 21626#define HAVE_STRFTIME 1 21627_ACEOF 21628 21629LIBS="-lintl $LIBS" 21630fi 21631 21632fi 21633done 21634 21635 21636for ac_func in vprintf 21637do 21638as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21639{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 21640$as_echo_n "checking for $ac_func... " >&6; } 21641if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21642 $as_echo_n "(cached) " >&6 21643else 21644 cat >conftest.$ac_ext <<_ACEOF 21645/* confdefs.h. */ 21646_ACEOF 21647cat confdefs.h >>conftest.$ac_ext 21648cat >>conftest.$ac_ext <<_ACEOF 21649/* end confdefs.h. */ 21650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21651 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21652#define $ac_func innocuous_$ac_func 21653 21654/* System header to define __stub macros and hopefully few prototypes, 21655 which can conflict with char $ac_func (); below. 21656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21657 <limits.h> exists even on freestanding compilers. */ 21658 21659#ifdef __STDC__ 21660# include <limits.h> 21661#else 21662# include <assert.h> 21663#endif 21664 21665#undef $ac_func 21666 21667/* Override any GCC internal prototype to avoid an error. 21668 Use char because int might match the return type of a GCC 21669 builtin and then its argument prototype would still apply. */ 21670#ifdef __cplusplus 21671extern "C" 21672#endif 21673char $ac_func (); 21674/* The GNU C library defines this for functions which it implements 21675 to always fail with ENOSYS. Some functions are actually named 21676 something starting with __ and the normal name is an alias. */ 21677#if defined __stub_$ac_func || defined __stub___$ac_func 21678choke me 21679#endif 21680 21681int 21682main () 21683{ 21684return $ac_func (); 21685 ; 21686 return 0; 21687} 21688_ACEOF 21689rm -f conftest.$ac_objext conftest$ac_exeext 21690if { (ac_try="$ac_link" 21691case "(($ac_try" in 21692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21693 *) ac_try_echo=$ac_try;; 21694esac 21695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21696$as_echo "$ac_try_echo") >&5 21697 (eval "$ac_link") 2>conftest.er1 21698 ac_status=$? 21699 grep -v '^ *+' conftest.er1 >conftest.err 21700 rm -f conftest.er1 21701 cat conftest.err >&5 21702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21703 (exit $ac_status); } && { 21704 test -z "$ac_c_werror_flag" || 21705 test ! -s conftest.err 21706 } && test -s conftest$ac_exeext && { 21707 test "$cross_compiling" = yes || 21708 $as_test_x conftest$ac_exeext 21709 }; then 21710 eval "$as_ac_var=yes" 21711else 21712 $as_echo "$as_me: failed program was:" >&5 21713sed 's/^/| /' conftest.$ac_ext >&5 21714 21715 eval "$as_ac_var=no" 21716fi 21717 21718rm -rf conftest.dSYM 21719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21720 conftest$ac_exeext conftest.$ac_ext 21721fi 21722ac_res=`eval 'as_val=${'$as_ac_var'} 21723 $as_echo "$as_val"'` 21724 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21725$as_echo "$ac_res" >&6; } 21726if test `eval 'as_val=${'$as_ac_var'} 21727 $as_echo "$as_val"'` = yes; then 21728 cat >>confdefs.h <<_ACEOF 21729#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21730_ACEOF 21731 21732{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 21733$as_echo_n "checking for _doprnt... " >&6; } 21734if test "${ac_cv_func__doprnt+set}" = set; then 21735 $as_echo_n "(cached) " >&6 21736else 21737 cat >conftest.$ac_ext <<_ACEOF 21738/* confdefs.h. */ 21739_ACEOF 21740cat confdefs.h >>conftest.$ac_ext 21741cat >>conftest.$ac_ext <<_ACEOF 21742/* end confdefs.h. */ 21743/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 21744 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21745#define _doprnt innocuous__doprnt 21746 21747/* System header to define __stub macros and hopefully few prototypes, 21748 which can conflict with char _doprnt (); below. 21749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21750 <limits.h> exists even on freestanding compilers. */ 21751 21752#ifdef __STDC__ 21753# include <limits.h> 21754#else 21755# include <assert.h> 21756#endif 21757 21758#undef _doprnt 21759 21760/* Override any GCC internal prototype to avoid an error. 21761 Use char because int might match the return type of a GCC 21762 builtin and then its argument prototype would still apply. */ 21763#ifdef __cplusplus 21764extern "C" 21765#endif 21766char _doprnt (); 21767/* The GNU C library defines this for functions which it implements 21768 to always fail with ENOSYS. Some functions are actually named 21769 something starting with __ and the normal name is an alias. */ 21770#if defined __stub__doprnt || defined __stub____doprnt 21771choke me 21772#endif 21773 21774int 21775main () 21776{ 21777return _doprnt (); 21778 ; 21779 return 0; 21780} 21781_ACEOF 21782rm -f conftest.$ac_objext conftest$ac_exeext 21783if { (ac_try="$ac_link" 21784case "(($ac_try" in 21785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21786 *) ac_try_echo=$ac_try;; 21787esac 21788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21789$as_echo "$ac_try_echo") >&5 21790 (eval "$ac_link") 2>conftest.er1 21791 ac_status=$? 21792 grep -v '^ *+' conftest.er1 >conftest.err 21793 rm -f conftest.er1 21794 cat conftest.err >&5 21795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21796 (exit $ac_status); } && { 21797 test -z "$ac_c_werror_flag" || 21798 test ! -s conftest.err 21799 } && test -s conftest$ac_exeext && { 21800 test "$cross_compiling" = yes || 21801 $as_test_x conftest$ac_exeext 21802 }; then 21803 ac_cv_func__doprnt=yes 21804else 21805 $as_echo "$as_me: failed program was:" >&5 21806sed 's/^/| /' conftest.$ac_ext >&5 21807 21808 ac_cv_func__doprnt=no 21809fi 21810 21811rm -rf conftest.dSYM 21812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21813 conftest$ac_exeext conftest.$ac_ext 21814fi 21815{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 21816$as_echo "$ac_cv_func__doprnt" >&6; } 21817if test $ac_cv_func__doprnt = yes; then 21818 21819cat >>confdefs.h <<\_ACEOF 21820#define HAVE_DOPRNT 1 21821_ACEOF 21822 21823fi 21824 21825fi 21826done 21827 21828 21829# check for: 21830# CreateHardLinkA(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES) 21831# To avoid necessity for including windows.h or special forward declaration 21832# workarounds, we use 'void *' for 'struct SECURITY_ATTRIBUTES *' 21833{ $as_echo "$as_me:$LINENO: checking for CreateHardLinkA" >&5 21834$as_echo_n "checking for CreateHardLinkA... " >&6; } 21835if test "${ac_cv_func_CreateHardLinkA+set}" = set; then 21836 $as_echo_n "(cached) " >&6 21837else 21838 cat >conftest.$ac_ext <<_ACEOF 21839/* confdefs.h. */ 21840_ACEOF 21841cat confdefs.h >>conftest.$ac_ext 21842cat >>conftest.$ac_ext <<_ACEOF 21843/* end confdefs.h. */ 21844/* System header to define __stub macros and hopefully few prototypes, 21845 which can conflict with char __stdcall CreateHardLinkA ( const char *, const char *, void * ) below. */ 21846#include <assert.h> 21847/* Override any gcc2 internal prototype to avoid an error. */ 21848#ifdef __cplusplus 21849extern "C" 21850#endif 21851/* We use char because int might match the return type of a gcc2 21852 builtin and then its argument prototype would still apply. */ 21853char __stdcall CreateHardLinkA ( const char *, const char *, void * ); 21854char (*f) ( const char *, const char *, void * ); 21855 21856int 21857main () 21858{ 21859/* The GNU C library defines this for functions which it implements 21860 to always fail with ENOSYS. Some functions are actually named 21861 something starting with __ and the normal name is an alias. */ 21862#if defined (__stub_CreateHardLinkA) || defined (__stub___CreateHardLinkA) 21863choke me 21864#else 21865f = CreateHardLinkA; 21866#endif 21867 21868 ; 21869 return 0; 21870} 21871_ACEOF 21872rm -f conftest.$ac_objext conftest$ac_exeext 21873if { (ac_try="$ac_link" 21874case "(($ac_try" in 21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21876 *) ac_try_echo=$ac_try;; 21877esac 21878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21879$as_echo "$ac_try_echo") >&5 21880 (eval "$ac_link") 2>conftest.er1 21881 ac_status=$? 21882 grep -v '^ *+' conftest.er1 >conftest.err 21883 rm -f conftest.er1 21884 cat conftest.err >&5 21885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21886 (exit $ac_status); } && { 21887 test -z "$ac_c_werror_flag" || 21888 test ! -s conftest.err 21889 } && test -s conftest$ac_exeext && { 21890 test "$cross_compiling" = yes || 21891 $as_test_x conftest$ac_exeext 21892 }; then 21893 ac_cv_func_CreateHardLinkA=yes 21894else 21895 $as_echo "$as_me: failed program was:" >&5 21896sed 's/^/| /' conftest.$ac_ext >&5 21897 21898 ac_cv_func_CreateHardLinkA=no 21899fi 21900 21901rm -rf conftest.dSYM 21902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21903 conftest$ac_exeext conftest.$ac_ext 21904fi 21905{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_CreateHardLinkA" >&5 21906$as_echo "$ac_cv_func_CreateHardLinkA" >&6; } 21907 21908 21909 21910 21911for ac_func in chflags chown chroot 21912do 21913as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21914{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 21915$as_echo_n "checking for $ac_func... " >&6; } 21916if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21917 $as_echo_n "(cached) " >&6 21918else 21919 cat >conftest.$ac_ext <<_ACEOF 21920/* confdefs.h. */ 21921_ACEOF 21922cat confdefs.h >>conftest.$ac_ext 21923cat >>conftest.$ac_ext <<_ACEOF 21924/* end confdefs.h. */ 21925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21926 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21927#define $ac_func innocuous_$ac_func 21928 21929/* System header to define __stub macros and hopefully few prototypes, 21930 which can conflict with char $ac_func (); below. 21931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21932 <limits.h> exists even on freestanding compilers. */ 21933 21934#ifdef __STDC__ 21935# include <limits.h> 21936#else 21937# include <assert.h> 21938#endif 21939 21940#undef $ac_func 21941 21942/* Override any GCC internal prototype to avoid an error. 21943 Use char because int might match the return type of a GCC 21944 builtin and then its argument prototype would still apply. */ 21945#ifdef __cplusplus 21946extern "C" 21947#endif 21948char $ac_func (); 21949/* The GNU C library defines this for functions which it implements 21950 to always fail with ENOSYS. Some functions are actually named 21951 something starting with __ and the normal name is an alias. */ 21952#if defined __stub_$ac_func || defined __stub___$ac_func 21953choke me 21954#endif 21955 21956int 21957main () 21958{ 21959return $ac_func (); 21960 ; 21961 return 0; 21962} 21963_ACEOF 21964rm -f conftest.$ac_objext conftest$ac_exeext 21965if { (ac_try="$ac_link" 21966case "(($ac_try" in 21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21968 *) ac_try_echo=$ac_try;; 21969esac 21970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21971$as_echo "$ac_try_echo") >&5 21972 (eval "$ac_link") 2>conftest.er1 21973 ac_status=$? 21974 grep -v '^ *+' conftest.er1 >conftest.err 21975 rm -f conftest.er1 21976 cat conftest.err >&5 21977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21978 (exit $ac_status); } && { 21979 test -z "$ac_c_werror_flag" || 21980 test ! -s conftest.err 21981 } && test -s conftest$ac_exeext && { 21982 test "$cross_compiling" = yes || 21983 $as_test_x conftest$ac_exeext 21984 }; then 21985 eval "$as_ac_var=yes" 21986else 21987 $as_echo "$as_me: failed program was:" >&5 21988sed 's/^/| /' conftest.$ac_ext >&5 21989 21990 eval "$as_ac_var=no" 21991fi 21992 21993rm -rf conftest.dSYM 21994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21995 conftest$ac_exeext conftest.$ac_ext 21996fi 21997ac_res=`eval 'as_val=${'$as_ac_var'} 21998 $as_echo "$as_val"'` 21999 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22000$as_echo "$ac_res" >&6; } 22001if test `eval 'as_val=${'$as_ac_var'} 22002 $as_echo "$as_val"'` = yes; then 22003 cat >>confdefs.h <<_ACEOF 22004#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22005_ACEOF 22006 22007fi 22008done 22009 22010 22011 22012 22013 22014 22015 22016for ac_func in fchdir fchflags fchmod fchown fcntl fork 22017do 22018as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22019{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22020$as_echo_n "checking for $ac_func... " >&6; } 22021if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22022 $as_echo_n "(cached) " >&6 22023else 22024 cat >conftest.$ac_ext <<_ACEOF 22025/* confdefs.h. */ 22026_ACEOF 22027cat confdefs.h >>conftest.$ac_ext 22028cat >>conftest.$ac_ext <<_ACEOF 22029/* end confdefs.h. */ 22030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22031 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22032#define $ac_func innocuous_$ac_func 22033 22034/* System header to define __stub macros and hopefully few prototypes, 22035 which can conflict with char $ac_func (); below. 22036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22037 <limits.h> exists even on freestanding compilers. */ 22038 22039#ifdef __STDC__ 22040# include <limits.h> 22041#else 22042# include <assert.h> 22043#endif 22044 22045#undef $ac_func 22046 22047/* Override any GCC internal prototype to avoid an error. 22048 Use char because int might match the return type of a GCC 22049 builtin and then its argument prototype would still apply. */ 22050#ifdef __cplusplus 22051extern "C" 22052#endif 22053char $ac_func (); 22054/* The GNU C library defines this for functions which it implements 22055 to always fail with ENOSYS. Some functions are actually named 22056 something starting with __ and the normal name is an alias. */ 22057#if defined __stub_$ac_func || defined __stub___$ac_func 22058choke me 22059#endif 22060 22061int 22062main () 22063{ 22064return $ac_func (); 22065 ; 22066 return 0; 22067} 22068_ACEOF 22069rm -f conftest.$ac_objext conftest$ac_exeext 22070if { (ac_try="$ac_link" 22071case "(($ac_try" in 22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22073 *) ac_try_echo=$ac_try;; 22074esac 22075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22076$as_echo "$ac_try_echo") >&5 22077 (eval "$ac_link") 2>conftest.er1 22078 ac_status=$? 22079 grep -v '^ *+' conftest.er1 >conftest.err 22080 rm -f conftest.er1 22081 cat conftest.err >&5 22082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22083 (exit $ac_status); } && { 22084 test -z "$ac_c_werror_flag" || 22085 test ! -s conftest.err 22086 } && test -s conftest$ac_exeext && { 22087 test "$cross_compiling" = yes || 22088 $as_test_x conftest$ac_exeext 22089 }; then 22090 eval "$as_ac_var=yes" 22091else 22092 $as_echo "$as_me: failed program was:" >&5 22093sed 's/^/| /' conftest.$ac_ext >&5 22094 22095 eval "$as_ac_var=no" 22096fi 22097 22098rm -rf conftest.dSYM 22099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22100 conftest$ac_exeext conftest.$ac_ext 22101fi 22102ac_res=`eval 'as_val=${'$as_ac_var'} 22103 $as_echo "$as_val"'` 22104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22105$as_echo "$ac_res" >&6; } 22106if test `eval 'as_val=${'$as_ac_var'} 22107 $as_echo "$as_val"'` = yes; then 22108 cat >>confdefs.h <<_ACEOF 22109#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22110_ACEOF 22111 22112fi 22113done 22114 22115 22116 22117 22118 22119 22120 22121for ac_func in fstat ftruncate futimens futimes geteuid getpid 22122do 22123as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22124{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22125$as_echo_n "checking for $ac_func... " >&6; } 22126if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22127 $as_echo_n "(cached) " >&6 22128else 22129 cat >conftest.$ac_ext <<_ACEOF 22130/* confdefs.h. */ 22131_ACEOF 22132cat confdefs.h >>conftest.$ac_ext 22133cat >>conftest.$ac_ext <<_ACEOF 22134/* end confdefs.h. */ 22135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22136 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22137#define $ac_func innocuous_$ac_func 22138 22139/* System header to define __stub macros and hopefully few prototypes, 22140 which can conflict with char $ac_func (); below. 22141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22142 <limits.h> exists even on freestanding compilers. */ 22143 22144#ifdef __STDC__ 22145# include <limits.h> 22146#else 22147# include <assert.h> 22148#endif 22149 22150#undef $ac_func 22151 22152/* Override any GCC internal prototype to avoid an error. 22153 Use char because int might match the return type of a GCC 22154 builtin and then its argument prototype would still apply. */ 22155#ifdef __cplusplus 22156extern "C" 22157#endif 22158char $ac_func (); 22159/* The GNU C library defines this for functions which it implements 22160 to always fail with ENOSYS. Some functions are actually named 22161 something starting with __ and the normal name is an alias. */ 22162#if defined __stub_$ac_func || defined __stub___$ac_func 22163choke me 22164#endif 22165 22166int 22167main () 22168{ 22169return $ac_func (); 22170 ; 22171 return 0; 22172} 22173_ACEOF 22174rm -f conftest.$ac_objext conftest$ac_exeext 22175if { (ac_try="$ac_link" 22176case "(($ac_try" in 22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22178 *) ac_try_echo=$ac_try;; 22179esac 22180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22181$as_echo "$ac_try_echo") >&5 22182 (eval "$ac_link") 2>conftest.er1 22183 ac_status=$? 22184 grep -v '^ *+' conftest.er1 >conftest.err 22185 rm -f conftest.er1 22186 cat conftest.err >&5 22187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22188 (exit $ac_status); } && { 22189 test -z "$ac_c_werror_flag" || 22190 test ! -s conftest.err 22191 } && test -s conftest$ac_exeext && { 22192 test "$cross_compiling" = yes || 22193 $as_test_x conftest$ac_exeext 22194 }; then 22195 eval "$as_ac_var=yes" 22196else 22197 $as_echo "$as_me: failed program was:" >&5 22198sed 's/^/| /' conftest.$ac_ext >&5 22199 22200 eval "$as_ac_var=no" 22201fi 22202 22203rm -rf conftest.dSYM 22204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22205 conftest$ac_exeext conftest.$ac_ext 22206fi 22207ac_res=`eval 'as_val=${'$as_ac_var'} 22208 $as_echo "$as_val"'` 22209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22210$as_echo "$ac_res" >&6; } 22211if test `eval 'as_val=${'$as_ac_var'} 22212 $as_echo "$as_val"'` = yes; then 22213 cat >>confdefs.h <<_ACEOF 22214#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22215_ACEOF 22216 22217fi 22218done 22219 22220 22221 22222 22223 22224 22225for ac_func in lchflags lchmod lchown link lstat 22226do 22227as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22228{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22229$as_echo_n "checking for $ac_func... " >&6; } 22230if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22231 $as_echo_n "(cached) " >&6 22232else 22233 cat >conftest.$ac_ext <<_ACEOF 22234/* confdefs.h. */ 22235_ACEOF 22236cat confdefs.h >>conftest.$ac_ext 22237cat >>conftest.$ac_ext <<_ACEOF 22238/* end confdefs.h. */ 22239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22240 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22241#define $ac_func innocuous_$ac_func 22242 22243/* System header to define __stub macros and hopefully few prototypes, 22244 which can conflict with char $ac_func (); below. 22245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22246 <limits.h> exists even on freestanding compilers. */ 22247 22248#ifdef __STDC__ 22249# include <limits.h> 22250#else 22251# include <assert.h> 22252#endif 22253 22254#undef $ac_func 22255 22256/* Override any GCC internal prototype to avoid an error. 22257 Use char because int might match the return type of a GCC 22258 builtin and then its argument prototype would still apply. */ 22259#ifdef __cplusplus 22260extern "C" 22261#endif 22262char $ac_func (); 22263/* The GNU C library defines this for functions which it implements 22264 to always fail with ENOSYS. Some functions are actually named 22265 something starting with __ and the normal name is an alias. */ 22266#if defined __stub_$ac_func || defined __stub___$ac_func 22267choke me 22268#endif 22269 22270int 22271main () 22272{ 22273return $ac_func (); 22274 ; 22275 return 0; 22276} 22277_ACEOF 22278rm -f conftest.$ac_objext conftest$ac_exeext 22279if { (ac_try="$ac_link" 22280case "(($ac_try" in 22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22282 *) ac_try_echo=$ac_try;; 22283esac 22284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22285$as_echo "$ac_try_echo") >&5 22286 (eval "$ac_link") 2>conftest.er1 22287 ac_status=$? 22288 grep -v '^ *+' conftest.er1 >conftest.err 22289 rm -f conftest.er1 22290 cat conftest.err >&5 22291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22292 (exit $ac_status); } && { 22293 test -z "$ac_c_werror_flag" || 22294 test ! -s conftest.err 22295 } && test -s conftest$ac_exeext && { 22296 test "$cross_compiling" = yes || 22297 $as_test_x conftest$ac_exeext 22298 }; then 22299 eval "$as_ac_var=yes" 22300else 22301 $as_echo "$as_me: failed program was:" >&5 22302sed 's/^/| /' conftest.$ac_ext >&5 22303 22304 eval "$as_ac_var=no" 22305fi 22306 22307rm -rf conftest.dSYM 22308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22309 conftest$ac_exeext conftest.$ac_ext 22310fi 22311ac_res=`eval 'as_val=${'$as_ac_var'} 22312 $as_echo "$as_val"'` 22313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22314$as_echo "$ac_res" >&6; } 22315if test `eval 'as_val=${'$as_ac_var'} 22316 $as_echo "$as_val"'` = yes; then 22317 cat >>confdefs.h <<_ACEOF 22318#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22319_ACEOF 22320 22321fi 22322done 22323 22324 22325 22326 22327 22328 22329 22330for ac_func in lutimes memmove memset mkdir mkfifo mknod 22331do 22332as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22333{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22334$as_echo_n "checking for $ac_func... " >&6; } 22335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22336 $as_echo_n "(cached) " >&6 22337else 22338 cat >conftest.$ac_ext <<_ACEOF 22339/* confdefs.h. */ 22340_ACEOF 22341cat confdefs.h >>conftest.$ac_ext 22342cat >>conftest.$ac_ext <<_ACEOF 22343/* end confdefs.h. */ 22344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22345 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22346#define $ac_func innocuous_$ac_func 22347 22348/* System header to define __stub macros and hopefully few prototypes, 22349 which can conflict with char $ac_func (); below. 22350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22351 <limits.h> exists even on freestanding compilers. */ 22352 22353#ifdef __STDC__ 22354# include <limits.h> 22355#else 22356# include <assert.h> 22357#endif 22358 22359#undef $ac_func 22360 22361/* Override any GCC internal prototype to avoid an error. 22362 Use char because int might match the return type of a GCC 22363 builtin and then its argument prototype would still apply. */ 22364#ifdef __cplusplus 22365extern "C" 22366#endif 22367char $ac_func (); 22368/* The GNU C library defines this for functions which it implements 22369 to always fail with ENOSYS. Some functions are actually named 22370 something starting with __ and the normal name is an alias. */ 22371#if defined __stub_$ac_func || defined __stub___$ac_func 22372choke me 22373#endif 22374 22375int 22376main () 22377{ 22378return $ac_func (); 22379 ; 22380 return 0; 22381} 22382_ACEOF 22383rm -f conftest.$ac_objext conftest$ac_exeext 22384if { (ac_try="$ac_link" 22385case "(($ac_try" in 22386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22387 *) ac_try_echo=$ac_try;; 22388esac 22389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22390$as_echo "$ac_try_echo") >&5 22391 (eval "$ac_link") 2>conftest.er1 22392 ac_status=$? 22393 grep -v '^ *+' conftest.er1 >conftest.err 22394 rm -f conftest.er1 22395 cat conftest.err >&5 22396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22397 (exit $ac_status); } && { 22398 test -z "$ac_c_werror_flag" || 22399 test ! -s conftest.err 22400 } && test -s conftest$ac_exeext && { 22401 test "$cross_compiling" = yes || 22402 $as_test_x conftest$ac_exeext 22403 }; then 22404 eval "$as_ac_var=yes" 22405else 22406 $as_echo "$as_me: failed program was:" >&5 22407sed 's/^/| /' conftest.$ac_ext >&5 22408 22409 eval "$as_ac_var=no" 22410fi 22411 22412rm -rf conftest.dSYM 22413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22414 conftest$ac_exeext conftest.$ac_ext 22415fi 22416ac_res=`eval 'as_val=${'$as_ac_var'} 22417 $as_echo "$as_val"'` 22418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22419$as_echo "$ac_res" >&6; } 22420if test `eval 'as_val=${'$as_ac_var'} 22421 $as_echo "$as_val"'` = yes; then 22422 cat >>confdefs.h <<_ACEOF 22423#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22424_ACEOF 22425 22426fi 22427done 22428 22429 22430 22431 22432 22433for ac_func in nl_langinfo pipe poll readlink 22434do 22435as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22436{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22437$as_echo_n "checking for $ac_func... " >&6; } 22438if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22439 $as_echo_n "(cached) " >&6 22440else 22441 cat >conftest.$ac_ext <<_ACEOF 22442/* confdefs.h. */ 22443_ACEOF 22444cat confdefs.h >>conftest.$ac_ext 22445cat >>conftest.$ac_ext <<_ACEOF 22446/* end confdefs.h. */ 22447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22448 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22449#define $ac_func innocuous_$ac_func 22450 22451/* System header to define __stub macros and hopefully few prototypes, 22452 which can conflict with char $ac_func (); below. 22453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22454 <limits.h> exists even on freestanding compilers. */ 22455 22456#ifdef __STDC__ 22457# include <limits.h> 22458#else 22459# include <assert.h> 22460#endif 22461 22462#undef $ac_func 22463 22464/* Override any GCC internal prototype to avoid an error. 22465 Use char because int might match the return type of a GCC 22466 builtin and then its argument prototype would still apply. */ 22467#ifdef __cplusplus 22468extern "C" 22469#endif 22470char $ac_func (); 22471/* The GNU C library defines this for functions which it implements 22472 to always fail with ENOSYS. Some functions are actually named 22473 something starting with __ and the normal name is an alias. */ 22474#if defined __stub_$ac_func || defined __stub___$ac_func 22475choke me 22476#endif 22477 22478int 22479main () 22480{ 22481return $ac_func (); 22482 ; 22483 return 0; 22484} 22485_ACEOF 22486rm -f conftest.$ac_objext conftest$ac_exeext 22487if { (ac_try="$ac_link" 22488case "(($ac_try" in 22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22490 *) ac_try_echo=$ac_try;; 22491esac 22492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22493$as_echo "$ac_try_echo") >&5 22494 (eval "$ac_link") 2>conftest.er1 22495 ac_status=$? 22496 grep -v '^ *+' conftest.er1 >conftest.err 22497 rm -f conftest.er1 22498 cat conftest.err >&5 22499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22500 (exit $ac_status); } && { 22501 test -z "$ac_c_werror_flag" || 22502 test ! -s conftest.err 22503 } && test -s conftest$ac_exeext && { 22504 test "$cross_compiling" = yes || 22505 $as_test_x conftest$ac_exeext 22506 }; then 22507 eval "$as_ac_var=yes" 22508else 22509 $as_echo "$as_me: failed program was:" >&5 22510sed 's/^/| /' conftest.$ac_ext >&5 22511 22512 eval "$as_ac_var=no" 22513fi 22514 22515rm -rf conftest.dSYM 22516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22517 conftest$ac_exeext conftest.$ac_ext 22518fi 22519ac_res=`eval 'as_val=${'$as_ac_var'} 22520 $as_echo "$as_val"'` 22521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22522$as_echo "$ac_res" >&6; } 22523if test `eval 'as_val=${'$as_ac_var'} 22524 $as_echo "$as_val"'` = yes; then 22525 cat >>confdefs.h <<_ACEOF 22526#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22527_ACEOF 22528 22529fi 22530done 22531 22532 22533 22534 22535 22536for ac_func in select setenv setlocale sigaction 22537do 22538as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22539{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22540$as_echo_n "checking for $ac_func... " >&6; } 22541if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22542 $as_echo_n "(cached) " >&6 22543else 22544 cat >conftest.$ac_ext <<_ACEOF 22545/* confdefs.h. */ 22546_ACEOF 22547cat confdefs.h >>conftest.$ac_ext 22548cat >>conftest.$ac_ext <<_ACEOF 22549/* end confdefs.h. */ 22550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22551 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22552#define $ac_func innocuous_$ac_func 22553 22554/* System header to define __stub macros and hopefully few prototypes, 22555 which can conflict with char $ac_func (); below. 22556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22557 <limits.h> exists even on freestanding compilers. */ 22558 22559#ifdef __STDC__ 22560# include <limits.h> 22561#else 22562# include <assert.h> 22563#endif 22564 22565#undef $ac_func 22566 22567/* Override any GCC internal prototype to avoid an error. 22568 Use char because int might match the return type of a GCC 22569 builtin and then its argument prototype would still apply. */ 22570#ifdef __cplusplus 22571extern "C" 22572#endif 22573char $ac_func (); 22574/* The GNU C library defines this for functions which it implements 22575 to always fail with ENOSYS. Some functions are actually named 22576 something starting with __ and the normal name is an alias. */ 22577#if defined __stub_$ac_func || defined __stub___$ac_func 22578choke me 22579#endif 22580 22581int 22582main () 22583{ 22584return $ac_func (); 22585 ; 22586 return 0; 22587} 22588_ACEOF 22589rm -f conftest.$ac_objext conftest$ac_exeext 22590if { (ac_try="$ac_link" 22591case "(($ac_try" in 22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22593 *) ac_try_echo=$ac_try;; 22594esac 22595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22596$as_echo "$ac_try_echo") >&5 22597 (eval "$ac_link") 2>conftest.er1 22598 ac_status=$? 22599 grep -v '^ *+' conftest.er1 >conftest.err 22600 rm -f conftest.er1 22601 cat conftest.err >&5 22602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22603 (exit $ac_status); } && { 22604 test -z "$ac_c_werror_flag" || 22605 test ! -s conftest.err 22606 } && test -s conftest$ac_exeext && { 22607 test "$cross_compiling" = yes || 22608 $as_test_x conftest$ac_exeext 22609 }; then 22610 eval "$as_ac_var=yes" 22611else 22612 $as_echo "$as_me: failed program was:" >&5 22613sed 's/^/| /' conftest.$ac_ext >&5 22614 22615 eval "$as_ac_var=no" 22616fi 22617 22618rm -rf conftest.dSYM 22619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22620 conftest$ac_exeext conftest.$ac_ext 22621fi 22622ac_res=`eval 'as_val=${'$as_ac_var'} 22623 $as_echo "$as_val"'` 22624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22625$as_echo "$ac_res" >&6; } 22626if test `eval 'as_val=${'$as_ac_var'} 22627 $as_echo "$as_val"'` = yes; then 22628 cat >>confdefs.h <<_ACEOF 22629#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22630_ACEOF 22631 22632fi 22633done 22634 22635 22636 22637 22638 22639 22640 22641 22642for ac_func in strchr strdup strerror strncpy_s strrchr symlink timegm 22643do 22644as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22645{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22646$as_echo_n "checking for $ac_func... " >&6; } 22647if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22648 $as_echo_n "(cached) " >&6 22649else 22650 cat >conftest.$ac_ext <<_ACEOF 22651/* confdefs.h. */ 22652_ACEOF 22653cat confdefs.h >>conftest.$ac_ext 22654cat >>conftest.$ac_ext <<_ACEOF 22655/* end confdefs.h. */ 22656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22657 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22658#define $ac_func innocuous_$ac_func 22659 22660/* System header to define __stub macros and hopefully few prototypes, 22661 which can conflict with char $ac_func (); below. 22662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22663 <limits.h> exists even on freestanding compilers. */ 22664 22665#ifdef __STDC__ 22666# include <limits.h> 22667#else 22668# include <assert.h> 22669#endif 22670 22671#undef $ac_func 22672 22673/* Override any GCC internal prototype to avoid an error. 22674 Use char because int might match the return type of a GCC 22675 builtin and then its argument prototype would still apply. */ 22676#ifdef __cplusplus 22677extern "C" 22678#endif 22679char $ac_func (); 22680/* The GNU C library defines this for functions which it implements 22681 to always fail with ENOSYS. Some functions are actually named 22682 something starting with __ and the normal name is an alias. */ 22683#if defined __stub_$ac_func || defined __stub___$ac_func 22684choke me 22685#endif 22686 22687int 22688main () 22689{ 22690return $ac_func (); 22691 ; 22692 return 0; 22693} 22694_ACEOF 22695rm -f conftest.$ac_objext conftest$ac_exeext 22696if { (ac_try="$ac_link" 22697case "(($ac_try" in 22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22699 *) ac_try_echo=$ac_try;; 22700esac 22701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22702$as_echo "$ac_try_echo") >&5 22703 (eval "$ac_link") 2>conftest.er1 22704 ac_status=$? 22705 grep -v '^ *+' conftest.er1 >conftest.err 22706 rm -f conftest.er1 22707 cat conftest.err >&5 22708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22709 (exit $ac_status); } && { 22710 test -z "$ac_c_werror_flag" || 22711 test ! -s conftest.err 22712 } && test -s conftest$ac_exeext && { 22713 test "$cross_compiling" = yes || 22714 $as_test_x conftest$ac_exeext 22715 }; then 22716 eval "$as_ac_var=yes" 22717else 22718 $as_echo "$as_me: failed program was:" >&5 22719sed 's/^/| /' conftest.$ac_ext >&5 22720 22721 eval "$as_ac_var=no" 22722fi 22723 22724rm -rf conftest.dSYM 22725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22726 conftest$ac_exeext conftest.$ac_ext 22727fi 22728ac_res=`eval 'as_val=${'$as_ac_var'} 22729 $as_echo "$as_val"'` 22730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22731$as_echo "$ac_res" >&6; } 22732if test `eval 'as_val=${'$as_ac_var'} 22733 $as_echo "$as_val"'` = yes; then 22734 cat >>confdefs.h <<_ACEOF 22735#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22736_ACEOF 22737 22738fi 22739done 22740 22741 22742 22743 22744 22745 22746 22747for ac_func in tzset unsetenv utime utimensat utimes vfork 22748do 22749as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22750{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22751$as_echo_n "checking for $ac_func... " >&6; } 22752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22753 $as_echo_n "(cached) " >&6 22754else 22755 cat >conftest.$ac_ext <<_ACEOF 22756/* confdefs.h. */ 22757_ACEOF 22758cat confdefs.h >>conftest.$ac_ext 22759cat >>conftest.$ac_ext <<_ACEOF 22760/* end confdefs.h. */ 22761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22762 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22763#define $ac_func innocuous_$ac_func 22764 22765/* System header to define __stub macros and hopefully few prototypes, 22766 which can conflict with char $ac_func (); below. 22767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22768 <limits.h> exists even on freestanding compilers. */ 22769 22770#ifdef __STDC__ 22771# include <limits.h> 22772#else 22773# include <assert.h> 22774#endif 22775 22776#undef $ac_func 22777 22778/* Override any GCC internal prototype to avoid an error. 22779 Use char because int might match the return type of a GCC 22780 builtin and then its argument prototype would still apply. */ 22781#ifdef __cplusplus 22782extern "C" 22783#endif 22784char $ac_func (); 22785/* The GNU C library defines this for functions which it implements 22786 to always fail with ENOSYS. Some functions are actually named 22787 something starting with __ and the normal name is an alias. */ 22788#if defined __stub_$ac_func || defined __stub___$ac_func 22789choke me 22790#endif 22791 22792int 22793main () 22794{ 22795return $ac_func (); 22796 ; 22797 return 0; 22798} 22799_ACEOF 22800rm -f conftest.$ac_objext conftest$ac_exeext 22801if { (ac_try="$ac_link" 22802case "(($ac_try" in 22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22804 *) ac_try_echo=$ac_try;; 22805esac 22806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22807$as_echo "$ac_try_echo") >&5 22808 (eval "$ac_link") 2>conftest.er1 22809 ac_status=$? 22810 grep -v '^ *+' conftest.er1 >conftest.err 22811 rm -f conftest.er1 22812 cat conftest.err >&5 22813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22814 (exit $ac_status); } && { 22815 test -z "$ac_c_werror_flag" || 22816 test ! -s conftest.err 22817 } && test -s conftest$ac_exeext && { 22818 test "$cross_compiling" = yes || 22819 $as_test_x conftest$ac_exeext 22820 }; then 22821 eval "$as_ac_var=yes" 22822else 22823 $as_echo "$as_me: failed program was:" >&5 22824sed 's/^/| /' conftest.$ac_ext >&5 22825 22826 eval "$as_ac_var=no" 22827fi 22828 22829rm -rf conftest.dSYM 22830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22831 conftest$ac_exeext conftest.$ac_ext 22832fi 22833ac_res=`eval 'as_val=${'$as_ac_var'} 22834 $as_echo "$as_val"'` 22835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22836$as_echo "$ac_res" >&6; } 22837if test `eval 'as_val=${'$as_ac_var'} 22838 $as_echo "$as_val"'` = yes; then 22839 cat >>confdefs.h <<_ACEOF 22840#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22841_ACEOF 22842 22843fi 22844done 22845 22846 22847 22848 22849 22850 22851 22852for ac_func in wcrtomb wcscpy wcslen wctomb wmemcmp wmemcpy 22853do 22854as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22855{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22856$as_echo_n "checking for $ac_func... " >&6; } 22857if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22858 $as_echo_n "(cached) " >&6 22859else 22860 cat >conftest.$ac_ext <<_ACEOF 22861/* confdefs.h. */ 22862_ACEOF 22863cat confdefs.h >>conftest.$ac_ext 22864cat >>conftest.$ac_ext <<_ACEOF 22865/* end confdefs.h. */ 22866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22867 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22868#define $ac_func innocuous_$ac_func 22869 22870/* System header to define __stub macros and hopefully few prototypes, 22871 which can conflict with char $ac_func (); below. 22872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22873 <limits.h> exists even on freestanding compilers. */ 22874 22875#ifdef __STDC__ 22876# include <limits.h> 22877#else 22878# include <assert.h> 22879#endif 22880 22881#undef $ac_func 22882 22883/* Override any GCC internal prototype to avoid an error. 22884 Use char because int might match the return type of a GCC 22885 builtin and then its argument prototype would still apply. */ 22886#ifdef __cplusplus 22887extern "C" 22888#endif 22889char $ac_func (); 22890/* The GNU C library defines this for functions which it implements 22891 to always fail with ENOSYS. Some functions are actually named 22892 something starting with __ and the normal name is an alias. */ 22893#if defined __stub_$ac_func || defined __stub___$ac_func 22894choke me 22895#endif 22896 22897int 22898main () 22899{ 22900return $ac_func (); 22901 ; 22902 return 0; 22903} 22904_ACEOF 22905rm -f conftest.$ac_objext conftest$ac_exeext 22906if { (ac_try="$ac_link" 22907case "(($ac_try" in 22908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22909 *) ac_try_echo=$ac_try;; 22910esac 22911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22912$as_echo "$ac_try_echo") >&5 22913 (eval "$ac_link") 2>conftest.er1 22914 ac_status=$? 22915 grep -v '^ *+' conftest.er1 >conftest.err 22916 rm -f conftest.er1 22917 cat conftest.err >&5 22918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22919 (exit $ac_status); } && { 22920 test -z "$ac_c_werror_flag" || 22921 test ! -s conftest.err 22922 } && test -s conftest$ac_exeext && { 22923 test "$cross_compiling" = yes || 22924 $as_test_x conftest$ac_exeext 22925 }; then 22926 eval "$as_ac_var=yes" 22927else 22928 $as_echo "$as_me: failed program was:" >&5 22929sed 's/^/| /' conftest.$ac_ext >&5 22930 22931 eval "$as_ac_var=no" 22932fi 22933 22934rm -rf conftest.dSYM 22935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22936 conftest$ac_exeext conftest.$ac_ext 22937fi 22938ac_res=`eval 'as_val=${'$as_ac_var'} 22939 $as_echo "$as_val"'` 22940 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22941$as_echo "$ac_res" >&6; } 22942if test `eval 'as_val=${'$as_ac_var'} 22943 $as_echo "$as_val"'` = yes; then 22944 cat >>confdefs.h <<_ACEOF 22945#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22946_ACEOF 22947 22948fi 22949done 22950 22951# detects cygwin-1.7, as opposed to older versions 22952 22953for ac_func in cygwin_conv_path 22954do 22955as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22956{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22957$as_echo_n "checking for $ac_func... " >&6; } 22958if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22959 $as_echo_n "(cached) " >&6 22960else 22961 cat >conftest.$ac_ext <<_ACEOF 22962/* confdefs.h. */ 22963_ACEOF 22964cat confdefs.h >>conftest.$ac_ext 22965cat >>conftest.$ac_ext <<_ACEOF 22966/* end confdefs.h. */ 22967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22968 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22969#define $ac_func innocuous_$ac_func 22970 22971/* System header to define __stub macros and hopefully few prototypes, 22972 which can conflict with char $ac_func (); below. 22973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22974 <limits.h> exists even on freestanding compilers. */ 22975 22976#ifdef __STDC__ 22977# include <limits.h> 22978#else 22979# include <assert.h> 22980#endif 22981 22982#undef $ac_func 22983 22984/* Override any GCC internal prototype to avoid an error. 22985 Use char because int might match the return type of a GCC 22986 builtin and then its argument prototype would still apply. */ 22987#ifdef __cplusplus 22988extern "C" 22989#endif 22990char $ac_func (); 22991/* The GNU C library defines this for functions which it implements 22992 to always fail with ENOSYS. Some functions are actually named 22993 something starting with __ and the normal name is an alias. */ 22994#if defined __stub_$ac_func || defined __stub___$ac_func 22995choke me 22996#endif 22997 22998int 22999main () 23000{ 23001return $ac_func (); 23002 ; 23003 return 0; 23004} 23005_ACEOF 23006rm -f conftest.$ac_objext conftest$ac_exeext 23007if { (ac_try="$ac_link" 23008case "(($ac_try" in 23009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23010 *) ac_try_echo=$ac_try;; 23011esac 23012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23013$as_echo "$ac_try_echo") >&5 23014 (eval "$ac_link") 2>conftest.er1 23015 ac_status=$? 23016 grep -v '^ *+' conftest.er1 >conftest.err 23017 rm -f conftest.er1 23018 cat conftest.err >&5 23019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23020 (exit $ac_status); } && { 23021 test -z "$ac_c_werror_flag" || 23022 test ! -s conftest.err 23023 } && test -s conftest$ac_exeext && { 23024 test "$cross_compiling" = yes || 23025 $as_test_x conftest$ac_exeext 23026 }; then 23027 eval "$as_ac_var=yes" 23028else 23029 $as_echo "$as_me: failed program was:" >&5 23030sed 's/^/| /' conftest.$ac_ext >&5 23031 23032 eval "$as_ac_var=no" 23033fi 23034 23035rm -rf conftest.dSYM 23036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23037 conftest$ac_exeext conftest.$ac_ext 23038fi 23039ac_res=`eval 'as_val=${'$as_ac_var'} 23040 $as_echo "$as_val"'` 23041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 23042$as_echo "$ac_res" >&6; } 23043if test `eval 'as_val=${'$as_ac_var'} 23044 $as_echo "$as_val"'` = yes; then 23045 cat >>confdefs.h <<_ACEOF 23046#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23047_ACEOF 23048 23049fi 23050done 23051 23052 23053# FreeBSD's nl_langinfo supports an option to specify whether the 23054# current locale uses month/day or day/month ordering. It makes the 23055# output a little prettier... 23056{ $as_echo "$as_me:$LINENO: checking whether D_MD_ORDER is declared" >&5 23057$as_echo_n "checking whether D_MD_ORDER is declared... " >&6; } 23058if test "${ac_cv_have_decl_D_MD_ORDER+set}" = set; then 23059 $as_echo_n "(cached) " >&6 23060else 23061 cat >conftest.$ac_ext <<_ACEOF 23062/* confdefs.h. */ 23063_ACEOF 23064cat confdefs.h >>conftest.$ac_ext 23065cat >>conftest.$ac_ext <<_ACEOF 23066/* end confdefs.h. */ 23067#if HAVE_LANGINFO_H 23068#include <langinfo.h> 23069#endif 23070 23071 23072int 23073main () 23074{ 23075#ifndef D_MD_ORDER 23076 (void) D_MD_ORDER; 23077#endif 23078 23079 ; 23080 return 0; 23081} 23082_ACEOF 23083rm -f conftest.$ac_objext 23084if { (ac_try="$ac_compile" 23085case "(($ac_try" in 23086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23087 *) ac_try_echo=$ac_try;; 23088esac 23089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23090$as_echo "$ac_try_echo") >&5 23091 (eval "$ac_compile") 2>conftest.er1 23092 ac_status=$? 23093 grep -v '^ *+' conftest.er1 >conftest.err 23094 rm -f conftest.er1 23095 cat conftest.err >&5 23096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23097 (exit $ac_status); } && { 23098 test -z "$ac_c_werror_flag" || 23099 test ! -s conftest.err 23100 } && test -s conftest.$ac_objext; then 23101 ac_cv_have_decl_D_MD_ORDER=yes 23102else 23103 $as_echo "$as_me: failed program was:" >&5 23104sed 's/^/| /' conftest.$ac_ext >&5 23105 23106 ac_cv_have_decl_D_MD_ORDER=no 23107fi 23108 23109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23110fi 23111{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_D_MD_ORDER" >&5 23112$as_echo "$ac_cv_have_decl_D_MD_ORDER" >&6; } 23113if test $ac_cv_have_decl_D_MD_ORDER = yes; then 23114 23115cat >>confdefs.h <<\_ACEOF 23116#define HAVE_D_MD_ORDER 1 23117_ACEOF 23118 23119fi 23120 23121 23122# Check for dirent.d_namlen field explicitly 23123# (This is a bit more straightforward than, if not quite as portable as, 23124# the recipe given by the autoconf maintainers.) 23125{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5 23126$as_echo_n "checking for struct dirent.d_namlen... " >&6; } 23127if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then 23128 $as_echo_n "(cached) " >&6 23129else 23130 cat >conftest.$ac_ext <<_ACEOF 23131/* confdefs.h. */ 23132_ACEOF 23133cat confdefs.h >>conftest.$ac_ext 23134cat >>conftest.$ac_ext <<_ACEOF 23135/* end confdefs.h. */ 23136#if HAVE_DIRENT_H 23137#include <dirent.h> 23138#endif 23139 23140 23141int 23142main () 23143{ 23144static struct dirent ac_aggr; 23145if (ac_aggr.d_namlen) 23146return 0; 23147 ; 23148 return 0; 23149} 23150_ACEOF 23151rm -f conftest.$ac_objext 23152if { (ac_try="$ac_compile" 23153case "(($ac_try" in 23154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23155 *) ac_try_echo=$ac_try;; 23156esac 23157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23158$as_echo "$ac_try_echo") >&5 23159 (eval "$ac_compile") 2>conftest.er1 23160 ac_status=$? 23161 grep -v '^ *+' conftest.er1 >conftest.err 23162 rm -f conftest.er1 23163 cat conftest.err >&5 23164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23165 (exit $ac_status); } && { 23166 test -z "$ac_c_werror_flag" || 23167 test ! -s conftest.err 23168 } && test -s conftest.$ac_objext; then 23169 ac_cv_member_struct_dirent_d_namlen=yes 23170else 23171 $as_echo "$as_me: failed program was:" >&5 23172sed 's/^/| /' conftest.$ac_ext >&5 23173 23174 cat >conftest.$ac_ext <<_ACEOF 23175/* confdefs.h. */ 23176_ACEOF 23177cat confdefs.h >>conftest.$ac_ext 23178cat >>conftest.$ac_ext <<_ACEOF 23179/* end confdefs.h. */ 23180#if HAVE_DIRENT_H 23181#include <dirent.h> 23182#endif 23183 23184 23185int 23186main () 23187{ 23188static struct dirent ac_aggr; 23189if (sizeof ac_aggr.d_namlen) 23190return 0; 23191 ; 23192 return 0; 23193} 23194_ACEOF 23195rm -f conftest.$ac_objext 23196if { (ac_try="$ac_compile" 23197case "(($ac_try" in 23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23199 *) ac_try_echo=$ac_try;; 23200esac 23201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23202$as_echo "$ac_try_echo") >&5 23203 (eval "$ac_compile") 2>conftest.er1 23204 ac_status=$? 23205 grep -v '^ *+' conftest.er1 >conftest.err 23206 rm -f conftest.er1 23207 cat conftest.err >&5 23208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23209 (exit $ac_status); } && { 23210 test -z "$ac_c_werror_flag" || 23211 test ! -s conftest.err 23212 } && test -s conftest.$ac_objext; then 23213 ac_cv_member_struct_dirent_d_namlen=yes 23214else 23215 $as_echo "$as_me: failed program was:" >&5 23216sed 's/^/| /' conftest.$ac_ext >&5 23217 23218 ac_cv_member_struct_dirent_d_namlen=no 23219fi 23220 23221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23222fi 23223 23224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23225fi 23226{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5 23227$as_echo "$ac_cv_member_struct_dirent_d_namlen" >&6; } 23228 23229 23230# Check for Extended Attributes support 23231# Check whether --enable-xattr was given. 23232if test "${enable_xattr+set}" = set; then 23233 enableval=$enable_xattr; 23234fi 23235 23236 23237if test "x$enable_xattr" != "xno"; then 23238 23239for ac_header in attr/xattr.h 23240do 23241as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23243 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 23244$as_echo_n "checking for $ac_header... " >&6; } 23245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23246 $as_echo_n "(cached) " >&6 23247fi 23248ac_res=`eval 'as_val=${'$as_ac_Header'} 23249 $as_echo "$as_val"'` 23250 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 23251$as_echo "$ac_res" >&6; } 23252else 23253 # Is the header compilable? 23254{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 23255$as_echo_n "checking $ac_header usability... " >&6; } 23256cat >conftest.$ac_ext <<_ACEOF 23257/* confdefs.h. */ 23258_ACEOF 23259cat confdefs.h >>conftest.$ac_ext 23260cat >>conftest.$ac_ext <<_ACEOF 23261/* end confdefs.h. */ 23262$ac_includes_default 23263#include <$ac_header> 23264_ACEOF 23265rm -f conftest.$ac_objext 23266if { (ac_try="$ac_compile" 23267case "(($ac_try" in 23268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23269 *) ac_try_echo=$ac_try;; 23270esac 23271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23272$as_echo "$ac_try_echo") >&5 23273 (eval "$ac_compile") 2>conftest.er1 23274 ac_status=$? 23275 grep -v '^ *+' conftest.er1 >conftest.err 23276 rm -f conftest.er1 23277 cat conftest.err >&5 23278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23279 (exit $ac_status); } && { 23280 test -z "$ac_c_werror_flag" || 23281 test ! -s conftest.err 23282 } && test -s conftest.$ac_objext; then 23283 ac_header_compiler=yes 23284else 23285 $as_echo "$as_me: failed program was:" >&5 23286sed 's/^/| /' conftest.$ac_ext >&5 23287 23288 ac_header_compiler=no 23289fi 23290 23291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23292{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23293$as_echo "$ac_header_compiler" >&6; } 23294 23295# Is the header present? 23296{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 23297$as_echo_n "checking $ac_header presence... " >&6; } 23298cat >conftest.$ac_ext <<_ACEOF 23299/* confdefs.h. */ 23300_ACEOF 23301cat confdefs.h >>conftest.$ac_ext 23302cat >>conftest.$ac_ext <<_ACEOF 23303/* end confdefs.h. */ 23304#include <$ac_header> 23305_ACEOF 23306if { (ac_try="$ac_cpp conftest.$ac_ext" 23307case "(($ac_try" in 23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23309 *) ac_try_echo=$ac_try;; 23310esac 23311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23312$as_echo "$ac_try_echo") >&5 23313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 23314 ac_status=$? 23315 grep -v '^ *+' conftest.er1 >conftest.err 23316 rm -f conftest.er1 23317 cat conftest.err >&5 23318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23319 (exit $ac_status); } >/dev/null && { 23320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 23321 test ! -s conftest.err 23322 }; then 23323 ac_header_preproc=yes 23324else 23325 $as_echo "$as_me: failed program was:" >&5 23326sed 's/^/| /' conftest.$ac_ext >&5 23327 23328 ac_header_preproc=no 23329fi 23330 23331rm -f conftest.err conftest.$ac_ext 23332{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23333$as_echo "$ac_header_preproc" >&6; } 23334 23335# So? What about this header? 23336case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23337 yes:no: ) 23338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 23339$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 23340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 23341$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 23342 ac_header_preproc=yes 23343 ;; 23344 no:yes:* ) 23345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 23346$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 23347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 23348$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23350$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 23351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 23352$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 23353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 23354$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 23355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 23356$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23357 ( cat <<\_ASBOX 23358## ----------------------------------- ## 23359## Report this to kientzle@freebsd.org ## 23360## ----------------------------------- ## 23361_ASBOX 23362 ) | sed "s/^/$as_me: WARNING: /" >&2 23363 ;; 23364esac 23365{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 23366$as_echo_n "checking for $ac_header... " >&6; } 23367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23368 $as_echo_n "(cached) " >&6 23369else 23370 eval "$as_ac_Header=\$ac_header_preproc" 23371fi 23372ac_res=`eval 'as_val=${'$as_ac_Header'} 23373 $as_echo "$as_val"'` 23374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 23375$as_echo "$ac_res" >&6; } 23376 23377fi 23378if test `eval 'as_val=${'$as_ac_Header'} 23379 $as_echo "$as_val"'` = yes; then 23380 cat >>confdefs.h <<_ACEOF 23381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23382_ACEOF 23383 23384fi 23385 23386done 23387 23388 23389for ac_header in sys/xattr.h 23390do 23391as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 23394$as_echo_n "checking for $ac_header... " >&6; } 23395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23396 $as_echo_n "(cached) " >&6 23397fi 23398ac_res=`eval 'as_val=${'$as_ac_Header'} 23399 $as_echo "$as_val"'` 23400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 23401$as_echo "$ac_res" >&6; } 23402else 23403 # Is the header compilable? 23404{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 23405$as_echo_n "checking $ac_header usability... " >&6; } 23406cat >conftest.$ac_ext <<_ACEOF 23407/* confdefs.h. */ 23408_ACEOF 23409cat confdefs.h >>conftest.$ac_ext 23410cat >>conftest.$ac_ext <<_ACEOF 23411/* end confdefs.h. */ 23412$ac_includes_default 23413#include <$ac_header> 23414_ACEOF 23415rm -f conftest.$ac_objext 23416if { (ac_try="$ac_compile" 23417case "(($ac_try" in 23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23419 *) ac_try_echo=$ac_try;; 23420esac 23421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23422$as_echo "$ac_try_echo") >&5 23423 (eval "$ac_compile") 2>conftest.er1 23424 ac_status=$? 23425 grep -v '^ *+' conftest.er1 >conftest.err 23426 rm -f conftest.er1 23427 cat conftest.err >&5 23428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23429 (exit $ac_status); } && { 23430 test -z "$ac_c_werror_flag" || 23431 test ! -s conftest.err 23432 } && test -s conftest.$ac_objext; then 23433 ac_header_compiler=yes 23434else 23435 $as_echo "$as_me: failed program was:" >&5 23436sed 's/^/| /' conftest.$ac_ext >&5 23437 23438 ac_header_compiler=no 23439fi 23440 23441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23442{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23443$as_echo "$ac_header_compiler" >&6; } 23444 23445# Is the header present? 23446{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 23447$as_echo_n "checking $ac_header presence... " >&6; } 23448cat >conftest.$ac_ext <<_ACEOF 23449/* confdefs.h. */ 23450_ACEOF 23451cat confdefs.h >>conftest.$ac_ext 23452cat >>conftest.$ac_ext <<_ACEOF 23453/* end confdefs.h. */ 23454#include <$ac_header> 23455_ACEOF 23456if { (ac_try="$ac_cpp conftest.$ac_ext" 23457case "(($ac_try" in 23458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23459 *) ac_try_echo=$ac_try;; 23460esac 23461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23462$as_echo "$ac_try_echo") >&5 23463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 23464 ac_status=$? 23465 grep -v '^ *+' conftest.er1 >conftest.err 23466 rm -f conftest.er1 23467 cat conftest.err >&5 23468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23469 (exit $ac_status); } >/dev/null && { 23470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 23471 test ! -s conftest.err 23472 }; then 23473 ac_header_preproc=yes 23474else 23475 $as_echo "$as_me: failed program was:" >&5 23476sed 's/^/| /' conftest.$ac_ext >&5 23477 23478 ac_header_preproc=no 23479fi 23480 23481rm -f conftest.err conftest.$ac_ext 23482{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23483$as_echo "$ac_header_preproc" >&6; } 23484 23485# So? What about this header? 23486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23487 yes:no: ) 23488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 23489$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 23490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 23491$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 23492 ac_header_preproc=yes 23493 ;; 23494 no:yes:* ) 23495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 23496$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 23497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 23498$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23500$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 23501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 23502$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 23503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 23504$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 23505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 23506$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23507 ( cat <<\_ASBOX 23508## ----------------------------------- ## 23509## Report this to kientzle@freebsd.org ## 23510## ----------------------------------- ## 23511_ASBOX 23512 ) | sed "s/^/$as_me: WARNING: /" >&2 23513 ;; 23514esac 23515{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 23516$as_echo_n "checking for $ac_header... " >&6; } 23517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23518 $as_echo_n "(cached) " >&6 23519else 23520 eval "$as_ac_Header=\$ac_header_preproc" 23521fi 23522ac_res=`eval 'as_val=${'$as_ac_Header'} 23523 $as_echo "$as_val"'` 23524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 23525$as_echo "$ac_res" >&6; } 23526 23527fi 23528if test `eval 'as_val=${'$as_ac_Header'} 23529 $as_echo "$as_val"'` = yes; then 23530 cat >>confdefs.h <<_ACEOF 23531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23532_ACEOF 23533 23534fi 23535 23536done 23537 23538 23539{ $as_echo "$as_me:$LINENO: checking for setxattr in -lattr" >&5 23540$as_echo_n "checking for setxattr in -lattr... " >&6; } 23541if test "${ac_cv_lib_attr_setxattr+set}" = set; then 23542 $as_echo_n "(cached) " >&6 23543else 23544 ac_check_lib_save_LIBS=$LIBS 23545LIBS="-lattr $LIBS" 23546cat >conftest.$ac_ext <<_ACEOF 23547/* confdefs.h. */ 23548_ACEOF 23549cat confdefs.h >>conftest.$ac_ext 23550cat >>conftest.$ac_ext <<_ACEOF 23551/* end confdefs.h. */ 23552 23553/* Override any GCC internal prototype to avoid an error. 23554 Use char because int might match the return type of a GCC 23555 builtin and then its argument prototype would still apply. */ 23556#ifdef __cplusplus 23557extern "C" 23558#endif 23559char setxattr (); 23560int 23561main () 23562{ 23563return setxattr (); 23564 ; 23565 return 0; 23566} 23567_ACEOF 23568rm -f conftest.$ac_objext conftest$ac_exeext 23569if { (ac_try="$ac_link" 23570case "(($ac_try" in 23571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23572 *) ac_try_echo=$ac_try;; 23573esac 23574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23575$as_echo "$ac_try_echo") >&5 23576 (eval "$ac_link") 2>conftest.er1 23577 ac_status=$? 23578 grep -v '^ *+' conftest.er1 >conftest.err 23579 rm -f conftest.er1 23580 cat conftest.err >&5 23581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23582 (exit $ac_status); } && { 23583 test -z "$ac_c_werror_flag" || 23584 test ! -s conftest.err 23585 } && test -s conftest$ac_exeext && { 23586 test "$cross_compiling" = yes || 23587 $as_test_x conftest$ac_exeext 23588 }; then 23589 ac_cv_lib_attr_setxattr=yes 23590else 23591 $as_echo "$as_me: failed program was:" >&5 23592sed 's/^/| /' conftest.$ac_ext >&5 23593 23594 ac_cv_lib_attr_setxattr=no 23595fi 23596 23597rm -rf conftest.dSYM 23598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23599 conftest$ac_exeext conftest.$ac_ext 23600LIBS=$ac_check_lib_save_LIBS 23601fi 23602{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_setxattr" >&5 23603$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 23604if test $ac_cv_lib_attr_setxattr = yes; then 23605 cat >>confdefs.h <<_ACEOF 23606#define HAVE_LIBATTR 1 23607_ACEOF 23608 23609 LIBS="-lattr $LIBS" 23610 23611fi 23612 23613 23614 23615for ac_func in extattr_get_file extattr_list_file 23616do 23617as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23618{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 23619$as_echo_n "checking for $ac_func... " >&6; } 23620if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 23621 $as_echo_n "(cached) " >&6 23622else 23623 cat >conftest.$ac_ext <<_ACEOF 23624/* confdefs.h. */ 23625_ACEOF 23626cat confdefs.h >>conftest.$ac_ext 23627cat >>conftest.$ac_ext <<_ACEOF 23628/* end confdefs.h. */ 23629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23630 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23631#define $ac_func innocuous_$ac_func 23632 23633/* System header to define __stub macros and hopefully few prototypes, 23634 which can conflict with char $ac_func (); below. 23635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23636 <limits.h> exists even on freestanding compilers. */ 23637 23638#ifdef __STDC__ 23639# include <limits.h> 23640#else 23641# include <assert.h> 23642#endif 23643 23644#undef $ac_func 23645 23646/* Override any GCC internal prototype to avoid an error. 23647 Use char because int might match the return type of a GCC 23648 builtin and then its argument prototype would still apply. */ 23649#ifdef __cplusplus 23650extern "C" 23651#endif 23652char $ac_func (); 23653/* The GNU C library defines this for functions which it implements 23654 to always fail with ENOSYS. Some functions are actually named 23655 something starting with __ and the normal name is an alias. */ 23656#if defined __stub_$ac_func || defined __stub___$ac_func 23657choke me 23658#endif 23659 23660int 23661main () 23662{ 23663return $ac_func (); 23664 ; 23665 return 0; 23666} 23667_ACEOF 23668rm -f conftest.$ac_objext conftest$ac_exeext 23669if { (ac_try="$ac_link" 23670case "(($ac_try" in 23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23672 *) ac_try_echo=$ac_try;; 23673esac 23674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23675$as_echo "$ac_try_echo") >&5 23676 (eval "$ac_link") 2>conftest.er1 23677 ac_status=$? 23678 grep -v '^ *+' conftest.er1 >conftest.err 23679 rm -f conftest.er1 23680 cat conftest.err >&5 23681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23682 (exit $ac_status); } && { 23683 test -z "$ac_c_werror_flag" || 23684 test ! -s conftest.err 23685 } && test -s conftest$ac_exeext && { 23686 test "$cross_compiling" = yes || 23687 $as_test_x conftest$ac_exeext 23688 }; then 23689 eval "$as_ac_var=yes" 23690else 23691 $as_echo "$as_me: failed program was:" >&5 23692sed 's/^/| /' conftest.$ac_ext >&5 23693 23694 eval "$as_ac_var=no" 23695fi 23696 23697rm -rf conftest.dSYM 23698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23699 conftest$ac_exeext conftest.$ac_ext 23700fi 23701ac_res=`eval 'as_val=${'$as_ac_var'} 23702 $as_echo "$as_val"'` 23703 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 23704$as_echo "$ac_res" >&6; } 23705if test `eval 'as_val=${'$as_ac_var'} 23706 $as_echo "$as_val"'` = yes; then 23707 cat >>confdefs.h <<_ACEOF 23708#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23709_ACEOF 23710 23711fi 23712done 23713 23714 23715 23716for ac_func in extattr_set_fd extattr_set_file 23717do 23718as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23719{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 23720$as_echo_n "checking for $ac_func... " >&6; } 23721if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 23722 $as_echo_n "(cached) " >&6 23723else 23724 cat >conftest.$ac_ext <<_ACEOF 23725/* confdefs.h. */ 23726_ACEOF 23727cat confdefs.h >>conftest.$ac_ext 23728cat >>conftest.$ac_ext <<_ACEOF 23729/* end confdefs.h. */ 23730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23731 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23732#define $ac_func innocuous_$ac_func 23733 23734/* System header to define __stub macros and hopefully few prototypes, 23735 which can conflict with char $ac_func (); below. 23736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23737 <limits.h> exists even on freestanding compilers. */ 23738 23739#ifdef __STDC__ 23740# include <limits.h> 23741#else 23742# include <assert.h> 23743#endif 23744 23745#undef $ac_func 23746 23747/* Override any GCC internal prototype to avoid an error. 23748 Use char because int might match the return type of a GCC 23749 builtin and then its argument prototype would still apply. */ 23750#ifdef __cplusplus 23751extern "C" 23752#endif 23753char $ac_func (); 23754/* The GNU C library defines this for functions which it implements 23755 to always fail with ENOSYS. Some functions are actually named 23756 something starting with __ and the normal name is an alias. */ 23757#if defined __stub_$ac_func || defined __stub___$ac_func 23758choke me 23759#endif 23760 23761int 23762main () 23763{ 23764return $ac_func (); 23765 ; 23766 return 0; 23767} 23768_ACEOF 23769rm -f conftest.$ac_objext conftest$ac_exeext 23770if { (ac_try="$ac_link" 23771case "(($ac_try" in 23772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23773 *) ac_try_echo=$ac_try;; 23774esac 23775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23776$as_echo "$ac_try_echo") >&5 23777 (eval "$ac_link") 2>conftest.er1 23778 ac_status=$? 23779 grep -v '^ *+' conftest.er1 >conftest.err 23780 rm -f conftest.er1 23781 cat conftest.err >&5 23782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23783 (exit $ac_status); } && { 23784 test -z "$ac_c_werror_flag" || 23785 test ! -s conftest.err 23786 } && test -s conftest$ac_exeext && { 23787 test "$cross_compiling" = yes || 23788 $as_test_x conftest$ac_exeext 23789 }; then 23790 eval "$as_ac_var=yes" 23791else 23792 $as_echo "$as_me: failed program was:" >&5 23793sed 's/^/| /' conftest.$ac_ext >&5 23794 23795 eval "$as_ac_var=no" 23796fi 23797 23798rm -rf conftest.dSYM 23799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23800 conftest$ac_exeext conftest.$ac_ext 23801fi 23802ac_res=`eval 'as_val=${'$as_ac_var'} 23803 $as_echo "$as_val"'` 23804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 23805$as_echo "$ac_res" >&6; } 23806if test `eval 'as_val=${'$as_ac_var'} 23807 $as_echo "$as_val"'` = yes; then 23808 cat >>confdefs.h <<_ACEOF 23809#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23810_ACEOF 23811 23812fi 23813done 23814 23815 23816 23817for ac_func in fsetxattr getxattr 23818do 23819as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23820{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 23821$as_echo_n "checking for $ac_func... " >&6; } 23822if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 23823 $as_echo_n "(cached) " >&6 23824else 23825 cat >conftest.$ac_ext <<_ACEOF 23826/* confdefs.h. */ 23827_ACEOF 23828cat confdefs.h >>conftest.$ac_ext 23829cat >>conftest.$ac_ext <<_ACEOF 23830/* end confdefs.h. */ 23831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23832 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23833#define $ac_func innocuous_$ac_func 23834 23835/* System header to define __stub macros and hopefully few prototypes, 23836 which can conflict with char $ac_func (); below. 23837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23838 <limits.h> exists even on freestanding compilers. */ 23839 23840#ifdef __STDC__ 23841# include <limits.h> 23842#else 23843# include <assert.h> 23844#endif 23845 23846#undef $ac_func 23847 23848/* Override any GCC internal prototype to avoid an error. 23849 Use char because int might match the return type of a GCC 23850 builtin and then its argument prototype would still apply. */ 23851#ifdef __cplusplus 23852extern "C" 23853#endif 23854char $ac_func (); 23855/* The GNU C library defines this for functions which it implements 23856 to always fail with ENOSYS. Some functions are actually named 23857 something starting with __ and the normal name is an alias. */ 23858#if defined __stub_$ac_func || defined __stub___$ac_func 23859choke me 23860#endif 23861 23862int 23863main () 23864{ 23865return $ac_func (); 23866 ; 23867 return 0; 23868} 23869_ACEOF 23870rm -f conftest.$ac_objext conftest$ac_exeext 23871if { (ac_try="$ac_link" 23872case "(($ac_try" in 23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23874 *) ac_try_echo=$ac_try;; 23875esac 23876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23877$as_echo "$ac_try_echo") >&5 23878 (eval "$ac_link") 2>conftest.er1 23879 ac_status=$? 23880 grep -v '^ *+' conftest.er1 >conftest.err 23881 rm -f conftest.er1 23882 cat conftest.err >&5 23883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23884 (exit $ac_status); } && { 23885 test -z "$ac_c_werror_flag" || 23886 test ! -s conftest.err 23887 } && test -s conftest$ac_exeext && { 23888 test "$cross_compiling" = yes || 23889 $as_test_x conftest$ac_exeext 23890 }; then 23891 eval "$as_ac_var=yes" 23892else 23893 $as_echo "$as_me: failed program was:" >&5 23894sed 's/^/| /' conftest.$ac_ext >&5 23895 23896 eval "$as_ac_var=no" 23897fi 23898 23899rm -rf conftest.dSYM 23900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23901 conftest$ac_exeext conftest.$ac_ext 23902fi 23903ac_res=`eval 'as_val=${'$as_ac_var'} 23904 $as_echo "$as_val"'` 23905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 23906$as_echo "$ac_res" >&6; } 23907if test `eval 'as_val=${'$as_ac_var'} 23908 $as_echo "$as_val"'` = yes; then 23909 cat >>confdefs.h <<_ACEOF 23910#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23911_ACEOF 23912 23913fi 23914done 23915 23916 23917 23918 23919 23920for ac_func in lgetxattr listxattr llistxattr lsetxattr 23921do 23922as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23923{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 23924$as_echo_n "checking for $ac_func... " >&6; } 23925if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 23926 $as_echo_n "(cached) " >&6 23927else 23928 cat >conftest.$ac_ext <<_ACEOF 23929/* confdefs.h. */ 23930_ACEOF 23931cat confdefs.h >>conftest.$ac_ext 23932cat >>conftest.$ac_ext <<_ACEOF 23933/* end confdefs.h. */ 23934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23935 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23936#define $ac_func innocuous_$ac_func 23937 23938/* System header to define __stub macros and hopefully few prototypes, 23939 which can conflict with char $ac_func (); below. 23940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23941 <limits.h> exists even on freestanding compilers. */ 23942 23943#ifdef __STDC__ 23944# include <limits.h> 23945#else 23946# include <assert.h> 23947#endif 23948 23949#undef $ac_func 23950 23951/* Override any GCC internal prototype to avoid an error. 23952 Use char because int might match the return type of a GCC 23953 builtin and then its argument prototype would still apply. */ 23954#ifdef __cplusplus 23955extern "C" 23956#endif 23957char $ac_func (); 23958/* The GNU C library defines this for functions which it implements 23959 to always fail with ENOSYS. Some functions are actually named 23960 something starting with __ and the normal name is an alias. */ 23961#if defined __stub_$ac_func || defined __stub___$ac_func 23962choke me 23963#endif 23964 23965int 23966main () 23967{ 23968return $ac_func (); 23969 ; 23970 return 0; 23971} 23972_ACEOF 23973rm -f conftest.$ac_objext conftest$ac_exeext 23974if { (ac_try="$ac_link" 23975case "(($ac_try" in 23976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23977 *) ac_try_echo=$ac_try;; 23978esac 23979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23980$as_echo "$ac_try_echo") >&5 23981 (eval "$ac_link") 2>conftest.er1 23982 ac_status=$? 23983 grep -v '^ *+' conftest.er1 >conftest.err 23984 rm -f conftest.er1 23985 cat conftest.err >&5 23986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23987 (exit $ac_status); } && { 23988 test -z "$ac_c_werror_flag" || 23989 test ! -s conftest.err 23990 } && test -s conftest$ac_exeext && { 23991 test "$cross_compiling" = yes || 23992 $as_test_x conftest$ac_exeext 23993 }; then 23994 eval "$as_ac_var=yes" 23995else 23996 $as_echo "$as_me: failed program was:" >&5 23997sed 's/^/| /' conftest.$ac_ext >&5 23998 23999 eval "$as_ac_var=no" 24000fi 24001 24002rm -rf conftest.dSYM 24003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24004 conftest$ac_exeext conftest.$ac_ext 24005fi 24006ac_res=`eval 'as_val=${'$as_ac_var'} 24007 $as_echo "$as_val"'` 24008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 24009$as_echo "$ac_res" >&6; } 24010if test `eval 'as_val=${'$as_ac_var'} 24011 $as_echo "$as_val"'` = yes; then 24012 cat >>confdefs.h <<_ACEOF 24013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24014_ACEOF 24015 24016fi 24017done 24018 24019fi 24020 24021# Check for ACL support 24022# 24023# The ACL support in libarchive is written against the POSIX1e draft, 24024# which was never officially approved and varies quite a bit across 24025# platforms. Worse, some systems have completely non-POSIX acl functions, 24026# which makes the following checks rather more complex than I would like. 24027# 24028# Check whether --enable-acl was given. 24029if test "${enable_acl+set}" = set; then 24030 enableval=$enable_acl; 24031fi 24032 24033 24034if test "x$enable_acl" != "xno"; then 24035 24036for ac_header in sys/acl.h 24037do 24038as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 24041$as_echo_n "checking for $ac_header... " >&6; } 24042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24043 $as_echo_n "(cached) " >&6 24044fi 24045ac_res=`eval 'as_val=${'$as_ac_Header'} 24046 $as_echo "$as_val"'` 24047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 24048$as_echo "$ac_res" >&6; } 24049else 24050 # Is the header compilable? 24051{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 24052$as_echo_n "checking $ac_header usability... " >&6; } 24053cat >conftest.$ac_ext <<_ACEOF 24054/* confdefs.h. */ 24055_ACEOF 24056cat confdefs.h >>conftest.$ac_ext 24057cat >>conftest.$ac_ext <<_ACEOF 24058/* end confdefs.h. */ 24059$ac_includes_default 24060#include <$ac_header> 24061_ACEOF 24062rm -f conftest.$ac_objext 24063if { (ac_try="$ac_compile" 24064case "(($ac_try" in 24065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24066 *) ac_try_echo=$ac_try;; 24067esac 24068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24069$as_echo "$ac_try_echo") >&5 24070 (eval "$ac_compile") 2>conftest.er1 24071 ac_status=$? 24072 grep -v '^ *+' conftest.er1 >conftest.err 24073 rm -f conftest.er1 24074 cat conftest.err >&5 24075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24076 (exit $ac_status); } && { 24077 test -z "$ac_c_werror_flag" || 24078 test ! -s conftest.err 24079 } && test -s conftest.$ac_objext; then 24080 ac_header_compiler=yes 24081else 24082 $as_echo "$as_me: failed program was:" >&5 24083sed 's/^/| /' conftest.$ac_ext >&5 24084 24085 ac_header_compiler=no 24086fi 24087 24088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24089{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24090$as_echo "$ac_header_compiler" >&6; } 24091 24092# Is the header present? 24093{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 24094$as_echo_n "checking $ac_header presence... " >&6; } 24095cat >conftest.$ac_ext <<_ACEOF 24096/* confdefs.h. */ 24097_ACEOF 24098cat confdefs.h >>conftest.$ac_ext 24099cat >>conftest.$ac_ext <<_ACEOF 24100/* end confdefs.h. */ 24101#include <$ac_header> 24102_ACEOF 24103if { (ac_try="$ac_cpp conftest.$ac_ext" 24104case "(($ac_try" in 24105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24106 *) ac_try_echo=$ac_try;; 24107esac 24108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24109$as_echo "$ac_try_echo") >&5 24110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 24111 ac_status=$? 24112 grep -v '^ *+' conftest.er1 >conftest.err 24113 rm -f conftest.er1 24114 cat conftest.err >&5 24115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24116 (exit $ac_status); } >/dev/null && { 24117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 24118 test ! -s conftest.err 24119 }; then 24120 ac_header_preproc=yes 24121else 24122 $as_echo "$as_me: failed program was:" >&5 24123sed 's/^/| /' conftest.$ac_ext >&5 24124 24125 ac_header_preproc=no 24126fi 24127 24128rm -f conftest.err conftest.$ac_ext 24129{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24130$as_echo "$ac_header_preproc" >&6; } 24131 24132# So? What about this header? 24133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24134 yes:no: ) 24135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24136$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24138$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24139 ac_header_preproc=yes 24140 ;; 24141 no:yes:* ) 24142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24143$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24145$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24147$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24149$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24151$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24153$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24154 ( cat <<\_ASBOX 24155## ----------------------------------- ## 24156## Report this to kientzle@freebsd.org ## 24157## ----------------------------------- ## 24158_ASBOX 24159 ) | sed "s/^/$as_me: WARNING: /" >&2 24160 ;; 24161esac 24162{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 24163$as_echo_n "checking for $ac_header... " >&6; } 24164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24165 $as_echo_n "(cached) " >&6 24166else 24167 eval "$as_ac_Header=\$ac_header_preproc" 24168fi 24169ac_res=`eval 'as_val=${'$as_ac_Header'} 24170 $as_echo "$as_val"'` 24171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 24172$as_echo "$ac_res" >&6; } 24173 24174fi 24175if test `eval 'as_val=${'$as_ac_Header'} 24176 $as_echo "$as_val"'` = yes; then 24177 cat >>confdefs.h <<_ACEOF 24178#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24179_ACEOF 24180 24181fi 24182 24183done 24184 24185 24186{ $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 24187$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 24188if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then 24189 $as_echo_n "(cached) " >&6 24190else 24191 ac_check_lib_save_LIBS=$LIBS 24192LIBS="-lacl $LIBS" 24193cat >conftest.$ac_ext <<_ACEOF 24194/* confdefs.h. */ 24195_ACEOF 24196cat confdefs.h >>conftest.$ac_ext 24197cat >>conftest.$ac_ext <<_ACEOF 24198/* end confdefs.h. */ 24199 24200/* Override any GCC internal prototype to avoid an error. 24201 Use char because int might match the return type of a GCC 24202 builtin and then its argument prototype would still apply. */ 24203#ifdef __cplusplus 24204extern "C" 24205#endif 24206char acl_get_file (); 24207int 24208main () 24209{ 24210return acl_get_file (); 24211 ; 24212 return 0; 24213} 24214_ACEOF 24215rm -f conftest.$ac_objext conftest$ac_exeext 24216if { (ac_try="$ac_link" 24217case "(($ac_try" in 24218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24219 *) ac_try_echo=$ac_try;; 24220esac 24221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24222$as_echo "$ac_try_echo") >&5 24223 (eval "$ac_link") 2>conftest.er1 24224 ac_status=$? 24225 grep -v '^ *+' conftest.er1 >conftest.err 24226 rm -f conftest.er1 24227 cat conftest.err >&5 24228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24229 (exit $ac_status); } && { 24230 test -z "$ac_c_werror_flag" || 24231 test ! -s conftest.err 24232 } && test -s conftest$ac_exeext && { 24233 test "$cross_compiling" = yes || 24234 $as_test_x conftest$ac_exeext 24235 }; then 24236 ac_cv_lib_acl_acl_get_file=yes 24237else 24238 $as_echo "$as_me: failed program was:" >&5 24239sed 's/^/| /' conftest.$ac_ext >&5 24240 24241 ac_cv_lib_acl_acl_get_file=no 24242fi 24243 24244rm -rf conftest.dSYM 24245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24246 conftest$ac_exeext conftest.$ac_ext 24247LIBS=$ac_check_lib_save_LIBS 24248fi 24249{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 24250$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 24251if test $ac_cv_lib_acl_acl_get_file = yes; then 24252 cat >>confdefs.h <<_ACEOF 24253#define HAVE_LIBACL 1 24254_ACEOF 24255 24256 LIBS="-lacl $LIBS" 24257 24258fi 24259 24260 24261 24262 24263 24264 24265for ac_func in acl_create_entry acl_init acl_set_fd acl_set_fd_np acl_set_file 24266do 24267as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24268{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 24269$as_echo_n "checking for $ac_func... " >&6; } 24270if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 24271 $as_echo_n "(cached) " >&6 24272else 24273 cat >conftest.$ac_ext <<_ACEOF 24274/* confdefs.h. */ 24275_ACEOF 24276cat confdefs.h >>conftest.$ac_ext 24277cat >>conftest.$ac_ext <<_ACEOF 24278/* end confdefs.h. */ 24279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24280 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24281#define $ac_func innocuous_$ac_func 24282 24283/* System header to define __stub macros and hopefully few prototypes, 24284 which can conflict with char $ac_func (); below. 24285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24286 <limits.h> exists even on freestanding compilers. */ 24287 24288#ifdef __STDC__ 24289# include <limits.h> 24290#else 24291# include <assert.h> 24292#endif 24293 24294#undef $ac_func 24295 24296/* Override any GCC internal prototype to avoid an error. 24297 Use char because int might match the return type of a GCC 24298 builtin and then its argument prototype would still apply. */ 24299#ifdef __cplusplus 24300extern "C" 24301#endif 24302char $ac_func (); 24303/* The GNU C library defines this for functions which it implements 24304 to always fail with ENOSYS. Some functions are actually named 24305 something starting with __ and the normal name is an alias. */ 24306#if defined __stub_$ac_func || defined __stub___$ac_func 24307choke me 24308#endif 24309 24310int 24311main () 24312{ 24313return $ac_func (); 24314 ; 24315 return 0; 24316} 24317_ACEOF 24318rm -f conftest.$ac_objext conftest$ac_exeext 24319if { (ac_try="$ac_link" 24320case "(($ac_try" in 24321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24322 *) ac_try_echo=$ac_try;; 24323esac 24324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24325$as_echo "$ac_try_echo") >&5 24326 (eval "$ac_link") 2>conftest.er1 24327 ac_status=$? 24328 grep -v '^ *+' conftest.er1 >conftest.err 24329 rm -f conftest.er1 24330 cat conftest.err >&5 24331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24332 (exit $ac_status); } && { 24333 test -z "$ac_c_werror_flag" || 24334 test ! -s conftest.err 24335 } && test -s conftest$ac_exeext && { 24336 test "$cross_compiling" = yes || 24337 $as_test_x conftest$ac_exeext 24338 }; then 24339 eval "$as_ac_var=yes" 24340else 24341 $as_echo "$as_me: failed program was:" >&5 24342sed 's/^/| /' conftest.$ac_ext >&5 24343 24344 eval "$as_ac_var=no" 24345fi 24346 24347rm -rf conftest.dSYM 24348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24349 conftest$ac_exeext conftest.$ac_ext 24350fi 24351ac_res=`eval 'as_val=${'$as_ac_var'} 24352 $as_echo "$as_val"'` 24353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 24354$as_echo "$ac_res" >&6; } 24355if test `eval 'as_val=${'$as_ac_var'} 24356 $as_echo "$as_val"'` = yes; then 24357 cat >>confdefs.h <<_ACEOF 24358#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24359_ACEOF 24360 24361fi 24362done 24363 24364 24365 { $as_echo "$as_me:$LINENO: checking for acl_permset_t" >&5 24366$as_echo_n "checking for acl_permset_t... " >&6; } 24367if test "${ac_cv_type_acl_permset_t+set}" = set; then 24368 $as_echo_n "(cached) " >&6 24369else 24370 ac_cv_type_acl_permset_t=no 24371cat >conftest.$ac_ext <<_ACEOF 24372/* confdefs.h. */ 24373_ACEOF 24374cat confdefs.h >>conftest.$ac_ext 24375cat >>conftest.$ac_ext <<_ACEOF 24376/* end confdefs.h. */ 24377#if HAVE_SYS_TYPES_H 24378 #include <sys/types.h> 24379 #endif 24380 #if HAVE_SYS_ACL_H 24381 #include <sys/acl.h> 24382 #endif 24383 24384 24385int 24386main () 24387{ 24388if (sizeof (acl_permset_t)) 24389 return 0; 24390 ; 24391 return 0; 24392} 24393_ACEOF 24394rm -f conftest.$ac_objext 24395if { (ac_try="$ac_compile" 24396case "(($ac_try" in 24397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24398 *) ac_try_echo=$ac_try;; 24399esac 24400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24401$as_echo "$ac_try_echo") >&5 24402 (eval "$ac_compile") 2>conftest.er1 24403 ac_status=$? 24404 grep -v '^ *+' conftest.er1 >conftest.err 24405 rm -f conftest.er1 24406 cat conftest.err >&5 24407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24408 (exit $ac_status); } && { 24409 test -z "$ac_c_werror_flag" || 24410 test ! -s conftest.err 24411 } && test -s conftest.$ac_objext; then 24412 cat >conftest.$ac_ext <<_ACEOF 24413/* confdefs.h. */ 24414_ACEOF 24415cat confdefs.h >>conftest.$ac_ext 24416cat >>conftest.$ac_ext <<_ACEOF 24417/* end confdefs.h. */ 24418#if HAVE_SYS_TYPES_H 24419 #include <sys/types.h> 24420 #endif 24421 #if HAVE_SYS_ACL_H 24422 #include <sys/acl.h> 24423 #endif 24424 24425 24426int 24427main () 24428{ 24429if (sizeof ((acl_permset_t))) 24430 return 0; 24431 ; 24432 return 0; 24433} 24434_ACEOF 24435rm -f conftest.$ac_objext 24436if { (ac_try="$ac_compile" 24437case "(($ac_try" in 24438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24439 *) ac_try_echo=$ac_try;; 24440esac 24441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24442$as_echo "$ac_try_echo") >&5 24443 (eval "$ac_compile") 2>conftest.er1 24444 ac_status=$? 24445 grep -v '^ *+' conftest.er1 >conftest.err 24446 rm -f conftest.er1 24447 cat conftest.err >&5 24448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24449 (exit $ac_status); } && { 24450 test -z "$ac_c_werror_flag" || 24451 test ! -s conftest.err 24452 } && test -s conftest.$ac_objext; then 24453 : 24454else 24455 $as_echo "$as_me: failed program was:" >&5 24456sed 's/^/| /' conftest.$ac_ext >&5 24457 24458 ac_cv_type_acl_permset_t=yes 24459fi 24460 24461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24462else 24463 $as_echo "$as_me: failed program was:" >&5 24464sed 's/^/| /' conftest.$ac_ext >&5 24465 24466 24467fi 24468 24469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24470fi 24471{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_acl_permset_t" >&5 24472$as_echo "$ac_cv_type_acl_permset_t" >&6; } 24473if test $ac_cv_type_acl_permset_t = yes; then 24474 24475cat >>confdefs.h <<_ACEOF 24476#define HAVE_ACL_PERMSET_T 1 24477_ACEOF 24478 24479 24480fi 24481 24482 24483 # The "acl_get_perm()" function was omitted from the POSIX draft. 24484 # (It's a pretty obvious oversight; otherwise, there's no way to 24485 # test for specific permissions in a permset.) Linux uses the obvious 24486 # name, FreeBSD adds _np to mark it as "non-Posix extension." 24487 # Test for both as a double-check that we really have POSIX-style ACL support. 24488 24489 24490 24491 24492for ac_func in acl_get_perm_np acl_get_perm acl_get_link acl_get_link_np 24493do 24494as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24495{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 24496$as_echo_n "checking for $ac_func... " >&6; } 24497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 24498 $as_echo_n "(cached) " >&6 24499else 24500 cat >conftest.$ac_ext <<_ACEOF 24501/* confdefs.h. */ 24502_ACEOF 24503cat confdefs.h >>conftest.$ac_ext 24504cat >>conftest.$ac_ext <<_ACEOF 24505/* end confdefs.h. */ 24506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24507 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24508#define $ac_func innocuous_$ac_func 24509 24510/* System header to define __stub macros and hopefully few prototypes, 24511 which can conflict with char $ac_func (); below. 24512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24513 <limits.h> exists even on freestanding compilers. */ 24514 24515#ifdef __STDC__ 24516# include <limits.h> 24517#else 24518# include <assert.h> 24519#endif 24520 24521#undef $ac_func 24522 24523/* Override any GCC internal prototype to avoid an error. 24524 Use char because int might match the return type of a GCC 24525 builtin and then its argument prototype would still apply. */ 24526#ifdef __cplusplus 24527extern "C" 24528#endif 24529char $ac_func (); 24530/* The GNU C library defines this for functions which it implements 24531 to always fail with ENOSYS. Some functions are actually named 24532 something starting with __ and the normal name is an alias. */ 24533#if defined __stub_$ac_func || defined __stub___$ac_func 24534choke me 24535#endif 24536 24537int 24538main () 24539{ 24540return $ac_func (); 24541 ; 24542 return 0; 24543} 24544_ACEOF 24545rm -f conftest.$ac_objext conftest$ac_exeext 24546if { (ac_try="$ac_link" 24547case "(($ac_try" in 24548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24549 *) ac_try_echo=$ac_try;; 24550esac 24551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24552$as_echo "$ac_try_echo") >&5 24553 (eval "$ac_link") 2>conftest.er1 24554 ac_status=$? 24555 grep -v '^ *+' conftest.er1 >conftest.err 24556 rm -f conftest.er1 24557 cat conftest.err >&5 24558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24559 (exit $ac_status); } && { 24560 test -z "$ac_c_werror_flag" || 24561 test ! -s conftest.err 24562 } && test -s conftest$ac_exeext && { 24563 test "$cross_compiling" = yes || 24564 $as_test_x conftest$ac_exeext 24565 }; then 24566 eval "$as_ac_var=yes" 24567else 24568 $as_echo "$as_me: failed program was:" >&5 24569sed 's/^/| /' conftest.$ac_ext >&5 24570 24571 eval "$as_ac_var=no" 24572fi 24573 24574rm -rf conftest.dSYM 24575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24576 conftest$ac_exeext conftest.$ac_ext 24577fi 24578ac_res=`eval 'as_val=${'$as_ac_var'} 24579 $as_echo "$as_val"'` 24580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 24581$as_echo "$ac_res" >&6; } 24582if test `eval 'as_val=${'$as_ac_var'} 24583 $as_echo "$as_val"'` = yes; then 24584 cat >>confdefs.h <<_ACEOF 24585#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24586_ACEOF 24587 24588fi 24589done 24590 24591 24592 # MacOS has an acl.h that isn't POSIX. It can be detected by 24593 # checking for ACL_USER 24594 { $as_echo "$as_me:$LINENO: checking whether ACL_USER is declared" >&5 24595$as_echo_n "checking whether ACL_USER is declared... " >&6; } 24596if test "${ac_cv_have_decl_ACL_USER+set}" = set; then 24597 $as_echo_n "(cached) " >&6 24598else 24599 cat >conftest.$ac_ext <<_ACEOF 24600/* confdefs.h. */ 24601_ACEOF 24602cat confdefs.h >>conftest.$ac_ext 24603cat >>conftest.$ac_ext <<_ACEOF 24604/* end confdefs.h. */ 24605#include <sys/acl.h> 24606 24607int 24608main () 24609{ 24610#ifndef ACL_USER 24611 (void) ACL_USER; 24612#endif 24613 24614 ; 24615 return 0; 24616} 24617_ACEOF 24618rm -f conftest.$ac_objext 24619if { (ac_try="$ac_compile" 24620case "(($ac_try" in 24621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24622 *) ac_try_echo=$ac_try;; 24623esac 24624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24625$as_echo "$ac_try_echo") >&5 24626 (eval "$ac_compile") 2>conftest.er1 24627 ac_status=$? 24628 grep -v '^ *+' conftest.er1 >conftest.err 24629 rm -f conftest.er1 24630 cat conftest.err >&5 24631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24632 (exit $ac_status); } && { 24633 test -z "$ac_c_werror_flag" || 24634 test ! -s conftest.err 24635 } && test -s conftest.$ac_objext; then 24636 ac_cv_have_decl_ACL_USER=yes 24637else 24638 $as_echo "$as_me: failed program was:" >&5 24639sed 's/^/| /' conftest.$ac_ext >&5 24640 24641 ac_cv_have_decl_ACL_USER=no 24642fi 24643 24644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24645fi 24646{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ACL_USER" >&5 24647$as_echo "$ac_cv_have_decl_ACL_USER" >&6; } 24648if test $ac_cv_have_decl_ACL_USER = yes; then 24649 24650cat >>confdefs.h <<\_ACEOF 24651#define HAVE_ACL_USER 1 24652_ACEOF 24653 24654fi 24655 24656fi 24657 24658# Additional requirements 24659# Check whether --enable-largefile was given. 24660if test "${enable_largefile+set}" = set; then 24661 enableval=$enable_largefile; 24662fi 24663 24664if test "$enable_largefile" != no; then 24665 24666 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 24667$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 24668if test "${ac_cv_sys_largefile_CC+set}" = set; then 24669 $as_echo_n "(cached) " >&6 24670else 24671 ac_cv_sys_largefile_CC=no 24672 if test "$GCC" != yes; then 24673 ac_save_CC=$CC 24674 while :; do 24675 # IRIX 6.2 and later do not support large files by default, 24676 # so use the C compiler's -n32 option if that helps. 24677 cat >conftest.$ac_ext <<_ACEOF 24678/* confdefs.h. */ 24679_ACEOF 24680cat confdefs.h >>conftest.$ac_ext 24681cat >>conftest.$ac_ext <<_ACEOF 24682/* end confdefs.h. */ 24683#include <sys/types.h> 24684 /* Check that off_t can represent 2**63 - 1 correctly. 24685 We can't simply define LARGE_OFF_T to be 9223372036854775807, 24686 since some C++ compilers masquerading as C compilers 24687 incorrectly reject 9223372036854775807. */ 24688#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 24689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 24690 && LARGE_OFF_T % 2147483647 == 1) 24691 ? 1 : -1]; 24692int 24693main () 24694{ 24695 24696 ; 24697 return 0; 24698} 24699_ACEOF 24700 rm -f conftest.$ac_objext 24701if { (ac_try="$ac_compile" 24702case "(($ac_try" in 24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24704 *) ac_try_echo=$ac_try;; 24705esac 24706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24707$as_echo "$ac_try_echo") >&5 24708 (eval "$ac_compile") 2>conftest.er1 24709 ac_status=$? 24710 grep -v '^ *+' conftest.er1 >conftest.err 24711 rm -f conftest.er1 24712 cat conftest.err >&5 24713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24714 (exit $ac_status); } && { 24715 test -z "$ac_c_werror_flag" || 24716 test ! -s conftest.err 24717 } && test -s conftest.$ac_objext; then 24718 break 24719else 24720 $as_echo "$as_me: failed program was:" >&5 24721sed 's/^/| /' conftest.$ac_ext >&5 24722 24723 24724fi 24725 24726rm -f core conftest.err conftest.$ac_objext 24727 CC="$CC -n32" 24728 rm -f conftest.$ac_objext 24729if { (ac_try="$ac_compile" 24730case "(($ac_try" in 24731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24732 *) ac_try_echo=$ac_try;; 24733esac 24734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24735$as_echo "$ac_try_echo") >&5 24736 (eval "$ac_compile") 2>conftest.er1 24737 ac_status=$? 24738 grep -v '^ *+' conftest.er1 >conftest.err 24739 rm -f conftest.er1 24740 cat conftest.err >&5 24741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24742 (exit $ac_status); } && { 24743 test -z "$ac_c_werror_flag" || 24744 test ! -s conftest.err 24745 } && test -s conftest.$ac_objext; then 24746 ac_cv_sys_largefile_CC=' -n32'; break 24747else 24748 $as_echo "$as_me: failed program was:" >&5 24749sed 's/^/| /' conftest.$ac_ext >&5 24750 24751 24752fi 24753 24754rm -f core conftest.err conftest.$ac_objext 24755 break 24756 done 24757 CC=$ac_save_CC 24758 rm -f conftest.$ac_ext 24759 fi 24760fi 24761{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 24762$as_echo "$ac_cv_sys_largefile_CC" >&6; } 24763 if test "$ac_cv_sys_largefile_CC" != no; then 24764 CC=$CC$ac_cv_sys_largefile_CC 24765 fi 24766 24767 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 24768$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 24769if test "${ac_cv_sys_file_offset_bits+set}" = set; then 24770 $as_echo_n "(cached) " >&6 24771else 24772 while :; do 24773 cat >conftest.$ac_ext <<_ACEOF 24774/* confdefs.h. */ 24775_ACEOF 24776cat confdefs.h >>conftest.$ac_ext 24777cat >>conftest.$ac_ext <<_ACEOF 24778/* end confdefs.h. */ 24779#include <sys/types.h> 24780 /* Check that off_t can represent 2**63 - 1 correctly. 24781 We can't simply define LARGE_OFF_T to be 9223372036854775807, 24782 since some C++ compilers masquerading as C compilers 24783 incorrectly reject 9223372036854775807. */ 24784#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 24785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 24786 && LARGE_OFF_T % 2147483647 == 1) 24787 ? 1 : -1]; 24788int 24789main () 24790{ 24791 24792 ; 24793 return 0; 24794} 24795_ACEOF 24796rm -f conftest.$ac_objext 24797if { (ac_try="$ac_compile" 24798case "(($ac_try" in 24799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24800 *) ac_try_echo=$ac_try;; 24801esac 24802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24803$as_echo "$ac_try_echo") >&5 24804 (eval "$ac_compile") 2>conftest.er1 24805 ac_status=$? 24806 grep -v '^ *+' conftest.er1 >conftest.err 24807 rm -f conftest.er1 24808 cat conftest.err >&5 24809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24810 (exit $ac_status); } && { 24811 test -z "$ac_c_werror_flag" || 24812 test ! -s conftest.err 24813 } && test -s conftest.$ac_objext; then 24814 ac_cv_sys_file_offset_bits=no; break 24815else 24816 $as_echo "$as_me: failed program was:" >&5 24817sed 's/^/| /' conftest.$ac_ext >&5 24818 24819 24820fi 24821 24822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24823 cat >conftest.$ac_ext <<_ACEOF 24824/* confdefs.h. */ 24825_ACEOF 24826cat confdefs.h >>conftest.$ac_ext 24827cat >>conftest.$ac_ext <<_ACEOF 24828/* end confdefs.h. */ 24829#define _FILE_OFFSET_BITS 64 24830#include <sys/types.h> 24831 /* Check that off_t can represent 2**63 - 1 correctly. 24832 We can't simply define LARGE_OFF_T to be 9223372036854775807, 24833 since some C++ compilers masquerading as C compilers 24834 incorrectly reject 9223372036854775807. */ 24835#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 24836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 24837 && LARGE_OFF_T % 2147483647 == 1) 24838 ? 1 : -1]; 24839int 24840main () 24841{ 24842 24843 ; 24844 return 0; 24845} 24846_ACEOF 24847rm -f conftest.$ac_objext 24848if { (ac_try="$ac_compile" 24849case "(($ac_try" in 24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24851 *) ac_try_echo=$ac_try;; 24852esac 24853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24854$as_echo "$ac_try_echo") >&5 24855 (eval "$ac_compile") 2>conftest.er1 24856 ac_status=$? 24857 grep -v '^ *+' conftest.er1 >conftest.err 24858 rm -f conftest.er1 24859 cat conftest.err >&5 24860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24861 (exit $ac_status); } && { 24862 test -z "$ac_c_werror_flag" || 24863 test ! -s conftest.err 24864 } && test -s conftest.$ac_objext; then 24865 ac_cv_sys_file_offset_bits=64; break 24866else 24867 $as_echo "$as_me: failed program was:" >&5 24868sed 's/^/| /' conftest.$ac_ext >&5 24869 24870 24871fi 24872 24873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24874 ac_cv_sys_file_offset_bits=unknown 24875 break 24876done 24877fi 24878{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 24879$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 24880case $ac_cv_sys_file_offset_bits in #( 24881 no | unknown) ;; 24882 *) 24883cat >>confdefs.h <<_ACEOF 24884#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 24885_ACEOF 24886;; 24887esac 24888rm -rf conftest* 24889 if test $ac_cv_sys_file_offset_bits = unknown; then 24890 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 24891$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 24892if test "${ac_cv_sys_large_files+set}" = set; then 24893 $as_echo_n "(cached) " >&6 24894else 24895 while :; do 24896 cat >conftest.$ac_ext <<_ACEOF 24897/* confdefs.h. */ 24898_ACEOF 24899cat confdefs.h >>conftest.$ac_ext 24900cat >>conftest.$ac_ext <<_ACEOF 24901/* end confdefs.h. */ 24902#include <sys/types.h> 24903 /* Check that off_t can represent 2**63 - 1 correctly. 24904 We can't simply define LARGE_OFF_T to be 9223372036854775807, 24905 since some C++ compilers masquerading as C compilers 24906 incorrectly reject 9223372036854775807. */ 24907#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 24908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 24909 && LARGE_OFF_T % 2147483647 == 1) 24910 ? 1 : -1]; 24911int 24912main () 24913{ 24914 24915 ; 24916 return 0; 24917} 24918_ACEOF 24919rm -f conftest.$ac_objext 24920if { (ac_try="$ac_compile" 24921case "(($ac_try" in 24922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24923 *) ac_try_echo=$ac_try;; 24924esac 24925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24926$as_echo "$ac_try_echo") >&5 24927 (eval "$ac_compile") 2>conftest.er1 24928 ac_status=$? 24929 grep -v '^ *+' conftest.er1 >conftest.err 24930 rm -f conftest.er1 24931 cat conftest.err >&5 24932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24933 (exit $ac_status); } && { 24934 test -z "$ac_c_werror_flag" || 24935 test ! -s conftest.err 24936 } && test -s conftest.$ac_objext; then 24937 ac_cv_sys_large_files=no; break 24938else 24939 $as_echo "$as_me: failed program was:" >&5 24940sed 's/^/| /' conftest.$ac_ext >&5 24941 24942 24943fi 24944 24945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24946 cat >conftest.$ac_ext <<_ACEOF 24947/* confdefs.h. */ 24948_ACEOF 24949cat confdefs.h >>conftest.$ac_ext 24950cat >>conftest.$ac_ext <<_ACEOF 24951/* end confdefs.h. */ 24952#define _LARGE_FILES 1 24953#include <sys/types.h> 24954 /* Check that off_t can represent 2**63 - 1 correctly. 24955 We can't simply define LARGE_OFF_T to be 9223372036854775807, 24956 since some C++ compilers masquerading as C compilers 24957 incorrectly reject 9223372036854775807. */ 24958#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 24959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 24960 && LARGE_OFF_T % 2147483647 == 1) 24961 ? 1 : -1]; 24962int 24963main () 24964{ 24965 24966 ; 24967 return 0; 24968} 24969_ACEOF 24970rm -f conftest.$ac_objext 24971if { (ac_try="$ac_compile" 24972case "(($ac_try" in 24973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24974 *) ac_try_echo=$ac_try;; 24975esac 24976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24977$as_echo "$ac_try_echo") >&5 24978 (eval "$ac_compile") 2>conftest.er1 24979 ac_status=$? 24980 grep -v '^ *+' conftest.er1 >conftest.err 24981 rm -f conftest.er1 24982 cat conftest.err >&5 24983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24984 (exit $ac_status); } && { 24985 test -z "$ac_c_werror_flag" || 24986 test ! -s conftest.err 24987 } && test -s conftest.$ac_objext; then 24988 ac_cv_sys_large_files=1; break 24989else 24990 $as_echo "$as_me: failed program was:" >&5 24991sed 's/^/| /' conftest.$ac_ext >&5 24992 24993 24994fi 24995 24996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24997 ac_cv_sys_large_files=unknown 24998 break 24999done 25000fi 25001{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 25002$as_echo "$ac_cv_sys_large_files" >&6; } 25003case $ac_cv_sys_large_files in #( 25004 no | unknown) ;; 25005 *) 25006cat >>confdefs.h <<_ACEOF 25007#define _LARGE_FILES $ac_cv_sys_large_files 25008_ACEOF 25009;; 25010esac 25011rm -rf conftest* 25012 fi 25013fi 25014 25015 25016cat >confcache <<\_ACEOF 25017# This file is a shell script that caches the results of configure 25018# tests run on this system so they can be shared between configure 25019# scripts and configure runs, see configure's option --config-cache. 25020# It is not useful on other systems. If it contains results you don't 25021# want to keep, you may remove or edit it. 25022# 25023# config.status only pays attention to the cache file if you give it 25024# the --recheck option to rerun configure. 25025# 25026# `ac_cv_env_foo' variables (set or unset) will be overridden when 25027# loading this file, other *unset* `ac_cv_foo' will be assigned the 25028# following values. 25029 25030_ACEOF 25031 25032# The following way of writing the cache mishandles newlines in values, 25033# but we know of no workaround that is simple, portable, and efficient. 25034# So, we kill variables containing newlines. 25035# Ultrix sh set writes to stderr and can't be redirected directly, 25036# and sets the high bit in the cache file unless we assign to the vars. 25037( 25038 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 25039 eval ac_val=\$$ac_var 25040 case $ac_val in #( 25041 *${as_nl}*) 25042 case $ac_var in #( 25043 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 25044$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 25045 esac 25046 case $ac_var in #( 25047 _ | IFS | as_nl) ;; #( 25048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 25049 *) $as_unset $ac_var ;; 25050 esac ;; 25051 esac 25052 done 25053 25054 (set) 2>&1 | 25055 case $as_nl`(ac_space=' '; set) 2>&1` in #( 25056 *${as_nl}ac_space=\ *) 25057 # `set' does not quote correctly, so add quotes (double-quote 25058 # substitution turns \\\\ into \\, and sed turns \\ into \). 25059 sed -n \ 25060 "s/'/'\\\\''/g; 25061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25062 ;; #( 25063 *) 25064 # `set' quotes correctly as required by POSIX, so do not add quotes. 25065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 25066 ;; 25067 esac | 25068 sort 25069) | 25070 sed ' 25071 /^ac_cv_env_/b end 25072 t clear 25073 :clear 25074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25075 t end 25076 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25077 :end' >>confcache 25078if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 25079 if test -w "$cache_file"; then 25080 test "x$cache_file" != "x/dev/null" && 25081 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 25082$as_echo "$as_me: updating cache $cache_file" >&6;} 25083 cat confcache >$cache_file 25084 else 25085 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 25086$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 25087 fi 25088fi 25089rm -f confcache 25090 25091test "x$prefix" = xNONE && prefix=$ac_default_prefix 25092# Let make expand exec_prefix. 25093test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25094 25095DEFS=-DHAVE_CONFIG_H 25096 25097ac_libobjs= 25098ac_ltlibobjs= 25099for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25100 # 1. Remove the extension, and $U if already installed. 25101 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 25102 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 25103 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 25104 # will be set to the directory where LIBOBJS objects are built. 25105 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 25106 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 25107done 25108LIBOBJS=$ac_libobjs 25109 25110LTLIBOBJS=$ac_ltlibobjs 25111 25112 25113if test -z "${INC_WINDOWS_FILES_TRUE}" && test -z "${INC_WINDOWS_FILES_FALSE}"; then 25114 { { $as_echo "$as_me:$LINENO: error: conditional \"INC_WINDOWS_FILES\" was never defined. 25115Usually this means the macro was only invoked conditionally." >&5 25116$as_echo "$as_me: error: conditional \"INC_WINDOWS_FILES\" was never defined. 25117Usually this means the macro was only invoked conditionally." >&2;} 25118 { (exit 1); exit 1; }; } 25119fi 25120if test -z "${INC_CYGWIN_FILES_TRUE}" && test -z "${INC_CYGWIN_FILES_FALSE}"; then 25121 { { $as_echo "$as_me:$LINENO: error: conditional \"INC_CYGWIN_FILES\" was never defined. 25122Usually this means the macro was only invoked conditionally." >&5 25123$as_echo "$as_me: error: conditional \"INC_CYGWIN_FILES\" was never defined. 25124Usually this means the macro was only invoked conditionally." >&2;} 25125 { (exit 1); exit 1; }; } 25126fi 25127if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 25128 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 25129Usually this means the macro was only invoked conditionally." >&5 25130$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 25131Usually this means the macro was only invoked conditionally." >&2;} 25132 { (exit 1); exit 1; }; } 25133fi 25134if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 25135 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 25136Usually this means the macro was only invoked conditionally." >&5 25137$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 25138Usually this means the macro was only invoked conditionally." >&2;} 25139 { (exit 1); exit 1; }; } 25140fi 25141if test -z "${BUILD_BSDTAR_TRUE}" && test -z "${BUILD_BSDTAR_FALSE}"; then 25142 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_BSDTAR\" was never defined. 25143Usually this means the macro was only invoked conditionally." >&5 25144$as_echo "$as_me: error: conditional \"BUILD_BSDTAR\" was never defined. 25145Usually this means the macro was only invoked conditionally." >&2;} 25146 { (exit 1); exit 1; }; } 25147fi 25148if test -z "${STATIC_BSDTAR_TRUE}" && test -z "${STATIC_BSDTAR_FALSE}"; then 25149 { { $as_echo "$as_me:$LINENO: error: conditional \"STATIC_BSDTAR\" was never defined. 25150Usually this means the macro was only invoked conditionally." >&5 25151$as_echo "$as_me: error: conditional \"STATIC_BSDTAR\" was never defined. 25152Usually this means the macro was only invoked conditionally." >&2;} 25153 { (exit 1); exit 1; }; } 25154fi 25155if test -z "${BUILD_BSDCPIO_TRUE}" && test -z "${BUILD_BSDCPIO_FALSE}"; then 25156 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_BSDCPIO\" was never defined. 25157Usually this means the macro was only invoked conditionally." >&5 25158$as_echo "$as_me: error: conditional \"BUILD_BSDCPIO\" was never defined. 25159Usually this means the macro was only invoked conditionally." >&2;} 25160 { (exit 1); exit 1; }; } 25161fi 25162if test -z "${STATIC_BSDCPIO_TRUE}" && test -z "${STATIC_BSDCPIO_FALSE}"; then 25163 { { $as_echo "$as_me:$LINENO: error: conditional \"STATIC_BSDCPIO\" was never defined. 25164Usually this means the macro was only invoked conditionally." >&5 25165$as_echo "$as_me: error: conditional \"STATIC_BSDCPIO\" was never defined. 25166Usually this means the macro was only invoked conditionally." >&2;} 25167 { (exit 1); exit 1; }; } 25168fi 25169 25170: ${CONFIG_STATUS=./config.status} 25171ac_write_fail=0 25172ac_clean_files_save=$ac_clean_files 25173ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25174{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 25175$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 25176cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25177#! $SHELL 25178# Generated by $as_me. 25179# Run this file to recreate the current configuration. 25180# Compiler output produced by configure, useful for debugging 25181# configure, is in config.log if it exists. 25182 25183debug=false 25184ac_cs_recheck=false 25185ac_cs_silent=false 25186SHELL=\${CONFIG_SHELL-$SHELL} 25187_ACEOF 25188 25189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25190## --------------------- ## 25191## M4sh Initialization. ## 25192## --------------------- ## 25193 25194# Be more Bourne compatible 25195DUALCASE=1; export DUALCASE # for MKS sh 25196if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25197 emulate sh 25198 NULLCMD=: 25199 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25200 # is contrary to our usage. Disable this feature. 25201 alias -g '${1+"$@"}'='"$@"' 25202 setopt NO_GLOB_SUBST 25203else 25204 case `(set -o) 2>/dev/null` in 25205 *posix*) set -o posix ;; 25206esac 25207 25208fi 25209 25210 25211 25212 25213# PATH needs CR 25214# Avoid depending upon Character Ranges. 25215as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25216as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25217as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25218as_cr_digits='0123456789' 25219as_cr_alnum=$as_cr_Letters$as_cr_digits 25220 25221as_nl=' 25222' 25223export as_nl 25224# Printing a long string crashes Solaris 7 /usr/bin/printf. 25225as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 25226as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 25227as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 25228if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 25229 as_echo='printf %s\n' 25230 as_echo_n='printf %s' 25231else 25232 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 25233 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 25234 as_echo_n='/usr/ucb/echo -n' 25235 else 25236 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 25237 as_echo_n_body='eval 25238 arg=$1; 25239 case $arg in 25240 *"$as_nl"*) 25241 expr "X$arg" : "X\\(.*\\)$as_nl"; 25242 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 25243 esac; 25244 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 25245 ' 25246 export as_echo_n_body 25247 as_echo_n='sh -c $as_echo_n_body as_echo' 25248 fi 25249 export as_echo_body 25250 as_echo='sh -c $as_echo_body as_echo' 25251fi 25252 25253# The user is always right. 25254if test "${PATH_SEPARATOR+set}" != set; then 25255 PATH_SEPARATOR=: 25256 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 25257 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 25258 PATH_SEPARATOR=';' 25259 } 25260fi 25261 25262# Support unset when possible. 25263if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 25264 as_unset=unset 25265else 25266 as_unset=false 25267fi 25268 25269 25270# IFS 25271# We need space, tab and new line, in precisely that order. Quoting is 25272# there to prevent editors from complaining about space-tab. 25273# (If _AS_PATH_WALK were called with IFS unset, it would disable word 25274# splitting by setting IFS to empty value.) 25275IFS=" "" $as_nl" 25276 25277# Find who we are. Look in the path if we contain no directory separator. 25278case $0 in 25279 *[\\/]* ) as_myself=$0 ;; 25280 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25281for as_dir in $PATH 25282do 25283 IFS=$as_save_IFS 25284 test -z "$as_dir" && as_dir=. 25285 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 25286done 25287IFS=$as_save_IFS 25288 25289 ;; 25290esac 25291# We did not find ourselves, most probably we were run as `sh COMMAND' 25292# in which case we are not to be found in the path. 25293if test "x$as_myself" = x; then 25294 as_myself=$0 25295fi 25296if test ! -f "$as_myself"; then 25297 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25298 { (exit 1); exit 1; } 25299fi 25300 25301# Work around bugs in pre-3.0 UWIN ksh. 25302for as_var in ENV MAIL MAILPATH 25303do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 25304done 25305PS1='$ ' 25306PS2='> ' 25307PS4='+ ' 25308 25309# NLS nuisances. 25310LC_ALL=C 25311export LC_ALL 25312LANGUAGE=C 25313export LANGUAGE 25314 25315# Required to use basename. 25316if expr a : '\(a\)' >/dev/null 2>&1 && 25317 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25318 as_expr=expr 25319else 25320 as_expr=false 25321fi 25322 25323if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25324 as_basename=basename 25325else 25326 as_basename=false 25327fi 25328 25329 25330# Name of the executable. 25331as_me=`$as_basename -- "$0" || 25332$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25333 X"$0" : 'X\(//\)$' \| \ 25334 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25335$as_echo X/"$0" | 25336 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25337 s//\1/ 25338 q 25339 } 25340 /^X\/\(\/\/\)$/{ 25341 s//\1/ 25342 q 25343 } 25344 /^X\/\(\/\).*/{ 25345 s//\1/ 25346 q 25347 } 25348 s/.*/./; q'` 25349 25350# CDPATH. 25351$as_unset CDPATH 25352 25353 25354 25355 as_lineno_1=$LINENO 25356 as_lineno_2=$LINENO 25357 test "x$as_lineno_1" != "x$as_lineno_2" && 25358 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 25359 25360 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 25361 # uniformly replaced by the line number. The first 'sed' inserts a 25362 # line-number line after each line using $LINENO; the second 'sed' 25363 # does the real work. The second script uses 'N' to pair each 25364 # line-number line with the line containing $LINENO, and appends 25365 # trailing '-' during substitution so that $LINENO is not a special 25366 # case at line end. 25367 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 25368 # scripts with optimization help from Paolo Bonzini. Blame Lee 25369 # E. McMahon (1931-1989) for sed's syntax. :-) 25370 sed -n ' 25371 p 25372 /[$]LINENO/= 25373 ' <$as_myself | 25374 sed ' 25375 s/[$]LINENO.*/&-/ 25376 t lineno 25377 b 25378 :lineno 25379 N 25380 :loop 25381 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 25382 t loop 25383 s/-\n.*// 25384 ' >$as_me.lineno && 25385 chmod +x "$as_me.lineno" || 25386 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 25387 { (exit 1); exit 1; }; } 25388 25389 # Don't try to exec as it changes $[0], causing all sort of problems 25390 # (the dirname of $[0] is not the place where we might find the 25391 # original and so on. Autoconf is especially sensitive to this). 25392 . "./$as_me.lineno" 25393 # Exit status is that of the last command. 25394 exit 25395} 25396 25397 25398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25399 as_dirname=dirname 25400else 25401 as_dirname=false 25402fi 25403 25404ECHO_C= ECHO_N= ECHO_T= 25405case `echo -n x` in 25406-n*) 25407 case `echo 'x\c'` in 25408 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25409 *) ECHO_C='\c';; 25410 esac;; 25411*) 25412 ECHO_N='-n';; 25413esac 25414if expr a : '\(a\)' >/dev/null 2>&1 && 25415 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25416 as_expr=expr 25417else 25418 as_expr=false 25419fi 25420 25421rm -f conf$$ conf$$.exe conf$$.file 25422if test -d conf$$.dir; then 25423 rm -f conf$$.dir/conf$$.file 25424else 25425 rm -f conf$$.dir 25426 mkdir conf$$.dir 2>/dev/null 25427fi 25428if (echo >conf$$.file) 2>/dev/null; then 25429 if ln -s conf$$.file conf$$ 2>/dev/null; then 25430 as_ln_s='ln -s' 25431 # ... but there are two gotchas: 25432 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25433 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25434 # In both cases, we have to default to `cp -p'. 25435 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25436 as_ln_s='cp -p' 25437 elif ln conf$$.file conf$$ 2>/dev/null; then 25438 as_ln_s=ln 25439 else 25440 as_ln_s='cp -p' 25441 fi 25442else 25443 as_ln_s='cp -p' 25444fi 25445rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25446rmdir conf$$.dir 2>/dev/null 25447 25448if mkdir -p . 2>/dev/null; then 25449 as_mkdir_p=: 25450else 25451 test -d ./-p && rmdir ./-p 25452 as_mkdir_p=false 25453fi 25454 25455if test -x / >/dev/null 2>&1; then 25456 as_test_x='test -x' 25457else 25458 if ls -dL / >/dev/null 2>&1; then 25459 as_ls_L_option=L 25460 else 25461 as_ls_L_option= 25462 fi 25463 as_test_x=' 25464 eval sh -c '\'' 25465 if test -d "$1"; then 25466 test -d "$1/."; 25467 else 25468 case $1 in 25469 -*)set "./$1";; 25470 esac; 25471 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 25472 ???[sx]*):;;*)false;;esac;fi 25473 '\'' sh 25474 ' 25475fi 25476as_executable_p=$as_test_x 25477 25478# Sed expression to map a string onto a valid CPP name. 25479as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25480 25481# Sed expression to map a string onto a valid variable name. 25482as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25483 25484 25485exec 6>&1 25486 25487# Save the log message, to keep $[0] and so on meaningful, and to 25488# report actual input values of CONFIG_FILES etc. instead of their 25489# values after options handling. 25490ac_log=" 25491This file was extended by libarchive $as_me 2.8.3, which was 25492generated by GNU Autoconf 2.62. Invocation command line was 25493 25494 CONFIG_FILES = $CONFIG_FILES 25495 CONFIG_HEADERS = $CONFIG_HEADERS 25496 CONFIG_LINKS = $CONFIG_LINKS 25497 CONFIG_COMMANDS = $CONFIG_COMMANDS 25498 $ $0 $@ 25499 25500on `(hostname || uname -n) 2>/dev/null | sed 1q` 25501" 25502 25503_ACEOF 25504 25505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25506# Files that config.status was made for. 25507config_files="$ac_config_files" 25508config_headers="$ac_config_headers" 25509config_commands="$ac_config_commands" 25510 25511_ACEOF 25512 25513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25514ac_cs_usage="\ 25515\`$as_me' instantiates files from templates according to the 25516current configuration. 25517 25518Usage: $0 [OPTIONS] [FILE]... 25519 25520 -h, --help print this help, then exit 25521 -V, --version print version number and configuration settings, then exit 25522 -q, --quiet do not print progress messages 25523 -d, --debug don't remove temporary files 25524 --recheck update $as_me by reconfiguring in the same conditions 25525 --file=FILE[:TEMPLATE] 25526 instantiate the configuration file FILE 25527 --header=FILE[:TEMPLATE] 25528 instantiate the configuration header FILE 25529 25530Configuration files: 25531$config_files 25532 25533Configuration headers: 25534$config_headers 25535 25536Configuration commands: 25537$config_commands 25538 25539Report bugs to <bug-autoconf@gnu.org>." 25540 25541_ACEOF 25542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25543ac_cs_version="\\ 25544libarchive config.status 2.8.3 25545configured by $0, generated by GNU Autoconf 2.62, 25546 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 25547 25548Copyright (C) 2008 Free Software Foundation, Inc. 25549This config.status script is free software; the Free Software Foundation 25550gives unlimited permission to copy, distribute and modify it." 25551 25552ac_pwd='$ac_pwd' 25553srcdir='$srcdir' 25554INSTALL='$INSTALL' 25555MKDIR_P='$MKDIR_P' 25556AWK='$AWK' 25557test -n "\$AWK" || AWK=awk 25558_ACEOF 25559 25560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25561# The default lists apply if the user does not specify any file. 25562ac_need_defaults=: 25563while test $# != 0 25564do 25565 case $1 in 25566 --*=*) 25567 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25569 ac_shift=: 25570 ;; 25571 *) 25572 ac_option=$1 25573 ac_optarg=$2 25574 ac_shift=shift 25575 ;; 25576 esac 25577 25578 case $ac_option in 25579 # Handling of the options. 25580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25581 ac_cs_recheck=: ;; 25582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25583 $as_echo "$ac_cs_version"; exit ;; 25584 --debug | --debu | --deb | --de | --d | -d ) 25585 debug=: ;; 25586 --file | --fil | --fi | --f ) 25587 $ac_shift 25588 case $ac_optarg in 25589 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25590 esac 25591 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 25592 ac_need_defaults=false;; 25593 --header | --heade | --head | --hea ) 25594 $ac_shift 25595 case $ac_optarg in 25596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25597 esac 25598 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 25599 ac_need_defaults=false;; 25600 --he | --h) 25601 # Conflict between --help and --header 25602 { $as_echo "$as_me: error: ambiguous option: $1 25603Try \`$0 --help' for more information." >&2 25604 { (exit 1); exit 1; }; };; 25605 --help | --hel | -h ) 25606 $as_echo "$ac_cs_usage"; exit ;; 25607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25608 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25609 ac_cs_silent=: ;; 25610 25611 # This is an error. 25612 -*) { $as_echo "$as_me: error: unrecognized option: $1 25613Try \`$0 --help' for more information." >&2 25614 { (exit 1); exit 1; }; } ;; 25615 25616 *) ac_config_targets="$ac_config_targets $1" 25617 ac_need_defaults=false ;; 25618 25619 esac 25620 shift 25621done 25622 25623ac_configure_extra_args= 25624 25625if $ac_cs_silent; then 25626 exec 6>/dev/null 25627 ac_configure_extra_args="$ac_configure_extra_args --silent" 25628fi 25629 25630_ACEOF 25631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25632if \$ac_cs_recheck; then 25633 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25634 shift 25635 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25636 CONFIG_SHELL='$SHELL' 25637 export CONFIG_SHELL 25638 exec "\$@" 25639fi 25640 25641_ACEOF 25642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25643exec 5>>config.log 25644{ 25645 echo 25646 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25647## Running $as_me. ## 25648_ASBOX 25649 $as_echo "$ac_log" 25650} >&5 25651 25652_ACEOF 25653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25654# 25655# INIT-COMMANDS 25656# 25657AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 25658 25659 25660# The HP-UX ksh and POSIX shell print the target directory to stdout 25661# if CDPATH is set. 25662(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25663 25664sed_quote_subst='$sed_quote_subst' 25665double_quote_subst='$double_quote_subst' 25666delay_variable_subst='$delay_variable_subst' 25667AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 25668DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 25669OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 25670macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 25671macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 25672enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 25673enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 25674pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 25675enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 25676host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 25677host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 25678host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 25679build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 25680build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 25681build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 25682SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 25683Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 25684GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 25685EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 25686FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 25687LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 25688NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 25689LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 25690max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 25691ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 25692exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 25693lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 25694lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 25695lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 25696reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 25697reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25698deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 25699file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 25700AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 25701AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 25702STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 25703RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 25704old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25705old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25706old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25707CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 25708CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 25709compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 25710GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 25711lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 25712lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 25713lt_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"`' 25714lt_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"`' 25715objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 25716SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 25717ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 25718MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 25719lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 25720lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 25721lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 25722lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 25723lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 25724need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 25725DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 25726NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 25727LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 25728OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 25729OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 25730libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 25731shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25732extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25733archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 25734enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 25735export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 25736whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 25737compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 25738old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25739old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25740archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25741archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25742module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25743module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25744with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 25745allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 25746no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 25747hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 25748hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 25749hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 25750hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 25751hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 25752hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 25753hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 25754hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 25755inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 25756link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 25757fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 25758always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 25759export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25760exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 25761include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 25762prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25763file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 25764variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 25765need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 25766need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 25767version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 25768runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 25769shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 25770shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 25771libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 25772library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 25773soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 25774postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25775postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25776finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 25777finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 25778hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 25779sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 25780sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 25781hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 25782enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 25783enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 25784enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 25785old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 25786striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 25787 25788LTCC='$LTCC' 25789LTCFLAGS='$LTCFLAGS' 25790compiler='$compiler_DEFAULT' 25791 25792# Quote evaled strings. 25793for var in SED \ 25794GREP \ 25795EGREP \ 25796FGREP \ 25797LD \ 25798NM \ 25799LN_S \ 25800lt_SP2NL \ 25801lt_NL2SP \ 25802reload_flag \ 25803deplibs_check_method \ 25804file_magic_cmd \ 25805AR \ 25806AR_FLAGS \ 25807STRIP \ 25808RANLIB \ 25809CC \ 25810CFLAGS \ 25811compiler \ 25812lt_cv_sys_global_symbol_pipe \ 25813lt_cv_sys_global_symbol_to_cdecl \ 25814lt_cv_sys_global_symbol_to_c_name_address \ 25815lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25816SHELL \ 25817ECHO \ 25818lt_prog_compiler_no_builtin_flag \ 25819lt_prog_compiler_wl \ 25820lt_prog_compiler_pic \ 25821lt_prog_compiler_static \ 25822lt_cv_prog_compiler_c_o \ 25823need_locks \ 25824DSYMUTIL \ 25825NMEDIT \ 25826LIPO \ 25827OTOOL \ 25828OTOOL64 \ 25829shrext_cmds \ 25830export_dynamic_flag_spec \ 25831whole_archive_flag_spec \ 25832compiler_needs_object \ 25833with_gnu_ld \ 25834allow_undefined_flag \ 25835no_undefined_flag \ 25836hardcode_libdir_flag_spec \ 25837hardcode_libdir_flag_spec_ld \ 25838hardcode_libdir_separator \ 25839fix_srcfile_path \ 25840exclude_expsyms \ 25841include_expsyms \ 25842file_list_spec \ 25843variables_saved_for_relink \ 25844libname_spec \ 25845library_names_spec \ 25846soname_spec \ 25847finish_eval \ 25848old_striplib \ 25849striplib; do 25850 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 25851 *[\\\\\\\`\\"\\\$]*) 25852 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 25853 ;; 25854 *) 25855 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25856 ;; 25857 esac 25858done 25859 25860# Double-quote double-evaled strings. 25861for var in reload_cmds \ 25862old_postinstall_cmds \ 25863old_postuninstall_cmds \ 25864old_archive_cmds \ 25865extract_expsyms_cmds \ 25866old_archive_from_new_cmds \ 25867old_archive_from_expsyms_cmds \ 25868archive_cmds \ 25869archive_expsym_cmds \ 25870module_cmds \ 25871module_expsym_cmds \ 25872export_symbols_cmds \ 25873prelink_cmds \ 25874postinstall_cmds \ 25875postuninstall_cmds \ 25876finish_cmds \ 25877sys_lib_search_path_spec \ 25878sys_lib_dlsearch_path_spec; do 25879 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 25880 *[\\\\\\\`\\"\\\$]*) 25881 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 25882 ;; 25883 *) 25884 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25885 ;; 25886 esac 25887done 25888 25889# Fix-up fallback echo if it was mangled by the above quoting rules. 25890case \$lt_ECHO in 25891*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 25892 ;; 25893esac 25894 25895ac_aux_dir='$ac_aux_dir' 25896xsi_shell='$xsi_shell' 25897lt_shell_append='$lt_shell_append' 25898 25899# See if we are running on zsh, and set the options which allow our 25900# commands through without removal of \ escapes INIT. 25901if test -n "\${ZSH_VERSION+set}" ; then 25902 setopt NO_GLOB_SUBST 25903fi 25904 25905 25906 PACKAGE='$PACKAGE' 25907 VERSION='$VERSION' 25908 TIMESTAMP='$TIMESTAMP' 25909 RM='$RM' 25910 ofile='$ofile' 25911 25912 25913 25914 25915_ACEOF 25916 25917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25918 25919# Handling of arguments. 25920for ac_config_target in $ac_config_targets 25921do 25922 case $ac_config_target in 25923 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 25924 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25925 "build/pkgconfig/libarchive.pc") CONFIG_FILES="$CONFIG_FILES build/pkgconfig/libarchive.pc" ;; 25926 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 25927 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 25928 25929 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 25930$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 25931 { (exit 1); exit 1; }; };; 25932 esac 25933done 25934 25935 25936# If the user did not use the arguments to specify the items to instantiate, 25937# then the envvar interface is used. Set only those that are not. 25938# We use the long form for the default assignment because of an extremely 25939# bizarre bug on SunOS 4.1.3. 25940if $ac_need_defaults; then 25941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 25943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 25944fi 25945 25946# Have a temporary directory for convenience. Make it in the build tree 25947# simply because there is no reason against having it here, and in addition, 25948# creating and moving files from /tmp can sometimes cause problems. 25949# Hook for its removal unless debugging. 25950# Note that there is a small window in which the directory will not be cleaned: 25951# after its creation but before its name has been assigned to `$tmp'. 25952$debug || 25953{ 25954 tmp= 25955 trap 'exit_status=$? 25956 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 25957' 0 25958 trap '{ (exit 1); exit 1; }' 1 2 13 15 25959} 25960# Create a (secure) tmp directory for tmp files. 25961 25962{ 25963 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25964 test -n "$tmp" && test -d "$tmp" 25965} || 25966{ 25967 tmp=./conf$$-$RANDOM 25968 (umask 077 && mkdir "$tmp") 25969} || 25970{ 25971 $as_echo "$as_me: cannot create a temporary directory in ." >&2 25972 { (exit 1); exit 1; } 25973} 25974 25975# Set up the scripts for CONFIG_FILES section. 25976# No need to generate them if there are no CONFIG_FILES. 25977# This happens for instance with `./config.status config.h'. 25978if test -n "$CONFIG_FILES"; then 25979 25980 25981ac_cr=' 25982' 25983ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25984if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25985 ac_cs_awk_cr='\\r' 25986else 25987 ac_cs_awk_cr=$ac_cr 25988fi 25989 25990echo 'BEGIN {' >"$tmp/subs1.awk" && 25991_ACEOF 25992 25993 25994{ 25995 echo "cat >conf$$subs.awk <<_ACEOF" && 25996 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25997 echo "_ACEOF" 25998} >conf$$subs.sh || 25999 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 26000$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 26001 { (exit 1); exit 1; }; } 26002ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 26003ac_delim='%!_!# ' 26004for ac_last_try in false false false false false :; do 26005 . ./conf$$subs.sh || 26006 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 26007$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 26008 { (exit 1); exit 1; }; } 26009 26010 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 26011 break 26012 elif $ac_last_try; then 26013 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 26014$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 26015 { (exit 1); exit 1; }; } 26016 else 26017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26018 fi 26019done 26020rm -f conf$$subs.sh 26021 26022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26023cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 26024_ACEOF 26025sed -n ' 26026h 26027s/^/S["/; s/!.*/"]=/ 26028p 26029g 26030s/^[^!]*!// 26031:repl 26032t repl 26033s/'"$ac_delim"'$// 26034t delim 26035:nl 26036h 26037s/\(.\{148\}\).*/\1/ 26038t more1 26039s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26040p 26041n 26042b repl 26043:more1 26044s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26045p 26046g 26047s/.\{148\}// 26048t nl 26049:delim 26050h 26051s/\(.\{148\}\).*/\1/ 26052t more2 26053s/["\\]/\\&/g; s/^/"/; s/$/"/ 26054p 26055b 26056:more2 26057s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26058p 26059g 26060s/.\{148\}// 26061t delim 26062' <conf$$subs.awk | sed ' 26063/^[^""]/{ 26064 N 26065 s/\n// 26066} 26067' >>$CONFIG_STATUS || ac_write_fail=1 26068rm -f conf$$subs.awk 26069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26070_ACAWK 26071cat >>"\$tmp/subs1.awk" <<_ACAWK && 26072 for (key in S) S_is_set[key] = 1 26073 FS = "" 26074 26075} 26076{ 26077 line = $ 0 26078 nfields = split(line, field, "@") 26079 substed = 0 26080 len = length(field[1]) 26081 for (i = 2; i < nfields; i++) { 26082 key = field[i] 26083 keylen = length(key) 26084 if (S_is_set[key]) { 26085 value = S[key] 26086 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 26087 len += length(value) + length(field[++i]) 26088 substed = 1 26089 } else 26090 len += 1 + keylen 26091 } 26092 26093 print line 26094} 26095 26096_ACAWK 26097_ACEOF 26098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26099if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26100 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26101else 26102 cat 26103fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 26104 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 26105$as_echo "$as_me: error: could not setup config files machinery" >&2;} 26106 { (exit 1); exit 1; }; } 26107_ACEOF 26108 26109# VPATH may cause trouble with some makes, so we remove $(srcdir), 26110# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 26111# trailing colons and then remove the whole line if VPATH becomes empty 26112# (actually we leave an empty line to preserve line numbers). 26113if test "x$srcdir" = x.; then 26114 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 26115s/:*\$(srcdir):*/:/ 26116s/:*\${srcdir}:*/:/ 26117s/:*@srcdir@:*/:/ 26118s/^\([^=]*=[ ]*\):*/\1/ 26119s/:*$// 26120s/^[^=]*=[ ]*$// 26121}' 26122fi 26123 26124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26125fi # test -n "$CONFIG_FILES" 26126 26127# Set up the scripts for CONFIG_HEADERS section. 26128# No need to generate them if there are no CONFIG_HEADERS. 26129# This happens for instance with `./config.status Makefile'. 26130if test -n "$CONFIG_HEADERS"; then 26131cat >"$tmp/defines.awk" <<\_ACAWK || 26132BEGIN { 26133_ACEOF 26134 26135# Transform confdefs.h into an awk script `defines.awk', embedded as 26136# here-document in config.status, that substitutes the proper values into 26137# config.h.in to produce config.h. 26138 26139# Create a delimiter string that does not exist in confdefs.h, to ease 26140# handling of long lines. 26141ac_delim='%!_!# ' 26142for ac_last_try in false false :; do 26143 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 26144 if test -z "$ac_t"; then 26145 break 26146 elif $ac_last_try; then 26147 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 26148$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 26149 { (exit 1); exit 1; }; } 26150 else 26151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26152 fi 26153done 26154 26155# For the awk script, D is an array of macro values keyed by name, 26156# likewise P contains macro parameters if any. Preserve backslash 26157# newline sequences. 26158 26159ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26160sed -n ' 26161s/.\{148\}/&'"$ac_delim"'/g 26162t rset 26163:rset 26164s/^[ ]*#[ ]*define[ ][ ]*/ / 26165t def 26166d 26167:def 26168s/\\$// 26169t bsnl 26170s/["\\]/\\&/g 26171s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26172D["\1"]=" \3"/p 26173s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26174d 26175:bsnl 26176s/["\\]/\\&/g 26177s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26178D["\1"]=" \3\\\\\\n"\\/p 26179t cont 26180s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26181t cont 26182d 26183:cont 26184n 26185s/.\{148\}/&'"$ac_delim"'/g 26186t clear 26187:clear 26188s/\\$// 26189t bsnlc 26190s/["\\]/\\&/g; s/^/"/; s/$/"/p 26191d 26192:bsnlc 26193s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26194b cont 26195' <confdefs.h | sed ' 26196s/'"$ac_delim"'/"\\\ 26197"/g' >>$CONFIG_STATUS || ac_write_fail=1 26198 26199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26200 for (key in D) D_is_set[key] = 1 26201 FS = "" 26202} 26203/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26204 line = \$ 0 26205 split(line, arg, " ") 26206 if (arg[1] == "#") { 26207 defundef = arg[2] 26208 mac1 = arg[3] 26209 } else { 26210 defundef = substr(arg[1], 2) 26211 mac1 = arg[2] 26212 } 26213 split(mac1, mac2, "(") #) 26214 macro = mac2[1] 26215 if (D_is_set[macro]) { 26216 # Preserve the white space surrounding the "#". 26217 prefix = substr(line, 1, index(line, defundef) - 1) 26218 print prefix "define", macro P[macro] D[macro] 26219 next 26220 } else { 26221 # Replace #undef with comments. This is necessary, for example, 26222 # in the case of _POSIX_SOURCE, which is predefined and required 26223 # on some systems where configure will not decide to define it. 26224 if (defundef == "undef") { 26225 print "/*", line, "*/" 26226 next 26227 } 26228 } 26229} 26230{ print } 26231_ACAWK 26232_ACEOF 26233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26234 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 26235$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 26236 { (exit 1); exit 1; }; } 26237fi # test -n "$CONFIG_HEADERS" 26238 26239 26240eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26241shift 26242for ac_tag 26243do 26244 case $ac_tag in 26245 :[FHLC]) ac_mode=$ac_tag; continue;; 26246 esac 26247 case $ac_mode$ac_tag in 26248 :[FHL]*:*);; 26249 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 26250$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 26251 { (exit 1); exit 1; }; };; 26252 :[FH]-) ac_tag=-:-;; 26253 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26254 esac 26255 ac_save_IFS=$IFS 26256 IFS=: 26257 set x $ac_tag 26258 IFS=$ac_save_IFS 26259 shift 26260 ac_file=$1 26261 shift 26262 26263 case $ac_mode in 26264 :L) ac_source=$1;; 26265 :[FH]) 26266 ac_file_inputs= 26267 for ac_f 26268 do 26269 case $ac_f in 26270 -) ac_f="$tmp/stdin";; 26271 *) # Look for the file first in the build tree, then in the source tree 26272 # (if the path is not absolute). The absolute path cannot be DOS-style, 26273 # because $ac_f cannot contain `:'. 26274 test -f "$ac_f" || 26275 case $ac_f in 26276 [\\/$]*) false;; 26277 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26278 esac || 26279 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 26280$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 26281 { (exit 1); exit 1; }; };; 26282 esac 26283 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26284 ac_file_inputs="$ac_file_inputs '$ac_f'" 26285 done 26286 26287 # Let's still pretend it is `configure' which instantiates (i.e., don't 26288 # use $as_me), people would be surprised to read: 26289 # /* config.h. Generated by config.status. */ 26290 configure_input='Generated from '` 26291 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26292 `' by configure.' 26293 if test x"$ac_file" != x-; then 26294 configure_input="$ac_file. $configure_input" 26295 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 26296$as_echo "$as_me: creating $ac_file" >&6;} 26297 fi 26298 # Neutralize special characters interpreted by sed in replacement strings. 26299 case $configure_input in #( 26300 *\&* | *\|* | *\\* ) 26301 ac_sed_conf_input=`$as_echo "$configure_input" | 26302 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26303 *) ac_sed_conf_input=$configure_input;; 26304 esac 26305 26306 case $ac_tag in 26307 *:-:* | *:-) cat >"$tmp/stdin" \ 26308 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 26309$as_echo "$as_me: error: could not create $ac_file" >&2;} 26310 { (exit 1); exit 1; }; } ;; 26311 esac 26312 ;; 26313 esac 26314 26315 ac_dir=`$as_dirname -- "$ac_file" || 26316$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26317 X"$ac_file" : 'X\(//\)[^/]' \| \ 26318 X"$ac_file" : 'X\(//\)$' \| \ 26319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26320$as_echo X"$ac_file" | 26321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26322 s//\1/ 26323 q 26324 } 26325 /^X\(\/\/\)[^/].*/{ 26326 s//\1/ 26327 q 26328 } 26329 /^X\(\/\/\)$/{ 26330 s//\1/ 26331 q 26332 } 26333 /^X\(\/\).*/{ 26334 s//\1/ 26335 q 26336 } 26337 s/.*/./; q'` 26338 { as_dir="$ac_dir" 26339 case $as_dir in #( 26340 -*) as_dir=./$as_dir;; 26341 esac 26342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 26343 as_dirs= 26344 while :; do 26345 case $as_dir in #( 26346 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 26347 *) as_qdir=$as_dir;; 26348 esac 26349 as_dirs="'$as_qdir' $as_dirs" 26350 as_dir=`$as_dirname -- "$as_dir" || 26351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26352 X"$as_dir" : 'X\(//\)[^/]' \| \ 26353 X"$as_dir" : 'X\(//\)$' \| \ 26354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 26355$as_echo X"$as_dir" | 26356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26357 s//\1/ 26358 q 26359 } 26360 /^X\(\/\/\)[^/].*/{ 26361 s//\1/ 26362 q 26363 } 26364 /^X\(\/\/\)$/{ 26365 s//\1/ 26366 q 26367 } 26368 /^X\(\/\).*/{ 26369 s//\1/ 26370 q 26371 } 26372 s/.*/./; q'` 26373 test -d "$as_dir" && break 26374 done 26375 test -z "$as_dirs" || eval "mkdir $as_dirs" 26376 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 26377$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 26378 { (exit 1); exit 1; }; }; } 26379 ac_builddir=. 26380 26381case "$ac_dir" in 26382.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26383*) 26384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 26385 # A ".." for each directory in $ac_dir_suffix. 26386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26387 case $ac_top_builddir_sub in 26388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26390 esac ;; 26391esac 26392ac_abs_top_builddir=$ac_pwd 26393ac_abs_builddir=$ac_pwd$ac_dir_suffix 26394# for backward compatibility: 26395ac_top_builddir=$ac_top_build_prefix 26396 26397case $srcdir in 26398 .) # We are building in place. 26399 ac_srcdir=. 26400 ac_top_srcdir=$ac_top_builddir_sub 26401 ac_abs_top_srcdir=$ac_pwd ;; 26402 [\\/]* | ?:[\\/]* ) # Absolute name. 26403 ac_srcdir=$srcdir$ac_dir_suffix; 26404 ac_top_srcdir=$srcdir 26405 ac_abs_top_srcdir=$srcdir ;; 26406 *) # Relative name. 26407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26408 ac_top_srcdir=$ac_top_build_prefix$srcdir 26409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26410esac 26411ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26412 26413 26414 case $ac_mode in 26415 :F) 26416 # 26417 # CONFIG_FILE 26418 # 26419 26420 case $INSTALL in 26421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26423 esac 26424 ac_MKDIR_P=$MKDIR_P 26425 case $MKDIR_P in 26426 [\\/$]* | ?:[\\/]* ) ;; 26427 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 26428 esac 26429_ACEOF 26430 26431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26432# If the template does not know about datarootdir, expand it. 26433# FIXME: This hack should be removed a few years after 2.60. 26434ac_datarootdir_hack=; ac_datarootdir_seen= 26435 26436ac_sed_dataroot=' 26437/datarootdir/ { 26438 p 26439 q 26440} 26441/@datadir@/p 26442/@docdir@/p 26443/@infodir@/p 26444/@localedir@/p 26445/@mandir@/p 26446' 26447case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26448*datarootdir*) ac_datarootdir_seen=yes;; 26449*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26450 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26451$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26452_ACEOF 26453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26454 ac_datarootdir_hack=' 26455 s&@datadir@&$datadir&g 26456 s&@docdir@&$docdir&g 26457 s&@infodir@&$infodir&g 26458 s&@localedir@&$localedir&g 26459 s&@mandir@&$mandir&g 26460 s&\\\${datarootdir}&$datarootdir&g' ;; 26461esac 26462_ACEOF 26463 26464# Neutralize VPATH when `$srcdir' = `.'. 26465# Shell code in configure.ac might set extrasub. 26466# FIXME: do we really want to maintain this feature? 26467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26468ac_sed_extra="$ac_vpsub 26469$extrasub 26470_ACEOF 26471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26472:t 26473/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26474s|@configure_input@|$ac_sed_conf_input|;t t 26475s&@top_builddir@&$ac_top_builddir_sub&;t t 26476s&@top_build_prefix@&$ac_top_build_prefix&;t t 26477s&@srcdir@&$ac_srcdir&;t t 26478s&@abs_srcdir@&$ac_abs_srcdir&;t t 26479s&@top_srcdir@&$ac_top_srcdir&;t t 26480s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26481s&@builddir@&$ac_builddir&;t t 26482s&@abs_builddir@&$ac_abs_builddir&;t t 26483s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26484s&@INSTALL@&$ac_INSTALL&;t t 26485s&@MKDIR_P@&$ac_MKDIR_P&;t t 26486$ac_datarootdir_hack 26487" 26488eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 26489 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 26490$as_echo "$as_me: error: could not create $ac_file" >&2;} 26491 { (exit 1); exit 1; }; } 26492 26493test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26494 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 26495 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 26496 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26497which seems to be undefined. Please make sure it is defined." >&5 26498$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26499which seems to be undefined. Please make sure it is defined." >&2;} 26500 26501 rm -f "$tmp/stdin" 26502 case $ac_file in 26503 -) cat "$tmp/out" && rm -f "$tmp/out";; 26504 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 26505 esac \ 26506 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 26507$as_echo "$as_me: error: could not create $ac_file" >&2;} 26508 { (exit 1); exit 1; }; } 26509 ;; 26510 :H) 26511 # 26512 # CONFIG_HEADER 26513 # 26514 if test x"$ac_file" != x-; then 26515 { 26516 $as_echo "/* $configure_input */" \ 26517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 26518 } >"$tmp/config.h" \ 26519 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 26520$as_echo "$as_me: error: could not create $ac_file" >&2;} 26521 { (exit 1); exit 1; }; } 26522 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 26523 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 26524$as_echo "$as_me: $ac_file is unchanged" >&6;} 26525 else 26526 rm -f "$ac_file" 26527 mv "$tmp/config.h" "$ac_file" \ 26528 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 26529$as_echo "$as_me: error: could not create $ac_file" >&2;} 26530 { (exit 1); exit 1; }; } 26531 fi 26532 else 26533 $as_echo "/* $configure_input */" \ 26534 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 26535 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 26536$as_echo "$as_me: error: could not create -" >&2;} 26537 { (exit 1); exit 1; }; } 26538 fi 26539# Compute "$ac_file"'s index in $config_headers. 26540_am_arg="$ac_file" 26541_am_stamp_count=1 26542for _am_header in $config_headers :; do 26543 case $_am_header in 26544 $_am_arg | $_am_arg:* ) 26545 break ;; 26546 * ) 26547 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 26548 esac 26549done 26550echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 26551$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26552 X"$_am_arg" : 'X\(//\)[^/]' \| \ 26553 X"$_am_arg" : 'X\(//\)$' \| \ 26554 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 26555$as_echo X"$_am_arg" | 26556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26557 s//\1/ 26558 q 26559 } 26560 /^X\(\/\/\)[^/].*/{ 26561 s//\1/ 26562 q 26563 } 26564 /^X\(\/\/\)$/{ 26565 s//\1/ 26566 q 26567 } 26568 /^X\(\/\).*/{ 26569 s//\1/ 26570 q 26571 } 26572 s/.*/./; q'`/stamp-h$_am_stamp_count 26573 ;; 26574 26575 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 26576$as_echo "$as_me: executing $ac_file commands" >&6;} 26577 ;; 26578 esac 26579 26580 26581 case $ac_file$ac_mode in 26582 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 26583 # Strip MF so we end up with the name of the file. 26584 mf=`echo "$mf" | sed -e 's/:.*$//'` 26585 # Check whether this is an Automake generated Makefile or not. 26586 # We used to match only the files named `Makefile.in', but 26587 # some people rename them; so instead we look at the file content. 26588 # Grep'ing the first line is not enough: some people post-process 26589 # each Makefile.in and add a new line on top of each file to say so. 26590 # Grep'ing the whole file is not good either: AIX grep has a line 26591 # limit of 2048, but all sed's we know have understand at least 4000. 26592 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 26593 dirpart=`$as_dirname -- "$mf" || 26594$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26595 X"$mf" : 'X\(//\)[^/]' \| \ 26596 X"$mf" : 'X\(//\)$' \| \ 26597 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 26598$as_echo X"$mf" | 26599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26600 s//\1/ 26601 q 26602 } 26603 /^X\(\/\/\)[^/].*/{ 26604 s//\1/ 26605 q 26606 } 26607 /^X\(\/\/\)$/{ 26608 s//\1/ 26609 q 26610 } 26611 /^X\(\/\).*/{ 26612 s//\1/ 26613 q 26614 } 26615 s/.*/./; q'` 26616 else 26617 continue 26618 fi 26619 # Extract the definition of DEPDIR, am__include, and am__quote 26620 # from the Makefile without running `make'. 26621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 26622 test -z "$DEPDIR" && continue 26623 am__include=`sed -n 's/^am__include = //p' < "$mf"` 26624 test -z "am__include" && continue 26625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 26626 # When using ansi2knr, U may be empty or an underscore; expand it 26627 U=`sed -n 's/^U = //p' < "$mf"` 26628 # Find all dependency output files, they are included files with 26629 # $(DEPDIR) in their names. We invoke sed twice because it is the 26630 # simplest approach to changing $(DEPDIR) to its actual value in the 26631 # expansion. 26632 for file in `sed -n " 26633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 26634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 26635 # Make sure the directory exists. 26636 test -f "$dirpart/$file" && continue 26637 fdir=`$as_dirname -- "$file" || 26638$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26639 X"$file" : 'X\(//\)[^/]' \| \ 26640 X"$file" : 'X\(//\)$' \| \ 26641 X"$file" : 'X\(/\)' \| . 2>/dev/null || 26642$as_echo X"$file" | 26643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26644 s//\1/ 26645 q 26646 } 26647 /^X\(\/\/\)[^/].*/{ 26648 s//\1/ 26649 q 26650 } 26651 /^X\(\/\/\)$/{ 26652 s//\1/ 26653 q 26654 } 26655 /^X\(\/\).*/{ 26656 s//\1/ 26657 q 26658 } 26659 s/.*/./; q'` 26660 { as_dir=$dirpart/$fdir 26661 case $as_dir in #( 26662 -*) as_dir=./$as_dir;; 26663 esac 26664 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 26665 as_dirs= 26666 while :; do 26667 case $as_dir in #( 26668 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 26669 *) as_qdir=$as_dir;; 26670 esac 26671 as_dirs="'$as_qdir' $as_dirs" 26672 as_dir=`$as_dirname -- "$as_dir" || 26673$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26674 X"$as_dir" : 'X\(//\)[^/]' \| \ 26675 X"$as_dir" : 'X\(//\)$' \| \ 26676 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 26677$as_echo X"$as_dir" | 26678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26679 s//\1/ 26680 q 26681 } 26682 /^X\(\/\/\)[^/].*/{ 26683 s//\1/ 26684 q 26685 } 26686 /^X\(\/\/\)$/{ 26687 s//\1/ 26688 q 26689 } 26690 /^X\(\/\).*/{ 26691 s//\1/ 26692 q 26693 } 26694 s/.*/./; q'` 26695 test -d "$as_dir" && break 26696 done 26697 test -z "$as_dirs" || eval "mkdir $as_dirs" 26698 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 26699$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 26700 { (exit 1); exit 1; }; }; } 26701 # echo "creating $dirpart/$file" 26702 echo '# dummy' > "$dirpart/$file" 26703 done 26704done 26705 ;; 26706 "libtool":C) 26707 26708 # See if we are running on zsh, and set the options which allow our 26709 # commands through without removal of \ escapes. 26710 if test -n "${ZSH_VERSION+set}" ; then 26711 setopt NO_GLOB_SUBST 26712 fi 26713 26714 cfgfile="${ofile}T" 26715 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26716 $RM "$cfgfile" 26717 26718 cat <<_LT_EOF >> "$cfgfile" 26719#! $SHELL 26720 26721# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 26722# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 26723# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 26724# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26725# 26726# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 26727# 2006, 2007, 2008 Free Software Foundation, Inc. 26728# Written by Gordon Matzigkeit, 1996 26729# 26730# This file is part of GNU Libtool. 26731# 26732# GNU Libtool is free software; you can redistribute it and/or 26733# modify it under the terms of the GNU General Public License as 26734# published by the Free Software Foundation; either version 2 of 26735# the License, or (at your option) any later version. 26736# 26737# As a special exception to the GNU General Public License, 26738# if you distribute this file as part of a program or library that 26739# is built using GNU Libtool, you may include this file under the 26740# same distribution terms that you use for the rest of that program. 26741# 26742# GNU Libtool is distributed in the hope that it will be useful, 26743# but WITHOUT ANY WARRANTY; without even the implied warranty of 26744# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26745# GNU General Public License for more details. 26746# 26747# You should have received a copy of the GNU General Public License 26748# along with GNU Libtool; see the file COPYING. If not, a copy 26749# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 26750# obtained by writing to the Free Software Foundation, Inc., 26751# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 26752 26753 26754# The names of the tagged configurations supported by this script. 26755available_tags="" 26756 26757# ### BEGIN LIBTOOL CONFIG 26758 26759# Assembler program. 26760AS=$AS 26761 26762# DLL creation program. 26763DLLTOOL=$DLLTOOL 26764 26765# Object dumper program. 26766OBJDUMP=$OBJDUMP 26767 26768# Which release of libtool.m4 was used? 26769macro_version=$macro_version 26770macro_revision=$macro_revision 26771 26772# Whether or not to build shared libraries. 26773build_libtool_libs=$enable_shared 26774 26775# Whether or not to build static libraries. 26776build_old_libs=$enable_static 26777 26778# What type of objects to build. 26779pic_mode=$pic_mode 26780 26781# Whether or not to optimize for fast installation. 26782fast_install=$enable_fast_install 26783 26784# The host system. 26785host_alias=$host_alias 26786host=$host 26787host_os=$host_os 26788 26789# The build system. 26790build_alias=$build_alias 26791build=$build 26792build_os=$build_os 26793 26794# A sed program that does not truncate output. 26795SED=$lt_SED 26796 26797# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26798Xsed="\$SED -e 1s/^X//" 26799 26800# A grep program that handles long lines. 26801GREP=$lt_GREP 26802 26803# An ERE matcher. 26804EGREP=$lt_EGREP 26805 26806# A literal string matcher. 26807FGREP=$lt_FGREP 26808 26809# A BSD- or MS-compatible name lister. 26810NM=$lt_NM 26811 26812# Whether we need soft or hard links. 26813LN_S=$lt_LN_S 26814 26815# What is the maximum length of a command? 26816max_cmd_len=$max_cmd_len 26817 26818# Object file suffix (normally "o"). 26819objext=$ac_objext 26820 26821# Executable file suffix (normally ""). 26822exeext=$exeext 26823 26824# whether the shell understands "unset". 26825lt_unset=$lt_unset 26826 26827# turn spaces into newlines. 26828SP2NL=$lt_lt_SP2NL 26829 26830# turn newlines into spaces. 26831NL2SP=$lt_lt_NL2SP 26832 26833# How to create reloadable object files. 26834reload_flag=$lt_reload_flag 26835reload_cmds=$lt_reload_cmds 26836 26837# Method to check whether dependent libraries are shared objects. 26838deplibs_check_method=$lt_deplibs_check_method 26839 26840# Command to use when deplibs_check_method == "file_magic". 26841file_magic_cmd=$lt_file_magic_cmd 26842 26843# The archiver. 26844AR=$lt_AR 26845AR_FLAGS=$lt_AR_FLAGS 26846 26847# A symbol stripping program. 26848STRIP=$lt_STRIP 26849 26850# Commands used to install an old-style archive. 26851RANLIB=$lt_RANLIB 26852old_postinstall_cmds=$lt_old_postinstall_cmds 26853old_postuninstall_cmds=$lt_old_postuninstall_cmds 26854 26855# A C compiler. 26856LTCC=$lt_CC 26857 26858# LTCC compiler flags. 26859LTCFLAGS=$lt_CFLAGS 26860 26861# Take the output of nm and produce a listing of raw symbols and C names. 26862global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26863 26864# Transform the output of nm in a proper C declaration. 26865global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26866 26867# Transform the output of nm in a C name address pair. 26868global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26869 26870# Transform the output of nm in a C name address pair when lib prefix is needed. 26871global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 26872 26873# The name of the directory that contains temporary libtool files. 26874objdir=$objdir 26875 26876# Shell to use when invoking shell scripts. 26877SHELL=$lt_SHELL 26878 26879# An echo program that does not interpret backslashes. 26880ECHO=$lt_ECHO 26881 26882# Used to examine libraries when file_magic_cmd begins with "file". 26883MAGIC_CMD=$MAGIC_CMD 26884 26885# Must we lock files when doing compilation? 26886need_locks=$lt_need_locks 26887 26888# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 26889DSYMUTIL=$lt_DSYMUTIL 26890 26891# Tool to change global to local symbols on Mac OS X. 26892NMEDIT=$lt_NMEDIT 26893 26894# Tool to manipulate fat objects and archives on Mac OS X. 26895LIPO=$lt_LIPO 26896 26897# ldd/readelf like tool for Mach-O binaries on Mac OS X. 26898OTOOL=$lt_OTOOL 26899 26900# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 26901OTOOL64=$lt_OTOOL64 26902 26903# Old archive suffix (normally "a"). 26904libext=$libext 26905 26906# Shared library suffix (normally ".so"). 26907shrext_cmds=$lt_shrext_cmds 26908 26909# The commands to extract the exported symbol list from a shared archive. 26910extract_expsyms_cmds=$lt_extract_expsyms_cmds 26911 26912# Variables whose values should be saved in libtool wrapper scripts and 26913# restored at link time. 26914variables_saved_for_relink=$lt_variables_saved_for_relink 26915 26916# Do we need the "lib" prefix for modules? 26917need_lib_prefix=$need_lib_prefix 26918 26919# Do we need a version for libraries? 26920need_version=$need_version 26921 26922# Library versioning type. 26923version_type=$version_type 26924 26925# Shared library runtime path variable. 26926runpath_var=$runpath_var 26927 26928# Shared library path variable. 26929shlibpath_var=$shlibpath_var 26930 26931# Is shlibpath searched before the hard-coded library search path? 26932shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26933 26934# Format of library name prefix. 26935libname_spec=$lt_libname_spec 26936 26937# List of archive names. First name is the real one, the rest are links. 26938# The last name is the one that the linker finds with -lNAME 26939library_names_spec=$lt_library_names_spec 26940 26941# The coded name of the library, if different from the real name. 26942soname_spec=$lt_soname_spec 26943 26944# Command to use after installation of a shared archive. 26945postinstall_cmds=$lt_postinstall_cmds 26946 26947# Command to use after uninstallation of a shared archive. 26948postuninstall_cmds=$lt_postuninstall_cmds 26949 26950# Commands used to finish a libtool library installation in a directory. 26951finish_cmds=$lt_finish_cmds 26952 26953# As "finish_cmds", except a single script fragment to be evaled but 26954# not shown. 26955finish_eval=$lt_finish_eval 26956 26957# Whether we should hardcode library paths into libraries. 26958hardcode_into_libs=$hardcode_into_libs 26959 26960# Compile-time system search path for libraries. 26961sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26962 26963# Run-time system search path for libraries. 26964sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 26965 26966# Whether dlopen is supported. 26967dlopen_support=$enable_dlopen 26968 26969# Whether dlopen of programs is supported. 26970dlopen_self=$enable_dlopen_self 26971 26972# Whether dlopen of statically linked programs is supported. 26973dlopen_self_static=$enable_dlopen_self_static 26974 26975# Commands to strip libraries. 26976old_striplib=$lt_old_striplib 26977striplib=$lt_striplib 26978 26979 26980# The linker used to build libraries. 26981LD=$lt_LD 26982 26983# Commands used to build an old-style archive. 26984old_archive_cmds=$lt_old_archive_cmds 26985 26986# A language specific compiler. 26987CC=$lt_compiler 26988 26989# Is the compiler the GNU compiler? 26990with_gcc=$GCC 26991 26992# Compiler flag to turn off builtin functions. 26993no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 26994 26995# How to pass a linker flag through the compiler. 26996wl=$lt_lt_prog_compiler_wl 26997 26998# Additional compiler flags for building library objects. 26999pic_flag=$lt_lt_prog_compiler_pic 27000 27001# Compiler flag to prevent dynamic linking. 27002link_static_flag=$lt_lt_prog_compiler_static 27003 27004# Does compiler simultaneously support -c and -o options? 27005compiler_c_o=$lt_lt_cv_prog_compiler_c_o 27006 27007# Whether or not to add -lc for building shared libraries. 27008build_libtool_need_lc=$archive_cmds_need_lc 27009 27010# Whether or not to disallow shared libs when runtime libs are static. 27011allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 27012 27013# Compiler flag to allow reflexive dlopens. 27014export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 27015 27016# Compiler flag to generate shared objects directly from archives. 27017whole_archive_flag_spec=$lt_whole_archive_flag_spec 27018 27019# Whether the compiler copes with passing no objects directly. 27020compiler_needs_object=$lt_compiler_needs_object 27021 27022# Create an old-style archive from a shared archive. 27023old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 27024 27025# Create a temporary old-style archive to link instead of a shared archive. 27026old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 27027 27028# Commands used to build a shared archive. 27029archive_cmds=$lt_archive_cmds 27030archive_expsym_cmds=$lt_archive_expsym_cmds 27031 27032# Commands used to build a loadable module if different from building 27033# a shared archive. 27034module_cmds=$lt_module_cmds 27035module_expsym_cmds=$lt_module_expsym_cmds 27036 27037# Whether we are building with GNU ld or not. 27038with_gnu_ld=$lt_with_gnu_ld 27039 27040# Flag that allows shared libraries with undefined symbols to be built. 27041allow_undefined_flag=$lt_allow_undefined_flag 27042 27043# Flag that enforces no undefined symbols. 27044no_undefined_flag=$lt_no_undefined_flag 27045 27046# Flag to hardcode \$libdir into a binary during linking. 27047# This must work even if \$libdir does not exist 27048hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 27049 27050# If ld is used when linking, flag to hardcode \$libdir into a binary 27051# during linking. This must work even if \$libdir does not exist. 27052hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 27053 27054# Whether we need a single "-rpath" flag with a separated argument. 27055hardcode_libdir_separator=$lt_hardcode_libdir_separator 27056 27057# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27058# DIR into the resulting binary. 27059hardcode_direct=$hardcode_direct 27060 27061# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27062# DIR into the resulting binary and the resulting library dependency is 27063# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 27064# library is relocated. 27065hardcode_direct_absolute=$hardcode_direct_absolute 27066 27067# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27068# into the resulting binary. 27069hardcode_minus_L=$hardcode_minus_L 27070 27071# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27072# into the resulting binary. 27073hardcode_shlibpath_var=$hardcode_shlibpath_var 27074 27075# Set to "yes" if building a shared library automatically hardcodes DIR 27076# into the library and all subsequent libraries and executables linked 27077# against it. 27078hardcode_automatic=$hardcode_automatic 27079 27080# Set to yes if linker adds runtime paths of dependent libraries 27081# to runtime path list. 27082inherit_rpath=$inherit_rpath 27083 27084# Whether libtool must link a program against all its dependency libraries. 27085link_all_deplibs=$link_all_deplibs 27086 27087# Fix the shell variable \$srcfile for the compiler. 27088fix_srcfile_path=$lt_fix_srcfile_path 27089 27090# Set to "yes" if exported symbols are required. 27091always_export_symbols=$always_export_symbols 27092 27093# The commands to list exported symbols. 27094export_symbols_cmds=$lt_export_symbols_cmds 27095 27096# Symbols that should not be listed in the preloaded symbols. 27097exclude_expsyms=$lt_exclude_expsyms 27098 27099# Symbols that must always be exported. 27100include_expsyms=$lt_include_expsyms 27101 27102# Commands necessary for linking programs (against libraries) with templates. 27103prelink_cmds=$lt_prelink_cmds 27104 27105# Specify filename containing input files. 27106file_list_spec=$lt_file_list_spec 27107 27108# How to hardcode a shared library path into an executable. 27109hardcode_action=$hardcode_action 27110 27111# ### END LIBTOOL CONFIG 27112 27113_LT_EOF 27114 27115 case $host_os in 27116 aix3*) 27117 cat <<\_LT_EOF >> "$cfgfile" 27118# AIX sometimes has problems with the GCC collect2 program. For some 27119# reason, if we set the COLLECT_NAMES environment variable, the problems 27120# vanish in a puff of smoke. 27121if test "X${COLLECT_NAMES+set}" != Xset; then 27122 COLLECT_NAMES= 27123 export COLLECT_NAMES 27124fi 27125_LT_EOF 27126 ;; 27127 esac 27128 27129 27130ltmain="$ac_aux_dir/ltmain.sh" 27131 27132 27133 # We use sed instead of cat because bash on DJGPP gets confused if 27134 # if finds mixed CR/LF and LF-only lines. Since sed operates in 27135 # text mode, it properly converts lines to CR/LF. This bash problem 27136 # is reportedly fixed, but why not run on old versions too? 27137 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 27138 || (rm -f "$cfgfile"; exit 1) 27139 27140 case $xsi_shell in 27141 yes) 27142 cat << \_LT_EOF >> "$cfgfile" 27143 27144# func_dirname file append nondir_replacement 27145# Compute the dirname of FILE. If nonempty, add APPEND to the result, 27146# otherwise set result to NONDIR_REPLACEMENT. 27147func_dirname () 27148{ 27149 case ${1} in 27150 */*) func_dirname_result="${1%/*}${2}" ;; 27151 * ) func_dirname_result="${3}" ;; 27152 esac 27153} 27154 27155# func_basename file 27156func_basename () 27157{ 27158 func_basename_result="${1##*/}" 27159} 27160 27161# func_dirname_and_basename file append nondir_replacement 27162# perform func_basename and func_dirname in a single function 27163# call: 27164# dirname: Compute the dirname of FILE. If nonempty, 27165# add APPEND to the result, otherwise set result 27166# to NONDIR_REPLACEMENT. 27167# value returned in "$func_dirname_result" 27168# basename: Compute filename of FILE. 27169# value retuned in "$func_basename_result" 27170# Implementation must be kept synchronized with func_dirname 27171# and func_basename. For efficiency, we do not delegate to 27172# those functions but instead duplicate the functionality here. 27173func_dirname_and_basename () 27174{ 27175 case ${1} in 27176 */*) func_dirname_result="${1%/*}${2}" ;; 27177 * ) func_dirname_result="${3}" ;; 27178 esac 27179 func_basename_result="${1##*/}" 27180} 27181 27182# func_stripname prefix suffix name 27183# strip PREFIX and SUFFIX off of NAME. 27184# PREFIX and SUFFIX must not contain globbing or regex special 27185# characters, hashes, percent signs, but SUFFIX may contain a leading 27186# dot (in which case that matches only a dot). 27187func_stripname () 27188{ 27189 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 27190 # positional parameters, so assign one to ordinary parameter first. 27191 func_stripname_result=${3} 27192 func_stripname_result=${func_stripname_result#"${1}"} 27193 func_stripname_result=${func_stripname_result%"${2}"} 27194} 27195 27196# func_opt_split 27197func_opt_split () 27198{ 27199 func_opt_split_opt=${1%%=*} 27200 func_opt_split_arg=${1#*=} 27201} 27202 27203# func_lo2o object 27204func_lo2o () 27205{ 27206 case ${1} in 27207 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 27208 *) func_lo2o_result=${1} ;; 27209 esac 27210} 27211 27212# func_xform libobj-or-source 27213func_xform () 27214{ 27215 func_xform_result=${1%.*}.lo 27216} 27217 27218# func_arith arithmetic-term... 27219func_arith () 27220{ 27221 func_arith_result=$(( $* )) 27222} 27223 27224# func_len string 27225# STRING may not start with a hyphen. 27226func_len () 27227{ 27228 func_len_result=${#1} 27229} 27230 27231_LT_EOF 27232 ;; 27233 *) # Bourne compatible functions. 27234 cat << \_LT_EOF >> "$cfgfile" 27235 27236# func_dirname file append nondir_replacement 27237# Compute the dirname of FILE. If nonempty, add APPEND to the result, 27238# otherwise set result to NONDIR_REPLACEMENT. 27239func_dirname () 27240{ 27241 # Extract subdirectory from the argument. 27242 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 27243 if test "X$func_dirname_result" = "X${1}"; then 27244 func_dirname_result="${3}" 27245 else 27246 func_dirname_result="$func_dirname_result${2}" 27247 fi 27248} 27249 27250# func_basename file 27251func_basename () 27252{ 27253 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 27254} 27255 27256 27257# func_stripname prefix suffix name 27258# strip PREFIX and SUFFIX off of NAME. 27259# PREFIX and SUFFIX must not contain globbing or regex special 27260# characters, hashes, percent signs, but SUFFIX may contain a leading 27261# dot (in which case that matches only a dot). 27262# func_strip_suffix prefix name 27263func_stripname () 27264{ 27265 case ${2} in 27266 .*) func_stripname_result=`$ECHO "X${3}" \ 27267 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 27268 *) func_stripname_result=`$ECHO "X${3}" \ 27269 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 27270 esac 27271} 27272 27273# sed scripts: 27274my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 27275my_sed_long_arg='1s/^-[^=]*=//' 27276 27277# func_opt_split 27278func_opt_split () 27279{ 27280 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 27281 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 27282} 27283 27284# func_lo2o object 27285func_lo2o () 27286{ 27287 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 27288} 27289 27290# func_xform libobj-or-source 27291func_xform () 27292{ 27293 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 27294} 27295 27296# func_arith arithmetic-term... 27297func_arith () 27298{ 27299 func_arith_result=`expr "$@"` 27300} 27301 27302# func_len string 27303# STRING may not start with a hyphen. 27304func_len () 27305{ 27306 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 27307} 27308 27309_LT_EOF 27310esac 27311 27312case $lt_shell_append in 27313 yes) 27314 cat << \_LT_EOF >> "$cfgfile" 27315 27316# func_append var value 27317# Append VALUE to the end of shell variable VAR. 27318func_append () 27319{ 27320 eval "$1+=\$2" 27321} 27322_LT_EOF 27323 ;; 27324 *) 27325 cat << \_LT_EOF >> "$cfgfile" 27326 27327# func_append var value 27328# Append VALUE to the end of shell variable VAR. 27329func_append () 27330{ 27331 eval "$1=\$$1\$2" 27332} 27333 27334_LT_EOF 27335 ;; 27336 esac 27337 27338 27339 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 27340 || (rm -f "$cfgfile"; exit 1) 27341 27342 mv -f "$cfgfile" "$ofile" || 27343 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27344 chmod +x "$ofile" 27345 27346 ;; 27347 27348 esac 27349done # for ac_tag 27350 27351 27352{ (exit 0); exit 0; } 27353_ACEOF 27354chmod +x $CONFIG_STATUS 27355ac_clean_files=$ac_clean_files_save 27356 27357test $ac_write_fail = 0 || 27358 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 27359$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 27360 { (exit 1); exit 1; }; } 27361 27362 27363# configure is writing to config.log, and then calls config.status. 27364# config.status does its own redirection, appending to config.log. 27365# Unfortunately, on DOS this fails, as config.log is still kept open 27366# by configure, so config.status won't be able to write to it; its 27367# output is simply discarded. So we exec the FD to /dev/null, 27368# effectively closing config.log, so it can be properly (re)opened and 27369# appended to by config.status. When coming back to configure, we 27370# need to make the FD available again. 27371if test "$no_create" != yes; then 27372 ac_cs_success=: 27373 ac_config_status_args= 27374 test "$silent" = yes && 27375 ac_config_status_args="$ac_config_status_args --quiet" 27376 exec 5>/dev/null 27377 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27378 exec 5>>config.log 27379 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27380 # would make configure fail if this is the last instruction. 27381 $ac_cs_success || { (exit 1); exit 1; } 27382fi 27383if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27384 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 27385$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 27386fi 27387 27388