2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $echo works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619 echo_test_string=`eval $cmd` &&
620 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
632 # The Solaris, AIX, and Digital Unix default echo programs unquote
633 # backslashes. This makes it impossible to quote backslashes using
634 # echo "$something" | sed 's/\\/\\\\/g'
636 # So, first we look for a working echo in the user's PATH.
638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639 for dir in $PATH /usr/ucb; do
641 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
651 if test "X$echo" = Xecho; then
652 # We didn't find a better echo, so look for alternatives.
653 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # This shell has a builtin print -r that does the trick.
658 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659 test "X$CONFIG_SHELL" != X/bin/ksh; then
660 # If we have ksh, try running configure again with it.
661 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662 export ORIGINAL_CONFIG_SHELL
663 CONFIG_SHELL=/bin/ksh
665 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
674 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675 test "X$echo_testing_string" = 'X\t' &&
676 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677 test "X$echo_testing_string" = "X$echo_test_string"; then
678 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 SHELL="$CONFIG_SHELL"
682 echo="$CONFIG_SHELL $0 --fallback-echo"
683 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 echo="$CONFIG_SHELL $0 --fallback-echo"
689 # maybe with a smaller string...
692 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
700 if test "$prev" != 'sed 50q "$0"'; then
701 echo_test_string=`eval $prev`
702 export echo_test_string
703 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 # Oops. We lost completely, so just stick with echo.
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724 tagnames=${tagnames+${tagnames},}CXX
726 tagnames=${tagnames+${tagnames},}F77
728 exec 7<&0 </dev/null 6>&1
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738 ac_default_prefix=/usr/local
740 ac_config_libobj_dir=.
746 SHELL=${CONFIG_SHELL-/bin/sh}
748 # Identity of this package.
755 ac_unique_file="common-src/amanda.h"
756 # Factoring default headers for most tests.
757 ac_includes_default="\
759 #ifdef HAVE_SYS_TYPES_H
760 # include <sys/types.h>
762 #ifdef HAVE_SYS_STAT_H
763 # include <sys/stat.h>
769 # ifdef HAVE_STDLIB_H
774 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
779 #ifdef HAVE_STRINGS_H
780 # include <strings.h>
782 #ifdef HAVE_INTTYPES_H
783 # include <inttypes.h>
808 AMANDA_STATIC_LDFLAGS
859 WANT_KRB5_SECURITY_FALSE
860 WANT_KRB5_SECURITY_TRUE
864 CLIENT_HOST_PRINCIPAL
867 SERVER_HOST_PRINCIPAL
869 WANT_KRB4_SECURITY_FALSE
870 WANT_KRB4_SECURITY_TRUE
872 WANT_SSH_SECURITY_FALSE
873 WANT_SSH_SECURITY_TRUE
876 WANT_RSH_SECURITY_FALSE
877 WANT_RSH_SECURITY_TRUE
879 WANT_BSDUDP_SECURITY_FALSE
880 WANT_BSDUDP_SECURITY_TRUE
882 WANT_BSDTCP_SECURITY_FALSE
883 WANT_BSDTCP_SECURITY_TRUE
886 WANT_BSD_SECURITY_FALSE
887 WANT_BSD_SECURITY_TRUE
888 WANT_TAPE_DEVICE_FALSE
889 WANT_TAPE_DEVICE_TRUE
890 WANT_TAPE_POSIX_FALSE
892 WANT_TAPE_UWARE_FALSE
896 WANT_TAPE_XENIX_FALSE
934 WANT_CYGWIN_COPY_PERL_DLL_FALSE
935 WANT_CYGWIN_COPY_PERL_DLL_TRUE
941 WANT_AMFLOCK_LNLOCK_FALSE
942 WANT_AMFLOCK_LNLOCK_TRUE
943 WANT_AMFLOCK_LOCKF_FALSE
944 WANT_AMFLOCK_LOCKF_TRUE
945 WANT_AMFLOCK_FLOCK_FALSE
946 WANT_AMFLOCK_FLOCK_TRUE
947 WANT_AMFLOCK_POSIX_FALSE
948 WANT_AMFLOCK_POSIX_TRUE
953 WANT_CHG_SCSI_CHIO_FALSE
954 WANT_CHG_SCSI_CHIO_TRUE
961 WANT_SCSI_SOLARIS_FALSE
962 WANT_SCSI_SOLARIS_TRUE
965 WANT_SCSI_HPUX_NEW_FALSE
966 WANT_SCSI_HPUX_NEW_TRUE
967 WANT_SCSI_LINUX_FALSE
976 DEFAULT_AMANDATES_FILE
977 DEFAULT_CHANGER_DEVICE
983 CONFIG_CLOBBER_MY_CONFIG
986 ENABLE_MANPAGE_BUILD_FALSE
987 ENABLE_MANPAGE_BUILD_TRUE
1010 WANT_INSTALLPERMS_FALSE
1011 WANT_INSTALLPERMS_TRUE
1012 WANT_SETUID_CLIENT_FALSE
1013 WANT_SETUID_CLIENT_TRUE
1024 GNUTAR_LISTED_INCREMENTAL_DIR
1025 USE_VERSION_SUFFIXES
1029 AMANDA_WARNING_CFLAGS
1049 HAVE_DECL_GETLOGIN_R
1135 HAVE_SIGNED_SIG_ATOMIC_T
1139 BITSIZEOF_SIG_ATOMIC_T
1147 HAVE_UNSIGNED_LONG_LONG_INT
1185 GNULIB_VSPRINTF_POSIX
1187 GNULIB_VPRINTF_POSIX
1188 GNULIB_VFPRINTF_POSIX
1189 GNULIB_SPRINTF_POSIX
1192 GNULIB_FPRINTF_POSIX
1212 GNULIB_REALLOC_POSIX
1222 REPLACE_GETTIMEOFDAY
1240 GL_COND_LIBTOOL_FALSE
1241 GL_COND_LIBTOOL_TRUE
1276 INSTALL_STRIP_PROGRAM
1330 program_transform_name
1342 enable_option_checking
1343 enable_dependency_tracking
1361 with_gnutar_listed_incremental
1367 with_low_tcpportrange
1371 with_maxtapeblocksize
1385 enable_manpage_build
1402 with_libiconv_prefix
1408 with_bsdtcp_security
1409 with_bsdudp_security
1414 with_server_principal
1415 with_server_instance
1417 with_client_principal
1418 with_client_instance
1420 with_ticket_lifetime
1422 with_dump_honor_nodump
1433 enable_static_binary
1437 ac_precious_vars='build_alias
1461 # Initialize some variables set by options.
1463 ac_init_version=false
1464 ac_unrecognized_opts=
1465 ac_unrecognized_sep=
1466 # The variables have the same names as the options, with
1467 # dashes changed to underlines.
1468 cache_file=/dev/null
1475 program_transform_name=s,x,x,
1483 # Installation directory options.
1484 # These are left unexpanded so users can "make install exec_prefix=/foo"
1485 # and all the variables that are supposed to be based on exec_prefix
1486 # by default will actually change.
1487 # Use braces instead of parens because sh, perl, etc. also accept them.
1488 # (The list follows the same order as the GNU Coding Standards.)
1489 bindir='${exec_prefix}/bin'
1490 sbindir='${exec_prefix}/sbin'
1491 libexecdir='${exec_prefix}/libexec'
1492 datarootdir='${prefix}/share'
1493 datadir='${datarootdir}'
1494 sysconfdir='${prefix}/etc'
1495 sharedstatedir='${prefix}/com'
1496 localstatedir='${prefix}/var'
1497 includedir='${prefix}/include'
1498 oldincludedir='/usr/include'
1499 docdir='${datarootdir}/doc/${PACKAGE}'
1500 infodir='${datarootdir}/info'
1505 libdir='${exec_prefix}/lib'
1506 localedir='${datarootdir}/locale'
1507 mandir='${datarootdir}/man'
1513 # If the previous option needs an argument, assign it.
1514 if test -n "$ac_prev"; then
1515 eval $ac_prev=\$ac_option
1521 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1525 # Accept the important Cygnus configure options, so we can diagnose typos.
1527 case $ac_dashdash$ac_option in
1531 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1533 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1534 bindir=$ac_optarg ;;
1536 -build | --build | --buil | --bui | --bu)
1537 ac_prev=build_alias ;;
1538 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1539 build_alias=$ac_optarg ;;
1541 -cache-file | --cache-file | --cache-fil | --cache-fi \
1542 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1543 ac_prev=cache_file ;;
1544 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1545 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1546 cache_file=$ac_optarg ;;
1548 --config-cache | -C)
1549 cache_file=config.cache ;;
1551 -datadir | --datadir | --datadi | --datad)
1553 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1554 datadir=$ac_optarg ;;
1556 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1557 | --dataroo | --dataro | --datar)
1558 ac_prev=datarootdir ;;
1559 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1560 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1561 datarootdir=$ac_optarg ;;
1563 -disable-* | --disable-*)
1564 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1565 # Reject names that are not valid shell variable names.
1566 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1567 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1568 { (exit 1); exit 1; }; }
1569 ac_useropt_orig=$ac_useropt
1570 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1571 case $ac_user_opts in
1573 "enable_$ac_useropt"
1575 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1576 ac_unrecognized_sep=', ';;
1578 eval enable_$ac_useropt=no ;;
1580 -docdir | --docdir | --docdi | --doc | --do)
1582 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1583 docdir=$ac_optarg ;;
1585 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1587 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1588 dvidir=$ac_optarg ;;
1590 -enable-* | --enable-*)
1591 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1592 # Reject names that are not valid shell variable names.
1593 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1594 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1595 { (exit 1); exit 1; }; }
1596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1600 "enable_$ac_useropt"
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1605 eval enable_$ac_useropt=\$ac_optarg ;;
1607 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1608 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1609 | --exec | --exe | --ex)
1610 ac_prev=exec_prefix ;;
1611 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1612 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1613 | --exec=* | --exe=* | --ex=*)
1614 exec_prefix=$ac_optarg ;;
1616 -gas | --gas | --ga | --g)
1617 # Obsolete; use --with-gas.
1620 -help | --help | --hel | --he | -h)
1621 ac_init_help=long ;;
1622 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1623 ac_init_help=recursive ;;
1624 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1625 ac_init_help=short ;;
1627 -host | --host | --hos | --ho)
1628 ac_prev=host_alias ;;
1629 -host=* | --host=* | --hos=* | --ho=*)
1630 host_alias=$ac_optarg ;;
1632 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1634 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1636 htmldir=$ac_optarg ;;
1638 -includedir | --includedir | --includedi | --included | --include \
1639 | --includ | --inclu | --incl | --inc)
1640 ac_prev=includedir ;;
1641 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1642 | --includ=* | --inclu=* | --incl=* | --inc=*)
1643 includedir=$ac_optarg ;;
1645 -infodir | --infodir | --infodi | --infod | --info | --inf)
1647 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1648 infodir=$ac_optarg ;;
1650 -libdir | --libdir | --libdi | --libd)
1652 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1653 libdir=$ac_optarg ;;
1655 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1656 | --libexe | --libex | --libe)
1657 ac_prev=libexecdir ;;
1658 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1659 | --libexe=* | --libex=* | --libe=*)
1660 libexecdir=$ac_optarg ;;
1662 -localedir | --localedir | --localedi | --localed | --locale)
1663 ac_prev=localedir ;;
1664 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1665 localedir=$ac_optarg ;;
1667 -localstatedir | --localstatedir | --localstatedi | --localstated \
1668 | --localstate | --localstat | --localsta | --localst | --locals)
1669 ac_prev=localstatedir ;;
1670 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1671 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1672 localstatedir=$ac_optarg ;;
1674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1677 mandir=$ac_optarg ;;
1679 -nfp | --nfp | --nf)
1680 # Obsolete; use --without-fp.
1683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1684 | --no-cr | --no-c | -n)
1687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1693 | --oldin | --oldi | --old | --ol | --o)
1694 ac_prev=oldincludedir ;;
1695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1698 oldincludedir=$ac_optarg ;;
1700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1703 prefix=$ac_optarg ;;
1705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1706 | --program-pre | --program-pr | --program-p)
1707 ac_prev=program_prefix ;;
1708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1710 program_prefix=$ac_optarg ;;
1712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1713 | --program-suf | --program-su | --program-s)
1714 ac_prev=program_suffix ;;
1715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1717 program_suffix=$ac_optarg ;;
1719 -program-transform-name | --program-transform-name \
1720 | --program-transform-nam | --program-transform-na \
1721 | --program-transform-n | --program-transform- \
1722 | --program-transform | --program-transfor \
1723 | --program-transfo | --program-transf \
1724 | --program-trans | --program-tran \
1725 | --progr-tra | --program-tr | --program-t)
1726 ac_prev=program_transform_name ;;
1727 -program-transform-name=* | --program-transform-name=* \
1728 | --program-transform-nam=* | --program-transform-na=* \
1729 | --program-transform-n=* | --program-transform-=* \
1730 | --program-transform=* | --program-transfor=* \
1731 | --program-transfo=* | --program-transf=* \
1732 | --program-trans=* | --program-tran=* \
1733 | --progr-tra=* | --program-tr=* | --program-t=*)
1734 program_transform_name=$ac_optarg ;;
1736 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1738 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1739 pdfdir=$ac_optarg ;;
1741 -psdir | --psdir | --psdi | --psd | --ps)
1743 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1750 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1752 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1754 sbindir=$ac_optarg ;;
1756 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1757 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1758 | --sharedst | --shareds | --shared | --share | --shar \
1760 ac_prev=sharedstatedir ;;
1761 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1762 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1763 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1765 sharedstatedir=$ac_optarg ;;
1767 -site | --site | --sit)
1769 -site=* | --site=* | --sit=*)
1772 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1774 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1775 srcdir=$ac_optarg ;;
1777 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1778 | --syscon | --sysco | --sysc | --sys | --sy)
1779 ac_prev=sysconfdir ;;
1780 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1781 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1782 sysconfdir=$ac_optarg ;;
1784 -target | --target | --targe | --targ | --tar | --ta | --t)
1785 ac_prev=target_alias ;;
1786 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1787 target_alias=$ac_optarg ;;
1789 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1792 -version | --version | --versio | --versi | --vers | -V)
1793 ac_init_version=: ;;
1796 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1797 # Reject names that are not valid shell variable names.
1798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1799 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1800 { (exit 1); exit 1; }; }
1801 ac_useropt_orig=$ac_useropt
1802 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1803 case $ac_user_opts in
1807 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1808 ac_unrecognized_sep=', ';;
1810 eval with_$ac_useropt=\$ac_optarg ;;
1812 -without-* | --without-*)
1813 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1814 # Reject names that are not valid shell variable names.
1815 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1816 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1817 { (exit 1); exit 1; }; }
1818 ac_useropt_orig=$ac_useropt
1819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1820 case $ac_user_opts in
1824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1825 ac_unrecognized_sep=', ';;
1827 eval with_$ac_useropt=no ;;
1830 # Obsolete; use --with-x.
1833 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1834 | --x-incl | --x-inc | --x-in | --x-i)
1835 ac_prev=x_includes ;;
1836 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1837 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1838 x_includes=$ac_optarg ;;
1840 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1841 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1842 ac_prev=x_libraries ;;
1843 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1844 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1845 x_libraries=$ac_optarg ;;
1847 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1848 Try \`$0 --help' for more information." >&2
1849 { (exit 1); exit 1; }; }
1853 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1854 # Reject names that are not valid shell variable names.
1855 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1856 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1857 { (exit 1); exit 1; }; }
1858 eval $ac_envvar=\$ac_optarg
1859 export $ac_envvar ;;
1862 # FIXME: should be removed in autoconf 3.0.
1863 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1864 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1865 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1866 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1872 if test -n "$ac_prev"; then
1873 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1874 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1875 { (exit 1); exit 1; }; }
1878 if test -n "$ac_unrecognized_opts"; then
1879 case $enable_option_checking in
1881 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1882 { (exit 1); exit 1; }; } ;;
1883 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1887 # Check all directory arguments for consistency.
1888 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1889 datadir sysconfdir sharedstatedir localstatedir includedir \
1890 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1891 libdir localedir mandir
1893 eval ac_val=\$$ac_var
1894 # Remove trailing slashes.
1897 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1898 eval $ac_var=\$ac_val;;
1900 # Be sure to have absolute directory names.
1902 [\\/$]* | ?:[\\/]* ) continue;;
1903 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1905 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1906 { (exit 1); exit 1; }; }
1909 # There might be people who depend on the old broken behavior: `$host'
1910 # used to hold the argument of --host etc.
1911 # FIXME: To remove some day.
1914 target=$target_alias
1916 # FIXME: To remove some day.
1917 if test "x$host_alias" != x; then
1918 if test "x$build_alias" = x; then
1919 cross_compiling=maybe
1920 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1921 If a cross compiler is detected then cross compile mode will be used." >&2
1922 elif test "x$build_alias" != "x$host_alias"; then
1928 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1930 test "$silent" = yes && exec 6>/dev/null
1933 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1934 ac_ls_di=`ls -di .` &&
1935 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1936 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1937 { (exit 1); exit 1; }; }
1938 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1939 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1940 { (exit 1); exit 1; }; }
1943 # Find the source files, if location was not specified.
1944 if test -z "$srcdir"; then
1945 ac_srcdir_defaulted=yes
1946 # Try the directory containing this script, then the parent directory.
1947 ac_confdir=`$as_dirname -- "$as_myself" ||
1948 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1949 X"$as_myself" : 'X\(//\)[^/]' \| \
1950 X"$as_myself" : 'X\(//\)$' \| \
1951 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1952 $as_echo X"$as_myself" |
1953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1971 if test ! -r "$srcdir/$ac_unique_file"; then
1975 ac_srcdir_defaulted=no
1977 if test ! -r "$srcdir/$ac_unique_file"; then
1978 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1979 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1980 { (exit 1); exit 1; }; }
1982 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1984 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1985 { (exit 1); exit 1; }; }
1987 # When building in place, set srcdir=.
1988 if test "$ac_abs_confdir" = "$ac_pwd"; then
1991 # Remove unnecessary trailing slashes from srcdir.
1992 # Double slashes in file names in object file debugging info
1993 # mess up M-x gdb in Emacs.
1995 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1997 for ac_var in $ac_precious_vars; do
1998 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1999 eval ac_env_${ac_var}_value=\$${ac_var}
2000 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2001 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2005 # Report the --help message.
2007 if test "$ac_init_help" = "long"; then
2008 # Omit some internal or obsolete options to make the list less imposing.
2009 # This message is too long to be a string in the A/UX 3.1 sh.
2011 \`configure' configures this package to adapt to many kinds of systems.
2013 Usage: $0 [OPTION]... [VAR=VALUE]...
2015 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2016 VAR=VALUE. See below for descriptions of some of the useful variables.
2018 Defaults for the options are specified in brackets.
2021 -h, --help display this help and exit
2022 --help=short display options specific to this package
2023 --help=recursive display the short help of all the included packages
2024 -V, --version display version information and exit
2025 -q, --quiet, --silent do not print \`checking...' messages
2026 --cache-file=FILE cache test results in FILE [disabled]
2027 -C, --config-cache alias for \`--cache-file=config.cache'
2028 -n, --no-create do not create output files
2029 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2031 Installation directories:
2032 --prefix=PREFIX install architecture-independent files in PREFIX
2033 [$ac_default_prefix]
2034 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2037 By default, \`make install' will install all the files in
2038 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2039 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2040 for instance \`--prefix=\$HOME'.
2042 For better control, use the options below.
2044 Fine tuning of the installation directories:
2045 --bindir=DIR user executables [EPREFIX/bin]
2046 --sbindir=DIR system admin executables [EPREFIX/sbin]
2047 --libexecdir=DIR program executables [EPREFIX/libexec]
2048 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2049 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2050 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2051 --libdir=DIR object code libraries [EPREFIX/lib]
2052 --includedir=DIR C header files [PREFIX/include]
2053 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2054 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2055 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2056 --infodir=DIR info documentation [DATAROOTDIR/info]
2057 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2058 --mandir=DIR man documentation [DATAROOTDIR/man]
2059 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2060 --htmldir=DIR html documentation [DOCDIR]
2061 --dvidir=DIR dvi documentation [DOCDIR]
2062 --pdfdir=DIR pdf documentation [DOCDIR]
2063 --psdir=DIR ps documentation [DOCDIR]
2069 --program-prefix=PREFIX prepend PREFIX to installed program names
2070 --program-suffix=SUFFIX append SUFFIX to installed program names
2071 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2074 --build=BUILD configure for building on BUILD [guessed]
2075 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2076 --target=TARGET configure for building compilers for TARGET [HOST]
2080 if test -n "$ac_init_help"; then
2085 --disable-option-checking ignore unrecognized --enable/--with options
2086 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2087 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2088 --disable-dependency-tracking speeds up one-time build
2089 --enable-dependency-tracking do not reject slow dependency extractors
2090 --enable-threads={posix|solaris|pth|win32}
2091 specify multithreading API
2092 --disable-threads build without multithread safety
2093 --disable-rpath do not hardcode runtime library paths
2094 --disable-largefile omit support for large files
2095 --disable-installperms do not modify ownership and permissions on installed
2097 --enable-manpage-build Build the manpages from their XML source (shipped
2098 manpages are usually sufficient)
2099 --disable-nls do not use Native Language Support
2100 --disable-s3-device disable the S3 device
2101 --enable-shared[=PKGS] build shared libraries [default=yes]
2102 --enable-static[=PKGS] build static libraries [default=yes]
2103 --enable-fast-install[=PKGS]
2104 optimize for fast installation [default=yes]
2105 --disable-libtool-lock avoid locking (might break parallel builds)
2106 --enable-static-binary To build statically linked binaries
2107 --disable-glibtest do not try to compile and run a test GLIB program
2110 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2111 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2112 --with-gnu-ld assume the C compiler uses GNU ld default=no
2113 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2114 --without-libpth-prefix don't search for libpth in includedir and libdir
2115 --with-cflags=FLAGS deprecated; use ./configure CFLAGS=...
2116 --with-includes=INCLUDE-DIRS
2117 deprecated; use ./configure CPPFLAGS='-I.. -I..'
2118 --with-libraries=LIBRARY-DIRS
2119 deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2120 -R on Solaris, NetBSD)
2121 --with-user=USER force execution to USER on client systems (REQUIRED)
2122 --with-group=GROUP group allowed to execute setuid-root programs
2124 --with-dumperdir=DIR where we install the dumpers (deprecated)
2125 --with-configdir=DIR runtime config files in DIR [sysconfdir/amanda]
2126 --with-indexdir deprecated: use indexdir in amanda.conf
2127 --with-dbdir deprecated: use infofile in amanda.conf
2128 --with-logdir deprecated: use logfile in amanda.conf
2129 --with-suffixes install binaries with version string appended to name
2130 --with-gnutar-listdir=DIR
2131 put gnutar directory lists in DIR (default:
2132 localstatedir/amanda/gnutar-lists)
2133 --with-gnutar-listed-incremental
2134 deprecated; use --with-gnutar-listdir
2135 --with-tmpdir directory for temporary and debugging files
2136 (default: /tmp/amanda)
2137 --without-force-uid do not check userids when running programs
2139 force ownership of installed files to USER (default same as --with-user)
2141 --with-fqdn use FQDN's to backup multiple networks
2142 --without-reuseaddr Don't reuse network connections until full timeout
2144 --with-low-tcpportrange=low/high
2145 bind reserved TCP server sockets to ports within
2146 this range (default: unlimited)
2147 --with-tcpportrange=low/high
2148 bind unreserved TCP server sockets to ports within
2149 this range (default: unlimited)
2150 --with-udpportrange=low/high
2151 bind reserved UDP server sockets to ports within
2152 this range (default: unlimited)
2153 --with-buffered-dump buffer the dumping sockets on the server for speed
2155 --with-assertions compile assertions into code
2156 --with-debugging=DIR
2157 put debug logs in DIR (default same as --with-tmpdir)
2159 --with-debug-days=NN number of days to keep debugging files (default: 4)
2160 --with-testing[=SUFFIX] use alternate service names with suffix (default
2162 --with-single-userid
2163 force amanda to run as a single userid (for testing)
2165 --without-server do not build server stuff (set --without-restore)
2166 --without-client do not build client stuff
2167 --without-restore do not build amrestore nor amidxtaped
2168 --without-amrecover do not build amrecover
2169 --with-client-only deprecated: use --without-server
2170 --with-server-only deprecated: use --without-client
2171 --with-gnuplot=PATH use gnuplot executable at PATH in amplot
2172 --with-xsltproc[[[=PATH]]]
2173 Use the xsltproc binary in in PATH.
2174 --with-xsltproc-flags=FLAGS
2175 Flags to pass to xsltproc (default --nonet)
2176 --with-index-server=HOST
2177 default amanda index server (default: `uname -n`)
2178 --with-config=CONFIG default amanda configuration (default: DailySet1)
2179 --with-tape-server=HOST default tape server for restore (default: same as
2181 --with-tape-device=DEVICE
2182 default device on restore tape server
2183 --with-changer-device=DEV
2184 default tape changer device (default: /dev/ch0)
2185 --with-amandates default location for 'amandates' (default:
2186 $localstatedir/amanda/amandates)
2187 --with-perlextlibs=libs extra LIBS for Perl extensions
2188 --with-ipv6 enable IPv6 support (default if IPv6 is found)
2189 --without-ipv6 disable IPv6
2190 --with-mmap force use of mmap instead of shared memory support
2191 --with-amlibdir[[[=PATH]]]
2192 Where library are installed, default: $libdir/amanda
2193 --without-amlibdir Library are installed in $libdir
2194 --with-amlibexecdir[[[=PATH]]]
2195 Where amanda own programs are installed, default:
2197 --without-amlibexecdir Amanda own programs are installed in $libexecdir
2198 --with-amperldir[[[=PATH]]]
2199 Where amanda's perl modules are installed; default:
2201 --without-amperldir Install amanda's perl modules in $amlibdir/perl
2202 --with-amdatadir[[[=PATH]]]
2203 Where amanda's templates and examples are installed;
2204 default: $datadir/amanda
2205 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2206 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2207 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2208 --without-libintl-prefix don't search for libintl in includedir and libdir
2209 --with-libcurl=DIR look for the curl library in DIR
2210 --without-bsd-security do not include BSD authentication
2211 --without-amandahosts use ".rhosts" instead of ".amandahosts"
2212 --with-bsdtcp-security include BSDTCP authentication
2213 --with-bsdudp-security include BSDUDP authentication
2214 --with-rsh-security include RSH authentication
2215 --with-ssh-security include SSH authentication
2216 --with-ssh-options=[OPTIONS]
2217 Use these ssh options for ssh security; the default
2219 --with-krb4-security=DIR
2220 Location of Kerberos software [/usr/kerberos
2221 /usr/cygnus /usr /opt/kerberos]
2222 --with-server-principal=ARG
2223 server host principal ("amanda")
2224 --with-server-instance=ARG
2225 server host instance ("amanda")
2226 --with-server-keyfile=ARG
2227 server host key file ("/.amanda")
2228 --with-client-principal=ARG
2229 client host principle ("rcmd")
2230 --with-client-instance=ARG
2231 client host instance (HOSTNAME_INSTANCE)
2232 --with-client-keyfile=ARG
2233 client host key file (KEYFILE)
2234 --ticket-lifetime ticket lifetime (128)
2235 --with-krb5-security=DIR
2236 Location of Kerberos V software [/usr/kerberos
2237 /usr/cygnus /usr /opt/kerberos]
2238 --with-dump-honor-nodump
2239 if dump supports -h, use it for level0s too
2240 --with-gnutar=PROG use PROG as GNU 'tar'
2241 --with-smbclient=PROG use PROG as 'smbclient'
2242 --with-samba-user deprecated; place username in 'amandapass'
2243 --with-rundump use rundump, a setuid-root wrapper, to invoke dump
2244 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2245 --with-pic try to use only PIC/non-PIC objects [default=use
2247 --with-tags[=TAGS] include additional configurations [automatic]
2248 --with-readline require readline support (for amrecover)
2249 --without-readline don't search for readline
2251 Some influential environment variables:
2252 CC C compiler command
2253 CFLAGS C compiler flags
2254 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2255 nonstandard directory <lib dir>
2256 LIBS libraries to pass to the linker, e.g. -l<library>
2257 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2258 you have headers in a nonstandard directory <include dir>
2260 GNUPLOT Location of the 'gnuplot' binary
2261 SWIG Path to the 'swig' binary (developers only)
2262 PERL Path to the 'perl' binary
2263 GNUTAR Location of the GNU 'tar' binary
2264 YACC The `Yet Another C Compiler' implementation to use. Defaults to
2265 the first program found out of: `bison -y', `byacc', `yacc'.
2266 YFLAGS The list of arguments that will be passed by default to $YACC.
2267 This script will default YFLAGS to the empty string to avoid a
2268 default value of `-d' given by some make applications.
2269 CXX C++ compiler command
2270 CXXFLAGS C++ compiler flags
2271 CXXCPP C++ preprocessor
2272 F77 Fortran 77 compiler command
2273 FFLAGS Fortran 77 compiler flags
2274 PKG_CONFIG path to pkg-config utility
2276 Use these variables to override the choices made by `configure' or to help
2277 it to find libraries and programs with nonstandard names/locations.
2283 if test "$ac_init_help" = "recursive"; then
2284 # If there are subdirs, report their specific --help.
2285 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2286 test -d "$ac_dir" ||
2287 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2292 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2294 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2295 # A ".." for each directory in $ac_dir_suffix.
2296 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2297 case $ac_top_builddir_sub in
2298 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2299 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2302 ac_abs_top_builddir=$ac_pwd
2303 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2304 # for backward compatibility:
2305 ac_top_builddir=$ac_top_build_prefix
2308 .) # We are building in place.
2310 ac_top_srcdir=$ac_top_builddir_sub
2311 ac_abs_top_srcdir=$ac_pwd ;;
2312 [\\/]* | ?:[\\/]* ) # Absolute name.
2313 ac_srcdir=$srcdir$ac_dir_suffix;
2314 ac_top_srcdir=$srcdir
2315 ac_abs_top_srcdir=$srcdir ;;
2317 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2318 ac_top_srcdir=$ac_top_build_prefix$srcdir
2319 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2321 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2323 cd "$ac_dir" || { ac_status=$?; continue; }
2324 # Check for guested configure.
2325 if test -f "$ac_srcdir/configure.gnu"; then
2327 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2328 elif test -f "$ac_srcdir/configure"; then
2330 $SHELL "$ac_srcdir/configure" --help=recursive
2332 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2334 cd "$ac_pwd" || { ac_status=$?; break; }
2338 test -n "$ac_init_help" && exit $ac_status
2339 if $ac_init_version; then
2342 generated by GNU Autoconf 2.63
2344 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2345 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2346 This configure script is free software; the Free Software Foundation
2347 gives unlimited permission to copy, distribute and modify it.
2351 cat >config.log <<_ACEOF
2352 This file contains any messages produced by compilers while
2353 running configure, to aid debugging if configure makes a mistake.
2355 It was created by $as_me, which was
2356 generated by GNU Autoconf 2.63. Invocation command line was
2368 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2369 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2370 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2371 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2372 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2374 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2375 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2377 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2378 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2379 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2380 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2381 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2382 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2383 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 $as_echo "PATH: $as_dir"
2408 # Keep a trace of the command line.
2409 # Strip out --no-create and --no-recursion so they do not pile up.
2410 # Strip out --silent because we don't want to record it for future runs.
2411 # Also quote any args containing shell meta-characters.
2412 # Make two passes to allow for proper duplicate-argument suppression.
2416 ac_must_keep_next=false
2422 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2424 | -silent | --silent | --silen | --sile | --sil)
2427 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2430 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2432 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2433 if test $ac_must_keep_next = true; then
2434 ac_must_keep_next=false # Got value, back to normal.
2437 *=* | --config-cache | -C | -disable-* | --disable-* \
2438 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2439 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2440 | -with-* | --with-* | -without-* | --without-* | --x)
2441 case "$ac_configure_args0 " in
2442 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2445 -* ) ac_must_keep_next=true ;;
2448 ac_configure_args="$ac_configure_args '$ac_arg'"
2453 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2454 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2456 # When interrupted or exit'd, cleanup temporary files, and complete
2457 # config.log. We remove comments because anyway the quotes in there
2458 # would cause problems or look ugly.
2459 # WARNING: Use '\'' to represent an apostrophe within the trap.
2460 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2461 trap 'exit_status=$?
2462 # Save into config.log some information that might help in debugging.
2467 ## ---------------- ##
2468 ## Cache variables. ##
2469 ## ---------------- ##
2472 # The following way of writing the cache mishandles newlines in values,
2474 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2475 eval ac_val=\$$ac_var
2479 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483 _ | IFS | as_nl) ;; #(
2484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2485 *) $as_unset $ac_var ;;
2490 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2491 *${as_nl}ac_space=\ *)
2493 "s/'\''/'\''\\\\'\'''\''/g;
2494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2505 ## ----------------- ##
2506 ## Output variables. ##
2507 ## ----------------- ##
2510 for ac_var in $ac_subst_vars
2512 eval ac_val=\$$ac_var
2514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516 $as_echo "$ac_var='\''$ac_val'\''"
2520 if test -n "$ac_subst_files"; then
2522 ## ------------------- ##
2523 ## File substitutions. ##
2524 ## ------------------- ##
2527 for ac_var in $ac_subst_files
2529 eval ac_val=\$$ac_var
2531 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2533 $as_echo "$ac_var='\''$ac_val'\''"
2538 if test -s confdefs.h; then
2548 test "$ac_signal" != 0 &&
2549 $as_echo "$as_me: caught signal $ac_signal"
2550 $as_echo "$as_me: exit $exit_status"
2552 rm -f core *.core core.conftest.* &&
2553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2556 for ac_signal in 1 2 13 15; do
2557 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2562 rm -f -r conftest* confdefs.h
2564 # Predefined preprocessor variables.
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_NAME "$PACKAGE_NAME"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_STRING "$PACKAGE_STRING"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2591 # Let the site file select an alternate cache file if it wants to.
2592 # Prefer an explicitly selected file to automatically selected ones.
2595 if test -n "$CONFIG_SITE"; then
2596 ac_site_file1=$CONFIG_SITE
2597 elif test "x$prefix" != xNONE; then
2598 ac_site_file1=$prefix/share/config.site
2599 ac_site_file2=$prefix/etc/config.site
2601 ac_site_file1=$ac_default_prefix/share/config.site
2602 ac_site_file2=$ac_default_prefix/etc/config.site
2604 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2606 test "x$ac_site_file" = xNONE && continue
2607 if test -r "$ac_site_file"; then
2608 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2609 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2610 sed 's/^/| /' "$ac_site_file" >&5
2615 if test -r "$cache_file"; then
2616 # Some versions of bash will fail to source /dev/null (special
2617 # files actually), so we avoid doing that.
2618 if test -f "$cache_file"; then
2619 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2620 $as_echo "$as_me: loading cache $cache_file" >&6;}
2622 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2623 *) . "./$cache_file";;
2627 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2628 $as_echo "$as_me: creating cache $cache_file" >&6;}
2632 gl_header_list="$gl_header_list arpa/inet.h"
2633 gl_header_list="$gl_header_list float.h"
2634 gl_header_list="$gl_header_list sys/param.h"
2635 gl_header_list="$gl_header_list sys/vfs.h"
2636 gl_header_list="$gl_header_list sys/fs_types.h"
2637 gl_header_list="$gl_header_list sys/socket.h"
2638 gl_header_list="$gl_header_list netdb.h"
2639 gl_header_list="$gl_header_list netinet/in.h"
2640 gl_header_list="$gl_header_list sys/time.h"
2641 gl_func_list="$gl_func_list gettimeofday"
2642 gl_header_list="$gl_header_list stdint.h"
2643 gl_header_list="$gl_header_list wchar.h"
2644 gl_header_list="$gl_header_list stdio.h"
2645 gl_header_list="$gl_header_list stdlib.h"
2646 gl_header_list="$gl_header_list string.h"
2647 gl_func_list="$gl_func_list lstat"
2648 gl_header_list="$gl_header_list sys/stat.h"
2649 gl_header_list="$gl_header_list unistd.h"
2650 gl_func_list="$gl_func_list vasnprintf"
2651 # Check that the precious variables saved in the cache have kept the same
2653 ac_cache_corrupted=false
2654 for ac_var in $ac_precious_vars; do
2655 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656 eval ac_new_set=\$ac_env_${ac_var}_set
2657 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658 eval ac_new_val=\$ac_env_${ac_var}_value
2659 case $ac_old_set,$ac_new_set in
2661 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2662 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2663 ac_cache_corrupted=: ;;
2665 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2666 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2667 ac_cache_corrupted=: ;;
2670 if test "x$ac_old_val" != "x$ac_new_val"; then
2671 # differences in whitespace do not lead to failure.
2672 ac_old_val_w=`echo x $ac_old_val`
2673 ac_new_val_w=`echo x $ac_new_val`
2674 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2676 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2677 ac_cache_corrupted=:
2679 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2680 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681 eval $ac_var=\$ac_old_val
2683 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2684 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2685 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2686 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2689 # Pass precious variables to config.status.
2690 if test "$ac_new_set" = set; then
2692 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693 *) ac_arg=$ac_var=$ac_new_val ;;
2695 case " $ac_configure_args " in
2696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2697 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2701 if $ac_cache_corrupted; then
2702 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2705 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2706 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2707 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2708 { (exit 1); exit 1; }; }
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 for ac_dir in config "$srcdir"/config; do
2737 if test -f "$ac_dir/install-sh"; then
2739 ac_install_sh="$ac_aux_dir/install-sh -c"
2741 elif test -f "$ac_dir/install.sh"; then
2743 ac_install_sh="$ac_aux_dir/install.sh -c"
2745 elif test -f "$ac_dir/shtool"; then
2747 ac_install_sh="$ac_aux_dir/shtool install -c"
2751 if test -z "$ac_aux_dir"; then
2752 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2753 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2754 { (exit 1); exit 1; }; }
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2762 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2763 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2766 # Make sure we can run config.sub.
2767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2768 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2769 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2770 { (exit 1); exit 1; }; }
2772 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2773 $as_echo_n "checking build system type... " >&6; }
2774 if test "${ac_cv_build+set}" = set; then
2775 $as_echo_n "(cached) " >&6
2777 ac_build_alias=$build_alias
2778 test "x$ac_build_alias" = x &&
2779 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2780 test "x$ac_build_alias" = x &&
2781 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2782 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2783 { (exit 1); exit 1; }; }
2784 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2785 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2786 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2787 { (exit 1); exit 1; }; }
2790 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2791 $as_echo "$ac_cv_build" >&6; }
2792 case $ac_cv_build in
2794 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2795 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2796 { (exit 1); exit 1; }; };;
2799 ac_save_IFS=$IFS; IFS='-'
2805 # Remember, the first character of IFS is used to create $*,
2806 # except with old shells:
2809 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2813 $as_echo_n "checking host system type... " >&6; }
2814 if test "${ac_cv_host+set}" = set; then
2815 $as_echo_n "(cached) " >&6
2817 if test "x$host_alias" = x; then
2818 ac_cv_host=$ac_cv_build
2820 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2821 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2822 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2823 { (exit 1); exit 1; }; }
2827 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2828 $as_echo "$ac_cv_host" >&6; }
2831 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2832 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2833 { (exit 1); exit 1; }; };;
2836 ac_save_IFS=$IFS; IFS='-'
2842 # Remember, the first character of IFS is used to create $*,
2843 # except with old shells:
2846 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2849 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2850 $as_echo_n "checking target system type... " >&6; }
2851 if test "${ac_cv_target+set}" = set; then
2852 $as_echo_n "(cached) " >&6
2854 if test "x$target_alias" = x; then
2855 ac_cv_target=$ac_cv_host
2857 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2858 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2859 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2860 { (exit 1); exit 1; }; }
2864 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2865 $as_echo "$ac_cv_target" >&6; }
2866 case $ac_cv_target in
2868 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2869 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2870 { (exit 1); exit 1; }; };;
2872 target=$ac_cv_target
2873 ac_save_IFS=$IFS; IFS='-'
2879 # Remember, the first character of IFS is used to create $*,
2880 # except with old shells:
2883 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2886 # The aliases save the names the user supplied, while $host etc.
2887 # will get canonicalized.
2888 test -n "$target_alias" &&
2889 test "$program_prefix$program_suffix$program_transform_name" = \
2891 program_prefix=${target_alias}-
2896 am__api_version='1.10'
2898 # Find a good install program. We prefer a C program (faster),
2899 # so one script is as good as another. But avoid the broken or
2900 # incompatible versions:
2901 # SysV /etc/install, /usr/sbin/install
2902 # SunOS /usr/etc/install
2903 # IRIX /sbin/install
2905 # AmigaOS /C/install, which installs bootblocks on floppy discs
2906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2909 # OS/2's system install, which has a completely different semantic
2910 # ./install, which can be erroneously created by make from ./install.sh.
2911 # Reject install programs that cannot install multiple files.
2912 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2913 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2914 if test -z "$INSTALL"; then
2915 if test "${ac_cv_path_install+set}" = set; then
2916 $as_echo_n "(cached) " >&6
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 # Account for people who put trailing slashes in PATH elements.
2925 ./ | .// | /cC/* | \
2926 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2927 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2930 # OSF1 and SCO ODT 3.0 have their own names for install.
2931 # Don't use installbsd from OSF since it installs stuff as root
2933 for ac_prog in ginstall scoinst install; do
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2936 if test $ac_prog = install &&
2937 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2938 # AIX install. It has an incompatible calling convention.
2940 elif test $ac_prog = install &&
2941 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2942 # program-specific install script used by HP pwplus--don't use.
2945 rm -rf conftest.one conftest.two conftest.dir
2946 echo one > conftest.one
2947 echo two > conftest.two
2949 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2950 test -s conftest.one && test -s conftest.two &&
2951 test -s conftest.dir/conftest.one &&
2952 test -s conftest.dir/conftest.two
2954 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2967 rm -rf conftest.one conftest.two conftest.dir
2970 if test "${ac_cv_path_install+set}" = set; then
2971 INSTALL=$ac_cv_path_install
2973 # As a last resort, use the slow shell script. Don't cache a
2974 # value for INSTALL within a source directory, because that will
2975 # break other packages using the cache if that directory is
2976 # removed, or if the value is a relative name.
2977 INSTALL=$ac_install_sh
2980 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2981 $as_echo "$INSTALL" >&6; }
2983 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2984 # It thinks the first close brace ends the variable substitution.
2985 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2987 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2989 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2991 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2992 $as_echo_n "checking whether build environment is sane... " >&6; }
2995 echo timestamp > conftest.file
2996 # Do `set' in a subshell so we don't clobber the current shell's
2997 # arguments. Must try -L first in case configure is actually a
2998 # symlink; some systems play weird games with the mod time of symlinks
2999 # (eg FreeBSD returns the mod time of the symlink's containing
3002 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3003 if test "$*" = "X"; then
3005 set X `ls -t $srcdir/configure conftest.file`
3008 if test "$*" != "X $srcdir/configure conftest.file" \
3009 && test "$*" != "X conftest.file $srcdir/configure"; then
3011 # If neither matched, then we have a broken ls. This can happen
3012 # if, for instance, CONFIG_SHELL is bash and it inherits a
3013 # broken ls alias from the environment. This has actually
3014 # happened. Such a system could not be considered "sane".
3015 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3016 alias in your environment" >&5
3017 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3018 alias in your environment" >&2;}
3019 { (exit 1); exit 1; }; }
3022 test "$2" = conftest.file
3028 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3029 Check your system clock" >&5
3030 $as_echo "$as_me: error: newly created file is older than distributed files!
3031 Check your system clock" >&2;}
3032 { (exit 1); exit 1; }; }
3034 { $as_echo "$as_me:$LINENO: result: yes" >&5
3035 $as_echo "yes" >&6; }
3036 test "$program_prefix" != NONE &&
3037 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3038 # Use a double $ so make ignores it.
3039 test "$program_suffix" != NONE &&
3040 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3041 # Double any \ or $.
3042 # By default was `s,x,x', remove it if useless.
3043 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3044 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3046 # expand $ac_aux_dir to an absolute path
3047 am_aux_dir=`cd $ac_aux_dir && pwd`
3049 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3050 # Use eval to expand $SHELL
3051 if eval "$MISSING --run true"; then
3052 am_missing_run="$MISSING --run "
3055 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3056 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3059 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3060 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3061 if test -z "$MKDIR_P"; then
3062 if test "${ac_cv_path_mkdir+set}" = set; then
3063 $as_echo_n "(cached) " >&6
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3069 test -z "$as_dir" && as_dir=.
3070 for ac_prog in mkdir gmkdir; do
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3073 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3074 'mkdir (GNU coreutils) '* | \
3075 'mkdir (coreutils) '* | \
3076 'mkdir (fileutils) '4.1*)
3077 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3087 if test "${ac_cv_path_mkdir+set}" = set; then
3088 MKDIR_P="$ac_cv_path_mkdir -p"
3090 # As a last resort, use the slow shell script. Don't cache a
3091 # value for MKDIR_P within a source directory, because that will
3092 # break other packages using the cache if that directory is
3093 # removed, or if the value is a relative name.
3094 test -d ./--version && rmdir ./--version
3095 MKDIR_P="$ac_install_sh -d"
3098 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3099 $as_echo "$MKDIR_P" >&6; }
3103 [\\/$]* | ?:[\\/]*) ;;
3104 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3107 for ac_prog in gawk mawk nawk awk
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_AWK+set}" = set; then
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$AWK"; then
3117 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_AWK="$ac_prog"
3127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 if test -n "$AWK"; then
3138 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3139 $as_echo "$AWK" >&6; }
3141 { $as_echo "$as_me:$LINENO: result: no" >&5
3142 $as_echo "no" >&6; }
3146 test -n "$AWK" && break
3149 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3150 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3152 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3153 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3154 $as_echo_n "(cached) " >&6
3156 cat >conftest.make <<\_ACEOF
3159 @echo '@@@%%%=$(MAKE)=@@@%%%'
3161 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3162 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3164 eval ac_cv_prog_make_${ac_make}_set=yes;;
3166 eval ac_cv_prog_make_${ac_make}_set=no;;
3170 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3171 { $as_echo "$as_me:$LINENO: result: yes" >&5
3172 $as_echo "yes" >&6; }
3175 { $as_echo "$as_me:$LINENO: result: no" >&5
3176 $as_echo "no" >&6; }
3177 SET_MAKE="MAKE=${MAKE-make}"
3180 rm -rf .tst 2>/dev/null
3181 mkdir .tst 2>/dev/null
3182 if test -d .tst; then
3187 rmdir .tst 2>/dev/null
3189 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3190 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3191 # is not polluted with repeated "-I."
3192 am__isrc=' -I$(srcdir)'
3193 # test to see if srcdir already configured
3194 if test -f $srcdir/config.status; then
3195 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3196 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3197 { (exit 1); exit 1; }; }
3201 # test whether we have cygpath
3202 if test -z "$CYGPATH_W"; then
3203 if (cygpath --version) >/dev/null 2>/dev/null; then
3204 CYGPATH_W='cygpath -w'
3211 # Define the identity of the package.
3216 cat >>confdefs.h <<_ACEOF
3217 #define PACKAGE "$PACKAGE"
3221 cat >>confdefs.h <<_ACEOF
3222 #define VERSION "$VERSION"
3225 # Some tools Automake needs.
3227 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3230 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3233 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3236 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3239 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3241 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3243 # Installed binaries are usually stripped using `strip' when the user
3244 # run `make install-strip'. However `strip' might not be the right
3245 # tool to use in cross-compilation environments, therefore Automake
3246 # will honor the `STRIP' environment variable to overrule this program.
3247 if test "$cross_compiling" != no; then
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}strip; ac_word=$2
3251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if test "${ac_cv_prog_STRIP+set}" = set; then
3254 $as_echo_n "(cached) " >&6
3256 if test -n "$STRIP"; then
3257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 STRIP=$ac_cv_prog_STRIP
3277 if test -n "$STRIP"; then
3278 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3279 $as_echo "$STRIP" >&6; }
3281 { $as_echo "$as_me:$LINENO: result: no" >&5
3282 $as_echo "no" >&6; }
3287 if test -z "$ac_cv_prog_STRIP"; then
3289 # Extract the first word of "strip", so it can be a program name with args.
3290 set dummy strip; ac_word=$2
3291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3294 $as_echo_n "(cached) " >&6
3296 if test -n "$ac_ct_STRIP"; then
3297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_ac_ct_STRIP="strip"
3307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3317 if test -n "$ac_ct_STRIP"; then
3318 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3319 $as_echo "$ac_ct_STRIP" >&6; }
3321 { $as_echo "$as_me:$LINENO: result: no" >&5
3322 $as_echo "no" >&6; }
3325 if test "x$ac_ct_STRIP" = x; then
3328 case $cross_compiling:$ac_tool_warned in
3330 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3332 ac_tool_warned=yes ;;
3337 STRIP="$ac_cv_prog_STRIP"
3341 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3343 # We need awk for the "check" target. The system "awk" is bad on
3345 # Always define AMTAR for backward compatibility.
3347 AMTAR=${AMTAR-"${am_missing_run}tar"}
3349 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3355 ac_config_headers="$ac_config_headers config/config.h"
3361 # Take care of some early Amanda-specific setup
3364 # initialize warnings file
3365 rm -f config.warnings
3368 if test -f "$srcdir/SNAPSHOT"; then
3369 cat < "$srcdir/SNAPSHOT"
3371 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3373 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3374 SNAPSHOT_STAMP=SNAPSHOT
3382 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3383 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3384 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3385 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3388 VERSION_SUFFIX="$VERSION"
3396 if test -f config.local; then
3397 echo "running local script ./config.local"
3403 # Set up compiler location, basic flags, and include locations
3404 # and library locations before we start checking the system
3405 # configuration in more detail...
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_CC+set}" = set; then
3418 $as_echo_n "(cached) " >&6
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3445 { $as_echo "$as_me:$LINENO: result: no" >&5
3446 $as_echo "no" >&6; }
3451 if test -z "$ac_cv_prog_CC"; then
3453 # Extract the first word of "gcc", so it can be a program name with args.
3454 set dummy gcc; ac_word=$2
3455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3458 $as_echo_n "(cached) " >&6
3460 if test -n "$ac_ct_CC"; then
3461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_ac_ct_CC="gcc"
3471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3483 $as_echo "$ac_ct_CC" >&6; }
3485 { $as_echo "$as_me:$LINENO: result: no" >&5
3486 $as_echo "no" >&6; }
3489 if test "x$ac_ct_CC" = x; then
3492 case $cross_compiling:$ac_tool_warned in
3494 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned=yes ;;
3504 if test -z "$CC"; then
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}cc; ac_word=$2
3508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then
3511 $as_echo_n "(cached) " >&6
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC="${ac_tool_prefix}cc"
3524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 if test -n "$CC"; then
3535 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3538 { $as_echo "$as_me:$LINENO: result: no" >&5
3539 $as_echo "no" >&6; }
3545 if test -z "$CC"; then
3546 # Extract the first word of "cc", so it can be a program name with args.
3547 set dummy cc; ac_word=$2
3548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CC+set}" = set; then
3551 $as_echo_n "(cached) " >&6
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3565 ac_prog_rejected=yes
3569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 if test $ac_prog_rejected = yes; then
3577 # We found a bogon in the path, so make sure we never use it.
3578 set dummy $ac_cv_prog_CC
3580 if test $# != 0; then
3581 # We chose a different compiler from the bogus one.
3582 # However, it has the same basename, so the bogon will be chosen
3583 # first if we set CC to just the basename; use the full file name.
3585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3591 if test -n "$CC"; then
3592 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3593 $as_echo "$CC" >&6; }
3595 { $as_echo "$as_me:$LINENO: result: no" >&5
3596 $as_echo "no" >&6; }
3601 if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 for ac_prog in cl.exe
3605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then
3610 $as_echo_n "(cached) " >&6
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3637 { $as_echo "$as_me:$LINENO: result: no" >&5
3638 $as_echo "no" >&6; }
3642 test -n "$CC" && break
3645 if test -z "$CC"; then
3647 for ac_prog in cl.exe
3649 # Extract the first word of "$ac_prog", so it can be a program name with args.
3650 set dummy $ac_prog; ac_word=$2
3651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3654 $as_echo_n "(cached) " >&6
3656 if test -n "$ac_ct_CC"; then
3657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_ac_ct_CC="$ac_prog"
3667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677 if test -n "$ac_ct_CC"; then
3678 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3679 $as_echo "$ac_ct_CC" >&6; }
3681 { $as_echo "$as_me:$LINENO: result: no" >&5
3682 $as_echo "no" >&6; }
3686 test -n "$ac_ct_CC" && break
3689 if test "x$ac_ct_CC" = x; then
3692 case $cross_compiling:$ac_tool_warned in
3694 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696 ac_tool_warned=yes ;;
3705 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3708 See \`config.log' for more details." >&5
3709 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3710 See \`config.log' for more details." >&2;}
3711 { (exit 1); exit 1; }; }; }
3713 # Provide some information about the compiler.
3714 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3717 { (ac_try="$ac_compiler --version >&5"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3723 $as_echo "$ac_try_echo") >&5
3724 (eval "$ac_compiler --version >&5") 2>&5
3726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }
3728 { (ac_try="$ac_compiler -v >&5"
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3734 $as_echo "$ac_try_echo") >&5
3735 (eval "$ac_compiler -v >&5") 2>&5
3737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }
3739 { (ac_try="$ac_compiler -V >&5"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3745 $as_echo "$ac_try_echo") >&5
3746 (eval "$ac_compiler -V >&5") 2>&5
3748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }
3751 cat >conftest.$ac_ext <<_ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3766 ac_clean_files_save=$ac_clean_files
3767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3768 # Try to create an executable without -o first, disregard a.out.
3769 # It will help us diagnose broken compilers, and finding out an intuition
3771 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3772 $as_echo_n "checking for C compiler default output file name... " >&6; }
3773 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3775 # The possible output files:
3776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3779 for ac_file in $ac_files
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3788 if { (ac_try="$ac_link_default"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3794 $as_echo "$ac_try_echo") >&5
3795 (eval "$ac_link_default") 2>&5
3797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; then
3799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3800 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3801 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3802 # so that the user can short-circuit this test for compilers unknown to
3804 for ac_file in $ac_files ''
3806 test -f "$ac_file" || continue
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3811 # We found the default executable, but exeext='' is most
3815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3819 # We set ac_cv_exeext here because the later test for it is not
3820 # safe: cross compilers may not add the suffix if given an `-o'
3821 # argument, so we may need to know it at that point already.
3822 # Even if this section looks crufty: it has the advantage of
3829 test "$ac_cv_exeext" = no && ac_cv_exeext=
3835 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3836 $as_echo "$ac_file" >&6; }
3837 if test -z "$ac_file"; then
3838 $as_echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3844 See \`config.log' for more details." >&5
3845 $as_echo "$as_me: error: C compiler cannot create executables
3846 See \`config.log' for more details." >&2;}
3847 { (exit 77); exit 77; }; }; }
3850 ac_exeext=$ac_cv_exeext
3852 # Check that the compiler produces executables we can run. If not, either
3853 # the compiler is broken, or we cross compile.
3854 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3855 $as_echo_n "checking whether the C compiler works... " >&6; }
3856 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3857 # If not cross compiling, check that we can run a simple program.
3858 if test "$cross_compiling" != yes; then
3859 if { ac_try='./$ac_file'
3860 { (case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3865 $as_echo "$ac_try_echo") >&5
3866 (eval "$ac_try") 2>&5
3868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3872 if test "$cross_compiling" = maybe; then
3875 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3878 If you meant to cross compile, use \`--host'.
3879 See \`config.log' for more details." >&5
3880 $as_echo "$as_me: error: cannot run C compiled programs.
3881 If you meant to cross compile, use \`--host'.
3882 See \`config.log' for more details." >&2;}
3883 { (exit 1); exit 1; }; }; }
3887 { $as_echo "$as_me:$LINENO: result: yes" >&5
3888 $as_echo "yes" >&6; }
3890 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3891 ac_clean_files=$ac_clean_files_save
3892 # Check that the compiler produces executables we can run. If not, either
3893 # the compiler is broken, or we cross compile.
3894 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3895 $as_echo_n "checking whether we are cross compiling... " >&6; }
3896 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3897 $as_echo "$cross_compiling" >&6; }
3899 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3900 $as_echo_n "checking for suffix of executables... " >&6; }
3901 if { (ac_try="$ac_link"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908 (eval "$ac_link") 2>&5
3910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; then
3912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3914 # work properly (i.e., refer to `conftest.exe'), while it won't with
3916 for ac_file in conftest.exe conftest conftest.*; do
3917 test -f "$ac_file" || continue
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3929 See \`config.log' for more details." >&5
3930 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3931 See \`config.log' for more details." >&2;}
3932 { (exit 1); exit 1; }; }; }
3935 rm -f conftest$ac_cv_exeext
3936 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3937 $as_echo "$ac_cv_exeext" >&6; }
3939 rm -f conftest.$ac_ext
3940 EXEEXT=$ac_cv_exeext
3942 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3943 $as_echo_n "checking for suffix of object files... " >&6; }
3944 if test "${ac_cv_objext+set}" = set; then
3945 $as_echo_n "(cached) " >&6
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3962 rm -f conftest.o conftest.obj
3963 if { (ac_try="$ac_compile"
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3969 $as_echo "$ac_try_echo") >&5
3970 (eval "$ac_compile") 2>&5
3972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; then
3974 for ac_file in conftest.o conftest.obj conftest.*; do
3975 test -f "$ac_file" || continue;
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3989 See \`config.log' for more details." >&5
3990 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3991 See \`config.log' for more details." >&2;}
3992 { (exit 1); exit 1; }; }; }
3995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3997 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3998 $as_echo "$ac_cv_objext" >&6; }
3999 OBJEXT=$ac_cv_objext
4001 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4004 $as_echo_n "(cached) " >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4031 $as_echo "$ac_try_echo") >&5
4032 (eval "$ac_compile") 2>conftest.er1
4034 grep -v '^ *+' conftest.er1 >conftest.err
4036 cat conftest.err >&5
4037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } && {
4039 test -z "$ac_c_werror_flag" ||
4040 test ! -s conftest.err
4041 } && test -s conftest.$ac_objext; then
4044 $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4054 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4055 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4056 if test $ac_compiler_gnu = yes; then
4061 ac_test_CFLAGS=${CFLAGS+set}
4062 ac_save_CFLAGS=$CFLAGS
4063 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4064 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4065 if test "${ac_cv_prog_cc_g+set}" = set; then
4066 $as_echo_n "(cached) " >&6
4068 ac_save_c_werror_flag=$ac_c_werror_flag
4069 ac_c_werror_flag=yes
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4094 $as_echo "$ac_try_echo") >&5
4095 (eval "$ac_compile") 2>conftest.er1
4097 grep -v '^ *+' conftest.er1 >conftest.err
4099 cat conftest.err >&5
4100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } && {
4102 test -z "$ac_c_werror_flag" ||
4103 test ! -s conftest.err
4104 } && test -s conftest.$ac_objext; then
4107 $as_echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4133 $as_echo "$ac_try_echo") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } && {
4141 test -z "$ac_c_werror_flag" ||
4142 test ! -s conftest.err
4143 } && test -s conftest.$ac_objext; then
4146 $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173 $as_echo "$ac_try_echo") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest.$ac_objext; then
4186 $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_c_werror_flag=$ac_save_c_werror_flag
4201 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4202 $as_echo "$ac_cv_prog_cc_g" >&6; }
4203 if test "$ac_test_CFLAGS" = set; then
4204 CFLAGS=$ac_save_CFLAGS
4205 elif test $ac_cv_prog_cc_g = yes; then
4206 if test "$GCC" = yes; then
4212 if test "$GCC" = yes; then
4218 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4219 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4220 if test "${ac_cv_prog_cc_c89+set}" = set; then
4221 $as_echo_n "(cached) " >&6
4223 ac_cv_prog_cc_c89=no
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4233 #include <sys/types.h>
4234 #include <sys/stat.h>
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4249 s = g (p, va_arg (v,int));
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4255 function prototypes and stuff, but not '\xHH' hex character constants.
4256 These don't provoke an error unfortunately, instead are silently treated
4257 as 'x'. The following induces an error, until -std is added to get
4258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4259 array size at least. It's necessary to write '\x00'==0 to get something
4260 that's true only with -std. */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264 inside strings and character constants. */
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4285 CC="$ac_save_CC $ac_arg"
4286 rm -f conftest.$ac_objext
4287 if { (ac_try="$ac_compile"
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4293 $as_echo "$ac_try_echo") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4296 grep -v '^ *+' conftest.er1 >conftest.err
4298 cat conftest.err >&5
4299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && {
4301 test -z "$ac_c_werror_flag" ||
4302 test ! -s conftest.err
4303 } && test -s conftest.$ac_objext; then
4304 ac_cv_prog_cc_c89=$ac_arg
4306 $as_echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4312 rm -f core conftest.err conftest.$ac_objext
4313 test "x$ac_cv_prog_cc_c89" != "xno" && break
4315 rm -f conftest.$ac_ext
4320 case "x$ac_cv_prog_cc_c89" in
4322 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4323 $as_echo "none needed" >&6; } ;;
4325 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4326 $as_echo "unsupported" >&6; } ;;
4328 CC="$CC $ac_cv_prog_cc_c89"
4329 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 DEPDIR="${am__leading_dot}deps"
4341 ac_config_commands="$ac_config_commands depfiles"
4344 am_make=${MAKE-make}
4345 cat > confinc << 'END'
4350 # If we don't find an include directive, just comment out the code.
4351 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4352 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4356 # First try GNU make style include.
4357 echo "include confinc" > confmf
4358 # We grep out `Entering directory' and `Leaving directory'
4359 # messages which can occur if `w' ends up in MAKEFLAGS.
4360 # In particular we don't look at `^make:' because GNU make might
4361 # be invoked under some other name (usually "gmake"), in which
4362 # case it prints its new name instead of `make'.
4363 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4368 # Now try BSD make style include.
4369 if test "$am__include" = "#"; then
4370 echo '.include "confinc"' > confmf
4371 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4372 am__include=.include
4379 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4380 $as_echo "$_am_result" >&6; }
4381 rm -f confinc confmf
4383 # Check whether --enable-dependency-tracking was given.
4384 if test "${enable_dependency_tracking+set}" = set; then
4385 enableval=$enable_dependency_tracking;
4388 if test "x$enable_dependency_tracking" != xno; then
4389 am_depcomp="$ac_aux_dir/depcomp"
4392 if test "x$enable_dependency_tracking" != xno; then
4402 depcc="$CC" am_compiler_list=
4404 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4405 $as_echo_n "checking dependency style of $depcc... " >&6; }
4406 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4407 $as_echo_n "(cached) " >&6
4409 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4410 # We make a subdir and do the tests there. Otherwise we can end up
4411 # making bogus files that we don't know about and never remove. For
4412 # instance it was reported that on HP-UX the gcc test will end up
4413 # making a dummy file named `D' -- because `-MD' means `put the output
4416 # Copy depcomp to subdir because otherwise we won't find it if we're
4417 # using a relative directory.
4418 cp "$am_depcomp" conftest.dir
4420 # We will build objects and dependencies in a subdirectory because
4421 # it helps to detect inapplicable dependency modes. For instance
4422 # both Tru64's cc and ICC support -MD to output dependencies as a
4423 # side effect of compilation, but ICC will put the dependencies in
4424 # the current directory while Tru64 will put them in the object
4428 am_cv_CC_dependencies_compiler_type=none
4429 if test "$am_compiler_list" = ""; then
4430 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4432 for depmode in $am_compiler_list; do
4433 # Setup a source with many dependencies, because some compilers
4434 # like to wrap large dependency lists on column 80 (with \), and
4435 # we should not choose a depcomp mode which is confused by this.
4437 # We need to recreate these files for each test, as the compiler may
4438 # overwrite some of them when testing with obscure command lines.
4439 # This happens at least with the AIX C compiler.
4441 for i in 1 2 3 4 5 6; do
4442 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4443 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4444 # Solaris 8's {/usr,}/bin/sh.
4445 touch sub/conftst$i.h
4447 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4451 # after this tag, mechanisms are not by side-effect, so they'll
4452 # only be used when explicitly requested
4453 if test "x$enable_dependency_tracking" = xyes; then
4461 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4462 # mode. It turns out that the SunPro C++ compiler does not properly
4463 # handle `-M -o', and we need to detect this.
4464 if depmode=$depmode \
4465 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4466 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4467 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4468 >/dev/null 2>conftest.err &&
4469 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4470 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4471 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4472 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4473 # icc doesn't choke on unknown options, it will just issue warnings
4474 # or remarks (even with -Werror). So we grep stderr for any message
4475 # that says an option was ignored or not supported.
4476 # When given -MP, icc 7.0 and 7.1 complain thusly:
4477 # icc: Command line warning: ignoring option '-M'; no argument required
4478 # The diagnosis changed in icc 8.0:
4479 # icc: Command line remark: option '-MP' not supported
4480 if (grep 'ignoring option' conftest.err ||
4481 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4482 am_cv_CC_dependencies_compiler_type=$depmode
4491 am_cv_CC_dependencies_compiler_type=none
4495 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4496 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4497 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4500 test "x$enable_dependency_tracking" != xno \
4501 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4503 am__fastdepCC_FALSE='#'
4505 am__fastdepCC_TRUE='#'
4506 am__fastdepCC_FALSE=
4510 if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4512 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_RANLIB+set}" = set; then
4516 $as_echo_n "(cached) " >&6
4518 if test -n "$RANLIB"; then
4519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 RANLIB=$ac_cv_prog_RANLIB
4539 if test -n "$RANLIB"; then
4540 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4541 $as_echo "$RANLIB" >&6; }
4543 { $as_echo "$as_me:$LINENO: result: no" >&5
4544 $as_echo "no" >&6; }
4549 if test -z "$ac_cv_prog_RANLIB"; then
4550 ac_ct_RANLIB=$RANLIB
4551 # Extract the first word of "ranlib", so it can be a program name with args.
4552 set dummy ranlib; ac_word=$2
4553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4556 $as_echo_n "(cached) " >&6
4558 if test -n "$ac_ct_RANLIB"; then
4559 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_ac_ct_RANLIB="ranlib"
4569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4579 if test -n "$ac_ct_RANLIB"; then
4580 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4581 $as_echo "$ac_ct_RANLIB" >&6; }
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4587 if test "x$ac_ct_RANLIB" = x; then
4590 case $cross_compiling:$ac_tool_warned in
4592 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4594 ac_tool_warned=yes ;;
4596 RANLIB=$ac_ct_RANLIB
4599 RANLIB="$ac_cv_prog_RANLIB"
4604 ac_cpp='$CPP $CPPFLAGS'
4605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4609 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4610 # On Suns, sometimes $CPP names a directory.
4611 if test -n "$CPP" && test -d "$CPP"; then
4614 if test -z "$CPP"; then
4615 if test "${ac_cv_prog_CPP+set}" = set; then
4616 $as_echo_n "(cached) " >&6
4618 # Double quotes because CPP needs to be expanded
4619 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4622 for ac_c_preproc_warn_flag in '' yes
4624 # Use a header file that comes with gcc, so configuring glibc
4625 # with a fresh cross-compiler works.
4626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4627 # <limits.h> exists even on freestanding compilers.
4628 # On the NeXT, cc -E runs the code through the compiler's parser,
4629 # not just through cpp. "Syntax error" is here to catch this case.
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4637 # include <limits.h>
4639 # include <assert.h>
4643 if { (ac_try="$ac_cpp conftest.$ac_ext"
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4649 $as_echo "$ac_try_echo") >&5
4650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } >/dev/null && {
4657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4658 test ! -s conftest.err
4662 $as_echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 # Broken: fails on valid input.
4669 rm -f conftest.err conftest.$ac_ext
4671 # OK, works on sane cases. Now check whether nonexistent headers
4672 # can be detected and how.
4673 cat >conftest.$ac_ext <<_ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 #include <ac_nonexistent.h>
4681 if { (ac_try="$ac_cpp conftest.$ac_ext"
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4687 $as_echo "$ac_try_echo") >&5
4688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4690 grep -v '^ *+' conftest.er1 >conftest.err
4692 cat conftest.err >&5
4693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } >/dev/null && {
4695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4696 test ! -s conftest.err
4698 # Broken: success on invalid input.
4701 $as_echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 # Passes both tests.
4709 rm -f conftest.err conftest.$ac_ext
4712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4713 rm -f conftest.err conftest.$ac_ext
4714 if $ac_preproc_ok; then
4726 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4727 $as_echo "$CPP" >&6; }
4729 for ac_c_preproc_warn_flag in '' yes
4731 # Use a header file that comes with gcc, so configuring glibc
4732 # with a fresh cross-compiler works.
4733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734 # <limits.h> exists even on freestanding compilers.
4735 # On the NeXT, cc -E runs the code through the compiler's parser,
4736 # not just through cpp. "Syntax error" is here to catch this case.
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4744 # include <limits.h>
4746 # include <assert.h>
4750 if { (ac_try="$ac_cpp conftest.$ac_ext"
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev/null && {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 # Broken: fails on valid input.
4776 rm -f conftest.err conftest.$ac_ext
4778 # OK, works on sane cases. Now check whether nonexistent headers
4779 # can be detected and how.
4780 cat >conftest.$ac_ext <<_ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <ac_nonexistent.h>
4788 if { (ac_try="$ac_cpp conftest.$ac_ext"
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4794 $as_echo "$ac_try_echo") >&5
4795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4797 grep -v '^ *+' conftest.er1 >conftest.err
4799 cat conftest.err >&5
4800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } >/dev/null && {
4802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4803 test ! -s conftest.err
4805 # Broken: success on invalid input.
4808 $as_echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4811 # Passes both tests.
4816 rm -f conftest.err conftest.$ac_ext
4819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4820 rm -f conftest.err conftest.$ac_ext
4821 if $ac_preproc_ok; then
4824 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4826 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4827 See \`config.log' for more details." >&5
4828 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4829 See \`config.log' for more details." >&2;}
4830 { (exit 1); exit 1; }; }; }
4834 ac_cpp='$CPP $CPPFLAGS'
4835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4841 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4842 if test "${ac_cv_path_GREP+set}" = set; then
4843 $as_echo_n "(cached) " >&6
4845 if test -z "$GREP"; then
4846 ac_path_GREP_found=false
4847 # Loop through the user's path and test for each of PROGNAME-LIST
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4852 test -z "$as_dir" && as_dir=.
4853 for ac_prog in grep ggrep; do
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4856 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4857 # Check for GNU ac_path_GREP and select it if it is found.
4858 # Check for GNU $ac_path_GREP
4859 case `"$ac_path_GREP" --version 2>&1` in
4861 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4864 $as_echo_n 0123456789 >"conftest.in"
4867 cat "conftest.in" "conftest.in" >"conftest.tmp"
4868 mv "conftest.tmp" "conftest.in"
4869 cp "conftest.in" "conftest.nl"
4870 $as_echo 'GREP' >> "conftest.nl"
4871 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4873 ac_count=`expr $ac_count + 1`
4874 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4875 # Best one so far, save it but keep looking for a better one
4876 ac_cv_path_GREP="$ac_path_GREP"
4877 ac_path_GREP_max=$ac_count
4879 # 10*(2^10) chars as input seems more than enough
4880 test $ac_count -gt 10 && break
4882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4885 $ac_path_GREP_found && break 3
4890 if test -z "$ac_cv_path_GREP"; then
4891 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4892 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4893 { (exit 1); exit 1; }; }
4896 ac_cv_path_GREP=$GREP
4900 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4901 $as_echo "$ac_cv_path_GREP" >&6; }
4902 GREP="$ac_cv_path_GREP"
4905 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4906 $as_echo_n "checking for egrep... " >&6; }
4907 if test "${ac_cv_path_EGREP+set}" = set; then
4908 $as_echo_n "(cached) " >&6
4910 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4911 then ac_cv_path_EGREP="$GREP -E"
4913 if test -z "$EGREP"; then
4914 ac_path_EGREP_found=false
4915 # Loop through the user's path and test for each of PROGNAME-LIST
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4920 test -z "$as_dir" && as_dir=.
4921 for ac_prog in egrep; do
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4924 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4925 # Check for GNU ac_path_EGREP and select it if it is found.
4926 # Check for GNU $ac_path_EGREP
4927 case `"$ac_path_EGREP" --version 2>&1` in
4929 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4932 $as_echo_n 0123456789 >"conftest.in"
4935 cat "conftest.in" "conftest.in" >"conftest.tmp"
4936 mv "conftest.tmp" "conftest.in"
4937 cp "conftest.in" "conftest.nl"
4938 $as_echo 'EGREP' >> "conftest.nl"
4939 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4941 ac_count=`expr $ac_count + 1`
4942 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4943 # Best one so far, save it but keep looking for a better one
4944 ac_cv_path_EGREP="$ac_path_EGREP"
4945 ac_path_EGREP_max=$ac_count
4947 # 10*(2^10) chars as input seems more than enough
4948 test $ac_count -gt 10 && break
4950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4953 $ac_path_EGREP_found && break 3
4958 if test -z "$ac_cv_path_EGREP"; then
4959 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4960 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4961 { (exit 1); exit 1; }; }
4964 ac_cv_path_EGREP=$EGREP
4969 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4970 $as_echo "$ac_cv_path_EGREP" >&6; }
4971 EGREP="$ac_cv_path_EGREP"
4974 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4975 $as_echo_n "checking for ANSI C header files... " >&6; }
4976 if test "${ac_cv_header_stdc+set}" = set; then
4977 $as_echo_n "(cached) " >&6
4979 cat >conftest.$ac_ext <<_ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4998 rm -f conftest.$ac_objext
4999 if { (ac_try="$ac_compile"
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5005 $as_echo "$ac_try_echo") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5008 grep -v '^ *+' conftest.er1 >conftest.err
5010 cat conftest.err >&5
5011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5016 ac_cv_header_stdc=yes
5018 $as_echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 ac_cv_header_stdc=no
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 if test $ac_cv_header_stdc = yes; then
5027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5028 cat >conftest.$ac_ext <<_ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5038 $EGREP "memchr" >/dev/null 2>&1; then
5041 ac_cv_header_stdc=no
5047 if test $ac_cv_header_stdc = yes; then
5048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5059 $EGREP "free" >/dev/null 2>&1; then
5062 ac_cv_header_stdc=no
5068 if test $ac_cv_header_stdc = yes; then
5069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5070 if test "$cross_compiling" = yes; then
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5081 #if ((' ' & 0x0FF) == 0x020)
5082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5085 # define ISLOWER(c) \
5086 (('a' <= (c) && (c) <= 'i') \
5087 || ('j' <= (c) && (c) <= 'r') \
5088 || ('s' <= (c) && (c) <= 'z'))
5089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5097 for (i = 0; i < 256; i++)
5098 if (XOR (islower (i), ISLOWER (i))
5099 || toupper (i) != TOUPPER (i))
5104 rm -f conftest$ac_exeext
5105 if { (ac_try="$ac_link"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111 $as_echo "$ac_try_echo") >&5
5112 (eval "$ac_link") 2>&5
5114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5116 { (case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5121 $as_echo "$ac_try_echo") >&5
5122 (eval "$ac_try") 2>&5
5124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5128 $as_echo "$as_me: program exited with status $ac_status" >&5
5129 $as_echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5133 ac_cv_header_stdc=no
5135 rm -rf conftest.dSYM
5136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5142 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5143 $as_echo "$ac_cv_header_stdc" >&6; }
5144 if test $ac_cv_header_stdc = yes; then
5146 cat >>confdefs.h <<\_ACEOF
5147 #define STDC_HEADERS 1
5152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5163 inttypes.h stdint.h unistd.h
5165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5167 $as_echo_n "checking for $ac_header... " >&6; }
5168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5169 $as_echo_n "(cached) " >&6
5171 cat >conftest.$ac_ext <<_ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 $ac_includes_default
5179 #include <$ac_header>
5181 rm -f conftest.$ac_objext
5182 if { (ac_try="$ac_compile"
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5188 $as_echo "$ac_try_echo") >&5
5189 (eval "$ac_compile") 2>conftest.er1
5191 grep -v '^ *+' conftest.er1 >conftest.err
5193 cat conftest.err >&5
5194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } && {
5196 test -z "$ac_c_werror_flag" ||
5197 test ! -s conftest.err
5198 } && test -s conftest.$ac_objext; then
5199 eval "$as_ac_Header=yes"
5201 $as_echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5204 eval "$as_ac_Header=no"
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 ac_res=`eval 'as_val=${'$as_ac_Header'}
5210 $as_echo "$as_val"'`
5211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5212 $as_echo "$ac_res" >&6; }
5213 as_val=`eval 'as_val=${'$as_ac_Header'}
5214 $as_echo "$as_val"'`
5215 if test "x$as_val" = x""yes; then
5216 cat >>confdefs.h <<_ACEOF
5217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5226 if test "${ac_cv_header_minix_config_h+set}" = set; then
5227 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5228 $as_echo_n "checking for minix/config.h... " >&6; }
5229 if test "${ac_cv_header_minix_config_h+set}" = set; then
5230 $as_echo_n "(cached) " >&6
5232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5233 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5235 # Is the header compilable?
5236 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5237 $as_echo_n "checking minix/config.h usability... " >&6; }
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 $ac_includes_default
5245 #include <minix/config.h>
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5254 $as_echo "$ac_try_echo") >&5
5255 (eval "$ac_compile") 2>conftest.er1
5257 grep -v '^ *+' conftest.er1 >conftest.err
5259 cat conftest.err >&5
5260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && {
5262 test -z "$ac_c_werror_flag" ||
5263 test ! -s conftest.err
5264 } && test -s conftest.$ac_objext; then
5265 ac_header_compiler=yes
5267 $as_echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 ac_header_compiler=no
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5275 $as_echo "$ac_header_compiler" >&6; }
5277 # Is the header present?
5278 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5279 $as_echo_n "checking minix/config.h presence... " >&6; }
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 #include <minix/config.h>
5288 if { (ac_try="$ac_cpp conftest.$ac_ext"
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5294 $as_echo "$ac_try_echo") >&5
5295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5297 grep -v '^ *+' conftest.er1 >conftest.err
5299 cat conftest.err >&5
5300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } >/dev/null && {
5302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5305 ac_header_preproc=yes
5307 $as_echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 ac_header_preproc=no
5313 rm -f conftest.err conftest.$ac_ext
5314 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5315 $as_echo "$ac_header_preproc" >&6; }
5317 # So? What about this header?
5318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5320 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5321 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5322 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5323 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5324 ac_header_preproc=yes
5327 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5328 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5329 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5330 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5331 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5332 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5333 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5334 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5335 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5336 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5337 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5338 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5342 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5343 $as_echo_n "checking for minix/config.h... " >&6; }
5344 if test "${ac_cv_header_minix_config_h+set}" = set; then
5345 $as_echo_n "(cached) " >&6
5347 ac_cv_header_minix_config_h=$ac_header_preproc
5349 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5350 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5353 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5360 if test "$MINIX" = yes; then
5362 cat >>confdefs.h <<\_ACEOF
5363 #define _POSIX_SOURCE 1
5367 cat >>confdefs.h <<\_ACEOF
5368 #define _POSIX_1_SOURCE 2
5372 cat >>confdefs.h <<\_ACEOF
5380 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5381 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5382 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5383 $as_echo_n "(cached) " >&6
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5392 # define __EXTENSIONS__ 1
5393 $ac_includes_default
5402 rm -f conftest.$ac_objext
5403 if { (ac_try="$ac_compile"
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5409 $as_echo "$ac_try_echo") >&5
5410 (eval "$ac_compile") 2>conftest.er1
5412 grep -v '^ *+' conftest.er1 >conftest.err
5414 cat conftest.err >&5
5415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } && {
5417 test -z "$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 } && test -s conftest.$ac_objext; then
5420 ac_cv_safe_to_define___extensions__=yes
5422 $as_echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5425 ac_cv_safe_to_define___extensions__=no
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5431 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5432 test $ac_cv_safe_to_define___extensions__ = yes &&
5433 cat >>confdefs.h <<\_ACEOF
5434 #define __EXTENSIONS__ 1
5437 cat >>confdefs.h <<\_ACEOF
5438 #define _ALL_SOURCE 1
5441 cat >>confdefs.h <<\_ACEOF
5442 #define _GNU_SOURCE 1
5445 cat >>confdefs.h <<\_ACEOF
5446 #define _POSIX_PTHREAD_SEMANTICS 1
5449 cat >>confdefs.h <<\_ACEOF
5450 #define _TANDEM_SOURCE 1
5459 # Check whether --enable-threads was given.
5460 if test "${enable_threads+set}" = set; then
5461 enableval=$enable_threads; gl_use_threads=$enableval
5464 osf*) gl_use_threads=no ;;
5465 *) gl_use_threads=yes ;;
5470 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5471 # For using <pthread.h>:
5474 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5475 # groks <pthread.h>. cc also understands the flag -pthread, but
5476 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5477 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5478 # causes the AC_TRY_LINK test below to succeed unexpectedly,
5479 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5480 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5483 # Some systems optimize for single-threaded programs by default, and
5484 # need special flags to disable these optimizations. For example, the
5485 # definition of 'errno' in <errno.h>.
5487 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5488 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5501 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5502 # for constant arguments. Useless!
5503 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
5504 $as_echo_n "checking for working alloca.h... " >&6; }
5505 if test "${ac_cv_working_alloca_h+set}" = set; then
5506 $as_echo_n "(cached) " >&6
5508 cat >conftest.$ac_ext <<_ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5518 char *p = (char *) alloca (2 * sizeof (int));
5524 rm -f conftest.$ac_objext conftest$ac_exeext
5525 if { (ac_try="$ac_link"
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5531 $as_echo "$ac_try_echo") >&5
5532 (eval "$ac_link") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest$ac_exeext && {
5542 test "$cross_compiling" = yes ||
5543 $as_test_x conftest$ac_exeext
5545 ac_cv_working_alloca_h=yes
5547 $as_echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 ac_cv_working_alloca_h=no
5553 rm -rf conftest.dSYM
5554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5555 conftest$ac_exeext conftest.$ac_ext
5557 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5558 $as_echo "$ac_cv_working_alloca_h" >&6; }
5559 if test $ac_cv_working_alloca_h = yes; then
5561 cat >>confdefs.h <<\_ACEOF
5562 #define HAVE_ALLOCA_H 1
5567 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
5568 $as_echo_n "checking for alloca... " >&6; }
5569 if test "${ac_cv_func_alloca_works+set}" = set; then
5570 $as_echo_n "(cached) " >&6
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 # define alloca __builtin_alloca
5582 # include <malloc.h>
5583 # define alloca _alloca
5585 # ifdef HAVE_ALLOCA_H
5586 # include <alloca.h>
5591 # ifndef alloca /* predefined by HP cc +Olibcalls */
5602 char *p = (char *) alloca (1);
5608 rm -f conftest.$ac_objext conftest$ac_exeext
5609 if { (ac_try="$ac_link"
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615 $as_echo "$ac_try_echo") >&5
5616 (eval "$ac_link") 2>conftest.er1
5618 grep -v '^ *+' conftest.er1 >conftest.err
5620 cat conftest.err >&5
5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && {
5623 test -z "$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest$ac_exeext && {
5626 test "$cross_compiling" = yes ||
5627 $as_test_x conftest$ac_exeext
5629 ac_cv_func_alloca_works=yes
5631 $as_echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5634 ac_cv_func_alloca_works=no
5637 rm -rf conftest.dSYM
5638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5639 conftest$ac_exeext conftest.$ac_ext
5641 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5642 $as_echo "$ac_cv_func_alloca_works" >&6; }
5644 if test $ac_cv_func_alloca_works = yes; then
5646 cat >>confdefs.h <<\_ACEOF
5647 #define HAVE_ALLOCA 1
5651 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5652 # that cause trouble. Some versions do not even contain alloca or
5653 # contain a buggy version. If you still want to use their alloca,
5654 # use ar to extract alloca.o from them instead of compiling alloca.c.
5660 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5662 cat >>confdefs.h <<\_ACEOF
5667 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5668 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5669 if test "${ac_cv_os_cray+set}" = set; then
5670 $as_echo_n "(cached) " >&6
5672 cat >conftest.$ac_ext <<_ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #if defined CRAY && ! defined CRAY2
5685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5686 $EGREP "webecray" >/dev/null 2>&1; then
5694 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5695 $as_echo "$ac_cv_os_cray" >&6; }
5696 if test $ac_cv_os_cray = yes; then
5697 for ac_func in _getb67 GETB67 getb67; do
5698 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5699 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5700 $as_echo_n "checking for $ac_func... " >&6; }
5701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5702 $as_echo_n "(cached) " >&6
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5712 #define $ac_func innocuous_$ac_func
5714 /* System header to define __stub macros and hopefully few prototypes,
5715 which can conflict with char $ac_func (); below.
5716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5717 <limits.h> exists even on freestanding compilers. */
5720 # include <limits.h>
5722 # include <assert.h>
5727 /* Override any GCC internal prototype to avoid an error.
5728 Use char because int might match the return type of a GCC
5729 builtin and then its argument prototype would still apply. */
5734 /* The GNU C library defines this for functions which it implements
5735 to always fail with ENOSYS. Some functions are actually named
5736 something starting with __ and the normal name is an alias. */
5737 #if defined __stub_$ac_func || defined __stub___$ac_func
5749 rm -f conftest.$ac_objext conftest$ac_exeext
5750 if { (ac_try="$ac_link"
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5756 $as_echo "$ac_try_echo") >&5
5757 (eval "$ac_link") 2>conftest.er1
5759 grep -v '^ *+' conftest.er1 >conftest.err
5761 cat conftest.err >&5
5762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } && {
5764 test -z "$ac_c_werror_flag" ||
5765 test ! -s conftest.err
5766 } && test -s conftest$ac_exeext && {
5767 test "$cross_compiling" = yes ||
5768 $as_test_x conftest$ac_exeext
5770 eval "$as_ac_var=yes"
5772 $as_echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 eval "$as_ac_var=no"
5778 rm -rf conftest.dSYM
5779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5780 conftest$ac_exeext conftest.$ac_ext
5782 ac_res=`eval 'as_val=${'$as_ac_var'}
5783 $as_echo "$as_val"'`
5784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5785 $as_echo "$ac_res" >&6; }
5786 as_val=`eval 'as_val=${'$as_ac_var'}
5787 $as_echo "$as_val"'`
5788 if test "x$as_val" = x""yes; then
5790 cat >>confdefs.h <<_ACEOF
5791 #define CRAY_STACKSEG_END $ac_func
5800 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5801 $as_echo_n "checking stack direction for C alloca... " >&6; }
5802 if test "${ac_cv_c_stack_direction+set}" = set; then
5803 $as_echo_n "(cached) " >&6
5805 if test "$cross_compiling" = yes; then
5806 ac_cv_c_stack_direction=0
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 $ac_includes_default
5816 find_stack_direction ()
5818 static char *addr = 0;
5823 return find_stack_direction ();
5826 return (&dummy > addr) ? 1 : -1;
5832 return find_stack_direction () < 0;
5835 rm -f conftest$ac_exeext
5836 if { (ac_try="$ac_link"
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5842 $as_echo "$ac_try_echo") >&5
5843 (eval "$ac_link") 2>&5
5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5852 $as_echo "$ac_try_echo") >&5
5853 (eval "$ac_try") 2>&5
5855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_cv_c_stack_direction=1
5859 $as_echo "$as_me: program exited with status $ac_status" >&5
5860 $as_echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5864 ac_cv_c_stack_direction=-1
5866 rm -rf conftest.dSYM
5867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5872 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5873 $as_echo "$ac_cv_c_stack_direction" >&6; }
5875 cat >>confdefs.h <<_ACEOF
5876 #define STACK_DIRECTION $ac_cv_c_stack_direction
5887 for ac_header in $gl_header_list
5889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5891 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5892 $as_echo_n "checking for $ac_header... " >&6; }
5893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5894 $as_echo_n "(cached) " >&6
5896 ac_res=`eval 'as_val=${'$as_ac_Header'}
5897 $as_echo "$as_val"'`
5898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5899 $as_echo "$ac_res" >&6; }
5901 # Is the header compilable?
5902 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5903 $as_echo_n "checking $ac_header usability... " >&6; }
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 $ac_includes_default
5911 #include <$ac_header>
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5920 $as_echo "$ac_try_echo") >&5
5921 (eval "$ac_compile") 2>conftest.er1
5923 grep -v '^ *+' conftest.er1 >conftest.err
5925 cat conftest.err >&5
5926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } && {
5928 test -z "$ac_c_werror_flag" ||
5929 test ! -s conftest.err
5930 } && test -s conftest.$ac_objext; then
5931 ac_header_compiler=yes
5933 $as_echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 ac_header_compiler=no
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5941 $as_echo "$ac_header_compiler" >&6; }
5943 # Is the header present?
5944 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5945 $as_echo_n "checking $ac_header presence... " >&6; }
5946 cat >conftest.$ac_ext <<_ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <$ac_header>
5954 if { (ac_try="$ac_cpp conftest.$ac_ext"
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5960 $as_echo "$ac_try_echo") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5963 grep -v '^ *+' conftest.er1 >conftest.err
5965 cat conftest.err >&5
5966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5971 ac_header_preproc=yes
5973 $as_echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 ac_header_preproc=no
5979 rm -f conftest.err conftest.$ac_ext
5980 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5981 $as_echo "$ac_header_preproc" >&6; }
5983 # So? What about this header?
5984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5987 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5989 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5990 ac_header_preproc=yes
5993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5994 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5996 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5998 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6000 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6004 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6008 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6009 $as_echo_n "checking for $ac_header... " >&6; }
6010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6011 $as_echo_n "(cached) " >&6
6013 eval "$as_ac_Header=\$ac_header_preproc"
6015 ac_res=`eval 'as_val=${'$as_ac_Header'}
6016 $as_echo "$as_val"'`
6017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6018 $as_echo "$ac_res" >&6; }
6021 as_val=`eval 'as_val=${'$as_ac_Header'}
6022 $as_echo "$as_val"'`
6023 if test "x$as_val" = x""yes; then
6024 cat >>confdefs.h <<_ACEOF
6025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6037 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6038 $as_echo_n "checking for inline... " >&6; }
6039 if test "${ac_cv_c_inline+set}" = set; then
6040 $as_echo_n "(cached) " >&6
6043 for ac_kw in inline __inline__ __inline; do
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6052 static $ac_kw foo_t static_foo () {return 0; }
6053 $ac_kw foo_t foo () {return 0; }
6057 rm -f conftest.$ac_objext
6058 if { (ac_try="$ac_compile"
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064 $as_echo "$ac_try_echo") >&5
6065 (eval "$ac_compile") 2>conftest.er1
6067 grep -v '^ *+' conftest.er1 >conftest.err
6069 cat conftest.err >&5
6070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest.$ac_objext; then
6075 ac_cv_c_inline=$ac_kw
6077 $as_echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 test "$ac_cv_c_inline" != no && break
6088 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6089 $as_echo "$ac_cv_c_inline" >&6; }
6092 case $ac_cv_c_inline in
6095 case $ac_cv_c_inline in
6097 *) ac_val=$ac_cv_c_inline;;
6099 cat >>confdefs.h <<_ACEOF
6101 #define inline $ac_val
6107 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6108 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6109 if test "${ac_cv_c_restrict+set}" = set; then
6110 $as_echo_n "(cached) " >&6
6113 # The order here caters to the fact that C++ does not require restrict.
6114 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 typedef int * int_ptr;
6122 int foo (int_ptr $ac_kw ip) {
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6143 $as_echo "$ac_try_echo") >&5
6144 (eval "$ac_compile") 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } && {
6151 test -z "$ac_c_werror_flag" ||
6152 test ! -s conftest.err
6153 } && test -s conftest.$ac_objext; then
6154 ac_cv_c_restrict=$ac_kw
6156 $as_echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163 test "$ac_cv_c_restrict" != no && break
6167 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
6168 $as_echo "$ac_cv_c_restrict" >&6; }
6171 case $ac_cv_c_restrict in
6173 no) cat >>confdefs.h <<\_ACEOF
6174 #define restrict /**/
6177 *) cat >>confdefs.h <<_ACEOF
6178 #define restrict $ac_cv_c_restrict
6185 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
6186 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6187 if test "${gl_cv_have_include_next+set}" = set; then
6188 $as_echo_n "(cached) " >&6
6190 rm -rf conftestd1 conftestd2
6191 mkdir conftestd1 conftestd2
6192 cat <<EOF > conftestd1/conftest.h
6193 #define DEFINED_IN_CONFTESTD1
6194 #include_next <conftest.h>
6195 #ifdef DEFINED_IN_CONFTESTD2
6198 #error "include_next doesn't work"
6201 cat <<EOF > conftestd2/conftest.h
6202 #ifndef DEFINED_IN_CONFTESTD1
6203 #error "include_next test doesn't work"
6205 #define DEFINED_IN_CONFTESTD2
6207 save_CPPFLAGS="$CPPFLAGS"
6208 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #include <conftest.h>
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
6230 gl_cv_have_include_next=yes
6232 $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6235 gl_cv_have_include_next=no
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 CPPFLAGS="$save_CPPFLAGS"
6240 rm -rf conftestd1 conftestd2
6243 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
6244 $as_echo "$gl_cv_have_include_next" >&6; }
6245 if test $gl_cv_have_include_next = yes; then
6248 cat >>confdefs.h <<\_ACEOF
6249 #define HAVE_INCLUDE_NEXT 1
6253 INCLUDE_NEXT=include_next
6255 INCLUDE_NEXT=include
6290 { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
6291 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
6292 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
6293 $as_echo_n "(cached) " >&6
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 #include <sys/socket.h>
6311 rm -f conftest.$ac_objext
6312 if { (ac_try="$ac_compile"
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6318 $as_echo "$ac_try_echo") >&5
6319 (eval "$ac_compile") 2>conftest.er1
6321 grep -v '^ *+' conftest.er1 >conftest.err
6323 cat conftest.err >&5
6324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } && {
6326 test -z "$ac_c_werror_flag" ||
6327 test ! -s conftest.err
6328 } && test -s conftest.$ac_objext; then
6329 gl_cv_header_sys_socket_h_selfcontained=yes
6331 $as_echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6334 gl_cv_header_sys_socket_h_selfcontained=no
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
6341 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
6342 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
6345 SYS_SOCKET_H='sys/socket.h'
6358 if test $gl_cv_have_include_next = yes; then
6359 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6361 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
6362 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
6363 if test "${gl_cv_next_sys_socket_h+set}" = set; then
6364 $as_echo_n "(cached) " >&6
6367 if test $ac_cv_header_sys_socket_h = yes; then
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 #include <sys/socket.h>
6377 gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378 sed -n '\#/sys/socket.h#{
6379 s#.*"\(.*/sys/socket.h\)".*#\1#
6385 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6389 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
6390 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
6392 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
6396 if test $ac_cv_header_sys_socket_h = yes; then
6404 for ac_header in winsock2.h ws2tcpip.h
6406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6408 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 $as_echo_n "checking for $ac_header... " >&6; }
6410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6411 $as_echo_n "(cached) " >&6
6413 ac_res=`eval 'as_val=${'$as_ac_Header'}
6414 $as_echo "$as_val"'`
6415 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6416 $as_echo "$ac_res" >&6; }
6418 # Is the header compilable?
6419 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6420 $as_echo_n "checking $ac_header usability... " >&6; }
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 $ac_includes_default
6428 #include <$ac_header>
6430 rm -f conftest.$ac_objext
6431 if { (ac_try="$ac_compile"
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6437 $as_echo "$ac_try_echo") >&5
6438 (eval "$ac_compile") 2>conftest.er1
6440 grep -v '^ *+' conftest.er1 >conftest.err
6442 cat conftest.err >&5
6443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } && {
6445 test -z "$ac_c_werror_flag" ||
6446 test ! -s conftest.err
6447 } && test -s conftest.$ac_objext; then
6448 ac_header_compiler=yes
6450 $as_echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_header_compiler=no
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6458 $as_echo "$ac_header_compiler" >&6; }
6460 # Is the header present?
6461 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6462 $as_echo_n "checking $ac_header presence... " >&6; }
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 #include <$ac_header>
6471 if { (ac_try="$ac_cpp conftest.$ac_ext"
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6477 $as_echo "$ac_try_echo") >&5
6478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6480 grep -v '^ *+' conftest.er1 >conftest.err
6482 cat conftest.err >&5
6483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } >/dev/null && {
6485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6488 ac_header_preproc=yes
6490 $as_echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 ac_header_preproc=no
6496 rm -f conftest.err conftest.$ac_ext
6497 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6498 $as_echo "$ac_header_preproc" >&6; }
6500 # So? What about this header?
6501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6504 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6506 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6507 ac_header_preproc=yes
6510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6511 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6513 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6515 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6517 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6519 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6521 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6526 $as_echo_n "checking for $ac_header... " >&6; }
6527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6528 $as_echo_n "(cached) " >&6
6530 eval "$as_ac_Header=\$ac_header_preproc"
6532 ac_res=`eval 'as_val=${'$as_ac_Header'}
6533 $as_echo "$as_val"'`
6534 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6535 $as_echo "$ac_res" >&6; }
6538 as_val=`eval 'as_val=${'$as_ac_Header'}
6539 $as_echo "$as_val"'`
6540 if test "x$as_val" = x""yes; then
6541 cat >>confdefs.h <<_ACEOF
6542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6549 if test $ac_cv_header_winsock2_h = yes; then
6554 if test $ac_cv_header_ws2tcpip_h = yes; then
6588 { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
6589 $as_echo_n "checking for IPv4 sockets... " >&6; }
6590 if test "${gl_cv_socket_ipv4+set}" = set; then
6591 $as_echo_n "(cached) " >&6
6593 cat >conftest.$ac_ext <<_ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 #include <sys/types.h>
6600 #ifdef HAVE_SYS_SOCKET_H
6601 #include <sys/socket.h>
6603 #ifdef HAVE_NETINET_IN_H
6604 #include <netinet/in.h>
6606 #ifdef HAVE_WINSOCK2_H
6607 #include <winsock2.h>
6612 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
6613 if (&x && &y && &z) return 0;
6618 rm -f conftest.$ac_objext
6619 if { (ac_try="$ac_compile"
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6636 gl_cv_socket_ipv4=yes
6638 $as_echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 gl_cv_socket_ipv4=no
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647 { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
6648 $as_echo "$gl_cv_socket_ipv4" >&6; }
6649 if test $gl_cv_socket_ipv4 = yes; then
6651 cat >>confdefs.h <<\_ACEOF
6657 { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
6658 $as_echo_n "checking for IPv6 sockets... " >&6; }
6659 if test "${gl_cv_socket_ipv6+set}" = set; then
6660 $as_echo_n "(cached) " >&6
6662 cat >conftest.$ac_ext <<_ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 #include <sys/types.h>
6669 #ifdef HAVE_SYS_SOCKET_H
6670 #include <sys/socket.h>
6672 #ifdef HAVE_NETINET_IN_H
6673 #include <netinet/in.h>
6675 #ifdef HAVE_WINSOCK2_H
6676 #include <winsock2.h>
6681 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
6682 if (&x && &y && &z) return 0;
6687 rm -f conftest.$ac_objext
6688 if { (ac_try="$ac_compile"
6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 *) ac_try_echo=$ac_try;;
6693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6694 $as_echo "$ac_try_echo") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 gl_cv_socket_ipv6=yes
6707 $as_echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 gl_cv_socket_ipv6=no
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
6717 $as_echo "$gl_cv_socket_ipv6" >&6; }
6718 if test $gl_cv_socket_ipv6 = yes; then
6720 cat >>confdefs.h <<\_ACEOF
6727 if test -z "$GETOPT_H"; then
6729 for ac_header in getopt.h
6731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6733 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6734 $as_echo_n "checking for $ac_header... " >&6; }
6735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6736 $as_echo_n "(cached) " >&6
6738 ac_res=`eval 'as_val=${'$as_ac_Header'}
6739 $as_echo "$as_val"'`
6740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6741 $as_echo "$ac_res" >&6; }
6743 # Is the header compilable?
6744 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6745 $as_echo_n "checking $ac_header usability... " >&6; }
6746 cat >conftest.$ac_ext <<_ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6753 #include <$ac_header>
6755 rm -f conftest.$ac_objext
6756 if { (ac_try="$ac_compile"
6758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759 *) ac_try_echo=$ac_try;;
6761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6762 $as_echo "$ac_try_echo") >&5
6763 (eval "$ac_compile") 2>conftest.er1
6765 grep -v '^ *+' conftest.er1 >conftest.err
6767 cat conftest.err >&5
6768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } && {
6770 test -z "$ac_c_werror_flag" ||
6771 test ! -s conftest.err
6772 } && test -s conftest.$ac_objext; then
6773 ac_header_compiler=yes
6775 $as_echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 ac_header_compiler=no
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6783 $as_echo "$ac_header_compiler" >&6; }
6785 # Is the header present?
6786 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6787 $as_echo_n "checking $ac_header presence... " >&6; }
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 #include <$ac_header>
6796 if { (ac_try="$ac_cpp conftest.$ac_ext"
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6802 $as_echo "$ac_try_echo") >&5
6803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6805 grep -v '^ *+' conftest.er1 >conftest.err
6807 cat conftest.err >&5
6808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } >/dev/null && {
6810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6811 test ! -s conftest.err
6813 ac_header_preproc=yes
6815 $as_echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 ac_header_preproc=no
6821 rm -f conftest.err conftest.$ac_ext
6822 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6823 $as_echo "$ac_header_preproc" >&6; }
6825 # So? What about this header?
6826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6829 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6831 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6832 ac_header_preproc=yes
6835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6836 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6838 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6840 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6842 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6846 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6850 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6851 $as_echo_n "checking for $ac_header... " >&6; }
6852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6853 $as_echo_n "(cached) " >&6
6855 eval "$as_ac_Header=\$ac_header_preproc"
6857 ac_res=`eval 'as_val=${'$as_ac_Header'}
6858 $as_echo "$as_val"'`
6859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6860 $as_echo "$ac_res" >&6; }
6863 as_val=`eval 'as_val=${'$as_ac_Header'}
6864 $as_echo "$as_val"'`
6865 if test "x$as_val" = x""yes; then
6866 cat >>confdefs.h <<_ACEOF
6867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6878 if test -z "$GETOPT_H"; then
6880 for ac_func in getopt_long_only
6882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6883 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6884 $as_echo_n "checking for $ac_func... " >&6; }
6885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6886 $as_echo_n "(cached) " >&6
6888 cat >conftest.$ac_ext <<_ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6896 #define $ac_func innocuous_$ac_func
6898 /* System header to define __stub macros and hopefully few prototypes,
6899 which can conflict with char $ac_func (); below.
6900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901 <limits.h> exists even on freestanding compilers. */
6904 # include <limits.h>
6906 # include <assert.h>
6911 /* Override any GCC internal prototype to avoid an error.
6912 Use char because int might match the return type of a GCC
6913 builtin and then its argument prototype would still apply. */
6918 /* The GNU C library defines this for functions which it implements
6919 to always fail with ENOSYS. Some functions are actually named
6920 something starting with __ and the normal name is an alias. */
6921 #if defined __stub_$ac_func || defined __stub___$ac_func
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (ac_try="$ac_link"
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941 (eval "$ac_link") 2>conftest.er1
6943 grep -v '^ *+' conftest.er1 >conftest.err
6945 cat conftest.err >&5
6946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest$ac_exeext && {
6951 test "$cross_compiling" = yes ||
6952 $as_test_x conftest$ac_exeext
6954 eval "$as_ac_var=yes"
6956 $as_echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6959 eval "$as_ac_var=no"
6962 rm -rf conftest.dSYM
6963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6964 conftest$ac_exeext conftest.$ac_ext
6966 ac_res=`eval 'as_val=${'$as_ac_var'}
6967 $as_echo "$as_val"'`
6968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6969 $as_echo "$ac_res" >&6; }
6970 as_val=`eval 'as_val=${'$as_ac_var'}
6971 $as_echo "$as_val"'`
6972 if test "x$as_val" = x""yes; then
6973 cat >>confdefs.h <<_ACEOF
6974 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6984 if test -z "$GETOPT_H"; then
6985 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
6986 $as_echo_n "checking whether optreset is declared... " >&6; }
6987 if test "${ac_cv_have_decl_optreset+set}" = set; then
6988 $as_echo_n "(cached) " >&6
6990 cat >conftest.$ac_ext <<_ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
7009 rm -f conftest.$ac_objext
7010 if { (ac_try="$ac_compile"
7012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013 *) ac_try_echo=$ac_try;;
7015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7016 $as_echo "$ac_try_echo") >&5
7017 (eval "$ac_compile") 2>conftest.er1
7019 grep -v '^ *+' conftest.er1 >conftest.err
7021 cat conftest.err >&5
7022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && {
7024 test -z "$ac_c_werror_flag" ||
7025 test ! -s conftest.err
7026 } && test -s conftest.$ac_objext; then
7027 ac_cv_have_decl_optreset=yes
7029 $as_echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_have_decl_optreset=no
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7038 $as_echo "$ac_cv_have_decl_optreset" >&6; }
7039 if test "x$ac_cv_have_decl_optreset" = x""yes; then
7045 if test -z "$GETOPT_H"; then
7046 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
7047 $as_echo_n "checking for working GNU getopt function... " >&6; }
7048 if test "${gl_cv_func_gnu_getopt+set}" = set; then
7049 $as_echo_n "(cached) " >&6
7051 if test "$cross_compiling" = yes; then
7052 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
7053 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
7054 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
7055 $as_echo_n "(cached) " >&6
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7076 rm -f conftest.$ac_objext
7077 if { (ac_try="$ac_compile"
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7083 $as_echo "$ac_try_echo") >&5
7084 (eval "$ac_compile") 2>conftest.er1
7086 grep -v '^ *+' conftest.er1 >conftest.err
7088 cat conftest.err >&5
7089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && {
7091 test -z "$ac_c_werror_flag" ||
7092 test ! -s conftest.err
7093 } && test -s conftest.$ac_objext; then
7094 ac_cv_have_decl_getopt_clip=yes
7096 $as_echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_cv_have_decl_getopt_clip=no
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
7105 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
7106 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
7107 gl_cv_func_gnu_getopt=no
7109 gl_cv_func_gnu_getopt=yes
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7125 myargv[0] = "conftest";
7128 return getopt (2, myargv, "+a") != '?';
7134 rm -f conftest$ac_exeext
7135 if { (ac_try="$ac_link"
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141 $as_echo "$ac_try_echo") >&5
7142 (eval "$ac_link") 2>&5
7144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7146 { (case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152 (eval "$ac_try") 2>&5
7154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; }; then
7156 gl_cv_func_gnu_getopt=yes
7158 $as_echo "$as_me: program exited with status $ac_status" >&5
7159 $as_echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7163 gl_cv_func_gnu_getopt=no
7165 rm -rf conftest.dSYM
7166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7171 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
7172 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
7173 if test "$gl_cv_func_gnu_getopt" = "no"; then
7179 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7180 $as_echo_n "checking whether getenv is declared... " >&6; }
7181 if test "${ac_cv_have_decl_getenv+set}" = set; then
7182 $as_echo_n "(cached) " >&6
7184 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7209 $as_echo "$ac_try_echo") >&5
7210 (eval "$ac_compile") 2>conftest.er1
7212 grep -v '^ *+' conftest.er1 >conftest.err
7214 cat conftest.err >&5
7215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest.$ac_objext; then
7220 ac_cv_have_decl_getenv=yes
7222 $as_echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 ac_cv_have_decl_getenv=no
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7231 $as_echo "$ac_cv_have_decl_getenv" >&6; }
7232 if test "x$ac_cv_have_decl_getenv" = x""yes; then
7234 cat >>confdefs.h <<_ACEOF
7235 #define HAVE_DECL_GETENV 1
7240 cat >>confdefs.h <<_ACEOF
7241 #define HAVE_DECL_GETENV 0
7268 if test $gl_cv_have_include_next = yes; then
7269 gl_cv_next_sys_time_h='<'sys/time.h'>'
7271 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
7272 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7273 if test "${gl_cv_next_sys_time_h+set}" = set; then
7274 $as_echo_n "(cached) " >&6
7277 if test $ac_cv_header_sys_time_h = yes; then
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <sys/time.h>
7287 gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7288 sed -n '\#/sys/time.h#{
7289 s#.*"\(.*/sys/time.h\)".*#\1#
7295 gl_cv_next_sys_time_h='<'sys/time.h'>'
7299 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
7300 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7302 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7307 if test $ac_cv_header_sys_time_h = yes; then
7314 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7315 $as_echo_n "checking for struct timeval... " >&6; }
7316 if test "${gl_cv_sys_struct_timeval+set}" = set; then
7317 $as_echo_n "(cached) " >&6
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7326 #include <sys/time.h>
7333 static struct timeval x; x.tv_sec = x.tv_usec;
7338 rm -f conftest.$ac_objext
7339 if { (ac_try="$ac_compile"
7341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7345 $as_echo "$ac_try_echo") >&5
7346 (eval "$ac_compile") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.$ac_objext; then
7356 gl_cv_sys_struct_timeval=yes
7358 $as_echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 gl_cv_sys_struct_timeval=no
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
7367 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7368 if test $gl_cv_sys_struct_timeval = yes; then
7369 HAVE_STRUCT_TIMEVAL=1
7371 HAVE_STRUCT_TIMEVAL=0
7375 REPLACE_GETTIMEOFDAY=0
7377 if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
7378 SYS_TIME_H=sys/time.h
7392 for ac_func in $gl_func_list
7394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7395 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7396 $as_echo_n "checking for $ac_func... " >&6; }
7397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7398 $as_echo_n "(cached) " >&6
7400 cat >conftest.$ac_ext <<_ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7408 #define $ac_func innocuous_$ac_func
7410 /* System header to define __stub macros and hopefully few prototypes,
7411 which can conflict with char $ac_func (); below.
7412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7413 <limits.h> exists even on freestanding compilers. */
7416 # include <limits.h>
7418 # include <assert.h>
7423 /* Override any GCC internal prototype to avoid an error.
7424 Use char because int might match the return type of a GCC
7425 builtin and then its argument prototype would still apply. */
7430 /* The GNU C library defines this for functions which it implements
7431 to always fail with ENOSYS. Some functions are actually named
7432 something starting with __ and the normal name is an alias. */
7433 #if defined __stub_$ac_func || defined __stub___$ac_func
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452 $as_echo "$ac_try_echo") >&5
7453 (eval "$ac_link") 2>conftest.er1
7455 grep -v '^ *+' conftest.er1 >conftest.err
7457 cat conftest.err >&5
7458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && {
7460 test -z "$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 } && test -s conftest$ac_exeext && {
7463 test "$cross_compiling" = yes ||
7464 $as_test_x conftest$ac_exeext
7466 eval "$as_ac_var=yes"
7468 $as_echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7471 eval "$as_ac_var=no"
7474 rm -rf conftest.dSYM
7475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7476 conftest$ac_exeext conftest.$ac_ext
7478 ac_res=`eval 'as_val=${'$as_ac_var'}
7479 $as_echo "$as_val"'`
7480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7481 $as_echo "$ac_res" >&6; }
7482 as_val=`eval 'as_val=${'$as_ac_var'}
7483 $as_echo "$as_val"'`
7484 if test "x$as_val" = x""yes; then
7485 cat >>confdefs.h <<_ACEOF
7486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7498 if test "X$prefix" = "XNONE"; then
7499 acl_final_prefix="$ac_default_prefix"
7501 acl_final_prefix="$prefix"
7503 if test "X$exec_prefix" = "XNONE"; then
7504 acl_final_exec_prefix='${prefix}'
7506 acl_final_exec_prefix="$exec_prefix"
7508 acl_save_prefix="$prefix"
7509 prefix="$acl_final_prefix"
7510 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7511 prefix="$acl_save_prefix"
7514 # Check whether --with-gnu-ld was given.
7515 if test "${with_gnu_ld+set}" = set; then
7516 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7521 # Prepare PATH_SEPARATOR.
7522 # The user is always right.
7523 if test "${PATH_SEPARATOR+set}" != set; then
7524 echo "#! /bin/sh" >conf$$.sh
7525 echo "exit 0" >>conf$$.sh
7527 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7535 if test "$GCC" = yes; then
7536 # Check if gcc -print-prog-name=ld gives a path.
7537 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7538 $as_echo_n "checking for ld used by GCC... " >&6; }
7541 # gcc leaves a trailing carriage return which upsets mingw
7542 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7544 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7547 # Accept absolute paths.
7548 [\\/]* | [A-Za-z]:[\\/]*)
7549 re_direlt='/[^/][^/]*/\.\./'
7550 # Canonicalize the path of ld
7551 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7552 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7553 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7555 test -z "$LD" && LD="$ac_prog"
7558 # If it fails, then pretend we aren't using GCC.
7562 # If it is relative, then search for the first ld in PATH.
7566 elif test "$with_gnu_ld" = yes; then
7567 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7568 $as_echo_n "checking for GNU ld... " >&6; }
7570 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7571 $as_echo_n "checking for non-GNU ld... " >&6; }
7573 if test "${acl_cv_path_LD+set}" = set; then
7574 $as_echo_n "(cached) " >&6
7576 if test -z "$LD"; then
7577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7578 for ac_dir in $PATH; do
7579 test -z "$ac_dir" && ac_dir=.
7580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7581 acl_cv_path_LD="$ac_dir/$ac_prog"
7582 # Check to see if the program is GNU ld. I'd rather use --version,
7583 # but apparently some GNU ld's only accept -v.
7584 # Break only if it was the GNU/non-GNU ld that we prefer.
7585 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7586 *GNU* | *'with BFD'*)
7587 test "$with_gnu_ld" != no && break ;;
7589 test "$with_gnu_ld" != yes && break ;;
7595 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7599 LD="$acl_cv_path_LD"
7600 if test -n "$LD"; then
7601 { $as_echo "$as_me:$LINENO: result: $LD" >&5
7602 $as_echo "$LD" >&6; }
7604 { $as_echo "$as_me:$LINENO: result: no" >&5
7605 $as_echo "no" >&6; }
7607 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7608 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7609 { (exit 1); exit 1; }; }
7610 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7611 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7612 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7613 $as_echo_n "(cached) " >&6
7615 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7616 case `$LD -v 2>&1 </dev/null` in
7617 *GNU* | *'with BFD'*)
7618 acl_cv_prog_gnu_ld=yes ;;
7620 acl_cv_prog_gnu_ld=no ;;
7623 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7624 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7625 with_gnu_ld=$acl_cv_prog_gnu_ld
7630 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7631 $as_echo_n "checking for shared library run path origin... " >&6; }
7632 if test "${acl_cv_rpath+set}" = set; then
7633 $as_echo_n "(cached) " >&6
7636 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7637 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7643 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7644 $as_echo "$acl_cv_rpath" >&6; }
7646 libext="$acl_cv_libext"
7647 shlibext="$acl_cv_shlibext"
7648 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7649 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7650 hardcode_direct="$acl_cv_hardcode_direct"
7651 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7652 # Check whether --enable-rpath was given.
7653 if test "${enable_rpath+set}" = set; then
7654 enableval=$enable_rpath; :
7662 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7663 if test -n "$searchpath"; then
7664 acl_save_IFS="${IFS= }"; IFS=":"
7665 for searchdir in $searchpath; do
7666 if test -d "$searchdir"; then
7667 case "$searchdir" in
7668 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7669 *) searchdir=`cd "$searchdir" && pwd`
7670 case "$searchdir" in
7671 */lib64 ) acl_libdirstem=lib64 ;;
7686 if test "$gl_use_threads" != no; then
7687 { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
7688 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 extern void xyzzy ();
7706 rm -f conftest.$ac_objext conftest$ac_exeext
7707 if { (ac_try="$ac_link"
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7713 $as_echo "$ac_try_echo") >&5
7714 (eval "$ac_link") 2>conftest.er1
7716 grep -v '^ *+' conftest.er1 >conftest.err
7718 cat conftest.err >&5
7719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest$ac_exeext && {
7724 test "$cross_compiling" = yes ||
7725 $as_test_x conftest$ac_exeext
7729 $as_echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7735 rm -rf conftest.dSYM
7736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7737 conftest$ac_exeext conftest.$ac_ext
7738 { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
7739 $as_echo "$gl_have_weak" >&6; }
7740 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7741 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7742 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
7743 if test "${ac_cv_header_pthread_h+set}" = set; then
7744 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
7745 $as_echo_n "checking for pthread.h... " >&6; }
7746 if test "${ac_cv_header_pthread_h+set}" = set; then
7747 $as_echo_n "(cached) " >&6
7749 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7750 $as_echo "$ac_cv_header_pthread_h" >&6; }
7752 # Is the header compilable?
7753 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
7754 $as_echo_n "checking pthread.h usability... " >&6; }
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 $ac_includes_default
7762 #include <pthread.h>
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7771 $as_echo "$ac_try_echo") >&5
7772 (eval "$ac_compile") 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } && {
7779 test -z "$ac_c_werror_flag" ||
7780 test ! -s conftest.err
7781 } && test -s conftest.$ac_objext; then
7782 ac_header_compiler=yes
7784 $as_echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 ac_header_compiler=no
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7792 $as_echo "$ac_header_compiler" >&6; }
7794 # Is the header present?
7795 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
7796 $as_echo_n "checking pthread.h presence... " >&6; }
7797 cat >conftest.$ac_ext <<_ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 #include <pthread.h>
7805 if { (ac_try="$ac_cpp conftest.$ac_ext"
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7811 $as_echo "$ac_try_echo") >&5
7812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } >/dev/null && {
7819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7822 ac_header_preproc=yes
7824 $as_echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ac_header_preproc=no
7830 rm -f conftest.err conftest.$ac_ext
7831 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7832 $as_echo "$ac_header_preproc" >&6; }
7834 # So? What about this header?
7835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7837 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
7838 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7839 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
7840 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
7841 ac_header_preproc=yes
7844 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
7845 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
7846 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
7847 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
7848 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
7849 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
7850 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
7851 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
7852 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
7853 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
7854 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
7855 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
7859 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
7860 $as_echo_n "checking for pthread.h... " >&6; }
7861 if test "${ac_cv_header_pthread_h+set}" = set; then
7862 $as_echo_n "(cached) " >&6
7864 ac_cv_header_pthread_h=$ac_header_preproc
7866 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7867 $as_echo "$ac_cv_header_pthread_h" >&6; }
7870 if test "x$ac_cv_header_pthread_h" = x""yes; then
7871 gl_have_pthread_h=yes
7873 gl_have_pthread_h=no
7877 if test "$gl_have_pthread_h" = yes; then
7878 # Other possible tests:
7879 # -lpthreads (FSU threads, PCthreads)
7882 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7883 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7884 # the second one only in libpthread, and lock.c needs it.
7885 cat >conftest.$ac_ext <<_ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7891 #include <pthread.h>
7895 pthread_mutex_lock((pthread_mutex_t*)0);
7896 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (ac_try="$ac_link"
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7908 $as_echo "$ac_try_echo") >&5
7909 (eval "$ac_link") 2>conftest.er1
7911 grep -v '^ *+' conftest.er1 >conftest.err
7913 cat conftest.err >&5
7914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } && {
7916 test -z "$ac_c_werror_flag" ||
7917 test ! -s conftest.err
7918 } && test -s conftest$ac_exeext && {
7919 test "$cross_compiling" = yes ||
7920 $as_test_x conftest$ac_exeext
7924 $as_echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7930 rm -rf conftest.dSYM
7931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7932 conftest$ac_exeext conftest.$ac_ext
7933 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7934 # since it is defined as a macro on OSF/1.)
7935 if test -n "$gl_have_pthread"; then
7936 # The program links fine without libpthread. But it may actually
7937 # need to link with libpthread in order to create multiple threads.
7938 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
7939 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7940 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
7941 $as_echo_n "(cached) " >&6
7943 ac_check_lib_save_LIBS=$LIBS
7944 LIBS="-lpthread $LIBS"
7945 cat >conftest.$ac_ext <<_ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7952 /* Override any GCC internal prototype to avoid an error.
7953 Use char because int might match the return type of a GCC
7954 builtin and then its argument prototype would still apply. */
7958 char pthread_kill ();
7962 return pthread_kill ();
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (ac_try="$ac_link"
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7974 $as_echo "$ac_try_echo") >&5
7975 (eval "$ac_link") 2>conftest.er1
7977 grep -v '^ *+' conftest.er1 >conftest.err
7979 cat conftest.err >&5
7980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest$ac_exeext && {
7985 test "$cross_compiling" = yes ||
7986 $as_test_x conftest$ac_exeext
7988 ac_cv_lib_pthread_pthread_kill=yes
7990 $as_echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 ac_cv_lib_pthread_pthread_kill=no
7996 rm -rf conftest.dSYM
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998 conftest$ac_exeext conftest.$ac_ext
7999 LIBS=$ac_check_lib_save_LIBS
8001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
8002 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8003 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
8004 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8005 # On Solaris and HP-UX, most pthread functions exist also in libc.
8006 # Therefore pthread_in_use() needs to actually try to create a
8007 # thread: pthread_create from libc will fail, whereas
8008 # pthread_create will actually create a thread.
8012 cat >>confdefs.h <<\_ACEOF
8013 #define PTHREAD_IN_USE_DETECTION_HARD 1
8021 # Some library is needed. Try libpthread and libc_r.
8022 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
8023 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8024 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
8025 $as_echo_n "(cached) " >&6
8027 ac_check_lib_save_LIBS=$LIBS
8028 LIBS="-lpthread $LIBS"
8029 cat >conftest.$ac_ext <<_ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8036 /* Override any GCC internal prototype to avoid an error.
8037 Use char because int might match the return type of a GCC
8038 builtin and then its argument prototype would still apply. */
8042 char pthread_kill ();
8046 return pthread_kill ();
8051 rm -f conftest.$ac_objext conftest$ac_exeext
8052 if { (ac_try="$ac_link"
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8058 $as_echo "$ac_try_echo") >&5
8059 (eval "$ac_link") 2>conftest.er1
8061 grep -v '^ *+' conftest.er1 >conftest.err
8063 cat conftest.err >&5
8064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && {
8066 test -z "$ac_c_werror_flag" ||
8067 test ! -s conftest.err
8068 } && test -s conftest$ac_exeext && {
8069 test "$cross_compiling" = yes ||
8070 $as_test_x conftest$ac_exeext
8072 ac_cv_lib_pthread_pthread_kill=yes
8074 $as_echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 ac_cv_lib_pthread_pthread_kill=no
8080 rm -rf conftest.dSYM
8081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8082 conftest$ac_exeext conftest.$ac_ext
8083 LIBS=$ac_check_lib_save_LIBS
8085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
8086 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8087 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
8089 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8090 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8093 if test -z "$gl_have_pthread"; then
8095 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
8096 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8097 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
8098 $as_echo_n "(cached) " >&6
8100 ac_check_lib_save_LIBS=$LIBS
8102 cat >conftest.$ac_ext <<_ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8109 /* Override any GCC internal prototype to avoid an error.
8110 Use char because int might match the return type of a GCC
8111 builtin and then its argument prototype would still apply. */
8115 char pthread_kill ();
8119 return pthread_kill ();
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (ac_try="$ac_link"
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8131 $as_echo "$ac_try_echo") >&5
8132 (eval "$ac_link") 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } && {
8139 test -z "$ac_c_werror_flag" ||
8140 test ! -s conftest.err
8141 } && test -s conftest$ac_exeext && {
8142 test "$cross_compiling" = yes ||
8143 $as_test_x conftest$ac_exeext
8145 ac_cv_lib_c_r_pthread_kill=yes
8147 $as_echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 ac_cv_lib_c_r_pthread_kill=no
8153 rm -rf conftest.dSYM
8154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8155 conftest$ac_exeext conftest.$ac_ext
8156 LIBS=$ac_check_lib_save_LIBS
8158 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
8159 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8160 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
8162 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8163 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8168 if test -n "$gl_have_pthread"; then
8169 gl_threads_api=posix
8171 cat >>confdefs.h <<\_ACEOF
8172 #define USE_POSIX_THREADS 1
8175 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8176 if test $gl_have_weak = yes; then
8178 cat >>confdefs.h <<\_ACEOF
8179 #define USE_POSIX_THREADS_WEAK 1
8186 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
8187 # pthread_rwlock_* functions.
8188 { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
8189 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
8190 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
8191 $as_echo_n "(cached) " >&6
8193 ac_cv_type_pthread_rwlock_t=no
8194 cat >conftest.$ac_ext <<_ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 #include <pthread.h>
8205 if (sizeof (pthread_rwlock_t))
8211 rm -f conftest.$ac_objext
8212 if { (ac_try="$ac_compile"
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219 (eval "$ac_compile") 2>conftest.er1
8221 grep -v '^ *+' conftest.er1 >conftest.err
8223 cat conftest.err >&5
8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && {
8226 test -z "$ac_c_werror_flag" ||
8227 test ! -s conftest.err
8228 } && test -s conftest.$ac_objext; then
8229 cat >conftest.$ac_ext <<_ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #include <pthread.h>
8240 if (sizeof ((pthread_rwlock_t)))
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8253 $as_echo "$ac_try_echo") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8256 grep -v '^ *+' conftest.er1 >conftest.err
8258 cat conftest.err >&5
8259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.$ac_objext; then
8266 $as_echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_cv_type_pthread_rwlock_t=yes
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 $as_echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
8283 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
8284 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
8286 cat >>confdefs.h <<\_ACEOF
8287 #define HAVE_PTHREAD_RWLOCK 1
8292 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 #include <pthread.h>
8303 #if __FreeBSD__ == 4
8304 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8306 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8313 rm -f conftest.$ac_objext
8314 if { (ac_try="$ac_compile"
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8320 $as_echo "$ac_try_echo") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8323 grep -v '^ *+' conftest.er1 >conftest.err
8325 cat conftest.err >&5
8326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && {
8328 test -z "$ac_c_werror_flag" ||
8329 test ! -s conftest.err
8330 } && test -s conftest.$ac_objext; then
8332 cat >>confdefs.h <<\_ACEOF
8333 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
8337 $as_echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 if test -z "$gl_have_pthread"; then
8348 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8349 gl_have_solaristhread=
8350 gl_save_LIBS="$LIBS"
8351 LIBS="$LIBS -lthread"
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (ac_try="$ac_link"
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8375 $as_echo "$ac_try_echo") >&5
8376 (eval "$ac_link") 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest$ac_exeext && {
8386 test "$cross_compiling" = yes ||
8387 $as_test_x conftest$ac_exeext
8389 gl_have_solaristhread=yes
8391 $as_echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8397 rm -rf conftest.dSYM
8398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8399 conftest$ac_exeext conftest.$ac_ext
8400 LIBS="$gl_save_LIBS"
8401 if test -n "$gl_have_solaristhread"; then
8402 gl_threads_api=solaris
8404 LTLIBTHREAD=-lthread
8405 LIBMULTITHREAD="$LIBTHREAD"
8406 LTLIBMULTITHREAD="$LTLIBTHREAD"
8408 cat >>confdefs.h <<\_ACEOF
8409 #define USE_SOLARIS_THREADS 1
8412 if test $gl_have_weak = yes; then
8414 cat >>confdefs.h <<\_ACEOF
8415 #define USE_SOLARIS_THREADS_WEAK 1
8424 if test "$gl_use_threads" = pth; then
8425 gl_save_CPPFLAGS="$CPPFLAGS"
8431 { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
8432 $as_echo_n "checking how to link with libpth... " >&6; }
8433 if test "${ac_cv_libpth_libs+set}" = set; then
8434 $as_echo_n "(cached) " >&6
8442 acl_save_prefix="$prefix"
8443 prefix="$acl_final_prefix"
8444 acl_save_exec_prefix="$exec_prefix"
8445 exec_prefix="$acl_final_exec_prefix"
8447 eval additional_includedir=\"$includedir\"
8448 eval additional_libdir=\"$libdir\"
8450 exec_prefix="$acl_save_exec_prefix"
8451 prefix="$acl_save_prefix"
8454 # Check whether --with-libpth-prefix was given.
8455 if test "${with_libpth_prefix+set}" = set; then
8456 withval=$with_libpth_prefix;
8457 if test "X$withval" = "Xno"; then
8460 if test "X$withval" = "X"; then
8462 acl_save_prefix="$prefix"
8463 prefix="$acl_final_prefix"
8464 acl_save_exec_prefix="$exec_prefix"
8465 exec_prefix="$acl_final_exec_prefix"
8467 eval additional_includedir=\"$includedir\"
8468 eval additional_libdir=\"$libdir\"
8470 exec_prefix="$acl_save_exec_prefix"
8471 prefix="$acl_save_prefix"
8474 additional_includedir="$withval/include"
8475 additional_libdir="$withval/$acl_libdirstem"
8486 names_already_handled=
8487 names_next_round='pth '
8488 while test -n "$names_next_round"; do
8489 names_this_round="$names_next_round"
8491 for name in $names_this_round; do
8493 for n in $names_already_handled; do
8494 if test "$n" = "$name"; then
8499 if test -z "$already_handled"; then
8500 names_already_handled="$names_already_handled $name"
8501 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8502 eval value=\"\$HAVE_LIB$uppername\"
8503 if test -n "$value"; then
8504 if test "$value" = yes; then
8505 eval value=\"\$LIB$uppername\"
8506 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8507 eval value=\"\$LTLIB$uppername\"
8508 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8517 if test $use_additional = yes; then
8518 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8519 found_dir="$additional_libdir"
8520 found_so="$additional_libdir/lib$name.$shlibext"
8521 if test -f "$additional_libdir/lib$name.la"; then
8522 found_la="$additional_libdir/lib$name.la"
8525 if test -f "$additional_libdir/lib$name.$libext"; then
8526 found_dir="$additional_libdir"
8527 found_a="$additional_libdir/lib$name.$libext"
8528 if test -f "$additional_libdir/lib$name.la"; then
8529 found_la="$additional_libdir/lib$name.la"
8534 if test "X$found_dir" = "X"; then
8535 for x in $LDFLAGS $LTLIBPTH; do
8537 acl_save_prefix="$prefix"
8538 prefix="$acl_final_prefix"
8539 acl_save_exec_prefix="$exec_prefix"
8540 exec_prefix="$acl_final_exec_prefix"
8542 exec_prefix="$acl_save_exec_prefix"
8543 prefix="$acl_save_prefix"
8547 dir=`echo "X$x" | sed -e 's/^X-L//'`
8548 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8550 found_so="$dir/lib$name.$shlibext"
8551 if test -f "$dir/lib$name.la"; then
8552 found_la="$dir/lib$name.la"
8555 if test -f "$dir/lib$name.$libext"; then
8557 found_a="$dir/lib$name.$libext"
8558 if test -f "$dir/lib$name.la"; then
8559 found_la="$dir/lib$name.la"
8565 if test "X$found_dir" != "X"; then
8570 if test "X$found_dir" != "X"; then
8571 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8572 if test "X$found_so" != "X"; then
8573 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
8574 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8577 for x in $ltrpathdirs; do
8578 if test "X$x" = "X$found_dir"; then
8583 if test -z "$haveit"; then
8584 ltrpathdirs="$ltrpathdirs $found_dir"
8586 if test "$hardcode_direct" = yes; then
8587 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8589 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8590 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8592 for x in $rpathdirs; do
8593 if test "X$x" = "X$found_dir"; then
8598 if test -z "$haveit"; then
8599 rpathdirs="$rpathdirs $found_dir"
8603 for x in $LDFLAGS $LIBPTH; do
8605 acl_save_prefix="$prefix"
8606 prefix="$acl_final_prefix"
8607 acl_save_exec_prefix="$exec_prefix"
8608 exec_prefix="$acl_final_exec_prefix"
8610 exec_prefix="$acl_save_exec_prefix"
8611 prefix="$acl_save_prefix"
8613 if test "X$x" = "X-L$found_dir"; then
8618 if test -z "$haveit"; then
8619 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8621 if test "$hardcode_minus_L" != no; then
8622 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8624 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8630 if test "X$found_a" != "X"; then
8631 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8633 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8636 additional_includedir=
8637 case "$found_dir" in
8638 */$acl_libdirstem | */$acl_libdirstem/)
8639 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8640 additional_includedir="$basedir/include"
8643 if test "X$additional_includedir" != "X"; then
8644 if test "X$additional_includedir" != "X/usr/include"; then
8646 if test "X$additional_includedir" = "X/usr/local/include"; then
8647 if test -n "$GCC"; then
8649 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8653 if test -z "$haveit"; then
8654 for x in $CPPFLAGS $INCPTH; do
8656 acl_save_prefix="$prefix"
8657 prefix="$acl_final_prefix"
8658 acl_save_exec_prefix="$exec_prefix"
8659 exec_prefix="$acl_final_exec_prefix"
8661 exec_prefix="$acl_save_exec_prefix"
8662 prefix="$acl_save_prefix"
8664 if test "X$x" = "X-I$additional_includedir"; then
8669 if test -z "$haveit"; then
8670 if test -d "$additional_includedir"; then
8671 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8677 if test -n "$found_la"; then
8678 save_libdir="$libdir"
8680 */* | *\\*) . "$found_la" ;;
8681 *) . "./$found_la" ;;
8683 libdir="$save_libdir"
8684 for dep in $dependency_libs; do
8687 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8688 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
8690 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
8691 if test -n "$GCC"; then
8693 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8697 if test -z "$haveit"; then
8699 for x in $LDFLAGS $LIBPTH; do
8701 acl_save_prefix="$prefix"
8702 prefix="$acl_final_prefix"
8703 acl_save_exec_prefix="$exec_prefix"
8704 exec_prefix="$acl_final_exec_prefix"
8706 exec_prefix="$acl_save_exec_prefix"
8707 prefix="$acl_save_prefix"
8709 if test "X$x" = "X-L$additional_libdir"; then
8714 if test -z "$haveit"; then
8715 if test -d "$additional_libdir"; then
8716 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8720 for x in $LDFLAGS $LTLIBPTH; do
8722 acl_save_prefix="$prefix"
8723 prefix="$acl_final_prefix"
8724 acl_save_exec_prefix="$exec_prefix"
8725 exec_prefix="$acl_final_exec_prefix"
8727 exec_prefix="$acl_save_exec_prefix"
8728 prefix="$acl_save_prefix"
8730 if test "X$x" = "X-L$additional_libdir"; then
8735 if test -z "$haveit"; then
8736 if test -d "$additional_libdir"; then
8737 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8744 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8745 if test "$enable_rpath" != no; then
8747 for x in $rpathdirs; do
8748 if test "X$x" = "X$dir"; then
8753 if test -z "$haveit"; then
8754 rpathdirs="$rpathdirs $dir"
8757 for x in $ltrpathdirs; do
8758 if test "X$x" = "X$dir"; then
8763 if test -z "$haveit"; then
8764 ltrpathdirs="$ltrpathdirs $dir"
8769 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8772 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8775 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8776 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8782 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8783 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8789 if test "X$rpathdirs" != "X"; then
8790 if test -n "$hardcode_libdir_separator"; then
8792 for found_dir in $rpathdirs; do
8793 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8795 acl_save_libdir="$libdir"
8797 eval flag=\"$hardcode_libdir_flag_spec\"
8798 libdir="$acl_save_libdir"
8799 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8801 for found_dir in $rpathdirs; do
8802 acl_save_libdir="$libdir"
8804 eval flag=\"$hardcode_libdir_flag_spec\"
8805 libdir="$acl_save_libdir"
8806 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8810 if test "X$ltrpathdirs" != "X"; then
8811 for found_dir in $ltrpathdirs; do
8812 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8816 ac_cv_libpth_libs="$LIBPTH"
8817 ac_cv_libpth_ltlibs="$LTLIBPTH"
8818 ac_cv_libpth_cppflags="$INCPTH"
8821 { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
8822 $as_echo "$ac_cv_libpth_libs" >&6; }
8823 LIBPTH="$ac_cv_libpth_libs"
8824 LTLIBPTH="$ac_cv_libpth_ltlibs"
8825 INCPTH="$ac_cv_libpth_cppflags"
8827 for element in $INCPTH; do
8829 for x in $CPPFLAGS; do
8831 acl_save_prefix="$prefix"
8832 prefix="$acl_final_prefix"
8833 acl_save_exec_prefix="$exec_prefix"
8834 exec_prefix="$acl_final_exec_prefix"
8836 exec_prefix="$acl_save_exec_prefix"
8837 prefix="$acl_save_prefix"
8839 if test "X$x" = "X$element"; then
8844 if test -z "$haveit"; then
8845 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8856 gl_save_LIBS="$LIBS"
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (ac_try="$ac_link"
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8880 $as_echo "$ac_try_echo") >&5
8881 (eval "$ac_link") 2>conftest.er1
8883 grep -v '^ *+' conftest.er1 >conftest.err
8885 cat conftest.err >&5
8886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } && {
8888 test -z "$ac_c_werror_flag" ||
8889 test ! -s conftest.err
8890 } && test -s conftest$ac_exeext && {
8891 test "$cross_compiling" = yes ||
8892 $as_test_x conftest$ac_exeext
8896 $as_echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8902 rm -rf conftest.dSYM
8903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8904 conftest$ac_exeext conftest.$ac_ext
8905 LIBS="$gl_save_LIBS"
8906 if test -n "$gl_have_pth"; then
8909 LTLIBTHREAD="$LTLIBPTH"
8910 LIBMULTITHREAD="$LIBTHREAD"
8911 LTLIBMULTITHREAD="$LTLIBTHREAD"
8913 cat >>confdefs.h <<\_ACEOF
8914 #define USE_PTH_THREADS 1
8917 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8918 if test $gl_have_weak = yes; then
8920 cat >>confdefs.h <<\_ACEOF
8921 #define USE_PTH_THREADS_WEAK 1
8929 CPPFLAGS="$gl_save_CPPFLAGS"
8932 if test -z "$gl_have_pthread"; then
8933 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
8934 if { case "$host_os" in
8939 gl_threads_api=win32
8941 cat >>confdefs.h <<\_ACEOF
8942 #define USE_WIN32_THREADS 1
8949 { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
8950 $as_echo_n "checking for multithread API to use... " >&6; }
8951 { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
8952 $as_echo "$gl_threads_api" >&6; }
8959 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
8960 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
8961 if test "${gl_cv_func_malloc_posix+set}" = set; then
8962 $as_echo_n "(cached) " >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8975 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8983 rm -f conftest.$ac_objext
8984 if { (ac_try="$ac_compile"
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8990 $as_echo "$ac_try_echo") >&5
8991 (eval "$ac_compile") 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest.$ac_objext; then
9001 gl_cv_func_malloc_posix=yes
9003 $as_echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 gl_cv_func_malloc_posix=no
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
9013 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9016 GNULIB_MALLOC_POSIX=0;
9017 GNULIB_REALLOC_POSIX=0;
9018 GNULIB_CALLOC_POSIX=0;
9025 HAVE_CALLOC_POSIX=1;
9027 HAVE_MALLOC_POSIX=1;
9029 HAVE_REALLOC_POSIX=1;
9036 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
9037 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
9038 if test "${gl_cv_var__system_configuration+set}" = set; then
9039 $as_echo_n "(cached) " >&6
9041 cat >conftest.$ac_ext <<_ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 #include <sys/systemcfg.h>
9052 double x = _system_configuration.physmem;
9053 if (x > 0.0) return 0;
9058 rm -f conftest.$ac_objext conftest$ac_exeext
9059 if { (ac_try="$ac_link"
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9065 $as_echo "$ac_try_echo") >&5
9066 (eval "$ac_link") 2>conftest.er1
9068 grep -v '^ *+' conftest.er1 >conftest.err
9070 cat conftest.err >&5
9071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } && {
9073 test -z "$ac_c_werror_flag" ||
9074 test ! -s conftest.err
9075 } && test -s conftest$ac_exeext && {
9076 test "$cross_compiling" = yes ||
9077 $as_test_x conftest$ac_exeext
9079 gl_cv_var__system_configuration=yes
9081 $as_echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 gl_cv_var__system_configuration=no
9087 rm -rf conftest.dSYM
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089 conftest$ac_exeext conftest.$ac_ext
9091 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
9092 $as_echo "$gl_cv_var__system_configuration" >&6; }
9094 if test $gl_cv_var__system_configuration = yes; then
9096 cat >>confdefs.h <<\_ACEOF
9097 #define HAVE__SYSTEM_CONFIGURATION 1
9104 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9105 $as_echo_n "checking for ssize_t... " >&6; }
9106 if test "${gt_cv_ssize_t+set}" = set; then
9107 $as_echo_n "(cached) " >&6
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 #include <sys/types.h>
9119 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9125 rm -f conftest.$ac_objext
9126 if { (ac_try="$ac_compile"
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9132 $as_echo "$ac_try_echo") >&5
9133 (eval "$ac_compile") 2>conftest.er1
9135 grep -v '^ *+' conftest.er1 >conftest.err
9137 cat conftest.err >&5
9138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && {
9140 test -z "$ac_c_werror_flag" ||
9141 test ! -s conftest.err
9142 } && test -s conftest.$ac_objext; then
9145 $as_echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9154 $as_echo "$gt_cv_ssize_t" >&6; }
9155 if test $gt_cv_ssize_t = no; then
9157 cat >>confdefs.h <<\_ACEOF
9164 GNULIB_FPRINTF_POSIX=0;
9165 GNULIB_PRINTF_POSIX=0;
9167 GNULIB_SPRINTF_POSIX=0;
9168 GNULIB_VFPRINTF_POSIX=0;
9169 GNULIB_VPRINTF_POSIX=0;
9171 GNULIB_VSPRINTF_POSIX=0;
9187 HAVE_DECL_SNPRINTF=1;
9188 REPLACE_VSNPRINTF=0;
9189 HAVE_DECL_VSNPRINTF=1;
9193 REPLACE_VASPRINTF=0;
9203 HAVE_DECL_GETDELIM=1;
9204 HAVE_DECL_GETLINE=1;
9208 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9209 $as_echo_n "checking whether snprintf is declared... " >&6; }
9210 if test "${ac_cv_have_decl_snprintf+set}" = set; then
9211 $as_echo_n "(cached) " >&6
9213 cat >conftest.$ac_ext <<_ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219 $ac_includes_default
9231 rm -f conftest.$ac_objext
9232 if { (ac_try="$ac_compile"
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9238 $as_echo "$ac_try_echo") >&5
9239 (eval "$ac_compile") 2>conftest.er1
9241 grep -v '^ *+' conftest.er1 >conftest.err
9243 cat conftest.err >&5
9244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } && {
9246 test -z "$ac_c_werror_flag" ||
9247 test ! -s conftest.err
9248 } && test -s conftest.$ac_objext; then
9249 ac_cv_have_decl_snprintf=yes
9251 $as_echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_cv_have_decl_snprintf=no
9257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9260 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
9261 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
9263 cat >>confdefs.h <<_ACEOF
9264 #define HAVE_DECL_SNPRINTF 1
9269 cat >>confdefs.h <<_ACEOF
9270 #define HAVE_DECL_SNPRINTF 0
9278 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9279 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9280 if test "${ac_cv_header_stdbool_h+set}" = set; then
9281 $as_echo_n "(cached) " >&6
9283 cat >conftest.$ac_ext <<_ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9290 #include <stdbool.h>
9292 "error: bool is not defined"
9295 "error: false is not defined"
9298 "error: false is not 0"
9301 "error: true is not defined"
9304 "error: true is not 1"
9306 #ifndef __bool_true_false_are_defined
9307 "error: __bool_true_false_are_defined is not defined"
9310 struct s { _Bool s: 1; _Bool t; } s;
9312 char a[true == 1 ? 1 : -1];
9313 char b[false == 0 ? 1 : -1];
9314 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9315 char d[(bool) 0.5 == true ? 1 : -1];
9317 char f[(_Bool) 0.0 == false ? 1 : -1];
9319 char h[sizeof (_Bool)];
9321 enum { j = false, k = true, l = false * true, m = true * 256 };
9323 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9324 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9325 #if defined __xlc__ || defined __GNUC__
9326 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9327 reported by James Lemley on 2005-10-05; see
9328 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9329 This test is not quite right, since xlc is allowed to
9330 reject this program, as the initializer for xlcbug is
9331 not one of the forms that C requires support for.
9332 However, doing the test right would require a run-time
9333 test, and that would make cross-compilation harder.
9334 Let us hope that IBM fixes the xlc bug, and also adds
9335 support for this kind of constant expression. In the
9336 meantime, this test will reject xlc, which is OK, since
9337 our stdbool.h substitute should suffice. We also test
9338 this with GCC, where it should work, to detect more
9339 quickly whether someone messes up the test in the
9341 char digs[] = "0123456789";
9342 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9344 /* Catch a bug in an HP-UX C compiler. See
9345 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9346 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9357 /* Refer to every declared value, to avoid compiler optimizations. */
9358 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9359 + !m + !n + !o + !p + !q + !pq);
9365 rm -f conftest.$ac_objext
9366 if { (ac_try="$ac_compile"
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9372 $as_echo "$ac_try_echo") >&5
9373 (eval "$ac_compile") 2>conftest.er1
9375 grep -v '^ *+' conftest.er1 >conftest.err
9377 cat conftest.err >&5
9378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } && {
9380 test -z "$ac_c_werror_flag" ||
9381 test ! -s conftest.err
9382 } && test -s conftest.$ac_objext; then
9383 ac_cv_header_stdbool_h=yes
9385 $as_echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 ac_cv_header_stdbool_h=no
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9393 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9394 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9395 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
9396 $as_echo_n "checking for _Bool... " >&6; }
9397 if test "${ac_cv_type__Bool+set}" = set; then
9398 $as_echo_n "(cached) " >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 $ac_includes_default
9417 rm -f conftest.$ac_objext
9418 if { (ac_try="$ac_compile"
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9424 $as_echo "$ac_try_echo") >&5
9425 (eval "$ac_compile") 2>conftest.er1
9427 grep -v '^ *+' conftest.er1 >conftest.err
9429 cat conftest.err >&5
9430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } && {
9432 test -z "$ac_c_werror_flag" ||
9433 test ! -s conftest.err
9434 } && test -s conftest.$ac_objext; then
9435 cat >conftest.$ac_ext <<_ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9441 $ac_includes_default
9445 if (sizeof ((_Bool)))
9451 rm -f conftest.$ac_objext
9452 if { (ac_try="$ac_compile"
9454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9455 *) ac_try_echo=$ac_try;;
9457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9458 $as_echo "$ac_try_echo") >&5
9459 (eval "$ac_compile") 2>conftest.er1
9461 grep -v '^ *+' conftest.er1 >conftest.err
9463 cat conftest.err >&5
9464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && {
9466 test -z "$ac_c_werror_flag" ||
9467 test ! -s conftest.err
9468 } && test -s conftest.$ac_objext; then
9471 $as_echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 ac_cv_type__Bool=yes
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 $as_echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9488 $as_echo "$ac_cv_type__Bool" >&6; }
9489 if test "x$ac_cv_type__Bool" = x""yes; then
9491 cat >>confdefs.h <<_ACEOF
9492 #define HAVE__BOOL 1
9498 if test $ac_cv_header_stdbool_h = yes; then
9500 cat >>confdefs.h <<\_ACEOF
9501 #define HAVE_STDBOOL_H 1
9506 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
9507 $as_echo_n "checking for long long int... " >&6; }
9508 if test "${ac_cv_type_long_long_int+set}" = set; then
9509 $as_echo_n "(cached) " >&6
9511 cat >conftest.$ac_ext <<_ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518 /* For now, do not test the preprocessor; as of 2007 there are too many
9519 implementations with broken preprocessors. Perhaps this can
9520 be revisited in 2012. In the meantime, code should not expect
9521 #if to work with literals wider than 32 bits. */
9522 /* Test literals. */
9523 long long int ll = 9223372036854775807ll;
9524 long long int nll = -9223372036854775807LL;
9525 unsigned long long int ull = 18446744073709551615ULL;
9526 /* Test constant expressions. */
9527 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9529 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9535 /* Test availability of runtime routines for shift and division. */
9536 long long int llmax = 9223372036854775807ll;
9537 unsigned long long int ullmax = 18446744073709551615ull;
9538 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9539 | (llmax / ll) | (llmax % ll)
9540 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9541 | (ullmax / ull) | (ullmax % ull));
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (ac_try="$ac_link"
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9554 $as_echo "$ac_try_echo") >&5
9555 (eval "$ac_link") 2>conftest.er1
9557 grep -v '^ *+' conftest.er1 >conftest.err
9559 cat conftest.err >&5
9560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest$ac_exeext && {
9565 test "$cross_compiling" = yes ||
9566 $as_test_x conftest$ac_exeext
9568 if test "$cross_compiling" = yes; then
9569 ac_cv_type_long_long_int=yes
9571 cat >conftest.$ac_ext <<_ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9580 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9581 # define LLONG_MAX (HALF - 1 + HALF)
9586 long long int n = 1;
9590 long long int m = n << i;
9593 if (LLONG_MAX / 2 < m)
9601 rm -f conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9608 $as_echo "$ac_try_echo") >&5
9609 (eval "$ac_link") 2>&5
9611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9613 { (case "(($ac_try" in
9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615 *) ac_try_echo=$ac_try;;
9617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9618 $as_echo "$ac_try_echo") >&5
9619 (eval "$ac_try") 2>&5
9621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 ac_cv_type_long_long_int=yes
9625 $as_echo "$as_me: program exited with status $ac_status" >&5
9626 $as_echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9630 ac_cv_type_long_long_int=no
9632 rm -rf conftest.dSYM
9633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9638 $as_echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_cv_type_long_long_int=no
9644 rm -rf conftest.dSYM
9645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9646 conftest$ac_exeext conftest.$ac_ext
9648 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
9649 $as_echo "$ac_cv_type_long_long_int" >&6; }
9650 if test $ac_cv_type_long_long_int = yes; then
9652 cat >>confdefs.h <<\_ACEOF
9653 #define HAVE_LONG_LONG_INT 1
9659 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
9660 $as_echo_n "checking for unsigned long long int... " >&6; }
9661 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
9662 $as_echo_n "(cached) " >&6
9664 cat >conftest.$ac_ext <<_ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 /* For now, do not test the preprocessor; as of 2007 there are too many
9672 implementations with broken preprocessors. Perhaps this can
9673 be revisited in 2012. In the meantime, code should not expect
9674 #if to work with literals wider than 32 bits. */
9675 /* Test literals. */
9676 long long int ll = 9223372036854775807ll;
9677 long long int nll = -9223372036854775807LL;
9678 unsigned long long int ull = 18446744073709551615ULL;
9679 /* Test constant expressions. */
9680 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9682 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9688 /* Test availability of runtime routines for shift and division. */
9689 long long int llmax = 9223372036854775807ll;
9690 unsigned long long int ullmax = 18446744073709551615ull;
9691 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9692 | (llmax / ll) | (llmax % ll)
9693 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9694 | (ullmax / ull) | (ullmax % ull));
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (ac_try="$ac_link"
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9707 $as_echo "$ac_try_echo") >&5
9708 (eval "$ac_link") 2>conftest.er1
9710 grep -v '^ *+' conftest.er1 >conftest.err
9712 cat conftest.err >&5
9713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } && {
9715 test -z "$ac_c_werror_flag" ||
9716 test ! -s conftest.err
9717 } && test -s conftest$ac_exeext && {
9718 test "$cross_compiling" = yes ||
9719 $as_test_x conftest$ac_exeext
9721 ac_cv_type_unsigned_long_long_int=yes
9723 $as_echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_cv_type_unsigned_long_long_int=no
9729 rm -rf conftest.dSYM
9730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9731 conftest$ac_exeext conftest.$ac_ext
9733 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
9734 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9735 if test $ac_cv_type_unsigned_long_long_int = yes; then
9737 cat >>confdefs.h <<\_ACEOF
9738 #define HAVE_UNSIGNED_LONG_LONG_INT 1
9780 GNULIB_STRCASESTR=0;
9787 GNULIB_MBSCASECMP=0;
9788 GNULIB_MBSNCASECMP=0;
9789 GNULIB_MBSPCASECMP=0;
9790 GNULIB_MBSCASESTR=0;
9800 HAVE_DECL_MEMRCHR=1;
9806 HAVE_DECL_STRNDUP=1;
9807 HAVE_DECL_STRNLEN=1;
9811 HAVE_DECL_STRTOK_R=1;
9812 HAVE_DECL_STRERROR=1;
9813 HAVE_DECL_STRSIGNAL=1;
9815 REPLACE_STRSIGNAL=0;
9817 REPLACE_STRCASESTR=0;
9821 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
9822 $as_echo_n "checking whether strdup is declared... " >&6; }
9823 if test "${ac_cv_have_decl_strdup+set}" = set; then
9824 $as_echo_n "(cached) " >&6
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9844 rm -f conftest.$ac_objext
9845 if { (ac_try="$ac_compile"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9851 $as_echo "$ac_try_echo") >&5
9852 (eval "$ac_compile") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && {
9859 test -z "$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 } && test -s conftest.$ac_objext; then
9862 ac_cv_have_decl_strdup=yes
9864 $as_echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 ac_cv_have_decl_strdup=no
9870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
9873 $as_echo "$ac_cv_have_decl_strdup" >&6; }
9874 if test "x$ac_cv_have_decl_strdup" = x""yes; then
9876 cat >>confdefs.h <<_ACEOF
9877 #define HAVE_DECL_STRDUP 1
9882 cat >>confdefs.h <<_ACEOF
9883 #define HAVE_DECL_STRDUP 0
9911 if test $gl_cv_have_include_next = yes; then
9912 gl_cv_next_string_h='<'string.h'>'
9914 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
9915 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9916 if test "${gl_cv_next_string_h+set}" = set; then
9917 $as_echo_n "(cached) " >&6
9920 if test $ac_cv_header_string_h = yes; then
9921 cat >conftest.$ac_ext <<_ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9930 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9931 sed -n '\#/string.h#{
9932 s#.*"\(.*/string.h\)".*#\1#
9938 gl_cv_next_string_h='<'string.h'>'
9942 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
9943 $as_echo "$gl_cv_next_string_h" >&6; }
9945 NEXT_STRING_H=$gl_cv_next_string_h
9956 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9957 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9958 if test "${ac_cv_header_stat_broken+set}" = set; then
9959 $as_echo_n "(cached) " >&6
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 #include <sys/types.h>
9968 #include <sys/stat.h>
9970 #if defined S_ISBLK && defined S_IFDIR
9971 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9974 #if defined S_ISBLK && defined S_IFCHR
9975 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9978 #if defined S_ISLNK && defined S_IFREG
9979 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9982 #if defined S_ISSOCK && defined S_IFREG
9983 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9994 $as_echo "$ac_try_echo") >&5
9995 (eval "$ac_compile") 2>conftest.er1
9997 grep -v '^ *+' conftest.er1 >conftest.err
9999 cat conftest.err >&5
10000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } && {
10002 test -z "$ac_c_werror_flag" ||
10003 test ! -s conftest.err
10004 } && test -s conftest.$ac_objext; then
10005 ac_cv_header_stat_broken=no
10007 $as_echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_cv_header_stat_broken=yes
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10016 $as_echo "$ac_cv_header_stat_broken" >&6; }
10017 if test $ac_cv_header_stat_broken = yes; then
10019 cat >>confdefs.h <<\_ACEOF
10020 #define STAT_MACROS_BROKEN 1
10031 # Check whether --enable-largefile was given.
10032 if test "${enable_largefile+set}" = set; then
10033 enableval=$enable_largefile;
10036 if test "$enable_largefile" != no; then
10038 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10039 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10040 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10041 $as_echo_n "(cached) " >&6
10043 ac_cv_sys_largefile_CC=no
10044 if test "$GCC" != yes; then
10047 # IRIX 6.2 and later do not support large files by default,
10048 # so use the C compiler's -n32 option if that helps.
10049 cat >conftest.$ac_ext <<_ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10055 #include <sys/types.h>
10056 /* Check that off_t can represent 2**63 - 1 correctly.
10057 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10058 since some C++ compilers masquerading as C compilers
10059 incorrectly reject 9223372036854775807. */
10060 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10062 && LARGE_OFF_T % 2147483647 == 1)
10072 rm -f conftest.$ac_objext
10073 if { (ac_try="$ac_compile"
10074 case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10079 $as_echo "$ac_try_echo") >&5
10080 (eval "$ac_compile") 2>conftest.er1
10082 grep -v '^ *+' conftest.er1 >conftest.err
10084 cat conftest.err >&5
10085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } && {
10087 test -z "$ac_c_werror_flag" ||
10088 test ! -s conftest.err
10089 } && test -s conftest.$ac_objext; then
10092 $as_echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10098 rm -f core conftest.err conftest.$ac_objext
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10107 $as_echo "$ac_try_echo") >&5
10108 (eval "$ac_compile") 2>conftest.er1
10110 grep -v '^ *+' conftest.er1 >conftest.err
10112 cat conftest.err >&5
10113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } && {
10115 test -z "$ac_c_werror_flag" ||
10116 test ! -s conftest.err
10117 } && test -s conftest.$ac_objext; then
10118 ac_cv_sys_largefile_CC=' -n32'; break
10120 $as_echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10126 rm -f core conftest.err conftest.$ac_objext
10130 rm -f conftest.$ac_ext
10133 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10134 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10135 if test "$ac_cv_sys_largefile_CC" != no; then
10136 CC=$CC$ac_cv_sys_largefile_CC
10139 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10140 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10141 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10142 $as_echo_n "(cached) " >&6
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 #include <sys/types.h>
10152 /* Check that off_t can represent 2**63 - 1 correctly.
10153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10154 since some C++ compilers masquerading as C compilers
10155 incorrectly reject 9223372036854775807. */
10156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10158 && LARGE_OFF_T % 2147483647 == 1)
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10175 $as_echo "$ac_try_echo") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10178 grep -v '^ *+' conftest.er1 >conftest.err
10180 cat conftest.err >&5
10181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_cv_sys_file_offset_bits=no; break
10188 $as_echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 #define _FILE_OFFSET_BITS 64
10202 #include <sys/types.h>
10203 /* Check that off_t can represent 2**63 - 1 correctly.
10204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10205 since some C++ compilers masquerading as C compilers
10206 incorrectly reject 9223372036854775807. */
10207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10209 && LARGE_OFF_T % 2147483647 == 1)
10219 rm -f conftest.$ac_objext
10220 if { (ac_try="$ac_compile"
10221 case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10226 $as_echo "$ac_try_echo") >&5
10227 (eval "$ac_compile") 2>conftest.er1
10229 grep -v '^ *+' conftest.er1 >conftest.err
10231 cat conftest.err >&5
10232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } && {
10234 test -z "$ac_c_werror_flag" ||
10235 test ! -s conftest.err
10236 } && test -s conftest.$ac_objext; then
10237 ac_cv_sys_file_offset_bits=64; break
10239 $as_echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10246 ac_cv_sys_file_offset_bits=unknown
10250 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10251 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10252 case $ac_cv_sys_file_offset_bits in #(
10255 cat >>confdefs.h <<_ACEOF
10256 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10261 if test $ac_cv_sys_file_offset_bits = unknown; then
10262 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10263 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10264 if test "${ac_cv_sys_large_files+set}" = set; then
10265 $as_echo_n "(cached) " >&6
10268 cat >conftest.$ac_ext <<_ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 #include <sys/types.h>
10275 /* Check that off_t can represent 2**63 - 1 correctly.
10276 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10277 since some C++ compilers masquerading as C compilers
10278 incorrectly reject 9223372036854775807. */
10279 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10280 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10281 && LARGE_OFF_T % 2147483647 == 1)
10291 rm -f conftest.$ac_objext
10292 if { (ac_try="$ac_compile"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10298 $as_echo "$ac_try_echo") >&5
10299 (eval "$ac_compile") 2>conftest.er1
10301 grep -v '^ *+' conftest.er1 >conftest.err
10303 cat conftest.err >&5
10304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } && {
10306 test -z "$ac_c_werror_flag" ||
10307 test ! -s conftest.err
10308 } && test -s conftest.$ac_objext; then
10309 ac_cv_sys_large_files=no; break
10311 $as_echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 #define _LARGE_FILES 1
10325 #include <sys/types.h>
10326 /* Check that off_t can represent 2**63 - 1 correctly.
10327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10328 since some C++ compilers masquerading as C compilers
10329 incorrectly reject 9223372036854775807. */
10330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10332 && LARGE_OFF_T % 2147483647 == 1)
10342 rm -f conftest.$ac_objext
10343 if { (ac_try="$ac_compile"
10344 case "(($ac_try" in
10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346 *) ac_try_echo=$ac_try;;
10348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10349 $as_echo "$ac_try_echo") >&5
10350 (eval "$ac_compile") 2>conftest.er1
10352 grep -v '^ *+' conftest.er1 >conftest.err
10354 cat conftest.err >&5
10355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } && {
10357 test -z "$ac_c_werror_flag" ||
10358 test ! -s conftest.err
10359 } && test -s conftest.$ac_objext; then
10360 ac_cv_sys_large_files=1; break
10362 $as_echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369 ac_cv_sys_large_files=unknown
10373 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10374 $as_echo "$ac_cv_sys_large_files" >&6; }
10375 case $ac_cv_sys_large_files in #(
10378 cat >>confdefs.h <<_ACEOF
10379 #define _LARGE_FILES $ac_cv_sys_large_files
10392 GNULIB_FTRUNCATE=0;
10394 GNULIB_GETLOGIN_R=0;
10395 GNULIB_GETPAGESIZE=0;
10402 HAVE_GETPAGESIZE=1;
10405 HAVE_DECL_ENVIRON=1;
10406 HAVE_DECL_GETLOGIN_R=1;
10408 HAVE_SYS_PARAM_H=0;
10412 REPLACE_GETPAGESIZE=0;
10424 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
10425 $as_echo_n "checking for EOVERFLOW... " >&6; }
10426 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
10427 $as_echo_n "(cached) " >&6
10430 cat >conftest.$ac_ext <<_ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10444 $EGREP "yes" >/dev/null 2>&1; then
10449 if test -n "$have_eoverflow"; then
10450 ac_cv_decl_EOVERFLOW=yes
10452 cat >conftest.$ac_ext <<_ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10459 #define _XOPEN_SOURCE_EXTENDED 1
10466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10467 $EGREP "yes" >/dev/null 2>&1; then
10472 if test -n "$have_eoverflow"; then
10473 if test "$cross_compiling" = yes; then
10474 # Depending upon the size, compute the lo and hi bounds.
10475 cat >conftest.$ac_ext <<_ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10482 #define _XOPEN_SOURCE_EXTENDED 1
10484 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10486 #include <stdlib.h>
10491 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
10498 rm -f conftest.$ac_objext
10499 if { (ac_try="$ac_compile"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506 (eval "$ac_compile") 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } && {
10513 test -z "$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10515 } && test -s conftest.$ac_objext; then
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10525 #define _XOPEN_SOURCE_EXTENDED 1
10527 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10529 #include <stdlib.h>
10534 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
10541 rm -f conftest.$ac_objext
10542 if { (ac_try="$ac_compile"
10543 case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10548 $as_echo "$ac_try_echo") >&5
10549 (eval "$ac_compile") 2>conftest.er1
10551 grep -v '^ *+' conftest.er1 >conftest.err
10553 cat conftest.err >&5
10554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && {
10556 test -z "$ac_c_werror_flag" ||
10557 test ! -s conftest.err
10558 } && test -s conftest.$ac_objext; then
10559 ac_hi=$ac_mid; break
10561 $as_echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 ac_lo=`expr $ac_mid + 1`
10565 if test $ac_lo -le $ac_mid; then
10569 ac_mid=`expr 2 '*' $ac_mid + 1`
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 $as_echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 cat >conftest.$ac_ext <<_ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10585 #define _XOPEN_SOURCE_EXTENDED 1
10587 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10589 #include <stdlib.h>
10594 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10608 $as_echo "$ac_try_echo") >&5
10609 (eval "$ac_compile") 2>conftest.er1
10611 grep -v '^ *+' conftest.er1 >conftest.err
10613 cat conftest.err >&5
10614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && {
10616 test -z "$ac_c_werror_flag" ||
10617 test ! -s conftest.err
10618 } && test -s conftest.$ac_objext; then
10621 cat >conftest.$ac_ext <<_ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10628 #define _XOPEN_SOURCE_EXTENDED 1
10630 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10632 #include <stdlib.h>
10637 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
10644 rm -f conftest.$ac_objext
10645 if { (ac_try="$ac_compile"
10646 case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10651 $as_echo "$ac_try_echo") >&5
10652 (eval "$ac_compile") 2>conftest.er1
10654 grep -v '^ *+' conftest.er1 >conftest.err
10656 cat conftest.err >&5
10657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } && {
10659 test -z "$ac_c_werror_flag" ||
10660 test ! -s conftest.err
10661 } && test -s conftest.$ac_objext; then
10662 ac_lo=$ac_mid; break
10664 $as_echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_hi=`expr '(' $ac_mid ')' - 1`
10668 if test $ac_mid -le $ac_hi; then
10672 ac_mid=`expr 2 '*' $ac_mid`
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10678 $as_echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 # Binary search between lo and hi bounds.
10689 while test "x$ac_lo" != "x$ac_hi"; do
10690 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10698 #define _XOPEN_SOURCE_EXTENDED 1
10700 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10702 #include <stdlib.h>
10707 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
10714 rm -f conftest.$ac_objext
10715 if { (ac_try="$ac_compile"
10716 case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10721 $as_echo "$ac_try_echo") >&5
10722 (eval "$ac_compile") 2>conftest.er1
10724 grep -v '^ *+' conftest.er1 >conftest.err
10726 cat conftest.err >&5
10727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } && {
10729 test -z "$ac_c_werror_flag" ||
10730 test ! -s conftest.err
10731 } && test -s conftest.$ac_objext; then
10734 $as_echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10737 ac_lo=`expr '(' $ac_mid ')' + 1`
10740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10754 #define _XOPEN_SOURCE_EXTENDED 1
10756 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10758 #include <stdlib.h>
10760 static long int longval () { return EOVERFLOW; }
10761 static unsigned long int ulongval () { return EOVERFLOW; }
10763 #include <stdlib.h>
10768 FILE *f = fopen ("conftest.val", "w");
10771 if ((EOVERFLOW) < 0)
10773 long int i = longval ();
10774 if (i != (EOVERFLOW))
10776 fprintf (f, "%ld", i);
10780 unsigned long int i = ulongval ();
10781 if (i != (EOVERFLOW))
10783 fprintf (f, "%lu", i);
10785 /* Do not output a trailing newline, as this causes \r\n confusion
10786 on some platforms. */
10787 return ferror (f) || fclose (f) != 0;
10793 rm -f conftest$ac_exeext
10794 if { (ac_try="$ac_link"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10800 $as_echo "$ac_try_echo") >&5
10801 (eval "$ac_link") 2>&5
10803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10805 { (case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10810 $as_echo "$ac_try_echo") >&5
10811 (eval "$ac_try") 2>&5
10813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_decl_EOVERFLOW=`cat conftest.val`
10817 $as_echo "$as_me: program exited with status $ac_status" >&5
10818 $as_echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10822 rm -rf conftest.dSYM
10823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10827 ac_cv_decl_EOVERFLOW=E2BIG
10832 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
10833 $as_echo "$ac_cv_decl_EOVERFLOW" >&6; }
10834 if test "$ac_cv_decl_EOVERFLOW" != yes; then
10836 cat >>confdefs.h <<_ACEOF
10837 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
10840 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
10851 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
10852 $as_echo_n "checking for wchar_t... " >&6; }
10853 if test "${gt_cv_c_wchar_t+set}" = set; then
10854 $as_echo_n "(cached) " >&6
10856 cat >conftest.$ac_ext <<_ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h. */
10862 #include <stddef.h>
10863 wchar_t foo = (wchar_t)'\0';
10872 rm -f conftest.$ac_objext
10873 if { (ac_try="$ac_compile"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10879 $as_echo "$ac_try_echo") >&5
10880 (eval "$ac_compile") 2>conftest.er1
10882 grep -v '^ *+' conftest.er1 >conftest.err
10884 cat conftest.err >&5
10885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest.$ac_objext; then
10890 gt_cv_c_wchar_t=yes
10892 $as_echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
10901 $as_echo "$gt_cv_c_wchar_t" >&6; }
10902 if test $gt_cv_c_wchar_t = yes; then
10904 cat >>confdefs.h <<\_ACEOF
10905 #define HAVE_WCHAR_T 1
10911 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
10912 $as_echo_n "checking for wint_t... " >&6; }
10913 if test "${gt_cv_c_wint_t+set}" = set; then
10914 $as_echo_n "(cached) " >&6
10916 cat >conftest.$ac_ext <<_ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10923 wint_t foo = (wchar_t)'\0';
10932 rm -f conftest.$ac_objext
10933 if { (ac_try="$ac_compile"
10934 case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10939 $as_echo "$ac_try_echo") >&5
10940 (eval "$ac_compile") 2>conftest.er1
10942 grep -v '^ *+' conftest.er1 >conftest.err
10944 cat conftest.err >&5
10945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } && {
10947 test -z "$ac_c_werror_flag" ||
10948 test ! -s conftest.err
10949 } && test -s conftest.$ac_objext; then
10952 $as_echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
10961 $as_echo "$gt_cv_c_wint_t" >&6; }
10962 if test $gt_cv_c_wint_t = yes; then
10964 cat >>confdefs.h <<\_ACEOF
10965 #define HAVE_WINT_T 1
10970 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
10971 $as_echo_n "checking for size_t... " >&6; }
10972 if test "${ac_cv_type_size_t+set}" = set; then
10973 $as_echo_n "(cached) " >&6
10975 ac_cv_type_size_t=no
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 $ac_includes_default
10986 if (sizeof (size_t))
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && {
11007 test -z "$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest.$ac_objext; then
11010 cat >conftest.$ac_ext <<_ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 $ac_includes_default
11020 if (sizeof ((size_t)))
11026 rm -f conftest.$ac_objext
11027 if { (ac_try="$ac_compile"
11028 case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11033 $as_echo "$ac_try_echo") >&5
11034 (eval "$ac_compile") 2>conftest.er1
11036 grep -v '^ *+' conftest.er1 >conftest.err
11038 cat conftest.err >&5
11039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } && {
11041 test -z "$ac_c_werror_flag" ||
11042 test ! -s conftest.err
11043 } && test -s conftest.$ac_objext; then
11046 $as_echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 ac_cv_type_size_t=yes
11052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054 $as_echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11063 $as_echo "$ac_cv_type_size_t" >&6; }
11064 if test "x$ac_cv_type_size_t" = x""yes; then
11068 cat >>confdefs.h <<_ACEOF
11069 #define size_t unsigned int
11075 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
11076 $as_echo_n "checking for inttypes.h... " >&6; }
11077 if test "${gl_cv_header_inttypes_h+set}" = set; then
11078 $as_echo_n "(cached) " >&6
11080 cat >conftest.$ac_ext <<_ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 #include <sys/types.h>
11087 #include <inttypes.h>
11091 uintmax_t i = (uintmax_t) -1;
11096 rm -f conftest.$ac_objext
11097 if { (ac_try="$ac_compile"
11098 case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11103 $as_echo "$ac_try_echo") >&5
11104 (eval "$ac_compile") 2>conftest.er1
11106 grep -v '^ *+' conftest.er1 >conftest.err
11108 cat conftest.err >&5
11109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } && {
11111 test -z "$ac_c_werror_flag" ||
11112 test ! -s conftest.err
11113 } && test -s conftest.$ac_objext; then
11114 gl_cv_header_inttypes_h=yes
11116 $as_echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 gl_cv_header_inttypes_h=no
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
11125 $as_echo "$gl_cv_header_inttypes_h" >&6; }
11126 if test $gl_cv_header_inttypes_h = yes; then
11128 cat >>confdefs.h <<_ACEOF
11129 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11135 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
11136 $as_echo_n "checking for stdint.h... " >&6; }
11137 if test "${gl_cv_header_stdint_h+set}" = set; then
11138 $as_echo_n "(cached) " >&6
11140 cat >conftest.$ac_ext <<_ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11146 #include <sys/types.h>
11147 #include <stdint.h>
11151 uintmax_t i = (uintmax_t) -1;
11156 rm -f conftest.$ac_objext
11157 if { (ac_try="$ac_compile"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163 $as_echo "$ac_try_echo") >&5
11164 (eval "$ac_compile") 2>conftest.er1
11166 grep -v '^ *+' conftest.er1 >conftest.err
11168 cat conftest.err >&5
11169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } && {
11171 test -z "$ac_c_werror_flag" ||
11172 test ! -s conftest.err
11173 } && test -s conftest.$ac_objext; then
11174 gl_cv_header_stdint_h=yes
11176 $as_echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 gl_cv_header_stdint_h=no
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11184 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
11185 $as_echo "$gl_cv_header_stdint_h" >&6; }
11186 if test $gl_cv_header_stdint_h = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189 #define HAVE_STDINT_H_WITH_UINTMAX 1
11197 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
11198 $as_echo_n "checking for intmax_t... " >&6; }
11199 if test "${gt_cv_c_intmax_t+set}" = set; then
11200 $as_echo_n "(cached) " >&6
11202 cat >conftest.$ac_ext <<_ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11209 #include <stddef.h>
11210 #include <stdlib.h>
11211 #if HAVE_STDINT_H_WITH_UINTMAX
11212 #include <stdint.h>
11214 #if HAVE_INTTYPES_H_WITH_UINTMAX
11215 #include <inttypes.h>
11221 intmax_t x = -1; return !x;
11226 rm -f conftest.$ac_objext
11227 if { (ac_try="$ac_compile"
11228 case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11233 $as_echo "$ac_try_echo") >&5
11234 (eval "$ac_compile") 2>conftest.er1
11236 grep -v '^ *+' conftest.er1 >conftest.err
11238 cat conftest.err >&5
11239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } && {
11241 test -z "$ac_c_werror_flag" ||
11242 test ! -s conftest.err
11243 } && test -s conftest.$ac_objext; then
11244 gt_cv_c_intmax_t=yes
11246 $as_echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11249 gt_cv_c_intmax_t=no
11252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
11255 $as_echo "$gt_cv_c_intmax_t" >&6; }
11256 if test $gt_cv_c_intmax_t = yes; then
11258 cat >>confdefs.h <<\_ACEOF
11259 #define HAVE_INTMAX_T 1
11264 test $ac_cv_type_long_long_int = yes \
11265 && ac_type='long long' \
11268 cat >>confdefs.h <<_ACEOF
11269 #define intmax_t $ac_type
11276 HAVE_DECL_WCWIDTH=1;
11283 GL_COND_LIBTOOL_TRUE=
11284 GL_COND_LIBTOOL_FALSE='#'
11286 GL_COND_LIBTOOL_TRUE='#'
11287 GL_COND_LIBTOOL_FALSE=
11290 gl_cond_libtool=true
11294 gl_source_base='gnulib'
11300 if test $ac_cv_func_alloca_works = no; then
11304 # Define an additional variable used in the Makefile substitution.
11305 if test $ac_cv_working_alloca_h = yes; then
11306 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
11307 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11308 if test "${gl_cv_rpl_alloca+set}" = set; then
11309 $as_echo_n "(cached) " >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11319 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11325 $EGREP "Need own alloca" >/dev/null 2>&1; then
11326 gl_cv_rpl_alloca=yes
11328 gl_cv_rpl_alloca=no
11334 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
11335 $as_echo "$gl_cv_rpl_alloca" >&6; }
11336 if test $gl_cv_rpl_alloca = yes; then
11338 cat >>confdefs.h <<\_ACEOF
11339 #define HAVE_ALLOCA 1
11359 if test $ac_cv_header_arpa_inet_h = yes; then
11362 ARPA_INET_H='arpa/inet.h'
11366 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11367 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11368 if test -z "$MKDIR_P"; then
11369 if test "${ac_cv_path_mkdir+set}" = set; then
11370 $as_echo_n "(cached) " >&6
11372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11376 test -z "$as_dir" && as_dir=.
11377 for ac_prog in mkdir gmkdir; do
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11380 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11381 'mkdir (GNU coreutils) '* | \
11382 'mkdir (coreutils) '* | \
11383 'mkdir (fileutils) '4.1*)
11384 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11394 if test "${ac_cv_path_mkdir+set}" = set; then
11395 MKDIR_P="$ac_cv_path_mkdir -p"
11397 # As a last resort, use the slow shell script. Don't cache a
11398 # value for MKDIR_P within a source directory, because that will
11399 # break other packages using the cache if that directory is
11400 # removed, or if the value is a relative name.
11401 test -d ./--version && rmdir ./--version
11402 MKDIR_P="$ac_install_sh -d"
11405 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11406 $as_echo "$MKDIR_P" >&6; }
11432 if test $gl_cv_have_include_next = yes; then
11433 gl_cv_next_float_h='<'float.h'>'
11435 { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
11436 $as_echo_n "checking absolute name of <float.h>... " >&6; }
11437 if test "${gl_cv_next_float_h+set}" = set; then
11438 $as_echo_n "(cached) " >&6
11441 if test $ac_cv_header_float_h = yes; then
11442 cat >conftest.$ac_ext <<_ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11451 gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11452 sed -n '\#/float.h#{
11453 s#.*"\(.*/float.h\)".*#\1#
11459 gl_cv_next_float_h='<'float.h'>'
11463 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
11464 $as_echo "$gl_cv_next_float_h" >&6; }
11466 NEXT_FLOAT_H=$gl_cv_next_float_h
11493 for ac_header in sys/mount.h
11495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11497 $as_echo_n "checking for $ac_header... " >&6; }
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499 $as_echo_n "(cached) " >&6
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 $ac_includes_default
11508 #if HAVE_SYS_PARAM_H
11509 #include <sys/param.h>
11512 #include <$ac_header>
11514 rm -f conftest.$ac_objext
11515 if { (ac_try="$ac_compile"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11521 $as_echo "$ac_try_echo") >&5
11522 (eval "$ac_compile") 2>conftest.er1
11524 grep -v '^ *+' conftest.er1 >conftest.err
11526 cat conftest.err >&5
11527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } && {
11529 test -z "$ac_c_werror_flag" ||
11530 test ! -s conftest.err
11531 } && test -s conftest.$ac_objext; then
11532 eval "$as_ac_Header=yes"
11534 $as_echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 eval "$as_ac_Header=no"
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542 ac_res=`eval 'as_val=${'$as_ac_Header'}
11543 $as_echo "$as_val"'`
11544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11545 $as_echo "$ac_res" >&6; }
11546 as_val=`eval 'as_val=${'$as_ac_Header'}
11547 $as_echo "$as_val"'`
11548 if test "x$as_val" = x""yes; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11559 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
11560 $as_echo "$as_me: checking how to get file system space usage" >&6;}
11561 ac_fsusage_space=no
11563 # Perform only the link test since it seems there are no variants of the
11564 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11565 # because that got a false positive on SCO OSR5. Adding the declaration
11566 # of a `struct statvfs' causes this test to fail (as it should) on such
11567 # systems. That system is reported to work fine with STAT_STATFS4 which
11568 # is what it gets when this test fails.
11569 if test $ac_fsusage_space = no; then
11571 { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
11572 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
11573 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
11574 $as_echo_n "(cached) " >&6
11576 cat >conftest.$ac_ext <<_ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 #include <sys/types.h>
11583 #if defined __GLIBC__ && !defined __BEOS__
11584 Do not use statvfs on systems with GNU libc, because that function stats
11585 all preceding entries in /proc/mounts, and that makes df hang if even
11586 one of the corresponding file systems is hard-mounted, but not available.
11587 statvfs in GNU libc on BeOS operates differently: it only makes a system
11592 "Do not use Tru64's statvfs implementation"
11595 #include <sys/statvfs.h>
11599 struct statvfs fsd; statvfs (0, &fsd);
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (ac_try="$ac_link"
11606 case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11611 $as_echo "$ac_try_echo") >&5
11612 (eval "$ac_link") 2>conftest.er1
11614 grep -v '^ *+' conftest.er1 >conftest.err
11616 cat conftest.err >&5
11617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } && {
11619 test -z "$ac_c_werror_flag" ||
11620 test ! -s conftest.err
11621 } && test -s conftest$ac_exeext && {
11622 test "$cross_compiling" = yes ||
11623 $as_test_x conftest$ac_exeext
11625 fu_cv_sys_stat_statvfs=yes
11627 $as_echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 fu_cv_sys_stat_statvfs=no
11633 rm -rf conftest.dSYM
11634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11635 conftest$ac_exeext conftest.$ac_ext
11637 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
11638 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
11639 if test $fu_cv_sys_stat_statvfs = yes; then
11640 ac_fsusage_space=yes
11642 cat >>confdefs.h <<\_ACEOF
11643 #define STAT_STATVFS 1
11649 if test $ac_fsusage_space = no; then
11650 # DEC Alpha running OSF/1
11651 { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
11652 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
11653 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
11654 $as_echo_n "(cached) " >&6
11656 if test "$cross_compiling" = yes; then
11657 fu_cv_sys_stat_statfs3_osf1=no
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11666 #include <sys/param.h>
11667 #include <sys/types.h>
11668 #include <sys/mount.h>
11674 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
11677 rm -f conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11684 $as_echo "$ac_try_echo") >&5
11685 (eval "$ac_link") 2>&5
11687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11689 { (case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11694 $as_echo "$ac_try_echo") >&5
11695 (eval "$ac_try") 2>&5
11697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }; then
11699 fu_cv_sys_stat_statfs3_osf1=yes
11701 $as_echo "$as_me: program exited with status $ac_status" >&5
11702 $as_echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ( exit $ac_status )
11706 fu_cv_sys_stat_statfs3_osf1=no
11708 rm -rf conftest.dSYM
11709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11715 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
11716 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
11717 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11718 ac_fsusage_space=yes
11720 cat >>confdefs.h <<\_ACEOF
11721 #define STAT_STATFS3_OSF1 1
11727 if test $ac_fsusage_space = no; then
11729 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11730 $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
11731 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
11732 $as_echo_n "(cached) " >&6
11734 if test "$cross_compiling" = yes; then
11735 fu_cv_sys_stat_statfs2_bsize=no
11737 cat >conftest.$ac_ext <<_ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11744 #ifdef HAVE_SYS_PARAM_H
11745 #include <sys/param.h>
11747 #ifdef HAVE_SYS_MOUNT_H
11748 #include <sys/mount.h>
11750 #ifdef HAVE_SYS_VFS_H
11751 #include <sys/vfs.h>
11758 return statfs (".", &fsd) != 0;
11761 rm -f conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11768 $as_echo "$ac_try_echo") >&5
11769 (eval "$ac_link") 2>&5
11771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11773 { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11778 $as_echo "$ac_try_echo") >&5
11779 (eval "$ac_try") 2>&5
11781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 fu_cv_sys_stat_statfs2_bsize=yes
11785 $as_echo "$as_me: program exited with status $ac_status" >&5
11786 $as_echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 ( exit $ac_status )
11790 fu_cv_sys_stat_statfs2_bsize=no
11792 rm -rf conftest.dSYM
11793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11799 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
11800 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
11801 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11802 ac_fsusage_space=yes
11804 cat >>confdefs.h <<\_ACEOF
11805 #define STAT_STATFS2_BSIZE 1
11811 if test $ac_fsusage_space = no; then
11813 { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11814 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
11815 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
11816 $as_echo_n "(cached) " >&6
11818 if test "$cross_compiling" = yes; then
11819 fu_cv_sys_stat_statfs4=no
11821 cat >conftest.$ac_ext <<_ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 #include <sys/types.h>
11828 #include <sys/statfs.h>
11833 return statfs (".", &fsd, sizeof fsd, 0) != 0;
11836 rm -f conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11843 $as_echo "$ac_try_echo") >&5
11844 (eval "$ac_link") 2>&5
11846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853 $as_echo "$ac_try_echo") >&5
11854 (eval "$ac_try") 2>&5
11856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 fu_cv_sys_stat_statfs4=yes
11860 $as_echo "$as_me: program exited with status $ac_status" >&5
11861 $as_echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 ( exit $ac_status )
11865 fu_cv_sys_stat_statfs4=no
11867 rm -rf conftest.dSYM
11868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11874 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
11875 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
11876 if test $fu_cv_sys_stat_statfs4 = yes; then
11877 ac_fsusage_space=yes
11879 cat >>confdefs.h <<\_ACEOF
11880 #define STAT_STATFS4 1
11886 if test $ac_fsusage_space = no; then
11887 # 4.4BSD and NetBSD
11888 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11889 $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
11890 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
11891 $as_echo_n "(cached) " >&6
11893 if test "$cross_compiling" = yes; then
11894 fu_cv_sys_stat_statfs2_fsize=no
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 #include <sys/types.h>
11903 #ifdef HAVE_SYS_PARAM_H
11904 #include <sys/param.h>
11906 #ifdef HAVE_SYS_MOUNT_H
11907 #include <sys/mount.h>
11914 return statfs (".", &fsd) != 0;
11917 rm -f conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11924 $as_echo "$ac_try_echo") >&5
11925 (eval "$ac_link") 2>&5
11927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11934 $as_echo "$ac_try_echo") >&5
11935 (eval "$ac_try") 2>&5
11937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 fu_cv_sys_stat_statfs2_fsize=yes
11941 $as_echo "$as_me: program exited with status $ac_status" >&5
11942 $as_echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ( exit $ac_status )
11946 fu_cv_sys_stat_statfs2_fsize=no
11948 rm -rf conftest.dSYM
11949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11955 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
11956 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
11957 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11958 ac_fsusage_space=yes
11960 cat >>confdefs.h <<\_ACEOF
11961 #define STAT_STATFS2_FSIZE 1
11967 if test $ac_fsusage_space = no; then
11969 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11970 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
11971 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
11972 $as_echo_n "(cached) " >&6
11974 if test "$cross_compiling" = yes; then
11975 fu_cv_sys_stat_fs_data=no
11977 cat >conftest.$ac_ext <<_ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 #include <sys/types.h>
11984 #ifdef HAVE_SYS_PARAM_H
11985 #include <sys/param.h>
11987 #ifdef HAVE_SYS_MOUNT_H
11988 #include <sys/mount.h>
11990 #ifdef HAVE_SYS_FS_TYPES_H
11991 #include <sys/fs_types.h>
11996 struct fs_data fsd;
11997 /* Ultrix's statfs returns 1 for success,
11998 0 for not mounted, -1 for failure. */
11999 return statfs (".", &fsd) != 1;
12002 rm -f conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_link") 2>&5
12012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12014 { (case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12019 $as_echo "$ac_try_echo") >&5
12020 (eval "$ac_try") 2>&5
12022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 fu_cv_sys_stat_fs_data=yes
12026 $as_echo "$as_me: program exited with status $ac_status" >&5
12027 $as_echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 ( exit $ac_status )
12031 fu_cv_sys_stat_fs_data=no
12033 rm -rf conftest.dSYM
12034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12040 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
12041 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
12042 if test $fu_cv_sys_stat_fs_data = yes; then
12043 ac_fsusage_space=yes
12045 cat >>confdefs.h <<\_ACEOF
12046 #define STAT_STATFS2_FS_DATA 1
12052 if test $ac_fsusage_space = no; then
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 #include <sys/filsys.h>
12063 if { (ac_try="$ac_cpp conftest.$ac_ext"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12069 $as_echo "$ac_try_echo") >&5
12070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12072 grep -v '^ *+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } >/dev/null && {
12077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12078 test ! -s conftest.err
12081 cat >>confdefs.h <<\_ACEOF
12082 #define STAT_READ_FILSYS 1
12085 ac_fsusage_space=yes
12087 $as_echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12093 rm -f conftest.err conftest.$ac_ext
12096 if test $ac_fsusage_space = yes; then
12104 if test $gl_cv_fs_space = yes; then
12112 gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
12119 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
12121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12124 $as_echo_n "checking for $ac_header... " >&6; }
12125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12126 $as_echo_n "(cached) " >&6
12128 ac_res=`eval 'as_val=${'$as_ac_Header'}
12129 $as_echo "$as_val"'`
12130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12131 $as_echo "$ac_res" >&6; }
12133 # Is the header compilable?
12134 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12135 $as_echo_n "checking $ac_header usability... " >&6; }
12136 cat >conftest.$ac_ext <<_ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 $ac_includes_default
12143 #include <$ac_header>
12145 rm -f conftest.$ac_objext
12146 if { (ac_try="$ac_compile"
12147 case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12152 $as_echo "$ac_try_echo") >&5
12153 (eval "$ac_compile") 2>conftest.er1
12155 grep -v '^ *+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && {
12160 test -z "$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 } && test -s conftest.$ac_objext; then
12163 ac_header_compiler=yes
12165 $as_echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12168 ac_header_compiler=no
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12173 $as_echo "$ac_header_compiler" >&6; }
12175 # Is the header present?
12176 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12177 $as_echo_n "checking $ac_header presence... " >&6; }
12178 cat >conftest.$ac_ext <<_ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 #include <$ac_header>
12186 if { (ac_try="$ac_cpp conftest.$ac_ext"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12192 $as_echo "$ac_try_echo") >&5
12193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12195 grep -v '^ *+' conftest.er1 >conftest.err
12197 cat conftest.err >&5
12198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } >/dev/null && {
12200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12201 test ! -s conftest.err
12203 ac_header_preproc=yes
12205 $as_echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ac_header_preproc=no
12211 rm -f conftest.err conftest.$ac_ext
12212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12213 $as_echo "$ac_header_preproc" >&6; }
12215 # So? What about this header?
12216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12219 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12222 ac_header_preproc=yes
12225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12226 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12228 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12230 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12232 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12236 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12241 $as_echo_n "checking for $ac_header... " >&6; }
12242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12243 $as_echo_n "(cached) " >&6
12245 eval "$as_ac_Header=\$ac_header_preproc"
12247 ac_res=`eval 'as_val=${'$as_ac_Header'}
12248 $as_echo "$as_val"'`
12249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12250 $as_echo "$ac_res" >&6; }
12253 as_val=`eval 'as_val=${'$as_ac_Header'}
12254 $as_echo "$as_val"'`
12255 if test "x$as_val" = x""yes; then
12256 cat >>confdefs.h <<_ACEOF
12257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12265 { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
12266 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
12267 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
12268 $as_echo_n "(cached) " >&6
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12277 #if !defined(sun) && !defined(__sun)
12278 choke -- this is a workaround for a Sun-specific problem
12280 #include <sys/types.h>
12281 #include <sys/vfs.h>
12285 struct statfs t; long c = *(t.f_spare);
12291 rm -f conftest.$ac_objext
12292 if { (ac_try="$ac_compile"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12298 $as_echo "$ac_try_echo") >&5
12299 (eval "$ac_compile") 2>conftest.er1
12301 grep -v '^ *+' conftest.er1 >conftest.err
12303 cat conftest.err >&5
12304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && {
12306 test -z "$ac_c_werror_flag" ||
12307 test ! -s conftest.err
12308 } && test -s conftest.$ac_objext; then
12309 fu_cv_sys_truncating_statfs=yes
12311 $as_echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 fu_cv_sys_truncating_statfs=no
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 if test $fu_cv_sys_truncating_statfs = yes; then
12322 cat >>confdefs.h <<\_ACEOF
12323 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
12327 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
12328 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
12334 { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
12335 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
12345 { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
12346 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12347 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12348 $as_echo_n "(cached) " >&6
12350 ac_func_search_save_LIBS=$LIBS
12351 cat >conftest.$ac_ext <<_ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12358 /* Override any GCC internal prototype to avoid an error.
12359 Use char because int might match the return type of a GCC
12360 builtin and then its argument prototype would still apply. */
12364 char getaddrinfo ();
12368 return getaddrinfo ();
12373 for ac_lib in '' nsl socket; do
12374 if test -z "$ac_lib"; then
12375 ac_res="none required"
12378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12380 rm -f conftest.$ac_objext conftest$ac_exeext
12381 if { (ac_try="$ac_link"
12382 case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12387 $as_echo "$ac_try_echo") >&5
12388 (eval "$ac_link") 2>conftest.er1
12390 grep -v '^ *+' conftest.er1 >conftest.err
12392 cat conftest.err >&5
12393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && {
12395 test -z "$ac_c_werror_flag" ||
12396 test ! -s conftest.err
12397 } && test -s conftest$ac_exeext && {
12398 test "$cross_compiling" = yes ||
12399 $as_test_x conftest$ac_exeext
12401 ac_cv_search_getaddrinfo=$ac_res
12403 $as_echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12409 rm -rf conftest.dSYM
12410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12412 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12416 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12419 ac_cv_search_getaddrinfo=no
12421 rm conftest.$ac_ext
12422 LIBS=$ac_func_search_save_LIBS
12424 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
12425 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12426 ac_res=$ac_cv_search_getaddrinfo
12427 if test "$ac_res" != no; then
12428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12432 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
12433 $as_echo_n "checking for getaddrinfo... " >&6; }
12434 if test "${gl_cv_func_getaddrinfo+set}" = set; then
12435 $as_echo_n "(cached) " >&6
12438 cat >conftest.$ac_ext <<_ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12445 #include <sys/types.h>
12446 #ifdef HAVE_SYS_SOCKET_H
12447 #include <sys/socket.h>
12449 #ifdef HAVE_NETDB_H
12452 #include <stddef.h>
12457 getaddrinfo("", "", NULL, NULL);
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (ac_try="$ac_link"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12469 $as_echo "$ac_try_echo") >&5
12470 (eval "$ac_link") 2>conftest.er1
12472 grep -v '^ *+' conftest.er1 >conftest.err
12474 cat conftest.err >&5
12475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } && {
12477 test -z "$ac_c_werror_flag" ||
12478 test ! -s conftest.err
12479 } && test -s conftest$ac_exeext && {
12480 test "$cross_compiling" = yes ||
12481 $as_test_x conftest$ac_exeext
12483 gl_cv_func_getaddrinfo=yes
12485 $as_echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 gl_cv_func_getaddrinfo=no
12491 rm -rf conftest.dSYM
12492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12493 conftest$ac_exeext conftest.$ac_ext
12495 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
12496 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
12497 if test $gl_cv_func_getaddrinfo = no; then
12498 { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
12499 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
12500 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
12501 $as_echo_n "(cached) " >&6
12504 gl_cv_w32_getaddrinfo=no
12505 am_save_LIBS="$LIBS"
12506 LIBS="$LIBS -lws2_32"
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12514 #ifdef HAVE_WS2TCPIP_H
12515 #include <ws2tcpip.h>
12517 #include <stddef.h>
12522 getaddrinfo(NULL, NULL, NULL, NULL);
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12534 $as_echo "$ac_try_echo") >&5
12535 (eval "$ac_link") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } && {
12542 test -z "$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12544 } && test -s conftest$ac_exeext && {
12545 test "$cross_compiling" = yes ||
12546 $as_test_x conftest$ac_exeext
12548 gl_cv_w32_getaddrinfo=yes
12550 $as_echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12556 rm -rf conftest.dSYM
12557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12558 conftest$ac_exeext conftest.$ac_ext
12559 LIBS="$am_save_LIBS"
12561 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
12562 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
12563 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
12564 LIBS="$LIBS -lws2_32"
12573 gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
12578 # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
12579 # inline function declared in ws2tcpip.h, so we need to get that
12580 # header included somehow.
12581 { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
12582 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
12583 if test "${gl_cv_func_gai_strerror+set}" = set; then
12584 $as_echo_n "(cached) " >&6
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12594 #include <sys/types.h>
12595 #ifdef HAVE_SYS_SOCKET_H
12596 #include <sys/socket.h>
12598 #ifdef HAVE_NETDB_H
12601 #ifdef HAVE_WS2TCPIP_H
12602 #include <ws2tcpip.h>
12604 #include <stddef.h>
12609 gai_strerror (NULL);
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12621 $as_echo "$ac_try_echo") >&5
12622 (eval "$ac_link") 2>conftest.er1
12624 grep -v '^ *+' conftest.er1 >conftest.err
12626 cat conftest.err >&5
12627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } && {
12629 test -z "$ac_c_werror_flag" ||
12630 test ! -s conftest.err
12631 } && test -s conftest$ac_exeext && {
12632 test "$cross_compiling" = yes ||
12633 $as_test_x conftest$ac_exeext
12635 gl_cv_func_gai_strerror=yes
12637 $as_echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 gl_cv_func_gai_strerror=no
12643 rm -rf conftest.dSYM
12644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12645 conftest$ac_exeext conftest.$ac_ext
12647 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
12648 $as_echo "$gl_cv_func_gai_strerror" >&6; }
12649 if test $gl_cv_func_gai_strerror = no; then
12657 gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
12662 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
12663 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12664 if test "${ac_cv_search_gethostbyname+set}" = set; then
12665 $as_echo_n "(cached) " >&6
12667 ac_func_search_save_LIBS=$LIBS
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12675 /* Override any GCC internal prototype to avoid an error.
12676 Use char because int might match the return type of a GCC
12677 builtin and then its argument prototype would still apply. */
12681 char gethostbyname ();
12685 return gethostbyname ();
12690 for ac_lib in '' inet nsl; do
12691 if test -z "$ac_lib"; then
12692 ac_res="none required"
12695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12704 $as_echo "$ac_try_echo") >&5
12705 (eval "$ac_link") 2>conftest.er1
12707 grep -v '^ *+' conftest.er1 >conftest.err
12709 cat conftest.err >&5
12710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest$ac_exeext && {
12715 test "$cross_compiling" = yes ||
12716 $as_test_x conftest$ac_exeext
12718 ac_cv_search_gethostbyname=$ac_res
12720 $as_echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12726 rm -rf conftest.dSYM
12727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12729 if test "${ac_cv_search_gethostbyname+set}" = set; then
12733 if test "${ac_cv_search_gethostbyname+set}" = set; then
12736 ac_cv_search_gethostbyname=no
12738 rm conftest.$ac_ext
12739 LIBS=$ac_func_search_save_LIBS
12741 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
12742 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12743 ac_res=$ac_cv_search_gethostbyname
12744 if test "$ac_res" != no; then
12745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12749 { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
12750 $as_echo_n "checking for library containing getservbyname... " >&6; }
12751 if test "${ac_cv_search_getservbyname+set}" = set; then
12752 $as_echo_n "(cached) " >&6
12754 ac_func_search_save_LIBS=$LIBS
12755 cat >conftest.$ac_ext <<_ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12762 /* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12768 char getservbyname ();
12772 return getservbyname ();
12777 for ac_lib in '' inet nsl socket xnet; do
12778 if test -z "$ac_lib"; then
12779 ac_res="none required"
12782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (ac_try="$ac_link"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12791 $as_echo "$ac_try_echo") >&5
12792 (eval "$ac_link") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest$ac_exeext && {
12802 test "$cross_compiling" = yes ||
12803 $as_test_x conftest$ac_exeext
12805 ac_cv_search_getservbyname=$ac_res
12807 $as_echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12813 rm -rf conftest.dSYM
12814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12816 if test "${ac_cv_search_getservbyname+set}" = set; then
12820 if test "${ac_cv_search_getservbyname+set}" = set; then
12823 ac_cv_search_getservbyname=no
12825 rm conftest.$ac_ext
12826 LIBS=$ac_func_search_save_LIBS
12828 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
12829 $as_echo "$ac_cv_search_getservbyname" >&6; }
12830 ac_res=$ac_cv_search_getservbyname
12831 if test "$ac_res" != no; then
12832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12837 for ac_func in gethostbyname
12839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12841 $as_echo_n "checking for $ac_func... " >&6; }
12842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12843 $as_echo_n "(cached) " >&6
12845 cat >conftest.$ac_ext <<_ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12853 #define $ac_func innocuous_$ac_func
12855 /* System header to define __stub macros and hopefully few prototypes,
12856 which can conflict with char $ac_func (); below.
12857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12858 <limits.h> exists even on freestanding compilers. */
12861 # include <limits.h>
12863 # include <assert.h>
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12875 /* The GNU C library defines this for functions which it implements
12876 to always fail with ENOSYS. Some functions are actually named
12877 something starting with __ and the normal name is an alias. */
12878 #if defined __stub_$ac_func || defined __stub___$ac_func
12885 return $ac_func ();
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (ac_try="$ac_link"
12892 case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12897 $as_echo "$ac_try_echo") >&5
12898 (eval "$ac_link") 2>conftest.er1
12900 grep -v '^ *+' conftest.er1 >conftest.err
12902 cat conftest.err >&5
12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } && {
12905 test -z "$ac_c_werror_flag" ||
12906 test ! -s conftest.err
12907 } && test -s conftest$ac_exeext && {
12908 test "$cross_compiling" = yes ||
12909 $as_test_x conftest$ac_exeext
12911 eval "$as_ac_var=yes"
12913 $as_echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 eval "$as_ac_var=no"
12919 rm -rf conftest.dSYM
12920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12921 conftest$ac_exeext conftest.$ac_ext
12923 ac_res=`eval 'as_val=${'$as_ac_var'}
12924 $as_echo "$as_val"'`
12925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12926 $as_echo "$ac_res" >&6; }
12927 as_val=`eval 'as_val=${'$as_ac_var'}
12928 $as_echo "$as_val"'`
12929 if test "x$as_val" = x""yes; then
12930 cat >>confdefs.h <<_ACEOF
12931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12936 { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
12937 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
12938 if test "${gl_cv_w32_gethostbyname+set}" = set; then
12939 $as_echo_n "(cached) " >&6
12942 gl_cv_w32_gethostbyname=no
12943 am_save_LIBS="$LIBS"
12944 LIBS="$LIBS -lws2_32"
12945 cat >conftest.$ac_ext <<_ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12952 #ifdef HAVE_WINSOCK2_H
12953 #include <winsock2.h>
12955 #include <stddef.h>
12960 gethostbyname(NULL);
12965 rm -f conftest.$ac_objext conftest$ac_exeext
12966 if { (ac_try="$ac_link"
12967 case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12972 $as_echo "$ac_try_echo") >&5
12973 (eval "$ac_link") 2>conftest.er1
12975 grep -v '^ *+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && {
12980 test -z "$ac_c_werror_flag" ||
12981 test ! -s conftest.err
12982 } && test -s conftest$ac_exeext && {
12983 test "$cross_compiling" = yes ||
12984 $as_test_x conftest$ac_exeext
12986 gl_cv_w32_gethostbyname=yes
12988 $as_echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12994 rm -rf conftest.dSYM
12995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12996 conftest$ac_exeext conftest.$ac_ext
12997 LIBS="$am_save_LIBS"
12999 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
13000 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
13001 if test "$gl_cv_w32_gethostbyname" = "yes"; then
13002 LIBS="$LIBS -lws2_32"
13023 { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
13024 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
13025 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
13026 $as_echo_n "(cached) " >&6
13028 cat >conftest.$ac_ext <<_ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13035 /* sys/types.h is not needed according to POSIX, but the
13036 sys/socket.h in i386-unknown-freebsd4.10 and
13037 powerpc-apple-darwin5.5 required it. */
13038 #include <sys/types.h>
13039 #ifdef HAVE_SYS_SOCKET_H
13040 #include <sys/socket.h>
13042 #ifdef HAVE_NETDB_H
13045 #ifdef HAVE_WS2TCPIP_H
13046 #include <ws2tcpip.h>
13053 #ifndef getaddrinfo
13054 (void) getaddrinfo;
13061 rm -f conftest.$ac_objext
13062 if { (ac_try="$ac_compile"
13063 case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13068 $as_echo "$ac_try_echo") >&5
13069 (eval "$ac_compile") 2>conftest.er1
13071 grep -v '^ *+' conftest.er1 >conftest.err
13073 cat conftest.err >&5
13074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } && {
13076 test -z "$ac_c_werror_flag" ||
13077 test ! -s conftest.err
13078 } && test -s conftest.$ac_objext; then
13079 ac_cv_have_decl_getaddrinfo=yes
13081 $as_echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 ac_cv_have_decl_getaddrinfo=no
13087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
13090 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
13091 if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
13093 cat >>confdefs.h <<_ACEOF
13094 #define HAVE_DECL_GETADDRINFO 1
13099 cat >>confdefs.h <<_ACEOF
13100 #define HAVE_DECL_GETADDRINFO 0
13105 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
13106 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
13107 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
13108 $as_echo_n "(cached) " >&6
13110 cat >conftest.$ac_ext <<_ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13117 /* sys/types.h is not needed according to POSIX, but the
13118 sys/socket.h in i386-unknown-freebsd4.10 and
13119 powerpc-apple-darwin5.5 required it. */
13120 #include <sys/types.h>
13121 #ifdef HAVE_SYS_SOCKET_H
13122 #include <sys/socket.h>
13124 #ifdef HAVE_NETDB_H
13127 #ifdef HAVE_WS2TCPIP_H
13128 #include <ws2tcpip.h>
13135 #ifndef freeaddrinfo
13136 (void) freeaddrinfo;
13143 rm -f conftest.$ac_objext
13144 if { (ac_try="$ac_compile"
13145 case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13150 $as_echo "$ac_try_echo") >&5
13151 (eval "$ac_compile") 2>conftest.er1
13153 grep -v '^ *+' conftest.er1 >conftest.err
13155 cat conftest.err >&5
13156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } && {
13158 test -z "$ac_c_werror_flag" ||
13159 test ! -s conftest.err
13160 } && test -s conftest.$ac_objext; then
13161 ac_cv_have_decl_freeaddrinfo=yes
13163 $as_echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_cv_have_decl_freeaddrinfo=no
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13171 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
13172 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
13173 if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_DECL_FREEADDRINFO 1
13181 cat >>confdefs.h <<_ACEOF
13182 #define HAVE_DECL_FREEADDRINFO 0
13187 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
13188 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
13189 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
13190 $as_echo_n "(cached) " >&6
13192 cat >conftest.$ac_ext <<_ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13199 /* sys/types.h is not needed according to POSIX, but the
13200 sys/socket.h in i386-unknown-freebsd4.10 and
13201 powerpc-apple-darwin5.5 required it. */
13202 #include <sys/types.h>
13203 #ifdef HAVE_SYS_SOCKET_H
13204 #include <sys/socket.h>
13206 #ifdef HAVE_NETDB_H
13209 #ifdef HAVE_WS2TCPIP_H
13210 #include <ws2tcpip.h>
13217 #ifndef gai_strerror
13218 (void) gai_strerror;
13225 rm -f conftest.$ac_objext
13226 if { (ac_try="$ac_compile"
13227 case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13232 $as_echo "$ac_try_echo") >&5
13233 (eval "$ac_compile") 2>conftest.er1
13235 grep -v '^ *+' conftest.er1 >conftest.err
13237 cat conftest.err >&5
13238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } && {
13240 test -z "$ac_c_werror_flag" ||
13241 test ! -s conftest.err
13242 } && test -s conftest.$ac_objext; then
13243 ac_cv_have_decl_gai_strerror=yes
13245 $as_echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 ac_cv_have_decl_gai_strerror=no
13251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
13254 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
13255 if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
13257 cat >>confdefs.h <<_ACEOF
13258 #define HAVE_DECL_GAI_STRERROR 1
13263 cat >>confdefs.h <<_ACEOF
13264 #define HAVE_DECL_GAI_STRERROR 0
13269 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
13270 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
13271 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
13272 $as_echo_n "(cached) " >&6
13274 cat >conftest.$ac_ext <<_ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13281 /* sys/types.h is not needed according to POSIX, but the
13282 sys/socket.h in i386-unknown-freebsd4.10 and
13283 powerpc-apple-darwin5.5 required it. */
13284 #include <sys/types.h>
13285 #ifdef HAVE_SYS_SOCKET_H
13286 #include <sys/socket.h>
13288 #ifdef HAVE_NETDB_H
13291 #ifdef HAVE_WS2TCPIP_H
13292 #include <ws2tcpip.h>
13299 #ifndef getnameinfo
13300 (void) getnameinfo;
13307 rm -f conftest.$ac_objext
13308 if { (ac_try="$ac_compile"
13309 case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13314 $as_echo "$ac_try_echo") >&5
13315 (eval "$ac_compile") 2>conftest.er1
13317 grep -v '^ *+' conftest.er1 >conftest.err
13319 cat conftest.err >&5
13320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } && {
13322 test -z "$ac_c_werror_flag" ||
13323 test ! -s conftest.err
13324 } && test -s conftest.$ac_objext; then
13325 ac_cv_have_decl_getnameinfo=yes
13327 $as_echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 ac_cv_have_decl_getnameinfo=no
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
13336 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
13337 if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
13339 cat >>confdefs.h <<_ACEOF
13340 #define HAVE_DECL_GETNAMEINFO 1
13345 cat >>confdefs.h <<_ACEOF
13346 #define HAVE_DECL_GETNAMEINFO 0
13353 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13354 $as_echo_n "checking for struct addrinfo... " >&6; }
13355 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13356 $as_echo_n "(cached) " >&6
13358 ac_cv_type_struct_addrinfo=no
13359 cat >conftest.$ac_ext <<_ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13366 #include <sys/types.h>
13367 #ifdef HAVE_SYS_SOCKET_H
13368 #include <sys/socket.h>
13370 #ifdef HAVE_NETDB_H
13373 #ifdef HAVE_WS2TCPIP_H
13374 #include <ws2tcpip.h>
13381 if (sizeof (struct addrinfo))
13387 rm -f conftest.$ac_objext
13388 if { (ac_try="$ac_compile"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13394 $as_echo "$ac_try_echo") >&5
13395 (eval "$ac_compile") 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_c_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest.$ac_objext; then
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13412 #include <sys/types.h>
13413 #ifdef HAVE_SYS_SOCKET_H
13414 #include <sys/socket.h>
13416 #ifdef HAVE_NETDB_H
13419 #ifdef HAVE_WS2TCPIP_H
13420 #include <ws2tcpip.h>
13427 if (sizeof ((struct addrinfo)))
13433 rm -f conftest.$ac_objext
13434 if { (ac_try="$ac_compile"
13435 case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13440 $as_echo "$ac_try_echo") >&5
13441 (eval "$ac_compile") 2>conftest.er1
13443 grep -v '^ *+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } && {
13448 test -z "$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13450 } && test -s conftest.$ac_objext; then
13453 $as_echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13456 ac_cv_type_struct_addrinfo=yes
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461 $as_echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13470 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
13471 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
13473 cat >>confdefs.h <<_ACEOF
13474 #define HAVE_STRUCT_ADDRINFO 1
13484 if test -n "$GETOPT_H"; then
13493 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13502 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13507 cat >>confdefs.h <<\_ACEOF
13508 #define __GETOPT_PREFIX rpl_
13539 { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
13540 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13541 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
13542 $as_echo_n "(cached) " >&6
13544 cat >conftest.$ac_ext <<_ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13550 #include <sys/time.h>
13557 int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
13559 return !(x | c.tv_sec | c.tv_usec);
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13572 $as_echo "$ac_try_echo") >&5
13573 (eval "$ac_compile") 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
13577 cat conftest.err >&5
13578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } && {
13580 test -z "$ac_c_werror_flag" ||
13581 test ! -s conftest.err
13582 } && test -s conftest.$ac_objext; then
13583 gl_cv_func_gettimeofday_posix_signature=yes
13585 $as_echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 gl_cv_func_gettimeofday_posix_signature=no
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13594 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13599 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
13600 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13601 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
13602 $as_echo_n "(cached) " >&6
13604 if test "$cross_compiling" = yes; then
13605 gl_cv_func_gettimeofday_clobber=yes
13607 cat >conftest.$ac_ext <<_ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h. */
13613 #include <string.h>
13614 #include <sys/time.h>
13616 #include <stdlib.h>
13624 struct tm saved_lt;
13626 lt = localtime (&t);
13628 gettimeofday (&tv, NULL);
13629 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13635 rm -f conftest$ac_exeext
13636 if { (ac_try="$ac_link"
13637 case "(($ac_try" in
13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13642 $as_echo "$ac_try_echo") >&5
13643 (eval "$ac_link") 2>&5
13645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13647 { (case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13652 $as_echo "$ac_try_echo") >&5
13653 (eval "$ac_try") 2>&5
13655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 gl_cv_func_gettimeofday_clobber=no
13659 $as_echo "$as_me: program exited with status $ac_status" >&5
13660 $as_echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13663 ( exit $ac_status )
13664 gl_cv_func_gettimeofday_clobber=yes
13666 rm -rf conftest.dSYM
13667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13672 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
13673 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13675 if test $gl_cv_func_gettimeofday_clobber = yes; then
13676 REPLACE_GETTIMEOFDAY=1
13677 SYS_TIME_H=sys/time.h
13686 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13690 for ac_header in sys/timeb.h
13692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13695 $as_echo_n "checking for $ac_header... " >&6; }
13696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697 $as_echo_n "(cached) " >&6
13699 ac_res=`eval 'as_val=${'$as_ac_Header'}
13700 $as_echo "$as_val"'`
13701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13702 $as_echo "$ac_res" >&6; }
13704 # Is the header compilable?
13705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13706 $as_echo_n "checking $ac_header usability... " >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 $ac_includes_default
13714 #include <$ac_header>
13716 rm -f conftest.$ac_objext
13717 if { (ac_try="$ac_compile"
13718 case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13723 $as_echo "$ac_try_echo") >&5
13724 (eval "$ac_compile") 2>conftest.er1
13726 grep -v '^ *+' conftest.er1 >conftest.err
13728 cat conftest.err >&5
13729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } && {
13731 test -z "$ac_c_werror_flag" ||
13732 test ! -s conftest.err
13733 } && test -s conftest.$ac_objext; then
13734 ac_header_compiler=yes
13736 $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13739 ac_header_compiler=no
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13744 $as_echo "$ac_header_compiler" >&6; }
13746 # Is the header present?
13747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13748 $as_echo_n "checking $ac_header presence... " >&6; }
13749 cat >conftest.$ac_ext <<_ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13755 #include <$ac_header>
13757 if { (ac_try="$ac_cpp conftest.$ac_ext"
13758 case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13763 $as_echo "$ac_try_echo") >&5
13764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev/null && {
13771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13774 ac_header_preproc=yes
13776 $as_echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_header_preproc=no
13782 rm -f conftest.err conftest.$ac_ext
13783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784 $as_echo "$ac_header_preproc" >&6; }
13786 # So? What about this header?
13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793 ac_header_preproc=yes
13796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13799 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13803 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13812 $as_echo_n "checking for $ac_header... " >&6; }
13813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13814 $as_echo_n "(cached) " >&6
13816 eval "$as_ac_Header=\$ac_header_preproc"
13818 ac_res=`eval 'as_val=${'$as_ac_Header'}
13819 $as_echo "$as_val"'`
13820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13821 $as_echo "$ac_res" >&6; }
13824 as_val=`eval 'as_val=${'$as_ac_Header'}
13825 $as_echo "$as_val"'`
13826 if test "x$as_val" = x""yes; then
13827 cat >>confdefs.h <<_ACEOF
13828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13836 for ac_func in _ftime
13838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13840 $as_echo_n "checking for $ac_func... " >&6; }
13841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13842 $as_echo_n "(cached) " >&6
13844 cat >conftest.$ac_ext <<_ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13852 #define $ac_func innocuous_$ac_func
13854 /* System header to define __stub macros and hopefully few prototypes,
13855 which can conflict with char $ac_func (); below.
13856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13857 <limits.h> exists even on freestanding compilers. */
13860 # include <limits.h>
13862 # include <assert.h>
13867 /* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13874 /* The GNU C library defines this for functions which it implements
13875 to always fail with ENOSYS. Some functions are actually named
13876 something starting with __ and the normal name is an alias. */
13877 #if defined __stub_$ac_func || defined __stub___$ac_func
13884 return $ac_func ();
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890 if { (ac_try="$ac_link"
13891 case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13896 $as_echo "$ac_try_echo") >&5
13897 (eval "$ac_link") 2>conftest.er1
13899 grep -v '^ *+' conftest.er1 >conftest.err
13901 cat conftest.err >&5
13902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && {
13904 test -z "$ac_c_werror_flag" ||
13905 test ! -s conftest.err
13906 } && test -s conftest$ac_exeext && {
13907 test "$cross_compiling" = yes ||
13908 $as_test_x conftest$ac_exeext
13910 eval "$as_ac_var=yes"
13912 $as_echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 eval "$as_ac_var=no"
13918 rm -rf conftest.dSYM
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920 conftest$ac_exeext conftest.$ac_ext
13922 ac_res=`eval 'as_val=${'$as_ac_var'}
13923 $as_echo "$as_val"'`
13924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13925 $as_echo "$ac_res" >&6; }
13926 as_val=`eval 'as_val=${'$as_ac_var'}
13927 $as_echo "$as_val"'`
13928 if test "x$as_val" = x""yes; then
13929 cat >>confdefs.h <<_ACEOF
13930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13938 cat >>confdefs.h <<\_ACEOF
13939 #define gmtime rpl_gmtime
13943 cat >>confdefs.h <<\_ACEOF
13944 #define localtime rpl_localtime
13949 cat >>confdefs.h <<\_ACEOF
13950 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
13956 if test $gl_cv_func_gettimeofday_posix_signature != yes; then
13957 REPLACE_GETTIMEOFDAY=1
13958 SYS_TIME_H=sys/time.h
13959 if test $gl_cv_func_gettimeofday_clobber != yes; then
13967 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13971 for ac_header in sys/timeb.h
13973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13975 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13976 $as_echo_n "checking for $ac_header... " >&6; }
13977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13978 $as_echo_n "(cached) " >&6
13980 ac_res=`eval 'as_val=${'$as_ac_Header'}
13981 $as_echo "$as_val"'`
13982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13983 $as_echo "$ac_res" >&6; }
13985 # Is the header compilable?
13986 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13987 $as_echo_n "checking $ac_header usability... " >&6; }
13988 cat >conftest.$ac_ext <<_ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13994 $ac_includes_default
13995 #include <$ac_header>
13997 rm -f conftest.$ac_objext
13998 if { (ac_try="$ac_compile"
13999 case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14004 $as_echo "$ac_try_echo") >&5
14005 (eval "$ac_compile") 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } && {
14012 test -z "$ac_c_werror_flag" ||
14013 test ! -s conftest.err
14014 } && test -s conftest.$ac_objext; then
14015 ac_header_compiler=yes
14017 $as_echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 ac_header_compiler=no
14023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14025 $as_echo "$ac_header_compiler" >&6; }
14027 # Is the header present?
14028 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14029 $as_echo_n "checking $ac_header presence... " >&6; }
14030 cat >conftest.$ac_ext <<_ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14036 #include <$ac_header>
14038 if { (ac_try="$ac_cpp conftest.$ac_ext"
14039 case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14044 $as_echo "$ac_try_echo") >&5
14045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14047 grep -v '^ *+' conftest.er1 >conftest.err
14049 cat conftest.err >&5
14050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } >/dev/null && {
14052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14053 test ! -s conftest.err
14055 ac_header_preproc=yes
14057 $as_echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14060 ac_header_preproc=no
14063 rm -f conftest.err conftest.$ac_ext
14064 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14065 $as_echo "$ac_header_preproc" >&6; }
14067 # So? What about this header?
14068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14071 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14073 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14074 ac_header_preproc=yes
14077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14078 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14080 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14082 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14084 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14088 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14093 $as_echo_n "checking for $ac_header... " >&6; }
14094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14095 $as_echo_n "(cached) " >&6
14097 eval "$as_ac_Header=\$ac_header_preproc"
14099 ac_res=`eval 'as_val=${'$as_ac_Header'}
14100 $as_echo "$as_val"'`
14101 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14102 $as_echo "$ac_res" >&6; }
14105 as_val=`eval 'as_val=${'$as_ac_Header'}
14106 $as_echo "$as_val"'`
14107 if test "x$as_val" = x""yes; then
14108 cat >>confdefs.h <<_ACEOF
14109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14117 for ac_func in _ftime
14119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14120 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14121 $as_echo_n "checking for $ac_func... " >&6; }
14122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14123 $as_echo_n "(cached) " >&6
14125 cat >conftest.$ac_ext <<_ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14133 #define $ac_func innocuous_$ac_func
14135 /* System header to define __stub macros and hopefully few prototypes,
14136 which can conflict with char $ac_func (); below.
14137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14138 <limits.h> exists even on freestanding compilers. */
14141 # include <limits.h>
14143 # include <assert.h>
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14155 /* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158 #if defined __stub_$ac_func || defined __stub___$ac_func
14165 return $ac_func ();
14170 rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (ac_try="$ac_link"
14172 case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178 (eval "$ac_link") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1 >conftest.err
14182 cat conftest.err >&5
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest$ac_exeext && {
14188 test "$cross_compiling" = yes ||
14189 $as_test_x conftest$ac_exeext
14191 eval "$as_ac_var=yes"
14193 $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14196 eval "$as_ac_var=no"
14199 rm -rf conftest.dSYM
14200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14201 conftest$ac_exeext conftest.$ac_ext
14203 ac_res=`eval 'as_val=${'$as_ac_var'}
14204 $as_echo "$as_val"'`
14205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14206 $as_echo "$ac_res" >&6; }
14207 as_val=`eval 'as_val=${'$as_ac_var'}
14208 $as_echo "$as_val"'`
14209 if test "x$as_val" = x""yes; then
14210 cat >>confdefs.h <<_ACEOF
14211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14230 for ac_func in inet_ntop
14232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14233 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14234 $as_echo_n "checking for $ac_func... " >&6; }
14235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14236 $as_echo_n "(cached) " >&6
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14246 #define $ac_func innocuous_$ac_func
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char $ac_func (); below.
14250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14251 <limits.h> exists even on freestanding compilers. */
14254 # include <limits.h>
14256 # include <assert.h>
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14268 /* The GNU C library defines this for functions which it implements
14269 to always fail with ENOSYS. Some functions are actually named
14270 something starting with __ and the normal name is an alias. */
14271 #if defined __stub_$ac_func || defined __stub___$ac_func
14278 return $ac_func ();
14283 rm -f conftest.$ac_objext conftest$ac_exeext
14284 if { (ac_try="$ac_link"
14285 case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14290 $as_echo "$ac_try_echo") >&5
14291 (eval "$ac_link") 2>conftest.er1
14293 grep -v '^ *+' conftest.er1 >conftest.err
14295 cat conftest.err >&5
14296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && {
14298 test -z "$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14300 } && test -s conftest$ac_exeext && {
14301 test "$cross_compiling" = yes ||
14302 $as_test_x conftest$ac_exeext
14304 eval "$as_ac_var=yes"
14306 $as_echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 eval "$as_ac_var=no"
14312 rm -rf conftest.dSYM
14313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14314 conftest$ac_exeext conftest.$ac_ext
14316 ac_res=`eval 'as_val=${'$as_ac_var'}
14317 $as_echo "$as_val"'`
14318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14319 $as_echo "$ac_res" >&6; }
14320 as_val=`eval 'as_val=${'$as_ac_var'}
14321 $as_echo "$as_val"'`
14322 if test "x$as_val" = x""yes; then
14323 cat >>confdefs.h <<_ACEOF
14324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14329 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14346 { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
14347 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
14348 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
14349 $as_echo_n "(cached) " >&6
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 #include <arpa/inet.h>
14370 rm -f conftest.$ac_objext
14371 if { (ac_try="$ac_compile"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14377 $as_echo "$ac_try_echo") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest.$ac_objext; then
14388 ac_cv_have_decl_inet_ntop=yes
14390 $as_echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_cv_have_decl_inet_ntop=no
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
14399 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
14400 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
14402 cat >>confdefs.h <<_ACEOF
14403 #define HAVE_DECL_INET_NTOP 1
14408 cat >>confdefs.h <<_ACEOF
14409 #define HAVE_DECL_INET_NTOP 0
14429 if test $gl_cv_func_malloc_posix = yes; then
14430 HAVE_MALLOC_POSIX=1
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_MALLOC_POSIX 1
14444 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14446 HAVE_MALLOC_POSIX=0
14452 GNULIB_MALLOC_POSIX=1
14464 for ac_func in mkdtemp
14466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14467 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14468 $as_echo_n "checking for $ac_func... " >&6; }
14469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14470 $as_echo_n "(cached) " >&6
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14480 #define $ac_func innocuous_$ac_func
14482 /* System header to define __stub macros and hopefully few prototypes,
14483 which can conflict with char $ac_func (); below.
14484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14485 <limits.h> exists even on freestanding compilers. */
14488 # include <limits.h>
14490 # include <assert.h>
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14502 /* The GNU C library defines this for functions which it implements
14503 to always fail with ENOSYS. Some functions are actually named
14504 something starting with __ and the normal name is an alias. */
14505 #if defined __stub_$ac_func || defined __stub___$ac_func
14512 return $ac_func ();
14517 rm -f conftest.$ac_objext conftest$ac_exeext
14518 if { (ac_try="$ac_link"
14519 case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14524 $as_echo "$ac_try_echo") >&5
14525 (eval "$ac_link") 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } && {
14532 test -z "$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14534 } && test -s conftest$ac_exeext && {
14535 test "$cross_compiling" = yes ||
14536 $as_test_x conftest$ac_exeext
14538 eval "$as_ac_var=yes"
14540 $as_echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 eval "$as_ac_var=no"
14546 rm -rf conftest.dSYM
14547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14548 conftest$ac_exeext conftest.$ac_ext
14550 ac_res=`eval 'as_val=${'$as_ac_var'}
14551 $as_echo "$as_val"'`
14552 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14553 $as_echo "$ac_res" >&6; }
14554 as_val=`eval 'as_val=${'$as_ac_var'}
14555 $as_echo "$as_val"'`
14556 if test "x$as_val" = x""yes; then
14557 cat >>confdefs.h <<_ACEOF
14558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14563 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14569 if test $ac_cv_func_mkdtemp = no; then
14580 { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
14581 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
14582 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
14583 $as_echo_n "(cached) " >&6
14586 cat >conftest.$ac_ext <<_ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 #include <netinet/in.h>
14601 rm -f conftest.$ac_objext
14602 if { (ac_try="$ac_compile"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14608 $as_echo "$ac_try_echo") >&5
14609 (eval "$ac_compile") 2>conftest.er1
14611 grep -v '^ *+' conftest.er1 >conftest.err
14613 cat conftest.err >&5
14614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && {
14616 test -z "$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 } && test -s conftest.$ac_objext; then
14619 gl_cv_header_netinet_in_h_selfcontained=yes
14621 $as_echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 gl_cv_header_netinet_in_h_selfcontained=no
14627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14630 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
14631 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
14632 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
14635 NETINET_IN_H='netinet/in.h'
14637 for ac_header in netinet/in.h
14639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14642 $as_echo_n "checking for $ac_header... " >&6; }
14643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14644 $as_echo_n "(cached) " >&6
14646 ac_res=`eval 'as_val=${'$as_ac_Header'}
14647 $as_echo "$as_val"'`
14648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14649 $as_echo "$ac_res" >&6; }
14651 # Is the header compilable?
14652 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14653 $as_echo_n "checking $ac_header usability... " >&6; }
14654 cat >conftest.$ac_ext <<_ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 $ac_includes_default
14661 #include <$ac_header>
14663 rm -f conftest.$ac_objext
14664 if { (ac_try="$ac_compile"
14665 case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14670 $as_echo "$ac_try_echo") >&5
14671 (eval "$ac_compile") 2>conftest.er1
14673 grep -v '^ *+' conftest.er1 >conftest.err
14675 cat conftest.err >&5
14676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } && {
14678 test -z "$ac_c_werror_flag" ||
14679 test ! -s conftest.err
14680 } && test -s conftest.$ac_objext; then
14681 ac_header_compiler=yes
14683 $as_echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14686 ac_header_compiler=no
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14691 $as_echo "$ac_header_compiler" >&6; }
14693 # Is the header present?
14694 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14695 $as_echo_n "checking $ac_header presence... " >&6; }
14696 cat >conftest.$ac_ext <<_ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14702 #include <$ac_header>
14704 if { (ac_try="$ac_cpp conftest.$ac_ext"
14705 case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14710 $as_echo "$ac_try_echo") >&5
14711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14713 grep -v '^ *+' conftest.er1 >conftest.err
14715 cat conftest.err >&5
14716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } >/dev/null && {
14718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14719 test ! -s conftest.err
14721 ac_header_preproc=yes
14723 $as_echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ac_header_preproc=no
14729 rm -f conftest.err conftest.$ac_ext
14730 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14731 $as_echo "$ac_header_preproc" >&6; }
14733 # So? What about this header?
14734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14737 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14740 ac_header_preproc=yes
14743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14744 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14746 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14748 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14750 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14752 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14754 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14759 $as_echo_n "checking for $ac_header... " >&6; }
14760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14761 $as_echo_n "(cached) " >&6
14763 eval "$as_ac_Header=\$ac_header_preproc"
14765 ac_res=`eval 'as_val=${'$as_ac_Header'}
14766 $as_echo "$as_val"'`
14767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14768 $as_echo "$ac_res" >&6; }
14771 as_val=`eval 'as_val=${'$as_ac_Header'}
14772 $as_echo "$as_val"'`
14773 if test "x$as_val" = x""yes; then
14774 cat >>confdefs.h <<_ACEOF
14775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14793 if test $gl_cv_have_include_next = yes; then
14794 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
14796 { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
14797 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
14798 if test "${gl_cv_next_netinet_in_h+set}" = set; then
14799 $as_echo_n "(cached) " >&6
14802 if test $ac_cv_header_netinet_in_h = yes; then
14803 cat >conftest.$ac_ext <<_ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <netinet/in.h>
14812 gl_cv_next_netinet_in_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14813 sed -n '\#/netinet/in.h#{
14814 s#.*"\(.*/netinet/in.h\)".*#\1#
14820 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
14824 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
14825 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
14827 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
14831 if test $ac_cv_header_netinet_in_h = yes; then
14832 HAVE_NETINET_IN_H=1
14834 HAVE_NETINET_IN_H=0
14840 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
14841 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14842 if test -z "$MKDIR_P"; then
14843 if test "${ac_cv_path_mkdir+set}" = set; then
14844 $as_echo_n "(cached) " >&6
14846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14847 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14850 test -z "$as_dir" && as_dir=.
14851 for ac_prog in mkdir gmkdir; do
14852 for ac_exec_ext in '' $ac_executable_extensions; do
14853 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
14854 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14855 'mkdir (GNU coreutils) '* | \
14856 'mkdir (coreutils) '* | \
14857 'mkdir (fileutils) '4.1*)
14858 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14868 if test "${ac_cv_path_mkdir+set}" = set; then
14869 MKDIR_P="$ac_cv_path_mkdir -p"
14871 # As a last resort, use the slow shell script. Don't cache a
14872 # value for MKDIR_P within a source directory, because that will
14873 # break other packages using the cache if that directory is
14874 # removed, or if the value is a relative name.
14875 test -d ./--version && rmdir ./--version
14876 MKDIR_P="$ac_install_sh -d"
14879 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
14880 $as_echo "$MKDIR_P" >&6; }
14890 gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
14893 # Prerequisites of lib/physmem.c.
14902 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
14903 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
14906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14908 $as_echo_n "checking for $ac_header... " >&6; }
14909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910 $as_echo_n "(cached) " >&6
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 $ac_includes_default
14920 #include <$ac_header>
14922 rm -f conftest.$ac_objext
14923 if { (ac_try="$ac_compile"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14929 $as_echo "$ac_try_echo") >&5
14930 (eval "$ac_compile") 2>conftest.er1
14932 grep -v '^ *+' conftest.er1 >conftest.err
14934 cat conftest.err >&5
14935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } && {
14937 test -z "$ac_c_werror_flag" ||
14938 test ! -s conftest.err
14939 } && test -s conftest.$ac_objext; then
14940 eval "$as_ac_Header=yes"
14942 $as_echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 eval "$as_ac_Header=no"
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14950 ac_res=`eval 'as_val=${'$as_ac_Header'}
14951 $as_echo "$as_val"'`
14952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14953 $as_echo "$ac_res" >&6; }
14954 as_val=`eval 'as_val=${'$as_ac_Header'}
14955 $as_echo "$as_val"'`
14956 if test "x$as_val" = x""yes; then
14957 cat >>confdefs.h <<_ACEOF
14958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14972 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
14974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14975 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14976 $as_echo_n "checking for $ac_func... " >&6; }
14977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14978 $as_echo_n "(cached) " >&6
14980 cat >conftest.$ac_ext <<_ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14988 #define $ac_func innocuous_$ac_func
14990 /* System header to define __stub macros and hopefully few prototypes,
14991 which can conflict with char $ac_func (); below.
14992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14993 <limits.h> exists even on freestanding compilers. */
14996 # include <limits.h>
14998 # include <assert.h>
15003 /* Override any GCC internal prototype to avoid an error.
15004 Use char because int might match the return type of a GCC
15005 builtin and then its argument prototype would still apply. */
15010 /* The GNU C library defines this for functions which it implements
15011 to always fail with ENOSYS. Some functions are actually named
15012 something starting with __ and the normal name is an alias. */
15013 #if defined __stub_$ac_func || defined __stub___$ac_func
15020 return $ac_func ();
15025 rm -f conftest.$ac_objext conftest$ac_exeext
15026 if { (ac_try="$ac_link"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15032 $as_echo "$ac_try_echo") >&5
15033 (eval "$ac_link") 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest$ac_exeext && {
15043 test "$cross_compiling" = yes ||
15044 $as_test_x conftest$ac_exeext
15046 eval "$as_ac_var=yes"
15048 $as_echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 eval "$as_ac_var=no"
15054 rm -rf conftest.dSYM
15055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15056 conftest$ac_exeext conftest.$ac_ext
15058 ac_res=`eval 'as_val=${'$as_ac_var'}
15059 $as_echo "$as_val"'`
15060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15061 $as_echo "$ac_res" >&6; }
15062 as_val=`eval 'as_val=${'$as_ac_var'}
15063 $as_echo "$as_val"'`
15064 if test "x$as_val" = x""yes; then
15065 cat >>confdefs.h <<_ACEOF
15066 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15082 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
15097 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
15108 for ac_header in stdint.h
15110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15113 $as_echo_n "checking for $ac_header... " >&6; }
15114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15115 $as_echo_n "(cached) " >&6
15117 ac_res=`eval 'as_val=${'$as_ac_Header'}
15118 $as_echo "$as_val"'`
15119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15120 $as_echo "$ac_res" >&6; }
15122 # Is the header compilable?
15123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15124 $as_echo_n "checking $ac_header usability... " >&6; }
15125 cat >conftest.$ac_ext <<_ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131 $ac_includes_default
15132 #include <$ac_header>
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15141 $as_echo "$ac_try_echo") >&5
15142 (eval "$ac_compile") 2>conftest.er1
15144 grep -v '^ *+' conftest.er1 >conftest.err
15146 cat conftest.err >&5
15147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && {
15149 test -z "$ac_c_werror_flag" ||
15150 test ! -s conftest.err
15151 } && test -s conftest.$ac_objext; then
15152 ac_header_compiler=yes
15154 $as_echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15157 ac_header_compiler=no
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15162 $as_echo "$ac_header_compiler" >&6; }
15164 # Is the header present?
15165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15166 $as_echo_n "checking $ac_header presence... " >&6; }
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 #include <$ac_header>
15175 if { (ac_try="$ac_cpp conftest.$ac_ext"
15176 case "(($ac_try" in
15177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178 *) ac_try_echo=$ac_try;;
15180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15181 $as_echo "$ac_try_echo") >&5
15182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15184 grep -v '^ *+' conftest.er1 >conftest.err
15186 cat conftest.err >&5
15187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } >/dev/null && {
15189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15190 test ! -s conftest.err
15192 ac_header_preproc=yes
15194 $as_echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15197 ac_header_preproc=no
15200 rm -f conftest.err conftest.$ac_ext
15201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15202 $as_echo "$ac_header_preproc" >&6; }
15204 # So? What about this header?
15205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15211 ac_header_preproc=yes
15214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15217 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15221 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15230 $as_echo_n "checking for $ac_header... " >&6; }
15231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15232 $as_echo_n "(cached) " >&6
15234 eval "$as_ac_Header=\$ac_header_preproc"
15236 ac_res=`eval 'as_val=${'$as_ac_Header'}
15237 $as_echo "$as_val"'`
15238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15239 $as_echo "$ac_res" >&6; }
15242 as_val=`eval 'as_val=${'$as_ac_Header'}
15243 $as_echo "$as_val"'`
15244 if test "x$as_val" = x""yes; then
15245 cat >>confdefs.h <<_ACEOF
15246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15253 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
15254 $as_echo_n "checking for SIZE_MAX... " >&6; }
15256 cat >conftest.$ac_ext <<_ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15263 #include <limits.h>
15265 #include <stdint.h>
15272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15273 $EGREP "Found it" >/dev/null 2>&1; then
15278 if test -z "$result"; then
15279 if test "$cross_compiling" = yes; then
15280 # Depending upon the size, compute the lo and hi bounds.
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 #include <stddef.h>
15288 #include <limits.h>
15292 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
15299 rm -f conftest.$ac_objext
15300 if { (ac_try="$ac_compile"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15306 $as_echo "$ac_try_echo") >&5
15307 (eval "$ac_compile") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && {
15314 test -z "$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 } && test -s conftest.$ac_objext; then
15319 cat >conftest.$ac_ext <<_ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 #include <stddef.h>
15326 #include <limits.h>
15330 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
15337 rm -f conftest.$ac_objext
15338 if { (ac_try="$ac_compile"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15344 $as_echo "$ac_try_echo") >&5
15345 (eval "$ac_compile") 2>conftest.er1
15347 grep -v '^ *+' conftest.er1 >conftest.err
15349 cat conftest.err >&5
15350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } && {
15352 test -z "$ac_c_werror_flag" ||
15353 test ! -s conftest.err
15354 } && test -s conftest.$ac_objext; then
15355 ac_hi=$ac_mid; break
15357 $as_echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 ac_lo=`expr $ac_mid + 1`
15361 if test $ac_lo -le $ac_mid; then
15365 ac_mid=`expr 2 '*' $ac_mid + 1`
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 $as_echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15374 cat >conftest.$ac_ext <<_ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15380 #include <stddef.h>
15381 #include <limits.h>
15385 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
15392 rm -f conftest.$ac_objext
15393 if { (ac_try="$ac_compile"
15394 case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15399 $as_echo "$ac_try_echo") >&5
15400 (eval "$ac_compile") 2>conftest.er1
15402 grep -v '^ *+' conftest.er1 >conftest.err
15404 cat conftest.err >&5
15405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } && {
15407 test -z "$ac_c_werror_flag" ||
15408 test ! -s conftest.err
15409 } && test -s conftest.$ac_objext; then
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 #include <stddef.h>
15419 #include <limits.h>
15423 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
15430 rm -f conftest.$ac_objext
15431 if { (ac_try="$ac_compile"
15432 case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15437 $as_echo "$ac_try_echo") >&5
15438 (eval "$ac_compile") 2>conftest.er1
15440 grep -v '^ *+' conftest.er1 >conftest.err
15442 cat conftest.err >&5
15443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } && {
15445 test -z "$ac_c_werror_flag" ||
15446 test ! -s conftest.err
15447 } && test -s conftest.$ac_objext; then
15448 ac_lo=$ac_mid; break
15450 $as_echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_hi=`expr '(' $ac_mid ')' - 1`
15454 if test $ac_mid -le $ac_hi; then
15458 ac_mid=`expr 2 '*' $ac_mid`
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464 $as_echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 # Binary search between lo and hi bounds.
15475 while test "x$ac_lo" != "x$ac_hi"; do
15476 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15477 cat >conftest.$ac_ext <<_ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h. */
15483 #include <stddef.h>
15484 #include <limits.h>
15488 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
15495 rm -f conftest.$ac_objext
15496 if { (ac_try="$ac_compile"
15497 case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15502 $as_echo "$ac_try_echo") >&5
15503 (eval "$ac_compile") 2>conftest.er1
15505 grep -v '^ *+' conftest.er1 >conftest.err
15507 cat conftest.err >&5
15508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } && {
15510 test -z "$ac_c_werror_flag" ||
15511 test ! -s conftest.err
15512 } && test -s conftest.$ac_objext; then
15515 $as_echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_lo=`expr '(' $ac_mid ')' + 1`
15521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524 ?*) size_t_bits_minus_1=$ac_lo;;
15525 '') size_t_bits_minus_1= ;;
15528 cat >conftest.$ac_ext <<_ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h. */
15534 #include <stddef.h>
15535 #include <limits.h>
15536 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
15537 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
15539 #include <stdlib.h>
15544 FILE *f = fopen ("conftest.val", "w");
15547 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
15549 long int i = longval ();
15550 if (i != (sizeof (size_t) * CHAR_BIT - 1))
15552 fprintf (f, "%ld", i);
15556 unsigned long int i = ulongval ();
15557 if (i != (sizeof (size_t) * CHAR_BIT - 1))
15559 fprintf (f, "%lu", i);
15561 /* Do not output a trailing newline, as this causes \r\n confusion
15562 on some platforms. */
15563 return ferror (f) || fclose (f) != 0;
15569 rm -f conftest$ac_exeext
15570 if { (ac_try="$ac_link"
15571 case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15576 $as_echo "$ac_try_echo") >&5
15577 (eval "$ac_link") 2>&5
15579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15581 { (case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15586 $as_echo "$ac_try_echo") >&5
15587 (eval "$ac_try") 2>&5
15589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 size_t_bits_minus_1=`cat conftest.val`
15593 $as_echo "$as_me: program exited with status $ac_status" >&5
15594 $as_echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 ( exit $ac_status )
15598 size_t_bits_minus_1=
15600 rm -rf conftest.dSYM
15601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15605 if test "$cross_compiling" = yes; then
15606 # Depending upon the size, compute the lo and hi bounds.
15607 cat >conftest.$ac_ext <<_ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15613 #include <stddef.h>
15617 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
15624 rm -f conftest.$ac_objext
15625 if { (ac_try="$ac_compile"
15626 case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15631 $as_echo "$ac_try_echo") >&5
15632 (eval "$ac_compile") 2>conftest.er1
15634 grep -v '^ *+' conftest.er1 >conftest.err
15636 cat conftest.err >&5
15637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } && {
15639 test -z "$ac_c_werror_flag" ||
15640 test ! -s conftest.err
15641 } && test -s conftest.$ac_objext; then
15644 cat >conftest.$ac_ext <<_ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h. */
15650 #include <stddef.h>
15654 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15661 rm -f conftest.$ac_objext
15662 if { (ac_try="$ac_compile"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15668 $as_echo "$ac_try_echo") >&5
15669 (eval "$ac_compile") 2>conftest.er1
15671 grep -v '^ *+' conftest.er1 >conftest.err
15673 cat conftest.err >&5
15674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } && {
15676 test -z "$ac_c_werror_flag" ||
15677 test ! -s conftest.err
15678 } && test -s conftest.$ac_objext; then
15679 ac_hi=$ac_mid; break
15681 $as_echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_lo=`expr $ac_mid + 1`
15685 if test $ac_lo -le $ac_mid; then
15689 ac_mid=`expr 2 '*' $ac_mid + 1`
15692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695 $as_echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15698 cat >conftest.$ac_ext <<_ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 #include <stddef.h>
15708 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15722 $as_echo "$ac_try_echo") >&5
15723 (eval "$ac_compile") 2>conftest.er1
15725 grep -v '^ *+' conftest.er1 >conftest.err
15727 cat conftest.err >&5
15728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } && {
15730 test -z "$ac_c_werror_flag" ||
15731 test ! -s conftest.err
15732 } && test -s conftest.$ac_objext; then
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 #include <stddef.h>
15745 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15759 $as_echo "$ac_try_echo") >&5
15760 (eval "$ac_compile") 2>conftest.er1
15762 grep -v '^ *+' conftest.er1 >conftest.err
15764 cat conftest.err >&5
15765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } && {
15767 test -z "$ac_c_werror_flag" ||
15768 test ! -s conftest.err
15769 } && test -s conftest.$ac_objext; then
15770 ac_lo=$ac_mid; break
15772 $as_echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 ac_hi=`expr '(' $ac_mid ')' - 1`
15776 if test $ac_mid -le $ac_hi; then
15780 ac_mid=`expr 2 '*' $ac_mid`
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 $as_echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15796 # Binary search between lo and hi bounds.
15797 while test "x$ac_lo" != "x$ac_hi"; do
15798 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15799 cat >conftest.$ac_ext <<_ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 #include <stddef.h>
15809 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15816 rm -f conftest.$ac_objext
15817 if { (ac_try="$ac_compile"
15818 case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15823 $as_echo "$ac_try_echo") >&5
15824 (eval "$ac_compile") 2>conftest.er1
15826 grep -v '^ *+' conftest.er1 >conftest.err
15828 cat conftest.err >&5
15829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } && {
15831 test -z "$ac_c_werror_flag" ||
15832 test ! -s conftest.err
15833 } && test -s conftest.$ac_objext; then
15836 $as_echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 ac_lo=`expr '(' $ac_mid ')' + 1`
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 ?*) fits_in_uint=$ac_lo;;
15846 '') fits_in_uint= ;;
15849 cat >conftest.$ac_ext <<_ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15855 #include <stddef.h>
15856 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
15857 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
15859 #include <stdlib.h>
15864 FILE *f = fopen ("conftest.val", "w");
15867 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
15869 long int i = longval ();
15870 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
15872 fprintf (f, "%ld", i);
15876 unsigned long int i = ulongval ();
15877 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
15879 fprintf (f, "%lu", i);
15881 /* Do not output a trailing newline, as this causes \r\n confusion
15882 on some platforms. */
15883 return ferror (f) || fclose (f) != 0;
15889 rm -f conftest$ac_exeext
15890 if { (ac_try="$ac_link"
15891 case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15896 $as_echo "$ac_try_echo") >&5
15897 (eval "$ac_link") 2>&5
15899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15901 { (case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15906 $as_echo "$ac_try_echo") >&5
15907 (eval "$ac_try") 2>&5
15909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 fits_in_uint=`cat conftest.val`
15913 $as_echo "$as_me: program exited with status $ac_status" >&5
15914 $as_echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15917 ( exit $ac_status )
15920 rm -rf conftest.dSYM
15921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15925 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
15926 if test $fits_in_uint = 1; then
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 #include <stddef.h>
15935 extern unsigned long foo;
15945 rm -f conftest.$ac_objext
15946 if { (ac_try="$ac_compile"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15952 $as_echo "$ac_try_echo") >&5
15953 (eval "$ac_compile") 2>conftest.er1
15955 grep -v '^ *+' conftest.er1 >conftest.err
15957 cat conftest.err >&5
15958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } && {
15960 test -z "$ac_c_werror_flag" ||
15961 test ! -s conftest.err
15962 } && test -s conftest.$ac_objext; then
15965 $as_echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973 if test $fits_in_uint = 1; then
15974 result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
15976 result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
15979 result='((size_t)~(size_t)0)'
15982 { $as_echo "$as_me:$LINENO: result: $result" >&5
15983 $as_echo "$result" >&6; }
15984 if test "$result" != yes; then
15986 cat >>confdefs.h <<_ACEOF
15987 #define SIZE_MAX $result
15995 for ac_func in snprintf
15997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15998 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15999 $as_echo_n "checking for $ac_func... " >&6; }
16000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16001 $as_echo_n "(cached) " >&6
16003 cat >conftest.$ac_ext <<_ACEOF
16006 cat confdefs.h >>conftest.$ac_ext
16007 cat >>conftest.$ac_ext <<_ACEOF
16008 /* end confdefs.h. */
16009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16011 #define $ac_func innocuous_$ac_func
16013 /* System header to define __stub macros and hopefully few prototypes,
16014 which can conflict with char $ac_func (); below.
16015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16016 <limits.h> exists even on freestanding compilers. */
16019 # include <limits.h>
16021 # include <assert.h>
16026 /* Override any GCC internal prototype to avoid an error.
16027 Use char because int might match the return type of a GCC
16028 builtin and then its argument prototype would still apply. */
16033 /* The GNU C library defines this for functions which it implements
16034 to always fail with ENOSYS. Some functions are actually named
16035 something starting with __ and the normal name is an alias. */
16036 #if defined __stub_$ac_func || defined __stub___$ac_func
16043 return $ac_func ();
16048 rm -f conftest.$ac_objext conftest$ac_exeext
16049 if { (ac_try="$ac_link"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16055 $as_echo "$ac_try_echo") >&5
16056 (eval "$ac_link") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest$ac_exeext && {
16066 test "$cross_compiling" = yes ||
16067 $as_test_x conftest$ac_exeext
16069 eval "$as_ac_var=yes"
16071 $as_echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 eval "$as_ac_var=no"
16077 rm -rf conftest.dSYM
16078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16079 conftest$ac_exeext conftest.$ac_ext
16081 ac_res=`eval 'as_val=${'$as_ac_var'}
16082 $as_echo "$as_val"'`
16083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16084 $as_echo "$ac_res" >&6; }
16085 as_val=`eval 'as_val=${'$as_ac_var'}
16086 $as_echo "$as_val"'`
16087 if test "x$as_val" = x""yes; then
16088 cat >>confdefs.h <<_ACEOF
16089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16095 if test $ac_cv_func_snprintf = no; then
16105 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
16107 if test $ac_cv_func_snprintf = yes; then
16120 if test $ac_cv_have_decl_snprintf = no; then
16121 HAVE_DECL_SNPRINTF=0
16128 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
16129 $as_echo_n "checking for socklen_t... " >&6; }
16130 if test "${ac_cv_type_socklen_t+set}" = set; then
16131 $as_echo_n "(cached) " >&6
16133 ac_cv_type_socklen_t=no
16134 cat >conftest.$ac_ext <<_ACEOF
16137 cat confdefs.h >>conftest.$ac_ext
16138 cat >>conftest.$ac_ext <<_ACEOF
16139 /* end confdefs.h. */
16140 #include <sys/types.h>
16141 #if HAVE_SYS_SOCKET_H
16142 # include <sys/socket.h>
16143 #elif HAVE_WS2TCPIP_H
16144 # include <ws2tcpip.h>
16150 if (sizeof (socklen_t))
16156 rm -f conftest.$ac_objext
16157 if { (ac_try="$ac_compile"
16158 case "(($ac_try" in
16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160 *) ac_try_echo=$ac_try;;
16162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16163 $as_echo "$ac_try_echo") >&5
16164 (eval "$ac_compile") 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } && {
16171 test -z "$ac_c_werror_flag" ||
16172 test ! -s conftest.err
16173 } && test -s conftest.$ac_objext; then
16174 cat >conftest.$ac_ext <<_ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16180 #include <sys/types.h>
16181 #if HAVE_SYS_SOCKET_H
16182 # include <sys/socket.h>
16183 #elif HAVE_WS2TCPIP_H
16184 # include <ws2tcpip.h>
16190 if (sizeof ((socklen_t)))
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16203 $as_echo "$ac_try_echo") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest.$ac_objext; then
16216 $as_echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_cv_type_socklen_t=yes
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 $as_echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16233 $as_echo "$ac_cv_type_socklen_t" >&6; }
16234 if test "x$ac_cv_type_socklen_t" = x""yes; then
16237 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
16238 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16239 if test "${gl_cv_socklen_t_equiv+set}" = set; then
16240 $as_echo_n "(cached) " >&6
16242 # Systems have either "struct sockaddr *" or
16243 # "void *" as the second argument to getpeername
16244 gl_cv_socklen_t_equiv=
16245 for arg2 in "struct sockaddr" void; do
16246 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 #include <sys/types.h>
16254 #include <sys/socket.h>
16256 int getpeername (int, $arg2 *, $t *);
16261 getpeername (0, 0, &len);
16266 rm -f conftest.$ac_objext
16267 if { (ac_try="$ac_compile"
16268 case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16273 $as_echo "$ac_try_echo") >&5
16274 (eval "$ac_compile") 2>conftest.er1
16276 grep -v '^ *+' conftest.er1 >conftest.err
16278 cat conftest.err >&5
16279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } && {
16281 test -z "$ac_c_werror_flag" ||
16282 test ! -s conftest.err
16283 } && test -s conftest.$ac_objext; then
16284 gl_cv_socklen_t_equiv="$t"
16286 $as_echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293 test "$gl_cv_socklen_t_equiv" != "" && break
16295 test "$gl_cv_socklen_t_equiv" != "" && break
16300 if test "$gl_cv_socklen_t_equiv" = ""; then
16301 { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
16302 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
16303 { (exit 1); exit 1; }; }
16305 { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
16306 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16308 cat >>confdefs.h <<_ACEOF
16309 #define socklen_t $gl_cv_socklen_t_equiv
16315 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
16316 $as_echo_n "checking for ssize_t... " >&6; }
16317 if test "${gt_cv_ssize_t+set}" = set; then
16318 $as_echo_n "(cached) " >&6
16320 cat >conftest.$ac_ext <<_ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16326 #include <sys/types.h>
16330 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16336 rm -f conftest.$ac_objext
16337 if { (ac_try="$ac_compile"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16343 $as_echo "$ac_try_echo") >&5
16344 (eval "$ac_compile") 2>conftest.er1
16346 grep -v '^ *+' conftest.er1 >conftest.err
16348 cat conftest.err >&5
16349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } && {
16351 test -z "$ac_c_werror_flag" ||
16352 test ! -s conftest.err
16353 } && test -s conftest.$ac_objext; then
16356 $as_echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
16365 $as_echo "$gt_cv_ssize_t" >&6; }
16366 if test $gt_cv_ssize_t = no; then
16368 cat >>confdefs.h <<\_ACEOF
16369 #define ssize_t int
16377 # Define two additional variables used in the Makefile substitution.
16379 if test "$ac_cv_header_stdbool_h" = yes; then
16382 STDBOOL_H='stdbool.h'
16386 if test "$ac_cv_type__Bool" = yes; then
16396 if test $ac_cv_type_long_long_int = yes; then
16397 HAVE_LONG_LONG_INT=1
16399 HAVE_LONG_LONG_INT=0
16403 if test $ac_cv_type_unsigned_long_long_int = yes; then
16404 HAVE_UNSIGNED_LONG_LONG_INT=1
16406 HAVE_UNSIGNED_LONG_LONG_INT=0
16410 if test $ac_cv_header_inttypes_h = yes; then
16417 if test $ac_cv_header_sys_types_h = yes; then
16435 if test $gl_cv_have_include_next = yes; then
16436 gl_cv_next_stdint_h='<'stdint.h'>'
16438 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
16439 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16440 if test "${gl_cv_next_stdint_h+set}" = set; then
16441 $as_echo_n "(cached) " >&6
16444 if test $ac_cv_header_stdint_h = yes; then
16445 cat >conftest.$ac_ext <<_ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 #include <stdint.h>
16454 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16455 sed -n '\#/stdint.h#{
16456 s#.*"\(.*/stdint.h\)".*#\1#
16462 gl_cv_next_stdint_h='<'stdint.h'>'
16466 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
16467 $as_echo "$gl_cv_next_stdint_h" >&6; }
16469 NEXT_STDINT_H=$gl_cv_next_stdint_h
16473 if test $ac_cv_header_stdint_h = yes; then
16480 if test $ac_cv_header_stdint_h = yes; then
16481 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
16482 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16483 if test "${gl_cv_header_working_stdint_h+set}" = set; then
16484 $as_echo_n "(cached) " >&6
16486 gl_cv_header_working_stdint_h=no
16487 cat >conftest.$ac_ext <<_ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16495 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16496 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16497 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16498 #include <stdint.h>
16499 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16500 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16501 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16505 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16506 included before <wchar.h>. */
16507 #include <stddef.h>
16508 #include <signal.h>
16510 # include <stdio.h>
16512 # include <wchar.h>
16517 int8_t a1 = INT8_MAX;
16518 int8_t a1min = INT8_MIN;
16521 int16_t a2 = INT16_MAX;
16522 int16_t a2min = INT16_MIN;
16525 int32_t a3 = INT32_MAX;
16526 int32_t a3min = INT32_MIN;
16529 int64_t a4 = INT64_MAX;
16530 int64_t a4min = INT64_MIN;
16533 uint8_t b1 = UINT8_MAX;
16535 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16538 uint16_t b2 = UINT16_MAX;
16541 uint32_t b3 = UINT32_MAX;
16544 uint64_t b4 = UINT64_MAX;
16546 int_least8_t c1 = INT8_C (0x7f);
16547 int_least8_t c1max = INT_LEAST8_MAX;
16548 int_least8_t c1min = INT_LEAST8_MIN;
16549 int_least16_t c2 = INT16_C (0x7fff);
16550 int_least16_t c2max = INT_LEAST16_MAX;
16551 int_least16_t c2min = INT_LEAST16_MIN;
16552 int_least32_t c3 = INT32_C (0x7fffffff);
16553 int_least32_t c3max = INT_LEAST32_MAX;
16554 int_least32_t c3min = INT_LEAST32_MIN;
16555 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16556 int_least64_t c4max = INT_LEAST64_MAX;
16557 int_least64_t c4min = INT_LEAST64_MIN;
16558 uint_least8_t d1 = UINT8_C (0xff);
16559 uint_least8_t d1max = UINT_LEAST8_MAX;
16560 uint_least16_t d2 = UINT16_C (0xffff);
16561 uint_least16_t d2max = UINT_LEAST16_MAX;
16562 uint_least32_t d3 = UINT32_C (0xffffffff);
16563 uint_least32_t d3max = UINT_LEAST32_MAX;
16564 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16565 uint_least64_t d4max = UINT_LEAST64_MAX;
16566 int_fast8_t e1 = INT_FAST8_MAX;
16567 int_fast8_t e1min = INT_FAST8_MIN;
16568 int_fast16_t e2 = INT_FAST16_MAX;
16569 int_fast16_t e2min = INT_FAST16_MIN;
16570 int_fast32_t e3 = INT_FAST32_MAX;
16571 int_fast32_t e3min = INT_FAST32_MIN;
16572 int_fast64_t e4 = INT_FAST64_MAX;
16573 int_fast64_t e4min = INT_FAST64_MIN;
16574 uint_fast8_t f1 = UINT_FAST8_MAX;
16575 uint_fast16_t f2 = UINT_FAST16_MAX;
16576 uint_fast32_t f3 = UINT_FAST32_MAX;
16577 uint_fast64_t f4 = UINT_FAST64_MAX;
16579 intptr_t g = INTPTR_MAX;
16580 intptr_t gmin = INTPTR_MIN;
16583 uintptr_t h = UINTPTR_MAX;
16585 intmax_t i = INTMAX_MAX;
16586 uintmax_t j = UINTMAX_MAX;
16588 #include <limits.h> /* for CHAR_BIT */
16589 #define TYPE_MINIMUM(t) \
16590 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
16591 #define TYPE_MAXIMUM(t) \
16592 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
16595 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16596 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16598 /* Detect bug in FreeBSD 6.0 / ia64. */
16599 int check_SIG_ATOMIC:
16600 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16601 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16603 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16605 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16606 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16608 /* Detect bug in mingw. */
16610 WINT_MIN == TYPE_MINIMUM (wint_t)
16611 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16614 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16616 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16617 int check_UINT16_C:
16618 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16620 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16622 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16625 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16628 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16631 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16633 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16634 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16635 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16636 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16637 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16638 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16639 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16640 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16641 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16642 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16643 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16654 rm -f conftest.$ac_objext
16655 if { (ac_try="$ac_compile"
16656 case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16661 $as_echo "$ac_try_echo") >&5
16662 (eval "$ac_compile") 2>conftest.er1
16664 grep -v '^ *+' conftest.er1 >conftest.err
16666 cat conftest.err >&5
16667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } && {
16669 test -z "$ac_c_werror_flag" ||
16670 test ! -s conftest.err
16671 } && test -s conftest.$ac_objext; then
16672 gl_cv_header_working_stdint_h=yes
16674 $as_echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
16683 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16685 if test "$gl_cv_header_working_stdint_h" = yes; then
16690 for ac_header in sys/inttypes.h sys/bitypes.h
16692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16695 $as_echo_n "checking for $ac_header... " >&6; }
16696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16697 $as_echo_n "(cached) " >&6
16699 ac_res=`eval 'as_val=${'$as_ac_Header'}
16700 $as_echo "$as_val"'`
16701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16702 $as_echo "$ac_res" >&6; }
16704 # Is the header compilable?
16705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16706 $as_echo_n "checking $ac_header usability... " >&6; }
16707 cat >conftest.$ac_ext <<_ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 $ac_includes_default
16714 #include <$ac_header>
16716 rm -f conftest.$ac_objext
16717 if { (ac_try="$ac_compile"
16718 case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16723 $as_echo "$ac_try_echo") >&5
16724 (eval "$ac_compile") 2>conftest.er1
16726 grep -v '^ *+' conftest.er1 >conftest.err
16728 cat conftest.err >&5
16729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } && {
16731 test -z "$ac_c_werror_flag" ||
16732 test ! -s conftest.err
16733 } && test -s conftest.$ac_objext; then
16734 ac_header_compiler=yes
16736 $as_echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16739 ac_header_compiler=no
16742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16744 $as_echo "$ac_header_compiler" >&6; }
16746 # Is the header present?
16747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16748 $as_echo_n "checking $ac_header presence... " >&6; }
16749 cat >conftest.$ac_ext <<_ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 #include <$ac_header>
16757 if { (ac_try="$ac_cpp conftest.$ac_ext"
16758 case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16763 $as_echo "$ac_try_echo") >&5
16764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16766 grep -v '^ *+' conftest.er1 >conftest.err
16768 cat conftest.err >&5
16769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } >/dev/null && {
16771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16772 test ! -s conftest.err
16774 ac_header_preproc=yes
16776 $as_echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16779 ac_header_preproc=no
16782 rm -f conftest.err conftest.$ac_ext
16783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16784 $as_echo "$ac_header_preproc" >&6; }
16786 # So? What about this header?
16787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16793 ac_header_preproc=yes
16796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16799 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16803 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16812 $as_echo_n "checking for $ac_header... " >&6; }
16813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16814 $as_echo_n "(cached) " >&6
16816 eval "$as_ac_Header=\$ac_header_preproc"
16818 ac_res=`eval 'as_val=${'$as_ac_Header'}
16819 $as_echo "$as_val"'`
16820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16821 $as_echo "$ac_res" >&6; }
16824 as_val=`eval 'as_val=${'$as_ac_Header'}
16825 $as_echo "$as_val"'`
16826 if test "x$as_val" = x""yes; then
16827 cat >>confdefs.h <<_ACEOF
16828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16835 if test $ac_cv_header_sys_inttypes_h = yes; then
16836 HAVE_SYS_INTTYPES_H=1
16838 HAVE_SYS_INTTYPES_H=0
16841 if test $ac_cv_header_sys_bitypes_h = yes; then
16842 HAVE_SYS_BITYPES_H=1
16844 HAVE_SYS_BITYPES_H=0
16864 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
16865 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
16866 $as_echo_n "checking for bit size of $gltype... " >&6; }
16867 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
16868 $as_echo_n "(cached) " >&6
16870 if test "$cross_compiling" = yes; then
16871 # Depending upon the size, compute the lo and hi bounds.
16872 cat >conftest.$ac_ext <<_ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16879 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16880 included before <wchar.h>. */
16881 #include <stddef.h>
16882 #include <signal.h>
16884 # include <stdio.h>
16886 # include <wchar.h>
16889 #include <limits.h>
16893 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16907 $as_echo "$ac_try_echo") >&5
16908 (eval "$ac_compile") 2>conftest.er1
16910 grep -v '^ *+' conftest.er1 >conftest.err
16912 cat conftest.err >&5
16913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } && {
16915 test -z "$ac_c_werror_flag" ||
16916 test ! -s conftest.err
16917 } && test -s conftest.$ac_objext; then
16920 cat >conftest.$ac_ext <<_ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h. */
16927 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16928 included before <wchar.h>. */
16929 #include <stddef.h>
16930 #include <signal.h>
16932 # include <stdio.h>
16934 # include <wchar.h>
16937 #include <limits.h>
16941 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
16948 rm -f conftest.$ac_objext
16949 if { (ac_try="$ac_compile"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16955 $as_echo "$ac_try_echo") >&5
16956 (eval "$ac_compile") 2>conftest.er1
16958 grep -v '^ *+' conftest.er1 >conftest.err
16960 cat conftest.err >&5
16961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } && {
16963 test -z "$ac_c_werror_flag" ||
16964 test ! -s conftest.err
16965 } && test -s conftest.$ac_objext; then
16966 ac_hi=$ac_mid; break
16968 $as_echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 ac_lo=`expr $ac_mid + 1`
16972 if test $ac_lo -le $ac_mid; then
16976 ac_mid=`expr 2 '*' $ac_mid + 1`
16979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16982 $as_echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 cat >conftest.$ac_ext <<_ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16992 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16993 included before <wchar.h>. */
16994 #include <stddef.h>
16995 #include <signal.h>
16997 # include <stdio.h>
16999 # include <wchar.h>
17002 #include <limits.h>
17006 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17020 $as_echo "$ac_try_echo") >&5
17021 (eval "$ac_compile") 2>conftest.er1
17023 grep -v '^ *+' conftest.er1 >conftest.err
17025 cat conftest.err >&5
17026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } && {
17028 test -z "$ac_c_werror_flag" ||
17029 test ! -s conftest.err
17030 } && test -s conftest.$ac_objext; then
17033 cat >conftest.$ac_ext <<_ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17040 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17041 included before <wchar.h>. */
17042 #include <stddef.h>
17043 #include <signal.h>
17045 # include <stdio.h>
17047 # include <wchar.h>
17050 #include <limits.h>
17054 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17061 rm -f conftest.$ac_objext
17062 if { (ac_try="$ac_compile"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17068 $as_echo "$ac_try_echo") >&5
17069 (eval "$ac_compile") 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } && {
17076 test -z "$ac_c_werror_flag" ||
17077 test ! -s conftest.err
17078 } && test -s conftest.$ac_objext; then
17079 ac_lo=$ac_mid; break
17081 $as_echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17084 ac_hi=`expr '(' $ac_mid ')' - 1`
17085 if test $ac_mid -le $ac_hi; then
17089 ac_mid=`expr 2 '*' $ac_mid`
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17095 $as_echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 # Binary search between lo and hi bounds.
17106 while test "x$ac_lo" != "x$ac_hi"; do
17107 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17108 cat >conftest.$ac_ext <<_ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17115 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17116 included before <wchar.h>. */
17117 #include <stddef.h>
17118 #include <signal.h>
17120 # include <stdio.h>
17122 # include <wchar.h>
17125 #include <limits.h>
17129 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17136 rm -f conftest.$ac_objext
17137 if { (ac_try="$ac_compile"
17138 case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17143 $as_echo "$ac_try_echo") >&5
17144 (eval "$ac_compile") 2>conftest.er1
17146 grep -v '^ *+' conftest.er1 >conftest.err
17148 cat conftest.err >&5
17149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && {
17151 test -z "$ac_c_werror_flag" ||
17152 test ! -s conftest.err
17153 } && test -s conftest.$ac_objext; then
17156 $as_echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 ac_lo=`expr '(' $ac_mid ')' + 1`
17162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17165 ?*) result=$ac_lo;;
17166 '') result=unknown ;;
17169 cat >conftest.$ac_ext <<_ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17176 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17177 included before <wchar.h>. */
17178 #include <stddef.h>
17179 #include <signal.h>
17181 # include <stdio.h>
17183 # include <wchar.h>
17186 #include <limits.h>
17187 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17188 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17190 #include <stdlib.h>
17195 FILE *f = fopen ("conftest.val", "w");
17198 if ((sizeof ($gltype) * CHAR_BIT) < 0)
17200 long int i = longval ();
17201 if (i != (sizeof ($gltype) * CHAR_BIT))
17203 fprintf (f, "%ld", i);
17207 unsigned long int i = ulongval ();
17208 if (i != (sizeof ($gltype) * CHAR_BIT))
17210 fprintf (f, "%lu", i);
17212 /* Do not output a trailing newline, as this causes \r\n confusion
17213 on some platforms. */
17214 return ferror (f) || fclose (f) != 0;
17220 rm -f conftest$ac_exeext
17221 if { (ac_try="$ac_link"
17222 case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17227 $as_echo "$ac_try_echo") >&5
17228 (eval "$ac_link") 2>&5
17230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17232 { (case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17237 $as_echo "$ac_try_echo") >&5
17238 (eval "$ac_try") 2>&5
17240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 result=`cat conftest.val`
17244 $as_echo "$as_me: program exited with status $ac_status" >&5
17245 $as_echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 ( exit $ac_status )
17251 rm -rf conftest.dSYM
17252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17255 eval gl_cv_bitsizeof_${gltype}=\$result
17258 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17259 $as_echo "$as_val"'`
17260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17261 $as_echo "$ac_res" >&6; }
17262 eval result=\$gl_cv_bitsizeof_${gltype}
17263 if test $result = unknown; then
17266 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17267 cat >>confdefs.h <<_ACEOF
17268 #define BITSIZEOF_${GLTYPE} $result
17271 eval BITSIZEOF_${GLTYPE}=\$result
17280 for gltype in sig_atomic_t wchar_t wint_t ; do
17281 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
17282 $as_echo_n "checking whether $gltype is signed... " >&6; }
17283 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
17284 $as_echo_n "(cached) " >&6
17286 cat >conftest.$ac_ext <<_ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17293 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17294 included before <wchar.h>. */
17295 #include <stddef.h>
17296 #include <signal.h>
17298 # include <stdio.h>
17300 # include <wchar.h>
17303 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17312 rm -f conftest.$ac_objext
17313 if { (ac_try="$ac_compile"
17314 case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17319 $as_echo "$ac_try_echo") >&5
17320 (eval "$ac_compile") 2>conftest.er1
17322 grep -v '^ *+' conftest.er1 >conftest.err
17324 cat conftest.err >&5
17325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } && {
17327 test -z "$ac_c_werror_flag" ||
17328 test ! -s conftest.err
17329 } && test -s conftest.$ac_objext; then
17332 $as_echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339 eval gl_cv_type_${gltype}_signed=\$result
17342 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
17343 $as_echo "$as_val"'`
17344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17345 $as_echo "$ac_res" >&6; }
17346 eval result=\$gl_cv_type_${gltype}_signed
17347 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17348 if test "$result" = yes; then
17349 cat >>confdefs.h <<_ACEOF
17350 #define HAVE_SIGNED_${GLTYPE} 1
17353 eval HAVE_SIGNED_${GLTYPE}=1
17355 eval HAVE_SIGNED_${GLTYPE}=0
17360 gl_cv_type_ptrdiff_t_signed=yes
17361 gl_cv_type_size_t_signed=no
17369 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
17370 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
17371 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17372 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
17373 $as_echo_n "(cached) " >&6
17375 eval gl_cv_type_${gltype}_suffix=no
17376 eval result=\$gl_cv_type_${gltype}_signed
17377 if test "$result" = yes; then
17382 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17384 '') gltype1='int';;
17385 l) gltype1='long int';;
17386 ll) gltype1='long long int';;
17387 i64) gltype1='__int64';;
17388 u) gltype1='unsigned int';;
17389 ul) gltype1='unsigned long int';;
17390 ull) gltype1='unsigned long long int';;
17391 ui64)gltype1='unsigned __int64';;
17393 cat >conftest.$ac_ext <<_ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17400 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17401 included before <wchar.h>. */
17402 #include <stddef.h>
17403 #include <signal.h>
17405 # include <stdio.h>
17407 # include <wchar.h>
17410 extern $gltype foo;
17411 extern $gltype1 foo;
17420 rm -f conftest.$ac_objext
17421 if { (ac_try="$ac_compile"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17427 $as_echo "$ac_try_echo") >&5
17428 (eval "$ac_compile") 2>conftest.er1
17430 grep -v '^ *+' conftest.er1 >conftest.err
17432 cat conftest.err >&5
17433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } && {
17435 test -z "$ac_c_werror_flag" ||
17436 test ! -s conftest.err
17437 } && test -s conftest.$ac_objext; then
17438 eval gl_cv_type_${gltype}_suffix=\$glsuf
17440 $as_echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 eval result=\$gl_cv_type_${gltype}_suffix
17448 test "$result" != no && break
17451 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
17452 $as_echo "$as_val"'`
17453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17454 $as_echo "$ac_res" >&6; }
17455 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17456 eval result=\$gl_cv_type_${gltype}_suffix
17457 test "$result" = no && result=
17458 eval ${GLTYPE}_SUFFIX=\$result
17459 cat >>confdefs.h <<_ACEOF
17460 #define ${GLTYPE}_SUFFIX $result
17484 if test $gl_cv_have_include_next = yes; then
17485 gl_cv_next_stdio_h='<'stdio.h'>'
17487 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
17488 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17489 if test "${gl_cv_next_stdio_h+set}" = set; then
17490 $as_echo_n "(cached) " >&6
17493 if test $ac_cv_header_stdio_h = yes; then
17494 cat >conftest.$ac_ext <<_ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17503 gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17504 sed -n '\#/stdio.h#{
17505 s#.*"\(.*/stdio.h\)".*#\1#
17511 gl_cv_next_stdio_h='<'stdio.h'>'
17515 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
17516 $as_echo "$gl_cv_next_stdio_h" >&6; }
17518 NEXT_STDIO_H=$gl_cv_next_stdio_h
17536 if test $gl_cv_have_include_next = yes; then
17537 gl_cv_next_stdlib_h='<'stdlib.h'>'
17539 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
17540 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17541 if test "${gl_cv_next_stdlib_h+set}" = set; then
17542 $as_echo_n "(cached) " >&6
17545 if test $ac_cv_header_stdlib_h = yes; then
17546 cat >conftest.$ac_ext <<_ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17552 #include <stdlib.h>
17555 gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17556 sed -n '\#/stdlib.h#{
17557 s#.*"\(.*/stdlib.h\)".*#\1#
17563 gl_cv_next_stdlib_h='<'stdlib.h'>'
17567 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
17568 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17570 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17585 for ac_func in strdup
17587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17588 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17589 $as_echo_n "checking for $ac_func... " >&6; }
17590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17591 $as_echo_n "(cached) " >&6
17593 cat >conftest.$ac_ext <<_ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17601 #define $ac_func innocuous_$ac_func
17603 /* System header to define __stub macros and hopefully few prototypes,
17604 which can conflict with char $ac_func (); below.
17605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17606 <limits.h> exists even on freestanding compilers. */
17609 # include <limits.h>
17611 # include <assert.h>
17616 /* Override any GCC internal prototype to avoid an error.
17617 Use char because int might match the return type of a GCC
17618 builtin and then its argument prototype would still apply. */
17623 /* The GNU C library defines this for functions which it implements
17624 to always fail with ENOSYS. Some functions are actually named
17625 something starting with __ and the normal name is an alias. */
17626 #if defined __stub_$ac_func || defined __stub___$ac_func
17633 return $ac_func ();
17638 rm -f conftest.$ac_objext conftest$ac_exeext
17639 if { (ac_try="$ac_link"
17640 case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17645 $as_echo "$ac_try_echo") >&5
17646 (eval "$ac_link") 2>conftest.er1
17648 grep -v '^ *+' conftest.er1 >conftest.err
17650 cat conftest.err >&5
17651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } && {
17653 test -z "$ac_c_werror_flag" ||
17654 test ! -s conftest.err
17655 } && test -s conftest$ac_exeext && {
17656 test "$cross_compiling" = yes ||
17657 $as_test_x conftest$ac_exeext
17659 eval "$as_ac_var=yes"
17661 $as_echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 eval "$as_ac_var=no"
17667 rm -rf conftest.dSYM
17668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17669 conftest$ac_exeext conftest.$ac_ext
17671 ac_res=`eval 'as_val=${'$as_ac_var'}
17672 $as_echo "$as_val"'`
17673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17674 $as_echo "$ac_res" >&6; }
17675 as_val=`eval 'as_val=${'$as_ac_var'}
17676 $as_echo "$as_val"'`
17677 if test "x$as_val" = x""yes; then
17678 cat >>confdefs.h <<_ACEOF
17679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17684 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17697 if test $ac_cv_have_decl_strdup = no; then
17710 { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
17711 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
17712 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
17713 $as_echo_n "(cached) " >&6
17716 cat >conftest.$ac_ext <<_ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17722 #include <sys/socket.h>
17731 rm -f conftest.$ac_objext
17732 if { (ac_try="$ac_compile"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17738 $as_echo "$ac_try_echo") >&5
17739 (eval "$ac_compile") 2>conftest.er1
17741 grep -v '^ *+' conftest.er1 >conftest.err
17743 cat conftest.err >&5
17744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } && {
17746 test -z "$ac_c_werror_flag" ||
17747 test ! -s conftest.err
17748 } && test -s conftest.$ac_objext; then
17749 gl_cv_header_sys_socket_h_selfcontained=yes
17751 $as_echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17754 gl_cv_header_sys_socket_h_selfcontained=no
17757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17760 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
17761 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
17762 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
17765 SYS_SOCKET_H='sys/socket.h'
17778 if test $gl_cv_have_include_next = yes; then
17779 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
17781 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
17782 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
17783 if test "${gl_cv_next_sys_socket_h+set}" = set; then
17784 $as_echo_n "(cached) " >&6
17787 if test $ac_cv_header_sys_socket_h = yes; then
17788 cat >conftest.$ac_ext <<_ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17794 #include <sys/socket.h>
17797 gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17798 sed -n '\#/sys/socket.h#{
17799 s#.*"\(.*/sys/socket.h\)".*#\1#
17805 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
17809 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
17810 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
17812 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
17816 if test $ac_cv_header_sys_socket_h = yes; then
17817 HAVE_SYS_SOCKET_H=1
17821 HAVE_SYS_SOCKET_H=0
17824 for ac_header in winsock2.h ws2tcpip.h
17826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17829 $as_echo_n "checking for $ac_header... " >&6; }
17830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17831 $as_echo_n "(cached) " >&6
17833 ac_res=`eval 'as_val=${'$as_ac_Header'}
17834 $as_echo "$as_val"'`
17835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17836 $as_echo "$ac_res" >&6; }
17838 # Is the header compilable?
17839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17840 $as_echo_n "checking $ac_header usability... " >&6; }
17841 cat >conftest.$ac_ext <<_ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17847 $ac_includes_default
17848 #include <$ac_header>
17850 rm -f conftest.$ac_objext
17851 if { (ac_try="$ac_compile"
17852 case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17857 $as_echo "$ac_try_echo") >&5
17858 (eval "$ac_compile") 2>conftest.er1
17860 grep -v '^ *+' conftest.er1 >conftest.err
17862 cat conftest.err >&5
17863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } && {
17865 test -z "$ac_c_werror_flag" ||
17866 test ! -s conftest.err
17867 } && test -s conftest.$ac_objext; then
17868 ac_header_compiler=yes
17870 $as_echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17873 ac_header_compiler=no
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17878 $as_echo "$ac_header_compiler" >&6; }
17880 # Is the header present?
17881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17882 $as_echo_n "checking $ac_header presence... " >&6; }
17883 cat >conftest.$ac_ext <<_ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17889 #include <$ac_header>
17891 if { (ac_try="$ac_cpp conftest.$ac_ext"
17892 case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17897 $as_echo "$ac_try_echo") >&5
17898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } >/dev/null && {
17905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17908 ac_header_preproc=yes
17910 $as_echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_header_preproc=no
17916 rm -f conftest.err conftest.$ac_ext
17917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17918 $as_echo "$ac_header_preproc" >&6; }
17920 # So? What about this header?
17921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17927 ac_header_preproc=yes
17930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17933 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17937 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17946 $as_echo_n "checking for $ac_header... " >&6; }
17947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17948 $as_echo_n "(cached) " >&6
17950 eval "$as_ac_Header=\$ac_header_preproc"
17952 ac_res=`eval 'as_val=${'$as_ac_Header'}
17953 $as_echo "$as_val"'`
17954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17955 $as_echo "$ac_res" >&6; }
17958 as_val=`eval 'as_val=${'$as_ac_Header'}
17959 $as_echo "$as_val"'`
17960 if test "x$as_val" = x""yes; then
17961 cat >>confdefs.h <<_ACEOF
17962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17969 if test $ac_cv_header_winsock2_h = yes; then
17974 if test $ac_cv_header_ws2tcpip_h = yes; then
17986 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
17987 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
17988 if test -z "$MKDIR_P"; then
17989 if test "${ac_cv_path_mkdir+set}" = set; then
17990 $as_echo_n "(cached) " >&6
17992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17993 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
17996 test -z "$as_dir" && as_dir=.
17997 for ac_prog in mkdir gmkdir; do
17998 for ac_exec_ext in '' $ac_executable_extensions; do
17999 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18000 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18001 'mkdir (GNU coreutils) '* | \
18002 'mkdir (coreutils) '* | \
18003 'mkdir (fileutils) '4.1*)
18004 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18014 if test "${ac_cv_path_mkdir+set}" = set; then
18015 MKDIR_P="$ac_cv_path_mkdir -p"
18017 # As a last resort, use the slow shell script. Don't cache a
18018 # value for MKDIR_P within a source directory, because that will
18019 # break other packages using the cache if that directory is
18020 # removed, or if the value is a relative name.
18021 test -d ./--version && rmdir ./--version
18022 MKDIR_P="$ac_install_sh -d"
18025 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18026 $as_echo "$MKDIR_P" >&6; }
18036 if test $ac_cv_func_lstat = yes; then
18043 { $as_echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
18044 $as_echo_n "checking whether mkdir is declared... " >&6; }
18045 if test "${ac_cv_have_decl_mkdir+set}" = set; then
18046 $as_echo_n "(cached) " >&6
18048 cat >conftest.$ac_ext <<_ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 #include <sys/stat.h>
18067 rm -f conftest.$ac_objext
18068 if { (ac_try="$ac_compile"
18069 case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18074 $as_echo "$ac_try_echo") >&5
18075 (eval "$ac_compile") 2>conftest.er1
18077 grep -v '^ *+' conftest.er1 >conftest.err
18079 cat conftest.err >&5
18080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } && {
18082 test -z "$ac_c_werror_flag" ||
18083 test ! -s conftest.err
18084 } && test -s conftest.$ac_objext; then
18085 ac_cv_have_decl_mkdir=yes
18087 $as_echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_cv_have_decl_mkdir=no
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
18096 $as_echo "$ac_cv_have_decl_mkdir" >&6; }
18097 if test "x$ac_cv_have_decl_mkdir" = x""yes; then
18099 cat >>confdefs.h <<_ACEOF
18100 #define HAVE_DECL_MKDIR 1
18105 cat >>confdefs.h <<_ACEOF
18106 #define HAVE_DECL_MKDIR 0
18110 for ac_header in io.h
18112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18114 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18115 $as_echo_n "checking for $ac_header... " >&6; }
18116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18117 $as_echo_n "(cached) " >&6
18119 ac_res=`eval 'as_val=${'$as_ac_Header'}
18120 $as_echo "$as_val"'`
18121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18122 $as_echo "$ac_res" >&6; }
18124 # Is the header compilable?
18125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18126 $as_echo_n "checking $ac_header usability... " >&6; }
18127 cat >conftest.$ac_ext <<_ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 $ac_includes_default
18134 #include <$ac_header>
18136 rm -f conftest.$ac_objext
18137 if { (ac_try="$ac_compile"
18138 case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18143 $as_echo "$ac_try_echo") >&5
18144 (eval "$ac_compile") 2>conftest.er1
18146 grep -v '^ *+' conftest.er1 >conftest.err
18148 cat conftest.err >&5
18149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } && {
18151 test -z "$ac_c_werror_flag" ||
18152 test ! -s conftest.err
18153 } && test -s conftest.$ac_objext; then
18154 ac_header_compiler=yes
18156 $as_echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 ac_header_compiler=no
18162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18164 $as_echo "$ac_header_compiler" >&6; }
18166 # Is the header present?
18167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18168 $as_echo_n "checking $ac_header presence... " >&6; }
18169 cat >conftest.$ac_ext <<_ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 #include <$ac_header>
18177 if { (ac_try="$ac_cpp conftest.$ac_ext"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18183 $as_echo "$ac_try_echo") >&5
18184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18186 grep -v '^ *+' conftest.er1 >conftest.err
18188 cat conftest.err >&5
18189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } >/dev/null && {
18191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18192 test ! -s conftest.err
18194 ac_header_preproc=yes
18196 $as_echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 ac_header_preproc=no
18202 rm -f conftest.err conftest.$ac_ext
18203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18204 $as_echo "$ac_header_preproc" >&6; }
18206 # So? What about this header?
18207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18213 ac_header_preproc=yes
18216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18219 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18223 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18232 $as_echo_n "checking for $ac_header... " >&6; }
18233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18234 $as_echo_n "(cached) " >&6
18236 eval "$as_ac_Header=\$ac_header_preproc"
18238 ac_res=`eval 'as_val=${'$as_ac_Header'}
18239 $as_echo "$as_val"'`
18240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18241 $as_echo "$ac_res" >&6; }
18244 as_val=`eval 'as_val=${'$as_ac_Header'}
18245 $as_echo "$as_val"'`
18246 if test "x$as_val" = x""yes; then
18247 cat >>confdefs.h <<_ACEOF
18248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18258 if test $ac_cv_have_decl_mkdir = yes; then
18264 if test "$ac_cv_header_io_h" = yes; then
18285 if test $gl_cv_have_include_next = yes; then
18286 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18288 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
18289 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18290 if test "${gl_cv_next_sys_stat_h+set}" = set; then
18291 $as_echo_n "(cached) " >&6
18294 if test $ac_cv_header_sys_stat_h = yes; then
18295 cat >conftest.$ac_ext <<_ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18301 #include <sys/stat.h>
18304 gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18305 sed -n '\#/sys/stat.h#{
18306 s#.*"\(.*/sys/stat.h\)".*#\1#
18312 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18316 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
18317 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18319 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18323 SYS_STAT_H='sys/stat.h'
18326 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18327 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18328 if test -z "$MKDIR_P"; then
18329 if test "${ac_cv_path_mkdir+set}" = set; then
18330 $as_echo_n "(cached) " >&6
18332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18336 test -z "$as_dir" && as_dir=.
18337 for ac_prog in mkdir gmkdir; do
18338 for ac_exec_ext in '' $ac_executable_extensions; do
18339 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18340 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18341 'mkdir (GNU coreutils) '* | \
18342 'mkdir (coreutils) '* | \
18343 'mkdir (fileutils) '4.1*)
18344 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18354 if test "${ac_cv_path_mkdir+set}" = set; then
18355 MKDIR_P="$ac_cv_path_mkdir -p"
18357 # As a last resort, use the slow shell script. Don't cache a
18358 # value for MKDIR_P within a source directory, because that will
18359 # break other packages using the cache if that directory is
18360 # removed, or if the value is a relative name.
18361 test -d ./--version && rmdir ./--version
18362 MKDIR_P="$ac_install_sh -d"
18365 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18366 $as_echo "$MKDIR_P" >&6; }
18371 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18372 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18373 if test -z "$MKDIR_P"; then
18374 if test "${ac_cv_path_mkdir+set}" = set; then
18375 $as_echo_n "(cached) " >&6
18377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18378 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18381 test -z "$as_dir" && as_dir=.
18382 for ac_prog in mkdir gmkdir; do
18383 for ac_exec_ext in '' $ac_executable_extensions; do
18384 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18385 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18386 'mkdir (GNU coreutils) '* | \
18387 'mkdir (coreutils) '* | \
18388 'mkdir (fileutils) '4.1*)
18389 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18399 if test "${ac_cv_path_mkdir+set}" = set; then
18400 MKDIR_P="$ac_cv_path_mkdir -p"
18402 # As a last resort, use the slow shell script. Don't cache a
18403 # value for MKDIR_P within a source directory, because that will
18404 # break other packages using the cache if that directory is
18405 # removed, or if the value is a relative name.
18406 test -d ./--version && rmdir ./--version
18407 MKDIR_P="$ac_install_sh -d"
18410 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18411 $as_echo "$MKDIR_P" >&6; }
18423 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
18443 if test $gl_cv_have_include_next = yes; then
18444 gl_cv_next_unistd_h='<'unistd.h'>'
18446 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
18447 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18448 if test "${gl_cv_next_unistd_h+set}" = set; then
18449 $as_echo_n "(cached) " >&6
18452 if test $ac_cv_header_unistd_h = yes; then
18453 cat >conftest.$ac_ext <<_ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459 #include <unistd.h>
18462 gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18463 sed -n '\#/unistd.h#{
18464 s#.*"\(.*/unistd.h\)".*#\1#
18470 gl_cv_next_unistd_h='<'unistd.h'>'
18474 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
18475 $as_echo "$gl_cv_next_unistd_h" >&6; }
18477 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18489 if test $ac_cv_header_unistd_h = yes; then
18505 if test $ac_cv_func_vasnprintf = no; then
18521 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18530 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18539 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18548 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18550 if test $ac_cv_func_vasnprintf = yes; then
18552 cat >>confdefs.h <<\_ACEOF
18553 #define REPLACE_VASNPRINTF 1
18567 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
18568 $as_echo_n "checking for ptrdiff_t... " >&6; }
18569 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
18570 $as_echo_n "(cached) " >&6
18572 ac_cv_type_ptrdiff_t=no
18573 cat >conftest.$ac_ext <<_ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18579 $ac_includes_default
18583 if (sizeof (ptrdiff_t))
18589 rm -f conftest.$ac_objext
18590 if { (ac_try="$ac_compile"
18591 case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18596 $as_echo "$ac_try_echo") >&5
18597 (eval "$ac_compile") 2>conftest.er1
18599 grep -v '^ *+' conftest.er1 >conftest.err
18601 cat conftest.err >&5
18602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } && {
18604 test -z "$ac_c_werror_flag" ||
18605 test ! -s conftest.err
18606 } && test -s conftest.$ac_objext; then
18607 cat >conftest.$ac_ext <<_ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18613 $ac_includes_default
18617 if (sizeof ((ptrdiff_t)))
18623 rm -f conftest.$ac_objext
18624 if { (ac_try="$ac_compile"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18630 $as_echo "$ac_try_echo") >&5
18631 (eval "$ac_compile") 2>conftest.er1
18633 grep -v '^ *+' conftest.er1 >conftest.err
18635 cat conftest.err >&5
18636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest.$ac_objext; then
18643 $as_echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 ac_cv_type_ptrdiff_t=yes
18649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18651 $as_echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18659 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
18660 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
18661 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
18665 cat >>confdefs.h <<\_ACEOF
18666 #define ptrdiff_t long
18681 for ac_func in snprintf wcslen
18683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18684 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18685 $as_echo_n "checking for $ac_func... " >&6; }
18686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18687 $as_echo_n "(cached) " >&6
18689 cat >conftest.$ac_ext <<_ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18697 #define $ac_func innocuous_$ac_func
18699 /* System header to define __stub macros and hopefully few prototypes,
18700 which can conflict with char $ac_func (); below.
18701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18702 <limits.h> exists even on freestanding compilers. */
18705 # include <limits.h>
18707 # include <assert.h>
18712 /* Override any GCC internal prototype to avoid an error.
18713 Use char because int might match the return type of a GCC
18714 builtin and then its argument prototype would still apply. */
18719 /* The GNU C library defines this for functions which it implements
18720 to always fail with ENOSYS. Some functions are actually named
18721 something starting with __ and the normal name is an alias. */
18722 #if defined __stub_$ac_func || defined __stub___$ac_func
18729 return $ac_func ();
18734 rm -f conftest.$ac_objext conftest$ac_exeext
18735 if { (ac_try="$ac_link"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18741 $as_echo "$ac_try_echo") >&5
18742 (eval "$ac_link") 2>conftest.er1
18744 grep -v '^ *+' conftest.er1 >conftest.err
18746 cat conftest.err >&5
18747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } && {
18749 test -z "$ac_c_werror_flag" ||
18750 test ! -s conftest.err
18751 } && test -s conftest$ac_exeext && {
18752 test "$cross_compiling" = yes ||
18753 $as_test_x conftest$ac_exeext
18755 eval "$as_ac_var=yes"
18757 $as_echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18760 eval "$as_ac_var=no"
18763 rm -rf conftest.dSYM
18764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18765 conftest$ac_exeext conftest.$ac_ext
18767 ac_res=`eval 'as_val=${'$as_ac_var'}
18768 $as_echo "$as_val"'`
18769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18770 $as_echo "$ac_res" >&6; }
18771 as_val=`eval 'as_val=${'$as_ac_var'}
18772 $as_echo "$as_val"'`
18773 if test "x$as_val" = x""yes; then
18774 cat >>confdefs.h <<_ACEOF
18775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18781 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
18782 $as_echo_n "checking whether _snprintf is declared... " >&6; }
18783 if test "${ac_cv_have_decl__snprintf+set}" = set; then
18784 $as_echo_n "(cached) " >&6
18786 cat >conftest.$ac_ext <<_ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18805 rm -f conftest.$ac_objext
18806 if { (ac_try="$ac_compile"
18807 case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18812 $as_echo "$ac_try_echo") >&5
18813 (eval "$ac_compile") 2>conftest.er1
18815 grep -v '^ *+' conftest.er1 >conftest.err
18817 cat conftest.err >&5
18818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } && {
18820 test -z "$ac_c_werror_flag" ||
18821 test ! -s conftest.err
18822 } && test -s conftest.$ac_objext; then
18823 ac_cv_have_decl__snprintf=yes
18825 $as_echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828 ac_cv_have_decl__snprintf=no
18831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18833 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
18834 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
18835 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
18837 cat >>confdefs.h <<_ACEOF
18838 #define HAVE_DECL__SNPRINTF 1
18843 cat >>confdefs.h <<_ACEOF
18844 #define HAVE_DECL__SNPRINTF 0
18861 if test -n "$GCC"; then
18862 { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
18863 $as_echo_n "checking for simple visibility declarations... " >&6; }
18864 if test "${gl_cv_cc_visibility+set}" = set; then
18865 $as_echo_n "(cached) " >&6
18868 gl_save_CFLAGS="$CFLAGS"
18869 CFLAGS="$CFLAGS -fvisibility=hidden"
18870 cat >conftest.$ac_ext <<_ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
18877 extern __attribute__((__visibility__("default"))) int exportedvar;
18878 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
18879 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
18888 rm -f conftest.$ac_objext
18889 if { (ac_try="$ac_compile"
18890 case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18895 $as_echo "$ac_try_echo") >&5
18896 (eval "$ac_compile") 2>conftest.er1
18898 grep -v '^ *+' conftest.er1 >conftest.err
18900 cat conftest.err >&5
18901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } && {
18903 test -z "$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 } && test -s conftest.$ac_objext; then
18906 gl_cv_cc_visibility=yes
18908 $as_echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18911 gl_cv_cc_visibility=no
18914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18915 CFLAGS="$gl_save_CFLAGS"
18918 { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
18919 $as_echo "$gl_cv_cc_visibility" >&6; }
18920 if test $gl_cv_cc_visibility = yes; then
18921 CFLAG_VISIBILITY="-fvisibility=hidden"
18928 cat >>confdefs.h <<_ACEOF
18929 #define HAVE_VISIBILITY $HAVE_VISIBILITY
18935 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
18936 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
18937 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
18938 $as_echo_n "(cached) " >&6
18940 cat >conftest.$ac_ext <<_ACEOF
18944 rm -f conftest.$ac_objext
18945 if { (ac_try="$ac_compile"
18946 case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18951 $as_echo "$ac_try_echo") >&5
18952 (eval "$ac_compile") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest.$ac_objext; then
18962 gl_cv_header_wchar_h_standalone=yes
18964 $as_echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 gl_cv_header_wchar_h_standalone=no
18970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18972 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
18973 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
18974 if test $gl_cv_header_wchar_h_standalone != yes; then
18985 if test $ac_cv_header_wchar_h = yes; then
19002 if test $gl_cv_have_include_next = yes; then
19003 gl_cv_next_wchar_h='<'wchar.h'>'
19005 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
19006 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19007 if test "${gl_cv_next_wchar_h+set}" = set; then
19008 $as_echo_n "(cached) " >&6
19011 if test $ac_cv_header_wchar_h = yes; then
19012 cat >conftest.$ac_ext <<_ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19021 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19022 sed -n '\#/wchar.h#{
19023 s#.*"\(.*/wchar.h\)".*#\1#
19029 gl_cv_next_wchar_h='<'wchar.h'>'
19033 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
19034 $as_echo "$gl_cv_next_wchar_h" >&6; }
19036 NEXT_WCHAR_H=$gl_cv_next_wchar_h
19045 for ac_header in stdint.h
19047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19049 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19050 $as_echo_n "checking for $ac_header... " >&6; }
19051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19052 $as_echo_n "(cached) " >&6
19054 ac_res=`eval 'as_val=${'$as_ac_Header'}
19055 $as_echo "$as_val"'`
19056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19057 $as_echo "$ac_res" >&6; }
19059 # Is the header compilable?
19060 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19061 $as_echo_n "checking $ac_header usability... " >&6; }
19062 cat >conftest.$ac_ext <<_ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19068 $ac_includes_default
19069 #include <$ac_header>
19071 rm -f conftest.$ac_objext
19072 if { (ac_try="$ac_compile"
19073 case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19078 $as_echo "$ac_try_echo") >&5
19079 (eval "$ac_compile") 2>conftest.er1
19081 grep -v '^ *+' conftest.er1 >conftest.err
19083 cat conftest.err >&5
19084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } && {
19086 test -z "$ac_c_werror_flag" ||
19087 test ! -s conftest.err
19088 } && test -s conftest.$ac_objext; then
19089 ac_header_compiler=yes
19091 $as_echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 ac_header_compiler=no
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19099 $as_echo "$ac_header_compiler" >&6; }
19101 # Is the header present?
19102 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19103 $as_echo_n "checking $ac_header presence... " >&6; }
19104 cat >conftest.$ac_ext <<_ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19110 #include <$ac_header>
19112 if { (ac_try="$ac_cpp conftest.$ac_ext"
19113 case "(($ac_try" in
19114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115 *) ac_try_echo=$ac_try;;
19117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19118 $as_echo "$ac_try_echo") >&5
19119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19121 grep -v '^ *+' conftest.er1 >conftest.err
19123 cat conftest.err >&5
19124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } >/dev/null && {
19126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19127 test ! -s conftest.err
19129 ac_header_preproc=yes
19131 $as_echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19134 ac_header_preproc=no
19137 rm -f conftest.err conftest.$ac_ext
19138 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19139 $as_echo "$ac_header_preproc" >&6; }
19141 # So? What about this header?
19142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19145 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19147 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19148 ac_header_preproc=yes
19151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19152 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19154 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19156 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19158 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19162 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19167 $as_echo_n "checking for $ac_header... " >&6; }
19168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19169 $as_echo_n "(cached) " >&6
19171 eval "$as_ac_Header=\$ac_header_preproc"
19173 ac_res=`eval 'as_val=${'$as_ac_Header'}
19174 $as_echo "$as_val"'`
19175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19176 $as_echo "$ac_res" >&6; }
19179 as_val=`eval 'as_val=${'$as_ac_Header'}
19180 $as_echo "$as_val"'`
19181 if test "x$as_val" = x""yes; then
19182 cat >>confdefs.h <<_ACEOF
19183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19200 gl_source_base='tests'
19209 # support deprecated ./configure flags to set various compiler flags
19212 # Check whether --with-cflags was given.
19213 if test "${with_cflags+set}" = set; then
19214 withval=$with_cflags;
19216 "" | y | ye | yes | n | no)
19217 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
19218 $as_echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
19219 { (exit 1); exit 1; }; }
19229 # Check whether --with-includes was given.
19230 if test "${with_includes+set}" = set; then
19231 withval=$with_includes;
19233 "" | y | ye | yes | n | no)
19234 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
19235 $as_echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
19236 { (exit 1); exit 1; }; }
19240 for dir in $withval; do
19241 if test -d "$dir"; then
19242 CPPFLAGS="$CPPFLAGS -I$dir"
19245 { $as_echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
19246 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
19249 cat <<AAW_EOF >>config.warnings
19250 Include directory $dir does not exist.
19261 # Check whether --with-libraries was given.
19262 if test "${with_libraries+set}" = set; then
19263 withval=$with_libraries;
19265 "" | y | ye | yes | n | no)
19266 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
19267 $as_echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
19268 { (exit 1); exit 1; }; }
19272 for dir in $withval; do
19273 if test -d "$dir"; then
19275 *-solaris2*,*-netbsd*)
19276 LDFLAGS="$LDFLAGS -R$dir"
19279 LDFLAGS="$LDFLAGS -L$dir"
19282 { $as_echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
19283 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
19286 cat <<AAW_EOF >>config.warnings
19287 Library directory $dir does not exist.
19297 # Disable strict-aliasing optimizations
19299 # test for -W'feature', then add the 'no-' version.
19303 { $as_echo "$as_me:$LINENO: checking for gcc flag -fstrict-aliasing" >&5
19304 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
19305 if test "x$GCC" = "xyes"; then
19306 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19307 $CC -v --help 2>&1) |
19308 $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
19309 if test $? -eq 0; then
19311 { $as_echo "$as_me:$LINENO: result: yes" >&5
19312 $as_echo "yes" >&6; }
19315 { $as_echo "$as_me:$LINENO: result: no" >&5
19316 $as_echo "no" >&6; }
19320 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19321 $as_echo "no (not using gcc)" >&6; }
19324 if test x"$found_warning" = x"yes"; then
19325 CFLAGS="$CFLAGS -fno-strict-aliasing"
19327 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
19336 # Warn for just about everything
19341 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
19342 $as_echo_n "checking for gcc flag -Wall... " >&6; }
19343 if test "x$GCC" = "xyes"; then
19344 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19345 $CC -v --help 2>&1) |
19346 $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
19347 if test $? -eq 0; then
19349 { $as_echo "$as_me:$LINENO: result: yes" >&5
19350 $as_echo "yes" >&6; }
19353 { $as_echo "$as_me:$LINENO: result: no" >&5
19354 $as_echo "no" >&6; }
19358 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19359 $as_echo "no (not using gcc)" >&6; }
19362 if test x"$found_warning" = x"yes"; then
19363 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
19372 # And add any extra warnings too
19376 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
19377 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
19378 if test "x$GCC" = "xyes"; then
19379 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19380 $CC -v --help 2>&1) |
19381 $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
19382 if test $? -eq 0; then
19384 { $as_echo "$as_me:$LINENO: result: yes" >&5
19385 $as_echo "yes" >&6; }
19388 { $as_echo "$as_me:$LINENO: result: no" >&5
19389 $as_echo "no" >&6; }
19393 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19394 $as_echo "no (not using gcc)" >&6; }
19397 if test x"$found_warning" = x"yes"; then
19398 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
19405 { $as_echo "$as_me:$LINENO: checking for gcc flag -W" >&5
19406 $as_echo_n "checking for gcc flag -W... " >&6; }
19407 if test "x$GCC" = "xyes"; then
19408 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19409 $CC -v --help 2>&1) |
19410 $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
19411 if test $? -eq 0; then
19413 { $as_echo "$as_me:$LINENO: result: yes" >&5
19414 $as_echo "yes" >&6; }
19417 { $as_echo "$as_me:$LINENO: result: no" >&5
19418 $as_echo "no" >&6; }
19422 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19423 $as_echo "no (not using gcc)" >&6; }
19426 if test x"$found_warning" = x"yes"; then
19427 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
19439 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19444 # Configuration flags (--with-xxx and --enable-xxx)
19449 # Check whether --with-user was given.
19450 if test "${with_user+set}" = set; then
19451 withval=$with_user;
19453 "" | y | ye | yes | n | no)
19454 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
19455 $as_echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
19456 { (exit 1); exit 1; }; }
19459 CLIENT_LOGIN="$withval"
19466 { $as_echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
19467 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
19470 cat <<AAW_EOF >>config.warnings
19471 no user specified (--with-user) -- using 'amanda'
19475 CLIENT_LOGIN=amanda
19482 cat >>confdefs.h <<_ACEOF
19483 #define CLIENT_LOGIN "$CLIENT_LOGIN"
19490 # Check whether --with-group was given.
19491 if test "${with_group+set}" = set; then
19492 withval=$with_group;
19494 "" | y | ye | yes | n | no)
19495 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
19496 $as_echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
19497 { (exit 1); exit 1; }; }
19499 *) SETUID_GROUP="$withval"
19506 { $as_echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
19507 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
19510 cat <<AAW_EOF >>config.warnings
19511 no group specified (--with-group) -- using 'backup'
19515 CLIENT_LOGIN=backup
19524 # Check whether --with-dumperdir was given.
19525 if test "${with_dumperdir+set}" = set; then
19526 withval=$with_dumperdir;
19528 { $as_echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
19529 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
19532 cat <<AAW_EOF >>config.warnings
19533 --with-dumperdir is no longer used.
19544 # Check whether --with-configdir was given.
19545 if test "${with_configdir+set}" = set; then
19546 withval=$with_configdir;
19548 "" | y | ye | yes | n | no)
19549 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
19550 $as_echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
19551 { (exit 1); exit 1; }; }
19553 *) CONFIG_DIR="$withval"
19559 : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
19567 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19568 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19569 eval ac_define_dir="\"$CONFIG_DIR\""
19570 eval ac_define_dir="\"$ac_define_dir\""
19571 CONFIG_DIR="$ac_define_dir"
19574 cat >>confdefs.h <<_ACEOF
19575 #define CONFIG_DIR "$ac_define_dir"
19578 test "$prefix_NONE" && prefix=NONE
19579 test "$exec_prefix_NONE" && exec_prefix=NONE
19584 # Check whether --with-indexdir was given.
19585 if test "${with_indexdir+set}" = set; then
19586 withval=$with_indexdir; { { $as_echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
19587 $as_echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
19588 { (exit 1); exit 1; }; }
19595 # Check whether --with-dbdir was given.
19596 if test "${with_dbdir+set}" = set; then
19597 withval=$with_dbdir; { { $as_echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
19598 $as_echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
19599 { (exit 1); exit 1; }; }
19606 # Check whether --with-logdir was given.
19607 if test "${with_logdir+set}" = set; then
19608 withval=$with_logdir; { { $as_echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
19609 $as_echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
19610 { (exit 1); exit 1; }; }
19617 # Check whether --with-suffixes was given.
19618 if test "${with_suffixes+set}" = set; then
19619 withval=$with_suffixes; USE_VERSION_SUFFIXES=$withval
19621 : ${USE_VERSION_SUFFIXES=no}
19626 case "$USE_VERSION_SUFFIXES" in
19627 y | ye | yes) USE_VERSION_SUFFIXES=yes
19629 cat >>confdefs.h <<\_ACEOF
19630 #define USE_VERSION_SUFFIXES 1
19634 program_suffix="-$VERSION_SUFFIX"
19635 # This is from the output of configure.in.
19636 if test "x$program_transform_name" = xs,x,x,; then
19637 program_transform_name=
19639 # Double any \ or $. echo might interpret backslashes.
19640 cat <<\EOF_SED > conftestsed
19641 s,\\,\\\\,g; s,\$,$$,g
19643 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
19646 test "x$program_prefix" != xNONE &&
19647 program_transform_name="s,^,${program_prefix},; $program_transform_name"
19648 # Use a double $ so make ignores it.
19649 test "x$program_suffix" != xNONE &&
19650 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
19652 # sed with no file args requires a program.
19653 test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
19654 # Remove empty command
19655 cat <<\EOF_SED > conftestsed
19656 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
19658 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
19661 n | no) USE_VERSION_SUFFIXES=no
19663 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
19664 $as_echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
19665 { (exit 1); exit 1; }; }
19673 # Check whether --with-gnutar-listdir was given.
19674 if test "${with_gnutar_listdir+set}" = set; then
19675 withval=$with_gnutar_listdir;
19677 n | no) GNUTAR_LISTDIR= ;;
19678 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
19679 *) GNUTAR_LISTDIR="$withval" ;;
19684 GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
19690 # substitute $prefix, etc. if necessary
19694 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19695 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19696 eval ac_define_dir="\"$GNUTAR_LISTDIR\""
19697 eval ac_define_dir="\"$ac_define_dir\""
19698 GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
19701 cat >>confdefs.h <<_ACEOF
19702 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
19705 test "$prefix_NONE" && prefix=NONE
19706 test "$exec_prefix_NONE" && exec_prefix=NONE
19709 # handle deprecated option
19711 # Check whether --with-gnutar-listed-incremental was given.
19712 if test "${with_gnutar_listed_incremental+set}" = set; then
19713 withval=$with_gnutar_listed_incremental;
19714 { { $as_echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
19715 $as_echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
19716 { (exit 1); exit 1; }; }
19724 # Check whether --with-tmpdir was given.
19725 if test "${with_tmpdir+set}" = set; then
19726 withval=$with_tmpdir;
19738 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
19739 $as_echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
19740 { (exit 1); exit 1; }; };;
19741 y | ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
19742 *) AMANDA_TMPDIR="$tmpdir";;
19748 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19749 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19750 eval ac_define_dir="\"$AMANDA_TMPDIR\""
19751 eval ac_define_dir="\"$ac_define_dir\""
19752 AMANDA_TMPDIR="$ac_define_dir"
19755 cat >>confdefs.h <<_ACEOF
19756 #define AMANDA_TMPDIR "$ac_define_dir"
19759 test "$prefix_NONE" && prefix=NONE
19760 test "$exec_prefix_NONE" && exec_prefix=NONE
19765 # Check whether --with-force-uid was given.
19766 if test "${with_force_uid+set}" = set; then
19767 withval=$with_force_uid; CHECK_USERID="$withval"
19769 : ${CHECK_USERID=yes}
19773 case "$CHECK_USERID" in
19777 cat >>confdefs.h <<\_ACEOF
19778 #define CHECK_USERID 1
19786 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
19787 $as_echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
19788 { (exit 1); exit 1; }; }
19795 # Check whether --with-owner was given.
19796 if test "${with_owner+set}" = set; then
19797 withval=$with_owner;
19799 "" | y | ye | yes | n | no)
19800 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
19801 $as_echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
19802 { (exit 1); exit 1; }; }
19804 *) BINARY_OWNER="$withval"
19810 BINARY_OWNER="$CLIENT_LOGIN"
19816 cat >>confdefs.h <<_ACEOF
19817 #define BINARY_OWNER "$BINARY_OWNER"
19824 # Check whether --with-fqdn was given.
19825 if test "${with_fqdn+set}" = set; then
19826 withval=$with_fqdn; USE_FQDN=$withval
19832 case "$USE_FQDN" in
19836 cat >>confdefs.h <<\_ACEOF
19841 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
19842 $as_echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
19843 { (exit 1); exit 1; }; }
19849 # Check whether --with-reuseports was given.
19850 if test "${with_reuseports+set}" = set; then
19851 withval=$with_reuseports; case "$withval" in
19852 y | ye | yes) USE_REUSEADDR=no;;
19853 n | no) USE_REUSEADDR=yes;;
19854 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
19855 $as_echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
19856 { (exit 1); exit 1; }; };;
19863 if test x"$USE_REUSEADDR" = x"yes"; then
19865 cat >>confdefs.h <<\_ACEOF
19866 #define USE_REUSEADDR 1
19873 # Check whether --with-low-tcpportrange was given.
19874 if test "${with_low_tcpportrange+set}" = set; then
19875 withval=$with_low_tcpportrange; LOW_TCPPORTRANGE="$withval"
19877 LOW_TCPPORTRANGE=unlimited
19881 if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
19882 if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
19883 { { $as_echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
19884 $as_echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
19885 { (exit 1); exit 1; }; }
19887 min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
19888 max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
19889 if test $min_low_tcp_port -gt $max_low_tcp_port; then
19890 { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
19891 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
19892 { (exit 1); exit 1; }; }
19894 if test $min_low_tcp_port -lt 512; then
19896 { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
19897 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
19900 cat <<AAW_EOF >>config.warnings
19901 the low TCP port range should be 512 or greater in --with-low-tcpportrange
19906 if test $max_low_tcp_port -ge 1024; then
19908 { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
19909 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
19912 cat <<AAW_EOF >>config.warnings
19913 the low TCP port range should be less than 1024 in --with-low-tcpportrange
19919 cat >>confdefs.h <<_ACEOF
19920 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
19926 # Check whether --with-tcpportrange was given.
19927 if test "${with_tcpportrange+set}" = set; then
19928 withval=$with_tcpportrange; TCPPORTRANGE="$withval"
19930 TCPPORTRANGE="unlimited"
19934 if test x"$TCPPORTRANGE" != x"unlimited"; then
19935 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
19936 { { $as_echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
19937 $as_echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
19938 { (exit 1); exit 1; }; }
19940 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
19941 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
19942 if test $min_tcp_port -gt $max_tcp_port; then
19943 { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
19944 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
19945 { (exit 1); exit 1; }; }
19947 if test $min_tcp_port -lt 1024; then
19949 { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
19950 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
19953 cat <<AAW_EOF >>config.warnings
19954 the TCP port range should be 1024 or greater in --with-tcpportrange
19959 if test $max_tcp_port -ge 65536; then
19961 { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
19962 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
19965 cat <<AAW_EOF >>config.warnings
19966 the TCP port range should be less than 65536 in --with-tcpportrange
19972 cat >>confdefs.h <<_ACEOF
19973 #define TCPPORTRANGE $TCPPORTRANGE
19979 # Check whether --with-udpportrange was given.
19980 if test "${with_udpportrange+set}" = set; then
19981 withval=$with_udpportrange; UDPPORTRANGE="$withval"
19983 UDPPORTRANGE="unlimited"
19986 if test x"$UDPPORTRANGE" != x"unlimited"; then
19987 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
19988 { { $as_echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
19989 $as_echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
19990 { (exit 1); exit 1; }; }
19992 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
19993 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
19994 if test $min_udp_port -gt $max_udp_port; then
19995 { { $as_echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
19996 $as_echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
19997 { (exit 1); exit 1; }; }
19999 if test $max_udp_port -ge 1024; then
20001 { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
20002 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
20005 cat <<AAW_EOF >>config.warnings
20006 the UDP port range should be less than 1025 in --with-udpportrange
20011 if test $min_udp_port -le 0; then
20013 { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
20014 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
20017 cat <<AAW_EOF >>config.warnings
20018 the UDP port range should be greater than 0 in --with-udpportrange
20024 cat >>confdefs.h <<_ACEOF
20025 #define UDPPORTRANGE $UDPPORTRANGE
20035 # Check whether --with-buffered-dump was given.
20036 if test "${with_buffered_dump+set}" = set; then
20037 withval=$with_buffered_dump; DUMPER_SOCKET_BUFFERING=$withval
20039 DUMPER_SOCKET_BUFFERING=no
20042 case "$DUMPER_SOCKET_BUFFERING" in
20046 cat >>confdefs.h <<\_ACEOF
20047 #define DUMPER_SOCKET_BUFFERING 1
20051 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
20052 $as_echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
20053 { (exit 1); exit 1; }; } ;;
20058 # Check whether --with-maxtapeblocksize was given.
20059 if test "${with_maxtapeblocksize+set}" = set; then
20060 withval=$with_maxtapeblocksize;
20061 { $as_echo "$as_me:$LINENO: WARNING: --with-maxtapeblocksize is no longer needed" >&5
20062 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
20065 cat <<AAW_EOF >>config.warnings
20066 --with-maxtapeblocksize is no longer needed
20077 # Check whether --with-assertions was given.
20078 if test "${with_assertions+set}" = set; then
20079 withval=$with_assertions;
20085 cat >>confdefs.h <<\_ACEOF
20086 #define ASSERTIONS 1
20090 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
20091 $as_echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
20092 { (exit 1); exit 1; }; }
20104 # Check whether --with-debugging was given.
20105 if test "${with_debugging+set}" = set; then
20106 withval=$with_debugging; debugging="$withval"
20113 case "$debugging" in
20114 n | no) { { $as_echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
20115 $as_echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
20116 { (exit 1); exit 1; }; };;
20117 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
20118 *) AMANDA_DBGDIR="$debugging";;
20121 # evaluate any extra variables in the directory
20125 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20126 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20127 eval ac_define_dir="\"$AMANDA_DBGDIR\""
20128 eval ac_define_dir="\"$ac_define_dir\""
20129 AMANDA_DBGDIR="$ac_define_dir"
20132 cat >>confdefs.h <<_ACEOF
20133 #define AMANDA_DBGDIR "$ac_define_dir"
20136 test "$prefix_NONE" && prefix=NONE
20137 test "$exec_prefix_NONE" && exec_prefix=NONE
20142 # Check whether --with-debug_days was given.
20143 if test "${with_debug_days+set}" = set; then
20144 withval=$with_debug_days;
20145 debug_days="$withval"
20154 case "$debug_days" in
20156 AMANDA_DEBUG_DAYS=0 ;;
20158 AMANDA_DEBUG_DAYS=4 ;;
20159 [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
20160 AMANDA_DEBUG_DAYS="$debug_days" ;;
20161 *) { { $as_echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
20162 $as_echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
20163 { (exit 1); exit 1; }; }
20167 cat >>confdefs.h <<_ACEOF
20168 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
20175 # Check whether --with-testing was given.
20176 if test "${with_testing+set}" = set; then
20177 withval=$with_testing;
20188 n | no) SERVICE_SUFFIX="";;
20189 y | ye | yes) SERVICE_SUFFIX="-test";;
20190 *) SERVICE_SUFFIX="-$TESTING";;
20193 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
20194 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
20198 cat >>confdefs.h <<_ACEOF
20199 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
20203 cat >>confdefs.h <<_ACEOF
20204 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
20208 cat >>confdefs.h <<_ACEOF
20209 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
20214 SINGLE_USERID=${SINGLE_USERID:-no}
20215 WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
20218 # Check whether --with-single-userid was given.
20219 if test "${with_single_userid+set}" = set; then
20220 withval=$with_single_userid; SINGLE_USERID=$withval
20226 WANT_SETUID_CLIENT=false
20231 if test x"$WANT_SETUID_CLIENT" = x"true"; then
20233 cat >>confdefs.h <<\_ACEOF
20234 #define WANT_SETUID_CLIENT 1
20238 if test x"$WANT_SETUID_CLIENT" = x"true"; then
20239 WANT_SETUID_CLIENT_TRUE=
20240 WANT_SETUID_CLIENT_FALSE='#'
20242 WANT_SETUID_CLIENT_TRUE='#'
20243 WANT_SETUID_CLIENT_FALSE=
20247 if test x"$SINGLE_USERID" = x"yes"; then
20249 cat >>confdefs.h <<\_ACEOF
20250 #define SINGLE_USERID 1
20256 WANT_INSTALLPERMS=yes
20257 # Check whether --enable-installperms was given.
20258 if test "${enable_installperms+set}" = set; then
20259 enableval=$enable_installperms; WANT_INSTALLPERMS="$enableval"
20261 WANT_INSTALLPERMS="yes"
20265 if test x"$WANT_INSTALLPERMS" = x"yes"; then
20266 WANT_INSTALLPERMS_TRUE=
20267 WANT_INSTALLPERMS_FALSE='#'
20269 WANT_INSTALLPERMS_TRUE='#'
20270 WANT_INSTALLPERMS_FALSE=
20277 # Set up for Amanda components and modules
20282 # Check whether --with-server was given.
20283 if test "${with_server+set}" = set; then
20284 withval=$with_server;
20286 y | ye | yes) WANT_SERVER=true;;
20287 n | no) WANT_SERVER=false;;
20288 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
20289 $as_echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
20290 { (exit 1); exit 1; }; } ;;
20299 # Check whether --with-client was given.
20300 if test "${with_client+set}" = set; then
20301 withval=$with_client;
20303 y | ye | yes) WANT_CLIENT=true;;
20304 n | no) WANT_CLIENT=false;;
20305 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
20306 $as_echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
20307 { (exit 1); exit 1; }; } ;;
20315 WANT_RESTORE=${WANT_SERVER-true}
20317 # Check whether --with-restore was given.
20318 if test "${with_restore+set}" = set; then
20319 withval=$with_restore;
20321 y | ye | yes) WANT_RESTORE=true;;
20322 n | no) WANT_RESTORE=false;;
20323 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
20324 $as_echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
20325 { (exit 1); exit 1; }; } ;;
20333 WANT_RECOVER=${WANT_CLIENT-true}
20335 # Check whether --with-amrecover was given.
20336 if test "${with_amrecover+set}" = set; then
20337 withval=$with_amrecover;
20339 y | ye | yes) WANT_RECOVER=false;;
20340 n | no) WANT_RECOVER=false;;
20341 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
20342 $as_echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
20343 { (exit 1); exit 1; }; } ;;
20351 # Check whether --with-client-only was given.
20352 if test "${with_client_only+set}" = set; then
20353 withval=$with_client_only; { { $as_echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
20354 $as_echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
20355 { (exit 1); exit 1; }; }
20362 # Check whether --with-server-only was given.
20363 if test "${with_server_only+set}" = set; then
20364 withval=$with_server_only; { { $as_echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
20365 $as_echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
20366 { (exit 1); exit 1; }; }
20377 # detect invalid combinations of components
20378 if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
20379 { { $as_echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
20380 $as_echo "$as_me: error: --without-server requires --without-restore" >&2;}
20381 { (exit 1); exit 1; }; }
20383 if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
20384 { { $as_echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
20385 $as_echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
20386 { (exit 1); exit 1; }; }
20389 if $WANT_CLIENT; then
20391 WANT_CLIENT_FALSE='#'
20393 WANT_CLIENT_TRUE='#'
20397 if $WANT_RESTORE; then
20399 WANT_RESTORE_FALSE='#'
20401 WANT_RESTORE_TRUE='#'
20402 WANT_RESTORE_FALSE=
20405 if $WANT_SERVER; then
20407 WANT_SERVER_FALSE='#'
20409 WANT_SERVER_TRUE='#'
20413 if $WANT_RECOVER; then
20415 WANT_RECOVER_FALSE='#'
20417 WANT_RECOVER_TRUE='#'
20418 WANT_RECOVER_FALSE=
20422 if $WANT_SERVER || $WANT_RESTORE; then
20424 WANT_TAPE_FALSE='#'
20432 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
20433 # expand prefix or exec_prefix in LOCPATH
20435 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20436 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
20437 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
20439 SYSLOCPATH="$SYSPATH:$LOCPATH"
20440 LOCSYSPATH="$LOCPATH:$SYSPATH"
20446 # Check whether --with-gnuplot was given.
20447 if test "${with_gnuplot+set}" = set; then
20448 withval=$with_gnuplot;
20451 n | no) GNUPLOT=no ;;
20452 *) GNUPLOT="$withval" ;;
20457 if test "x$GNUPLOT" = "xno"; then
20460 # Extract the first word of "gnuplot", so it can be a program name with args.
20461 set dummy gnuplot; ac_word=$2
20462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20463 $as_echo_n "checking for $ac_word... " >&6; }
20464 if test "${ac_cv_path_GNUPLOT+set}" = set; then
20465 $as_echo_n "(cached) " >&6
20469 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
20472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20473 for as_dir in $LOCSYSPATH
20476 test -z "$as_dir" && as_dir=.
20477 for ac_exec_ext in '' $ac_executable_extensions; do
20478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20479 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
20480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20490 GNUPLOT=$ac_cv_path_GNUPLOT
20491 if test -n "$GNUPLOT"; then
20492 { $as_echo "$as_me:$LINENO: result: $GNUPLOT" >&5
20493 $as_echo "$GNUPLOT" >&6; }
20495 { $as_echo "$as_me:$LINENO: result: no" >&5
20496 $as_echo "no" >&6; }
20507 # Extract the first word of "pcat", so it can be a program name with args.
20508 set dummy pcat; ac_word=$2
20509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20510 $as_echo_n "checking for $ac_word... " >&6; }
20511 if test "${ac_cv_path_PCAT+set}" = set; then
20512 $as_echo_n "(cached) " >&6
20516 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
20519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20520 for as_dir in $LOCSYSPATH
20523 test -z "$as_dir" && as_dir=.
20524 for ac_exec_ext in '' $ac_executable_extensions; do
20525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20526 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
20527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20537 PCAT=$ac_cv_path_PCAT
20538 if test -n "$PCAT"; then
20539 { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
20540 $as_echo "$PCAT" >&6; }
20542 { $as_echo "$as_me:$LINENO: result: no" >&5
20543 $as_echo "no" >&6; }
20550 # Extract the first word of "compress", so it can be a program name with args.
20551 set dummy compress; ac_word=$2
20552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20553 $as_echo_n "checking for $ac_word... " >&6; }
20554 if test "${ac_cv_path_COMPRESS+set}" = set; then
20555 $as_echo_n "(cached) " >&6
20559 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
20562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20563 for as_dir in $LOCSYSPATH
20566 test -z "$as_dir" && as_dir=.
20567 for ac_exec_ext in '' $ac_executable_extensions; do
20568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20569 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
20570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20580 COMPRESS=$ac_cv_path_COMPRESS
20581 if test -n "$COMPRESS"; then
20582 { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
20583 $as_echo "$COMPRESS" >&6; }
20585 { $as_echo "$as_me:$LINENO: result: no" >&5
20586 $as_echo "no" >&6; }
20593 # Extract the first word of "gzip", so it can be a program name with args.
20594 set dummy gzip; ac_word=$2
20595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20596 $as_echo_n "checking for $ac_word... " >&6; }
20597 if test "${ac_cv_path_GZIP+set}" = set; then
20598 $as_echo_n "(cached) " >&6
20602 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
20605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20606 for as_dir in $LOCSYSPATH
20609 test -z "$as_dir" && as_dir=.
20610 for ac_exec_ext in '' $ac_executable_extensions; do
20611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20612 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
20613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20623 GZIP=$ac_cv_path_GZIP
20624 if test -n "$GZIP"; then
20625 { $as_echo "$as_me:$LINENO: result: $GZIP" >&5
20626 $as_echo "$GZIP" >&6; }
20628 { $as_echo "$as_me:$LINENO: result: no" >&5
20629 $as_echo "no" >&6; }
20641 if test "x$GNUPLOT" != "x"; then
20644 # variable substitutions for amcat.awk
20645 if test "$PCAT"; then
20646 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
20650 if test "$COMPRESS"; then
20651 AMPLOT_COMPRESS=$COMPRESS
20652 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
20654 AMPLOT_CAT_COMPRESS=
20656 if test "$GZIP"; then
20657 AMPLOT_COMPRESS=$GZIP
20658 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
20670 { $as_echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
20671 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
20674 cat <<AAW_EOF >>config.warnings
20675 Not building 'amplot', because gnuplot was not found
20681 if test x"$WANT_AMPLOT" = x"true"; then
20683 WANT_AMPLOT_FALSE='#'
20685 WANT_AMPLOT_TRUE='#'
20691 # Check whether --enable-manpage-build was given.
20692 if test "${enable_manpage_build+set}" = set; then
20693 enableval=$enable_manpage_build; ENABLE_MANPAGE_BUILD=$enableval
20695 ENABLE_MANPAGE_BUILD=no
20699 # and ensure that everything docbook-related is OK if we'll be using it
20700 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
20701 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
20704 XSLTPROC_FLAGS="--nonet"
20707 # The (lack of) whitespace and overquoting here are all necessary for
20708 # proper formatting.
20710 # Check whether --with-xsltproc was given.
20711 if test "${with_xsltproc+set}" = set; then
20712 withval=$with_xsltproc; ac_with_xsltproc=$withval;
20714 ac_with_xsltproc=maybe;
20719 # Check whether --with-xsltproc-flags was given.
20720 if test "${with_xsltproc_flags+set}" = set; then
20721 withval=$with_xsltproc_flags; if test "x$withval" == "xno"; then
20724 if test "x$withval" != "xyes"; then
20725 XSLTPROC_FLAGS="$withval"
20732 # search for xsltproc if it wasn't specified
20733 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
20734 for ac_prog in xsltproc
20736 # Extract the first word of "$ac_prog", so it can be a program name with args.
20737 set dummy $ac_prog; ac_word=$2
20738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20739 $as_echo_n "checking for $ac_word... " >&6; }
20740 if test "${ac_cv_path_XSLTPROC+set}" = set; then
20741 $as_echo_n "(cached) " >&6
20745 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20749 for as_dir in $LOCSYSPATH
20752 test -z "$as_dir" && as_dir=.
20753 for ac_exec_ext in '' $ac_executable_extensions; do
20754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20755 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
20756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20766 XSLTPROC=$ac_cv_path_XSLTPROC
20767 if test -n "$XSLTPROC"; then
20768 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
20769 $as_echo "$XSLTPROC" >&6; }
20771 { $as_echo "$as_me:$LINENO: result: no" >&5
20772 $as_echo "no" >&6; }
20776 test -n "$XSLTPROC" && break
20780 if test "$ac_with_xsltproc" != "no"; then
20781 if test -x "$ac_with_xsltproc"; then
20782 XSLTPROC="$ac_with_xsltproc";
20785 { $as_echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
20786 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
20789 cat <<AAW_EOF >>config.warnings
20790 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
20794 for ac_prog in xsltproc
20796 # Extract the first word of "$ac_prog", so it can be a program name with args.
20797 set dummy $ac_prog; ac_word=$2
20798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20799 $as_echo_n "checking for $ac_word... " >&6; }
20800 if test "${ac_cv_path_XSLTPROC+set}" = set; then
20801 $as_echo_n "(cached) " >&6
20805 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20809 for as_dir in $LOCSYSPATH
20812 test -z "$as_dir" && as_dir=.
20813 for ac_exec_ext in '' $ac_executable_extensions; do
20814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20815 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
20816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20826 XSLTPROC=$ac_cv_path_XSLTPROC
20827 if test -n "$XSLTPROC"; then
20828 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
20829 $as_echo "$XSLTPROC" >&6; }
20831 { $as_echo "$as_me:$LINENO: result: no" >&5
20832 $as_echo "no" >&6; }
20836 test -n "$XSLTPROC" && break
20852 { $as_echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
20853 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
20854 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
20855 $as_echo_n "(cached) " >&6
20858 ac_cv_docbook_xslt_1_72_0=no
20859 if test -n "$XSLTPROC"; then
20860 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
20861 $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
20863 if test "$?" = 0; then
20864 ac_cv_docbook_xslt_1_72_0=yes
20869 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
20870 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
20872 HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
20873 HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
20882 { $as_echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
20883 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
20884 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
20885 $as_echo_n "(cached) " >&6
20888 ac_cv_docbook_xslt_current_version=no
20890 if test -n "$XSLTPROC"; then
20891 cat >conftest.xsl <<EOF
20893 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
20894 xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
20896 <xsl:output method="text"/>
20897 <xsl:template match="fm:project/fm:Version">
20898 <xsl:value-of select="." />
20900 <!-- do nothing with any other text -->
20901 <xsl:template match="text()"/>
20904 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
20906 cat conftest.xsl >&5
20909 ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
20911 if test "$?" != 0; then
20912 ac_cv_docbook_xslt_current_version='no'
20919 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
20920 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
20922 DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
20923 { $as_echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
20924 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
20926 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
20927 { $as_echo "$as_me:$LINENO: result: no" >&5
20928 $as_echo "no" >&6; }
20931 # Used to indicate true or false condition
20932 ax_compare_version=false
20934 # Convert the two version strings to be compared into a format that
20935 # allows a simple string comparison. The end result is that a version
20936 # string of the form 1.12.5-r617 will be converted to the form
20937 # 0001001200050617. In other words, each number is zero padded to four
20938 # digits, and non digits are removed.
20940 ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20941 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20942 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20943 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20947 ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20948 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20949 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20950 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20954 ax_compare_version=`echo "x$ax_compare_version_A
20955 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
20959 if test "$ax_compare_version" = "true" ; then
20961 # version is less than required, so mark it as "no"
20962 DOCBOOK_XSLT_CURRENT_VERSION=no
20967 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
20968 { $as_echo "$as_me:$LINENO: result: no" >&5
20969 $as_echo "no" >&6; }
20971 { $as_echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
20972 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
20985 { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
20986 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
20987 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
20988 $as_echo_n "(cached) " >&6
20991 ac_cv_docbook_dtd_4_1_2=no
20992 if test -n "$XSLTPROC"; then
20993 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
20994 cat <<EOF >conftest.xml
20995 <?xml version="1.0" encoding='ISO-8859-1'?>
20996 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21000 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21001 echo "conftest.xml:" >&5
21003 cat conftest.xml >&5
21006 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21007 if test "$?" = 0 -o "$?" = 5; then
21008 # failing to load the DTD is just a warning, so check for it in the output.
21009 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21012 ac_cv_docbook_dtd_4_1_2=yes
21015 cat conftest.out >&5
21017 rm -f conftest.xml conftest.out
21021 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
21022 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
21024 HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
21025 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
21040 { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
21041 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
21042 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
21043 $as_echo_n "(cached) " >&6
21046 ac_cv_docbook_dtd_4_2=no
21047 if test -n "$XSLTPROC"; then
21048 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21049 cat <<EOF >conftest.xml
21050 <?xml version="1.0" encoding='ISO-8859-1'?>
21051 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
21055 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21056 echo "conftest.xml:" >&5
21058 cat conftest.xml >&5
21061 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21062 if test "$?" = 0 -o "$?" = 5; then
21063 # failing to load the DTD is just a warning, so check for it in the output.
21064 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21067 ac_cv_docbook_dtd_4_2=yes
21070 cat conftest.out >&5
21072 rm -f conftest.xml conftest.out
21076 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
21077 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
21079 HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
21080 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
21087 if test -z "$XSLTPROC"; then
21088 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
21089 $as_echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
21090 { (exit 1); exit 1; }; }
21093 # if the 'current' Docbook revision is good enough, use that; otherwise,
21094 # if 1.72.0 is available, use that.
21096 if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
21097 if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
21098 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
21099 $as_echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
21100 { (exit 1); exit 1; }; }
21106 # disable validation if the correct DTDs are not available
21107 if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
21109 { $as_echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
21110 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
21113 cat <<AAW_EOF >>config.warnings
21114 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
21118 XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
21122 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21123 ENABLE_MANPAGE_BUILD_TRUE=
21124 ENABLE_MANPAGE_BUILD_FALSE='#'
21126 ENABLE_MANPAGE_BUILD_TRUE='#'
21127 ENABLE_MANPAGE_BUILD_FALSE=
21134 #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
21135 CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
21139 # Check whether --with-index-server was given.
21140 if test "${with_index_server+set}" = set; then
21141 withval=$with_index_server;
21143 "" | y | ye | yes | n | no)
21144 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
21145 $as_echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
21146 { (exit 1); exit 1; }; }
21148 *) DEFAULT_SERVER="$withval"
21153 : ${DEFAULT_SERVER=`uname -n`}
21158 cat >>confdefs.h <<_ACEOF
21159 #define DEFAULT_SERVER "$DEFAULT_SERVER"
21165 # Check whether --with-config was given.
21166 if test "${with_config+set}" = set; then
21167 withval=$with_config;
21169 "" | y | ye | yes | n | no)
21170 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
21171 $as_echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
21172 { (exit 1); exit 1; }; }
21174 *) DEFAULT_CONFIG="$withval"
21179 : ${DEFAULT_CONFIG=DailySet1}
21184 cat >>confdefs.h <<_ACEOF
21185 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
21191 # Check whether --with-tape-server was given.
21192 if test "${with_tape_server+set}" = set; then
21193 withval=$with_tape_server;
21195 "" | y | ye | yes | n | no)
21196 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
21197 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
21198 { (exit 1); exit 1; }; }
21200 *) DEFAULT_TAPE_SERVER="$withval"
21205 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
21210 cat >>confdefs.h <<_ACEOF
21211 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
21217 # Check whether --with-tape-device was given.
21218 if test "${with_tape_device+set}" = set; then
21219 withval=$with_tape_device;
21221 "" | y | ye | yes | n | no)
21222 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
21223 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
21224 { (exit 1); exit 1; }; }
21226 *) DEFAULT_TAPE_DEVICE="$withval"
21235 cat >>confdefs.h <<_ACEOF
21236 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
21241 if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
21242 EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
21244 EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
21249 # Check whether --with-changer-device was given.
21250 if test "${with_changer_device+set}" = set; then
21251 withval=$with_changer_device;
21253 "" | y | ye | yes | n | no)
21254 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
21255 $as_echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
21256 { (exit 1); exit 1; }; }
21258 *) DEFAULT_CHANGER_DEVICE="$withval"
21266 if test -z "$DEFAULT_CHANGER_DEVICE"; then
21267 DEFAULT_CHANGER_DEVICE=/dev/null
21268 if test -f /dev/ch0; then
21269 DEFAULT_CHANGER_DEVICE=/dev/ch0
21274 cat >>confdefs.h <<_ACEOF
21275 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
21281 # Check whether --with-amandates was given.
21282 if test "${with_amandates+set}" = set; then
21283 withval=$with_amandates;
21285 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
21286 $as_echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
21287 { (exit 1); exit 1; }; };;
21288 y | ye | yes) amandates='$localstatedir/amanda/amandates' ;;
21289 *) amandates="$withval";;
21293 amandates='$localstatedir/amanda/amandates'
21301 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21302 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21303 eval ac_define_dir="\"$amandates\""
21304 eval ac_define_dir="\"$ac_define_dir\""
21305 DEFAULT_AMANDATES_FILE="$ac_define_dir"
21308 cat >>confdefs.h <<_ACEOF
21309 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
21312 test "$prefix_NONE" && prefix=NONE
21313 test "$exec_prefix_NONE" && exec_prefix=NONE
21318 # Extract the first word of "getconf", so it can be a program name with args.
21319 set dummy getconf; ac_word=$2
21320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21321 $as_echo_n "checking for $ac_word... " >&6; }
21322 if test "${ac_cv_path_GETCONF+set}" = set; then
21323 $as_echo_n "(cached) " >&6
21327 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
21330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21331 for as_dir in $SYSPATH
21334 test -z "$as_dir" && as_dir=.
21335 for ac_exec_ext in '' $ac_executable_extensions; do
21336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21337 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
21338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21348 GETCONF=$ac_cv_path_GETCONF
21349 if test -n "$GETCONF"; then
21350 { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
21351 $as_echo "$GETCONF" >&6; }
21353 { $as_echo "$as_me:$LINENO: result: no" >&5
21354 $as_echo "no" >&6; }
21363 # we use 'getconf', if it exists, to get the relevant
21367 *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21368 *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21371 # Checks for compilers, typedefs, structures, and compiler characteristics.
21372 # Check for large file compilation environment.
21374 { $as_echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
21375 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
21376 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
21377 $as_echo_n "(cached) " >&6
21380 amanda_cv_LFS_CFLAGS=
21381 if test "$GETCONF"; then
21382 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
21383 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
21390 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
21391 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
21392 CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
21395 { $as_echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
21396 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
21397 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
21398 $as_echo_n "(cached) " >&6
21401 amanda_cv_LFS_LDFLAGS=
21402 if test "$GETCONF"; then
21403 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
21404 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
21411 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
21412 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
21413 LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
21416 { $as_echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
21417 $as_echo_n "checking for large file compilation LIBS... " >&6; }
21418 if test "${amanda_cv_LFS_LIBS+set}" = set; then
21419 $as_echo_n "(cached) " >&6
21422 amanda_cv_LFS_LIBS=
21423 if test "$GETCONF"; then
21424 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
21425 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
21432 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
21433 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
21434 LIBS="$amanda_cv_LFS_LIBS $LIBS"
21437 if test x"$NEED_RESETOFS" = x"yes"; then
21439 cat >>confdefs.h <<\_ACEOF
21440 #define NEED_RESETOFS 1
21447 # Extract the first word of "chio", so it can be a program name with args.
21448 set dummy chio; ac_word=$2
21449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21450 $as_echo_n "checking for $ac_word... " >&6; }
21451 if test "${ac_cv_path_CHIO+set}" = set; then
21452 $as_echo_n "(cached) " >&6
21456 ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
21459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21460 for as_dir in $LOCSYSPATH
21463 test -z "$as_dir" && as_dir=.
21464 for ac_exec_ext in '' $ac_executable_extensions; do
21465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21466 ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
21467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21474 test -z "$ac_cv_path_CHIO" && ac_cv_path_CHIO="chio"
21478 CHIO=$ac_cv_path_CHIO
21479 if test -n "$CHIO"; then
21480 { $as_echo "$as_me:$LINENO: result: $CHIO" >&5
21481 $as_echo "$CHIO" >&6; }
21483 { $as_echo "$as_me:$LINENO: result: no" >&5
21484 $as_echo "no" >&6; }
21491 # Extract the first word of "chs", so it can be a program name with args.
21492 set dummy chs; ac_word=$2
21493 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21494 $as_echo_n "checking for $ac_word... " >&6; }
21495 if test "${ac_cv_path_CHS+set}" = set; then
21496 $as_echo_n "(cached) " >&6
21500 ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
21503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21504 for as_dir in $LOCSYSPATH
21507 test -z "$as_dir" && as_dir=.
21508 for ac_exec_ext in '' $ac_executable_extensions; do
21509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21510 ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
21511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21518 test -z "$ac_cv_path_CHS" && ac_cv_path_CHS="chs"
21522 CHS=$ac_cv_path_CHS
21523 if test -n "$CHS"; then
21524 { $as_echo "$as_me:$LINENO: result: $CHS" >&5
21525 $as_echo "$CHS" >&6; }
21527 { $as_echo "$as_me:$LINENO: result: no" >&5
21528 $as_echo "no" >&6; }
21535 # Extract the first word of "mtx", so it can be a program name with args.
21536 set dummy mtx; ac_word=$2
21537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21538 $as_echo_n "checking for $ac_word... " >&6; }
21539 if test "${ac_cv_path_MTX+set}" = set; then
21540 $as_echo_n "(cached) " >&6
21544 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
21547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21548 for as_dir in $LOCSYSPATH
21551 test -z "$as_dir" && as_dir=.
21552 for ac_exec_ext in '' $ac_executable_extensions; do
21553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21554 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
21555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21562 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
21566 MTX=$ac_cv_path_MTX
21567 if test -n "$MTX"; then
21568 { $as_echo "$as_me:$LINENO: result: $MTX" >&5
21569 $as_echo "$MTX" >&6; }
21571 { $as_echo "$as_me:$LINENO: result: no" >&5
21572 $as_echo "no" >&6; }
21579 # Extract the first word of "mcutil", so it can be a program name with args.
21580 set dummy mcutil; ac_word=$2
21581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21582 $as_echo_n "checking for $ac_word... " >&6; }
21583 if test "${ac_cv_path_MCUTIL+set}" = set; then
21584 $as_echo_n "(cached) " >&6
21588 ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
21591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21592 for as_dir in $LOCSYSPATH
21595 test -z "$as_dir" && as_dir=.
21596 for ac_exec_ext in '' $ac_executable_extensions; do
21597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21598 ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
21599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21606 test -z "$ac_cv_path_MCUTIL" && ac_cv_path_MCUTIL="mcutil"
21610 MCUTIL=$ac_cv_path_MCUTIL
21611 if test -n "$MCUTIL"; then
21612 { $as_echo "$as_me:$LINENO: result: $MCUTIL" >&5
21613 $as_echo "$MCUTIL" >&6; }
21615 { $as_echo "$as_me:$LINENO: result: no" >&5
21616 $as_echo "no" >&6; }
21646 scsi/scsi_ioctl.h \
21654 sys/scsi/impl/uscsi.h \
21655 sys/scsi/scsi/ioctl.h
21657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21659 $as_echo_n "checking for $ac_header... " >&6; }
21660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21661 $as_echo_n "(cached) " >&6
21663 cat >conftest.$ac_ext <<_ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21669 $ac_includes_default
21671 #include <$ac_header>
21673 rm -f conftest.$ac_objext
21674 if { (ac_try="$ac_compile"
21675 case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21680 $as_echo "$ac_try_echo") >&5
21681 (eval "$ac_compile") 2>conftest.er1
21683 grep -v '^ *+' conftest.er1 >conftest.err
21685 cat conftest.err >&5
21686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest.$ac_objext; then
21691 eval "$as_ac_Header=yes"
21693 $as_echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 eval "$as_ac_Header=no"
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21701 ac_res=`eval 'as_val=${'$as_ac_Header'}
21702 $as_echo "$as_val"'`
21703 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21704 $as_echo "$ac_res" >&6; }
21705 as_val=`eval 'as_val=${'$as_ac_Header'}
21706 $as_echo "$as_val"'`
21707 if test "x$as_val" = x""yes; then
21708 cat >>confdefs.h <<_ACEOF
21709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21721 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
21722 { $as_echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
21723 $as_echo_n "checking for HP/UX-like scsi changer support... " >&6; }
21724 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
21725 $as_echo_n "(cached) " >&6
21727 cat >conftest.$ac_ext <<_ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h. */
21734 #include <sys/scsi.h>
21740 static struct element_addresses changer_info;
21741 int i = SIOC_ELEMENT_ADDRESSES;
21742 int j = SIOC_ELEMENT_STATUS;
21743 int k = SIOC_MOVE_MEDIUM;
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21756 $as_echo "$ac_try_echo") >&5
21757 (eval "$ac_compile") 2>conftest.er1
21759 grep -v '^ *+' conftest.er1 >conftest.err
21761 cat conftest.err >&5
21762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } && {
21764 test -z "$ac_c_werror_flag" ||
21765 test ! -s conftest.err
21766 } && test -s conftest.$ac_objext; then
21767 amanda_cv_hpux_scsi_chio=yes
21769 $as_echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21772 amanda_cv_hpux_scsi_chio=no
21775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21777 { $as_echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
21778 $as_echo "$amanda_cv_hpux_scsi_chio" >&6; }
21779 if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
21786 # Linux SCSI based on ioctl
21788 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21789 test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
21790 { $as_echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
21791 $as_echo_n "checking for Linux like scsi support (ioctl)... " >&6; }
21792 if test "${amanda_cv_linux_scsi+set}" = set; then
21793 $as_echo_n "(cached) " >&6
21795 cat >conftest.$ac_ext <<_ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h. */
21802 #include <scsi/scsi_ioctl.h>
21803 #include <sys/mtio.h>
21811 ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
21817 rm -f conftest.$ac_objext
21818 if { (ac_try="$ac_compile"
21819 case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21824 $as_echo "$ac_try_echo") >&5
21825 (eval "$ac_compile") 2>conftest.er1
21827 grep -v '^ *+' conftest.er1 >conftest.err
21829 cat conftest.err >&5
21830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } && {
21832 test -z "$ac_c_werror_flag" ||
21833 test ! -s conftest.err
21834 } && test -s conftest.$ac_objext; then
21835 amanda_cv_linux_scsi=yes
21837 $as_echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 amanda_cv_linux_scsi=no
21843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21845 { $as_echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
21846 $as_echo "$amanda_cv_linux_scsi" >&6; }
21850 # Linux SCSI based on sg
21852 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21853 test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
21854 { $as_echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
21855 $as_echo_n "checking for Linux like scsi support (sg)... " >&6; }
21856 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
21857 $as_echo_n "(cached) " >&6
21859 cat >conftest.$ac_ext <<_ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21866 #include <sys/types.h>
21867 #include <scsi/sg.h>
21868 #include <sys/mtio.h>
21875 struct sg_header *psg_header;
21877 write(device, buffer, 1);
21883 rm -f conftest.$ac_objext
21884 if { (ac_try="$ac_compile"
21885 case "(($ac_try" in
21886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887 *) ac_try_echo=$ac_try;;
21889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21890 $as_echo "$ac_try_echo") >&5
21891 (eval "$ac_compile") 2>conftest.er1
21893 grep -v '^ *+' conftest.er1 >conftest.err
21895 cat conftest.err >&5
21896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } && {
21898 test -z "$ac_c_werror_flag" ||
21899 test ! -s conftest.err
21900 } && test -s conftest.$ac_objext; then
21901 amanda_cv_linux_sg_scsi=yes
21903 $as_echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 amanda_cv_linux_sg_scsi=no
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 { $as_echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
21912 $as_echo "$amanda_cv_linux_sg_scsi" >&6; }
21915 if test x"$amanda_cv_linux_scsi" = x"yes" ||
21916 test x"$amanda_cv_linux_sg_scsi" = x"yes";then
21917 WANT_SCSI_LINUX=yes
21924 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21925 test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
21926 { $as_echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
21927 $as_echo_n "checking for HP-UX like scsi support... " >&6; }
21928 if test "${amanda_cv_hpux_scsi+set}" = set; then
21929 $as_echo_n "(cached) " >&6
21931 cat >conftest.$ac_ext <<_ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21939 #include <sys/ioctl.h>
21940 #include <sys/scsi.h>
21941 #include <sys/mtio.h>
21949 ioctl(device, SIOC_IO, Command);
21955 rm -f conftest.$ac_objext
21956 if { (ac_try="$ac_compile"
21957 case "(($ac_try" in
21958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21959 *) ac_try_echo=$ac_try;;
21961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21962 $as_echo "$ac_try_echo") >&5
21963 (eval "$ac_compile") 2>conftest.er1
21965 grep -v '^ *+' conftest.er1 >conftest.err
21967 cat conftest.err >&5
21968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } && {
21970 test -z "$ac_c_werror_flag" ||
21971 test ! -s conftest.err
21972 } && test -s conftest.$ac_objext; then
21973 amanda_cv_hpux_scsi=yes
21975 $as_echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21978 amanda_cv_hpux_scsi=no
21981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21983 { $as_echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
21984 $as_echo "$amanda_cv_hpux_scsi" >&6; }
21985 if test x"$amanda_cv_hpux_scsi" = x"yes";then
21986 WANT_SCSI_HPUX_NEW=yes
21988 WANT_CHG_SCSI_CHIO=yes
21995 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21996 test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
21997 { $as_echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
21998 $as_echo_n "checking for Irix like scsi support... " >&6; }
21999 if test "${amanda_cv_irix_scsi+set}" = set; then
22000 $as_echo_n "(cached) " >&6
22002 cat >conftest.$ac_ext <<_ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22009 #include <sys/types.h>
22010 #include <sys/dsreq.h>
22011 #include <sys/mtio.h>
22019 ioctl(device, DS_ENTER, &Command);
22025 rm -f conftest.$ac_objext
22026 if { (ac_try="$ac_compile"
22027 case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22032 $as_echo "$ac_try_echo") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22043 amanda_cv_irix_scsi=yes
22045 $as_echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 amanda_cv_irix_scsi=no
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053 { $as_echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
22054 $as_echo "$amanda_cv_irix_scsi" >&6; }
22055 if test x"$amanda_cv_irix_scsi" = x"yes";then
22064 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
22065 test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
22066 { $as_echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
22067 $as_echo_n "checking for Solaris-like scsi support... " >&6; }
22068 if test "${amanda_cv_solaris_scsi+set}" = set; then
22069 $as_echo_n "(cached) " >&6
22071 cat >conftest.$ac_ext <<_ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22078 #include <sys/types.h>
22079 #include <sys/scsi/impl/uscsi.h>
22080 #include <sys/mtio.h>
22088 ioctl(device, USCSICMD, Command);
22094 rm -f conftest.$ac_objext
22095 if { (ac_try="$ac_compile"
22096 case "(($ac_try" in
22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098 *) ac_try_echo=$ac_try;;
22100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22101 $as_echo "$ac_try_echo") >&5
22102 (eval "$ac_compile") 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } && {
22109 test -z "$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22111 } && test -s conftest.$ac_objext; then
22112 amanda_cv_solaris_scsi=yes
22114 $as_echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 amanda_cv_solaris_scsi=no
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22122 { $as_echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
22123 $as_echo "$amanda_cv_solaris_scsi" >&6; }
22124 if test x"$amanda_cv_solaris_scsi" = x"yes";then
22125 WANT_SCSI_SOLARIS=yes
22133 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
22134 test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
22135 test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
22136 { $as_echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
22137 $as_echo_n "checking for AIX like scsi support... " >&6; }
22138 if test "${amanda_cv_aix_scsi+set}" = set; then
22139 $as_echo_n "(cached) " >&6
22141 cat >conftest.$ac_ext <<_ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22148 #include <sys/types.h>
22149 #include <sys/scarray.h>
22150 #include <sys/tape.h>
22158 ioctl(device, STIOCMD, Command);
22164 rm -f conftest.$ac_objext
22165 if { (ac_try="$ac_compile"
22166 case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22171 $as_echo "$ac_try_echo") >&5
22172 (eval "$ac_compile") 2>conftest.er1
22174 grep -v '^ *+' conftest.er1 >conftest.err
22176 cat conftest.err >&5
22177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } && {
22179 test -z "$ac_c_werror_flag" ||
22180 test ! -s conftest.err
22181 } && test -s conftest.$ac_objext; then
22182 amanda_cv_aix_scsi=yes
22184 $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 amanda_cv_aix_scsi=no
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22192 { $as_echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
22193 $as_echo "$amanda_cv_aix_scsi" >&6; }
22194 if test x"$amanda_cv_aix_scsi" = x"yes";then
22202 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
22203 { $as_echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
22204 $as_echo_n "checking for CAM like scsi support... " >&6; }
22205 if test "${amanda_cv_cam_scsi+set}" = set; then
22206 $as_echo_n "(cached) " >&6
22208 cat >conftest.$ac_ext <<_ACEOF
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h. */
22216 # include <fcntl.h>
22217 # include <cam/cam.h>
22218 # include <cam/cam_ccb.h>
22219 # include <cam/scsi/scsi_message.h>
22220 # include <cam/scsi/scsi_pass.h>
22221 # include <camlib.h>
22227 struct cam_device *curdev;
22229 curdev = cam_open_pass("", O_RDWR, NULL);
22235 rm -f conftest.$ac_objext
22236 if { (ac_try="$ac_compile"
22237 case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22242 $as_echo "$ac_try_echo") >&5
22243 (eval "$ac_compile") 2>conftest.er1
22245 grep -v '^ *+' conftest.er1 >conftest.err
22247 cat conftest.err >&5
22248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } && {
22250 test -z "$ac_c_werror_flag" ||
22251 test ! -s conftest.err
22252 } && test -s conftest.$ac_objext; then
22253 amanda_cv_cam_scsi=yes
22255 $as_echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22258 amanda_cv_cam_scsi=no
22261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 { $as_echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
22264 $as_echo "$amanda_cv_cam_scsi" >&6; }
22265 if test x"$amanda_cv_cam_scsi" = x"yes";then
22269 { $as_echo "$as_me:$LINENO: checking for main in -lcam" >&5
22270 $as_echo_n "checking for main in -lcam... " >&6; }
22271 if test "${ac_cv_lib_cam_main+set}" = set; then
22272 $as_echo_n "(cached) " >&6
22274 ac_check_lib_save_LIBS=$LIBS
22276 cat >conftest.$ac_ext <<_ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300 (eval "$ac_link") 2>conftest.er1
22302 grep -v '^ *+' conftest.er1 >conftest.err
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest$ac_exeext && {
22310 test "$cross_compiling" = yes ||
22311 $as_test_x conftest$ac_exeext
22313 ac_cv_lib_cam_main=yes
22315 $as_echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ac_cv_lib_cam_main=no
22321 rm -rf conftest.dSYM
22322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22323 conftest$ac_exeext conftest.$ac_ext
22324 LIBS=$ac_check_lib_save_LIBS
22326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
22327 $as_echo "$ac_cv_lib_cam_main" >&6; }
22328 if test "x$ac_cv_lib_cam_main" = x""yes; then
22329 cat >>confdefs.h <<_ACEOF
22330 #define HAVE_LIBCAM 1
22344 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
22345 test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
22346 { $as_echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
22347 $as_echo_n "checking for BSD like scsi support... " >&6; }
22348 if test "${amanda_cv_bsd_scsi+set}" = set; then
22349 $as_echo_n "(cached) " >&6
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22358 #include <sys/types.h>
22359 #include <sys/scsiio.h>
22360 #include <sys/mtio.h>
22368 ioctl(device, SCIOCCOMMAND, &Command);
22374 rm -f conftest.$ac_objext
22375 if { (ac_try="$ac_compile"
22376 case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22381 $as_echo "$ac_try_echo") >&5
22382 (eval "$ac_compile") 2>conftest.er1
22384 grep -v '^ *+' conftest.er1 >conftest.err
22386 cat conftest.err >&5
22387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest.$ac_objext; then
22392 amanda_cv_bsd_scsi=yes
22394 $as_echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 amanda_cv_bsd_scsi=no
22400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22402 { $as_echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
22403 $as_echo "$amanda_cv_bsd_scsi" >&6; }
22404 if test x"$amanda_cv_bsd_scsi" = x"yes";then
22410 # Do not build chg-scsi-chio if we cannot find the needed support
22411 # include files for the SCSI interfaces
22412 # chio.h and sys/chio.h are chio based systems
22413 if test x"$ac_cv_header_chio_h" = x"yes" ||
22414 test x"$ac_cv_header_linux_chio_h" = x"yes" ||
22415 test x"$ac_cv_header_sys_chio_h" = x"yes"; then
22416 # chg-scsi does not support FreeBSD 3.0's chio.h; it became backward
22417 # incompatible with the introduction of camlib.h
22418 if test x"$ac_cv_header_camlib_h" != x"yes"; then
22420 # prefer to use chg-scsi, unless we already have a driver for that,
22421 # in which case set it up as chg-scsi-chio.
22422 if test x"$WANT_CHG_SCSI" = x"no"; then
22425 WANT_CHG_SCSI_CHIO=yes
22430 # scsi-based implementations
22431 if test x"$WANT_CHG_SCSI" = x"yes"; then
22432 WANT_CHG_SCSI_TRUE=
22433 WANT_CHG_SCSI_FALSE='#'
22435 WANT_CHG_SCSI_TRUE='#'
22436 WANT_CHG_SCSI_FALSE=
22439 if test x"$WANT_SCSI_LINUX" = x"yes"; then
22440 WANT_SCSI_LINUX_TRUE=
22441 WANT_SCSI_LINUX_FALSE='#'
22443 WANT_SCSI_LINUX_TRUE='#'
22444 WANT_SCSI_LINUX_FALSE=
22447 if test x"$WANT_SCSI_HPUX_NEW" = x"yes"; then
22448 WANT_SCSI_HPUX_NEW_TRUE=
22449 WANT_SCSI_HPUX_NEW_FALSE='#'
22451 WANT_SCSI_HPUX_NEW_TRUE='#'
22452 WANT_SCSI_HPUX_NEW_FALSE=
22455 if test x"$WANT_SCSI_IRIX" = x"yes"; then
22456 WANT_SCSI_IRIX_TRUE=
22457 WANT_SCSI_IRIX_FALSE='#'
22459 WANT_SCSI_IRIX_TRUE='#'
22460 WANT_SCSI_IRIX_FALSE=
22463 if test x"$WANT_SCSI_SOLARIS" = x"yes"; then
22464 WANT_SCSI_SOLARIS_TRUE=
22465 WANT_SCSI_SOLARIS_FALSE='#'
22467 WANT_SCSI_SOLARIS_TRUE='#'
22468 WANT_SCSI_SOLARIS_FALSE=
22471 if test x"$WANT_SCSI_AIX" = x"yes"; then
22472 WANT_SCSI_AIX_TRUE=
22473 WANT_SCSI_AIX_FALSE='#'
22475 WANT_SCSI_AIX_TRUE='#'
22476 WANT_SCSI_AIX_FALSE=
22479 if test x"$WANT_SCSI_CAM" = x"yes"; then
22480 WANT_SCSI_CAM_TRUE=
22481 WANT_SCSI_CAM_FALSE='#'
22483 WANT_SCSI_CAM_TRUE='#'
22484 WANT_SCSI_CAM_FALSE=
22487 if test x"$WANT_SCSI_BSD" = x"yes"; then
22488 WANT_SCSI_BSD_TRUE=
22489 WANT_SCSI_BSD_FALSE='#'
22491 WANT_SCSI_BSD_TRUE='#'
22492 WANT_SCSI_BSD_FALSE=
22496 # scsi-chio-based implementations
22497 if test x"$WANT_CHG_SCSI_CHIO" = x"yes"; then
22498 WANT_CHG_SCSI_CHIO_TRUE=
22499 WANT_CHG_SCSI_CHIO_FALSE='#'
22501 WANT_CHG_SCSI_CHIO_TRUE='#'
22502 WANT_CHG_SCSI_CHIO_FALSE=
22505 if test x"$WANT_SCSI_HPUX" = x"yes"; then
22506 WANT_SCSI_HPUX_TRUE=
22507 WANT_SCSI_HPUX_FALSE='#'
22509 WANT_SCSI_HPUX_TRUE='#'
22510 WANT_SCSI_HPUX_FALSE=
22513 if test x"$WANT_SCSI_CHIO" = x"yes"; then
22514 WANT_SCSI_CHIO_TRUE=
22515 WANT_SCSI_CHIO_FALSE='#'
22517 WANT_SCSI_CHIO_TRUE='#'
22518 WANT_SCSI_CHIO_FALSE=
22527 for ac_header in fstab.h \
22533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22535 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22536 $as_echo_n "checking for $ac_header... " >&6; }
22537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22538 $as_echo_n "(cached) " >&6
22540 ac_res=`eval 'as_val=${'$as_ac_Header'}
22541 $as_echo "$as_val"'`
22542 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22543 $as_echo "$ac_res" >&6; }
22545 # Is the header compilable?
22546 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22547 $as_echo_n "checking $ac_header usability... " >&6; }
22548 cat >conftest.$ac_ext <<_ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h. */
22554 $ac_includes_default
22555 #include <$ac_header>
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561 *) ac_try_echo=$ac_try;;
22563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22564 $as_echo "$ac_try_echo") >&5
22565 (eval "$ac_compile") 2>conftest.er1
22567 grep -v '^ *+' conftest.er1 >conftest.err
22569 cat conftest.err >&5
22570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); } && {
22572 test -z "$ac_c_werror_flag" ||
22573 test ! -s conftest.err
22574 } && test -s conftest.$ac_objext; then
22575 ac_header_compiler=yes
22577 $as_echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22580 ac_header_compiler=no
22583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22584 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22585 $as_echo "$ac_header_compiler" >&6; }
22587 # Is the header present?
22588 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22589 $as_echo_n "checking $ac_header presence... " >&6; }
22590 cat >conftest.$ac_ext <<_ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22596 #include <$ac_header>
22598 if { (ac_try="$ac_cpp conftest.$ac_ext"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22604 $as_echo "$ac_try_echo") >&5
22605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22607 grep -v '^ *+' conftest.er1 >conftest.err
22609 cat conftest.err >&5
22610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } >/dev/null && {
22612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22613 test ! -s conftest.err
22615 ac_header_preproc=yes
22617 $as_echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22620 ac_header_preproc=no
22623 rm -f conftest.err conftest.$ac_ext
22624 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22625 $as_echo "$ac_header_preproc" >&6; }
22627 # So? What about this header?
22628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22631 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22633 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22634 ac_header_preproc=yes
22637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22638 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22640 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22642 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22644 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22646 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22648 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22652 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22653 $as_echo_n "checking for $ac_header... " >&6; }
22654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22655 $as_echo_n "(cached) " >&6
22657 eval "$as_ac_Header=\$ac_header_preproc"
22659 ac_res=`eval 'as_val=${'$as_ac_Header'}
22660 $as_echo "$as_val"'`
22661 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22662 $as_echo "$ac_res" >&6; }
22665 as_val=`eval 'as_val=${'$as_ac_Header'}
22666 $as_echo "$as_val"'`
22667 if test "x$as_val" = x""yes; then
22668 cat >>confdefs.h <<_ACEOF
22669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22678 for ac_func in endmntent
22680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22682 $as_echo_n "checking for $ac_func... " >&6; }
22683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22684 $as_echo_n "(cached) " >&6
22686 cat >conftest.$ac_ext <<_ACEOF
22689 cat confdefs.h >>conftest.$ac_ext
22690 cat >>conftest.$ac_ext <<_ACEOF
22691 /* end confdefs.h. */
22692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22694 #define $ac_func innocuous_$ac_func
22696 /* System header to define __stub macros and hopefully few prototypes,
22697 which can conflict with char $ac_func (); below.
22698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22699 <limits.h> exists even on freestanding compilers. */
22702 # include <limits.h>
22704 # include <assert.h>
22709 /* Override any GCC internal prototype to avoid an error.
22710 Use char because int might match the return type of a GCC
22711 builtin and then its argument prototype would still apply. */
22716 /* The GNU C library defines this for functions which it implements
22717 to always fail with ENOSYS. Some functions are actually named
22718 something starting with __ and the normal name is an alias. */
22719 #if defined __stub_$ac_func || defined __stub___$ac_func
22726 return $ac_func ();
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22738 $as_echo "$ac_try_echo") >&5
22739 (eval "$ac_link") 2>conftest.er1
22741 grep -v '^ *+' conftest.er1 >conftest.err
22743 cat conftest.err >&5
22744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } && {
22746 test -z "$ac_c_werror_flag" ||
22747 test ! -s conftest.err
22748 } && test -s conftest$ac_exeext && {
22749 test "$cross_compiling" = yes ||
22750 $as_test_x conftest$ac_exeext
22752 eval "$as_ac_var=yes"
22754 $as_echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22757 eval "$as_ac_var=no"
22760 rm -rf conftest.dSYM
22761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22762 conftest$ac_exeext conftest.$ac_ext
22764 ac_res=`eval 'as_val=${'$as_ac_var'}
22765 $as_echo "$as_val"'`
22766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22767 $as_echo "$ac_res" >&6; }
22768 as_val=`eval 'as_val=${'$as_ac_var'}
22769 $as_echo "$as_val"'`
22770 if test "x$as_val" = x""yes; then
22771 cat >>confdefs.h <<_ACEOF
22772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22779 for ac_func in setmntent
22781 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22782 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22783 $as_echo_n "checking for $ac_func... " >&6; }
22784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22785 $as_echo_n "(cached) " >&6
22787 cat >conftest.$ac_ext <<_ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22795 #define $ac_func innocuous_$ac_func
22797 /* System header to define __stub macros and hopefully few prototypes,
22798 which can conflict with char $ac_func (); below.
22799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22800 <limits.h> exists even on freestanding compilers. */
22803 # include <limits.h>
22805 # include <assert.h>
22810 /* Override any GCC internal prototype to avoid an error.
22811 Use char because int might match the return type of a GCC
22812 builtin and then its argument prototype would still apply. */
22817 /* The GNU C library defines this for functions which it implements
22818 to always fail with ENOSYS. Some functions are actually named
22819 something starting with __ and the normal name is an alias. */
22820 #if defined __stub_$ac_func || defined __stub___$ac_func
22827 return $ac_func ();
22832 rm -f conftest.$ac_objext conftest$ac_exeext
22833 if { (ac_try="$ac_link"
22834 case "(($ac_try" in
22835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836 *) ac_try_echo=$ac_try;;
22838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22839 $as_echo "$ac_try_echo") >&5
22840 (eval "$ac_link") 2>conftest.er1
22842 grep -v '^ *+' conftest.er1 >conftest.err
22844 cat conftest.err >&5
22845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest$ac_exeext && {
22850 test "$cross_compiling" = yes ||
22851 $as_test_x conftest$ac_exeext
22853 eval "$as_ac_var=yes"
22855 $as_echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 eval "$as_ac_var=no"
22861 rm -rf conftest.dSYM
22862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22863 conftest$ac_exeext conftest.$ac_ext
22865 ac_res=`eval 'as_val=${'$as_ac_var'}
22866 $as_echo "$as_val"'`
22867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22868 $as_echo "$ac_res" >&6; }
22869 as_val=`eval 'as_val=${'$as_ac_var'}
22870 $as_echo "$as_val"'`
22871 if test "x$as_val" = x""yes; then
22872 cat >>confdefs.h <<_ACEOF
22873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22886 for ac_header in fcntl.h \
22893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22896 $as_echo_n "checking for $ac_header... " >&6; }
22897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898 $as_echo_n "(cached) " >&6
22900 ac_res=`eval 'as_val=${'$as_ac_Header'}
22901 $as_echo "$as_val"'`
22902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22903 $as_echo "$ac_res" >&6; }
22905 # Is the header compilable?
22906 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22907 $as_echo_n "checking $ac_header usability... " >&6; }
22908 cat >conftest.$ac_ext <<_ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22914 $ac_includes_default
22915 #include <$ac_header>
22917 rm -f conftest.$ac_objext
22918 if { (ac_try="$ac_compile"
22919 case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22924 $as_echo "$ac_try_echo") >&5
22925 (eval "$ac_compile") 2>conftest.er1
22927 grep -v '^ *+' conftest.er1 >conftest.err
22929 cat conftest.err >&5
22930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } && {
22932 test -z "$ac_c_werror_flag" ||
22933 test ! -s conftest.err
22934 } && test -s conftest.$ac_objext; then
22935 ac_header_compiler=yes
22937 $as_echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 ac_header_compiler=no
22943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22944 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22945 $as_echo "$ac_header_compiler" >&6; }
22947 # Is the header present?
22948 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22949 $as_echo_n "checking $ac_header presence... " >&6; }
22950 cat >conftest.$ac_ext <<_ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h. */
22956 #include <$ac_header>
22958 if { (ac_try="$ac_cpp conftest.$ac_ext"
22959 case "(($ac_try" in
22960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961 *) ac_try_echo=$ac_try;;
22963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22964 $as_echo "$ac_try_echo") >&5
22965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22967 grep -v '^ *+' conftest.er1 >conftest.err
22969 cat conftest.err >&5
22970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } >/dev/null && {
22972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22973 test ! -s conftest.err
22975 ac_header_preproc=yes
22977 $as_echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22980 ac_header_preproc=no
22983 rm -f conftest.err conftest.$ac_ext
22984 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22985 $as_echo "$ac_header_preproc" >&6; }
22987 # So? What about this header?
22988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22991 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22993 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22994 ac_header_preproc=yes
22997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22998 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23000 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23002 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23004 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23006 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23008 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23013 $as_echo_n "checking for $ac_header... " >&6; }
23014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23015 $as_echo_n "(cached) " >&6
23017 eval "$as_ac_Header=\$ac_header_preproc"
23019 ac_res=`eval 'as_val=${'$as_ac_Header'}
23020 $as_echo "$as_val"'`
23021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23022 $as_echo "$ac_res" >&6; }
23025 as_val=`eval 'as_val=${'$as_ac_Header'}
23026 $as_echo "$as_val"'`
23027 if test "x$as_val" = x""yes; then
23028 cat >>confdefs.h <<_ACEOF
23029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23037 # find a working file-locking mechanism.
23038 # Note: these all use AC_TRY_LINK to make sure that we can compile
23039 # and link each variant. They do not try to test the variants --
23040 # that is left to runtime.
23043 # check POSIX locking
23044 { $as_echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
23045 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
23046 if test "${amanda_cv_posix_filelocking+set}" = set; then
23047 $as_echo_n "(cached) " >&6
23050 cat >conftest.$ac_ext <<_ACEOF
23053 cat confdefs.h >>conftest.$ac_ext
23054 cat >>conftest.$ac_ext <<_ACEOF
23055 /* end confdefs.h. */
23057 #if HAVE_SYS_TYPES_H
23058 # include <sys/types.h>
23061 # include <unistd.h>
23064 # include <fcntl.h>
23073 lock.l_type = F_RDLCK;
23075 lock.l_whence = SEEK_CUR;
23077 return fcntl(1, F_SETLK, &lock);
23083 rm -f conftest.$ac_objext conftest$ac_exeext
23084 if { (ac_try="$ac_link"
23085 case "(($ac_try" in
23086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087 *) ac_try_echo=$ac_try;;
23089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23090 $as_echo "$ac_try_echo") >&5
23091 (eval "$ac_link") 2>conftest.er1
23093 grep -v '^ *+' conftest.er1 >conftest.err
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_exeext && {
23101 test "$cross_compiling" = yes ||
23102 $as_test_x conftest$ac_exeext
23105 amanda_cv_posix_filelocking="yes"
23108 $as_echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23112 amanda_cv_posix_filelocking="no"
23116 rm -rf conftest.dSYM
23117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23118 conftest$ac_exeext conftest.$ac_ext
23121 { $as_echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
23122 $as_echo "$amanda_cv_posix_filelocking" >&6; }
23123 if test "x$amanda_cv_posix_filelocking" = xyes; then
23125 cat >>confdefs.h <<\_ACEOF
23126 #define WANT_AMFLOCK_POSIX 1
23129 WANT_AMFLOCK_POSIX="yes"
23130 LOCKING="POSIX_FCNTL"
23132 if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
23133 WANT_AMFLOCK_POSIX_TRUE=
23134 WANT_AMFLOCK_POSIX_FALSE='#'
23136 WANT_AMFLOCK_POSIX_TRUE='#'
23137 WANT_AMFLOCK_POSIX_FALSE=
23141 # check flock-based (BSD) locking
23142 { $as_echo "$as_me:$LINENO: checking whether flock locking is available" >&5
23143 $as_echo_n "checking whether flock locking is available... " >&6; }
23144 if test "${amanda_cv_flock_filelocking+set}" = set; then
23145 $as_echo_n "(cached) " >&6
23148 cat >conftest.$ac_ext <<_ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h. */
23155 #if HAVE_SYS_FILE_H
23156 # include <sys/file.h>
23163 return flock(1, LOCK_SH);
23169 rm -f conftest.$ac_objext conftest$ac_exeext
23170 if { (ac_try="$ac_link"
23171 case "(($ac_try" in
23172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173 *) ac_try_echo=$ac_try;;
23175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23176 $as_echo "$ac_try_echo") >&5
23177 (eval "$ac_link") 2>conftest.er1
23179 grep -v '^ *+' conftest.er1 >conftest.err
23181 cat conftest.err >&5
23182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } && {
23184 test -z "$ac_c_werror_flag" ||
23185 test ! -s conftest.err
23186 } && test -s conftest$ac_exeext && {
23187 test "$cross_compiling" = yes ||
23188 $as_test_x conftest$ac_exeext
23191 amanda_cv_flock_filelocking="yes"
23194 $as_echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23198 amanda_cv_flock_filelocking="no"
23202 rm -rf conftest.dSYM
23203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23204 conftest$ac_exeext conftest.$ac_ext
23207 { $as_echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
23208 $as_echo "$amanda_cv_flock_filelocking" >&6; }
23209 if test "x$amanda_cv_flock_filelocking" = xyes; then
23211 cat >>confdefs.h <<\_ACEOF
23212 #define WANT_AMFLOCK_FLOCK 1
23215 WANT_AMFLOCK_FLOCK="yes"
23218 if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
23219 WANT_AMFLOCK_FLOCK_TRUE=
23220 WANT_AMFLOCK_FLOCK_FALSE='#'
23222 WANT_AMFLOCK_FLOCK_TRUE='#'
23223 WANT_AMFLOCK_FLOCK_FALSE=
23227 # check lockf-based (SVR2, SVR3, SVR4) locking
23228 { $as_echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
23229 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
23230 if test "${amanda_cv_lockf_filelocking+set}" = set; then
23231 $as_echo_n "(cached) " >&6
23234 cat >conftest.$ac_ext <<_ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23242 # include <unistd.h>
23249 return lockf(1, F_LOCK, 0);
23255 rm -f conftest.$ac_objext conftest$ac_exeext
23256 if { (ac_try="$ac_link"
23257 case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23262 $as_echo "$ac_try_echo") >&5
23263 (eval "$ac_link") 2>conftest.er1
23265 grep -v '^ *+' conftest.er1 >conftest.err
23267 cat conftest.err >&5
23268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); } && {
23270 test -z "$ac_c_werror_flag" ||
23271 test ! -s conftest.err
23272 } && test -s conftest$ac_exeext && {
23273 test "$cross_compiling" = yes ||
23274 $as_test_x conftest$ac_exeext
23277 amanda_cv_lockf_filelocking="yes"
23280 $as_echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23284 amanda_cv_lockf_filelocking="no"
23288 rm -rf conftest.dSYM
23289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23290 conftest$ac_exeext conftest.$ac_ext
23293 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
23294 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
23295 if test "x$amanda_cv_lockf_filelocking" = xyes; then
23297 cat >>confdefs.h <<\_ACEOF
23298 #define WANT_AMFLOCK_LOCKF 1
23301 WANT_AMFLOCK_LOCKF="yes"
23304 if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
23305 WANT_AMFLOCK_LOCKF_TRUE=
23306 WANT_AMFLOCK_LOCKF_FALSE='#'
23308 WANT_AMFLOCK_LOCKF_TRUE='#'
23309 WANT_AMFLOCK_LOCKF_FALSE=
23313 # check our homebrew hardlink-based locking (requires hardlinks)
23314 { $as_echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
23315 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
23316 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
23317 $as_echo_n "(cached) " >&6
23320 cat >conftest.$ac_ext <<_ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23328 # include <unistd.h>
23335 return link("/tmp/foo", "/tmp/bar");
23341 rm -f conftest.$ac_objext conftest$ac_exeext
23342 if { (ac_try="$ac_link"
23343 case "(($ac_try" in
23344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345 *) ac_try_echo=$ac_try;;
23347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23348 $as_echo "$ac_try_echo") >&5
23349 (eval "$ac_link") 2>conftest.er1
23351 grep -v '^ *+' conftest.er1 >conftest.err
23353 cat conftest.err >&5
23354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); } && {
23356 test -z "$ac_c_werror_flag" ||
23357 test ! -s conftest.err
23358 } && test -s conftest$ac_exeext && {
23359 test "$cross_compiling" = yes ||
23360 $as_test_x conftest$ac_exeext
23363 amanda_cv_lnlock_filelocking="yes"
23366 $as_echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23370 amanda_cv_lnlock_filelocking="no"
23374 rm -rf conftest.dSYM
23375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23376 conftest$ac_exeext conftest.$ac_ext
23379 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
23380 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
23381 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
23383 cat >>confdefs.h <<\_ACEOF
23384 #define WANT_AMFLOCK_LNLOCK 1
23387 WANT_AMFLOCK_LNLOCK="yes"
23390 if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
23391 WANT_AMFLOCK_LNLOCK_TRUE=
23392 WANT_AMFLOCK_LNLOCK_FALSE='#'
23394 WANT_AMFLOCK_LNLOCK_TRUE='#'
23395 WANT_AMFLOCK_LNLOCK_FALSE=
23399 if test x"$LOCKING" = "no"; then
23400 # this shouldn't happen, and is *bad* if it does
23401 { { $as_echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
23402 $as_echo "$as_me: error: *** No working file locking capability found!" >&2;}
23403 { (exit 1); exit 1; }; }
23410 for ac_prog in swig
23412 # Extract the first word of "$ac_prog", so it can be a program name with args.
23413 set dummy $ac_prog; ac_word=$2
23414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23415 $as_echo_n "checking for $ac_word... " >&6; }
23416 if test "${ac_cv_path_SWIG+set}" = set; then
23417 $as_echo_n "(cached) " >&6
23421 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23425 for as_dir in $LOCSYSPATH
23428 test -z "$as_dir" && as_dir=.
23429 for ac_exec_ext in '' $ac_executable_extensions; do
23430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23431 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23442 SWIG=$ac_cv_path_SWIG
23443 if test -n "$SWIG"; then
23444 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
23445 $as_echo "$SWIG" >&6; }
23447 { $as_echo "$as_me:$LINENO: result: no" >&5
23448 $as_echo "no" >&6; }
23452 test -n "$SWIG" && break
23457 # Extract the first word of "swig", so it can be a program name with args.
23458 set dummy swig; ac_word=$2
23459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23460 $as_echo_n "checking for $ac_word... " >&6; }
23461 if test "${ac_cv_path_SWIG+set}" = set; then
23462 $as_echo_n "(cached) " >&6
23466 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23470 for as_dir in $PATH
23473 test -z "$as_dir" && as_dir=.
23474 for ac_exec_ext in '' $ac_executable_extensions; do
23475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23476 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23487 SWIG=$ac_cv_path_SWIG
23488 if test -n "$SWIG"; then
23489 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
23490 $as_echo "$SWIG" >&6; }
23492 { $as_echo "$as_me:$LINENO: result: no" >&5
23493 $as_echo "no" >&6; }
23497 if test -z "$SWIG" ; then
23498 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
23499 elif test -n "1.3.28" ; then
23500 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
23501 $as_echo_n "checking for SWIG version... " >&6; }
23502 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
23503 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
23504 $as_echo "$swig_version" >&6; }
23505 if test -n "$swig_version" ; then
23506 # Calculate the required version number components
23508 required_major=`echo $required | sed 's/[^0-9].*//'`
23509 if test -z "$required_major" ; then
23512 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
23513 required_minor=`echo $required | sed 's/[^0-9].*//'`
23514 if test -z "$required_minor" ; then
23517 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
23518 required_patch=`echo $required | sed 's/[^0-9].*//'`
23519 if test -z "$required_patch" ; then
23522 # Calculate the available version number components
23523 available=$swig_version
23524 available_major=`echo $available | sed 's/[^0-9].*//'`
23525 if test -z "$available_major" ; then
23528 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
23529 available_minor=`echo $available | sed 's/[^0-9].*//'`
23530 if test -z "$available_minor" ; then
23533 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
23534 available_patch=`echo $available | sed 's/[^0-9].*//'`
23535 if test -z "$available_patch" ; then
23538 if test $available_major -ne $required_major \
23539 -o $available_minor -ne $required_minor \
23540 -o $available_patch -lt $required_patch ; then
23541 SWIG='echo "Error: SWIG version >= 1.3.28 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
23543 SWIG_LIB=`$SWIG -swiglib`
23546 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
23554 for ac_prog in perl5 perl
23556 # Extract the first word of "$ac_prog", so it can be a program name with args.
23557 set dummy $ac_prog; ac_word=$2
23558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23559 $as_echo_n "checking for $ac_word... " >&6; }
23560 if test "${ac_cv_path_PERL+set}" = set; then
23561 $as_echo_n "(cached) " >&6
23565 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
23568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23569 for as_dir in $LOCSYSPATH
23572 test -z "$as_dir" && as_dir=.
23573 for ac_exec_ext in '' $ac_executable_extensions; do
23574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23575 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
23576 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23586 PERL=$ac_cv_path_PERL
23587 if test -n "$PERL"; then
23588 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23589 $as_echo "$PERL" >&6; }
23591 { $as_echo "$as_me:$LINENO: result: no" >&5
23592 $as_echo "no" >&6; }
23596 test -n "$PERL" && break
23600 # Make sure we have perl
23601 if test -z "$PERL"; then
23602 # Extract the first word of "perl", so it can be a program name with args.
23603 set dummy perl; ac_word=$2
23604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23605 $as_echo_n "checking for $ac_word... " >&6; }
23606 if test "${ac_cv_prog_PERL+set}" = set; then
23607 $as_echo_n "(cached) " >&6
23609 if test -n "$PERL"; then
23610 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23613 for as_dir in $PATH
23616 test -z "$as_dir" && as_dir=.
23617 for ac_exec_ext in '' $ac_executable_extensions; do
23618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23619 ac_cv_prog_PERL="perl"
23620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23629 PERL=$ac_cv_prog_PERL
23630 if test -n "$PERL"; then
23631 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23632 $as_echo "$PERL" >&6; }
23634 { $as_echo "$as_me:$LINENO: result: no" >&5
23635 $as_echo "no" >&6; }
23641 # Check if version of Perl is sufficient
23642 ac_perl_version="5.6.0"
23644 if test "x$PERL" != "x"; then
23645 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
23646 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
23647 # NB: It would be nice to log the error if there is one, but we cannot rely
23648 # on autoconf internals
23649 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
23650 if test $? -ne 0; then
23651 { $as_echo "$as_me:$LINENO: result: no" >&5
23652 $as_echo "no" >&6; };
23654 { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
23655 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
23656 { (exit 1); exit 1; }; }
23659 { $as_echo "$as_me:$LINENO: result: ok" >&5
23660 $as_echo "ok" >&6; };
23664 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
23665 $as_echo "$as_me: WARNING: could not find perl" >&2;}
23673 # If we want cygwin to copy ddl to modules directory.
23674 WANT_CYGWIN_COPY_PERL_DLL="false"
23676 # test for ExtUtils::Embed
23677 ac_perl_list_modules="ExtUtils::Embed 0.0"
23678 # Make sure we have perl
23679 if test -z "$PERL"; then
23680 # Extract the first word of "perl", so it can be a program name with args.
23681 set dummy perl; ac_word=$2
23682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23683 $as_echo_n "checking for $ac_word... " >&6; }
23684 if test "${ac_cv_prog_PERL+set}" = set; then
23685 $as_echo_n "(cached) " >&6
23687 if test -n "$PERL"; then
23688 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23691 for as_dir in $PATH
23694 test -z "$as_dir" && as_dir=.
23695 for ac_exec_ext in '' $ac_executable_extensions; do
23696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23697 ac_cv_prog_PERL="perl"
23698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23707 PERL=$ac_cv_prog_PERL
23708 if test -n "$PERL"; then
23709 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23710 $as_echo "$PERL" >&6; }
23712 { $as_echo "$as_me:$LINENO: result: no" >&5
23713 $as_echo "no" >&6; }
23719 # Check the number of arguments
23720 args_num=`echo $ac_perl_list_modules | wc -w`
23721 let "ckeck_args = $args_num % 2"
23722 if test "$check_args" = "1" ; then
23723 { { $as_echo "$as_me:$LINENO: error: syntax error" >&5
23724 $as_echo "$as_me: error: syntax error" >&2;}
23725 { (exit 1); exit 1; }; }
23730 if test "x$PERL" != x; then
23732 while test ${#ac_perl_list_modules} -gt 2 ; do
23733 module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
23734 module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
23735 ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
23736 { $as_echo "$as_me:$LINENO: checking for perl module $module_name version $module_version" >&5
23737 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
23739 $PERL "-M$module_name" -e exit > /dev/null 2>&1
23740 if test $? -ne 0; then
23741 { $as_echo "$as_me:$LINENO: result: no" >&5
23742 $as_echo "no" >&6; };
23744 ac_perl_list_modules=""
23746 version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
23747 $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
23748 if test $? -eq 0 -o $? -eq 1 ; then
23749 { $as_echo "$as_me:$LINENO: result: ok" >&5
23750 $as_echo "ok" >&6; };
23752 { $as_echo "$as_me:$LINENO: result: no" >&5
23753 $as_echo "no" >&6; }
23755 ac_perl_list_modules=""
23760 if test "$ac_failed" = 0; then
23766 { { $as_echo "$as_me:$LINENO: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&5
23767 $as_echo "$as_me: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&2;}
23768 { (exit 1); exit 1; }; }
23772 { { $as_echo "$as_me:$LINENO: error: could not find perl" >&5
23773 $as_echo "$as_me: error: could not find perl" >&2;}
23774 { (exit 1); exit 1; }; }
23777 # get the include path for building perl extensions
23778 PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
23781 if test x"$enable_shared" = x"no"; then
23782 { { $as_echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
23783 $as_echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
23784 { (exit 1); exit 1; }; }
23788 *freebsd[123456]*) # up to and including FreeBSD 6.*
23789 # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
23790 # libgthread to automatically pull in the desired threading library.
23791 # Instead, they assume that any application linking against
23792 # libgthread will pull in the threading library. This is fine for
23793 # Amanda C applications, but for Perl applications this assumption
23794 # means that the perl binary would pull in the threading library.
23795 # But perl is compiled without threading by default.
23797 # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
23798 # decision is made in gcc's spec files, which were changed in
23799 # gcc-4.0. For a more in-depth discussion, see
23800 # http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
23802 # The easiest solution for the "default" case is to link all perl
23803 # extension libraries against the threading library, so it is loaded
23804 # when perl loads the extension library. The default threading
23805 # library in FreeBSD is libpthread. The below default will work on
23806 # such a FreeBSD system, but ports maintainers and those with
23807 # different configurations may need to override this value with
23808 # --with-perlextlibs.
23810 # We can't use -pthread because gcc on FreeBSD ignores -pthread in
23811 # combination with -shared. See
23812 # http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
23814 PERLEXTLIBS="-lpthread"
23817 # When need -lperl and the '-L' where it is located,
23818 # we don't want the DynaLoader.a
23819 PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
23820 WANT_CYGWIN_COPY_PERL_DLL="true";
23823 if $WANT_CYGWIN_COPY_PERL_DLL; then
23824 WANT_CYGWIN_COPY_PERL_DLL_TRUE=
23825 WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
23827 WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
23828 WANT_CYGWIN_COPY_PERL_DLL_FALSE=
23833 # Check whether --with-perlextlibs was given.
23834 if test "${with_perlextlibs+set}" = set; then
23835 withval=$with_perlextlibs;
23837 y|ye|yes) { { $as_echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
23838 $as_echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
23839 { (exit 1); exit 1; }; };;
23840 n|no) PERLEXTLIBS='';;
23841 *) PERLEXTLIBS="$withval" ;;
23850 # Extract the first word of "cat", so it can be a program name with args.
23851 set dummy cat; ac_word=$2
23852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23853 $as_echo_n "checking for $ac_word... " >&6; }
23854 if test "${ac_cv_path_CAT+set}" = set; then
23855 $as_echo_n "(cached) " >&6
23859 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
23862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23863 for as_dir in $LOCSYSPATH
23866 test -z "$as_dir" && as_dir=.
23867 for ac_exec_ext in '' $ac_executable_extensions; do
23868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23869 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
23870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23877 test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
23881 CAT=$ac_cv_path_CAT
23882 if test -n "$CAT"; then
23883 { $as_echo "$as_me:$LINENO: result: $CAT" >&5
23884 $as_echo "$CAT" >&6; }
23886 { $as_echo "$as_me:$LINENO: result: no" >&5
23887 $as_echo "no" >&6; }
23898 if test "$GZIP"; then
23900 cat >>confdefs.h <<\_ACEOF
23901 #define HAVE_GZIP 1
23905 COMPRESS_PATH="$GZIP"
23906 COMPRESS_SUFFIX=".gz"
23907 COMPRESS_FAST_OPT="--fast"
23908 COMPRESS_BEST_OPT="--best"
23909 UNCOMPRESS_PATH="$GZIP"
23910 UNCOMPRESS_OPT="-dc"
23912 if test "$COMPRESS"; then
23913 COMPRESS_PATH="$COMPRESS"
23914 COMPRESS_SUFFIX=".Z"
23915 COMPRESS_FAST_OPT="-f"
23916 COMPRESS_BEST_OPT="-f"
23917 UNCOMPRESS_PATH="$COMPRESS"
23918 UNCOMPRESS_OPT="-dc"
23920 # If we have to use cat, we don't define COMPRESS_FAST_OPT,
23921 # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
23922 # look for a file by the name of "".
23923 # XXX is the above true? --dustin
23926 { $as_echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress. Using cat." >&5
23927 $as_echo "$as_me: WARNING: Cannot find either gzip or compress. Using cat." >&2;}
23930 cat <<AAW_EOF >>config.warnings
23931 Cannot find either gzip or compress. Using cat.
23935 COMPRESS_PATH="$CAT"
23937 COMPRESS_FAST_OPT=""
23938 COMPRESS_BEST_OPT=""
23939 UNCOMPRESS_PATH="$CAT"
23945 cat >>confdefs.h <<_ACEOF
23946 #define COMPRESS_PATH "$COMPRESS_PATH"
23950 cat >>confdefs.h <<_ACEOF
23951 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
23955 cat >>confdefs.h <<_ACEOF
23956 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
23960 cat >>confdefs.h <<_ACEOF
23961 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
23965 cat >>confdefs.h <<_ACEOF
23966 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
23970 cat >>confdefs.h <<_ACEOF
23971 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
23983 # Empty GZIP so that make dist works.
23987 { $as_echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
23988 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
23989 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
23990 $as_echo_n "(cached) " >&6
23993 cat >conftest.$ac_ext <<_ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
24000 # include <sys/types.h>
24001 # include <sys/socket.h>
24005 u_int i = sizeof (struct sockaddr_storage)
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24017 $as_echo "$ac_try_echo") >&5
24018 (eval "$ac_compile") 2>conftest.er1
24020 grep -v '^ *+' conftest.er1 >conftest.err
24022 cat conftest.err >&5
24023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } && {
24025 test -z "$ac_c_werror_flag" ||
24026 test ! -s conftest.err
24027 } && test -s conftest.$ac_objext; then
24028 ac_cv_has_sockaddr_storage=yes
24030 $as_echo "$as_me: failed program was:" >&5
24031 sed 's/^/| /' conftest.$ac_ext >&5
24033 ac_cv_has_sockaddr_storage=no
24036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24039 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
24040 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
24042 if test $ac_cv_has_sockaddr_storage = yes ; then
24044 cat >>confdefs.h <<\_ACEOF
24045 #define HAVE_SOCKADDR_STORAGE 1
24055 # Check whether --with-ipv6 was given.
24056 if test "${with_ipv6+set}" = set; then
24057 withval=$with_ipv6;
24059 y | ye | yes) amanda_with_ipv6=yes;;
24060 n | no) amanda_with_ipv6=no;;
24062 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
24063 $as_echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
24064 { (exit 1); exit 1; }; }
24070 amanda_with_ipv6=maybe
24076 if test x"$amanda_with_ipv6" = x"yes" ||
24077 test x"$amanda_with_ipv6" = x"maybe" ; then
24078 { $as_echo "$as_me:$LINENO: checking for working IPv6" >&5
24079 $as_echo_n "checking for working IPv6... " >&6; }
24080 if test "${amanda_cv_working_ipv6+set}" = set; then
24081 $as_echo_n "(cached) " >&6
24085 *-pc-cygwin) amanda_cv_working_ipv6=no;;
24087 if test "$cross_compiling" = yes; then
24088 amanda_cv_working_ipv6=yes
24091 cat >conftest.$ac_ext <<_ACEOF
24094 cat confdefs.h >>conftest.$ac_ext
24095 cat >>conftest.$ac_ext <<_ACEOF
24096 /* end confdefs.h. */
24098 #include <sys/types.h>
24099 #ifdef HAVE_SYS_SOCKET_H
24100 #include <sys/socket.h>
24102 #ifdef HAVE_NETINET_IN_H
24103 #include <netinet/in.h>
24105 #ifdef HAVE_WINSOCK2_H
24106 #include <winsock2.h>
24108 #include <sys/socket.h>
24114 aa = socket(AF_INET6, SOCK_STREAM, 0);
24115 if (aa > 0) return 0;
24119 rm -f conftest$ac_exeext
24120 if { (ac_try="$ac_link"
24121 case "(($ac_try" in
24122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123 *) ac_try_echo=$ac_try;;
24125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24126 $as_echo "$ac_try_echo") >&5
24127 (eval "$ac_link") 2>&5
24129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24131 { (case "(($ac_try" in
24132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133 *) ac_try_echo=$ac_try;;
24135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24136 $as_echo "$ac_try_echo") >&5
24137 (eval "$ac_try") 2>&5
24139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); }; }; then
24141 amanda_cv_working_ipv6=yes
24143 $as_echo "$as_me: program exited with status $ac_status" >&5
24144 $as_echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24147 ( exit $ac_status )
24148 amanda_cv_working_ipv6=no
24150 rm -rf conftest.dSYM
24151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24158 { $as_echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
24159 $as_echo "$amanda_cv_working_ipv6" >&6; }
24161 if test "$amanda_cv_working_ipv6" = yes; then
24164 cat >>confdefs.h <<\_ACEOF
24165 #define WORKING_IPV6 1
24169 # error out only if the user specifically requested support
24170 if test x"$amanda_with_ipv6" = x"yes"; then
24171 { { $as_echo "$as_me:$LINENO: error: IPv6 support was requested, but it is not working." >&5
24172 $as_echo "$as_me: error: IPv6 support was requested, but it is not working." >&2;}
24173 { (exit 1); exit 1; }; }
24181 # Check whether --with-mmap was given.
24182 if test "${with_mmap+set}" = set; then
24183 withval=$with_mmap;
24184 case "$FORCE_MMAP" in
24185 y | ye | yes | n | no) : ;;
24186 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
24187 $as_echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
24188 { (exit 1); exit 1; }; } ;;
24190 FORCE_MMAP=$withval
24206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24209 $as_echo_n "checking for $ac_header... " >&6; }
24210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24211 $as_echo_n "(cached) " >&6
24213 ac_res=`eval 'as_val=${'$as_ac_Header'}
24214 $as_echo "$as_val"'`
24215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24216 $as_echo "$ac_res" >&6; }
24218 # Is the header compilable?
24219 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24220 $as_echo_n "checking $ac_header usability... " >&6; }
24221 cat >conftest.$ac_ext <<_ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 $ac_includes_default
24228 #include <$ac_header>
24230 rm -f conftest.$ac_objext
24231 if { (ac_try="$ac_compile"
24232 case "(($ac_try" in
24233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234 *) ac_try_echo=$ac_try;;
24236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24237 $as_echo "$ac_try_echo") >&5
24238 (eval "$ac_compile") 2>conftest.er1
24240 grep -v '^ *+' conftest.er1 >conftest.err
24242 cat conftest.err >&5
24243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); } && {
24245 test -z "$ac_c_werror_flag" ||
24246 test ! -s conftest.err
24247 } && test -s conftest.$ac_objext; then
24248 ac_header_compiler=yes
24250 $as_echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24253 ac_header_compiler=no
24256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24257 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24258 $as_echo "$ac_header_compiler" >&6; }
24260 # Is the header present?
24261 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24262 $as_echo_n "checking $ac_header presence... " >&6; }
24263 cat >conftest.$ac_ext <<_ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h. */
24269 #include <$ac_header>
24271 if { (ac_try="$ac_cpp conftest.$ac_ext"
24272 case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24277 $as_echo "$ac_try_echo") >&5
24278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24280 grep -v '^ *+' conftest.er1 >conftest.err
24282 cat conftest.err >&5
24283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284 (exit $ac_status); } >/dev/null && {
24285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24286 test ! -s conftest.err
24288 ac_header_preproc=yes
24290 $as_echo "$as_me: failed program was:" >&5
24291 sed 's/^/| /' conftest.$ac_ext >&5
24293 ac_header_preproc=no
24296 rm -f conftest.err conftest.$ac_ext
24297 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24298 $as_echo "$ac_header_preproc" >&6; }
24300 # So? What about this header?
24301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24304 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24306 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24307 ac_header_preproc=yes
24310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24311 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24313 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24315 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24317 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24319 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24321 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24325 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24326 $as_echo_n "checking for $ac_header... " >&6; }
24327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24328 $as_echo_n "(cached) " >&6
24330 eval "$as_ac_Header=\$ac_header_preproc"
24332 ac_res=`eval 'as_val=${'$as_ac_Header'}
24333 $as_echo "$as_val"'`
24334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24335 $as_echo "$ac_res" >&6; }
24338 as_val=`eval 'as_val=${'$as_ac_Header'}
24339 $as_echo "$as_val"'`
24340 if test "x$as_val" = x""yes; then
24341 cat >>confdefs.h <<_ACEOF
24342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24352 for ac_header in stdlib.h unistd.h
24354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24357 $as_echo_n "checking for $ac_header... " >&6; }
24358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24359 $as_echo_n "(cached) " >&6
24361 ac_res=`eval 'as_val=${'$as_ac_Header'}
24362 $as_echo "$as_val"'`
24363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24364 $as_echo "$ac_res" >&6; }
24366 # Is the header compilable?
24367 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24368 $as_echo_n "checking $ac_header usability... " >&6; }
24369 cat >conftest.$ac_ext <<_ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h. */
24375 $ac_includes_default
24376 #include <$ac_header>
24378 rm -f conftest.$ac_objext
24379 if { (ac_try="$ac_compile"
24380 case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24385 $as_echo "$ac_try_echo") >&5
24386 (eval "$ac_compile") 2>conftest.er1
24388 grep -v '^ *+' conftest.er1 >conftest.err
24390 cat conftest.err >&5
24391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); } && {
24393 test -z "$ac_c_werror_flag" ||
24394 test ! -s conftest.err
24395 } && test -s conftest.$ac_objext; then
24396 ac_header_compiler=yes
24398 $as_echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.$ac_ext >&5
24401 ac_header_compiler=no
24404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24405 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24406 $as_echo "$ac_header_compiler" >&6; }
24408 # Is the header present?
24409 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24410 $as_echo_n "checking $ac_header presence... " >&6; }
24411 cat >conftest.$ac_ext <<_ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 #include <$ac_header>
24419 if { (ac_try="$ac_cpp conftest.$ac_ext"
24420 case "(($ac_try" in
24421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422 *) ac_try_echo=$ac_try;;
24424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24425 $as_echo "$ac_try_echo") >&5
24426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24428 grep -v '^ *+' conftest.er1 >conftest.err
24430 cat conftest.err >&5
24431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } >/dev/null && {
24433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24434 test ! -s conftest.err
24436 ac_header_preproc=yes
24438 $as_echo "$as_me: failed program was:" >&5
24439 sed 's/^/| /' conftest.$ac_ext >&5
24441 ac_header_preproc=no
24444 rm -f conftest.err conftest.$ac_ext
24445 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24446 $as_echo "$ac_header_preproc" >&6; }
24448 # So? What about this header?
24449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24452 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24454 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24455 ac_header_preproc=yes
24458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24459 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24461 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24463 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24465 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24467 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24469 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24473 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24474 $as_echo_n "checking for $ac_header... " >&6; }
24475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24476 $as_echo_n "(cached) " >&6
24478 eval "$as_ac_Header=\$ac_header_preproc"
24480 ac_res=`eval 'as_val=${'$as_ac_Header'}
24481 $as_echo "$as_val"'`
24482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24483 $as_echo "$ac_res" >&6; }
24486 as_val=`eval 'as_val=${'$as_ac_Header'}
24487 $as_echo "$as_val"'`
24488 if test "x$as_val" = x""yes; then
24489 cat >>confdefs.h <<_ACEOF
24490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24498 for ac_func in getpagesize
24500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24501 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24502 $as_echo_n "checking for $ac_func... " >&6; }
24503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24504 $as_echo_n "(cached) " >&6
24506 cat >conftest.$ac_ext <<_ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24514 #define $ac_func innocuous_$ac_func
24516 /* System header to define __stub macros and hopefully few prototypes,
24517 which can conflict with char $ac_func (); below.
24518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24519 <limits.h> exists even on freestanding compilers. */
24522 # include <limits.h>
24524 # include <assert.h>
24529 /* Override any GCC internal prototype to avoid an error.
24530 Use char because int might match the return type of a GCC
24531 builtin and then its argument prototype would still apply. */
24536 /* The GNU C library defines this for functions which it implements
24537 to always fail with ENOSYS. Some functions are actually named
24538 something starting with __ and the normal name is an alias. */
24539 #if defined __stub_$ac_func || defined __stub___$ac_func
24546 return $ac_func ();
24551 rm -f conftest.$ac_objext conftest$ac_exeext
24552 if { (ac_try="$ac_link"
24553 case "(($ac_try" in
24554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24555 *) ac_try_echo=$ac_try;;
24557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24558 $as_echo "$ac_try_echo") >&5
24559 (eval "$ac_link") 2>conftest.er1
24561 grep -v '^ *+' conftest.er1 >conftest.err
24563 cat conftest.err >&5
24564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } && {
24566 test -z "$ac_c_werror_flag" ||
24567 test ! -s conftest.err
24568 } && test -s conftest$ac_exeext && {
24569 test "$cross_compiling" = yes ||
24570 $as_test_x conftest$ac_exeext
24572 eval "$as_ac_var=yes"
24574 $as_echo "$as_me: failed program was:" >&5
24575 sed 's/^/| /' conftest.$ac_ext >&5
24577 eval "$as_ac_var=no"
24580 rm -rf conftest.dSYM
24581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24582 conftest$ac_exeext conftest.$ac_ext
24584 ac_res=`eval 'as_val=${'$as_ac_var'}
24585 $as_echo "$as_val"'`
24586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24587 $as_echo "$ac_res" >&6; }
24588 as_val=`eval 'as_val=${'$as_ac_var'}
24589 $as_echo "$as_val"'`
24590 if test "x$as_val" = x""yes; then
24591 cat >>confdefs.h <<_ACEOF
24592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24598 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
24599 $as_echo_n "checking for working mmap... " >&6; }
24600 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24601 $as_echo_n "(cached) " >&6
24603 if test "$cross_compiling" = yes; then
24604 ac_cv_func_mmap_fixed_mapped=no
24606 cat >conftest.$ac_ext <<_ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 $ac_includes_default
24613 /* malloc might have been renamed as rpl_malloc. */
24616 /* Thanks to Mike Haertel and Jim Avera for this test.
24617 Here is a matrix of mmap possibilities:
24618 mmap private not fixed
24619 mmap private fixed at somewhere currently unmapped
24620 mmap private fixed at somewhere already mapped
24621 mmap shared not fixed
24622 mmap shared fixed at somewhere currently unmapped
24623 mmap shared fixed at somewhere already mapped
24624 For private mappings, we should verify that changes cannot be read()
24625 back from the file, nor mmap's back from the file at a different
24626 address. (There have been systems where private was not correctly
24627 implemented like the infamous i386 svr4.0, and systems where the
24628 VM page cache was not coherent with the file system buffer cache
24629 like early versions of FreeBSD and possibly contemporary NetBSD.)
24630 For shared mappings, we should conversely verify that changes get
24631 propagated back to all the places they're supposed to be.
24633 Grep wants private fixed already mapped.
24634 The main things grep needs to know about mmap are:
24635 * does it exist and is it safe to write into the mmap'd area
24636 * how to use it (BSD variants) */
24639 #include <sys/mman.h>
24641 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24645 /* This mess was copied from the GNU getpagesize.h. */
24646 #ifndef HAVE_GETPAGESIZE
24647 /* Assume that all systems that can run configure have sys/param.h. */
24648 # ifndef HAVE_SYS_PARAM_H
24649 # define HAVE_SYS_PARAM_H 1
24652 # ifdef _SC_PAGESIZE
24653 # define getpagesize() sysconf(_SC_PAGESIZE)
24654 # else /* no _SC_PAGESIZE */
24655 # ifdef HAVE_SYS_PARAM_H
24656 # include <sys/param.h>
24657 # ifdef EXEC_PAGESIZE
24658 # define getpagesize() EXEC_PAGESIZE
24659 # else /* no EXEC_PAGESIZE */
24661 # define getpagesize() NBPG * CLSIZE
24664 # endif /* no CLSIZE */
24665 # else /* no NBPG */
24667 # define getpagesize() NBPC
24668 # else /* no NBPC */
24670 # define getpagesize() PAGESIZE
24671 # endif /* PAGESIZE */
24672 # endif /* no NBPC */
24673 # endif /* no NBPG */
24674 # endif /* no EXEC_PAGESIZE */
24675 # else /* no HAVE_SYS_PARAM_H */
24676 # define getpagesize() 8192 /* punt totally */
24677 # endif /* no HAVE_SYS_PARAM_H */
24678 # endif /* no _SC_PAGESIZE */
24680 #endif /* no HAVE_GETPAGESIZE */
24685 char *data, *data2, *data3;
24689 pagesize = getpagesize ();
24691 /* First, make a file with some known garbage in it. */
24692 data = (char *) malloc (pagesize);
24695 for (i = 0; i < pagesize; ++i)
24696 *(data + i) = rand ();
24698 fd = creat ("conftest.mmap", 0600);
24701 if (write (fd, data, pagesize) != pagesize)
24705 /* Next, try to mmap the file at a fixed address which already has
24706 something else allocated at it. If we can, also make sure that
24707 we see the same garbage. */
24708 fd = open ("conftest.mmap", O_RDWR);
24711 data2 = (char *) malloc (2 * pagesize);
24714 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24715 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24716 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24718 for (i = 0; i < pagesize; ++i)
24719 if (*(data + i) != *(data2 + i))
24722 /* Finally, make sure that changes to the mapped area do not
24723 percolate back to the file as seen by read(). (This is a bug on
24724 some variants of i386 svr4.0.) */
24725 for (i = 0; i < pagesize; ++i)
24726 *(data2 + i) = *(data2 + i) + 1;
24727 data3 = (char *) malloc (pagesize);
24730 if (read (fd, data3, pagesize) != pagesize)
24732 for (i = 0; i < pagesize; ++i)
24733 if (*(data + i) != *(data3 + i))
24739 rm -f conftest$ac_exeext
24740 if { (ac_try="$ac_link"
24741 case "(($ac_try" in
24742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24743 *) ac_try_echo=$ac_try;;
24745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24746 $as_echo "$ac_try_echo") >&5
24747 (eval "$ac_link") 2>&5
24749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24751 { (case "(($ac_try" in
24752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24753 *) ac_try_echo=$ac_try;;
24755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24756 $as_echo "$ac_try_echo") >&5
24757 (eval "$ac_try") 2>&5
24759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); }; }; then
24761 ac_cv_func_mmap_fixed_mapped=yes
24763 $as_echo "$as_me: program exited with status $ac_status" >&5
24764 $as_echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24767 ( exit $ac_status )
24768 ac_cv_func_mmap_fixed_mapped=no
24770 rm -rf conftest.dSYM
24771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24776 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24777 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24778 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24780 cat >>confdefs.h <<\_ACEOF
24781 #define HAVE_MMAP 1
24785 rm -f conftest.mmap
24789 for ac_func in shmget
24791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24792 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24793 $as_echo_n "checking for $ac_func... " >&6; }
24794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24795 $as_echo_n "(cached) " >&6
24797 cat >conftest.$ac_ext <<_ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24805 #define $ac_func innocuous_$ac_func
24807 /* System header to define __stub macros and hopefully few prototypes,
24808 which can conflict with char $ac_func (); below.
24809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24810 <limits.h> exists even on freestanding compilers. */
24813 # include <limits.h>
24815 # include <assert.h>
24820 /* Override any GCC internal prototype to avoid an error.
24821 Use char because int might match the return type of a GCC
24822 builtin and then its argument prototype would still apply. */
24827 /* The GNU C library defines this for functions which it implements
24828 to always fail with ENOSYS. Some functions are actually named
24829 something starting with __ and the normal name is an alias. */
24830 #if defined __stub_$ac_func || defined __stub___$ac_func
24837 return $ac_func ();
24842 rm -f conftest.$ac_objext conftest$ac_exeext
24843 if { (ac_try="$ac_link"
24844 case "(($ac_try" in
24845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846 *) ac_try_echo=$ac_try;;
24848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24849 $as_echo "$ac_try_echo") >&5
24850 (eval "$ac_link") 2>conftest.er1
24852 grep -v '^ *+' conftest.er1 >conftest.err
24854 cat conftest.err >&5
24855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } && {
24857 test -z "$ac_c_werror_flag" ||
24858 test ! -s conftest.err
24859 } && test -s conftest$ac_exeext && {
24860 test "$cross_compiling" = yes ||
24861 $as_test_x conftest$ac_exeext
24863 eval "$as_ac_var=yes"
24865 $as_echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24868 eval "$as_ac_var=no"
24871 rm -rf conftest.dSYM
24872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24873 conftest$ac_exeext conftest.$ac_ext
24875 ac_res=`eval 'as_val=${'$as_ac_var'}
24876 $as_echo "$as_val"'`
24877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24878 $as_echo "$ac_res" >&6; }
24879 as_val=`eval 'as_val=${'$as_ac_var'}
24880 $as_echo "$as_val"'`
24881 if test "x$as_val" = x""yes; then
24882 cat >>confdefs.h <<_ACEOF
24883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24890 for ac_header in sys/types.h \
24895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24897 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24898 $as_echo_n "checking for $ac_header... " >&6; }
24899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24900 $as_echo_n "(cached) " >&6
24902 ac_res=`eval 'as_val=${'$as_ac_Header'}
24903 $as_echo "$as_val"'`
24904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24905 $as_echo "$ac_res" >&6; }
24907 # Is the header compilable?
24908 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24909 $as_echo_n "checking $ac_header usability... " >&6; }
24910 cat >conftest.$ac_ext <<_ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h. */
24916 $ac_includes_default
24917 #include <$ac_header>
24919 rm -f conftest.$ac_objext
24920 if { (ac_try="$ac_compile"
24921 case "(($ac_try" in
24922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923 *) ac_try_echo=$ac_try;;
24925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24926 $as_echo "$ac_try_echo") >&5
24927 (eval "$ac_compile") 2>conftest.er1
24929 grep -v '^ *+' conftest.er1 >conftest.err
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_header_compiler=yes
24939 $as_echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24942 ac_header_compiler=no
24945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24946 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24947 $as_echo "$ac_header_compiler" >&6; }
24949 # Is the header present?
24950 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24951 $as_echo_n "checking $ac_header presence... " >&6; }
24952 cat >conftest.$ac_ext <<_ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h. */
24958 #include <$ac_header>
24960 if { (ac_try="$ac_cpp conftest.$ac_ext"
24961 case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24966 $as_echo "$ac_try_echo") >&5
24967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24969 grep -v '^ *+' conftest.er1 >conftest.err
24971 cat conftest.err >&5
24972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } >/dev/null && {
24974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24975 test ! -s conftest.err
24977 ac_header_preproc=yes
24979 $as_echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24982 ac_header_preproc=no
24985 rm -f conftest.err conftest.$ac_ext
24986 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24987 $as_echo "$ac_header_preproc" >&6; }
24989 # So? What about this header?
24990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24993 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24995 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24996 ac_header_preproc=yes
24999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25000 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25002 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25004 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25006 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25010 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25014 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25015 $as_echo_n "checking for $ac_header... " >&6; }
25016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25017 $as_echo_n "(cached) " >&6
25019 eval "$as_ac_Header=\$ac_header_preproc"
25021 ac_res=`eval 'as_val=${'$as_ac_Header'}
25022 $as_echo "$as_val"'`
25023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25024 $as_echo "$ac_res" >&6; }
25027 as_val=`eval 'as_val=${'$as_ac_Header'}
25028 $as_echo "$as_val"'`
25029 if test "x$as_val" = x""yes; then
25030 cat >>confdefs.h <<_ACEOF
25031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25039 { $as_echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
25040 $as_echo_n "checking for shmdt() argument type... " >&6; }
25041 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
25042 $as_echo_n "(cached) " >&6
25045 if test "$ac_cv_func_shmget" = yes; then
25046 cat <<EOF >conftest.$ac_ext
25047 #include "confdefs.h"
25048 #ifdef HAVE_SYS_TYPES_H
25049 # include <sys/types.h>
25051 #ifdef HAVE_SYS_IPC_H
25052 # include <sys/ipc.h>
25054 #ifdef HAVE_SYS_SHM_H
25055 # include <sys/shm.h>
25059 extern "C" void *shmat(int, void *, int);
25070 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
25071 if test $? = 0; then
25072 amanda_cv_shmdt_arg_type=void
25074 amanda_cv_shmdt_arg_type=char
25078 amanda_cv_shmdt_arg_type=nothing
25083 { $as_echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
25084 $as_echo "$amanda_cv_shmdt_arg_type" >&6; }
25086 cat >>confdefs.h <<_ACEOF
25087 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
25092 case "$FORCE_MMAP" in
25095 cat >>confdefs.h <<\_ACEOF
25096 #define HAVE_SYSVSHM 1
25109 for ac_func in shmat
25111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25112 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25113 $as_echo_n "checking for $ac_func... " >&6; }
25114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25115 $as_echo_n "(cached) " >&6
25117 cat >conftest.$ac_ext <<_ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h. */
25123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25125 #define $ac_func innocuous_$ac_func
25127 /* System header to define __stub macros and hopefully few prototypes,
25128 which can conflict with char $ac_func (); below.
25129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25130 <limits.h> exists even on freestanding compilers. */
25133 # include <limits.h>
25135 # include <assert.h>
25140 /* Override any GCC internal prototype to avoid an error.
25141 Use char because int might match the return type of a GCC
25142 builtin and then its argument prototype would still apply. */
25147 /* The GNU C library defines this for functions which it implements
25148 to always fail with ENOSYS. Some functions are actually named
25149 something starting with __ and the normal name is an alias. */
25150 #if defined __stub_$ac_func || defined __stub___$ac_func
25157 return $ac_func ();
25162 rm -f conftest.$ac_objext conftest$ac_exeext
25163 if { (ac_try="$ac_link"
25164 case "(($ac_try" in
25165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25166 *) ac_try_echo=$ac_try;;
25168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25169 $as_echo "$ac_try_echo") >&5
25170 (eval "$ac_link") 2>conftest.er1
25172 grep -v '^ *+' conftest.er1 >conftest.err
25174 cat conftest.err >&5
25175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } && {
25177 test -z "$ac_c_werror_flag" ||
25178 test ! -s conftest.err
25179 } && test -s conftest$ac_exeext && {
25180 test "$cross_compiling" = yes ||
25181 $as_test_x conftest$ac_exeext
25183 eval "$as_ac_var=yes"
25185 $as_echo "$as_me: failed program was:" >&5
25186 sed 's/^/| /' conftest.$ac_ext >&5
25188 eval "$as_ac_var=no"
25191 rm -rf conftest.dSYM
25192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25193 conftest$ac_exeext conftest.$ac_ext
25195 ac_res=`eval 'as_val=${'$as_ac_var'}
25196 $as_echo "$as_val"'`
25197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25198 $as_echo "$ac_res" >&6; }
25199 as_val=`eval 'as_val=${'$as_ac_var'}
25200 $as_echo "$as_val"'`
25201 if test "x$as_val" = x""yes; then
25202 cat >>confdefs.h <<_ACEOF
25203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25209 if test "${ice_have_shmat}" = yes; then
25210 { $as_echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25211 $as_echo_n "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25212 if test "${ice_cv_have_shmat_decl+set}" = set; then
25213 $as_echo_n "(cached) " >&6
25216 ice_cv_have_shmat_decl=no
25217 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25218 ice_re_word='(^|[^a-zA-Z0-9_])'
25219 for header in sys/types.h sys/ipc.h sys/shm.h; do
25220 # Check for ordinary declaration
25221 cat >conftest.$ac_ext <<_ACEOF
25224 cat confdefs.h >>conftest.$ac_ext
25225 cat >>conftest.$ac_ext <<_ACEOF
25226 /* end confdefs.h. */
25230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25231 $EGREP "${ice_re_word}shmat[ ]*\(" >/dev/null 2>&1; then
25232 ice_cv_have_shmat_decl=yes
25236 if test "$ice_cv_have_shmat_decl" = yes; then
25239 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25240 cat >conftest.$ac_ext <<_ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25250 $EGREP "${ice_re_word}shmat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25251 ice_cv_have_shmat_decl=yes
25255 if test "$ice_cv_have_shmat_decl" = yes; then
25262 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
25263 $as_echo "$ice_cv_have_shmat_decl" >&6; }
25264 if test "$ice_cv_have_shmat_decl" = yes; then
25266 cat >>confdefs.h <<_ACEOF
25267 #define HAVE_SHMAT_DECL 1
25276 for ac_func in shmctl
25278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25279 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25280 $as_echo_n "checking for $ac_func... " >&6; }
25281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25282 $as_echo_n "(cached) " >&6
25284 cat >conftest.$ac_ext <<_ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25292 #define $ac_func innocuous_$ac_func
25294 /* System header to define __stub macros and hopefully few prototypes,
25295 which can conflict with char $ac_func (); below.
25296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25297 <limits.h> exists even on freestanding compilers. */
25300 # include <limits.h>
25302 # include <assert.h>
25307 /* Override any GCC internal prototype to avoid an error.
25308 Use char because int might match the return type of a GCC
25309 builtin and then its argument prototype would still apply. */
25314 /* The GNU C library defines this for functions which it implements
25315 to always fail with ENOSYS. Some functions are actually named
25316 something starting with __ and the normal name is an alias. */
25317 #if defined __stub_$ac_func || defined __stub___$ac_func
25324 return $ac_func ();
25329 rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (ac_try="$ac_link"
25331 case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25336 $as_echo "$ac_try_echo") >&5
25337 (eval "$ac_link") 2>conftest.er1
25339 grep -v '^ *+' conftest.er1 >conftest.err
25341 cat conftest.err >&5
25342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } && {
25344 test -z "$ac_c_werror_flag" ||
25345 test ! -s conftest.err
25346 } && test -s conftest$ac_exeext && {
25347 test "$cross_compiling" = yes ||
25348 $as_test_x conftest$ac_exeext
25350 eval "$as_ac_var=yes"
25352 $as_echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25355 eval "$as_ac_var=no"
25358 rm -rf conftest.dSYM
25359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25360 conftest$ac_exeext conftest.$ac_ext
25362 ac_res=`eval 'as_val=${'$as_ac_var'}
25363 $as_echo "$as_val"'`
25364 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25365 $as_echo "$ac_res" >&6; }
25366 as_val=`eval 'as_val=${'$as_ac_var'}
25367 $as_echo "$as_val"'`
25368 if test "x$as_val" = x""yes; then
25369 cat >>confdefs.h <<_ACEOF
25370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25372 ice_have_shmctl=yes
25376 if test "${ice_have_shmctl}" = yes; then
25377 { $as_echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25378 $as_echo_n "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25379 if test "${ice_cv_have_shmctl_decl+set}" = set; then
25380 $as_echo_n "(cached) " >&6
25383 ice_cv_have_shmctl_decl=no
25384 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25385 ice_re_word='(^|[^a-zA-Z0-9_])'
25386 for header in sys/types.h sys/ipc.h sys/shm.h; do
25387 # Check for ordinary declaration
25388 cat >conftest.$ac_ext <<_ACEOF
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h. */
25397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25398 $EGREP "${ice_re_word}shmctl[ ]*\(" >/dev/null 2>&1; then
25399 ice_cv_have_shmctl_decl=yes
25403 if test "$ice_cv_have_shmctl_decl" = yes; then
25406 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25407 cat >conftest.$ac_ext <<_ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */
25416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25417 $EGREP "${ice_re_word}shmctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25418 ice_cv_have_shmctl_decl=yes
25422 if test "$ice_cv_have_shmctl_decl" = yes; then
25429 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
25430 $as_echo "$ice_cv_have_shmctl_decl" >&6; }
25431 if test "$ice_cv_have_shmctl_decl" = yes; then
25433 cat >>confdefs.h <<_ACEOF
25434 #define HAVE_SHMCTL_DECL 1
25443 for ac_func in shmdt
25445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25447 $as_echo_n "checking for $ac_func... " >&6; }
25448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25449 $as_echo_n "(cached) " >&6
25451 cat >conftest.$ac_ext <<_ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h. */
25457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25459 #define $ac_func innocuous_$ac_func
25461 /* System header to define __stub macros and hopefully few prototypes,
25462 which can conflict with char $ac_func (); below.
25463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25464 <limits.h> exists even on freestanding compilers. */
25467 # include <limits.h>
25469 # include <assert.h>
25474 /* Override any GCC internal prototype to avoid an error.
25475 Use char because int might match the return type of a GCC
25476 builtin and then its argument prototype would still apply. */
25481 /* The GNU C library defines this for functions which it implements
25482 to always fail with ENOSYS. Some functions are actually named
25483 something starting with __ and the normal name is an alias. */
25484 #if defined __stub_$ac_func || defined __stub___$ac_func
25491 return $ac_func ();
25496 rm -f conftest.$ac_objext conftest$ac_exeext
25497 if { (ac_try="$ac_link"
25498 case "(($ac_try" in
25499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25500 *) ac_try_echo=$ac_try;;
25502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25503 $as_echo "$ac_try_echo") >&5
25504 (eval "$ac_link") 2>conftest.er1
25506 grep -v '^ *+' conftest.er1 >conftest.err
25508 cat conftest.err >&5
25509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } && {
25511 test -z "$ac_c_werror_flag" ||
25512 test ! -s conftest.err
25513 } && test -s conftest$ac_exeext && {
25514 test "$cross_compiling" = yes ||
25515 $as_test_x conftest$ac_exeext
25517 eval "$as_ac_var=yes"
25519 $as_echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25522 eval "$as_ac_var=no"
25525 rm -rf conftest.dSYM
25526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25527 conftest$ac_exeext conftest.$ac_ext
25529 ac_res=`eval 'as_val=${'$as_ac_var'}
25530 $as_echo "$as_val"'`
25531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25532 $as_echo "$ac_res" >&6; }
25533 as_val=`eval 'as_val=${'$as_ac_var'}
25534 $as_echo "$as_val"'`
25535 if test "x$as_val" = x""yes; then
25536 cat >>confdefs.h <<_ACEOF
25537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25543 if test "${ice_have_shmdt}" = yes; then
25544 { $as_echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25545 $as_echo_n "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25546 if test "${ice_cv_have_shmdt_decl+set}" = set; then
25547 $as_echo_n "(cached) " >&6
25550 ice_cv_have_shmdt_decl=no
25551 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25552 ice_re_word='(^|[^a-zA-Z0-9_])'
25553 for header in sys/types.h sys/ipc.h sys/shm.h; do
25554 # Check for ordinary declaration
25555 cat >conftest.$ac_ext <<_ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h. */
25564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25565 $EGREP "${ice_re_word}shmdt[ ]*\(" >/dev/null 2>&1; then
25566 ice_cv_have_shmdt_decl=yes
25570 if test "$ice_cv_have_shmdt_decl" = yes; then
25573 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25574 cat >conftest.$ac_ext <<_ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25584 $EGREP "${ice_re_word}shmdt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25585 ice_cv_have_shmdt_decl=yes
25589 if test "$ice_cv_have_shmdt_decl" = yes; then
25596 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
25597 $as_echo "$ice_cv_have_shmdt_decl" >&6; }
25598 if test "$ice_cv_have_shmdt_decl" = yes; then
25600 cat >>confdefs.h <<_ACEOF
25601 #define HAVE_SHMDT_DECL 1
25610 for ac_func in shmget
25612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25613 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25614 $as_echo_n "checking for $ac_func... " >&6; }
25615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25616 $as_echo_n "(cached) " >&6
25618 cat >conftest.$ac_ext <<_ACEOF
25621 cat confdefs.h >>conftest.$ac_ext
25622 cat >>conftest.$ac_ext <<_ACEOF
25623 /* end confdefs.h. */
25624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25626 #define $ac_func innocuous_$ac_func
25628 /* System header to define __stub macros and hopefully few prototypes,
25629 which can conflict with char $ac_func (); below.
25630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25631 <limits.h> exists even on freestanding compilers. */
25634 # include <limits.h>
25636 # include <assert.h>
25641 /* Override any GCC internal prototype to avoid an error.
25642 Use char because int might match the return type of a GCC
25643 builtin and then its argument prototype would still apply. */
25648 /* The GNU C library defines this for functions which it implements
25649 to always fail with ENOSYS. Some functions are actually named
25650 something starting with __ and the normal name is an alias. */
25651 #if defined __stub_$ac_func || defined __stub___$ac_func
25658 return $ac_func ();
25663 rm -f conftest.$ac_objext conftest$ac_exeext
25664 if { (ac_try="$ac_link"
25665 case "(($ac_try" in
25666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25667 *) ac_try_echo=$ac_try;;
25669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25670 $as_echo "$ac_try_echo") >&5
25671 (eval "$ac_link") 2>conftest.er1
25673 grep -v '^ *+' conftest.er1 >conftest.err
25675 cat conftest.err >&5
25676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } && {
25678 test -z "$ac_c_werror_flag" ||
25679 test ! -s conftest.err
25680 } && test -s conftest$ac_exeext && {
25681 test "$cross_compiling" = yes ||
25682 $as_test_x conftest$ac_exeext
25684 eval "$as_ac_var=yes"
25686 $as_echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25689 eval "$as_ac_var=no"
25692 rm -rf conftest.dSYM
25693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25694 conftest$ac_exeext conftest.$ac_ext
25696 ac_res=`eval 'as_val=${'$as_ac_var'}
25697 $as_echo "$as_val"'`
25698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25699 $as_echo "$ac_res" >&6; }
25700 as_val=`eval 'as_val=${'$as_ac_var'}
25701 $as_echo "$as_val"'`
25702 if test "x$as_val" = x""yes; then
25703 cat >>confdefs.h <<_ACEOF
25704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25706 ice_have_shmget=yes
25710 if test "${ice_have_shmget}" = yes; then
25711 { $as_echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25712 $as_echo_n "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25713 if test "${ice_cv_have_shmget_decl+set}" = set; then
25714 $as_echo_n "(cached) " >&6
25717 ice_cv_have_shmget_decl=no
25718 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25719 ice_re_word='(^|[^a-zA-Z0-9_])'
25720 for header in sys/types.h sys/ipc.h sys/shm.h; do
25721 # Check for ordinary declaration
25722 cat >conftest.$ac_ext <<_ACEOF
25725 cat confdefs.h >>conftest.$ac_ext
25726 cat >>conftest.$ac_ext <<_ACEOF
25727 /* end confdefs.h. */
25731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25732 $EGREP "${ice_re_word}shmget[ ]*\(" >/dev/null 2>&1; then
25733 ice_cv_have_shmget_decl=yes
25737 if test "$ice_cv_have_shmget_decl" = yes; then
25740 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25741 cat >conftest.$ac_ext <<_ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25751 $EGREP "${ice_re_word}shmget[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25752 ice_cv_have_shmget_decl=yes
25756 if test "$ice_cv_have_shmget_decl" = yes; then
25763 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
25764 $as_echo "$ice_cv_have_shmget_decl" >&6; }
25765 if test "$ice_cv_have_shmget_decl" = yes; then
25767 cat >>confdefs.h <<_ACEOF
25768 #define HAVE_SHMGET_DECL 1
25775 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
25776 case "$FORCE_MMAP" in
25778 if test "x$ac_cv_func_shmget" != xyes; then
25780 { $as_echo "$as_me:$LINENO: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&5
25781 $as_echo "$as_me: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&2;}
25784 cat <<AAW_EOF >>config.warnings
25785 Neither shmget() nor mmap() found. This system will not support the Amanda server.
25789 NO_SERVER_MODE=true
25794 { $as_echo "$as_me:$LINENO: WARNING: --with-mmap used on a system with no mmap() support. This system will not support the Amanda server." >&5
25795 $as_echo "$as_me: WARNING: --with-mmap used on a system with no mmap() support. This system will not support the Amanda server." >&2;}
25798 cat <<AAW_EOF >>config.warnings
25799 --with-mmap used on a system with no mmap() support. This system will not support the Amanda server.
25803 NO_SERVER_MODE=true
25814 ac_header_dirent=no
25815 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25816 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25817 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25818 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25820 $as_echo_n "(cached) " >&6
25822 cat >conftest.$ac_ext <<_ACEOF
25825 cat confdefs.h >>conftest.$ac_ext
25826 cat >>conftest.$ac_ext <<_ACEOF
25827 /* end confdefs.h. */
25828 #include <sys/types.h>
25840 rm -f conftest.$ac_objext
25841 if { (ac_try="$ac_compile"
25842 case "(($ac_try" in
25843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844 *) ac_try_echo=$ac_try;;
25846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25847 $as_echo "$ac_try_echo") >&5
25848 (eval "$ac_compile") 2>conftest.er1
25850 grep -v '^ *+' conftest.er1 >conftest.err
25852 cat conftest.err >&5
25853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } && {
25855 test -z "$ac_c_werror_flag" ||
25856 test ! -s conftest.err
25857 } && test -s conftest.$ac_objext; then
25858 eval "$as_ac_Header=yes"
25860 $as_echo "$as_me: failed program was:" >&5
25861 sed 's/^/| /' conftest.$ac_ext >&5
25863 eval "$as_ac_Header=no"
25866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25868 ac_res=`eval 'as_val=${'$as_ac_Header'}
25869 $as_echo "$as_val"'`
25870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25871 $as_echo "$ac_res" >&6; }
25872 as_val=`eval 'as_val=${'$as_ac_Header'}
25873 $as_echo "$as_val"'`
25874 if test "x$as_val" = x""yes; then
25875 cat >>confdefs.h <<_ACEOF
25876 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25879 ac_header_dirent=$ac_hdr; break
25883 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25884 if test $ac_header_dirent = dirent.h; then
25885 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
25886 $as_echo_n "checking for library containing opendir... " >&6; }
25887 if test "${ac_cv_search_opendir+set}" = set; then
25888 $as_echo_n "(cached) " >&6
25890 ac_func_search_save_LIBS=$LIBS
25891 cat >conftest.$ac_ext <<_ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h. */
25898 /* Override any GCC internal prototype to avoid an error.
25899 Use char because int might match the return type of a GCC
25900 builtin and then its argument prototype would still apply. */
25913 for ac_lib in '' dir; do
25914 if test -z "$ac_lib"; then
25915 ac_res="none required"
25918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25920 rm -f conftest.$ac_objext conftest$ac_exeext
25921 if { (ac_try="$ac_link"
25922 case "(($ac_try" in
25923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25924 *) ac_try_echo=$ac_try;;
25926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25927 $as_echo "$ac_try_echo") >&5
25928 (eval "$ac_link") 2>conftest.er1
25930 grep -v '^ *+' conftest.er1 >conftest.err
25932 cat conftest.err >&5
25933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } && {
25935 test -z "$ac_c_werror_flag" ||
25936 test ! -s conftest.err
25937 } && test -s conftest$ac_exeext && {
25938 test "$cross_compiling" = yes ||
25939 $as_test_x conftest$ac_exeext
25941 ac_cv_search_opendir=$ac_res
25943 $as_echo "$as_me: failed program was:" >&5
25944 sed 's/^/| /' conftest.$ac_ext >&5
25949 rm -rf conftest.dSYM
25950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25952 if test "${ac_cv_search_opendir+set}" = set; then
25956 if test "${ac_cv_search_opendir+set}" = set; then
25959 ac_cv_search_opendir=no
25961 rm conftest.$ac_ext
25962 LIBS=$ac_func_search_save_LIBS
25964 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25965 $as_echo "$ac_cv_search_opendir" >&6; }
25966 ac_res=$ac_cv_search_opendir
25967 if test "$ac_res" != no; then
25968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25973 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
25974 $as_echo_n "checking for library containing opendir... " >&6; }
25975 if test "${ac_cv_search_opendir+set}" = set; then
25976 $as_echo_n "(cached) " >&6
25978 ac_func_search_save_LIBS=$LIBS
25979 cat >conftest.$ac_ext <<_ACEOF
25982 cat confdefs.h >>conftest.$ac_ext
25983 cat >>conftest.$ac_ext <<_ACEOF
25984 /* end confdefs.h. */
25986 /* Override any GCC internal prototype to avoid an error.
25987 Use char because int might match the return type of a GCC
25988 builtin and then its argument prototype would still apply. */
26001 for ac_lib in '' x; do
26002 if test -z "$ac_lib"; then
26003 ac_res="none required"
26006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26008 rm -f conftest.$ac_objext conftest$ac_exeext
26009 if { (ac_try="$ac_link"
26010 case "(($ac_try" in
26011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012 *) ac_try_echo=$ac_try;;
26014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26015 $as_echo "$ac_try_echo") >&5
26016 (eval "$ac_link") 2>conftest.er1
26018 grep -v '^ *+' conftest.er1 >conftest.err
26020 cat conftest.err >&5
26021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); } && {
26023 test -z "$ac_c_werror_flag" ||
26024 test ! -s conftest.err
26025 } && test -s conftest$ac_exeext && {
26026 test "$cross_compiling" = yes ||
26027 $as_test_x conftest$ac_exeext
26029 ac_cv_search_opendir=$ac_res
26031 $as_echo "$as_me: failed program was:" >&5
26032 sed 's/^/| /' conftest.$ac_ext >&5
26037 rm -rf conftest.dSYM
26038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26040 if test "${ac_cv_search_opendir+set}" = set; then
26044 if test "${ac_cv_search_opendir+set}" = set; then
26047 ac_cv_search_opendir=no
26049 rm conftest.$ac_ext
26050 LIBS=$ac_func_search_save_LIBS
26052 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26053 $as_echo "$ac_cv_search_opendir" >&6; }
26054 ac_res=$ac_cv_search_opendir
26055 if test "$ac_res" != no; then
26056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26063 # include the dirent headers as described in the autoconf documentation.
26064 { $as_echo "$as_me:$LINENO: checking whether readdir is declared" >&5
26065 $as_echo_n "checking whether readdir is declared... " >&6; }
26066 if test "${ac_cv_have_decl_readdir+set}" = set; then
26067 $as_echo_n "(cached) " >&6
26069 cat >conftest.$ac_ext <<_ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h. */
26077 # include <dirent.h>
26078 # define NAMLEN(dirent) strlen((dirent)->d_name)
26080 # define dirent direct
26081 # define NAMLEN(dirent) (dirent)->d_namlen
26082 # if HAVE_SYS_NDIR_H
26083 # include <sys/ndir.h>
26085 # if HAVE_SYS_DIR_H
26086 # include <sys/dir.h>
26105 rm -f conftest.$ac_objext
26106 if { (ac_try="$ac_compile"
26107 case "(($ac_try" in
26108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26109 *) ac_try_echo=$ac_try;;
26111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26112 $as_echo "$ac_try_echo") >&5
26113 (eval "$ac_compile") 2>conftest.er1
26115 grep -v '^ *+' conftest.er1 >conftest.err
26117 cat conftest.err >&5
26118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); } && {
26120 test -z "$ac_c_werror_flag" ||
26121 test ! -s conftest.err
26122 } && test -s conftest.$ac_objext; then
26123 ac_cv_have_decl_readdir=yes
26125 $as_echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.$ac_ext >&5
26128 ac_cv_have_decl_readdir=no
26131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26133 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
26134 $as_echo "$ac_cv_have_decl_readdir" >&6; }
26135 if test "x$ac_cv_have_decl_readdir" = x""yes; then
26137 cat >>confdefs.h <<_ACEOF
26138 #define HAVE_DECL_READDIR 1
26143 cat >>confdefs.h <<_ACEOF
26144 #define HAVE_DECL_READDIR 0
26149 { $as_echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
26150 $as_echo_n "checking whether readdir_r is declared... " >&6; }
26151 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
26152 $as_echo_n "(cached) " >&6
26154 cat >conftest.$ac_ext <<_ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26162 # include <dirent.h>
26163 # define NAMLEN(dirent) strlen((dirent)->d_name)
26165 # define dirent direct
26166 # define NAMLEN(dirent) (dirent)->d_namlen
26167 # if HAVE_SYS_NDIR_H
26168 # include <sys/ndir.h>
26170 # if HAVE_SYS_DIR_H
26171 # include <sys/dir.h>
26190 rm -f conftest.$ac_objext
26191 if { (ac_try="$ac_compile"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198 (eval "$ac_compile") 2>conftest.er1
26200 grep -v '^ *+' conftest.er1 >conftest.err
26202 cat conftest.err >&5
26203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); } && {
26205 test -z "$ac_c_werror_flag" ||
26206 test ! -s conftest.err
26207 } && test -s conftest.$ac_objext; then
26208 ac_cv_have_decl_readdir_r=yes
26210 $as_echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26213 ac_cv_have_decl_readdir_r=no
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
26219 $as_echo "$ac_cv_have_decl_readdir_r" >&6; }
26220 if test "x$ac_cv_have_decl_readdir_r" = x""yes; then
26222 cat >>confdefs.h <<_ACEOF
26223 #define HAVE_DECL_READDIR_R 1
26228 cat >>confdefs.h <<_ACEOF
26229 #define HAVE_DECL_READDIR_R 0
26234 { $as_echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
26235 $as_echo_n "checking whether readdir64 is declared... " >&6; }
26236 if test "${ac_cv_have_decl_readdir64+set}" = set; then
26237 $as_echo_n "(cached) " >&6
26239 cat >conftest.$ac_ext <<_ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h. */
26247 # include <dirent.h>
26248 # define NAMLEN(dirent) strlen((dirent)->d_name)
26250 # define dirent direct
26251 # define NAMLEN(dirent) (dirent)->d_namlen
26252 # if HAVE_SYS_NDIR_H
26253 # include <sys/ndir.h>
26255 # if HAVE_SYS_DIR_H
26256 # include <sys/dir.h>
26275 rm -f conftest.$ac_objext
26276 if { (ac_try="$ac_compile"
26277 case "(($ac_try" in
26278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26279 *) ac_try_echo=$ac_try;;
26281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26282 $as_echo "$ac_try_echo") >&5
26283 (eval "$ac_compile") 2>conftest.er1
26285 grep -v '^ *+' conftest.er1 >conftest.err
26287 cat conftest.err >&5
26288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); } && {
26290 test -z "$ac_c_werror_flag" ||
26291 test ! -s conftest.err
26292 } && test -s conftest.$ac_objext; then
26293 ac_cv_have_decl_readdir64=yes
26295 $as_echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26298 ac_cv_have_decl_readdir64=no
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
26304 $as_echo "$ac_cv_have_decl_readdir64" >&6; }
26305 if test "x$ac_cv_have_decl_readdir64" = x""yes; then
26307 cat >>confdefs.h <<_ACEOF
26308 #define HAVE_DECL_READDIR64 1
26313 cat >>confdefs.h <<_ACEOF
26314 #define HAVE_DECL_READDIR64 0
26319 { $as_echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
26320 $as_echo_n "checking whether readdir64_r is declared... " >&6; }
26321 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
26322 $as_echo_n "(cached) " >&6
26324 cat >conftest.$ac_ext <<_ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h. */
26332 # include <dirent.h>
26333 # define NAMLEN(dirent) strlen((dirent)->d_name)
26335 # define dirent direct
26336 # define NAMLEN(dirent) (dirent)->d_namlen
26337 # if HAVE_SYS_NDIR_H
26338 # include <sys/ndir.h>
26340 # if HAVE_SYS_DIR_H
26341 # include <sys/dir.h>
26352 #ifndef readdir64_r
26353 (void) readdir64_r;
26360 rm -f conftest.$ac_objext
26361 if { (ac_try="$ac_compile"
26362 case "(($ac_try" in
26363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364 *) ac_try_echo=$ac_try;;
26366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26367 $as_echo "$ac_try_echo") >&5
26368 (eval "$ac_compile") 2>conftest.er1
26370 grep -v '^ *+' conftest.er1 >conftest.err
26372 cat conftest.err >&5
26373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); } && {
26375 test -z "$ac_c_werror_flag" ||
26376 test ! -s conftest.err
26377 } && test -s conftest.$ac_objext; then
26378 ac_cv_have_decl_readdir64_r=yes
26380 $as_echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26383 ac_cv_have_decl_readdir64_r=no
26386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26388 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
26389 $as_echo "$ac_cv_have_decl_readdir64_r" >&6; }
26390 if test "x$ac_cv_have_decl_readdir64_r" = x""yes; then
26392 cat >>confdefs.h <<_ACEOF
26393 #define HAVE_DECL_READDIR64_R 1
26398 cat >>confdefs.h <<_ACEOF
26399 #define HAVE_DECL_READDIR64_R 0
26408 # disk device prefixes
26409 { $as_echo "$as_me:$LINENO: checking disk device prefixes" >&5
26410 $as_echo_n "checking disk device prefixes... " >&6; }
26412 # Use df to find the mount point for the root filesystem. Use
26413 # the positional parameters to find the particular line from df
26414 # that contains the root paritition. We put it in a subshell so
26415 # that the original positional parameters are not messed with.
26417 df / | while read line; do
26419 while test $# -gt 0; do
26420 if test "x$1" = "x/"; then
26427 ) | sed 's/(//' | sed 's/)//' `
26429 # Search for the mount point by using expr to find the parameter
26433 while test $# -gt 0; do
26434 if expr "$1" : '.*dev' >/dev/null 2>&1; then
26442 # get any system-specific configuration information
26445 CLIENT_SCRIPTS_OPT=amhpfixdevs
26449 { $as_echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
26450 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
26453 cat <<AAW_EOF >>config.warnings
26454 Run amhpfixdevs on HP-UX systems using /dev/vg??.
26462 DEV_PREFIX=/dev/dsk/
26463 RDEV_PREFIX=/dev/rdsk/
26464 CLIENT_SCRIPTS_OPT=amsinixfixdevs
26465 if ! test -d /dev/dsk; then
26467 { $as_echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
26468 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
26471 cat <<AAW_EOF >>config.warnings
26472 Run amsinixfixdevs on Sinix systems using VxFS.
26483 CLIENT_SCRIPTS_OPT=
26487 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
26488 { $as_echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
26489 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
26491 if test -d /dev/dsk; then
26492 DEV_PREFIX=/dev/dsk/
26493 if test -d /dev/rdsk; then
26494 RDEV_PREFIX=/dev/rdsk/
26496 RDEV_PREFIX=/dev/dsk/
26498 elif test -d /dev; then
26501 # Some systems, notably Linux, do not have raw disk devices
26502 # names. Check this by trying to see if a raw disk device name
26503 # exists using the normal raw device path prepended to the
26504 # mount point of the root filesystem.
26505 if test "$mount"; then
26506 dev_name="/dev/r`basename $mount`"
26507 if test -b $dev_name -o -c $dev_name; then
26520 { $as_echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
26521 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
26525 cat >>confdefs.h <<_ACEOF
26526 #define DEV_PREFIX "${DEV_PREFIX}"
26530 cat >>confdefs.h <<_ACEOF
26531 #define RDEV_PREFIX "${RDEV_PREFIX}"
26552 CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
26556 CFLAGS="$CFLAGS -Ae"
26563 m88k-motorola-sysv4)
26584 # The old cc won't work!
26585 if test "x$GCC" != "xyes"; then
26586 { { $as_echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
26587 $as_echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
26588 { (exit 1); exit 1; }; }
26613 cat >>confdefs.h <<\_ACEOF
26614 #define IGNORE_TAR_ERRORS 1
26617 # Cygwin needs PATH to find cygwin1.dll
26619 cat >>confdefs.h <<\_ACEOF
26620 #define NEED_PATH_ENV 1
26624 cat >>confdefs.h <<\_ACEOF
26625 #define IGNORE_FSTAB 1
26628 LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
26631 *-apple-darwin7*) # MacOS X 10.3.* (Panther)
26633 *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
26638 cat <<AAW_EOF >>config.warnings
26640 This machine, target type $target, is not known to be fully supported
26641 by this configure script. If the installation of Amanda on this system
26642 succeeds or needed any patches, please email amanda-hackers@amanda.org
26643 with the patches or an indication of the sucess or failure of the
26644 Amanda installation on your system.
26657 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26658 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26659 eval ac_define_dir="\"$bindir\""
26660 eval ac_define_dir="\"$ac_define_dir\""
26661 bindir="$ac_define_dir"
26664 cat >>confdefs.h <<_ACEOF
26665 #define bindir "$ac_define_dir"
26668 test "$prefix_NONE" && prefix=NONE
26669 test "$exec_prefix_NONE" && exec_prefix=NONE
26675 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26676 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26677 eval ac_define_dir="\"$sbindir\""
26678 eval ac_define_dir="\"$ac_define_dir\""
26679 sbindir="$ac_define_dir"
26682 cat >>confdefs.h <<_ACEOF
26683 #define sbindir "$ac_define_dir"
26686 test "$prefix_NONE" && prefix=NONE
26687 test "$exec_prefix_NONE" && exec_prefix=NONE
26693 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26694 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26695 eval ac_define_dir="\"$libexecdir\""
26696 eval ac_define_dir="\"$ac_define_dir\""
26697 libexecdir="$ac_define_dir"
26700 cat >>confdefs.h <<_ACEOF
26701 #define libexecdir "$ac_define_dir"
26704 test "$prefix_NONE" && prefix=NONE
26705 test "$exec_prefix_NONE" && exec_prefix=NONE
26711 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26712 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26713 eval ac_define_dir="\"$mandir\""
26714 eval ac_define_dir="\"$ac_define_dir\""
26715 mandir="$ac_define_dir"
26718 cat >>confdefs.h <<_ACEOF
26719 #define mandir "$ac_define_dir"
26722 test "$prefix_NONE" && prefix=NONE
26723 test "$exec_prefix_NONE" && exec_prefix=NONE
26727 # amanda-specific directories
26728 AMLIBDIR=$libdir/amanda
26730 # Check whether --with-amlibdir was given.
26731 if test "${with_amlibdir+set}" = set; then
26732 withval=$with_amlibdir;
26734 n | no) AMLIBDIR=$libdir ;;
26735 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
26736 *) AMLIBDIR=$withval ;;
26745 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26746 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26747 eval ac_define_dir="\"$AMLIBDIR\""
26748 eval ac_define_dir="\"$ac_define_dir\""
26749 amlibdir="$ac_define_dir"
26752 cat >>confdefs.h <<_ACEOF
26753 #define amlibdir "$ac_define_dir"
26756 test "$prefix_NONE" && prefix=NONE
26757 test "$exec_prefix_NONE" && exec_prefix=NONE
26760 AMLIBEXECDIR=$libexecdir/amanda
26762 # Check whether --with-amlibexecdir was given.
26763 if test "${with_amlibexecdir+set}" = set; then
26764 withval=$with_amlibexecdir;
26766 n | no) AMLIBEXECDIR=$libexecdir ;;
26767 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
26768 *) AMLIBEXECDIR=$withval ;;
26777 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26778 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26779 eval ac_define_dir="\"$AMLIBEXECDIR\""
26780 eval ac_define_dir="\"$ac_define_dir\""
26781 amlibexecdir="$ac_define_dir"
26784 cat >>confdefs.h <<_ACEOF
26785 #define amlibexecdir "$ac_define_dir"
26788 test "$prefix_NONE" && prefix=NONE
26789 test "$exec_prefix_NONE" && exec_prefix=NONE
26792 amincludedir="${includedir}/amanda"
26796 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26797 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26798 eval ac_define_dir="\"$amincludedir\""
26799 eval ac_define_dir="\"$ac_define_dir\""
26800 amincludedir="$ac_define_dir"
26803 cat >>confdefs.h <<_ACEOF
26804 #define amincludedir "$ac_define_dir"
26807 test "$prefix_NONE" && prefix=NONE
26808 test "$exec_prefix_NONE" && exec_prefix=NONE
26812 # Check whether --with-amperldir was given.
26813 if test "${with_amperldir+set}" = set; then
26814 withval=$with_amperldir;
26816 y | ye | yes) AMPERLLIB=DEFAULT ;;
26817 n | no) AMPERLLIB=$amlibdir/perl ;;
26818 *) AMPERLLIB=$withval ;;
26828 # apply the default if no value was given.
26829 if test x"$AMPERLLIB" = x"DEFAULT"; then
26830 eval `$PERL -V:installsitelib`
26831 AMPERLLIB=$installsitelib
26836 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26837 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26838 eval ac_define_dir="\"$AMPERLLIB\""
26839 eval ac_define_dir="\"$ac_define_dir\""
26840 amperldir="$ac_define_dir"
26843 cat >>confdefs.h <<_ACEOF
26844 #define amperldir "$ac_define_dir"
26847 test "$prefix_NONE" && prefix=NONE
26848 test "$exec_prefix_NONE" && exec_prefix=NONE
26851 APPLICATION_DIR='${amlibexecdir}/application'
26855 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26856 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26857 eval ac_define_dir="\"$APPLICATION_DIR\""
26858 eval ac_define_dir="\"$ac_define_dir\""
26859 APPLICATION_DIR="$ac_define_dir"
26862 cat >>confdefs.h <<_ACEOF
26863 #define APPLICATION_DIR "$ac_define_dir"
26866 test "$prefix_NONE" && prefix=NONE
26867 test "$exec_prefix_NONE" && exec_prefix=NONE
26871 # Check whether --with-amdatadir was given.
26872 if test "${with_amdatadir+set}" = set; then
26873 withval=$with_amdatadir;
26878 AMDATADIR=$datadir/amanda
26886 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26887 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26888 eval ac_define_dir="\"$AMDATADIR\""
26889 eval ac_define_dir="\"$ac_define_dir\""
26890 amdatadir="$ac_define_dir"
26893 cat >>confdefs.h <<_ACEOF
26894 #define amdatadir "$ac_define_dir"
26897 test "$prefix_NONE" && prefix=NONE
26898 test "$exec_prefix_NONE" && exec_prefix=NONE
26903 # Internationalization
26906 # FreeBSD needs to link libxpg4
26908 { $as_echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
26909 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
26910 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
26911 $as_echo_n "(cached) " >&6
26913 ac_check_lib_save_LIBS=$LIBS
26914 LIBS="-lxpg4 $LIBS"
26915 cat >conftest.$ac_ext <<_ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h. */
26922 /* Override any GCC internal prototype to avoid an error.
26923 Use char because int might match the return type of a GCC
26924 builtin and then its argument prototype would still apply. */
26932 return setlocale ();
26937 rm -f conftest.$ac_objext conftest$ac_exeext
26938 if { (ac_try="$ac_link"
26939 case "(($ac_try" in
26940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941 *) ac_try_echo=$ac_try;;
26943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26944 $as_echo "$ac_try_echo") >&5
26945 (eval "$ac_link") 2>conftest.er1
26947 grep -v '^ *+' conftest.er1 >conftest.err
26949 cat conftest.err >&5
26950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } && {
26952 test -z "$ac_c_werror_flag" ||
26953 test ! -s conftest.err
26954 } && test -s conftest$ac_exeext && {
26955 test "$cross_compiling" = yes ||
26956 $as_test_x conftest$ac_exeext
26958 ac_cv_lib_xpg4_setlocale=yes
26960 $as_echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26963 ac_cv_lib_xpg4_setlocale=no
26966 rm -rf conftest.dSYM
26967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26968 conftest$ac_exeext conftest.$ac_ext
26969 LIBS=$ac_check_lib_save_LIBS
26971 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
26972 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
26973 if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then
26974 cat >>confdefs.h <<_ACEOF
26975 #define HAVE_LIBXPG4 1
26978 LIBS="-lxpg4 $LIBS"
26983 # ------------------------------------------------------------------
26984 # All list of languages for which a translation exist. Each
26985 # language is separated by a space.
26986 # ------------------------------------------------------------------
26990 # Extract the first word of "msgfmt", so it can be a program name with args.
26991 set dummy msgfmt; ac_word=$2
26992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26993 $as_echo_n "checking for $ac_word... " >&6; }
26994 if test "${ac_cv_path_MSGFMT+set}" = set; then
26995 $as_echo_n "(cached) " >&6
26999 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
27002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27003 for as_dir in $LOCSYSPATH
27006 test -z "$as_dir" && as_dir=.
27007 for ac_exec_ext in '' $ac_executable_extensions; do
27008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27009 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
27010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27020 MSGFMT=$ac_cv_path_MSGFMT
27021 if test -n "$MSGFMT"; then
27022 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27023 $as_echo "$MSGFMT" >&6; }
27025 { $as_echo "$as_me:$LINENO: result: no" >&5
27026 $as_echo "no" >&6; }
27030 # Extract the first word of "gettext", so it can be a program name with args.
27031 set dummy gettext; ac_word=$2
27032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27033 $as_echo_n "checking for $ac_word... " >&6; }
27034 if test "${ac_cv_path_GETTEXT+set}" = set; then
27035 $as_echo_n "(cached) " >&6
27039 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
27042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27043 for as_dir in $LOCSYSPATH
27046 test -z "$as_dir" && as_dir=.
27047 for ac_exec_ext in '' $ac_executable_extensions; do
27048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27049 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
27050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27060 GETTEXT=$ac_cv_path_GETTEXT
27061 if test -n "$GETTEXT"; then
27062 { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
27063 $as_echo "$GETTEXT" >&6; }
27065 { $as_echo "$as_me:$LINENO: result: no" >&5
27066 $as_echo "no" >&6; }
27073 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
27074 $as_echo_n "checking whether NLS is requested... " >&6; }
27075 # Check whether --enable-nls was given.
27076 if test "${enable_nls+set}" = set; then
27077 enableval=$enable_nls; USE_NLS=$enableval
27082 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
27083 $as_echo "$USE_NLS" >&6; }
27090 # Prepare PATH_SEPARATOR.
27091 # The user is always right.
27092 if test "${PATH_SEPARATOR+set}" != set; then
27093 echo "#! /bin/sh" >conf$$.sh
27094 echo "exit 0" >>conf$$.sh
27096 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27104 # Find out how to test for executable files. Don't use a zero-byte file,
27105 # as systems may use methods other than mode bits to determine executability.
27106 cat >conf$$.file <<_ASEOF
27110 chmod +x conf$$.file
27111 if test -x conf$$.file >/dev/null 2>&1; then
27112 ac_executable_p="test -x"
27114 ac_executable_p="test -f"
27118 # Extract the first word of "msgfmt", so it can be a program name with args.
27119 set dummy msgfmt; ac_word=$2
27120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27121 $as_echo_n "checking for $ac_word... " >&6; }
27122 if test "${ac_cv_path_MSGFMT+set}" = set; then
27123 $as_echo_n "(cached) " >&6
27127 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
27130 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27131 for ac_dir in $PATH; do
27133 test -z "$ac_dir" && ac_dir=.
27134 for ac_exec_ext in '' $ac_executable_extensions; do
27135 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27136 echo "$as_me: trying $ac_dir/$ac_word..." >&5
27137 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
27138 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
27139 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
27146 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
27150 MSGFMT="$ac_cv_path_MSGFMT"
27151 if test "$MSGFMT" != ":"; then
27152 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27153 $as_echo "$MSGFMT" >&6; }
27155 { $as_echo "$as_me:$LINENO: result: no" >&5
27156 $as_echo "no" >&6; }
27159 # Extract the first word of "gmsgfmt", so it can be a program name with args.
27160 set dummy gmsgfmt; ac_word=$2
27161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27162 $as_echo_n "checking for $ac_word... " >&6; }
27163 if test "${ac_cv_path_GMSGFMT+set}" = set; then
27164 $as_echo_n "(cached) " >&6
27168 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
27171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27172 for as_dir in $PATH
27175 test -z "$as_dir" && as_dir=.
27176 for ac_exec_ext in '' $ac_executable_extensions; do
27177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27178 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
27179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27186 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
27190 GMSGFMT=$ac_cv_path_GMSGFMT
27191 if test -n "$GMSGFMT"; then
27192 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
27193 $as_echo "$GMSGFMT" >&6; }
27195 { $as_echo "$as_me:$LINENO: result: no" >&5
27196 $as_echo "no" >&6; }
27201 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27202 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
27203 *) MSGFMT_015=$MSGFMT ;;
27206 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27207 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
27208 *) GMSGFMT_015=$GMSGFMT ;;
27213 # Prepare PATH_SEPARATOR.
27214 # The user is always right.
27215 if test "${PATH_SEPARATOR+set}" != set; then
27216 echo "#! /bin/sh" >conf$$.sh
27217 echo "exit 0" >>conf$$.sh
27219 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27227 # Find out how to test for executable files. Don't use a zero-byte file,
27228 # as systems may use methods other than mode bits to determine executability.
27229 cat >conf$$.file <<_ASEOF
27233 chmod +x conf$$.file
27234 if test -x conf$$.file >/dev/null 2>&1; then
27235 ac_executable_p="test -x"
27237 ac_executable_p="test -f"
27241 # Extract the first word of "xgettext", so it can be a program name with args.
27242 set dummy xgettext; ac_word=$2
27243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27244 $as_echo_n "checking for $ac_word... " >&6; }
27245 if test "${ac_cv_path_XGETTEXT+set}" = set; then
27246 $as_echo_n "(cached) " >&6
27248 case "$XGETTEXT" in
27250 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
27253 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27254 for ac_dir in $PATH; do
27256 test -z "$ac_dir" && ac_dir=.
27257 for ac_exec_ext in '' $ac_executable_extensions; do
27258 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27259 echo "$as_me: trying $ac_dir/$ac_word..." >&5
27260 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
27261 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
27262 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
27269 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
27273 XGETTEXT="$ac_cv_path_XGETTEXT"
27274 if test "$XGETTEXT" != ":"; then
27275 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27276 $as_echo "$XGETTEXT" >&6; }
27278 { $as_echo "$as_me:$LINENO: result: no" >&5
27279 $as_echo "no" >&6; }
27284 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27285 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
27286 *) XGETTEXT_015=$XGETTEXT ;;
27291 # Prepare PATH_SEPARATOR.
27292 # The user is always right.
27293 if test "${PATH_SEPARATOR+set}" != set; then
27294 echo "#! /bin/sh" >conf$$.sh
27295 echo "exit 0" >>conf$$.sh
27297 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27305 # Find out how to test for executable files. Don't use a zero-byte file,
27306 # as systems may use methods other than mode bits to determine executability.
27307 cat >conf$$.file <<_ASEOF
27311 chmod +x conf$$.file
27312 if test -x conf$$.file >/dev/null 2>&1; then
27313 ac_executable_p="test -x"
27315 ac_executable_p="test -f"
27319 # Extract the first word of "msgmerge", so it can be a program name with args.
27320 set dummy msgmerge; ac_word=$2
27321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27322 $as_echo_n "checking for $ac_word... " >&6; }
27323 if test "${ac_cv_path_MSGMERGE+set}" = set; then
27324 $as_echo_n "(cached) " >&6
27326 case "$MSGMERGE" in
27328 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
27331 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27332 for ac_dir in $PATH; do
27334 test -z "$ac_dir" && ac_dir=.
27335 for ac_exec_ext in '' $ac_executable_extensions; do
27336 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27337 echo "$as_me: trying $ac_dir/$ac_word..." >&5
27338 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
27339 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
27346 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
27350 MSGMERGE="$ac_cv_path_MSGMERGE"
27351 if test "$MSGMERGE" != ":"; then
27352 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27353 $as_echo "$MSGMERGE" >&6; }
27355 { $as_echo "$as_me:$LINENO: result: no" >&5
27356 $as_echo "no" >&6; }
27360 test -n "$localedir" || localedir='${datadir}/locale'
27363 ac_config_commands="$ac_config_commands po-directories"
27375 acl_save_prefix="$prefix"
27376 prefix="$acl_final_prefix"
27377 acl_save_exec_prefix="$exec_prefix"
27378 exec_prefix="$acl_final_exec_prefix"
27380 eval additional_includedir=\"$includedir\"
27381 eval additional_libdir=\"$libdir\"
27383 exec_prefix="$acl_save_exec_prefix"
27384 prefix="$acl_save_prefix"
27387 # Check whether --with-libiconv-prefix was given.
27388 if test "${with_libiconv_prefix+set}" = set; then
27389 withval=$with_libiconv_prefix;
27390 if test "X$withval" = "Xno"; then
27393 if test "X$withval" = "X"; then
27395 acl_save_prefix="$prefix"
27396 prefix="$acl_final_prefix"
27397 acl_save_exec_prefix="$exec_prefix"
27398 exec_prefix="$acl_final_exec_prefix"
27400 eval additional_includedir=\"$includedir\"
27401 eval additional_libdir=\"$libdir\"
27403 exec_prefix="$acl_save_exec_prefix"
27404 prefix="$acl_save_prefix"
27407 additional_includedir="$withval/include"
27408 additional_libdir="$withval/$acl_libdirstem"
27419 names_already_handled=
27420 names_next_round='iconv '
27421 while test -n "$names_next_round"; do
27422 names_this_round="$names_next_round"
27424 for name in $names_this_round; do
27426 for n in $names_already_handled; do
27427 if test "$n" = "$name"; then
27428 already_handled=yes
27432 if test -z "$already_handled"; then
27433 names_already_handled="$names_already_handled $name"
27434 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27435 eval value=\"\$HAVE_LIB$uppername\"
27436 if test -n "$value"; then
27437 if test "$value" = yes; then
27438 eval value=\"\$LIB$uppername\"
27439 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
27440 eval value=\"\$LTLIB$uppername\"
27441 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
27450 if test $use_additional = yes; then
27451 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27452 found_dir="$additional_libdir"
27453 found_so="$additional_libdir/lib$name.$shlibext"
27454 if test -f "$additional_libdir/lib$name.la"; then
27455 found_la="$additional_libdir/lib$name.la"
27458 if test -f "$additional_libdir/lib$name.$libext"; then
27459 found_dir="$additional_libdir"
27460 found_a="$additional_libdir/lib$name.$libext"
27461 if test -f "$additional_libdir/lib$name.la"; then
27462 found_la="$additional_libdir/lib$name.la"
27467 if test "X$found_dir" = "X"; then
27468 for x in $LDFLAGS $LTLIBICONV; do
27470 acl_save_prefix="$prefix"
27471 prefix="$acl_final_prefix"
27472 acl_save_exec_prefix="$exec_prefix"
27473 exec_prefix="$acl_final_exec_prefix"
27475 exec_prefix="$acl_save_exec_prefix"
27476 prefix="$acl_save_prefix"
27480 dir=`echo "X$x" | sed -e 's/^X-L//'`
27481 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27483 found_so="$dir/lib$name.$shlibext"
27484 if test -f "$dir/lib$name.la"; then
27485 found_la="$dir/lib$name.la"
27488 if test -f "$dir/lib$name.$libext"; then
27490 found_a="$dir/lib$name.$libext"
27491 if test -f "$dir/lib$name.la"; then
27492 found_la="$dir/lib$name.la"
27498 if test "X$found_dir" != "X"; then
27503 if test "X$found_dir" != "X"; then
27504 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
27505 if test "X$found_so" != "X"; then
27506 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
27507 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27510 for x in $ltrpathdirs; do
27511 if test "X$x" = "X$found_dir"; then
27516 if test -z "$haveit"; then
27517 ltrpathdirs="$ltrpathdirs $found_dir"
27519 if test "$hardcode_direct" = yes; then
27520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27522 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27523 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27525 for x in $rpathdirs; do
27526 if test "X$x" = "X$found_dir"; then
27531 if test -z "$haveit"; then
27532 rpathdirs="$rpathdirs $found_dir"
27536 for x in $LDFLAGS $LIBICONV; do
27538 acl_save_prefix="$prefix"
27539 prefix="$acl_final_prefix"
27540 acl_save_exec_prefix="$exec_prefix"
27541 exec_prefix="$acl_final_exec_prefix"
27543 exec_prefix="$acl_save_exec_prefix"
27544 prefix="$acl_save_prefix"
27546 if test "X$x" = "X-L$found_dir"; then
27551 if test -z "$haveit"; then
27552 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
27554 if test "$hardcode_minus_L" != no; then
27555 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27557 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27563 if test "X$found_a" != "X"; then
27564 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
27566 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
27569 additional_includedir=
27570 case "$found_dir" in
27571 */$acl_libdirstem | */$acl_libdirstem/)
27572 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27573 additional_includedir="$basedir/include"
27576 if test "X$additional_includedir" != "X"; then
27577 if test "X$additional_includedir" != "X/usr/include"; then
27579 if test "X$additional_includedir" = "X/usr/local/include"; then
27580 if test -n "$GCC"; then
27582 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27586 if test -z "$haveit"; then
27587 for x in $CPPFLAGS $INCICONV; do
27589 acl_save_prefix="$prefix"
27590 prefix="$acl_final_prefix"
27591 acl_save_exec_prefix="$exec_prefix"
27592 exec_prefix="$acl_final_exec_prefix"
27594 exec_prefix="$acl_save_exec_prefix"
27595 prefix="$acl_save_prefix"
27597 if test "X$x" = "X-I$additional_includedir"; then
27602 if test -z "$haveit"; then
27603 if test -d "$additional_includedir"; then
27604 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
27610 if test -n "$found_la"; then
27611 save_libdir="$libdir"
27612 case "$found_la" in
27613 */* | *\\*) . "$found_la" ;;
27614 *) . "./$found_la" ;;
27616 libdir="$save_libdir"
27617 for dep in $dependency_libs; do
27620 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27621 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27623 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27624 if test -n "$GCC"; then
27626 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27630 if test -z "$haveit"; then
27632 for x in $LDFLAGS $LIBICONV; do
27634 acl_save_prefix="$prefix"
27635 prefix="$acl_final_prefix"
27636 acl_save_exec_prefix="$exec_prefix"
27637 exec_prefix="$acl_final_exec_prefix"
27639 exec_prefix="$acl_save_exec_prefix"
27640 prefix="$acl_save_prefix"
27642 if test "X$x" = "X-L$additional_libdir"; then
27647 if test -z "$haveit"; then
27648 if test -d "$additional_libdir"; then
27649 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
27653 for x in $LDFLAGS $LTLIBICONV; do
27655 acl_save_prefix="$prefix"
27656 prefix="$acl_final_prefix"
27657 acl_save_exec_prefix="$exec_prefix"
27658 exec_prefix="$acl_final_exec_prefix"
27660 exec_prefix="$acl_save_exec_prefix"
27661 prefix="$acl_save_prefix"
27663 if test "X$x" = "X-L$additional_libdir"; then
27668 if test -z "$haveit"; then
27669 if test -d "$additional_libdir"; then
27670 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
27677 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27678 if test "$enable_rpath" != no; then
27680 for x in $rpathdirs; do
27681 if test "X$x" = "X$dir"; then
27686 if test -z "$haveit"; then
27687 rpathdirs="$rpathdirs $dir"
27690 for x in $ltrpathdirs; do
27691 if test "X$x" = "X$dir"; then
27696 if test -z "$haveit"; then
27697 ltrpathdirs="$ltrpathdirs $dir"
27702 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27705 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27708 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
27709 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
27715 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27716 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
27722 if test "X$rpathdirs" != "X"; then
27723 if test -n "$hardcode_libdir_separator"; then
27725 for found_dir in $rpathdirs; do
27726 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27728 acl_save_libdir="$libdir"
27730 eval flag=\"$hardcode_libdir_flag_spec\"
27731 libdir="$acl_save_libdir"
27732 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27734 for found_dir in $rpathdirs; do
27735 acl_save_libdir="$libdir"
27736 libdir="$found_dir"
27737 eval flag=\"$hardcode_libdir_flag_spec\"
27738 libdir="$acl_save_libdir"
27739 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27743 if test "X$ltrpathdirs" != "X"; then
27744 for found_dir in $ltrpathdirs; do
27745 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
27766 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
27767 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
27768 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
27769 $as_echo_n "(cached) " >&6
27771 gt_save_LIBS="$LIBS"
27772 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27773 cat >conftest.$ac_ext <<_ACEOF
27776 cat confdefs.h >>conftest.$ac_ext
27777 cat >>conftest.$ac_ext <<_ACEOF
27778 /* end confdefs.h. */
27779 #include <CoreFoundation/CFPreferences.h>
27783 CFPreferencesCopyAppValue(NULL, NULL)
27788 rm -f conftest.$ac_objext conftest$ac_exeext
27789 if { (ac_try="$ac_link"
27790 case "(($ac_try" in
27791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792 *) ac_try_echo=$ac_try;;
27794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27795 $as_echo "$ac_try_echo") >&5
27796 (eval "$ac_link") 2>conftest.er1
27798 grep -v '^ *+' conftest.er1 >conftest.err
27800 cat conftest.err >&5
27801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); } && {
27803 test -z "$ac_c_werror_flag" ||
27804 test ! -s conftest.err
27805 } && test -s conftest$ac_exeext && {
27806 test "$cross_compiling" = yes ||
27807 $as_test_x conftest$ac_exeext
27809 gt_cv_func_CFPreferencesCopyAppValue=yes
27811 $as_echo "$as_me: failed program was:" >&5
27812 sed 's/^/| /' conftest.$ac_ext >&5
27814 gt_cv_func_CFPreferencesCopyAppValue=no
27817 rm -rf conftest.dSYM
27818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27819 conftest$ac_exeext conftest.$ac_ext
27820 LIBS="$gt_save_LIBS"
27822 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
27823 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
27824 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
27826 cat >>confdefs.h <<\_ACEOF
27827 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
27831 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
27832 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
27833 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
27834 $as_echo_n "(cached) " >&6
27836 gt_save_LIBS="$LIBS"
27837 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27838 cat >conftest.$ac_ext <<_ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h. */
27844 #include <CoreFoundation/CFLocale.h>
27848 CFLocaleCopyCurrent();
27853 rm -f conftest.$ac_objext conftest$ac_exeext
27854 if { (ac_try="$ac_link"
27855 case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27860 $as_echo "$ac_try_echo") >&5
27861 (eval "$ac_link") 2>conftest.er1
27863 grep -v '^ *+' conftest.er1 >conftest.err
27865 cat conftest.err >&5
27866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); } && {
27868 test -z "$ac_c_werror_flag" ||
27869 test ! -s conftest.err
27870 } && test -s conftest$ac_exeext && {
27871 test "$cross_compiling" = yes ||
27872 $as_test_x conftest$ac_exeext
27874 gt_cv_func_CFLocaleCopyCurrent=yes
27876 $as_echo "$as_me: failed program was:" >&5
27877 sed 's/^/| /' conftest.$ac_ext >&5
27879 gt_cv_func_CFLocaleCopyCurrent=no
27882 rm -rf conftest.dSYM
27883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27884 conftest$ac_exeext conftest.$ac_ext
27885 LIBS="$gt_save_LIBS"
27887 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
27888 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
27889 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27891 cat >>confdefs.h <<\_ACEOF
27892 #define HAVE_CFLOCALECOPYCURRENT 1
27897 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27898 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
27910 if test "$USE_NLS" = "yes"; then
27911 gt_use_preinstalled_gnugettext=no
27918 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
27919 $as_echo_n "checking for GNU gettext in libc... " >&6; }
27920 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
27921 $as_echo_n "(cached) " >&6
27923 cat >conftest.$ac_ext <<_ACEOF
27926 cat confdefs.h >>conftest.$ac_ext
27927 cat >>conftest.$ac_ext <<_ACEOF
27928 /* end confdefs.h. */
27929 #include <libintl.h>
27930 extern int _nl_msg_cat_cntr;
27931 extern int *_nl_domain_bindings;
27935 bindtextdomain ("", "");
27936 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
27941 rm -f conftest.$ac_objext conftest$ac_exeext
27942 if { (ac_try="$ac_link"
27943 case "(($ac_try" in
27944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945 *) ac_try_echo=$ac_try;;
27947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27948 $as_echo "$ac_try_echo") >&5
27949 (eval "$ac_link") 2>conftest.er1
27951 grep -v '^ *+' conftest.er1 >conftest.err
27953 cat conftest.err >&5
27954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); } && {
27956 test -z "$ac_c_werror_flag" ||
27957 test ! -s conftest.err
27958 } && test -s conftest$ac_exeext && {
27959 test "$cross_compiling" = yes ||
27960 $as_test_x conftest$ac_exeext
27962 gt_cv_func_gnugettext1_libc=yes
27964 $as_echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27967 gt_cv_func_gnugettext1_libc=no
27970 rm -rf conftest.dSYM
27971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27972 conftest$ac_exeext conftest.$ac_ext
27974 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
27975 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
27977 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
27983 am_save_CPPFLAGS="$CPPFLAGS"
27985 for element in $INCICONV; do
27987 for x in $CPPFLAGS; do
27989 acl_save_prefix="$prefix"
27990 prefix="$acl_final_prefix"
27991 acl_save_exec_prefix="$exec_prefix"
27992 exec_prefix="$acl_final_exec_prefix"
27994 exec_prefix="$acl_save_exec_prefix"
27995 prefix="$acl_save_prefix"
27997 if test "X$x" = "X$element"; then
28002 if test -z "$haveit"; then
28003 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28008 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
28009 $as_echo_n "checking for iconv... " >&6; }
28010 if test "${am_cv_func_iconv+set}" = set; then
28011 $as_echo_n "(cached) " >&6
28014 am_cv_func_iconv="no, consider installing GNU libiconv"
28016 cat >conftest.$ac_ext <<_ACEOF
28019 cat confdefs.h >>conftest.$ac_ext
28020 cat >>conftest.$ac_ext <<_ACEOF
28021 /* end confdefs.h. */
28022 #include <stdlib.h>
28027 iconv_t cd = iconv_open("","");
28028 iconv(cd,NULL,NULL,NULL,NULL);
28034 rm -f conftest.$ac_objext conftest$ac_exeext
28035 if { (ac_try="$ac_link"
28036 case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28041 $as_echo "$ac_try_echo") >&5
28042 (eval "$ac_link") 2>conftest.er1
28044 grep -v '^ *+' conftest.er1 >conftest.err
28046 cat conftest.err >&5
28047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); } && {
28049 test -z "$ac_c_werror_flag" ||
28050 test ! -s conftest.err
28051 } && test -s conftest$ac_exeext && {
28052 test "$cross_compiling" = yes ||
28053 $as_test_x conftest$ac_exeext
28055 am_cv_func_iconv=yes
28057 $as_echo "$as_me: failed program was:" >&5
28058 sed 's/^/| /' conftest.$ac_ext >&5
28063 rm -rf conftest.dSYM
28064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28065 conftest$ac_exeext conftest.$ac_ext
28066 if test "$am_cv_func_iconv" != yes; then
28067 am_save_LIBS="$LIBS"
28068 LIBS="$LIBS $LIBICONV"
28069 cat >conftest.$ac_ext <<_ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h. */
28075 #include <stdlib.h>
28080 iconv_t cd = iconv_open("","");
28081 iconv(cd,NULL,NULL,NULL,NULL);
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088 if { (ac_try="$ac_link"
28089 case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28094 $as_echo "$ac_try_echo") >&5
28095 (eval "$ac_link") 2>conftest.er1
28097 grep -v '^ *+' conftest.er1 >conftest.err
28099 cat conftest.err >&5
28100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); } && {
28102 test -z "$ac_c_werror_flag" ||
28103 test ! -s conftest.err
28104 } && test -s conftest$ac_exeext && {
28105 test "$cross_compiling" = yes ||
28106 $as_test_x conftest$ac_exeext
28108 am_cv_lib_iconv=yes
28109 am_cv_func_iconv=yes
28111 $as_echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28117 rm -rf conftest.dSYM
28118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28119 conftest$ac_exeext conftest.$ac_ext
28120 LIBS="$am_save_LIBS"
28124 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28125 $as_echo "$am_cv_func_iconv" >&6; }
28126 if test "$am_cv_func_iconv" = yes; then
28128 cat >>confdefs.h <<\_ACEOF
28129 #define HAVE_ICONV 1
28133 if test "$am_cv_lib_iconv" = yes; then
28134 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
28135 $as_echo_n "checking how to link with libiconv... " >&6; }
28136 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
28137 $as_echo "$LIBICONV" >&6; }
28139 CPPFLAGS="$am_save_CPPFLAGS"
28152 acl_save_prefix="$prefix"
28153 prefix="$acl_final_prefix"
28154 acl_save_exec_prefix="$exec_prefix"
28155 exec_prefix="$acl_final_exec_prefix"
28157 eval additional_includedir=\"$includedir\"
28158 eval additional_libdir=\"$libdir\"
28160 exec_prefix="$acl_save_exec_prefix"
28161 prefix="$acl_save_prefix"
28164 # Check whether --with-libintl-prefix was given.
28165 if test "${with_libintl_prefix+set}" = set; then
28166 withval=$with_libintl_prefix;
28167 if test "X$withval" = "Xno"; then
28170 if test "X$withval" = "X"; then
28172 acl_save_prefix="$prefix"
28173 prefix="$acl_final_prefix"
28174 acl_save_exec_prefix="$exec_prefix"
28175 exec_prefix="$acl_final_exec_prefix"
28177 eval additional_includedir=\"$includedir\"
28178 eval additional_libdir=\"$libdir\"
28180 exec_prefix="$acl_save_exec_prefix"
28181 prefix="$acl_save_prefix"
28184 additional_includedir="$withval/include"
28185 additional_libdir="$withval/$acl_libdirstem"
28196 names_already_handled=
28197 names_next_round='intl '
28198 while test -n "$names_next_round"; do
28199 names_this_round="$names_next_round"
28201 for name in $names_this_round; do
28203 for n in $names_already_handled; do
28204 if test "$n" = "$name"; then
28205 already_handled=yes
28209 if test -z "$already_handled"; then
28210 names_already_handled="$names_already_handled $name"
28211 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28212 eval value=\"\$HAVE_LIB$uppername\"
28213 if test -n "$value"; then
28214 if test "$value" = yes; then
28215 eval value=\"\$LIB$uppername\"
28216 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
28217 eval value=\"\$LTLIB$uppername\"
28218 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
28227 if test $use_additional = yes; then
28228 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28229 found_dir="$additional_libdir"
28230 found_so="$additional_libdir/lib$name.$shlibext"
28231 if test -f "$additional_libdir/lib$name.la"; then
28232 found_la="$additional_libdir/lib$name.la"
28235 if test -f "$additional_libdir/lib$name.$libext"; then
28236 found_dir="$additional_libdir"
28237 found_a="$additional_libdir/lib$name.$libext"
28238 if test -f "$additional_libdir/lib$name.la"; then
28239 found_la="$additional_libdir/lib$name.la"
28244 if test "X$found_dir" = "X"; then
28245 for x in $LDFLAGS $LTLIBINTL; do
28247 acl_save_prefix="$prefix"
28248 prefix="$acl_final_prefix"
28249 acl_save_exec_prefix="$exec_prefix"
28250 exec_prefix="$acl_final_exec_prefix"
28252 exec_prefix="$acl_save_exec_prefix"
28253 prefix="$acl_save_prefix"
28257 dir=`echo "X$x" | sed -e 's/^X-L//'`
28258 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28260 found_so="$dir/lib$name.$shlibext"
28261 if test -f "$dir/lib$name.la"; then
28262 found_la="$dir/lib$name.la"
28265 if test -f "$dir/lib$name.$libext"; then
28267 found_a="$dir/lib$name.$libext"
28268 if test -f "$dir/lib$name.la"; then
28269 found_la="$dir/lib$name.la"
28275 if test "X$found_dir" != "X"; then
28280 if test "X$found_dir" != "X"; then
28281 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
28282 if test "X$found_so" != "X"; then
28283 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
28284 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28287 for x in $ltrpathdirs; do
28288 if test "X$x" = "X$found_dir"; then
28293 if test -z "$haveit"; then
28294 ltrpathdirs="$ltrpathdirs $found_dir"
28296 if test "$hardcode_direct" = yes; then
28297 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28299 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28300 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28302 for x in $rpathdirs; do
28303 if test "X$x" = "X$found_dir"; then
28308 if test -z "$haveit"; then
28309 rpathdirs="$rpathdirs $found_dir"
28313 for x in $LDFLAGS $LIBINTL; do
28315 acl_save_prefix="$prefix"
28316 prefix="$acl_final_prefix"
28317 acl_save_exec_prefix="$exec_prefix"
28318 exec_prefix="$acl_final_exec_prefix"
28320 exec_prefix="$acl_save_exec_prefix"
28321 prefix="$acl_save_prefix"
28323 if test "X$x" = "X-L$found_dir"; then
28328 if test -z "$haveit"; then
28329 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
28331 if test "$hardcode_minus_L" != no; then
28332 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28334 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28340 if test "X$found_a" != "X"; then
28341 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
28343 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
28346 additional_includedir=
28347 case "$found_dir" in
28348 */$acl_libdirstem | */$acl_libdirstem/)
28349 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28350 additional_includedir="$basedir/include"
28353 if test "X$additional_includedir" != "X"; then
28354 if test "X$additional_includedir" != "X/usr/include"; then
28356 if test "X$additional_includedir" = "X/usr/local/include"; then
28357 if test -n "$GCC"; then
28359 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28363 if test -z "$haveit"; then
28364 for x in $CPPFLAGS $INCINTL; do
28366 acl_save_prefix="$prefix"
28367 prefix="$acl_final_prefix"
28368 acl_save_exec_prefix="$exec_prefix"
28369 exec_prefix="$acl_final_exec_prefix"
28371 exec_prefix="$acl_save_exec_prefix"
28372 prefix="$acl_save_prefix"
28374 if test "X$x" = "X-I$additional_includedir"; then
28379 if test -z "$haveit"; then
28380 if test -d "$additional_includedir"; then
28381 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
28387 if test -n "$found_la"; then
28388 save_libdir="$libdir"
28389 case "$found_la" in
28390 */* | *\\*) . "$found_la" ;;
28391 *) . "./$found_la" ;;
28393 libdir="$save_libdir"
28394 for dep in $dependency_libs; do
28397 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28398 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
28400 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
28401 if test -n "$GCC"; then
28403 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28407 if test -z "$haveit"; then
28409 for x in $LDFLAGS $LIBINTL; do
28411 acl_save_prefix="$prefix"
28412 prefix="$acl_final_prefix"
28413 acl_save_exec_prefix="$exec_prefix"
28414 exec_prefix="$acl_final_exec_prefix"
28416 exec_prefix="$acl_save_exec_prefix"
28417 prefix="$acl_save_prefix"
28419 if test "X$x" = "X-L$additional_libdir"; then
28424 if test -z "$haveit"; then
28425 if test -d "$additional_libdir"; then
28426 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
28430 for x in $LDFLAGS $LTLIBINTL; do
28432 acl_save_prefix="$prefix"
28433 prefix="$acl_final_prefix"
28434 acl_save_exec_prefix="$exec_prefix"
28435 exec_prefix="$acl_final_exec_prefix"
28437 exec_prefix="$acl_save_exec_prefix"
28438 prefix="$acl_save_prefix"
28440 if test "X$x" = "X-L$additional_libdir"; then
28445 if test -z "$haveit"; then
28446 if test -d "$additional_libdir"; then
28447 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
28454 dir=`echo "X$dep" | sed -e 's/^X-R//'`
28455 if test "$enable_rpath" != no; then
28457 for x in $rpathdirs; do
28458 if test "X$x" = "X$dir"; then
28463 if test -z "$haveit"; then
28464 rpathdirs="$rpathdirs $dir"
28467 for x in $ltrpathdirs; do
28468 if test "X$x" = "X$dir"; then
28473 if test -z "$haveit"; then
28474 ltrpathdirs="$ltrpathdirs $dir"
28479 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28482 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28485 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
28486 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
28492 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28493 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
28499 if test "X$rpathdirs" != "X"; then
28500 if test -n "$hardcode_libdir_separator"; then
28502 for found_dir in $rpathdirs; do
28503 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28505 acl_save_libdir="$libdir"
28507 eval flag=\"$hardcode_libdir_flag_spec\"
28508 libdir="$acl_save_libdir"
28509 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28511 for found_dir in $rpathdirs; do
28512 acl_save_libdir="$libdir"
28513 libdir="$found_dir"
28514 eval flag=\"$hardcode_libdir_flag_spec\"
28515 libdir="$acl_save_libdir"
28516 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28520 if test "X$ltrpathdirs" != "X"; then
28521 for found_dir in $ltrpathdirs; do
28522 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
28526 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
28527 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
28528 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
28529 $as_echo_n "(cached) " >&6
28531 gt_save_CPPFLAGS="$CPPFLAGS"
28532 CPPFLAGS="$CPPFLAGS $INCINTL"
28533 gt_save_LIBS="$LIBS"
28534 LIBS="$LIBS $LIBINTL"
28535 cat >conftest.$ac_ext <<_ACEOF
28538 cat confdefs.h >>conftest.$ac_ext
28539 cat >>conftest.$ac_ext <<_ACEOF
28540 /* end confdefs.h. */
28541 #include <libintl.h>
28542 extern int _nl_msg_cat_cntr;
28547 const char *_nl_expand_alias (const char *);
28551 bindtextdomain ("", "");
28552 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28557 rm -f conftest.$ac_objext conftest$ac_exeext
28558 if { (ac_try="$ac_link"
28559 case "(($ac_try" in
28560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561 *) ac_try_echo=$ac_try;;
28563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28564 $as_echo "$ac_try_echo") >&5
28565 (eval "$ac_link") 2>conftest.er1
28567 grep -v '^ *+' conftest.er1 >conftest.err
28569 cat conftest.err >&5
28570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); } && {
28572 test -z "$ac_c_werror_flag" ||
28573 test ! -s conftest.err
28574 } && test -s conftest$ac_exeext && {
28575 test "$cross_compiling" = yes ||
28576 $as_test_x conftest$ac_exeext
28578 gt_cv_func_gnugettext1_libintl=yes
28580 $as_echo "$as_me: failed program was:" >&5
28581 sed 's/^/| /' conftest.$ac_ext >&5
28583 gt_cv_func_gnugettext1_libintl=no
28586 rm -rf conftest.dSYM
28587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28588 conftest$ac_exeext conftest.$ac_ext
28589 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
28590 LIBS="$LIBS $LIBICONV"
28591 cat >conftest.$ac_ext <<_ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h. */
28597 #include <libintl.h>
28598 extern int _nl_msg_cat_cntr;
28603 const char *_nl_expand_alias (const char *);
28607 bindtextdomain ("", "");
28608 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28613 rm -f conftest.$ac_objext conftest$ac_exeext
28614 if { (ac_try="$ac_link"
28615 case "(($ac_try" in
28616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28617 *) ac_try_echo=$ac_try;;
28619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28620 $as_echo "$ac_try_echo") >&5
28621 (eval "$ac_link") 2>conftest.er1
28623 grep -v '^ *+' conftest.er1 >conftest.err
28625 cat conftest.err >&5
28626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); } && {
28628 test -z "$ac_c_werror_flag" ||
28629 test ! -s conftest.err
28630 } && test -s conftest$ac_exeext && {
28631 test "$cross_compiling" = yes ||
28632 $as_test_x conftest$ac_exeext
28634 LIBINTL="$LIBINTL $LIBICONV"
28635 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
28636 gt_cv_func_gnugettext1_libintl=yes
28639 $as_echo "$as_me: failed program was:" >&5
28640 sed 's/^/| /' conftest.$ac_ext >&5
28645 rm -rf conftest.dSYM
28646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28647 conftest$ac_exeext conftest.$ac_ext
28649 CPPFLAGS="$gt_save_CPPFLAGS"
28650 LIBS="$gt_save_LIBS"
28652 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
28653 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
28656 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
28657 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
28658 && test "$PACKAGE" != gettext-runtime \
28659 && test "$PACKAGE" != gettext-tools; }; then
28660 gt_use_preinstalled_gnugettext=yes
28669 if test -n "$INTL_MACOSX_LIBS"; then
28670 if test "$gt_use_preinstalled_gnugettext" = "yes" \
28671 || test "$nls_cv_use_gnu_gettext" = "yes"; then
28672 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
28673 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
28677 if test "$gt_use_preinstalled_gnugettext" = "yes" \
28678 || test "$nls_cv_use_gnu_gettext" = "yes"; then
28680 cat >>confdefs.h <<\_ACEOF
28681 #define ENABLE_NLS 1
28689 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
28690 $as_echo_n "checking whether to use NLS... " >&6; }
28691 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
28692 $as_echo "$USE_NLS" >&6; }
28693 if test "$USE_NLS" = "yes"; then
28694 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
28695 $as_echo_n "checking where the gettext function comes from... " >&6; }
28696 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28697 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28698 gt_source="external libintl"
28703 gt_source="included intl directory"
28705 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
28706 $as_echo "$gt_source" >&6; }
28709 if test "$USE_NLS" = "yes"; then
28711 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28712 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28713 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
28714 $as_echo_n "checking how to link with libintl... " >&6; }
28715 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
28716 $as_echo "$LIBINTL" >&6; }
28718 for element in $INCINTL; do
28720 for x in $CPPFLAGS; do
28722 acl_save_prefix="$prefix"
28723 prefix="$acl_final_prefix"
28724 acl_save_exec_prefix="$exec_prefix"
28725 exec_prefix="$acl_final_exec_prefix"
28727 exec_prefix="$acl_save_exec_prefix"
28728 prefix="$acl_save_prefix"
28730 if test "X$x" = "X$element"; then
28735 if test -z "$haveit"; then
28736 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28743 cat >>confdefs.h <<\_ACEOF
28744 #define HAVE_GETTEXT 1
28748 cat >>confdefs.h <<\_ACEOF
28749 #define HAVE_DCGETTEXT 1
28759 INTLLIBS="$LIBINTL"
28772 sparc-sun-solaris2.10) # Solaris 10
28773 # curl is not in the LD_LIBRARY_PATH on Solaris 10, so we search
28774 # for it in a few common paths; we then extract the -L flags and
28775 # translate them to -R flags, as required by the runtime linker.
28776 # Extract the first word of "curl-config", so it can be a program name with args.
28777 set dummy curl-config; ac_word=$2
28778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28779 $as_echo_n "checking for $ac_word... " >&6; }
28780 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
28781 $as_echo_n "(cached) " >&6
28783 case $CURL_CONFIG in
28785 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
28788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28789 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
28790 for as_dir in $as_dummy
28793 test -z "$as_dir" && as_dir=.
28794 for ac_exec_ext in '' $ac_executable_extensions; do
28795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28796 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28797 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28807 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
28808 if test -n "$CURL_CONFIG"; then
28809 { $as_echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
28810 $as_echo "$CURL_CONFIG" >&6; }
28812 { $as_echo "$as_me:$LINENO: result: no" >&5
28813 $as_echo "no" >&6; }
28817 if test -n "$CURL_CONFIG"; then
28818 curlflags=`$CURL_CONFIG --libs 2>/dev/null`
28819 for flag in curlflags; do
28821 -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
28866 # Check whether --with-libcurl was given.
28867 if test "${with_libcurl+set}" = set; then
28868 withval=$with_libcurl; _libcurl_with=$withval
28874 if test "$_libcurl_with" != "no" ; then
28876 for ac_prog in gawk mawk nawk awk
28878 # Extract the first word of "$ac_prog", so it can be a program name with args.
28879 set dummy $ac_prog; ac_word=$2
28880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28881 $as_echo_n "checking for $ac_word... " >&6; }
28882 if test "${ac_cv_prog_AWK+set}" = set; then
28883 $as_echo_n "(cached) " >&6
28885 if test -n "$AWK"; then
28886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
28888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28889 for as_dir in $PATH
28892 test -z "$as_dir" && as_dir=.
28893 for ac_exec_ext in '' $ac_executable_extensions; do
28894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28895 ac_cv_prog_AWK="$ac_prog"
28896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28905 AWK=$ac_cv_prog_AWK
28906 if test -n "$AWK"; then
28907 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
28908 $as_echo "$AWK" >&6; }
28910 { $as_echo "$as_me:$LINENO: result: no" >&5
28911 $as_echo "no" >&6; }
28915 test -n "$AWK" && break
28919 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
28921 _libcurl_try_link=yes
28923 if test -d "$_libcurl_with" ; then
28924 LIBCURL_CPPFLAGS="-I$withval/include"
28925 _libcurl_ldflags="-L$withval/lib"
28926 # Extract the first word of "curl-config", so it can be a program name with args.
28927 set dummy curl-config; ac_word=$2
28928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28929 $as_echo_n "checking for $ac_word... " >&6; }
28930 if test "${ac_cv_path__libcurl_config+set}" = set; then
28931 $as_echo_n "(cached) " >&6
28933 case $_libcurl_config in
28935 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
28938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28939 for as_dir in "$withval/bin"
28942 test -z "$as_dir" && as_dir=.
28943 for ac_exec_ext in '' $ac_executable_extensions; do
28944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28945 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
28946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28953 test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
28957 _libcurl_config=$ac_cv_path__libcurl_config
28958 if test -n "$_libcurl_config"; then
28959 { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
28960 $as_echo "$_libcurl_config" >&6; }
28962 { $as_echo "$as_me:$LINENO: result: no" >&5
28963 $as_echo "no" >&6; }
28968 # Extract the first word of "curl-config", so it can be a program name with args.
28969 set dummy curl-config; ac_word=$2
28970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28971 $as_echo_n "checking for $ac_word... " >&6; }
28972 if test "${ac_cv_path__libcurl_config+set}" = set; then
28973 $as_echo_n "(cached) " >&6
28975 case $_libcurl_config in
28977 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
28980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28981 for as_dir in $PATH
28984 test -z "$as_dir" && as_dir=.
28985 for ac_exec_ext in '' $ac_executable_extensions; do
28986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28987 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
28988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28998 _libcurl_config=$ac_cv_path__libcurl_config
28999 if test -n "$_libcurl_config"; then
29000 { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
29001 $as_echo "$_libcurl_config" >&6; }
29003 { $as_echo "$as_me:$LINENO: result: no" >&5
29004 $as_echo "no" >&6; }
29010 if test x$_libcurl_config != "x" ; then
29011 { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
29012 $as_echo_n "checking for the version of libcurl... " >&6; }
29013 if test "${libcurl_cv_lib_curl_version+set}" = set; then
29014 $as_echo_n "(cached) " >&6
29016 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
29018 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
29019 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
29021 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
29022 _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
29024 if test $_libcurl_wanted -gt 0 ; then
29025 { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
29026 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
29027 if test "${libcurl_cv_lib_version_ok+set}" = set; then
29028 $as_echo_n "(cached) " >&6
29031 if test $_libcurl_version -ge $_libcurl_wanted ; then
29032 libcurl_cv_lib_version_ok=yes
29034 libcurl_cv_lib_version_ok=no
29038 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
29039 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
29042 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
29043 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
29044 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
29046 if test x"$LIBCURL" = "x" ; then
29047 LIBCURL=`$_libcurl_config --libs`
29049 # This is so silly, but Apple actually has a bug in their
29050 # curl-config script. Fixed in Tiger, but there are still
29051 # lots of Panther installs around.
29053 powerpc-apple-darwin7*)
29054 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
29059 # All curl-config scripts support --feature
29060 _libcurl_features=`$_libcurl_config --feature`
29062 # Is it modern enough to have --protocols? (7.12.4)
29063 if test $_libcurl_version -ge 461828 ; then
29064 _libcurl_protocols=`$_libcurl_config --protocols`
29067 _libcurl_try_link=no
29070 unset _libcurl_wanted
29073 if test $_libcurl_try_link = yes ; then
29075 # we didn't find curl-config, so let's see if the user-supplied
29076 # link line (or failing that, "-lcurl") is enough.
29077 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
29079 { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
29080 $as_echo_n "checking whether libcurl is usable... " >&6; }
29081 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
29082 $as_echo_n "(cached) " >&6
29085 _libcurl_save_cppflags=$CPPFLAGS
29086 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
29087 _libcurl_save_libs=$LIBS
29088 LIBS="$LIBCURL $LIBS"
29090 cat >conftest.$ac_ext <<_ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h. */
29096 #include <curl/curl.h>
29101 /* Try and use a few common options to force a failure if we are
29102 missing symbols or can't link. */
29104 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
29106 x=CURLOPT_WRITEFUNCTION;
29108 x=CURLOPT_ERRORBUFFER;
29116 rm -f conftest.$ac_objext conftest$ac_exeext
29117 if { (ac_try="$ac_link"
29118 case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29123 $as_echo "$ac_try_echo") >&5
29124 (eval "$ac_link") 2>conftest.er1
29126 grep -v '^ *+' conftest.er1 >conftest.err
29128 cat conftest.err >&5
29129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); } && {
29131 test -z "$ac_c_werror_flag" ||
29132 test ! -s conftest.err
29133 } && test -s conftest$ac_exeext && {
29134 test "$cross_compiling" = yes ||
29135 $as_test_x conftest$ac_exeext
29137 libcurl_cv_lib_curl_usable=yes
29139 $as_echo "$as_me: failed program was:" >&5
29140 sed 's/^/| /' conftest.$ac_ext >&5
29142 libcurl_cv_lib_curl_usable=no
29145 rm -rf conftest.dSYM
29146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29147 conftest$ac_exeext conftest.$ac_ext
29149 CPPFLAGS=$_libcurl_save_cppflags
29150 LIBS=$_libcurl_save_libs
29151 unset _libcurl_save_cppflags
29152 unset _libcurl_save_libs
29155 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
29156 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
29158 if test $libcurl_cv_lib_curl_usable = yes ; then
29160 # Does curl_free() exist in this version of libcurl?
29161 # If not, fake it with free()
29163 _libcurl_save_cppflags=$CPPFLAGS
29164 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
29165 _libcurl_save_libs=$LIBS
29166 LIBS="$LIBS $LIBCURL"
29168 { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
29169 $as_echo_n "checking for curl_free... " >&6; }
29170 if test "${ac_cv_func_curl_free+set}" = set; then
29171 $as_echo_n "(cached) " >&6
29173 cat >conftest.$ac_ext <<_ACEOF
29176 cat confdefs.h >>conftest.$ac_ext
29177 cat >>conftest.$ac_ext <<_ACEOF
29178 /* end confdefs.h. */
29179 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
29180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29181 #define curl_free innocuous_curl_free
29183 /* System header to define __stub macros and hopefully few prototypes,
29184 which can conflict with char curl_free (); below.
29185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29186 <limits.h> exists even on freestanding compilers. */
29189 # include <limits.h>
29191 # include <assert.h>
29196 /* Override any GCC internal prototype to avoid an error.
29197 Use char because int might match the return type of a GCC
29198 builtin and then its argument prototype would still apply. */
29203 /* The GNU C library defines this for functions which it implements
29204 to always fail with ENOSYS. Some functions are actually named
29205 something starting with __ and the normal name is an alias. */
29206 #if defined __stub_curl_free || defined __stub___curl_free
29213 return curl_free ();
29218 rm -f conftest.$ac_objext conftest$ac_exeext
29219 if { (ac_try="$ac_link"
29220 case "(($ac_try" in
29221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222 *) ac_try_echo=$ac_try;;
29224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29225 $as_echo "$ac_try_echo") >&5
29226 (eval "$ac_link") 2>conftest.er1
29228 grep -v '^ *+' conftest.er1 >conftest.err
29230 cat conftest.err >&5
29231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); } && {
29233 test -z "$ac_c_werror_flag" ||
29234 test ! -s conftest.err
29235 } && test -s conftest$ac_exeext && {
29236 test "$cross_compiling" = yes ||
29237 $as_test_x conftest$ac_exeext
29239 ac_cv_func_curl_free=yes
29241 $as_echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29244 ac_cv_func_curl_free=no
29247 rm -rf conftest.dSYM
29248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29249 conftest$ac_exeext conftest.$ac_ext
29251 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
29252 $as_echo "$ac_cv_func_curl_free" >&6; }
29253 if test "x$ac_cv_func_curl_free" = x""yes; then
29257 cat >>confdefs.h <<\_ACEOF
29258 #define curl_free free
29264 CPPFLAGS=$_libcurl_save_cppflags
29265 LIBS=$_libcurl_save_libs
29266 unset _libcurl_save_cppflags
29267 unset _libcurl_save_libs
29270 cat >>confdefs.h <<\_ACEOF
29271 #define HAVE_LIBCURL 1
29277 for _libcurl_feature in $_libcurl_features ; do
29278 cat >>confdefs.h <<_ACEOF
29279 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
29282 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
29285 if test "x$_libcurl_protocols" = "x" ; then
29287 # We don't have --protocols, so just assume that all
29288 # protocols are available
29289 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
29291 if test x$libcurl_feature_SSL = xyes ; then
29292 _libcurl_protocols="$_libcurl_protocols HTTPS"
29294 # FTPS wasn't standards-compliant until version
29296 if test $_libcurl_version -ge 461568; then
29297 _libcurl_protocols="$_libcurl_protocols FTPS"
29302 for _libcurl_protocol in $_libcurl_protocols ; do
29303 cat >>confdefs.h <<_ACEOF
29304 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
29307 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
29311 unset LIBCURL_CPPFLAGS
29315 unset _libcurl_try_link
29316 unset _libcurl_version_parse
29317 unset _libcurl_config
29318 unset _libcurl_feature
29319 unset _libcurl_features
29320 unset _libcurl_protocol
29321 unset _libcurl_protocols
29322 unset _libcurl_version
29323 unset _libcurl_ldflags
29326 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
29327 # This is the IF-NO path
29330 # This is the IF-YES path
29334 unset _libcurl_with
29336 if test x"$HAVE_CURL" = x"yes"; then
29337 LIBS="$LIBCURL $LIBS"
29339 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
29344 { $as_echo "$as_me:$LINENO: checking for curl_off_t" >&5
29345 $as_echo_n "checking for curl_off_t... " >&6; }
29346 if test "${ac_cv_type_curl_off_t+set}" = set; then
29347 $as_echo_n "(cached) " >&6
29349 ac_cv_type_curl_off_t=no
29350 cat >conftest.$ac_ext <<_ACEOF
29353 cat confdefs.h >>conftest.$ac_ext
29354 cat >>conftest.$ac_ext <<_ACEOF
29355 /* end confdefs.h. */
29357 #ifdef HAVE_SYS_TYPES_H
29358 #include <sys/types.h>
29360 #ifdef STDC_HEADERS
29361 #include <stdlib.h>
29362 #include <stddef.h>
29364 #include <curl/curl.h>
29371 if (sizeof (curl_off_t))
29377 rm -f conftest.$ac_objext
29378 if { (ac_try="$ac_compile"
29379 case "(($ac_try" in
29380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29381 *) ac_try_echo=$ac_try;;
29383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29384 $as_echo "$ac_try_echo") >&5
29385 (eval "$ac_compile") 2>conftest.er1
29387 grep -v '^ *+' conftest.er1 >conftest.err
29389 cat conftest.err >&5
29390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); } && {
29392 test -z "$ac_c_werror_flag" ||
29393 test ! -s conftest.err
29394 } && test -s conftest.$ac_objext; then
29395 cat >conftest.$ac_ext <<_ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h. */
29402 #ifdef HAVE_SYS_TYPES_H
29403 #include <sys/types.h>
29405 #ifdef STDC_HEADERS
29406 #include <stdlib.h>
29407 #include <stddef.h>
29409 #include <curl/curl.h>
29416 if (sizeof ((curl_off_t)))
29422 rm -f conftest.$ac_objext
29423 if { (ac_try="$ac_compile"
29424 case "(($ac_try" in
29425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29426 *) ac_try_echo=$ac_try;;
29428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29429 $as_echo "$ac_try_echo") >&5
29430 (eval "$ac_compile") 2>conftest.er1
29432 grep -v '^ *+' conftest.er1 >conftest.err
29434 cat conftest.err >&5
29435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); } && {
29437 test -z "$ac_c_werror_flag" ||
29438 test ! -s conftest.err
29439 } && test -s conftest.$ac_objext; then
29442 $as_echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29445 ac_cv_type_curl_off_t=yes
29448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29450 $as_echo "$as_me: failed program was:" >&5
29451 sed 's/^/| /' conftest.$ac_ext >&5
29456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29458 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
29459 $as_echo "$ac_cv_type_curl_off_t" >&6; }
29460 if test "x$ac_cv_type_curl_off_t" = x""yes; then
29465 cat >>confdefs.h <<\_ACEOF
29466 #define curl_off_t off_t
29478 { $as_echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
29479 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
29480 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
29481 $as_echo_n "(cached) " >&6
29483 ac_check_lib_save_LIBS=$LIBS
29484 LIBS="-lcrypto $LIBS"
29485 cat >conftest.$ac_ext <<_ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h. */
29492 /* Override any GCC internal prototype to avoid an error.
29493 Use char because int might match the return type of a GCC
29494 builtin and then its argument prototype would still apply. */
29498 char HMAC_CTX_init ();
29502 return HMAC_CTX_init ();
29507 rm -f conftest.$ac_objext conftest$ac_exeext
29508 if { (ac_try="$ac_link"
29509 case "(($ac_try" in
29510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511 *) ac_try_echo=$ac_try;;
29513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29514 $as_echo "$ac_try_echo") >&5
29515 (eval "$ac_link") 2>conftest.er1
29517 grep -v '^ *+' conftest.er1 >conftest.err
29519 cat conftest.err >&5
29520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } && {
29522 test -z "$ac_c_werror_flag" ||
29523 test ! -s conftest.err
29524 } && test -s conftest$ac_exeext && {
29525 test "$cross_compiling" = yes ||
29526 $as_test_x conftest$ac_exeext
29528 ac_cv_lib_crypto_HMAC_CTX_init=yes
29530 $as_echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29533 ac_cv_lib_crypto_HMAC_CTX_init=no
29536 rm -rf conftest.dSYM
29537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29538 conftest$ac_exeext conftest.$ac_ext
29539 LIBS=$ac_check_lib_save_LIBS
29541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
29542 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
29543 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = x""yes; then
29544 cat >>confdefs.h <<_ACEOF
29545 #define HAVE_LIBCRYPTO 1
29548 LIBS="-lcrypto $LIBS"
29559 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
29561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29564 $as_echo_n "checking for $ac_header... " >&6; }
29565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29566 $as_echo_n "(cached) " >&6
29568 ac_res=`eval 'as_val=${'$as_ac_Header'}
29569 $as_echo "$as_val"'`
29570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29571 $as_echo "$ac_res" >&6; }
29573 # Is the header compilable?
29574 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29575 $as_echo_n "checking $ac_header usability... " >&6; }
29576 cat >conftest.$ac_ext <<_ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h. */
29582 $ac_includes_default
29583 #include <$ac_header>
29585 rm -f conftest.$ac_objext
29586 if { (ac_try="$ac_compile"
29587 case "(($ac_try" in
29588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29589 *) ac_try_echo=$ac_try;;
29591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29592 $as_echo "$ac_try_echo") >&5
29593 (eval "$ac_compile") 2>conftest.er1
29595 grep -v '^ *+' conftest.er1 >conftest.err
29597 cat conftest.err >&5
29598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); } && {
29600 test -z "$ac_c_werror_flag" ||
29601 test ! -s conftest.err
29602 } && test -s conftest.$ac_objext; then
29603 ac_header_compiler=yes
29605 $as_echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29608 ac_header_compiler=no
29611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29613 $as_echo "$ac_header_compiler" >&6; }
29615 # Is the header present?
29616 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29617 $as_echo_n "checking $ac_header presence... " >&6; }
29618 cat >conftest.$ac_ext <<_ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h. */
29624 #include <$ac_header>
29626 if { (ac_try="$ac_cpp conftest.$ac_ext"
29627 case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29632 $as_echo "$ac_try_echo") >&5
29633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29635 grep -v '^ *+' conftest.er1 >conftest.err
29637 cat conftest.err >&5
29638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); } >/dev/null && {
29640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29641 test ! -s conftest.err
29643 ac_header_preproc=yes
29645 $as_echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29648 ac_header_preproc=no
29651 rm -f conftest.err conftest.$ac_ext
29652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29653 $as_echo "$ac_header_preproc" >&6; }
29655 # So? What about this header?
29656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29659 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29661 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29662 ac_header_preproc=yes
29665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29666 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29668 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29670 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29672 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29674 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29676 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29680 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29681 $as_echo_n "checking for $ac_header... " >&6; }
29682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29683 $as_echo_n "(cached) " >&6
29685 eval "$as_ac_Header=\$ac_header_preproc"
29687 ac_res=`eval 'as_val=${'$as_ac_Header'}
29688 $as_echo "$as_val"'`
29689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29690 $as_echo "$ac_res" >&6; }
29693 as_val=`eval 'as_val=${'$as_ac_Header'}
29694 $as_echo "$as_val"'`
29695 if test "x$as_val" = x""yes; then
29696 cat >>confdefs.h <<_ACEOF
29697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29699 found_hmac_h=yes; break
29704 if test x"$found_hmac_h" != x"yes"; then
29712 # Check whether --enable-s3-device was given.
29713 if test "${enable_s3_device+set}" = set; then
29714 enableval=$enable_s3_device; WANT_S3_DEVICE=$enableval
29716 WANT_S3_DEVICE=maybe
29720 { $as_echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
29721 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
29722 # if the user didn't specify 'no', then check for support
29723 if test x"$WANT_S3_DEVICE" != x"no"; then
29724 if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
29727 # no support -- if the user explicitly enabled the device,
29728 # then this is an error
29729 if test x"$WANT_S3_DEVICE" = x"yes"; then
29730 { $as_echo "$as_me:$LINENO: result: no" >&5
29731 $as_echo "no" >&6; }
29732 { { $as_echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
29733 $as_echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
29734 { (exit 1); exit 1; }; }
29740 { $as_echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
29741 $as_echo "$WANT_S3_DEVICE" >&6; }
29743 if test x"$WANT_S3_DEVICE" = x"yes"; then
29744 WANT_S3_DEVICE_TRUE=
29745 WANT_S3_DEVICE_FALSE='#'
29747 WANT_S3_DEVICE_TRUE='#'
29748 WANT_S3_DEVICE_FALSE=
29752 # Now handle any setup for S3, if we want it.
29753 if test x"$WANT_S3_DEVICE" = x"yes"; then
29755 cat >>confdefs.h <<\_ACEOF
29756 #define WANT_S3_DEVICE /**/
29771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29773 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29774 $as_echo_n "checking for $ac_header... " >&6; }
29775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29776 $as_echo_n "(cached) " >&6
29778 ac_res=`eval 'as_val=${'$as_ac_Header'}
29779 $as_echo "$as_val"'`
29780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29781 $as_echo "$ac_res" >&6; }
29783 # Is the header compilable?
29784 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29785 $as_echo_n "checking $ac_header usability... " >&6; }
29786 cat >conftest.$ac_ext <<_ACEOF
29789 cat confdefs.h >>conftest.$ac_ext
29790 cat >>conftest.$ac_ext <<_ACEOF
29791 /* end confdefs.h. */
29792 $ac_includes_default
29793 #include <$ac_header>
29795 rm -f conftest.$ac_objext
29796 if { (ac_try="$ac_compile"
29797 case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29802 $as_echo "$ac_try_echo") >&5
29803 (eval "$ac_compile") 2>conftest.er1
29805 grep -v '^ *+' conftest.er1 >conftest.err
29807 cat conftest.err >&5
29808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); } && {
29810 test -z "$ac_c_werror_flag" ||
29811 test ! -s conftest.err
29812 } && test -s conftest.$ac_objext; then
29813 ac_header_compiler=yes
29815 $as_echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29818 ac_header_compiler=no
29821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29823 $as_echo "$ac_header_compiler" >&6; }
29825 # Is the header present?
29826 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29827 $as_echo_n "checking $ac_header presence... " >&6; }
29828 cat >conftest.$ac_ext <<_ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h. */
29834 #include <$ac_header>
29836 if { (ac_try="$ac_cpp conftest.$ac_ext"
29837 case "(($ac_try" in
29838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839 *) ac_try_echo=$ac_try;;
29841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29842 $as_echo "$ac_try_echo") >&5
29843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29845 grep -v '^ *+' conftest.er1 >conftest.err
29847 cat conftest.err >&5
29848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } >/dev/null && {
29850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29851 test ! -s conftest.err
29853 ac_header_preproc=yes
29855 $as_echo "$as_me: failed program was:" >&5
29856 sed 's/^/| /' conftest.$ac_ext >&5
29858 ac_header_preproc=no
29861 rm -f conftest.err conftest.$ac_ext
29862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29863 $as_echo "$ac_header_preproc" >&6; }
29865 # So? What about this header?
29866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29869 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29872 ac_header_preproc=yes
29875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29876 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29878 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29880 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29882 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29884 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29886 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29891 $as_echo_n "checking for $ac_header... " >&6; }
29892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29893 $as_echo_n "(cached) " >&6
29895 eval "$as_ac_Header=\$ac_header_preproc"
29897 ac_res=`eval 'as_val=${'$as_ac_Header'}
29898 $as_echo "$as_val"'`
29899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29900 $as_echo "$ac_res" >&6; }
29903 as_val=`eval 'as_val=${'$as_ac_Header'}
29904 $as_echo "$as_val"'`
29905 if test "x$as_val" = x""yes; then
29906 cat >>confdefs.h <<_ACEOF
29907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29915 # check for MTIOCTOP, an indicator of POSIX tape support
29916 { $as_echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
29917 $as_echo_n "checking for MTIOCTOP... " >&6; }
29918 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
29919 $as_echo_n "(cached) " >&6
29922 cat >conftest.$ac_ext <<_ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h. */
29929 #ifdef HAVE_SYS_TAPE_H
29930 # include <sys/tape.h>
29932 #ifdef HAVE_SYS_MTIO_H
29933 # include <sys/mtio.h>
29936 #error MTIOCTOP not defined
29947 rm -f conftest.$ac_objext
29948 if { (ac_try="$ac_compile"
29949 case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29954 $as_echo "$ac_try_echo") >&5
29955 (eval "$ac_compile") 2>conftest.er1
29957 grep -v '^ *+' conftest.er1 >conftest.err
29959 cat conftest.err >&5
29960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); } && {
29962 test -z "$ac_c_werror_flag" ||
29963 test ! -s conftest.err
29964 } && test -s conftest.$ac_objext; then
29965 amanda_cv_HAVE_MTIOCTOP=yes
29967 $as_echo "$as_me: failed program was:" >&5
29968 sed 's/^/| /' conftest.$ac_ext >&5
29970 amanda_cv_HAVE_MTIOCTOP=no
29973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29975 HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
29978 { $as_echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
29979 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
29981 # decide which tape device to compile (arranged in such a way that
29982 # only one actually gets compiled)
29984 *-ibm-aix*) aix_tapeio=yes ;;
29985 *-sysv4.2uw2*) uware_tapeio=yes ;;
29986 *-sco3.2v5*) xenix_tapeio=yes ;;
29987 i386-pc-isc4*) xenix_tapeio=yes ;;
29990 # maybe we have no tape device at all (e.g., Mac OS X)?
29991 if test -n "$xenix_tapeio" ||
29992 test -n "$aix_tapeio" ||
29993 test -n "$uware_tapeio" ||
29994 test -n "$HAVE_MTIOCTOP"; then
29995 want_tape_device=yes
29997 cat >>confdefs.h <<\_ACEOF
29998 #define WANT_TAPE_DEVICE 1
30003 if test -n "$xenix_tapeio"; then
30004 WANT_TAPE_XENIX_TRUE=
30005 WANT_TAPE_XENIX_FALSE='#'
30007 WANT_TAPE_XENIX_TRUE='#'
30008 WANT_TAPE_XENIX_FALSE=
30011 if test -n "$aix_tapeio"; then
30012 WANT_TAPE_AIX_TRUE=
30013 WANT_TAPE_AIX_FALSE='#'
30015 WANT_TAPE_AIX_TRUE='#'
30016 WANT_TAPE_AIX_FALSE=
30019 if test -n "$uware_tapeio"; then
30020 WANT_TAPE_UWARE_TRUE=
30021 WANT_TAPE_UWARE_FALSE='#'
30023 WANT_TAPE_UWARE_TRUE='#'
30024 WANT_TAPE_UWARE_FALSE=
30027 if test -n "$HAVE_MTIOCTOP"; then
30028 WANT_TAPE_POSIX_TRUE=
30029 WANT_TAPE_POSIX_FALSE='#'
30031 WANT_TAPE_POSIX_TRUE='#'
30032 WANT_TAPE_POSIX_FALSE=
30035 if test -n "$want_tape_device"; then
30036 WANT_TAPE_DEVICE_TRUE=
30037 WANT_TAPE_DEVICE_FALSE='#'
30039 WANT_TAPE_DEVICE_TRUE='#'
30040 WANT_TAPE_DEVICE_FALSE=
30044 if test -n "$xenix_tapeio"; then
30046 cat >>confdefs.h <<\_ACEOF
30047 #define WANT_TAPE_XENIX 1
30052 if test -n "$aix_tapeio"; then
30054 cat >>confdefs.h <<\_ACEOF
30055 #define WANT_TAPE_AIX 1
30060 if test -n "$uware_tapeio"; then
30062 cat >>confdefs.h <<\_ACEOF
30063 #define WANT_TAPE_UWARE 1
30069 # Check for various "mt status" related structure elements.
30071 { $as_echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
30072 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
30073 cat >conftest.$ac_ext <<_ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h. */
30081 #include <sys/types.h>
30082 #include <sys/mtio.h>
30097 rm -f conftest.$ac_objext
30098 if { (ac_try="$ac_compile"
30099 case "(($ac_try" in
30100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101 *) ac_try_echo=$ac_try;;
30103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30104 $as_echo "$ac_try_echo") >&5
30105 (eval "$ac_compile") 2>conftest.er1
30107 grep -v '^ *+' conftest.er1 >conftest.err
30109 cat conftest.err >&5
30110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); } && {
30112 test -z "$ac_c_werror_flag" ||
30113 test ! -s conftest.err
30114 } && test -s conftest.$ac_objext; then
30116 { $as_echo "$as_me:$LINENO: result: yes" >&5
30117 $as_echo "yes" >&6; }
30119 cat >>confdefs.h <<\_ACEOF
30120 #define HAVE_MT_FLAGS 1
30125 $as_echo "$as_me: failed program was:" >&5
30126 sed 's/^/| /' conftest.$ac_ext >&5
30129 { $as_echo "$as_me:$LINENO: result: no" >&5
30130 $as_echo "no" >&6; }
30134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30136 { $as_echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
30137 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
30138 mt_fileno_result="found"
30139 cat >conftest.$ac_ext <<_ACEOF
30142 cat confdefs.h >>conftest.$ac_ext
30143 cat >>conftest.$ac_ext <<_ACEOF
30144 /* end confdefs.h. */
30147 #include <sys/types.h>
30148 #include <sys/mtio.h>
30157 ds = buf.mt_fileno;
30163 rm -f conftest.$ac_objext
30164 if { (ac_try="$ac_compile"
30165 case "(($ac_try" in
30166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167 *) ac_try_echo=$ac_try;;
30169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30170 $as_echo "$ac_try_echo") >&5
30171 (eval "$ac_compile") 2>conftest.er1
30173 grep -v '^ *+' conftest.er1 >conftest.err
30175 cat conftest.err >&5
30176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); } && {
30178 test -z "$ac_c_werror_flag" ||
30179 test ! -s conftest.err
30180 } && test -s conftest.$ac_objext; then
30182 { $as_echo "$as_me:$LINENO: result: yes" >&5
30183 $as_echo "yes" >&6; }
30185 cat >>confdefs.h <<\_ACEOF
30186 #define HAVE_MT_FILENO 1
30191 $as_echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30195 { $as_echo "$as_me:$LINENO: result: no" >&5
30196 $as_echo "no" >&6; }
30200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30202 { $as_echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
30203 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
30204 cat >conftest.$ac_ext <<_ACEOF
30207 cat confdefs.h >>conftest.$ac_ext
30208 cat >>conftest.$ac_ext <<_ACEOF
30209 /* end confdefs.h. */
30212 #include <sys/types.h>
30213 #include <sys/mtio.h>
30228 rm -f conftest.$ac_objext
30229 if { (ac_try="$ac_compile"
30230 case "(($ac_try" in
30231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30232 *) ac_try_echo=$ac_try;;
30234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30235 $as_echo "$ac_try_echo") >&5
30236 (eval "$ac_compile") 2>conftest.er1
30238 grep -v '^ *+' conftest.er1 >conftest.err
30240 cat conftest.err >&5
30241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242 (exit $ac_status); } && {
30243 test -z "$ac_c_werror_flag" ||
30244 test ! -s conftest.err
30245 } && test -s conftest.$ac_objext; then
30247 { $as_echo "$as_me:$LINENO: result: yes" >&5
30248 $as_echo "yes" >&6; }
30250 cat >>confdefs.h <<\_ACEOF
30251 #define HAVE_MT_BLKNO 1
30256 $as_echo "$as_me: failed program was:" >&5
30257 sed 's/^/| /' conftest.$ac_ext >&5
30260 { $as_echo "$as_me:$LINENO: result: no" >&5
30261 $as_echo "no" >&6; }
30265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30267 { $as_echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
30268 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
30269 cat >conftest.$ac_ext <<_ACEOF
30272 cat confdefs.h >>conftest.$ac_ext
30273 cat >>conftest.$ac_ext <<_ACEOF
30274 /* end confdefs.h. */
30277 #include <sys/types.h>
30278 #include <sys/mtio.h>
30293 rm -f conftest.$ac_objext
30294 if { (ac_try="$ac_compile"
30295 case "(($ac_try" in
30296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30297 *) ac_try_echo=$ac_try;;
30299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30300 $as_echo "$ac_try_echo") >&5
30301 (eval "$ac_compile") 2>conftest.er1
30303 grep -v '^ *+' conftest.er1 >conftest.err
30305 cat conftest.err >&5
30306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); } && {
30308 test -z "$ac_c_werror_flag" ||
30309 test ! -s conftest.err
30310 } && test -s conftest.$ac_objext; then
30312 { $as_echo "$as_me:$LINENO: result: yes" >&5
30313 $as_echo "yes" >&6; }
30315 cat >>confdefs.h <<\_ACEOF
30316 #define HAVE_MT_DSREG 1
30321 $as_echo "$as_me: failed program was:" >&5
30322 sed 's/^/| /' conftest.$ac_ext >&5
30325 { $as_echo "$as_me:$LINENO: result: no" >&5
30326 $as_echo "no" >&6; }
30330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30332 { $as_echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
30333 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
30334 cat >conftest.$ac_ext <<_ACEOF
30337 cat confdefs.h >>conftest.$ac_ext
30338 cat >>conftest.$ac_ext <<_ACEOF
30339 /* end confdefs.h. */
30342 #include <sys/types.h>
30343 #include <sys/mtio.h>
30358 rm -f conftest.$ac_objext
30359 if { (ac_try="$ac_compile"
30360 case "(($ac_try" in
30361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30362 *) ac_try_echo=$ac_try;;
30364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30365 $as_echo "$ac_try_echo") >&5
30366 (eval "$ac_compile") 2>conftest.er1
30368 grep -v '^ *+' conftest.er1 >conftest.err
30370 cat conftest.err >&5
30371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); } && {
30373 test -z "$ac_c_werror_flag" ||
30374 test ! -s conftest.err
30375 } && test -s conftest.$ac_objext; then
30377 { $as_echo "$as_me:$LINENO: result: yes" >&5
30378 $as_echo "yes" >&6; }
30380 cat >>confdefs.h <<\_ACEOF
30381 #define HAVE_MT_ERREG 1
30386 $as_echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.$ac_ext >&5
30390 { $as_echo "$as_me:$LINENO: result: no" >&5
30391 $as_echo "no" >&6; }
30395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30399 # Security (authentication) mechansims
30404 # Check whether --with-bsd-security was given.
30405 if test "${with_bsd_security+set}" = set; then
30406 withval=$with_bsd_security;
30408 n | no) BSD_SECURITY=no ;;
30409 y | ye | yes) BSD_SECURITY=yes ;;
30410 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
30411 $as_echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
30412 { (exit 1); exit 1; }; }
30419 USE_AMANDAHOSTS=yes
30421 # Check whether --with-amandahosts was given.
30422 if test "${with_amandahosts+set}" = set; then
30423 withval=$with_amandahosts;
30425 n | no ) USE_AMANDAHOSTS=no ;;
30426 y | ye | yes) USE_AMANDAHOSTS=yes ;;
30427 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
30428 $as_echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
30429 { (exit 1); exit 1; }; }
30437 if test "x$BSD_SECURITY" = "xyes"; then
30439 cat >>confdefs.h <<\_ACEOF
30440 #define BSD_SECURITY 1
30443 if test "x$USE_AMANDAHOSTS" = "xyes"; then
30445 cat >>confdefs.h <<\_ACEOF
30446 #define USE_AMANDAHOSTS 1
30452 if test x"$BSD_SECURITY" = x"yes"; then
30453 WANT_BSD_SECURITY_TRUE=
30454 WANT_BSD_SECURITY_FALSE='#'
30456 WANT_BSD_SECURITY_TRUE='#'
30457 WANT_BSD_SECURITY_FALSE=
30464 BSDTCP_SECURITY="yes"
30466 # Check whether --with-bsdtcp-security was given.
30467 if test "${with_bsdtcp_security+set}" = set; then
30468 withval=$with_bsdtcp_security;
30470 n | no) BSDTCP_SECURITY=no ;;
30471 y | ye | yes) BSDTCP_SECURITY=yes ;;
30472 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
30473 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
30474 { (exit 1); exit 1; }; }
30481 if test "x$BSDTCP_SECURITY" = "xyes"; then
30483 cat >>confdefs.h <<\_ACEOF
30484 #define BSDTCP_SECURITY 1
30489 if test x"$BSDTCP_SECURITY" = x"yes"; then
30490 WANT_BSDTCP_SECURITY_TRUE=
30491 WANT_BSDTCP_SECURITY_FALSE='#'
30493 WANT_BSDTCP_SECURITY_TRUE='#'
30494 WANT_BSDTCP_SECURITY_FALSE=
30500 BSDUDP_SECURITY="no"
30502 # Check whether --with-bsdudp-security was given.
30503 if test "${with_bsdudp_security+set}" = set; then
30504 withval=$with_bsdudp_security;
30507 y | ye | yes) BSDUDP_SECURITY=yes ;;
30508 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
30509 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
30510 { (exit 1); exit 1; }; }
30517 if test "x$BSDUDP_SECURITY" = "xyes"; then
30519 cat >>confdefs.h <<\_ACEOF
30520 #define BSDUDP_SECURITY 1
30525 if test x"$BSDUDP_SECURITY" = x"yes"; then
30526 WANT_BSDUDP_SECURITY_TRUE=
30527 WANT_BSDUDP_SECURITY_FALSE='#'
30529 WANT_BSDUDP_SECURITY_TRUE='#'
30530 WANT_BSDUDP_SECURITY_FALSE=
30538 # Check whether --with-rsh-security was given.
30539 if test "${with_rsh_security+set}" = set; then
30540 withval=$with_rsh_security;
30543 y | ye | yes) RSH_SECURITY=yes ;;
30544 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
30545 $as_echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
30546 { (exit 1); exit 1; }; }
30553 if test "x$RSH_SECURITY" = "xyes"; then
30555 cat >>confdefs.h <<\_ACEOF
30556 #define RSH_SECURITY 1
30560 if test x"$RSH_SECURITY" = x"yes"; then
30561 WANT_RSH_SECURITY_TRUE=
30562 WANT_RSH_SECURITY_FALSE='#'
30564 WANT_RSH_SECURITY_TRUE='#'
30565 WANT_RSH_SECURITY_FALSE=
30573 # Check whether --with-ssh-security was given.
30574 if test "${with_ssh_security+set}" = set; then
30575 withval=$with_ssh_security;
30577 n | no) SSH_SECURITY=no ;;
30578 y | ye | yes) SSH_SECURITY=yes ;;
30579 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
30580 $as_echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
30581 { (exit 1); exit 1; }; }
30588 if test "x$SSH_SECURITY" = "xyes"; then
30589 # find the SSH binary
30592 # Extract the first word of "$ac_prog", so it can be a program name with args.
30593 set dummy $ac_prog; ac_word=$2
30594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30595 $as_echo_n "checking for $ac_word... " >&6; }
30596 if test "${ac_cv_path_SSH+set}" = set; then
30597 $as_echo_n "(cached) " >&6
30601 ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
30604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30605 for as_dir in $LOCSYSPATH
30608 test -z "$as_dir" && as_dir=.
30609 for ac_exec_ext in '' $ac_executable_extensions; do
30610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30611 ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
30612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30622 SSH=$ac_cv_path_SSH
30623 if test -n "$SSH"; then
30624 { $as_echo "$as_me:$LINENO: result: $SSH" >&5
30625 $as_echo "$SSH" >&6; }
30627 { $as_echo "$as_me:$LINENO: result: no" >&5
30628 $as_echo "no" >&6; }
30632 test -n "$SSH" && break
30636 # see what options we should use
30638 # Check whether --with-ssh-options was given.
30639 if test "${with_ssh_options+set}" = set; then
30640 withval=$with_ssh_options; SSH_OPTIONS="$withval"
30647 case "$SSH_OPTIONS" in
30648 y | ye | yes | n | no)
30649 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
30650 $as_echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
30651 { (exit 1); exit 1; }; };;
30655 { $as_echo "$as_me:$LINENO: checking SSH options" >&5
30656 $as_echo_n "checking SSH options... " >&6; }
30657 # if we didn't get SSH options from the user, figure them out for ourselves
30658 if test -z "$SSH_OPTIONS"; then
30659 case `$SSH -V 2>&1` in
30660 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
30661 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
30665 # now convert that to a comma-separated list of C strings
30666 eval "set dummy ${SSH_OPTIONS}"; shift
30668 for i in "${@}"; do
30669 quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
30670 SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
30672 { $as_echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
30673 $as_echo "$SSH_OPTIONS" >&6; }
30675 # finally, make the various outputs for all of this
30677 cat >>confdefs.h <<\_ACEOF
30678 #define SSH_SECURITY 1
30682 cat >>confdefs.h <<_ACEOF
30687 cat >>confdefs.h <<_ACEOF
30688 #define SSH_OPTIONS $SSH_OPTIONS
30692 if test x"$SSH_SECURITY" = x"yes"; then
30693 WANT_SSH_SECURITY_TRUE=
30694 WANT_SSH_SECURITY_FALSE='#'
30696 WANT_SSH_SECURITY_TRUE='#'
30697 WANT_SSH_SECURITY_FALSE=
30702 # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
30705 # Specify --with-krb4-security if Kerberos software is in somewhere
30706 # other than the listed KRB4_SPOTS. We only compile kerberos support in
30707 # if the right files are there.
30709 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
30713 # Check whether --with-krb4-security was given.
30714 if test "${with_krb4_security+set}" = set; then
30715 withval=$with_krb4_security;
30718 y | ye | yes) KRB4_SECURITY="yes" ;;
30719 *) KRB4_SPOTS="$KRB4_SECURITY"
30720 KRB4_SECURITY="yes"
30727 # check the remaining, subsidiary options
30729 { $as_echo "$as_me:$LINENO: checking host principal" >&5
30730 $as_echo_n "checking host principal... " >&6; }
30732 # Check whether --with-server-principal was given.
30733 if test "${with_server_principal+set}" = set; then
30734 withval=$with_server_principal;
30736 "" | y | ye | yes | n | no)
30737 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
30738 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
30739 { (exit 1); exit 1; }; }
30741 *) SERVER_HOST_PRINCIPAL="$withval" ;;
30745 : ${SERVER_HOST_PRINCIPAL="amanda"}
30749 { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_PRINCIPAL" >&5
30750 $as_echo "$SERVER_HOST_PRINCIPAL" >&6; }
30752 { $as_echo "$as_me:$LINENO: checking server host instance" >&5
30753 $as_echo_n "checking server host instance... " >&6; }
30755 # Check whether --with-server-instance was given.
30756 if test "${with_server_instance+set}" = set; then
30757 withval=$with_server_instance;
30759 "" | y | ye | yes | n | no)
30760 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
30761 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
30762 { (exit 1); exit 1; }; }
30764 *) SERVER_HOST_INSTANCE="$withval" ;;
30768 : ${SERVER_HOST_INSTANCE="amanda"}
30772 { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_INSTANCE" >&5
30773 $as_echo "$SERVER_HOST_INSTANCE" >&6; }
30775 { $as_echo "$as_me:$LINENO: checking server host key file" >&5
30776 $as_echo_n "checking server host key file... " >&6; }
30778 # Check whether --with-server-keyfile was given.
30779 if test "${with_server_keyfile+set}" = set; then
30780 withval=$with_server_keyfile;
30782 "" | y | ye | yes | n | no)
30783 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
30784 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
30785 { (exit 1); exit 1; }; }
30787 *) SERVER_HOST_KEY_FILE="$withval" ;;
30791 : ${SERVER_HOST_KEY_FILE="/.amanda"}
30795 { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_KEY_FILE" >&5
30796 $as_echo "$SERVER_HOST_KEY_FILE" >&6; }
30798 { $as_echo "$as_me:$LINENO: checking client host principle" >&5
30799 $as_echo_n "checking client host principle... " >&6; }
30801 # Check whether --with-client-principal was given.
30802 if test "${with_client_principal+set}" = set; then
30803 withval=$with_client_principal;
30805 "" | y | ye | yes | n | no)
30806 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
30807 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
30808 { (exit 1); exit 1; }; }
30810 *) CLIENT_HOST_PRINCIPAL="$withval" ;;
30814 : ${CLIENT_HOST_PRINCIPAL="rcmd"}
30818 { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_PRINCIPAL" >&5
30819 $as_echo "$CLIENT_HOST_PRINCIPAL" >&6; }
30821 { $as_echo "$as_me:$LINENO: checking client host instance" >&5
30822 $as_echo_n "checking client host instance... " >&6; }
30824 # Check whether --with-client-instance was given.
30825 if test "${with_client_instance+set}" = set; then
30826 withval=$with_client_instance;
30828 "" | y | ye | yes | n | no)
30829 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
30830 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
30831 { (exit 1); exit 1; }; }
30833 *) CLIENT_HOST_INSTANCE="$withval" ;;
30837 : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
30841 { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_INSTANCE" >&5
30842 $as_echo "$CLIENT_HOST_INSTANCE" >&6; }
30844 { $as_echo "$as_me:$LINENO: checking client host key file" >&5
30845 $as_echo_n "checking client host key file... " >&6; }
30847 # Check whether --with-client-keyfile was given.
30848 if test "${with_client_keyfile+set}" = set; then
30849 withval=$with_client_keyfile;
30851 "" | y | ye | yes | n | no)
30852 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
30853 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
30854 { (exit 1); exit 1; }; }
30856 *) CLIENT_HOST_KEY_FILE="$withval" ;;
30860 : ${CLIENT_HOST_KEY_FILE=KEYFILE}
30864 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
30865 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
30867 CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
30869 { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_KEY_FILE" >&5
30870 $as_echo "$CLIENT_HOST_KEY_FILE" >&6; }
30872 { $as_echo "$as_me:$LINENO: checking ticket lifetime" >&5
30873 $as_echo_n "checking ticket lifetime... " >&6; }
30875 # Check whether --with-ticket-lifetime was given.
30876 if test "${with_ticket_lifetime+set}" = set; then
30877 withval=$with_ticket_lifetime;
30879 "" | y | ye | yes | n | no)
30880 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
30881 $as_echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
30882 { (exit 1); exit 1; }; }
30884 *) TICKET_LIFETIME="$withval" ;;
30888 : ${TICKET_LIFETIME=128}
30892 { $as_echo "$as_me:$LINENO: result: $TICKET_LIFETIME" >&5
30893 $as_echo "$TICKET_LIFETIME" >&6; }
30896 if test "x${KRB4_SECURITY}" = "xyes"; then
30897 { $as_echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
30898 $as_echo_n "checking for Kerberos and Amanda kerberos4 bits... " >&6; }
30900 for dir in $KRB4_SPOTS; do
30901 if test \( -f ${dir}/lib/libkrb.a -o -f ${dir}/lib/libkrb.so \) -a \( -f ${dir}/lib/libdes.a -o -f ${dir}/lib/libdes.so \) ; then
30903 # This is the original Kerberos 4.
30905 { $as_echo "$as_me:$LINENO: result: found in $dir" >&5
30906 $as_echo "found in $dir" >&6; }
30910 # This handles BSD/OS.
30912 if test -d $dir/include/kerberosIV ; then
30913 CPPFLAGS="$CPPFLAGS -I$dir/include/kerberosIV"
30916 CPPFLAGS="$CPPFLAGS -I$dir/include"
30919 LDFLAGS="$LDFLAGS -L$dir/lib"
30921 LIBS="-lkrb -ldes $LIBS"
30923 if test -f ${dir}/lib/libcom_err.a; then
30924 LIBS="-lcom_err $LIBS"
30928 elif test \( -f ${dir}/lib/libkrb4.a -o -f ${dir}/lib/libkrb4.so \) &&
30929 test \( -f ${dir}/lib/libcrypto.a -o -f ${dir}/lib/libcrypto.so \) &&
30930 test \( -f ${dir}/lib/libdes425.a -o -f ${dir}/lib/libdes425.so \) ; then
30932 # This is Kerberos 5 with Kerberos 4 back-support.
30934 { $as_echo "$as_me:$LINENO: result: found in $dir" >&5
30935 $as_echo "found in $dir" >&6; }
30937 CPPFLAGS="$CPPFLAGS -I$dir/include -I$dir/include/kerberosIV"
30939 LDFLAGS="$LDFLAGS -L$dir/lib"
30941 if test \( -f ${dir}/lib/libkrb5.a -o -f ${dir}/lib/libkrb5.so \) &&
30942 test \( -f ${dir}/lib/libcom_err.a -o -f ${dir}/lib/libcom_err.so \) ; then
30943 LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err $LIBS"
30946 LIBS="-lkrb4 -lcrypto -ldes425 $LIBS"
30953 if test "x$found" = "xno" ; then
30954 { $as_echo "$as_me:$LINENO: result: no libraries found" >&5
30955 $as_echo "no libraries found" >&6; }
30957 { $as_echo "$as_me:$LINENO: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&5
30958 $as_echo "$as_me: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&2;}
30961 cat <<AAW_EOF >>config.warnings
30962 No Kerberos IV libraries were found on your system; disabling krb4-security
30969 cat >>confdefs.h <<\_ACEOF
30970 #define KRB4_SECURITY 1
30974 cat >>confdefs.h <<_ACEOF
30975 #define SERVER_HOST_PRINCIPAL "$SERVER_HOST_PRINCIPAL"
30979 cat >>confdefs.h <<_ACEOF
30980 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
30984 cat >>confdefs.h <<_ACEOF
30985 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
30989 cat >>confdefs.h <<_ACEOF
30990 #define CLIENT_HOST_PRINCIPAL "$CLIENT_HOST_PRINCIPAL"
30994 cat >>confdefs.h <<_ACEOF
30995 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
30999 cat >>confdefs.h <<_ACEOF
31000 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
31004 cat >>confdefs.h <<_ACEOF
31005 #define TICKET_LIFETIME $TICKET_LIFETIME
31010 if test x"$KRB4_SECURITY" = x"yes"; then
31011 WANT_KRB4_SECURITY_TRUE=
31012 WANT_KRB4_SECURITY_FALSE='#'
31014 WANT_KRB4_SECURITY_TRUE='#'
31015 WANT_KRB4_SECURITY_FALSE=
31030 # Specify --with-krb5-security if Kerberos software is in somewhere
31031 # other than the listed KRB5_SPOTS. We only compile kerberos support in
31032 # if the right files are there.
31035 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
31038 # Check whether --with-krb5-security was given.
31039 if test "${with_krb5_security+set}" = set; then
31040 withval=$with_krb5_security;
31042 n | no) KRB5_SECURITY=no ;;
31043 y | ye | yes) KRB5_SECURITY=yes ;;
31044 *) KRB5_SPOTS="$KRB5_SECURITY"
31053 if test "x$KRB5_SECURITY" = "xyes"; then
31054 # if found, force the static versions of these libs (.a) by linking directly
31055 # with the .a files. I don't know how to get -R dependancies checked
31056 # in autoconf at this time. -kashmir
31057 { $as_echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
31058 $as_echo_n "checking for Kerberos V libraries... " >&6; }
31060 for dir in $KRB5_SPOTS; do
31061 for lib in lib lib64; do
31062 k5libdir=${dir}/${lib}
31063 if test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libgssapi_krb5.so -o -f ${k5libdir}/libgssapi_krb5.a \) -a \( -f ${k5libdir}/libcom_err.a -o -f ${k5libdir}/libcom_err.so \); then
31064 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
31065 K5CRYPTO=-lk5crypto
31066 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
31071 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
31072 K5SUPPORT=-lkrb5support
31076 KRB5_DIR_FOUND=$dir
31077 KRB5_LIBDIR_FOUND=$k5libdir
31078 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
31081 elif test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libasn1.a -o -f ${k5libdir}/libasn1.so \) -a \( -f ${k5libdir}/libgssapi.a -o -f ${k5libdir}/libgssapi.so \); then
31082 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
31084 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
31091 if test "$KRB5_DIR_FOUND"; then
31092 { $as_echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
31093 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
31095 # some OS's, such as NetBSD, stick krb5 includes out of the way...
31096 # should probably just use autoconf to look for various include
31097 # options and set them, but don't quite want to do that until I've
31098 # dug into it a bit more.
31100 if test -d "$KRB5_DIR_FOUND/krb5" ; then
31101 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
31104 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
31108 { $as_echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
31109 $as_echo_n "checking for main in -lkrb5support... " >&6; }
31110 if test "${ac_cv_lib_krb5support_main+set}" = set; then
31111 $as_echo_n "(cached) " >&6
31113 ac_check_lib_save_LIBS=$LIBS
31114 LIBS="-lkrb5support $LIBS"
31115 cat >conftest.$ac_ext <<_ACEOF
31118 cat confdefs.h >>conftest.$ac_ext
31119 cat >>conftest.$ac_ext <<_ACEOF
31120 /* end confdefs.h. */
31131 rm -f conftest.$ac_objext conftest$ac_exeext
31132 if { (ac_try="$ac_link"
31133 case "(($ac_try" in
31134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135 *) ac_try_echo=$ac_try;;
31137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31138 $as_echo "$ac_try_echo") >&5
31139 (eval "$ac_link") 2>conftest.er1
31141 grep -v '^ *+' conftest.er1 >conftest.err
31143 cat conftest.err >&5
31144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); } && {
31146 test -z "$ac_c_werror_flag" ||
31147 test ! -s conftest.err
31148 } && test -s conftest$ac_exeext && {
31149 test "$cross_compiling" = yes ||
31150 $as_test_x conftest$ac_exeext
31152 ac_cv_lib_krb5support_main=yes
31154 $as_echo "$as_me: failed program was:" >&5
31155 sed 's/^/| /' conftest.$ac_ext >&5
31157 ac_cv_lib_krb5support_main=no
31160 rm -rf conftest.dSYM
31161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31162 conftest$ac_exeext conftest.$ac_ext
31163 LIBS=$ac_check_lib_save_LIBS
31165 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
31166 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
31167 if test "x$ac_cv_lib_krb5support_main" = x""yes; then
31168 cat >>confdefs.h <<_ACEOF
31169 #define HAVE_LIBKRB5SUPPORT 1
31172 LIBS="-lkrb5support $LIBS"
31176 LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
31180 cat >>confdefs.h <<\_ACEOF
31181 #define KRB5_SECURITY 1
31185 { $as_echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
31186 $as_echo "no krb5 system libraries found" >&6; }
31187 { { $as_echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
31188 $as_echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
31189 { (exit 1); exit 1; }; }
31194 if test x"$KRB5_SECURITY" = x"yes"; then
31195 WANT_KRB5_SECURITY_TRUE=
31196 WANT_KRB5_SECURITY_FALSE='#'
31198 WANT_KRB5_SECURITY_TRUE='#'
31199 WANT_KRB5_SECURITY_FALSE=
31211 for ac_prog in xfsdump
31213 # Extract the first word of "$ac_prog", so it can be a program name with args.
31214 set dummy $ac_prog; ac_word=$2
31215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31216 $as_echo_n "checking for $ac_word... " >&6; }
31217 if test "${ac_cv_path_XFSDUMP+set}" = set; then
31218 $as_echo_n "(cached) " >&6
31222 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
31225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31226 for as_dir in $SYSLOCPATH
31229 test -z "$as_dir" && as_dir=.
31230 for ac_exec_ext in '' $ac_executable_extensions; do
31231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31232 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
31233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31243 XFSDUMP=$ac_cv_path_XFSDUMP
31244 if test -n "$XFSDUMP"; then
31245 { $as_echo "$as_me:$LINENO: result: $XFSDUMP" >&5
31246 $as_echo "$XFSDUMP" >&6; }
31248 { $as_echo "$as_me:$LINENO: result: no" >&5
31249 $as_echo "no" >&6; }
31253 test -n "$XFSDUMP" && break
31256 for ac_prog in xfsrestore
31258 # Extract the first word of "$ac_prog", so it can be a program name with args.
31259 set dummy $ac_prog; ac_word=$2
31260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31261 $as_echo_n "checking for $ac_word... " >&6; }
31262 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
31263 $as_echo_n "(cached) " >&6
31265 case $XFSRESTORE in
31267 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
31270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31271 for as_dir in $SYSLOCPATH
31274 test -z "$as_dir" && as_dir=.
31275 for ac_exec_ext in '' $ac_executable_extensions; do
31276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31277 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
31278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31288 XFSRESTORE=$ac_cv_path_XFSRESTORE
31289 if test -n "$XFSRESTORE"; then
31290 { $as_echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
31291 $as_echo "$XFSRESTORE" >&6; }
31293 { $as_echo "$as_me:$LINENO: result: no" >&5
31294 $as_echo "no" >&6; }
31298 test -n "$XFSRESTORE" && break
31301 if test "$XFSDUMP" -a "$XFSRESTORE"; then
31303 cat >>confdefs.h <<_ACEOF
31304 #define XFSDUMP "$XFSDUMP"
31308 cat >>confdefs.h <<_ACEOF
31309 #define XFSRESTORE "$XFSRESTORE"
31313 { $as_echo "$as_me:$LINENO: WARNING: xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h" >&5
31314 $as_echo "$as_me: WARNING: xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h" >&2;}
31317 cat <<AAW_EOF >>config.warnings
31318 xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h
31327 # Extract the first word of "vxdump", so it can be a program name with args.
31328 set dummy vxdump; ac_word=$2
31329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31330 $as_echo_n "checking for $ac_word... " >&6; }
31331 if test "${ac_cv_path_VXDUMP+set}" = set; then
31332 $as_echo_n "(cached) " >&6
31336 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
31339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31340 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
31341 for as_dir in $as_dummy
31344 test -z "$as_dir" && as_dir=.
31345 for ac_exec_ext in '' $ac_executable_extensions; do
31346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31347 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
31348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31358 VXDUMP=$ac_cv_path_VXDUMP
31359 if test -n "$VXDUMP"; then
31360 { $as_echo "$as_me:$LINENO: result: $VXDUMP" >&5
31361 $as_echo "$VXDUMP" >&6; }
31363 { $as_echo "$as_me:$LINENO: result: no" >&5
31364 $as_echo "no" >&6; }
31368 # Extract the first word of "vxrestore", so it can be a program name with args.
31369 set dummy vxrestore; ac_word=$2
31370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31371 $as_echo_n "checking for $ac_word... " >&6; }
31372 if test "${ac_cv_path_VXRESTORE+set}" = set; then
31373 $as_echo_n "(cached) " >&6
31377 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
31380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31381 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
31382 for as_dir in $as_dummy
31385 test -z "$as_dir" && as_dir=.
31386 for ac_exec_ext in '' $ac_executable_extensions; do
31387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31388 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
31389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31399 VXRESTORE=$ac_cv_path_VXRESTORE
31400 if test -n "$VXRESTORE"; then
31401 { $as_echo "$as_me:$LINENO: result: $VXRESTORE" >&5
31402 $as_echo "$VXRESTORE" >&6; }
31404 { $as_echo "$as_me:$LINENO: result: no" >&5
31405 $as_echo "no" >&6; }
31409 if test "$VXDUMP" -a "$VXRESTORE"; then
31411 cat >>confdefs.h <<_ACEOF
31412 #define VXDUMP "$VXDUMP"
31416 cat >>confdefs.h <<_ACEOF
31417 #define VXRESTORE "$VXRESTORE"
31425 # Extract the first word of "vdump", so it can be a program name with args.
31426 set dummy vdump; ac_word=$2
31427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31428 $as_echo_n "checking for $ac_word... " >&6; }
31429 if test "${ac_cv_path_VDUMP+set}" = set; then
31430 $as_echo_n "(cached) " >&6
31434 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
31437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31438 for as_dir in $SYSLOCPATH
31441 test -z "$as_dir" && as_dir=.
31442 for ac_exec_ext in '' $ac_executable_extensions; do
31443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31444 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
31445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31455 VDUMP=$ac_cv_path_VDUMP
31456 if test -n "$VDUMP"; then
31457 { $as_echo "$as_me:$LINENO: result: $VDUMP" >&5
31458 $as_echo "$VDUMP" >&6; }
31460 { $as_echo "$as_me:$LINENO: result: no" >&5
31461 $as_echo "no" >&6; }
31465 # Extract the first word of "vrestore", so it can be a program name with args.
31466 set dummy vrestore; ac_word=$2
31467 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31468 $as_echo_n "checking for $ac_word... " >&6; }
31469 if test "${ac_cv_path_VRESTORE+set}" = set; then
31470 $as_echo_n "(cached) " >&6
31474 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
31477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31478 for as_dir in $SYSLOCPATH
31481 test -z "$as_dir" && as_dir=.
31482 for ac_exec_ext in '' $ac_executable_extensions; do
31483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31484 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
31485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31495 VRESTORE=$ac_cv_path_VRESTORE
31496 if test -n "$VRESTORE"; then
31497 { $as_echo "$as_me:$LINENO: result: $VRESTORE" >&5
31498 $as_echo "$VRESTORE" >&6; }
31500 { $as_echo "$as_me:$LINENO: result: no" >&5
31501 $as_echo "no" >&6; }
31505 if test "$VDUMP" -a "$VRESTORE"; then
31507 cat >>confdefs.h <<_ACEOF
31508 #define VDUMP "$VDUMP"
31512 cat >>confdefs.h <<_ACEOF
31513 #define VRESTORE "$VRESTORE"
31520 # Extract the first word of "grep", so it can be a program name with args.
31521 set dummy grep; ac_word=$2
31522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31523 $as_echo_n "checking for $ac_word... " >&6; }
31524 if test "${ac_cv_path_GREP+set}" = set; then
31525 $as_echo_n "(cached) " >&6
31529 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
31532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31533 for as_dir in $LOCSYSPATH
31536 test -z "$as_dir" && as_dir=.
31537 for ac_exec_ext in '' $ac_executable_extensions; do
31538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31539 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
31540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31547 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
31551 GREP=$ac_cv_path_GREP
31552 if test -n "$GREP"; then
31553 { $as_echo "$as_me:$LINENO: result: $GREP" >&5
31554 $as_echo "$GREP" >&6; }
31556 { $as_echo "$as_me:$LINENO: result: no" >&5
31557 $as_echo "no" >&6; }
31562 cat >>confdefs.h <<_ACEOF
31563 #define GREP "$GREP"
31571 # Set the order of dump programs to look for. Finding the proper file
31572 # system dumping program is problematic. Some systems, notably HP-UX
31573 # and AIX, have both the backup and dump programs. HP-UX can't use the
31574 # the backup program while AIX systems can't use the dump program. So
31575 # a variable is set up here to specify the order of dump programs to
31576 # search for on the system.
31577 DUMP_PROGRAMS="ufsdump dump backup"
31582 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
31586 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
31589 cat >>confdefs.h <<\_ACEOF
31590 #define AIX_BACKUP 1
31599 if test -n "$DUMP_RETURNS_1"; then
31601 cat >>confdefs.h <<\_ACEOF
31602 #define DUMP_RETURNS_1 1
31607 for ac_prog in $DUMP_PROGRAMS
31609 # Extract the first word of "$ac_prog", so it can be a program name with args.
31610 set dummy $ac_prog; ac_word=$2
31611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31612 $as_echo_n "checking for $ac_word... " >&6; }
31613 if test "${ac_cv_path_DUMP+set}" = set; then
31614 $as_echo_n "(cached) " >&6
31618 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
31621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31622 for as_dir in $SYSLOCPATH
31625 test -z "$as_dir" && as_dir=.
31626 for ac_exec_ext in '' $ac_executable_extensions; do
31627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31628 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
31629 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31639 DUMP=$ac_cv_path_DUMP
31640 if test -n "$DUMP"; then
31641 { $as_echo "$as_me:$LINENO: result: $DUMP" >&5
31642 $as_echo "$DUMP" >&6; }
31644 { $as_echo "$as_me:$LINENO: result: no" >&5
31645 $as_echo "no" >&6; }
31649 test -n "$DUMP" && break
31652 for ac_prog in ufsrestore restore
31654 # Extract the first word of "$ac_prog", so it can be a program name with args.
31655 set dummy $ac_prog; ac_word=$2
31656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31657 $as_echo_n "checking for $ac_word... " >&6; }
31658 if test "${ac_cv_path_RESTORE+set}" = set; then
31659 $as_echo_n "(cached) " >&6
31663 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
31666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31667 for as_dir in $SYSLOCPATH
31670 test -z "$as_dir" && as_dir=.
31671 for ac_exec_ext in '' $ac_executable_extensions; do
31672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31673 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
31674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31684 RESTORE=$ac_cv_path_RESTORE
31685 if test -n "$RESTORE"; then
31686 { $as_echo "$as_me:$LINENO: result: $RESTORE" >&5
31687 $as_echo "$RESTORE" >&6; }
31689 { $as_echo "$as_me:$LINENO: result: no" >&5
31690 $as_echo "no" >&6; }
31694 test -n "$RESTORE" && break
31698 # newer versions of GNU tar include a program named 'backup' which
31699 # does *not* implement the expected 'dump' interface. Detect that here
31700 # and pretend we never saw it.
31701 if test -n "$DUMP"; then
31702 if test "`basename $DUMP`" = "backup"; then
31703 backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
31704 if test $? -eq 0; then
31710 if test "$DUMP" -a "$RESTORE"; then
31712 cat >>confdefs.h <<_ACEOF
31713 #define DUMP "$DUMP"
31717 cat >>confdefs.h <<_ACEOF
31718 #define RESTORE "$RESTORE"
31722 # check for an estimate flag
31723 if test -x $DUMP; then
31724 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
31725 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
31726 if test "${amanda_cv_dump_estimate+set}" = set; then
31727 $as_echo_n "(cached) " >&6
31732 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
31735 | $GREP -v Label >conftest.d-E 2>&1'
31736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737 (eval $ac_try) 2>&5
31739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); }; }
31741 cat conftest.d-E >&5
31742 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
31745 | $GREP -v Label >conftest.d-S 2>&1'
31746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31747 (eval $ac_try) 2>&5
31749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); }; }
31751 cat conftest.d-S >&5
31752 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
31755 | $GREP -v Label >conftest.d 2>&1'
31756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31757 (eval $ac_try) 2>&5
31759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); }; }
31762 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
31763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31764 (eval $ac_try) 2>&5
31766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); }; }; then
31768 amanda_cv_dump_estimate=E
31769 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
31770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31771 (eval $ac_try) 2>&5
31773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); }; }; then
31775 amanda_cv_dump_estimate=S
31777 amanda_cv_dump_estimate=no
31779 rm -f conftest.d conftest.d-E conftest.d-S
31781 *) amanda_cv_dump_estimate=no
31786 { $as_echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
31787 $as_echo "$amanda_cv_dump_estimate" >&6; }
31790 { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
31791 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
31794 cat <<AAW_EOF >>config.warnings
31795 $DUMP is not executable, cannot run -E/-S test
31799 amanda_cv_dump_estimate=no
31801 if test "x$amanda_cv_dump_estimate" != xno; then
31803 cat >>confdefs.h <<_ACEOF
31804 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
31810 # Check whether --with-dump-honor-nodump was given.
31811 if test "${with_dump_honor_nodump+set}" = set; then
31812 withval=$with_dump_honor_nodump;
31813 if test -x $DUMP; then
31814 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
31815 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
31816 if test "${amanda_cv_honor_nodump+set}" = set; then
31817 $as_echo_n "(cached) " >&6
31822 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
31825 | $GREP -v Label >conftest.d-h 2>&1'
31826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31827 (eval $ac_try) 2>&5
31829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); }; }
31831 cat conftest.d-h >&5
31832 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
31835 | $GREP -v Label >conftest.d 2>&1'
31836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31837 (eval $ac_try) 2>&5
31839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); }; }
31842 if { ac_try='diff conftest.d-h conftest.d 1>&2'
31843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31844 (eval $ac_try) 2>&5
31846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); }; }; then
31848 amanda_cv_honor_nodump=yes
31850 amanda_cv_honor_nodump=no
31852 rm -f conftest.d conftest.d-h
31854 *) amanda_cv_honor_nodump=no
31859 { $as_echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
31860 $as_echo "$amanda_cv_honor_nodump" >&6; }
31863 { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
31864 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
31867 cat <<AAW_EOF >>config.warnings
31868 $DUMP is not executable, cannot run -h test
31872 amanda_cv_honor_nodump=no
31874 if test "x$amanda_cv_honor_nodump" = xyes; then
31876 cat >>confdefs.h <<\_ACEOF
31877 #define HAVE_HONOR_NODUMP 1
31894 # Check whether --with-gnutar was given.
31895 if test "${with_gnutar+set}" = set; then
31896 withval=$with_gnutar;
31899 /*) GNUTAR="$withval";;
31902 *) { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
31903 $as_echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
31904 { (exit 1); exit 1; }; };;
31912 if test "x$GNUTAR" = "xno"; then
31915 for gnutar_name in gtar gnutar tar; do
31916 for ac_prog in $gnutar_name
31918 # Extract the first word of "$ac_prog", so it can be a program name with args.
31919 set dummy $ac_prog; ac_word=$2
31920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31921 $as_echo_n "checking for $ac_word... " >&6; }
31922 if test "${ac_cv_path_GNUTAR+set}" = set; then
31923 $as_echo_n "(cached) " >&6
31927 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
31930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31931 for as_dir in $LOCSYSPATH
31934 test -z "$as_dir" && as_dir=.
31935 for ac_exec_ext in '' $ac_executable_extensions; do
31936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31937 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
31938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31948 GNUTAR=$ac_cv_path_GNUTAR
31949 if test -n "$GNUTAR"; then
31950 { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
31951 $as_echo "$GNUTAR" >&6; }
31953 { $as_echo "$as_me:$LINENO: result: no" >&5
31954 $as_echo "no" >&6; }
31958 test -n "$GNUTAR" && break
31961 if test -n "$GNUTAR"; then
31962 case "`\"$GNUTAR\" --version 2>&1`" in
31963 *GNU*tar* | *Free*paxutils* )
31964 # OK, it is GNU tar
31970 { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
31971 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
31974 cat <<AAW_EOF >>config.warnings
31975 $GNUTAR is not GNU tar, so it will not be used.
31979 # reset the cache for GNUTAR so AC_PATH_PROGS will search again
31981 unset ac_cv_path_GNUTAR
31988 if test "x$GNUTAR" != "x"; then
31991 cat >>confdefs.h <<_ACEOF
31992 #define GNUTAR "$GNUTAR"
32003 # Check whether --with-smbclient was given.
32004 if test "${with_smbclient+set}" = set; then
32005 withval=$with_smbclient;
32007 /*) SAMBA_CLIENT="$withval";;
32009 n|no) SAMBA_CLIENT=no ;;
32010 *) { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
32011 $as_echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
32012 { (exit 1); exit 1; }; };;
32020 # Check whether --with-samba-user was given.
32021 if test "${with_samba_user+set}" = set; then
32022 withval=$with_samba_user; { { $as_echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
32023 $as_echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
32024 { (exit 1); exit 1; }; }
32029 if test "x$SAMBA_CLIENT" != "xno"; then
32030 # Extract the first word of "smbclient", so it can be a program name with args.
32031 set dummy smbclient; ac_word=$2
32032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32033 $as_echo_n "checking for $ac_word... " >&6; }
32034 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
32035 $as_echo_n "(cached) " >&6
32037 case $SAMBA_CLIENT in
32039 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
32042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32043 for as_dir in $LOCSYSPATH
32046 test -z "$as_dir" && as_dir=.
32047 for ac_exec_ext in '' $ac_executable_extensions; do
32048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32049 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
32050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32060 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
32061 if test -n "$SAMBA_CLIENT"; then
32062 { $as_echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
32063 $as_echo "$SAMBA_CLIENT" >&6; }
32065 { $as_echo "$as_me:$LINENO: result: no" >&5
32066 $as_echo "no" >&6; }
32071 if test ! -z "$SAMBA_CLIENT"; then
32072 case "`\"$SAMBA_CLIENT\" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
32076 *"Connection to nosuchhost.amanda.org failed"*)
32081 { $as_echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
32082 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
32085 cat <<AAW_EOF >>config.warnings
32086 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
32093 if test -n "$SAMBA_CLIENT"; then
32095 cat >>confdefs.h <<_ACEOF
32096 #define SAMBA_CLIENT "$SAMBA_CLIENT"
32100 cat >>confdefs.h <<_ACEOF
32101 #define SAMBA_VERSION $smbversion
32108 if test -n "$SAMBA_CLIENT"; then
32110 WANT_SAMBA_FALSE='#'
32112 WANT_SAMBA_TRUE='#'
32120 # some systems require rundump unconditionally
32122 *-ultrix*) USE_RUNDUMP=yes ;;
32123 *-dg-*) USE_RUNDUMP=yes ;;
32127 # Check whether --with-rundump was given.
32128 if test "${with_rundump+set}" = set; then
32129 withval=$with_rundump;
32131 n | no) USE_RUNDUMP=no ;;
32132 y | ye | yes) USE_RUNDUMP=yes ;;
32133 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
32134 $as_echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
32135 { (exit 1); exit 1; }; };;
32141 if test x"$USE_RUNDUMP" = x"yes"; then
32144 cat >>confdefs.h <<\_ACEOF
32145 #define USE_RUNDUMP 1
32156 # Look for other programs Amanda will use
32160 # Extract the first word of "grep", so it can be a program name with args.
32161 set dummy grep; ac_word=$2
32162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32163 $as_echo_n "checking for $ac_word... " >&6; }
32164 if test "${ac_cv_path_GREP+set}" = set; then
32165 $as_echo_n "(cached) " >&6
32169 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
32172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32173 for as_dir in $LOCSYSPATH
32176 test -z "$as_dir" && as_dir=.
32177 for ac_exec_ext in '' $ac_executable_extensions; do
32178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32179 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
32180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32187 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
32191 GREP=$ac_cv_path_GREP
32192 if test -n "$GREP"; then
32193 { $as_echo "$as_me:$LINENO: result: $GREP" >&5
32194 $as_echo "$GREP" >&6; }
32196 { $as_echo "$as_me:$LINENO: result: no" >&5
32197 $as_echo "no" >&6; }
32202 cat >>confdefs.h <<_ACEOF
32203 #define GREP "$GREP"
32207 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
32208 $as_echo_n "checking for egrep... " >&6; }
32209 if test "${ac_cv_path_EGREP+set}" = set; then
32210 $as_echo_n "(cached) " >&6
32212 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
32213 then ac_cv_path_EGREP="$GREP -E"
32215 if test -z "$EGREP"; then
32216 ac_path_EGREP_found=false
32217 # Loop through the user's path and test for each of PROGNAME-LIST
32218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32222 test -z "$as_dir" && as_dir=.
32223 for ac_prog in egrep; do
32224 for ac_exec_ext in '' $ac_executable_extensions; do
32225 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
32226 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
32227 # Check for GNU ac_path_EGREP and select it if it is found.
32228 # Check for GNU $ac_path_EGREP
32229 case `"$ac_path_EGREP" --version 2>&1` in
32231 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
32234 $as_echo_n 0123456789 >"conftest.in"
32237 cat "conftest.in" "conftest.in" >"conftest.tmp"
32238 mv "conftest.tmp" "conftest.in"
32239 cp "conftest.in" "conftest.nl"
32240 $as_echo 'EGREP' >> "conftest.nl"
32241 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32243 ac_count=`expr $ac_count + 1`
32244 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
32245 # Best one so far, save it but keep looking for a better one
32246 ac_cv_path_EGREP="$ac_path_EGREP"
32247 ac_path_EGREP_max=$ac_count
32249 # 10*(2^10) chars as input seems more than enough
32250 test $ac_count -gt 10 && break
32252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32255 $ac_path_EGREP_found && break 3
32260 if test -z "$ac_cv_path_EGREP"; then
32261 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
32262 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
32263 { (exit 1); exit 1; }; }
32266 ac_cv_path_EGREP=$EGREP
32271 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
32272 $as_echo "$ac_cv_path_EGREP" >&6; }
32273 EGREP="$ac_cv_path_EGREP"
32280 # Extract the first word of "lint", so it can be a program name with args.
32281 set dummy lint; ac_word=$2
32282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32283 $as_echo_n "checking for $ac_word... " >&6; }
32284 if test "${ac_cv_path_AMLINT+set}" = set; then
32285 $as_echo_n "(cached) " >&6
32289 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
32292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32293 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
32294 for as_dir in $as_dummy
32297 test -z "$as_dir" && as_dir=.
32298 for ac_exec_ext in '' $ac_executable_extensions; do
32299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32300 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
32301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32311 AMLINT=$ac_cv_path_AMLINT
32312 if test -n "$AMLINT"; then
32313 { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
32314 $as_echo "$AMLINT" >&6; }
32316 { $as_echo "$as_me:$LINENO: result: no" >&5
32317 $as_echo "no" >&6; }
32321 if test ! -z "$AMLINT"; then
32322 $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
32323 if test $? -eq 0; then
32324 AMLINTFLAGS="-n -s -u -m -x"
32325 AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
32326 AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
32327 AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
32328 AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
32329 AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
32330 AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
32331 AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
32332 AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
32333 AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
32334 AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
32335 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
32336 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
32337 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
32338 AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
32339 AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
32340 AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
32341 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
32342 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
32343 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
32344 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
32345 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
32346 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
32347 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
32348 AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
32349 AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
32350 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
32351 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
32352 AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
32353 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
32354 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
32355 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
32356 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
32357 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
32358 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
32359 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
32360 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
32361 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
32362 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
32363 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
32364 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
32365 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
32366 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
32367 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
32368 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
32369 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
32370 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
32371 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
32372 AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
32373 AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
32374 AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
32379 # Extract the first word of "splint", so it can be a program name with args.
32380 set dummy splint; ac_word=$2
32381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32382 $as_echo_n "checking for $ac_word... " >&6; }
32383 if test "${ac_cv_path_AMLINT+set}" = set; then
32384 $as_echo_n "(cached) " >&6
32388 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
32391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32392 for as_dir in $SYSLOCPATH
32395 test -z "$as_dir" && as_dir=.
32396 for ac_exec_ext in '' $ac_executable_extensions; do
32397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32398 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
32399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32409 AMLINT=$ac_cv_path_AMLINT
32410 if test -n "$AMLINT"; then
32411 { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
32412 $as_echo "$AMLINT" >&6; }
32414 { $as_echo "$as_me:$LINENO: result: no" >&5
32415 $as_echo "no" >&6; }
32419 if test ! -z "$AMLINT"; then
32421 AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
32423 AMLINT='echo "Error: LINT is not installed" ; false'
32429 for ac_prog in flex lex
32431 # Extract the first word of "$ac_prog", so it can be a program name with args.
32432 set dummy $ac_prog; ac_word=$2
32433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32434 $as_echo_n "checking for $ac_word... " >&6; }
32435 if test "${ac_cv_prog_LEX+set}" = set; then
32436 $as_echo_n "(cached) " >&6
32438 if test -n "$LEX"; then
32439 ac_cv_prog_LEX="$LEX" # Let the user override the test.
32441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32442 for as_dir in $PATH
32445 test -z "$as_dir" && as_dir=.
32446 for ac_exec_ext in '' $ac_executable_extensions; do
32447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32448 ac_cv_prog_LEX="$ac_prog"
32449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32458 LEX=$ac_cv_prog_LEX
32459 if test -n "$LEX"; then
32460 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
32461 $as_echo "$LEX" >&6; }
32463 { $as_echo "$as_me:$LINENO: result: no" >&5
32464 $as_echo "no" >&6; }
32468 test -n "$LEX" && break
32470 test -n "$LEX" || LEX=":"
32472 if test "x$LEX" != "x:"; then
32473 cat >conftest.l <<_ACEOF
32479 e { yyless (input () != 0); }
32480 f { unput (yytext[0]); }
32481 . { BEGIN INITIAL; }
32483 #ifdef YYTEXT_POINTER
32484 extern char *yytext;
32489 return ! yylex () + ! yywrap ();
32492 { (ac_try="$LEX conftest.l"
32493 case "(($ac_try" in
32494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32495 *) ac_try_echo=$ac_try;;
32497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32498 $as_echo "$ac_try_echo") >&5
32499 (eval "$LEX conftest.l") 2>&5
32501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }
32503 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
32504 $as_echo_n "checking lex output file root... " >&6; }
32505 if test "${ac_cv_prog_lex_root+set}" = set; then
32506 $as_echo_n "(cached) " >&6
32509 if test -f lex.yy.c; then
32510 ac_cv_prog_lex_root=lex.yy
32511 elif test -f lexyy.c; then
32512 ac_cv_prog_lex_root=lexyy
32514 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
32515 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
32516 { (exit 1); exit 1; }; }
32519 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
32520 $as_echo "$ac_cv_prog_lex_root" >&6; }
32521 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
32523 if test -z "${LEXLIB+set}"; then
32524 { $as_echo "$as_me:$LINENO: checking lex library" >&5
32525 $as_echo_n "checking lex library... " >&6; }
32526 if test "${ac_cv_lib_lex+set}" = set; then
32527 $as_echo_n "(cached) " >&6
32531 ac_cv_lib_lex='none needed'
32532 for ac_lib in '' -lfl -ll; do
32533 LIBS="$ac_lib $ac_save_LIBS"
32534 cat >conftest.$ac_ext <<_ACEOF
32535 `cat $LEX_OUTPUT_ROOT.c`
32537 rm -f conftest.$ac_objext conftest$ac_exeext
32538 if { (ac_try="$ac_link"
32539 case "(($ac_try" in
32540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32541 *) ac_try_echo=$ac_try;;
32543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32544 $as_echo "$ac_try_echo") >&5
32545 (eval "$ac_link") 2>conftest.er1
32547 grep -v '^ *+' conftest.er1 >conftest.err
32549 cat conftest.err >&5
32550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); } && {
32552 test -z "$ac_c_werror_flag" ||
32553 test ! -s conftest.err
32554 } && test -s conftest$ac_exeext && {
32555 test "$cross_compiling" = yes ||
32556 $as_test_x conftest$ac_exeext
32558 ac_cv_lib_lex=$ac_lib
32560 $as_echo "$as_me: failed program was:" >&5
32561 sed 's/^/| /' conftest.$ac_ext >&5
32566 rm -rf conftest.dSYM
32567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32568 conftest$ac_exeext conftest.$ac_ext
32569 test "$ac_cv_lib_lex" != 'none needed' && break
32574 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
32575 $as_echo "$ac_cv_lib_lex" >&6; }
32576 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
32580 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
32581 $as_echo_n "checking whether yytext is a pointer... " >&6; }
32582 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
32583 $as_echo_n "(cached) " >&6
32585 # POSIX says lex can declare yytext either as a pointer or an array; the
32586 # default is implementation-dependent. Figure out which it is, since
32587 # not all implementations provide the %pointer and %array declarations.
32588 ac_cv_prog_lex_yytext_pointer=no
32590 LIBS="$LEXLIB $ac_save_LIBS"
32591 cat >conftest.$ac_ext <<_ACEOF
32592 #define YYTEXT_POINTER 1
32593 `cat $LEX_OUTPUT_ROOT.c`
32595 rm -f conftest.$ac_objext conftest$ac_exeext
32596 if { (ac_try="$ac_link"
32597 case "(($ac_try" in
32598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599 *) ac_try_echo=$ac_try;;
32601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32602 $as_echo "$ac_try_echo") >&5
32603 (eval "$ac_link") 2>conftest.er1
32605 grep -v '^ *+' conftest.er1 >conftest.err
32607 cat conftest.err >&5
32608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); } && {
32610 test -z "$ac_c_werror_flag" ||
32611 test ! -s conftest.err
32612 } && test -s conftest$ac_exeext && {
32613 test "$cross_compiling" = yes ||
32614 $as_test_x conftest$ac_exeext
32616 ac_cv_prog_lex_yytext_pointer=yes
32618 $as_echo "$as_me: failed program was:" >&5
32619 sed 's/^/| /' conftest.$ac_ext >&5
32624 rm -rf conftest.dSYM
32625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32626 conftest$ac_exeext conftest.$ac_ext
32630 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
32631 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
32632 if test $ac_cv_prog_lex_yytext_pointer = yes; then
32634 cat >>confdefs.h <<\_ACEOF
32635 #define YYTEXT_POINTER 1
32639 rm -f conftest.l $LEX_OUTPUT_ROOT.c
32642 if test "$LEX" = :; then
32643 LEX=${am_missing_run}flex
32647 # Extract the first word of "ar", so it can be a program name with args.
32648 set dummy ar; ac_word=$2
32649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32650 $as_echo_n "checking for $ac_word... " >&6; }
32651 if test "${ac_cv_path_AR+set}" = set; then
32652 $as_echo_n "(cached) " >&6
32656 ac_cv_path_AR="$AR" # Let the user override the test with a path.
32659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32660 for as_dir in $LOCSYSPATH
32663 test -z "$as_dir" && as_dir=.
32664 for ac_exec_ext in '' $ac_executable_extensions; do
32665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32666 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
32667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32678 if test -n "$AR"; then
32679 { $as_echo "$as_me:$LINENO: result: $AR" >&5
32680 $as_echo "$AR" >&6; }
32682 { $as_echo "$as_me:$LINENO: result: no" >&5
32683 $as_echo "no" >&6; }
32690 # Extract the first word of "gettext", so it can be a program name with args.
32691 set dummy gettext; ac_word=$2
32692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32693 $as_echo_n "checking for $ac_word... " >&6; }
32694 if test "${ac_cv_path_GETTEXT+set}" = set; then
32695 $as_echo_n "(cached) " >&6
32699 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
32702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32703 for as_dir in $LOCSYSPATH
32706 test -z "$as_dir" && as_dir=.
32707 for ac_exec_ext in '' $ac_executable_extensions; do
32708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32709 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
32710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32720 GETTEXT=$ac_cv_path_GETTEXT
32721 if test -n "$GETTEXT"; then
32722 { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
32723 $as_echo "$GETTEXT" >&6; }
32725 { $as_echo "$as_me:$LINENO: result: no" >&5
32726 $as_echo "no" >&6; }
32731 for ac_prog in gawk mawk nawk awk
32733 # Extract the first word of "$ac_prog", so it can be a program name with args.
32734 set dummy $ac_prog; ac_word=$2
32735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32736 $as_echo_n "checking for $ac_word... " >&6; }
32737 if test "${ac_cv_prog_AWK+set}" = set; then
32738 $as_echo_n "(cached) " >&6
32740 if test -n "$AWK"; then
32741 ac_cv_prog_AWK="$AWK" # Let the user override the test.
32743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32744 for as_dir in $PATH
32747 test -z "$as_dir" && as_dir=.
32748 for ac_exec_ext in '' $ac_executable_extensions; do
32749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32750 ac_cv_prog_AWK="$ac_prog"
32751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32760 AWK=$ac_cv_prog_AWK
32761 if test -n "$AWK"; then
32762 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
32763 $as_echo "$AWK" >&6; }
32765 { $as_echo "$as_me:$LINENO: result: no" >&5
32766 $as_echo "no" >&6; }
32770 test -n "$AWK" && break
32773 for ac_prog in 'bison -y' byacc
32775 # Extract the first word of "$ac_prog", so it can be a program name with args.
32776 set dummy $ac_prog; ac_word=$2
32777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32778 $as_echo_n "checking for $ac_word... " >&6; }
32779 if test "${ac_cv_prog_YACC+set}" = set; then
32780 $as_echo_n "(cached) " >&6
32782 if test -n "$YACC"; then
32783 ac_cv_prog_YACC="$YACC" # Let the user override the test.
32785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32786 for as_dir in $PATH
32789 test -z "$as_dir" && as_dir=.
32790 for ac_exec_ext in '' $ac_executable_extensions; do
32791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32792 ac_cv_prog_YACC="$ac_prog"
32793 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32802 YACC=$ac_cv_prog_YACC
32803 if test -n "$YACC"; then
32804 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
32805 $as_echo "$YACC" >&6; }
32807 { $as_echo "$as_me:$LINENO: result: no" >&5
32808 $as_echo "no" >&6; }
32812 test -n "$YACC" && break
32814 test -n "$YACC" || YACC="yacc"
32816 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
32817 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
32818 if test -z "$MKDIR_P"; then
32819 if test "${ac_cv_path_mkdir+set}" = set; then
32820 $as_echo_n "(cached) " >&6
32822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32823 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
32826 test -z "$as_dir" && as_dir=.
32827 for ac_prog in mkdir gmkdir; do
32828 for ac_exec_ext in '' $ac_executable_extensions; do
32829 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
32830 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
32831 'mkdir (GNU coreutils) '* | \
32832 'mkdir (coreutils) '* | \
32833 'mkdir (fileutils) '4.1*)
32834 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
32844 if test "${ac_cv_path_mkdir+set}" = set; then
32845 MKDIR_P="$ac_cv_path_mkdir -p"
32847 # As a last resort, use the slow shell script. Don't cache a
32848 # value for MKDIR_P within a source directory, because that will
32849 # break other packages using the cache if that directory is
32850 # removed, or if the value is a relative name.
32851 test -d ./--version && rmdir ./--version
32852 MKDIR_P="$ac_install_sh -d"
32855 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
32856 $as_echo "$MKDIR_P" >&6; }
32860 # Extract the first word of "dd", so it can be a program name with args.
32861 set dummy dd; ac_word=$2
32862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32863 $as_echo_n "checking for $ac_word... " >&6; }
32864 if test "${ac_cv_path_DD+set}" = set; then
32865 $as_echo_n "(cached) " >&6
32869 ac_cv_path_DD="$DD" # Let the user override the test with a path.
32872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32873 for as_dir in $LOCSYSPATH
32876 test -z "$as_dir" && as_dir=.
32877 for ac_exec_ext in '' $ac_executable_extensions; do
32878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32879 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
32880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32891 if test -n "$DD"; then
32892 { $as_echo "$as_me:$LINENO: result: $DD" >&5
32893 $as_echo "$DD" >&6; }
32895 { $as_echo "$as_me:$LINENO: result: no" >&5
32896 $as_echo "no" >&6; }
32903 # Extract the first word of "bash", so it can be a program name with args.
32904 set dummy bash; ac_word=$2
32905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32906 $as_echo_n "checking for $ac_word... " >&6; }
32907 if test "${ac_cv_path_BASH+set}" = set; then
32908 $as_echo_n "(cached) " >&6
32912 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
32915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32916 for as_dir in $SYSPATH
32919 test -z "$as_dir" && as_dir=.
32920 for ac_exec_ext in '' $ac_executable_extensions; do
32921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32922 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
32923 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32933 BASH=$ac_cv_path_BASH
32934 if test -n "$BASH"; then
32935 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
32936 $as_echo "$BASH" >&6; }
32938 { $as_echo "$as_me:$LINENO: result: no" >&5
32939 $as_echo "no" >&6; }
32948 # Extract the first word of "sort", so it can be a program name with args.
32949 set dummy sort; ac_word=$2
32950 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32951 $as_echo_n "checking for $ac_word... " >&6; }
32952 if test "${ac_cv_path_SORT+set}" = set; then
32953 $as_echo_n "(cached) " >&6
32957 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
32960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32961 for as_dir in $LOCSYSPATH
32964 test -z "$as_dir" && as_dir=.
32965 for ac_exec_ext in '' $ac_executable_extensions; do
32966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32967 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
32968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32975 test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
32979 SORT=$ac_cv_path_SORT
32980 if test -n "$SORT"; then
32981 { $as_echo "$as_me:$LINENO: result: $SORT" >&5
32982 $as_echo "$SORT" >&6; }
32984 { $as_echo "$as_me:$LINENO: result: no" >&5
32985 $as_echo "no" >&6; }
32990 # sort is only needed in the server build
32991 if test x"$SORT" = x"NONE" && $WANT_SERVER; then
32992 { { $as_echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
32993 $as_echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
32994 { (exit 1); exit 1; }; }
32998 cat >>confdefs.h <<_ACEOF
32999 #define SORT_PATH "$SORT"
33005 for ac_prog in Mail mailx mail
33007 # Extract the first word of "$ac_prog", so it can be a program name with args.
33008 set dummy $ac_prog; ac_word=$2
33009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33010 $as_echo_n "checking for $ac_word... " >&6; }
33011 if test "${ac_cv_path_MAILER+set}" = set; then
33012 $as_echo_n "(cached) " >&6
33016 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
33019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33020 for as_dir in $PATH
33023 test -z "$as_dir" && as_dir=.
33024 for ac_exec_ext in '' $ac_executable_extensions; do
33025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33026 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
33027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33037 MAILER=$ac_cv_path_MAILER
33038 if test -n "$MAILER"; then
33039 { $as_echo "$as_me:$LINENO: result: $MAILER" >&5
33040 $as_echo "$MAILER" >&6; }
33042 { $as_echo "$as_me:$LINENO: result: no" >&5
33043 $as_echo "no" >&6; }
33047 test -n "$MAILER" && break
33049 test -n "$MAILER" || MAILER="NONE"
33051 if test x"$MAILER" = x"NONE"; then
33053 { $as_echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
33054 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
33057 cat <<AAW_EOF >>config.warnings
33058 WARNING: Amanda cannot send mail reports without a mailer.
33064 DEFAULT_MAILER="$MAILER"
33067 cat >>confdefs.h <<_ACEOF
33068 #define DEFAULT_MAILER "$DEFAULT_MAILER"
33075 # Extract the first word of "mt", so it can be a program name with args.
33076 set dummy mt; ac_word=$2
33077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33078 $as_echo_n "checking for $ac_word... " >&6; }
33079 if test "${ac_cv_path_MT+set}" = set; then
33080 $as_echo_n "(cached) " >&6
33084 ac_cv_path_MT="$MT" # Let the user override the test with a path.
33087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33088 for as_dir in $LOCSYSPATH
33091 test -z "$as_dir" && as_dir=.
33092 for ac_exec_ext in '' $ac_executable_extensions; do
33093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33094 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
33095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33102 test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
33107 if test -n "$MT"; then
33108 { $as_echo "$as_me:$LINENO: result: $MT" >&5
33109 $as_echo "$MT" >&6; }
33111 { $as_echo "$as_me:$LINENO: result: no" >&5
33112 $as_echo "no" >&6; }
33118 *-hp-*) MT_FILE_FLAG="-t" ;;
33119 *) MT_FILE_FLAG="-f" ;;
33124 cat >>confdefs.h <<_ACEOF
33125 #define MT_FILE_FLAG "$MT_FILE_FLAG"
33132 for ac_prog in lpr lp
33134 # Extract the first word of "$ac_prog", so it can be a program name with args.
33135 set dummy $ac_prog; ac_word=$2
33136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33137 $as_echo_n "checking for $ac_word... " >&6; }
33138 if test "${ac_cv_path_PRINT+set}" = set; then
33139 $as_echo_n "(cached) " >&6
33143 ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
33146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33147 for as_dir in $PATH
33150 test -z "$as_dir" && as_dir=.
33151 for ac_exec_ext in '' $ac_executable_extensions; do
33152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33153 ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
33154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33164 PRINT=$ac_cv_path_PRINT
33165 if test -n "$PRINT"; then
33166 { $as_echo "$as_me:$LINENO: result: $PRINT" >&5
33167 $as_echo "$PRINT" >&6; }
33169 { $as_echo "$as_me:$LINENO: result: no" >&5
33170 $as_echo "no" >&6; }
33174 test -n "$PRINT" && break
33177 if test ! -z "$PRINT"; then
33179 cat >>confdefs.h <<_ACEOF
33180 #define LPRCMD "$PRINT"
33184 { $as_echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
33185 $as_echo_n "checking which flag to use to select a printer... " >&6; }
33186 if test "${amanda_cv_printer_flag+set}" = set; then
33187 $as_echo_n "(cached) " >&6
33190 amanda_cv_printer_flag=$PRINTER_FLAG
33192 lpr|*/lpr) amanda_cv_printer_flag="-P";;
33193 lp|*/lp) amanda_cv_printer_flag="-d";;
33197 { $as_echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
33198 $as_echo "$amanda_cv_printer_flag" >&6; }
33199 if test ! -z "$amanda_cv_printer_flag"; then
33201 cat >>confdefs.h <<_ACEOF
33202 #define LPRFLAG "$amanda_cv_printer_flag"
33207 { $as_echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
33208 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
33211 cat <<AAW_EOF >>config.warnings
33212 WARNING: amanda will always print to the default printer
33221 # Extract the first word of "pcat", so it can be a program name with args.
33222 set dummy pcat; ac_word=$2
33223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33224 $as_echo_n "checking for $ac_word... " >&6; }
33225 if test "${ac_cv_path_PCAT+set}" = set; then
33226 $as_echo_n "(cached) " >&6
33230 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
33233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33234 for as_dir in $LOCSYSPATH
33237 test -z "$as_dir" && as_dir=.
33238 for ac_exec_ext in '' $ac_executable_extensions; do
33239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33240 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
33241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33251 PCAT=$ac_cv_path_PCAT
33252 if test -n "$PCAT"; then
33253 { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
33254 $as_echo "$PCAT" >&6; }
33256 { $as_echo "$as_me:$LINENO: result: no" >&5
33257 $as_echo "no" >&6; }
33264 for ac_prog in perl5 perl
33266 # Extract the first word of "$ac_prog", so it can be a program name with args.
33267 set dummy $ac_prog; ac_word=$2
33268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33269 $as_echo_n "checking for $ac_word... " >&6; }
33270 if test "${ac_cv_path_PERL+set}" = set; then
33271 $as_echo_n "(cached) " >&6
33275 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33279 for as_dir in $LOCSYSPATH
33282 test -z "$as_dir" && as_dir=.
33283 for ac_exec_ext in '' $ac_executable_extensions; do
33284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33285 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33296 PERL=$ac_cv_path_PERL
33297 if test -n "$PERL"; then
33298 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
33299 $as_echo "$PERL" >&6; }
33301 { $as_echo "$as_me:$LINENO: result: no" >&5
33302 $as_echo "no" >&6; }
33306 test -n "$PERL" && break
33310 # Make sure we have perl
33311 if test -z "$PERL"; then
33312 # Extract the first word of "perl", so it can be a program name with args.
33313 set dummy perl; ac_word=$2
33314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33315 $as_echo_n "checking for $ac_word... " >&6; }
33316 if test "${ac_cv_prog_PERL+set}" = set; then
33317 $as_echo_n "(cached) " >&6
33319 if test -n "$PERL"; then
33320 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33323 for as_dir in $PATH
33326 test -z "$as_dir" && as_dir=.
33327 for ac_exec_ext in '' $ac_executable_extensions; do
33328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33329 ac_cv_prog_PERL="perl"
33330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33339 PERL=$ac_cv_prog_PERL
33340 if test -n "$PERL"; then
33341 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
33342 $as_echo "$PERL" >&6; }
33344 { $as_echo "$as_me:$LINENO: result: no" >&5
33345 $as_echo "no" >&6; }
33351 # Check if version of Perl is sufficient
33352 ac_perl_version="5.6.0"
33354 if test "x$PERL" != "x"; then
33355 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
33356 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
33357 # NB: It would be nice to log the error if there is one, but we cannot rely
33358 # on autoconf internals
33359 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
33360 if test $? -ne 0; then
33361 { $as_echo "$as_me:$LINENO: result: no" >&5
33362 $as_echo "no" >&6; };
33364 { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
33365 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
33366 { (exit 1); exit 1; }; }
33369 { $as_echo "$as_me:$LINENO: result: ok" >&5
33370 $as_echo "ok" >&6; };
33374 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
33375 $as_echo "$as_me: WARNING: could not find perl" >&2;}
33381 for ac_prog in swig
33383 # Extract the first word of "$ac_prog", so it can be a program name with args.
33384 set dummy $ac_prog; ac_word=$2
33385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33386 $as_echo_n "checking for $ac_word... " >&6; }
33387 if test "${ac_cv_path_SWIG+set}" = set; then
33388 $as_echo_n "(cached) " >&6
33392 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
33395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33396 for as_dir in $LOCSYSPATH
33399 test -z "$as_dir" && as_dir=.
33400 for ac_exec_ext in '' $ac_executable_extensions; do
33401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33402 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
33403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33413 SWIG=$ac_cv_path_SWIG
33414 if test -n "$SWIG"; then
33415 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
33416 $as_echo "$SWIG" >&6; }
33418 { $as_echo "$as_me:$LINENO: result: no" >&5
33419 $as_echo "no" >&6; }
33423 test -n "$SWIG" && break
33428 # Extract the first word of "swig", so it can be a program name with args.
33429 set dummy swig; ac_word=$2
33430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33431 $as_echo_n "checking for $ac_word... " >&6; }
33432 if test "${ac_cv_path_SWIG+set}" = set; then
33433 $as_echo_n "(cached) " >&6
33437 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
33440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33441 for as_dir in $PATH
33444 test -z "$as_dir" && as_dir=.
33445 for ac_exec_ext in '' $ac_executable_extensions; do
33446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33447 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
33448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33458 SWIG=$ac_cv_path_SWIG
33459 if test -n "$SWIG"; then
33460 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
33461 $as_echo "$SWIG" >&6; }
33463 { $as_echo "$as_me:$LINENO: result: no" >&5
33464 $as_echo "no" >&6; }
33468 if test -z "$SWIG" ; then
33469 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
33470 elif test -n "1.3.28" ; then
33471 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
33472 $as_echo_n "checking for SWIG version... " >&6; }
33473 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
33474 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
33475 $as_echo "$swig_version" >&6; }
33476 if test -n "$swig_version" ; then
33477 # Calculate the required version number components
33479 required_major=`echo $required | sed 's/[^0-9].*//'`
33480 if test -z "$required_major" ; then
33483 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
33484 required_minor=`echo $required | sed 's/[^0-9].*//'`
33485 if test -z "$required_minor" ; then
33488 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
33489 required_patch=`echo $required | sed 's/[^0-9].*//'`
33490 if test -z "$required_patch" ; then
33493 # Calculate the available version number components
33494 available=$swig_version
33495 available_major=`echo $available | sed 's/[^0-9].*//'`
33496 if test -z "$available_major" ; then
33499 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
33500 available_minor=`echo $available | sed 's/[^0-9].*//'`
33501 if test -z "$available_minor" ; then
33504 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
33505 available_patch=`echo $available | sed 's/[^0-9].*//'`
33506 if test -z "$available_patch" ; then
33509 if test $available_major -ne $required_major \
33510 -o $available_minor -ne $required_minor \
33511 -o $available_patch -lt $required_patch ; then
33512 SWIG='echo "Error: SWIG version >= 1.3.28 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
33514 SWIG_LIB=`$SWIG -swiglib`
33517 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
33524 # Extract the first word of "ps", so it can be a program name with args.
33525 set dummy ps; ac_word=$2
33526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33527 $as_echo_n "checking for $ac_word... " >&6; }
33528 if test "${ac_cv_path_PS+set}" = set; then
33529 $as_echo_n "(cached) " >&6
33533 ac_cv_path_PS="$PS" # Let the user override the test with a path.
33536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33537 for as_dir in $PATH
33540 test -z "$as_dir" && as_dir=.
33541 for ac_exec_ext in '' $ac_executable_extensions; do
33542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33543 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
33544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33555 if test -n "$PS"; then
33556 { $as_echo "$as_me:$LINENO: result: $PS" >&5
33557 $as_echo "$PS" >&6; }
33559 { $as_echo "$as_me:$LINENO: result: no" >&5
33560 $as_echo "no" >&6; }
33564 { $as_echo "$as_me:$LINENO: checking ps argument to use" >&5
33565 $as_echo_n "checking ps argument to use... " >&6; }
33568 # ps is *very* non-portable, and across many systems, the same option
33569 # (e.g., -e) can mean different things. So this macro tries to
33570 # special-case most known systems, and makes an effort to detect unknown
33574 PS_ARGUMENT="-eo pid,ppid,comm"
33578 PS_ARGUMENT="-eo pid,ppid,command"
33582 PS_ARGUMENT="-axo pid,ppid,command"
33586 PS_ARGUMENT="-aAco pid,ppid,command"
33590 # Cygwin is special-cased in Amanda::Process
33595 # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
33597 PS_ARGUMENT="-eo pid,ppid,comm"
33602 "-axo pid,ppid,command" \
33603 "-aAco pid,ppid,command" \
33604 "-eo pid,ppid,comm"
33606 ps $try >/dev/null 2>/dev/null
33607 if test $? -eq 0; then
33612 if test -z "$PS_ARGUMENT"; then
33613 { { $as_echo "$as_me:$LINENO: error: Can't find ps argument to use." >&5
33614 $as_echo "$as_me: error: Can't find ps argument to use." >&2;}
33615 { (exit 1); exit 1; }; }
33620 { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT" >&5
33621 $as_echo "$PS_ARGUMENT" >&6; }
33627 # Compiler / system characteristics
33633 if test $ac_cv_c_compiler_gnu = yes; then
33634 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
33635 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
33636 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
33637 $as_echo_n "(cached) " >&6
33639 ac_pattern="Autoconf.*'x'"
33640 cat >conftest.$ac_ext <<_ACEOF
33643 cat confdefs.h >>conftest.$ac_ext
33644 cat >>conftest.$ac_ext <<_ACEOF
33645 /* end confdefs.h. */
33649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33650 $EGREP "$ac_pattern" >/dev/null 2>&1; then
33651 ac_cv_prog_gcc_traditional=yes
33653 ac_cv_prog_gcc_traditional=no
33658 if test $ac_cv_prog_gcc_traditional = no; then
33659 cat >conftest.$ac_ext <<_ACEOF
33662 cat confdefs.h >>conftest.$ac_ext
33663 cat >>conftest.$ac_ext <<_ACEOF
33664 /* end confdefs.h. */
33665 #include <termio.h>
33668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33669 $EGREP "$ac_pattern" >/dev/null 2>&1; then
33670 ac_cv_prog_gcc_traditional=yes
33676 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
33677 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
33678 if test $ac_cv_prog_gcc_traditional = yes; then
33679 CC="$CC -traditional"
33683 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33684 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
33685 if test "${ac_cv_c_const+set}" = set; then
33686 $as_echo_n "(cached) " >&6
33688 cat >conftest.$ac_ext <<_ACEOF
33691 cat confdefs.h >>conftest.$ac_ext
33692 cat >>conftest.$ac_ext <<_ACEOF
33693 /* end confdefs.h. */
33698 /* FIXME: Include the comments suggested by Paul. */
33699 #ifndef __cplusplus
33700 /* Ultrix mips cc rejects this. */
33701 typedef int charset[2];
33703 /* SunOS 4.1.1 cc rejects this. */
33704 char const *const *pcpcc;
33706 /* NEC SVR4.0.2 mips cc rejects this. */
33707 struct point {int x, y;};
33708 static struct point const zero = {0,0};
33709 /* AIX XL C 1.02.0.0 rejects this.
33710 It does not let you subtract one const X* pointer from another in
33711 an arm of an if-expression whose if-part is not a constant
33713 const char *g = "string";
33714 pcpcc = &g + (g ? g-g : 0);
33715 /* HPUX 7.0 cc rejects these. */
33717 ppc = (char**) pcpcc;
33718 pcpcc = (char const *const *) ppc;
33719 { /* SCO 3.2v4 cc rejects this. */
33721 char const *s = 0 ? (char *) 0 : (char const *) 0;
33726 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33727 int x[] = {25, 17};
33728 const int *foo = &x[0];
33731 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33732 typedef const int *iptr;
33736 { /* AIX XL C 1.02.0.0 rejects this saying
33737 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33738 struct s { int j; const int *ap[3]; };
33739 struct s *b; b->j = 5;
33741 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33742 const int foo = 10;
33743 if (!foo) return 0;
33745 return !cs[0] && !zero.x;
33752 rm -f conftest.$ac_objext
33753 if { (ac_try="$ac_compile"
33754 case "(($ac_try" in
33755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756 *) ac_try_echo=$ac_try;;
33758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33759 $as_echo "$ac_try_echo") >&5
33760 (eval "$ac_compile") 2>conftest.er1
33762 grep -v '^ *+' conftest.er1 >conftest.err
33764 cat conftest.err >&5
33765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766 (exit $ac_status); } && {
33767 test -z "$ac_c_werror_flag" ||
33768 test ! -s conftest.err
33769 } && test -s conftest.$ac_objext; then
33772 $as_echo "$as_me: failed program was:" >&5
33773 sed 's/^/| /' conftest.$ac_ext >&5
33778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33780 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33781 $as_echo "$ac_cv_c_const" >&6; }
33782 if test $ac_cv_c_const = no; then
33784 cat >>confdefs.h <<\_ACEOF
33791 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33792 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
33793 if test "${ac_cv_c_bigendian+set}" = set; then
33794 $as_echo_n "(cached) " >&6
33796 ac_cv_c_bigendian=unknown
33797 # See if we're dealing with a universal compiler.
33798 cat >conftest.$ac_ext <<_ACEOF
33801 cat confdefs.h >>conftest.$ac_ext
33802 cat >>conftest.$ac_ext <<_ACEOF
33803 /* end confdefs.h. */
33804 #ifndef __APPLE_CC__
33805 not a universal capable compiler
33810 rm -f conftest.$ac_objext
33811 if { (ac_try="$ac_compile"
33812 case "(($ac_try" in
33813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33814 *) ac_try_echo=$ac_try;;
33816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33817 $as_echo "$ac_try_echo") >&5
33818 (eval "$ac_compile") 2>conftest.er1
33820 grep -v '^ *+' conftest.er1 >conftest.err
33822 cat conftest.err >&5
33823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824 (exit $ac_status); } && {
33825 test -z "$ac_c_werror_flag" ||
33826 test ! -s conftest.err
33827 } && test -s conftest.$ac_objext; then
33829 # Check for potential -arch flags. It is not universal unless
33830 # there are some -arch flags. Note that *ppc* also matches
33831 # ppc64. This check is also rather less than ideal.
33832 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
33833 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
33836 $as_echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33843 if test $ac_cv_c_bigendian = unknown; then
33844 # See if sys/param.h defines the BYTE_ORDER macro.
33845 cat >conftest.$ac_ext <<_ACEOF
33848 cat confdefs.h >>conftest.$ac_ext
33849 cat >>conftest.$ac_ext <<_ACEOF
33850 /* end confdefs.h. */
33851 #include <sys/types.h>
33852 #include <sys/param.h>
33857 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
33858 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
33860 bogus endian macros
33867 rm -f conftest.$ac_objext
33868 if { (ac_try="$ac_compile"
33869 case "(($ac_try" in
33870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871 *) ac_try_echo=$ac_try;;
33873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33874 $as_echo "$ac_try_echo") >&5
33875 (eval "$ac_compile") 2>conftest.er1
33877 grep -v '^ *+' conftest.er1 >conftest.err
33879 cat conftest.err >&5
33880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); } && {
33882 test -z "$ac_c_werror_flag" ||
33883 test ! -s conftest.err
33884 } && test -s conftest.$ac_objext; then
33885 # It does; now see whether it defined to BIG_ENDIAN or not.
33886 cat >conftest.$ac_ext <<_ACEOF
33889 cat confdefs.h >>conftest.$ac_ext
33890 cat >>conftest.$ac_ext <<_ACEOF
33891 /* end confdefs.h. */
33892 #include <sys/types.h>
33893 #include <sys/param.h>
33898 #if BYTE_ORDER != BIG_ENDIAN
33906 rm -f conftest.$ac_objext
33907 if { (ac_try="$ac_compile"
33908 case "(($ac_try" in
33909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33910 *) ac_try_echo=$ac_try;;
33912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33913 $as_echo "$ac_try_echo") >&5
33914 (eval "$ac_compile") 2>conftest.er1
33916 grep -v '^ *+' conftest.er1 >conftest.err
33918 cat conftest.err >&5
33919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); } && {
33921 test -z "$ac_c_werror_flag" ||
33922 test ! -s conftest.err
33923 } && test -s conftest.$ac_objext; then
33924 ac_cv_c_bigendian=yes
33926 $as_echo "$as_me: failed program was:" >&5
33927 sed 's/^/| /' conftest.$ac_ext >&5
33929 ac_cv_c_bigendian=no
33932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33934 $as_echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33942 if test $ac_cv_c_bigendian = unknown; then
33943 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
33944 cat >conftest.$ac_ext <<_ACEOF
33947 cat confdefs.h >>conftest.$ac_ext
33948 cat >>conftest.$ac_ext <<_ACEOF
33949 /* end confdefs.h. */
33950 #include <limits.h>
33955 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
33956 bogus endian macros
33963 rm -f conftest.$ac_objext
33964 if { (ac_try="$ac_compile"
33965 case "(($ac_try" in
33966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33967 *) ac_try_echo=$ac_try;;
33969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33970 $as_echo "$ac_try_echo") >&5
33971 (eval "$ac_compile") 2>conftest.er1
33973 grep -v '^ *+' conftest.er1 >conftest.err
33975 cat conftest.err >&5
33976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977 (exit $ac_status); } && {
33978 test -z "$ac_c_werror_flag" ||
33979 test ! -s conftest.err
33980 } && test -s conftest.$ac_objext; then
33981 # It does; now see whether it defined to _BIG_ENDIAN or not.
33982 cat >conftest.$ac_ext <<_ACEOF
33985 cat confdefs.h >>conftest.$ac_ext
33986 cat >>conftest.$ac_ext <<_ACEOF
33987 /* end confdefs.h. */
33988 #include <limits.h>
33993 #ifndef _BIG_ENDIAN
34001 rm -f conftest.$ac_objext
34002 if { (ac_try="$ac_compile"
34003 case "(($ac_try" in
34004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34005 *) ac_try_echo=$ac_try;;
34007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34008 $as_echo "$ac_try_echo") >&5
34009 (eval "$ac_compile") 2>conftest.er1
34011 grep -v '^ *+' conftest.er1 >conftest.err
34013 cat conftest.err >&5
34014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); } && {
34016 test -z "$ac_c_werror_flag" ||
34017 test ! -s conftest.err
34018 } && test -s conftest.$ac_objext; then
34019 ac_cv_c_bigendian=yes
34021 $as_echo "$as_me: failed program was:" >&5
34022 sed 's/^/| /' conftest.$ac_ext >&5
34024 ac_cv_c_bigendian=no
34027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34029 $as_echo "$as_me: failed program was:" >&5
34030 sed 's/^/| /' conftest.$ac_ext >&5
34035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34037 if test $ac_cv_c_bigendian = unknown; then
34038 # Compile a test program.
34039 if test "$cross_compiling" = yes; then
34040 # Try to guess by grepping values from an object file.
34041 cat >conftest.$ac_ext <<_ACEOF
34044 cat confdefs.h >>conftest.$ac_ext
34045 cat >>conftest.$ac_ext <<_ACEOF
34046 /* end confdefs.h. */
34047 short int ascii_mm[] =
34048 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34049 short int ascii_ii[] =
34050 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34051 int use_ascii (int i) {
34052 return ascii_mm[i] + ascii_ii[i];
34054 short int ebcdic_ii[] =
34055 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34056 short int ebcdic_mm[] =
34057 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34058 int use_ebcdic (int i) {
34059 return ebcdic_mm[i] + ebcdic_ii[i];
34066 return use_ascii (foo) == use_ebcdic (foo);
34071 rm -f conftest.$ac_objext
34072 if { (ac_try="$ac_compile"
34073 case "(($ac_try" in
34074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34075 *) ac_try_echo=$ac_try;;
34077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34078 $as_echo "$ac_try_echo") >&5
34079 (eval "$ac_compile") 2>conftest.er1
34081 grep -v '^ *+' conftest.er1 >conftest.err
34083 cat conftest.err >&5
34084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); } && {
34086 test -z "$ac_c_werror_flag" ||
34087 test ! -s conftest.err
34088 } && test -s conftest.$ac_objext; then
34089 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
34090 ac_cv_c_bigendian=yes
34092 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34093 if test "$ac_cv_c_bigendian" = unknown; then
34094 ac_cv_c_bigendian=no
34096 # finding both strings is unlikely to happen, but who knows?
34097 ac_cv_c_bigendian=unknown
34101 $as_echo "$as_me: failed program was:" >&5
34102 sed 's/^/| /' conftest.$ac_ext >&5
34107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34109 cat >conftest.$ac_ext <<_ACEOF
34112 cat confdefs.h >>conftest.$ac_ext
34113 cat >>conftest.$ac_ext <<_ACEOF
34114 /* end confdefs.h. */
34115 $ac_includes_default
34120 /* Are we little or big endian? From Harbison&Steele. */
34124 char c[sizeof (long int)];
34127 return u.c[sizeof (long int) - 1] == 1;
34133 rm -f conftest$ac_exeext
34134 if { (ac_try="$ac_link"
34135 case "(($ac_try" in
34136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34137 *) ac_try_echo=$ac_try;;
34139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34140 $as_echo "$ac_try_echo") >&5
34141 (eval "$ac_link") 2>&5
34143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34145 { (case "(($ac_try" in
34146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34147 *) ac_try_echo=$ac_try;;
34149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34150 $as_echo "$ac_try_echo") >&5
34151 (eval "$ac_try") 2>&5
34153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154 (exit $ac_status); }; }; then
34155 ac_cv_c_bigendian=no
34157 $as_echo "$as_me: program exited with status $ac_status" >&5
34158 $as_echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34161 ( exit $ac_status )
34162 ac_cv_c_bigendian=yes
34164 rm -rf conftest.dSYM
34165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34171 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34172 $as_echo "$ac_cv_c_bigendian" >&6; }
34173 case $ac_cv_c_bigendian in #(
34175 cat >>confdefs.h <<\_ACEOF
34176 #define WORDS_BIGENDIAN 1
34183 cat >>confdefs.h <<\_ACEOF
34184 #define AC_APPLE_UNIVERSAL_BUILD 1
34189 { { $as_echo "$as_me:$LINENO: error: unknown endianness
34190 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34191 $as_echo "$as_me: error: unknown endianness
34192 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34193 { (exit 1); exit 1; }; } ;;
34197 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
34198 if test "x$GCC" = "xyes"; then
34200 GCC_COMPILER_FALSE='#'
34202 GCC_COMPILER_TRUE='#'
34203 GCC_COMPILER_FALSE=
34214 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
34215 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
34216 if test "x$GCC" = "xyes"; then
34217 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34218 $CC -v --help 2>&1) |
34219 $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
34220 if test $? -eq 0; then
34222 { $as_echo "$as_me:$LINENO: result: yes" >&5
34223 $as_echo "yes" >&6; }
34226 { $as_echo "$as_me:$LINENO: result: no" >&5
34227 $as_echo "no" >&6; }
34231 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34232 $as_echo "no (not using gcc)" >&6; }
34235 if test x"$found_warning" = x"yes"; then
34236 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
34248 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
34249 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
34250 if test "x$GCC" = "xyes"; then
34251 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34252 $CC -v --help 2>&1) |
34253 $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
34254 if test $? -eq 0; then
34256 { $as_echo "$as_me:$LINENO: result: yes" >&5
34257 $as_echo "yes" >&6; }
34260 { $as_echo "$as_me:$LINENO: result: no" >&5
34261 $as_echo "no" >&6; }
34265 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34266 $as_echo "no (not using gcc)" >&6; }
34269 if test x"$found_warning" = x"yes"; then
34270 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
34282 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
34283 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
34284 if test "x$GCC" = "xyes"; then
34285 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34286 $CC -v --help 2>&1) |
34287 $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
34288 if test $? -eq 0; then
34290 { $as_echo "$as_me:$LINENO: result: yes" >&5
34291 $as_echo "yes" >&6; }
34294 { $as_echo "$as_me:$LINENO: result: no" >&5
34295 $as_echo "no" >&6; }
34299 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34300 $as_echo "no (not using gcc)" >&6; }
34303 if test x"$found_warning" = x"yes"; then
34304 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
34316 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
34317 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
34318 if test "x$GCC" = "xyes"; then
34319 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34320 $CC -v --help 2>&1) |
34321 $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
34322 if test $? -eq 0; then
34324 { $as_echo "$as_me:$LINENO: result: yes" >&5
34325 $as_echo "yes" >&6; }
34328 { $as_echo "$as_me:$LINENO: result: no" >&5
34329 $as_echo "no" >&6; }
34333 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34334 $as_echo "no (not using gcc)" >&6; }
34337 if test x"$found_warning" = x"yes"; then
34338 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
34350 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
34351 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
34352 if test "x$GCC" = "xyes"; then
34353 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34354 $CC -v --help 2>&1) |
34355 $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
34356 if test $? -eq 0; then
34358 { $as_echo "$as_me:$LINENO: result: yes" >&5
34359 $as_echo "yes" >&6; }
34362 { $as_echo "$as_me:$LINENO: result: no" >&5
34363 $as_echo "no" >&6; }
34367 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34368 $as_echo "no (not using gcc)" >&6; }
34371 if test x"$found_warning" = x"yes"; then
34372 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
34384 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
34385 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
34386 if test "x$GCC" = "xyes"; then
34387 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34388 $CC -v --help 2>&1) |
34389 $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
34390 if test $? -eq 0; then
34392 { $as_echo "$as_me:$LINENO: result: yes" >&5
34393 $as_echo "yes" >&6; }
34396 { $as_echo "$as_me:$LINENO: result: no" >&5
34397 $as_echo "no" >&6; }
34401 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34402 $as_echo "no (not using gcc)" >&6; }
34405 if test x"$found_warning" = x"yes"; then
34406 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
34418 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat-security" >&5
34419 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
34420 if test "x$GCC" = "xyes"; then
34421 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34422 $CC -v --help 2>&1) |
34423 $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
34424 if test $? -eq 0; then
34426 { $as_echo "$as_me:$LINENO: result: yes" >&5
34427 $as_echo "yes" >&6; }
34430 { $as_echo "$as_me:$LINENO: result: no" >&5
34431 $as_echo "no" >&6; }
34435 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34436 $as_echo "no (not using gcc)" >&6; }
34439 if test x"$found_warning" = x"yes"; then
34440 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
34452 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
34453 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
34454 if test "x$GCC" = "xyes"; then
34455 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34456 $CC -v --help 2>&1) |
34457 $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
34458 if test $? -eq 0; then
34460 { $as_echo "$as_me:$LINENO: result: yes" >&5
34461 $as_echo "yes" >&6; }
34464 { $as_echo "$as_me:$LINENO: result: no" >&5
34465 $as_echo "no" >&6; }
34469 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34470 $as_echo "no (not using gcc)" >&6; }
34473 if test x"$found_warning" = x"yes"; then
34474 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
34486 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
34487 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
34488 if test "x$GCC" = "xyes"; then
34489 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34490 $CC -v --help 2>&1) |
34491 $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
34492 if test $? -eq 0; then
34494 { $as_echo "$as_me:$LINENO: result: yes" >&5
34495 $as_echo "yes" >&6; }
34498 { $as_echo "$as_me:$LINENO: result: no" >&5
34499 $as_echo "no" >&6; }
34503 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34504 $as_echo "no (not using gcc)" >&6; }
34507 if test x"$found_warning" = x"yes"; then
34508 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
34520 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
34521 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
34522 if test "x$GCC" = "xyes"; then
34523 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34524 $CC -v --help 2>&1) |
34525 $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
34526 if test $? -eq 0; then
34528 { $as_echo "$as_me:$LINENO: result: yes" >&5
34529 $as_echo "yes" >&6; }
34532 { $as_echo "$as_me:$LINENO: result: no" >&5
34533 $as_echo "no" >&6; }
34537 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34538 $as_echo "no (not using gcc)" >&6; }
34541 if test x"$found_warning" = x"yes"; then
34542 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
34551 # test for -W'warning', then add the 'no-' version.
34555 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
34556 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
34557 if test "x$GCC" = "xyes"; then
34558 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34559 $CC -v --help 2>&1) |
34560 $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
34561 if test $? -eq 0; then
34563 { $as_echo "$as_me:$LINENO: result: yes" >&5
34564 $as_echo "yes" >&6; }
34567 { $as_echo "$as_me:$LINENO: result: no" >&5
34568 $as_echo "no" >&6; }
34572 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34573 $as_echo "no (not using gcc)" >&6; }
34576 if test x"$found_warning" = x"yes"; then
34577 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
34586 # test for -W'warning', then add the 'no-' version.
34590 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
34591 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
34592 if test "x$GCC" = "xyes"; then
34593 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34594 $CC -v --help 2>&1) |
34595 $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
34596 if test $? -eq 0; then
34598 { $as_echo "$as_me:$LINENO: result: yes" >&5
34599 $as_echo "yes" >&6; }
34602 { $as_echo "$as_me:$LINENO: result: no" >&5
34603 $as_echo "no" >&6; }
34607 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34608 $as_echo "no (not using gcc)" >&6; }
34611 if test x"$found_warning" = x"yes"; then
34612 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
34625 # Check whether --enable-shared was given.
34626 if test "${enable_shared+set}" = set; then
34627 enableval=$enable_shared; p=${PACKAGE-default}
34629 yes) enable_shared=yes ;;
34630 no) enable_shared=no ;;
34633 # Look at the argument we got. We use all the common list separators.
34634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34635 for pkg in $enableval; do
34637 if test "X$pkg" = "X$p"; then
34649 # Check whether --enable-static was given.
34650 if test "${enable_static+set}" = set; then
34651 enableval=$enable_static; p=${PACKAGE-default}
34653 yes) enable_static=yes ;;
34654 no) enable_static=no ;;
34657 # Look at the argument we got. We use all the common list separators.
34658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34659 for pkg in $enableval; do
34661 if test "X$pkg" = "X$p"; then
34673 # Check whether --enable-fast-install was given.
34674 if test "${enable_fast_install+set}" = set; then
34675 enableval=$enable_fast_install; p=${PACKAGE-default}
34677 yes) enable_fast_install=yes ;;
34678 no) enable_fast_install=no ;;
34680 enable_fast_install=no
34681 # Look at the argument we got. We use all the common list separators.
34682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34683 for pkg in $enableval; do
34685 if test "X$pkg" = "X$p"; then
34686 enable_fast_install=yes
34693 enable_fast_install=yes
34697 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
34698 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
34699 if test "${lt_cv_path_SED+set}" = set; then
34700 $as_echo_n "(cached) " >&6
34702 # Loop through the user's path and test for sed and gsed.
34703 # Then use that list of sed's as ones to test for truncation.
34704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34705 for as_dir in $PATH
34708 test -z "$as_dir" && as_dir=.
34709 for lt_ac_prog in sed gsed; do
34710 for ac_exec_ext in '' $ac_executable_extensions; do
34711 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
34712 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
34719 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
34720 # along with /bin/sed that truncates output.
34721 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
34722 test ! -f $lt_ac_sed && continue
34723 cat /dev/null > conftest.in
34725 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
34726 # Check for GNU sed and select it if it is found.
34727 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
34728 lt_cv_path_SED=$lt_ac_sed
34732 cat conftest.in conftest.in >conftest.tmp
34733 mv conftest.tmp conftest.in
34734 cp conftest.in conftest.nl
34736 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
34737 cmp -s conftest.out conftest.nl || break
34738 # 10000 chars as input seems more than enough
34739 test $lt_ac_count -gt 10 && break
34740 lt_ac_count=`expr $lt_ac_count + 1`
34741 if test $lt_ac_count -gt $lt_ac_max; then
34742 lt_ac_max=$lt_ac_count
34743 lt_cv_path_SED=$lt_ac_sed
34750 SED=$lt_cv_path_SED
34751 { $as_echo "$as_me:$LINENO: result: $SED" >&5
34752 $as_echo "$SED" >&6; }
34755 # Check whether --with-gnu-ld was given.
34756 if test "${with_gnu_ld+set}" = set; then
34757 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
34763 if test "$GCC" = yes; then
34764 # Check if gcc -print-prog-name=ld gives a path.
34765 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
34766 $as_echo_n "checking for ld used by $CC... " >&6; }
34769 # gcc leaves a trailing carriage return which upsets mingw
34770 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
34772 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
34775 # Accept absolute paths.
34777 re_direlt='/[^/][^/]*/\.\./'
34778 # Canonicalize the pathname of ld
34779 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
34780 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
34781 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
34783 test -z "$LD" && LD="$ac_prog"
34786 # If it fails, then pretend we aren't using GCC.
34790 # If it is relative, then search for the first ld in PATH.
34791 with_gnu_ld=unknown
34794 elif test "$with_gnu_ld" = yes; then
34795 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
34796 $as_echo_n "checking for GNU ld... " >&6; }
34798 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
34799 $as_echo_n "checking for non-GNU ld... " >&6; }
34801 if test "${lt_cv_path_LD+set}" = set; then
34802 $as_echo_n "(cached) " >&6
34804 if test -z "$LD"; then
34805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34806 for ac_dir in $PATH; do
34808 test -z "$ac_dir" && ac_dir=.
34809 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
34810 lt_cv_path_LD="$ac_dir/$ac_prog"
34811 # Check to see if the program is GNU ld. I'd rather use --version,
34812 # but apparently some variants of GNU ld only accept -v.
34813 # Break only if it was the GNU/non-GNU ld that we prefer.
34814 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
34815 *GNU* | *'with BFD'*)
34816 test "$with_gnu_ld" != no && break
34819 test "$with_gnu_ld" != yes && break
34826 lt_cv_path_LD="$LD" # Let the user override the test with a path.
34830 LD="$lt_cv_path_LD"
34831 if test -n "$LD"; then
34832 { $as_echo "$as_me:$LINENO: result: $LD" >&5
34833 $as_echo "$LD" >&6; }
34835 { $as_echo "$as_me:$LINENO: result: no" >&5
34836 $as_echo "no" >&6; }
34838 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
34839 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
34840 { (exit 1); exit 1; }; }
34841 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
34842 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
34843 if test "${lt_cv_prog_gnu_ld+set}" = set; then
34844 $as_echo_n "(cached) " >&6
34846 # I'd rather use --version here, but apparently some GNU lds only accept -v.
34847 case `$LD -v 2>&1 </dev/null` in
34848 *GNU* | *'with BFD'*)
34849 lt_cv_prog_gnu_ld=yes
34852 lt_cv_prog_gnu_ld=no
34856 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
34857 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
34858 with_gnu_ld=$lt_cv_prog_gnu_ld
34861 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
34862 $as_echo_n "checking for $LD option to reload object files... " >&6; }
34863 if test "${lt_cv_ld_reload_flag+set}" = set; then
34864 $as_echo_n "(cached) " >&6
34866 lt_cv_ld_reload_flag='-r'
34868 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
34869 $as_echo "$lt_cv_ld_reload_flag" >&6; }
34870 reload_flag=$lt_cv_ld_reload_flag
34871 case $reload_flag in
34873 *) reload_flag=" $reload_flag" ;;
34875 reload_cmds='$LD$reload_flag -o $output$reload_objs'
34878 if test "$GCC" = yes; then
34879 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
34881 reload_cmds='$LD$reload_flag -o $output$reload_objs'
34886 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
34887 $as_echo_n "checking for BSD-compatible nm... " >&6; }
34888 if test "${lt_cv_path_NM+set}" = set; then
34889 $as_echo_n "(cached) " >&6
34891 if test -n "$NM"; then
34892 # Let the user override the test.
34893 lt_cv_path_NM="$NM"
34895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34896 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
34898 test -z "$ac_dir" && ac_dir=.
34899 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
34900 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
34901 # Check to see if the nm accepts a BSD-compat flag.
34902 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
34903 # nm: unknown option "B" ignored
34904 # Tru64's nm complains that /dev/null is an invalid object file
34905 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
34906 */dev/null* | *'Invalid file or object type'*)
34907 lt_cv_path_NM="$tmp_nm -B"
34911 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34913 lt_cv_path_NM="$tmp_nm -p"
34917 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34918 continue # so that we can try to find one that supports BSD flags
34925 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
34928 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
34929 $as_echo "$lt_cv_path_NM" >&6; }
34930 NM="$lt_cv_path_NM"
34932 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
34933 $as_echo_n "checking whether ln -s works... " >&6; }
34935 if test "$LN_S" = "ln -s"; then
34936 { $as_echo "$as_me:$LINENO: result: yes" >&5
34937 $as_echo "yes" >&6; }
34939 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34940 $as_echo "no, using $LN_S" >&6; }
34943 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
34944 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
34945 if test "${lt_cv_deplibs_check_method+set}" = set; then
34946 $as_echo_n "(cached) " >&6
34948 lt_cv_file_magic_cmd='$MAGIC_CMD'
34949 lt_cv_file_magic_test_file=
34950 lt_cv_deplibs_check_method='unknown'
34951 # Need to set the preceding variable on all platforms that support
34952 # interlibrary dependencies.
34953 # 'none' -- dependencies not supported.
34954 # `unknown' -- same as none, but documents that we really don't know.
34955 # 'pass_all' -- all dependencies passed with no checks.
34956 # 'test_compile' -- check by making test program.
34957 # 'file_magic [[regex]]' -- check by looking for files in library path
34958 # which responds to the $file_magic_cmd with a given extended regex.
34959 # If you have `file' or equivalent on your system and you're not sure
34960 # whether `pass_all' will *always* work, you probably want this one.
34964 lt_cv_deplibs_check_method=pass_all
34968 lt_cv_deplibs_check_method=pass_all
34972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
34973 lt_cv_file_magic_cmd='/usr/bin/file -L'
34974 lt_cv_file_magic_test_file=/shlib/libc.so
34978 # func_win32_libid is a shell function defined in ltmain.sh
34979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
34980 lt_cv_file_magic_cmd='func_win32_libid'
34984 # Base MSYS/MinGW do not provide the 'file' command needed by
34985 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
34986 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
34987 lt_cv_file_magic_cmd='$OBJDUMP -f'
34990 darwin* | rhapsody*)
34991 lt_cv_deplibs_check_method=pass_all
34994 freebsd* | kfreebsd*-gnu | dragonfly*)
34995 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
34998 # Not sure whether the presence of OpenBSD here was a mistake.
34999 # Let's accept both of them until this is cleared up.
35000 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
35001 lt_cv_file_magic_cmd=/usr/bin/file
35002 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
35006 lt_cv_deplibs_check_method=pass_all
35011 lt_cv_deplibs_check_method=pass_all
35014 hpux10.20* | hpux11*)
35015 lt_cv_file_magic_cmd=/usr/bin/file
35018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
35019 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
35022 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]'
35023 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
35026 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
35027 lt_cv_file_magic_test_file=/usr/lib/libc.sl
35032 irix5* | irix6* | nonstopux*)
35034 *-32|*"-32 ") libmagic=32-bit;;
35035 *-n32|*"-n32 ") libmagic=N32;;
35036 *-64|*"-64 ") libmagic=64-bit;;
35037 *) libmagic=never-match;;
35039 lt_cv_deplibs_check_method=pass_all
35042 # This must be Linux ELF.
35044 lt_cv_deplibs_check_method=pass_all
35048 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
35049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
35051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
35056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
35057 lt_cv_file_magic_cmd=/usr/bin/file
35058 lt_cv_file_magic_test_file=/usr/lib/libnls.so
35062 lt_cv_deplibs_check_method=unknown
35066 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
35069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
35073 osf3* | osf4* | osf5*)
35074 lt_cv_deplibs_check_method=pass_all
35078 lt_cv_deplibs_check_method=pass_all
35082 lt_cv_deplibs_check_method=pass_all
35085 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
35086 case $host_vendor in
35088 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]'
35089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
35092 lt_cv_deplibs_check_method=pass_all
35095 lt_cv_file_magic_cmd='/bin/file'
35096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
35099 lt_cv_file_magic_cmd='/bin/file'
35100 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
35101 lt_cv_file_magic_test_file=/lib/libc.so
35104 lt_cv_deplibs_check_method=pass_all
35109 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
35110 lt_cv_deplibs_check_method=pass_all
35115 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
35116 $as_echo "$lt_cv_deplibs_check_method" >&6; }
35117 file_magic_cmd=$lt_cv_file_magic_cmd
35118 deplibs_check_method=$lt_cv_deplibs_check_method
35119 test -z "$deplibs_check_method" && deplibs_check_method=unknown
35122 # If no C compiler was specified, use CC.
35125 # Allow CC to be a program name with arguments.
35128 # Check whether --enable-libtool-lock was given.
35129 if test "${enable_libtool_lock+set}" = set; then
35130 enableval=$enable_libtool_lock;
35133 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
35135 # Some flags need to be propagated to the compiler or linker for good
35139 # Find out which ABI we are using.
35140 echo 'int i;' > conftest.$ac_ext
35141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35142 (eval $ac_compile) 2>&5
35144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); }; then
35146 case `/usr/bin/file conftest.$ac_objext` in
35148 HPUX_IA64_MODE="32"
35151 HPUX_IA64_MODE="64"
35158 # Find out which ABI we are using.
35159 echo '#line 35159 "configure"' > conftest.$ac_ext
35160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35161 (eval $ac_compile) 2>&5
35163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); }; then
35165 if test "$lt_cv_prog_gnu_ld" = yes; then
35166 case `/usr/bin/file conftest.$ac_objext` in
35168 LD="${LD-ld} -melf32bsmip"
35171 LD="${LD-ld} -melf32bmipn32"
35174 LD="${LD-ld} -melf64bmip"
35178 case `/usr/bin/file conftest.$ac_objext` in
35194 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
35195 # Find out which ABI we are using.
35196 echo 'int i;' > conftest.$ac_ext
35197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35198 (eval $ac_compile) 2>&5
35200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); }; then
35202 case `/usr/bin/file conftest.o` in
35206 LD="${LD-ld} -m elf_i386"
35208 ppc64-*linux*|powerpc64-*linux*)
35209 LD="${LD-ld} -m elf32ppclinux"
35212 LD="${LD-ld} -m elf_s390"
35215 LD="${LD-ld} -m elf32_sparc"
35222 LD="${LD-ld} -m elf_x86_64"
35224 ppc*-*linux*|powerpc*-*linux*)
35225 LD="${LD-ld} -m elf64ppc"
35228 LD="${LD-ld} -m elf64_s390"
35231 LD="${LD-ld} -m elf64_sparc"
35241 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
35242 SAVE_CFLAGS="$CFLAGS"
35243 CFLAGS="$CFLAGS -belf"
35244 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
35245 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
35246 if test "${lt_cv_cc_needs_belf+set}" = set; then
35247 $as_echo_n "(cached) " >&6
35250 ac_cpp='$CPP $CPPFLAGS'
35251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35255 cat >conftest.$ac_ext <<_ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h. */
35270 rm -f conftest.$ac_objext conftest$ac_exeext
35271 if { (ac_try="$ac_link"
35272 case "(($ac_try" in
35273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35274 *) ac_try_echo=$ac_try;;
35276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35277 $as_echo "$ac_try_echo") >&5
35278 (eval "$ac_link") 2>conftest.er1
35280 grep -v '^ *+' conftest.er1 >conftest.err
35282 cat conftest.err >&5
35283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); } && {
35285 test -z "$ac_c_werror_flag" ||
35286 test ! -s conftest.err
35287 } && test -s conftest$ac_exeext && {
35288 test "$cross_compiling" = yes ||
35289 $as_test_x conftest$ac_exeext
35291 lt_cv_cc_needs_belf=yes
35293 $as_echo "$as_me: failed program was:" >&5
35294 sed 's/^/| /' conftest.$ac_ext >&5
35296 lt_cv_cc_needs_belf=no
35299 rm -rf conftest.dSYM
35300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35301 conftest$ac_exeext conftest.$ac_ext
35303 ac_cpp='$CPP $CPPFLAGS'
35304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35309 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
35310 $as_echo "$lt_cv_cc_needs_belf" >&6; }
35311 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
35312 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
35313 CFLAGS="$SAVE_CFLAGS"
35319 need_locks="$enable_libtool_lock"
35323 for ac_header in dlfcn.h
35325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35327 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35328 $as_echo_n "checking for $ac_header... " >&6; }
35329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35330 $as_echo_n "(cached) " >&6
35332 ac_res=`eval 'as_val=${'$as_ac_Header'}
35333 $as_echo "$as_val"'`
35334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35335 $as_echo "$ac_res" >&6; }
35337 # Is the header compilable?
35338 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35339 $as_echo_n "checking $ac_header usability... " >&6; }
35340 cat >conftest.$ac_ext <<_ACEOF
35343 cat confdefs.h >>conftest.$ac_ext
35344 cat >>conftest.$ac_ext <<_ACEOF
35345 /* end confdefs.h. */
35346 $ac_includes_default
35347 #include <$ac_header>
35349 rm -f conftest.$ac_objext
35350 if { (ac_try="$ac_compile"
35351 case "(($ac_try" in
35352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35353 *) ac_try_echo=$ac_try;;
35355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35356 $as_echo "$ac_try_echo") >&5
35357 (eval "$ac_compile") 2>conftest.er1
35359 grep -v '^ *+' conftest.er1 >conftest.err
35361 cat conftest.err >&5
35362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); } && {
35364 test -z "$ac_c_werror_flag" ||
35365 test ! -s conftest.err
35366 } && test -s conftest.$ac_objext; then
35367 ac_header_compiler=yes
35369 $as_echo "$as_me: failed program was:" >&5
35370 sed 's/^/| /' conftest.$ac_ext >&5
35372 ac_header_compiler=no
35375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35376 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35377 $as_echo "$ac_header_compiler" >&6; }
35379 # Is the header present?
35380 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35381 $as_echo_n "checking $ac_header presence... " >&6; }
35382 cat >conftest.$ac_ext <<_ACEOF
35385 cat confdefs.h >>conftest.$ac_ext
35386 cat >>conftest.$ac_ext <<_ACEOF
35387 /* end confdefs.h. */
35388 #include <$ac_header>
35390 if { (ac_try="$ac_cpp conftest.$ac_ext"
35391 case "(($ac_try" in
35392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35393 *) ac_try_echo=$ac_try;;
35395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35396 $as_echo "$ac_try_echo") >&5
35397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35399 grep -v '^ *+' conftest.er1 >conftest.err
35401 cat conftest.err >&5
35402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403 (exit $ac_status); } >/dev/null && {
35404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35405 test ! -s conftest.err
35407 ac_header_preproc=yes
35409 $as_echo "$as_me: failed program was:" >&5
35410 sed 's/^/| /' conftest.$ac_ext >&5
35412 ac_header_preproc=no
35415 rm -f conftest.err conftest.$ac_ext
35416 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35417 $as_echo "$ac_header_preproc" >&6; }
35419 # So? What about this header?
35420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35423 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35425 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35426 ac_header_preproc=yes
35429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35430 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35432 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35434 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35436 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35438 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35440 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35444 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35445 $as_echo_n "checking for $ac_header... " >&6; }
35446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35447 $as_echo_n "(cached) " >&6
35449 eval "$as_ac_Header=\$ac_header_preproc"
35451 ac_res=`eval 'as_val=${'$as_ac_Header'}
35452 $as_echo "$as_val"'`
35453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35454 $as_echo "$ac_res" >&6; }
35457 as_val=`eval 'as_val=${'$as_ac_Header'}
35458 $as_echo "$as_val"'`
35459 if test "x$as_val" = x""yes; then
35460 cat >>confdefs.h <<_ACEOF
35461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35469 ac_cpp='$CXXCPP $CPPFLAGS'
35470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35473 if test -z "$CXX"; then
35474 if test -n "$CCC"; then
35477 if test -n "$ac_tool_prefix"; then
35478 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
35481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
35482 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35483 $as_echo_n "checking for $ac_word... " >&6; }
35484 if test "${ac_cv_prog_CXX+set}" = set; then
35485 $as_echo_n "(cached) " >&6
35487 if test -n "$CXX"; then
35488 ac_cv_prog_CXX="$CXX" # Let the user override the test.
35490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35491 for as_dir in $PATH
35494 test -z "$as_dir" && as_dir=.
35495 for ac_exec_ext in '' $ac_executable_extensions; do
35496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35497 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
35498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35507 CXX=$ac_cv_prog_CXX
35508 if test -n "$CXX"; then
35509 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
35510 $as_echo "$CXX" >&6; }
35512 { $as_echo "$as_me:$LINENO: result: no" >&5
35513 $as_echo "no" >&6; }
35517 test -n "$CXX" && break
35520 if test -z "$CXX"; then
35522 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35524 # Extract the first word of "$ac_prog", so it can be a program name with args.
35525 set dummy $ac_prog; ac_word=$2
35526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35527 $as_echo_n "checking for $ac_word... " >&6; }
35528 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
35529 $as_echo_n "(cached) " >&6
35531 if test -n "$ac_ct_CXX"; then
35532 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
35534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35535 for as_dir in $PATH
35538 test -z "$as_dir" && as_dir=.
35539 for ac_exec_ext in '' $ac_executable_extensions; do
35540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35541 ac_cv_prog_ac_ct_CXX="$ac_prog"
35542 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35551 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
35552 if test -n "$ac_ct_CXX"; then
35553 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
35554 $as_echo "$ac_ct_CXX" >&6; }
35556 { $as_echo "$as_me:$LINENO: result: no" >&5
35557 $as_echo "no" >&6; }
35561 test -n "$ac_ct_CXX" && break
35564 if test "x$ac_ct_CXX" = x; then
35567 case $cross_compiling:$ac_tool_warned in
35569 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
35570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35571 ac_tool_warned=yes ;;
35579 # Provide some information about the compiler.
35580 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
35583 { (ac_try="$ac_compiler --version >&5"
35584 case "(($ac_try" in
35585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35586 *) ac_try_echo=$ac_try;;
35588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35589 $as_echo "$ac_try_echo") >&5
35590 (eval "$ac_compiler --version >&5") 2>&5
35592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593 (exit $ac_status); }
35594 { (ac_try="$ac_compiler -v >&5"
35595 case "(($ac_try" in
35596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35597 *) ac_try_echo=$ac_try;;
35599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35600 $as_echo "$ac_try_echo") >&5
35601 (eval "$ac_compiler -v >&5") 2>&5
35603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604 (exit $ac_status); }
35605 { (ac_try="$ac_compiler -V >&5"
35606 case "(($ac_try" in
35607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35608 *) ac_try_echo=$ac_try;;
35610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35611 $as_echo "$ac_try_echo") >&5
35612 (eval "$ac_compiler -V >&5") 2>&5
35614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615 (exit $ac_status); }
35617 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
35618 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
35619 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
35620 $as_echo_n "(cached) " >&6
35622 cat >conftest.$ac_ext <<_ACEOF
35625 cat confdefs.h >>conftest.$ac_ext
35626 cat >>conftest.$ac_ext <<_ACEOF
35627 /* end confdefs.h. */
35640 rm -f conftest.$ac_objext
35641 if { (ac_try="$ac_compile"
35642 case "(($ac_try" in
35643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35644 *) ac_try_echo=$ac_try;;
35646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35647 $as_echo "$ac_try_echo") >&5
35648 (eval "$ac_compile") 2>conftest.er1
35650 grep -v '^ *+' conftest.er1 >conftest.err
35652 cat conftest.err >&5
35653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); } && {
35655 test -z "$ac_cxx_werror_flag" ||
35656 test ! -s conftest.err
35657 } && test -s conftest.$ac_objext; then
35658 ac_compiler_gnu=yes
35660 $as_echo "$as_me: failed program was:" >&5
35661 sed 's/^/| /' conftest.$ac_ext >&5
35666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
35670 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
35671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
35672 if test $ac_compiler_gnu = yes; then
35677 ac_test_CXXFLAGS=${CXXFLAGS+set}
35678 ac_save_CXXFLAGS=$CXXFLAGS
35679 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
35680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
35681 if test "${ac_cv_prog_cxx_g+set}" = set; then
35682 $as_echo_n "(cached) " >&6
35684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
35685 ac_cxx_werror_flag=yes
35686 ac_cv_prog_cxx_g=no
35688 cat >conftest.$ac_ext <<_ACEOF
35691 cat confdefs.h >>conftest.$ac_ext
35692 cat >>conftest.$ac_ext <<_ACEOF
35693 /* end confdefs.h. */
35703 rm -f conftest.$ac_objext
35704 if { (ac_try="$ac_compile"
35705 case "(($ac_try" in
35706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35707 *) ac_try_echo=$ac_try;;
35709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35710 $as_echo "$ac_try_echo") >&5
35711 (eval "$ac_compile") 2>conftest.er1
35713 grep -v '^ *+' conftest.er1 >conftest.err
35715 cat conftest.err >&5
35716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717 (exit $ac_status); } && {
35718 test -z "$ac_cxx_werror_flag" ||
35719 test ! -s conftest.err
35720 } && test -s conftest.$ac_objext; then
35721 ac_cv_prog_cxx_g=yes
35723 $as_echo "$as_me: failed program was:" >&5
35724 sed 's/^/| /' conftest.$ac_ext >&5
35727 cat >conftest.$ac_ext <<_ACEOF
35730 cat confdefs.h >>conftest.$ac_ext
35731 cat >>conftest.$ac_ext <<_ACEOF
35732 /* end confdefs.h. */
35742 rm -f conftest.$ac_objext
35743 if { (ac_try="$ac_compile"
35744 case "(($ac_try" in
35745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35746 *) ac_try_echo=$ac_try;;
35748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35749 $as_echo "$ac_try_echo") >&5
35750 (eval "$ac_compile") 2>conftest.er1
35752 grep -v '^ *+' conftest.er1 >conftest.err
35754 cat conftest.err >&5
35755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756 (exit $ac_status); } && {
35757 test -z "$ac_cxx_werror_flag" ||
35758 test ! -s conftest.err
35759 } && test -s conftest.$ac_objext; then
35762 $as_echo "$as_me: failed program was:" >&5
35763 sed 's/^/| /' conftest.$ac_ext >&5
35765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35767 cat >conftest.$ac_ext <<_ACEOF
35770 cat confdefs.h >>conftest.$ac_ext
35771 cat >>conftest.$ac_ext <<_ACEOF
35772 /* end confdefs.h. */
35782 rm -f conftest.$ac_objext
35783 if { (ac_try="$ac_compile"
35784 case "(($ac_try" in
35785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35786 *) ac_try_echo=$ac_try;;
35788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35789 $as_echo "$ac_try_echo") >&5
35790 (eval "$ac_compile") 2>conftest.er1
35792 grep -v '^ *+' conftest.er1 >conftest.err
35794 cat conftest.err >&5
35795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796 (exit $ac_status); } && {
35797 test -z "$ac_cxx_werror_flag" ||
35798 test ! -s conftest.err
35799 } && test -s conftest.$ac_objext; then
35800 ac_cv_prog_cxx_g=yes
35802 $as_echo "$as_me: failed program was:" >&5
35803 sed 's/^/| /' conftest.$ac_ext >&5
35808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35815 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35817 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
35818 $as_echo "$ac_cv_prog_cxx_g" >&6; }
35819 if test "$ac_test_CXXFLAGS" = set; then
35820 CXXFLAGS=$ac_save_CXXFLAGS
35821 elif test $ac_cv_prog_cxx_g = yes; then
35822 if test "$GXX" = yes; then
35828 if test "$GXX" = yes; then
35835 ac_cpp='$CXXCPP $CPPFLAGS'
35836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35840 depcc="$CXX" am_compiler_list=
35842 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
35843 $as_echo_n "checking dependency style of $depcc... " >&6; }
35844 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
35845 $as_echo_n "(cached) " >&6
35847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
35848 # We make a subdir and do the tests there. Otherwise we can end up
35849 # making bogus files that we don't know about and never remove. For
35850 # instance it was reported that on HP-UX the gcc test will end up
35851 # making a dummy file named `D' -- because `-MD' means `put the output
35854 # Copy depcomp to subdir because otherwise we won't find it if we're
35855 # using a relative directory.
35856 cp "$am_depcomp" conftest.dir
35858 # We will build objects and dependencies in a subdirectory because
35859 # it helps to detect inapplicable dependency modes. For instance
35860 # both Tru64's cc and ICC support -MD to output dependencies as a
35861 # side effect of compilation, but ICC will put the dependencies in
35862 # the current directory while Tru64 will put them in the object
35866 am_cv_CXX_dependencies_compiler_type=none
35867 if test "$am_compiler_list" = ""; then
35868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
35870 for depmode in $am_compiler_list; do
35871 # Setup a source with many dependencies, because some compilers
35872 # like to wrap large dependency lists on column 80 (with \), and
35873 # we should not choose a depcomp mode which is confused by this.
35875 # We need to recreate these files for each test, as the compiler may
35876 # overwrite some of them when testing with obscure command lines.
35877 # This happens at least with the AIX C compiler.
35879 for i in 1 2 3 4 5 6; do
35880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
35881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
35882 # Solaris 8's {/usr,}/bin/sh.
35883 touch sub/conftst$i.h
35885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35889 # after this tag, mechanisms are not by side-effect, so they'll
35890 # only be used when explicitly requested
35891 if test "x$enable_dependency_tracking" = xyes; then
35899 # We check with `-c' and `-o' for the sake of the "dashmstdout"
35900 # mode. It turns out that the SunPro C++ compiler does not properly
35901 # handle `-M -o', and we need to detect this.
35902 if depmode=$depmode \
35903 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
35904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
35905 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
35906 >/dev/null 2>conftest.err &&
35907 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
35909 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
35910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
35911 # icc doesn't choke on unknown options, it will just issue warnings
35912 # or remarks (even with -Werror). So we grep stderr for any message
35913 # that says an option was ignored or not supported.
35914 # When given -MP, icc 7.0 and 7.1 complain thusly:
35915 # icc: Command line warning: ignoring option '-M'; no argument required
35916 # The diagnosis changed in icc 8.0:
35917 # icc: Command line remark: option '-MP' not supported
35918 if (grep 'ignoring option' conftest.err ||
35919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
35920 am_cv_CXX_dependencies_compiler_type=$depmode
35927 rm -rf conftest.dir
35929 am_cv_CXX_dependencies_compiler_type=none
35933 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
35934 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
35935 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
35938 test "x$enable_dependency_tracking" != xno \
35939 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
35940 am__fastdepCXX_TRUE=
35941 am__fastdepCXX_FALSE='#'
35943 am__fastdepCXX_TRUE='#'
35944 am__fastdepCXX_FALSE=
35950 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
35951 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
35952 (test "X$CXX" != "Xg++"))) ; then
35954 ac_cpp='$CXXCPP $CPPFLAGS'
35955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35958 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
35959 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
35960 if test -z "$CXXCPP"; then
35961 if test "${ac_cv_prog_CXXCPP+set}" = set; then
35962 $as_echo_n "(cached) " >&6
35964 # Double quotes because CXXCPP needs to be expanded
35965 for CXXCPP in "$CXX -E" "/lib/cpp"
35967 ac_preproc_ok=false
35968 for ac_cxx_preproc_warn_flag in '' yes
35970 # Use a header file that comes with gcc, so configuring glibc
35971 # with a fresh cross-compiler works.
35972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35973 # <limits.h> exists even on freestanding compilers.
35974 # On the NeXT, cc -E runs the code through the compiler's parser,
35975 # not just through cpp. "Syntax error" is here to catch this case.
35976 cat >conftest.$ac_ext <<_ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h. */
35983 # include <limits.h>
35985 # include <assert.h>
35989 if { (ac_try="$ac_cpp conftest.$ac_ext"
35990 case "(($ac_try" in
35991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35992 *) ac_try_echo=$ac_try;;
35994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35995 $as_echo "$ac_try_echo") >&5
35996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35998 grep -v '^ *+' conftest.er1 >conftest.err
36000 cat conftest.err >&5
36001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); } >/dev/null && {
36003 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36004 test ! -s conftest.err
36008 $as_echo "$as_me: failed program was:" >&5
36009 sed 's/^/| /' conftest.$ac_ext >&5
36011 # Broken: fails on valid input.
36015 rm -f conftest.err conftest.$ac_ext
36017 # OK, works on sane cases. Now check whether nonexistent headers
36018 # can be detected and how.
36019 cat >conftest.$ac_ext <<_ACEOF
36022 cat confdefs.h >>conftest.$ac_ext
36023 cat >>conftest.$ac_ext <<_ACEOF
36024 /* end confdefs.h. */
36025 #include <ac_nonexistent.h>
36027 if { (ac_try="$ac_cpp conftest.$ac_ext"
36028 case "(($ac_try" in
36029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36030 *) ac_try_echo=$ac_try;;
36032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36033 $as_echo "$ac_try_echo") >&5
36034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36036 grep -v '^ *+' conftest.er1 >conftest.err
36038 cat conftest.err >&5
36039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); } >/dev/null && {
36041 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36042 test ! -s conftest.err
36044 # Broken: success on invalid input.
36047 $as_echo "$as_me: failed program was:" >&5
36048 sed 's/^/| /' conftest.$ac_ext >&5
36050 # Passes both tests.
36055 rm -f conftest.err conftest.$ac_ext
36058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36059 rm -f conftest.err conftest.$ac_ext
36060 if $ac_preproc_ok; then
36065 ac_cv_prog_CXXCPP=$CXXCPP
36068 CXXCPP=$ac_cv_prog_CXXCPP
36070 ac_cv_prog_CXXCPP=$CXXCPP
36072 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
36073 $as_echo "$CXXCPP" >&6; }
36074 ac_preproc_ok=false
36075 for ac_cxx_preproc_warn_flag in '' yes
36077 # Use a header file that comes with gcc, so configuring glibc
36078 # with a fresh cross-compiler works.
36079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36080 # <limits.h> exists even on freestanding compilers.
36081 # On the NeXT, cc -E runs the code through the compiler's parser,
36082 # not just through cpp. "Syntax error" is here to catch this case.
36083 cat >conftest.$ac_ext <<_ACEOF
36086 cat confdefs.h >>conftest.$ac_ext
36087 cat >>conftest.$ac_ext <<_ACEOF
36088 /* end confdefs.h. */
36090 # include <limits.h>
36092 # include <assert.h>
36096 if { (ac_try="$ac_cpp conftest.$ac_ext"
36097 case "(($ac_try" in
36098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36099 *) ac_try_echo=$ac_try;;
36101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36102 $as_echo "$ac_try_echo") >&5
36103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36105 grep -v '^ *+' conftest.er1 >conftest.err
36107 cat conftest.err >&5
36108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36109 (exit $ac_status); } >/dev/null && {
36110 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36111 test ! -s conftest.err
36115 $as_echo "$as_me: failed program was:" >&5
36116 sed 's/^/| /' conftest.$ac_ext >&5
36118 # Broken: fails on valid input.
36122 rm -f conftest.err conftest.$ac_ext
36124 # OK, works on sane cases. Now check whether nonexistent headers
36125 # can be detected and how.
36126 cat >conftest.$ac_ext <<_ACEOF
36129 cat confdefs.h >>conftest.$ac_ext
36130 cat >>conftest.$ac_ext <<_ACEOF
36131 /* end confdefs.h. */
36132 #include <ac_nonexistent.h>
36134 if { (ac_try="$ac_cpp conftest.$ac_ext"
36135 case "(($ac_try" in
36136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36137 *) ac_try_echo=$ac_try;;
36139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36140 $as_echo "$ac_try_echo") >&5
36141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36143 grep -v '^ *+' conftest.er1 >conftest.err
36145 cat conftest.err >&5
36146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147 (exit $ac_status); } >/dev/null && {
36148 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36149 test ! -s conftest.err
36151 # Broken: success on invalid input.
36154 $as_echo "$as_me: failed program was:" >&5
36155 sed 's/^/| /' conftest.$ac_ext >&5
36157 # Passes both tests.
36162 rm -f conftest.err conftest.$ac_ext
36165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36166 rm -f conftest.err conftest.$ac_ext
36167 if $ac_preproc_ok; then
36170 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36172 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
36173 See \`config.log' for more details." >&5
36174 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
36175 See \`config.log' for more details." >&2;}
36176 { (exit 1); exit 1; }; }; }
36180 ac_cpp='$CXXCPP $CPPFLAGS'
36181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36189 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
36190 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36191 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
36192 if test -n "$ac_tool_prefix"; then
36193 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
36195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36198 $as_echo_n "checking for $ac_word... " >&6; }
36199 if test "${ac_cv_prog_F77+set}" = set; then
36200 $as_echo_n "(cached) " >&6
36202 if test -n "$F77"; then
36203 ac_cv_prog_F77="$F77" # Let the user override the test.
36205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36206 for as_dir in $PATH
36209 test -z "$as_dir" && as_dir=.
36210 for ac_exec_ext in '' $ac_executable_extensions; do
36211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36212 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
36213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36222 F77=$ac_cv_prog_F77
36223 if test -n "$F77"; then
36224 { $as_echo "$as_me:$LINENO: result: $F77" >&5
36225 $as_echo "$F77" >&6; }
36227 { $as_echo "$as_me:$LINENO: result: no" >&5
36228 $as_echo "no" >&6; }
36232 test -n "$F77" && break
36235 if test -z "$F77"; then
36237 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
36239 # Extract the first word of "$ac_prog", so it can be a program name with args.
36240 set dummy $ac_prog; ac_word=$2
36241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36242 $as_echo_n "checking for $ac_word... " >&6; }
36243 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
36244 $as_echo_n "(cached) " >&6
36246 if test -n "$ac_ct_F77"; then
36247 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
36249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36250 for as_dir in $PATH
36253 test -z "$as_dir" && as_dir=.
36254 for ac_exec_ext in '' $ac_executable_extensions; do
36255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36256 ac_cv_prog_ac_ct_F77="$ac_prog"
36257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36266 ac_ct_F77=$ac_cv_prog_ac_ct_F77
36267 if test -n "$ac_ct_F77"; then
36268 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
36269 $as_echo "$ac_ct_F77" >&6; }
36271 { $as_echo "$as_me:$LINENO: result: no" >&5
36272 $as_echo "no" >&6; }
36276 test -n "$ac_ct_F77" && break
36279 if test "x$ac_ct_F77" = x; then
36282 case $cross_compiling:$ac_tool_warned in
36284 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
36285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36286 ac_tool_warned=yes ;;
36293 # Provide some information about the compiler.
36294 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
36297 { (ac_try="$ac_compiler --version >&5"
36298 case "(($ac_try" in
36299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36300 *) ac_try_echo=$ac_try;;
36302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36303 $as_echo "$ac_try_echo") >&5
36304 (eval "$ac_compiler --version >&5") 2>&5
36306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); }
36308 { (ac_try="$ac_compiler -v >&5"
36309 case "(($ac_try" in
36310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36311 *) ac_try_echo=$ac_try;;
36313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36314 $as_echo "$ac_try_echo") >&5
36315 (eval "$ac_compiler -v >&5") 2>&5
36317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); }
36319 { (ac_try="$ac_compiler -V >&5"
36320 case "(($ac_try" in
36321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36322 *) ac_try_echo=$ac_try;;
36324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36325 $as_echo "$ac_try_echo") >&5
36326 (eval "$ac_compiler -V >&5") 2>&5
36328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329 (exit $ac_status); }
36332 # If we don't use `.F' as extension, the preprocessor is not run on the
36333 # input file. (Note that this only needs to work for GNU compilers.)
36334 ac_save_ext=$ac_ext
36336 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
36337 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
36338 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
36339 $as_echo_n "(cached) " >&6
36341 cat >conftest.$ac_ext <<_ACEOF
36349 rm -f conftest.$ac_objext
36350 if { (ac_try="$ac_compile"
36351 case "(($ac_try" in
36352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36353 *) ac_try_echo=$ac_try;;
36355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36356 $as_echo "$ac_try_echo") >&5
36357 (eval "$ac_compile") 2>conftest.er1
36359 grep -v '^ *+' conftest.er1 >conftest.err
36361 cat conftest.err >&5
36362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363 (exit $ac_status); } && {
36364 test -z "$ac_f77_werror_flag" ||
36365 test ! -s conftest.err
36366 } && test -s conftest.$ac_objext; then
36367 ac_compiler_gnu=yes
36369 $as_echo "$as_me: failed program was:" >&5
36370 sed 's/^/| /' conftest.$ac_ext >&5
36375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36376 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
36379 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
36380 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
36381 ac_ext=$ac_save_ext
36382 ac_test_FFLAGS=${FFLAGS+set}
36383 ac_save_FFLAGS=$FFLAGS
36385 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
36386 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
36387 if test "${ac_cv_prog_f77_g+set}" = set; then
36388 $as_echo_n "(cached) " >&6
36391 cat >conftest.$ac_ext <<_ACEOF
36396 rm -f conftest.$ac_objext
36397 if { (ac_try="$ac_compile"
36398 case "(($ac_try" in
36399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36400 *) ac_try_echo=$ac_try;;
36402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36403 $as_echo "$ac_try_echo") >&5
36404 (eval "$ac_compile") 2>conftest.er1
36406 grep -v '^ *+' conftest.er1 >conftest.err
36408 cat conftest.err >&5
36409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410 (exit $ac_status); } && {
36411 test -z "$ac_f77_werror_flag" ||
36412 test ! -s conftest.err
36413 } && test -s conftest.$ac_objext; then
36414 ac_cv_prog_f77_g=yes
36416 $as_echo "$as_me: failed program was:" >&5
36417 sed 's/^/| /' conftest.$ac_ext >&5
36419 ac_cv_prog_f77_g=no
36422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36425 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
36426 $as_echo "$ac_cv_prog_f77_g" >&6; }
36427 if test "$ac_test_FFLAGS" = set; then
36428 FFLAGS=$ac_save_FFLAGS
36429 elif test $ac_cv_prog_f77_g = yes; then
36430 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
36436 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
36443 if test $ac_compiler_gnu = yes; then
36449 ac_cpp='$CPP $CPPFLAGS'
36450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36456 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
36458 # find the maximum length of command line arguments
36459 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
36460 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
36461 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
36462 $as_echo_n "(cached) " >&6
36469 # On DJGPP, this test can blow up pretty badly due to problems in libc
36470 # (any single argument exceeding 2000 bytes causes a buffer overrun
36471 # during glob expansion). Even if it were fixed, the result of this
36472 # check would be larger than it should be.
36473 lt_cv_sys_max_cmd_len=12288; # 12K is about right
36477 # Under GNU Hurd, this test is not required because there is
36478 # no limit to the length of command line arguments.
36479 # Libtool will interpret -1 as no limit whatsoever
36480 lt_cv_sys_max_cmd_len=-1;
36484 # On Win9x/ME, this test blows up -- it succeeds, but takes
36485 # about 5 minutes as the teststring grows exponentially.
36486 # Worse, since 9x/ME are not pre-emptively multitasking,
36487 # you end up with a "frozen" computer, even though with patience
36488 # the test eventually succeeds (with a max line length of 256k).
36489 # Instead, let's just punt: use the minimum linelength reported by
36490 # all of the supported platforms: 8192 (on NT/2K/XP).
36491 lt_cv_sys_max_cmd_len=8192;
36495 # On AmigaOS with pdksh, this test takes hours, literally.
36496 # So we just punt and use a minimum line length of 8192.
36497 lt_cv_sys_max_cmd_len=8192;
36500 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
36501 # This has been around since 386BSD, at least. Likely further.
36502 if test -x /sbin/sysctl; then
36503 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
36504 elif test -x /usr/sbin/sysctl; then
36505 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
36507 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
36509 # And add a safety zone
36510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36514 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
36515 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
36516 # nice to cause kernel panics so lets avoid the loop below.
36517 # First set a reasonable default.
36518 lt_cv_sys_max_cmd_len=16384
36520 if test -x /sbin/sysconfig; then
36521 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
36522 *1*) lt_cv_sys_max_cmd_len=-1 ;;
36527 # If test is not a shell built-in, we'll probably end up computing a
36528 # maximum length that is only half of the actual maximum length, but
36530 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
36531 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
36532 = "XX$teststring") >/dev/null 2>&1 &&
36533 new_result=`expr "X$teststring" : ".*" 2>&1` &&
36534 lt_cv_sys_max_cmd_len=$new_result &&
36535 test $i != 17 # 1/2 MB should be enough
36538 teststring=$teststring$teststring
36541 # Add a significant safety factor because C++ compilers can tack on massive
36542 # amounts of additional arguments before passing them to the linker.
36543 # It appears as though 1/2 is a usable value.
36544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
36550 if test -n $lt_cv_sys_max_cmd_len ; then
36551 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
36552 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
36554 { $as_echo "$as_me:$LINENO: result: none" >&5
36555 $as_echo "none" >&6; }
36561 # Check for command to grab the raw symbol name followed by C symbol from nm.
36562 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
36563 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
36564 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
36565 $as_echo_n "(cached) " >&6
36568 # These are sane defaults that work on at least a few old systems.
36569 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
36571 # Character class describing NM global symbol codes.
36572 symcode='[BCDEGRST]'
36574 # Regexp to match symbols that can be accessed directly from C.
36575 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
36577 # Transform an extracted symbol line into a proper C declaration
36578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
36580 # Transform an extracted symbol line into symbol name and symbol address
36581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
36583 # Define system-specific variables.
36588 cygwin* | mingw* | pw32*)
36589 symcode='[ABCDGISTW]'
36591 hpux*) # Its linker distinguishes data from code symbols
36592 if test "$host_cpu" = ia64; then
36593 symcode='[ABCDEGRST]'
36595 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
36596 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
36599 if test "$host_cpu" = ia64; then
36600 symcode='[ABCDGIRSTW]'
36601 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
36602 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
36605 irix* | nonstopux*)
36606 symcode='[BCDEGRST]'
36609 symcode='[BCDEGQRST]'
36619 # Handle CRLF in mingw tool chain
36623 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
36627 # If we're using GNU nm, then use its standard symbol codes.
36628 case `$NM -V 2>&1` in
36629 *GNU* | *'with BFD'*)
36630 symcode='[ABCDGIRSTW]' ;;
36633 # Try without a prefix undercore, then with it.
36634 for ac_symprfx in "" "_"; do
36636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
36637 symxfrm="\\1 $ac_symprfx\\2 \\2"
36639 # Write the raw and C identifiers.
36640 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
36642 # Check to see that the pipe works correctly.
36646 cat > conftest.$ac_ext <<EOF
36651 void nm_test_func(){}
36655 int main(){nm_test_var='a';nm_test_func();return(0);}
36658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36659 (eval $ac_compile) 2>&5
36661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 (exit $ac_status); }; then
36663 # Now try to grab the symbols.
36665 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
36666 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
36668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669 (exit $ac_status); } && test -s "$nlist"; then
36670 # Try sorting and uniquifying the output.
36671 if sort "$nlist" | uniq > "$nlist"T; then
36672 mv -f "$nlist"T "$nlist"
36677 # Make sure that we snagged all the symbols we need.
36678 if grep ' nm_test_var$' "$nlist" >/dev/null; then
36679 if grep ' nm_test_func$' "$nlist" >/dev/null; then
36680 cat <<EOF > conftest.$ac_ext
36686 # Now generate the symbol file.
36687 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
36689 cat <<EOF >> conftest.$ac_ext
36690 #if defined (__STDC__) && __STDC__
36691 # define lt_ptr_t void *
36693 # define lt_ptr_t char *
36697 /* The mapping between symbol names and symbols. */
36702 lt_preloaded_symbols[] =
36705 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
36706 cat <<\EOF >> conftest.$ac_ext
36714 # Now try linking the two files.
36715 mv conftest.$ac_objext conftstm.$ac_objext
36716 lt_save_LIBS="$LIBS"
36717 lt_save_CFLAGS="$CFLAGS"
36718 LIBS="conftstm.$ac_objext"
36719 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
36720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36721 (eval $ac_link) 2>&5
36723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724 (exit $ac_status); } && test -s conftest${ac_exeext}; then
36727 LIBS="$lt_save_LIBS"
36728 CFLAGS="$lt_save_CFLAGS"
36730 echo "cannot find nm_test_func in $nlist" >&5
36733 echo "cannot find nm_test_var in $nlist" >&5
36736 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
36739 echo "$progname: failed program was:" >&5
36740 cat conftest.$ac_ext >&5
36742 rm -f conftest* conftst*
36744 # Do not use the global_symbol_pipe unless it works.
36745 if test "$pipe_works" = yes; then
36748 lt_cv_sys_global_symbol_pipe=
36754 if test -z "$lt_cv_sys_global_symbol_pipe"; then
36755 lt_cv_sys_global_symbol_to_cdecl=
36757 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
36758 { $as_echo "$as_me:$LINENO: result: failed" >&5
36759 $as_echo "failed" >&6; }
36761 { $as_echo "$as_me:$LINENO: result: ok" >&5
36762 $as_echo "ok" >&6; }
36765 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
36766 $as_echo_n "checking for objdir... " >&6; }
36767 if test "${lt_cv_objdir+set}" = set; then
36768 $as_echo_n "(cached) " >&6
36770 rm -f .libs 2>/dev/null
36771 mkdir .libs 2>/dev/null
36772 if test -d .libs; then
36775 # MS-DOS does not allow filenames that begin with a dot.
36778 rmdir .libs 2>/dev/null
36780 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
36781 $as_echo "$lt_cv_objdir" >&6; }
36782 objdir=$lt_cv_objdir
36790 # AIX sometimes has problems with the GCC collect2 program. For some
36791 # reason, if we set the COLLECT_NAMES environment variable, the problems
36792 # vanish in a puff of smoke.
36793 if test "X${COLLECT_NAMES+set}" != Xset; then
36795 export COLLECT_NAMES
36800 # Sed substitution that helps us do robust quoting. It backslashifies
36801 # metacharacters that are still active within double-quoted strings.
36802 Xsed='sed -e 1s/^X//'
36803 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
36805 # Same as above, but do not quote variable references.
36806 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
36808 # Sed substitution to delay expansion of an escaped shell variable in a
36809 # double_quote_subst'ed string.
36810 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
36812 # Sed substitution to avoid accidental globbing in evaled expressions
36813 no_glob_subst='s/\*/\\\*/g'
36818 # Global variables:
36819 default_ofile=libtool
36820 can_build_shared=yes
36822 # All known linkers require a `.a' archive for static linking (except MSVC,
36823 # which needs '.lib').
36825 ltmain="$ac_aux_dir/ltmain.sh"
36826 ofile="$default_ofile"
36827 with_gnu_ld="$lt_cv_prog_gnu_ld"
36829 if test -n "$ac_tool_prefix"; then
36830 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
36831 set dummy ${ac_tool_prefix}ar; ac_word=$2
36832 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36833 $as_echo_n "checking for $ac_word... " >&6; }
36834 if test "${ac_cv_prog_AR+set}" = set; then
36835 $as_echo_n "(cached) " >&6
36837 if test -n "$AR"; then
36838 ac_cv_prog_AR="$AR" # Let the user override the test.
36840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36841 for as_dir in $PATH
36844 test -z "$as_dir" && as_dir=.
36845 for ac_exec_ext in '' $ac_executable_extensions; do
36846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36847 ac_cv_prog_AR="${ac_tool_prefix}ar"
36848 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36858 if test -n "$AR"; then
36859 { $as_echo "$as_me:$LINENO: result: $AR" >&5
36860 $as_echo "$AR" >&6; }
36862 { $as_echo "$as_me:$LINENO: result: no" >&5
36863 $as_echo "no" >&6; }
36868 if test -z "$ac_cv_prog_AR"; then
36870 # Extract the first word of "ar", so it can be a program name with args.
36871 set dummy ar; ac_word=$2
36872 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36873 $as_echo_n "checking for $ac_word... " >&6; }
36874 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
36875 $as_echo_n "(cached) " >&6
36877 if test -n "$ac_ct_AR"; then
36878 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36881 for as_dir in $PATH
36884 test -z "$as_dir" && as_dir=.
36885 for ac_exec_ext in '' $ac_executable_extensions; do
36886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36887 ac_cv_prog_ac_ct_AR="ar"
36888 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36897 ac_ct_AR=$ac_cv_prog_ac_ct_AR
36898 if test -n "$ac_ct_AR"; then
36899 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
36900 $as_echo "$ac_ct_AR" >&6; }
36902 { $as_echo "$as_me:$LINENO: result: no" >&5
36903 $as_echo "no" >&6; }
36906 if test "x$ac_ct_AR" = x; then
36909 case $cross_compiling:$ac_tool_warned in
36911 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
36912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36913 ac_tool_warned=yes ;;
36918 AR="$ac_cv_prog_AR"
36921 if test -n "$ac_tool_prefix"; then
36922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
36923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
36924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36925 $as_echo_n "checking for $ac_word... " >&6; }
36926 if test "${ac_cv_prog_RANLIB+set}" = set; then
36927 $as_echo_n "(cached) " >&6
36929 if test -n "$RANLIB"; then
36930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
36932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36933 for as_dir in $PATH
36936 test -z "$as_dir" && as_dir=.
36937 for ac_exec_ext in '' $ac_executable_extensions; do
36938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
36940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36949 RANLIB=$ac_cv_prog_RANLIB
36950 if test -n "$RANLIB"; then
36951 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
36952 $as_echo "$RANLIB" >&6; }
36954 { $as_echo "$as_me:$LINENO: result: no" >&5
36955 $as_echo "no" >&6; }
36960 if test -z "$ac_cv_prog_RANLIB"; then
36961 ac_ct_RANLIB=$RANLIB
36962 # Extract the first word of "ranlib", so it can be a program name with args.
36963 set dummy ranlib; ac_word=$2
36964 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36965 $as_echo_n "checking for $ac_word... " >&6; }
36966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
36967 $as_echo_n "(cached) " >&6
36969 if test -n "$ac_ct_RANLIB"; then
36970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
36972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36973 for as_dir in $PATH
36976 test -z "$as_dir" && as_dir=.
36977 for ac_exec_ext in '' $ac_executable_extensions; do
36978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36979 ac_cv_prog_ac_ct_RANLIB="ranlib"
36980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
36990 if test -n "$ac_ct_RANLIB"; then
36991 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
36992 $as_echo "$ac_ct_RANLIB" >&6; }
36994 { $as_echo "$as_me:$LINENO: result: no" >&5
36995 $as_echo "no" >&6; }
36998 if test "x$ac_ct_RANLIB" = x; then
37001 case $cross_compiling:$ac_tool_warned in
37003 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37005 ac_tool_warned=yes ;;
37007 RANLIB=$ac_ct_RANLIB
37010 RANLIB="$ac_cv_prog_RANLIB"
37013 if test -n "$ac_tool_prefix"; then
37014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37015 set dummy ${ac_tool_prefix}strip; ac_word=$2
37016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37017 $as_echo_n "checking for $ac_word... " >&6; }
37018 if test "${ac_cv_prog_STRIP+set}" = set; then
37019 $as_echo_n "(cached) " >&6
37021 if test -n "$STRIP"; then
37022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37025 for as_dir in $PATH
37028 test -z "$as_dir" && as_dir=.
37029 for ac_exec_ext in '' $ac_executable_extensions; do
37030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37041 STRIP=$ac_cv_prog_STRIP
37042 if test -n "$STRIP"; then
37043 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
37044 $as_echo "$STRIP" >&6; }
37046 { $as_echo "$as_me:$LINENO: result: no" >&5
37047 $as_echo "no" >&6; }
37052 if test -z "$ac_cv_prog_STRIP"; then
37054 # Extract the first word of "strip", so it can be a program name with args.
37055 set dummy strip; ac_word=$2
37056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37057 $as_echo_n "checking for $ac_word... " >&6; }
37058 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37059 $as_echo_n "(cached) " >&6
37061 if test -n "$ac_ct_STRIP"; then
37062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37065 for as_dir in $PATH
37068 test -z "$as_dir" && as_dir=.
37069 for ac_exec_ext in '' $ac_executable_extensions; do
37070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37071 ac_cv_prog_ac_ct_STRIP="strip"
37072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37081 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37082 if test -n "$ac_ct_STRIP"; then
37083 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37084 $as_echo "$ac_ct_STRIP" >&6; }
37086 { $as_echo "$as_me:$LINENO: result: no" >&5
37087 $as_echo "no" >&6; }
37090 if test "x$ac_ct_STRIP" = x; then
37093 case $cross_compiling:$ac_tool_warned in
37095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37097 ac_tool_warned=yes ;;
37102 STRIP="$ac_cv_prog_STRIP"
37107 old_CFLAGS="$CFLAGS"
37109 # Set sane defaults for various variables
37110 test -z "$AR" && AR=ar
37111 test -z "$AR_FLAGS" && AR_FLAGS=cru
37112 test -z "$AS" && AS=as
37113 test -z "$CC" && CC=cc
37114 test -z "$LTCC" && LTCC=$CC
37115 test -z "$DLLTOOL" && DLLTOOL=dlltool
37116 test -z "$LD" && LD=ld
37117 test -z "$LN_S" && LN_S="ln -s"
37118 test -z "$MAGIC_CMD" && MAGIC_CMD=file
37119 test -z "$NM" && NM=nm
37120 test -z "$SED" && SED=sed
37121 test -z "$OBJDUMP" && OBJDUMP=objdump
37122 test -z "$RANLIB" && RANLIB=:
37123 test -z "$STRIP" && STRIP=:
37124 test -z "$ac_objext" && ac_objext=o
37126 # Determine commands to create old-style static archives.
37127 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
37128 old_postinstall_cmds='chmod 644 $oldlib'
37129 old_postuninstall_cmds=
37131 if test -n "$RANLIB"; then
37134 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
37137 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
37140 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
37143 for cc_temp in $compiler""; do
37145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37151 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
37154 # Only perform the check for file, if the check method requires it
37155 case $deplibs_check_method in
37157 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
37158 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
37159 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
37160 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
37161 $as_echo_n "(cached) " >&6
37165 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
37168 lt_save_MAGIC_CMD="$MAGIC_CMD"
37169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
37170 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
37171 for ac_dir in $ac_dummy; do
37173 test -z "$ac_dir" && ac_dir=.
37174 if test -f $ac_dir/${ac_tool_prefix}file; then
37175 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
37176 if test -n "$file_magic_test_file"; then
37177 case $deplibs_check_method in
37179 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
37180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37181 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
37182 $EGREP "$file_magic_regex" > /dev/null; then
37187 *** Warning: the command libtool uses to detect shared libraries,
37188 *** $file_magic_cmd, produces output that libtool cannot recognize.
37189 *** The result is that libtool may fail to recognize shared libraries
37190 *** as such. This will affect the creation of libtool libraries that
37191 *** depend on shared libraries, but programs linked with such libtool
37192 *** libraries will work regardless of this problem. Nevertheless, you
37193 *** may want to report the problem to your system manager and/or to
37194 *** bug-libtool@gnu.org
37204 MAGIC_CMD="$lt_save_MAGIC_CMD"
37209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37210 if test -n "$MAGIC_CMD"; then
37211 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
37212 $as_echo "$MAGIC_CMD" >&6; }
37214 { $as_echo "$as_me:$LINENO: result: no" >&5
37215 $as_echo "no" >&6; }
37218 if test -z "$lt_cv_path_MAGIC_CMD"; then
37219 if test -n "$ac_tool_prefix"; then
37220 { $as_echo "$as_me:$LINENO: checking for file" >&5
37221 $as_echo_n "checking for file... " >&6; }
37222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
37223 $as_echo_n "(cached) " >&6
37227 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
37230 lt_save_MAGIC_CMD="$MAGIC_CMD"
37231 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
37232 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
37233 for ac_dir in $ac_dummy; do
37235 test -z "$ac_dir" && ac_dir=.
37236 if test -f $ac_dir/file; then
37237 lt_cv_path_MAGIC_CMD="$ac_dir/file"
37238 if test -n "$file_magic_test_file"; then
37239 case $deplibs_check_method in
37241 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
37242 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37243 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
37244 $EGREP "$file_magic_regex" > /dev/null; then
37249 *** Warning: the command libtool uses to detect shared libraries,
37250 *** $file_magic_cmd, produces output that libtool cannot recognize.
37251 *** The result is that libtool may fail to recognize shared libraries
37252 *** as such. This will affect the creation of libtool libraries that
37253 *** depend on shared libraries, but programs linked with such libtool
37254 *** libraries will work regardless of this problem. Nevertheless, you
37255 *** may want to report the problem to your system manager and/or to
37256 *** bug-libtool@gnu.org
37266 MAGIC_CMD="$lt_save_MAGIC_CMD"
37271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37272 if test -n "$MAGIC_CMD"; then
37273 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
37274 $as_echo "$MAGIC_CMD" >&6; }
37276 { $as_echo "$as_me:$LINENO: result: no" >&5
37277 $as_echo "no" >&6; }
37290 enable_win32_dll=no
37292 # Check whether --enable-libtool-lock was given.
37293 if test "${enable_libtool_lock+set}" = set; then
37294 enableval=$enable_libtool_lock;
37297 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
37300 # Check whether --with-pic was given.
37301 if test "${with_pic+set}" = set; then
37302 withval=$with_pic; pic_mode="$withval"
37307 test -z "$pic_mode" && pic_mode=default
37309 # Use C for the default configuration in the libtool script
37313 ac_cpp='$CPP $CPPFLAGS'
37314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37319 # Source file extension for C test sources.
37322 # Object file extension for compiled C test sources.
37326 # Code to be used in simple compile tests
37327 lt_simple_compile_test_code="int some_variable = 0;\n"
37329 # Code to be used in simple link tests
37330 lt_simple_link_test_code='int main(){return(0);}\n'
37333 # If no C compiler was specified, use CC.
37336 # Allow CC to be a program name with arguments.
37340 # save warnings/boilerplate of simple test code
37341 ac_outfile=conftest.$ac_objext
37342 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
37343 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
37344 _lt_compiler_boilerplate=`cat conftest.err`
37347 ac_outfile=conftest.$ac_objext
37348 printf "$lt_simple_link_test_code" >conftest.$ac_ext
37349 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
37350 _lt_linker_boilerplate=`cat conftest.err`
37355 # Check for any special shared library compilation flags.
37358 if test "$GCC" = no; then
37361 lt_prog_cc_shlib='-belf'
37365 if test -n "$lt_prog_cc_shlib"; then
37367 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
37368 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
37371 cat <<AAW_EOF >>config.warnings
37372 \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries
37376 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
37379 { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
37380 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
37383 cat <<AAW_EOF >>config.warnings
37384 add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure
37388 lt_cv_prog_cc_can_build_shared=no
37394 # Check to make sure the static flag actually works.
37396 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
37397 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
37398 if test "${lt_prog_compiler_static_works+set}" = set; then
37399 $as_echo_n "(cached) " >&6
37401 lt_prog_compiler_static_works=no
37402 save_LDFLAGS="$LDFLAGS"
37403 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
37404 printf "$lt_simple_link_test_code" > conftest.$ac_ext
37405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
37406 # The linker can only warn and ignore the option if not recognized
37407 # So say no if there are warnings
37408 if test -s conftest.err; then
37409 # Append any errors to the config.log.
37410 cat conftest.err 1>&5
37411 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
37412 $SED '/^$/d' conftest.err >conftest.er2
37413 if diff conftest.exp conftest.er2 >/dev/null; then
37414 lt_prog_compiler_static_works=yes
37417 lt_prog_compiler_static_works=yes
37421 LDFLAGS="$save_LDFLAGS"
37424 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
37425 $as_echo "$lt_prog_compiler_static_works" >&6; }
37427 if test x"$lt_prog_compiler_static_works" = xyes; then
37430 lt_prog_compiler_static=
37436 ## There is no encapsulation within the following macros, do not change
37437 ## the running order or otherwise move them around unless you know exactly
37438 ## what you are doing...
37440 lt_prog_compiler_no_builtin_flag=
37442 if test "$GCC" = yes; then
37443 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
37446 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
37447 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
37448 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
37449 $as_echo_n "(cached) " >&6
37451 lt_cv_prog_compiler_rtti_exceptions=no
37452 ac_outfile=conftest.$ac_objext
37453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37454 lt_compiler_flag="-fno-rtti -fno-exceptions"
37455 # Insert the option either (1) after the last *FLAGS variable, or
37456 # (2) before a word containing "conftest.", or (3) at the end.
37457 # Note that $ac_compile itself does not contain backslashes and begins
37458 # with a dollar sign (not a hyphen), so the echo should work correctly.
37459 # The option is referenced via a variable to avoid confusing sed.
37460 lt_compile=`echo "$ac_compile" | $SED \
37461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37463 -e 's:$: $lt_compiler_flag:'`
37464 (eval echo "\"\$as_me:37464: $lt_compile\"" >&5)
37465 (eval "$lt_compile" 2>conftest.err)
37467 cat conftest.err >&5
37468 echo "$as_me:37468: \$? = $ac_status" >&5
37469 if (exit $ac_status) && test -s "$ac_outfile"; then
37470 # The compiler can only warn and ignore the option if not recognized
37471 # So say no if there are warnings other than the usual output.
37472 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
37473 $SED '/^$/d' conftest.err >conftest.er2
37474 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
37475 lt_cv_prog_compiler_rtti_exceptions=yes
37481 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
37482 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
37484 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
37485 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
37492 lt_prog_compiler_wl=
37493 lt_prog_compiler_pic=
37494 lt_prog_compiler_static=
37496 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
37497 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
37499 if test "$GCC" = yes; then
37500 lt_prog_compiler_wl='-Wl,'
37501 lt_prog_compiler_static='-static'
37505 # All AIX code is PIC.
37506 if test "$host_cpu" = ia64; then
37507 # AIX 5 now supports IA64 processor
37508 lt_prog_compiler_static='-Bstatic'
37513 # FIXME: we need at least 68020 code to build shared libraries, but
37514 # adding the `-m68020' flag to GCC prevents building anything better,
37516 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
37519 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
37520 # PIC is the default for these OSes.
37523 mingw* | pw32* | os2*)
37524 # This hack is so that the source file can tell whether it is being
37525 # built for inclusion in a dll (and should export symbols for example).
37526 lt_prog_compiler_pic='-DDLL_EXPORT'
37529 darwin* | rhapsody*)
37530 # PIC is the default on this platform
37531 # Common symbols not allowed in MH_DYLIB files
37532 lt_prog_compiler_pic='-fno-common'
37536 # Just because we use GCC doesn't mean we suddenly get shared libraries
37537 # on systems that don't support them.
37538 lt_prog_compiler_can_build_shared=no
37543 if test -d /usr/nec; then
37544 lt_prog_compiler_pic=-Kconform_pic
37549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
37550 # not for PA HP-UX.
37556 lt_prog_compiler_pic='-fPIC'
37562 lt_prog_compiler_pic='-fPIC'
37566 # PORTME Check for flag to pass linker flags through the system compiler.
37569 lt_prog_compiler_wl='-Wl,'
37570 if test "$host_cpu" = ia64; then
37571 # AIX 5 now supports IA64 processor
37572 lt_prog_compiler_static='-Bstatic'
37574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
37578 # PIC is the default on this platform
37579 # Common symbols not allowed in MH_DYLIB files
37580 case $cc_basename in
37582 lt_prog_compiler_pic='-qnocommon'
37583 lt_prog_compiler_wl='-Wl,'
37588 mingw* | pw32* | os2*)
37589 # This hack is so that the source file can tell whether it is being
37590 # built for inclusion in a dll (and should export symbols for example).
37591 lt_prog_compiler_pic='-DDLL_EXPORT'
37594 hpux9* | hpux10* | hpux11*)
37595 lt_prog_compiler_wl='-Wl,'
37596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
37597 # not for PA HP-UX.
37603 lt_prog_compiler_pic='+Z'
37606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
37607 lt_prog_compiler_static='${wl}-a ${wl}archive'
37610 irix5* | irix6* | nonstopux*)
37611 lt_prog_compiler_wl='-Wl,'
37612 # PIC (with -KPIC) is the default.
37613 lt_prog_compiler_static='-non_shared'
37617 lt_prog_compiler_pic='-KPIC'
37618 lt_prog_compiler_static='-Bstatic'
37622 case $cc_basename in
37624 lt_prog_compiler_wl='-Wl,'
37625 lt_prog_compiler_pic='-KPIC'
37626 lt_prog_compiler_static='-static'
37628 pgcc* | pgf77* | pgf90* | pgf95*)
37629 # Portland Group compilers (*not* the Pentium gcc compiler,
37630 # which looks to be a dead project)
37631 lt_prog_compiler_wl='-Wl,'
37632 lt_prog_compiler_pic='-fpic'
37633 lt_prog_compiler_static='-Bstatic'
37636 lt_prog_compiler_wl='-Wl,'
37637 # All Alpha code is PIC.
37638 lt_prog_compiler_static='-non_shared'
37643 osf3* | osf4* | osf5*)
37644 lt_prog_compiler_wl='-Wl,'
37645 # All OSF/1 code is PIC.
37646 lt_prog_compiler_static='-non_shared'
37650 lt_prog_compiler_pic='-Kpic'
37651 lt_prog_compiler_static='-dn'
37655 lt_prog_compiler_pic='-KPIC'
37656 lt_prog_compiler_static='-Bstatic'
37657 case $cc_basename in
37658 f77* | f90* | f95*)
37659 lt_prog_compiler_wl='-Qoption ld ';;
37661 lt_prog_compiler_wl='-Wl,';;
37666 lt_prog_compiler_wl='-Qoption ld '
37667 lt_prog_compiler_pic='-PIC'
37668 lt_prog_compiler_static='-Bstatic'
37671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
37672 lt_prog_compiler_wl='-Wl,'
37673 lt_prog_compiler_pic='-KPIC'
37674 lt_prog_compiler_static='-Bstatic'
37678 if test -d /usr/nec ;then
37679 lt_prog_compiler_pic='-Kconform_pic'
37680 lt_prog_compiler_static='-Bstatic'
37685 lt_prog_compiler_wl='-Wl,'
37686 lt_prog_compiler_can_build_shared=no
37690 lt_prog_compiler_pic='-pic'
37691 lt_prog_compiler_static='-Bstatic'
37695 lt_prog_compiler_can_build_shared=no
37700 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
37701 $as_echo "$lt_prog_compiler_pic" >&6; }
37704 # Check to make sure the PIC flag actually works.
37706 if test -n "$lt_prog_compiler_pic"; then
37708 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
37709 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
37710 if test "${lt_prog_compiler_pic_works+set}" = set; then
37711 $as_echo_n "(cached) " >&6
37713 lt_prog_compiler_pic_works=no
37714 ac_outfile=conftest.$ac_objext
37715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37716 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
37717 # Insert the option either (1) after the last *FLAGS variable, or
37718 # (2) before a word containing "conftest.", or (3) at the end.
37719 # Note that $ac_compile itself does not contain backslashes and begins
37720 # with a dollar sign (not a hyphen), so the echo should work correctly.
37721 # The option is referenced via a variable to avoid confusing sed.
37722 lt_compile=`echo "$ac_compile" | $SED \
37723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37725 -e 's:$: $lt_compiler_flag:'`
37726 (eval echo "\"\$as_me:37726: $lt_compile\"" >&5)
37727 (eval "$lt_compile" 2>conftest.err)
37729 cat conftest.err >&5
37730 echo "$as_me:37730: \$? = $ac_status" >&5
37731 if (exit $ac_status) && test -s "$ac_outfile"; then
37732 # The compiler can only warn and ignore the option if not recognized
37733 # So say no if there are warnings other than the usual output.
37734 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
37735 $SED '/^$/d' conftest.err >conftest.er2
37736 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
37737 lt_prog_compiler_pic_works=yes
37743 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
37744 $as_echo "$lt_prog_compiler_pic_works" >&6; }
37746 if test x"$lt_prog_compiler_pic_works" = xyes; then
37747 case $lt_prog_compiler_pic in
37749 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
37752 lt_prog_compiler_pic=
37753 lt_prog_compiler_can_build_shared=no
37758 # For platforms which do not support PIC, -DPIC is meaningless:
37760 lt_prog_compiler_pic=
37763 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
37767 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
37768 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
37769 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
37770 $as_echo_n "(cached) " >&6
37772 lt_cv_prog_compiler_c_o=no
37773 $rm -r conftest 2>/dev/null
37777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37779 lt_compiler_flag="-o out/conftest2.$ac_objext"
37780 # Insert the option either (1) after the last *FLAGS variable, or
37781 # (2) before a word containing "conftest.", or (3) at the end.
37782 # Note that $ac_compile itself does not contain backslashes and begins
37783 # with a dollar sign (not a hyphen), so the echo should work correctly.
37784 lt_compile=`echo "$ac_compile" | $SED \
37785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37787 -e 's:$: $lt_compiler_flag:'`
37788 (eval echo "\"\$as_me:37788: $lt_compile\"" >&5)
37789 (eval "$lt_compile" 2>out/conftest.err)
37791 cat out/conftest.err >&5
37792 echo "$as_me:37792: \$? = $ac_status" >&5
37793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
37795 # The compiler can only warn and ignore the option if not recognized
37796 # So say no if there are warnings
37797 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
37798 $SED '/^$/d' out/conftest.err >out/conftest.er2
37799 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
37800 lt_cv_prog_compiler_c_o=yes
37805 # SGI C++ compiler will create directory out/ii_files/ for
37806 # template instantiation
37807 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
37808 $rm out/* && rmdir out
37814 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
37815 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
37818 hard_links="nottested"
37819 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
37820 # do not overwrite the value of need_locks provided by the user
37821 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
37822 $as_echo_n "checking if we can lock with hard links... " >&6; }
37825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
37827 ln conftest.a conftest.b 2>&5 || hard_links=no
37828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
37829 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
37830 $as_echo "$hard_links" >&6; }
37831 if test "$hard_links" = no; then
37833 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
37834 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
37837 cat <<AAW_EOF >>config.warnings
37838 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
37848 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
37849 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
37852 allow_undefined_flag=
37853 enable_shared_with_static_runtimes=no
37855 archive_expsym_cmds=
37856 old_archive_From_new_cmds=
37857 old_archive_from_expsyms_cmds=
37858 export_dynamic_flag_spec=
37859 whole_archive_flag_spec=
37860 thread_safe_flag_spec=
37861 hardcode_libdir_flag_spec=
37862 hardcode_libdir_flag_spec_ld=
37863 hardcode_libdir_separator=
37865 hardcode_minus_L=no
37866 hardcode_shlibpath_var=unsupported
37867 link_all_deplibs=unknown
37868 hardcode_automatic=no
37870 module_expsym_cmds=
37871 always_export_symbols=no
37872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
37873 # include_expsyms should be a list of space-separated symbols to be *always*
37874 # included in the symbol list
37876 # exclude_expsyms can be an extended regexp of symbols to exclude
37877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
37878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
37879 # as well as any symbol that contains `d'.
37880 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
37881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
37882 # platforms (ab)use it in PIC code, but their linkers get confused if
37883 # the symbol is explicitly referenced. Since portable code cannot
37884 # rely on this symbol name, it's probably fine to never include it in
37885 # preloaded symbol tables.
37886 extract_expsyms_cmds=
37887 # Just being paranoid about ensuring that cc_basename is set.
37888 for cc_temp in $compiler""; do
37890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
37899 cygwin* | mingw* | pw32*)
37900 # FIXME: the MSVC++ port hasn't been tested in a loooong time
37901 # When not using gcc, we currently assume that we are using
37902 # Microsoft Visual C++.
37903 if test "$GCC" != yes; then
37913 if test "$with_gnu_ld" = yes; then
37914 # If archive_cmds runs LD, not CC, wlarc should be empty
37917 # Set some defaults for GNU ld with shared library support. These
37918 # are reset later if shared libraries are not supported. Putting them
37919 # here allows them to be overridden if necessary.
37920 runpath_var=LD_RUN_PATH
37921 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
37922 export_dynamic_flag_spec='${wl}--export-dynamic'
37923 # ancient GNU ld didn't support --whole-archive et. al.
37924 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
37925 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
37927 whole_archive_flag_spec=
37929 supports_anon_versioning=no
37930 case `$LD -v 2>/dev/null` in
37931 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
37932 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
37933 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
37934 *\ 2.11.*) ;; # other 2.11 versions
37935 *) supports_anon_versioning=yes ;;
37938 # See if GNU ld supports shared libraries.
37940 aix3* | aix4* | aix5*)
37941 # On AIX/PPC, the GNU linker is very broken
37942 if test "$host_cpu" != ia64; then
37946 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
37947 *** to be unable to reliably create shared libraries on AIX.
37948 *** Therefore, libtool is disabling shared libraries support. If you
37949 *** really care for shared libraries, you may want to modify your PATH
37950 *** so that a non-GNU linker is found, and then restart.
37957 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)'
37958 hardcode_libdir_flag_spec='-L$libdir'
37959 hardcode_minus_L=yes
37961 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
37962 # that the semantics of dynamic libraries on AmigaOS, at least up
37963 # to version 4, is to share data among multiple programs linked
37964 # with the same dynamic library. Since this doesn't match the
37965 # behavior of shared libraries on other platforms, we can't use
37971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
37972 allow_undefined_flag=unsupported
37973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
37974 # support --undefined. This deserves some investigation. FIXME
37975 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
37981 cygwin* | mingw* | pw32*)
37982 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
37983 # as there is no search path for DLLs.
37984 hardcode_libdir_flag_spec='-L$libdir'
37985 allow_undefined_flag=unsupported
37986 always_export_symbols=no
37987 enable_shared_with_static_runtimes=yes
37988 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
37990 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
37991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
37992 # If the export-symbols file already is a .def file (1st line
37993 # is EXPORTS), use it as is; otherwise, prepend...
37994 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
37995 cp $export_symbols $output_objdir/$soname.def;
37997 echo EXPORTS > $output_objdir/$soname.def;
37998 cat $export_symbols >> $output_objdir/$soname.def;
38000 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
38007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38009 case $cc_basename,$host_cpu in
38010 pgcc*) # Portland Group C compiler
38011 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'
38012 tmp_addflag=' $pic_flag'
38014 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
38015 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'
38016 tmp_addflag=' $pic_flag -Mnomain' ;;
38017 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
38018 tmp_addflag=' -i_dynamic' ;;
38019 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
38020 tmp_addflag=' -i_dynamic -nofor_main' ;;
38021 ifc* | ifort*) # Intel Fortran compiler
38022 tmp_addflag=' -nofor_main' ;;
38024 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38026 if test $supports_anon_versioning = yes; then
38027 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
38028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
38029 $echo "local: *; };" >> $output_objdir/$libname.ver~
38030 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
38038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
38039 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
38042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38048 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
38052 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
38053 *** create shared libraries on Solaris systems. Therefore, libtool
38054 *** is disabling shared libraries support. We urge you to upgrade GNU
38055 *** binutils to release 2.9.1 or newer. Another option is to modify
38056 *** your PATH or compiler configuration so that the native linker is
38057 *** used, and then restart.
38060 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38062 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38069 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38071 hardcode_direct=yes
38072 hardcode_shlibpath_var=no
38076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38085 if test "$ld_shlibs" = no; then
38087 hardcode_libdir_flag_spec=
38088 export_dynamic_flag_spec=
38089 whole_archive_flag_spec=
38092 # PORTME fill in a description of your system's linker (not GNU ld)
38095 allow_undefined_flag=unsupported
38096 always_export_symbols=yes
38097 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'
38098 # Note: this linker hardcodes the directories in LIBPATH if there
38099 # are no directories specified by -L.
38100 hardcode_minus_L=yes
38101 if test "$GCC" = yes && test -z "$link_static_flag"; then
38102 # Neither direct hardcoding nor static linking is supported with a
38104 hardcode_direct=unsupported
38109 if test "$host_cpu" = ia64; then
38110 # On IA64, the linker does run time linking by default, so we don't
38111 # have to do anything special.
38112 aix_use_runtimelinking=no
38113 exp_sym_flag='-Bexport'
38116 # If we're using GNU nm, then we don't want the "-C" option.
38117 # -C means demangle to AIX nm, but means don't demangle with GNU nm
38118 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
38119 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'
38121 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'
38123 aix_use_runtimelinking=no
38125 # Test if we are trying to use run time linking or normal
38126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
38127 # need to do runtime linking.
38128 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
38129 for ld_flag in $LDFLAGS; do
38130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
38131 aix_use_runtimelinking=yes
38137 exp_sym_flag='-bexport'
38138 no_entry_flag='-bnoentry'
38141 # When large executables or shared objects are built, AIX ld can
38142 # have problems creating the table of contents. If linking a library
38143 # or program results in "error TOC overflow" add -mminimal-toc to
38144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
38145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
38148 hardcode_direct=yes
38149 hardcode_libdir_separator=':'
38150 link_all_deplibs=yes
38152 if test "$GCC" = yes; then
38153 case $host_os in aix4.[012]|aix4.[012].*)
38154 # We only want to do this on AIX 4.2 and lower, the check
38155 # below for broken collect2 doesn't work under 4.3+
38156 collect2name=`${CC} -print-prog-name=collect2`
38157 if test -f "$collect2name" && \
38158 strings "$collect2name" | grep resolve_lib_name >/dev/null
38160 # We have reworked collect2
38161 hardcode_direct=yes
38163 # We have old collect2
38164 hardcode_direct=unsupported
38165 # It fails to find uninstalled libraries when the uninstalled
38166 # path is not listed in the libpath. Setting hardcode_minus_L
38167 # to unsupported forces relinking
38168 hardcode_minus_L=yes
38169 hardcode_libdir_flag_spec='-L$libdir'
38170 hardcode_libdir_separator=
38173 shared_flag='-shared'
38174 if test "$aix_use_runtimelinking" = yes; then
38175 shared_flag="$shared_flag "'${wl}-G'
38179 if test "$host_cpu" = ia64; then
38180 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
38181 # chokes on -Wl,-G. The following line is correct:
38184 if test "$aix_use_runtimelinking" = yes; then
38185 shared_flag='${wl}-G'
38187 shared_flag='${wl}-bM:SRE'
38192 # It seems that -bexpall does not export symbols beginning with
38193 # underscore (_), so it is better to generate a list of symbols to export.
38194 always_export_symbols=yes
38195 if test "$aix_use_runtimelinking" = yes; then
38196 # Warning - without using the other runtime loading flags (-brtl),
38197 # -berok will link without error, but may produce a broken library.
38198 allow_undefined_flag='-berok'
38199 # Determine the default libpath from the value encoded in an empty executable.
38200 cat >conftest.$ac_ext <<_ACEOF
38203 cat confdefs.h >>conftest.$ac_ext
38204 cat >>conftest.$ac_ext <<_ACEOF
38205 /* end confdefs.h. */
38215 rm -f conftest.$ac_objext conftest$ac_exeext
38216 if { (ac_try="$ac_link"
38217 case "(($ac_try" in
38218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38219 *) ac_try_echo=$ac_try;;
38221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38222 $as_echo "$ac_try_echo") >&5
38223 (eval "$ac_link") 2>conftest.er1
38225 grep -v '^ *+' conftest.er1 >conftest.err
38227 cat conftest.err >&5
38228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38229 (exit $ac_status); } && {
38230 test -z "$ac_c_werror_flag" ||
38231 test ! -s conftest.err
38232 } && test -s conftest$ac_exeext && {
38233 test "$cross_compiling" = yes ||
38234 $as_test_x conftest$ac_exeext
38237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
38239 # Check for a 64-bit object if we didn't find anything.
38240 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
38243 $as_echo "$as_me: failed program was:" >&5
38244 sed 's/^/| /' conftest.$ac_ext >&5
38249 rm -rf conftest.dSYM
38250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38251 conftest$ac_exeext conftest.$ac_ext
38252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
38255 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
38257 if test "$host_cpu" = ia64; then
38258 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
38259 allow_undefined_flag="-z nodefs"
38260 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
38262 # Determine the default libpath from the value encoded in an empty executable.
38263 cat >conftest.$ac_ext <<_ACEOF
38266 cat confdefs.h >>conftest.$ac_ext
38267 cat >>conftest.$ac_ext <<_ACEOF
38268 /* end confdefs.h. */
38278 rm -f conftest.$ac_objext conftest$ac_exeext
38279 if { (ac_try="$ac_link"
38280 case "(($ac_try" in
38281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38282 *) ac_try_echo=$ac_try;;
38284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38285 $as_echo "$ac_try_echo") >&5
38286 (eval "$ac_link") 2>conftest.er1
38288 grep -v '^ *+' conftest.er1 >conftest.err
38290 cat conftest.err >&5
38291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292 (exit $ac_status); } && {
38293 test -z "$ac_c_werror_flag" ||
38294 test ! -s conftest.err
38295 } && test -s conftest$ac_exeext && {
38296 test "$cross_compiling" = yes ||
38297 $as_test_x conftest$ac_exeext
38300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
38302 # Check for a 64-bit object if we didn't find anything.
38303 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
38306 $as_echo "$as_me: failed program was:" >&5
38307 sed 's/^/| /' conftest.$ac_ext >&5
38312 rm -rf conftest.dSYM
38313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38314 conftest$ac_exeext conftest.$ac_ext
38315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38317 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
38318 # Warning - without using the other run time loading flags,
38319 # -berok will link without error, but may produce a broken library.
38320 no_undefined_flag=' ${wl}-bernotok'
38321 allow_undefined_flag=' ${wl}-berok'
38322 # -bexpall does not export symbols beginning with underscore (_)
38323 always_export_symbols=yes
38324 # Exported symbols can be pulled into shared objects from archives
38325 whole_archive_flag_spec=' '
38326 archive_cmds_need_lc=yes
38327 # This is similar to how AIX traditionally builds its shared libraries.
38328 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
38334 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)'
38335 hardcode_libdir_flag_spec='-L$libdir'
38336 hardcode_minus_L=yes
38337 # see comment about different semantics on the GNU ld section
38342 export_dynamic_flag_spec=-rdynamic
38345 cygwin* | mingw* | pw32*)
38346 # When not using gcc, we currently assume that we are using
38347 # Microsoft Visual C++.
38348 # hardcode_libdir_flag_spec is actually meaningless, as there is
38349 # no search path for DLLs.
38350 hardcode_libdir_flag_spec=' '
38351 allow_undefined_flag=unsupported
38352 # Tell ltmain to make .lib files, not .a files.
38354 # Tell ltmain to make .dll files, not .so files.
38356 # FIXME: Setting linknames here is a bad hack.
38357 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
38358 # The linker will automatically build a .lib file if we build a DLL.
38359 old_archive_From_new_cmds='true'
38360 # FIXME: Should let the user specify the lib program.
38361 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
38362 fix_srcfile_path='`cygpath -w "$srcfile"`'
38363 enable_shared_with_static_runtimes=yes
38366 darwin* | rhapsody*)
38368 rhapsody* | darwin1.[012])
38369 allow_undefined_flag='${wl}-undefined ${wl}suppress'
38372 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
38373 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38375 case ${MACOSX_DEPLOYMENT_TARGET} in
38377 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38380 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
38386 archive_cmds_need_lc=no
38388 hardcode_automatic=yes
38389 hardcode_shlibpath_var=unsupported
38390 whole_archive_flag_spec=''
38391 link_all_deplibs=yes
38392 if test "$GCC" = yes ; then
38393 output_verbose_link_cmd='echo'
38394 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
38395 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
38396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
38397 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38398 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38400 case $cc_basename in
38402 output_verbose_link_cmd='echo'
38403 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
38404 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
38405 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
38406 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38407 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38418 hardcode_libdir_flag_spec='-L$libdir'
38419 hardcode_shlibpath_var=no
38426 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
38427 # support. Future versions do this automatically, but an explicit c++rt0.o
38428 # does not break anything, and helps significantly (at the cost of a little
38431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
38432 hardcode_libdir_flag_spec='-R$libdir'
38433 hardcode_direct=yes
38434 hardcode_shlibpath_var=no
38437 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
38439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38440 hardcode_direct=yes
38441 hardcode_minus_L=yes
38442 hardcode_shlibpath_var=no
38445 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
38446 freebsd* | kfreebsd*-gnu | dragonfly*)
38447 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
38448 hardcode_libdir_flag_spec='-R$libdir'
38449 hardcode_direct=yes
38450 hardcode_shlibpath_var=no
38454 if test "$GCC" = yes; then
38455 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'
38457 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'
38459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38460 hardcode_libdir_separator=:
38461 hardcode_direct=yes
38463 # hardcode_minus_L: Not really in the search PATH,
38464 # but as the default location of the library.
38465 hardcode_minus_L=yes
38466 export_dynamic_flag_spec='${wl}-E'
38470 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
38473 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38476 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38482 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
38485 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
38489 if test "$with_gnu_ld" = no; then
38492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38493 hardcode_libdir_flag_spec_ld='+b $libdir'
38494 hardcode_libdir_separator=:
38496 hardcode_shlibpath_var=no
38499 hardcode_libdir_flag_spec='-L$libdir'
38501 hardcode_shlibpath_var=no
38503 # hardcode_minus_L: Not really in the search PATH,
38504 # but as the default location of the library.
38505 hardcode_minus_L=yes
38508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38509 hardcode_libdir_separator=:
38510 hardcode_direct=yes
38511 export_dynamic_flag_spec='${wl}-E'
38513 # hardcode_minus_L: Not really in the search PATH,
38514 # but as the default location of the library.
38515 hardcode_minus_L=yes
38521 irix5* | irix6* | nonstopux*)
38522 if test "$GCC" = yes; then
38523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
38525 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
38526 hardcode_libdir_flag_spec_ld='-rpath $libdir'
38528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38529 hardcode_libdir_separator=:
38530 link_all_deplibs=yes
38534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
38535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
38537 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
38539 hardcode_libdir_flag_spec='-R$libdir'
38540 hardcode_direct=yes
38541 hardcode_shlibpath_var=no
38545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38546 hardcode_direct=yes
38547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38548 hardcode_libdir_separator=:
38549 hardcode_shlibpath_var=no
38553 hardcode_direct=yes
38554 hardcode_shlibpath_var=no
38555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
38556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38557 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
38558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
38559 export_dynamic_flag_spec='${wl}-E'
38562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
38563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38564 hardcode_libdir_flag_spec='-R$libdir'
38567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
38575 hardcode_libdir_flag_spec='-L$libdir'
38576 hardcode_minus_L=yes
38577 allow_undefined_flag=unsupported
38578 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'
38579 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
38583 if test "$GCC" = yes; then
38584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
38585 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
38587 allow_undefined_flag=' -expect_unresolved \*'
38588 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
38590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38591 hardcode_libdir_separator=:
38594 osf4* | osf5*) # as osf3* with the addition of -msym flag
38595 if test "$GCC" = yes; then
38596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
38597 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
38598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38600 allow_undefined_flag=' -expect_unresolved \*'
38601 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
38602 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
38603 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
38605 # Both c and cxx compiler support -rpath directly
38606 hardcode_libdir_flag_spec='-rpath $libdir'
38608 hardcode_libdir_separator=:
38612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38613 hardcode_shlibpath_var=no
38614 export_dynamic_flag_spec='${wl}-Bexport'
38615 runpath_var=LD_RUN_PATH
38616 hardcode_runpath_var=yes
38620 no_undefined_flag=' -z text'
38621 if test "x$archive_cmds" = "x"; then
38622 if test "$GCC" = yes; then
38624 if $CC -v --help 2>/dev/null | grep -- -shared > /dev/null 2> /dev/null; then
38625 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38626 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38627 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
38629 archive_cmds='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38630 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38631 $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
38635 lt_prog_compiler_static='-static'
38636 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
38637 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
38639 lt_prog_compiler_static='-static'
38642 hardcode_libdir_flag_spec='-R$libdir'
38643 hardcode_shlibpath_var=no
38645 solaris2.[0-5] | solaris2.[0-5].*) ;;
38647 # The compiler driver will combine linker options so we
38648 # cannot just pass the convience library names through
38649 # without $wl, iff we do not link with $LD.
38650 # Luckily, gcc supports the same syntax we need for Sun Studio.
38651 # Supported since Solaris 2.6 (maybe 2.5.1?)
38654 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
38656 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
38659 link_all_deplibs=yes
38663 if test "x$host_vendor" = xsequent; then
38664 # Use $CC to link under sequent, because it throws in some extra .o
38665 # files that make .init and .fini sections work.
38666 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
38668 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
38670 hardcode_libdir_flag_spec='-L$libdir'
38671 hardcode_direct=yes
38672 hardcode_minus_L=yes
38673 hardcode_shlibpath_var=no
38677 case $host_vendor in
38679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38680 hardcode_direct=yes # is this really true???
38683 ## LD is ld it makes a PLAMLIB
38684 ## CC just makes a GrossModule.
38685 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
38686 reload_cmds='$CC -r -o $output$reload_objs'
38690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38691 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
38694 runpath_var='LD_RUN_PATH'
38695 hardcode_shlibpath_var=no
38699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38700 hardcode_shlibpath_var=no
38701 export_dynamic_flag_spec='-Bexport'
38705 if test -d /usr/nec; then
38706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38707 hardcode_shlibpath_var=no
38708 runpath_var=LD_RUN_PATH
38709 hardcode_runpath_var=yes
38715 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
38716 hardcode_direct=yes
38717 hardcode_minus_L=no
38718 hardcode_shlibpath_var=no
38719 hardcode_runpath_var=yes
38720 runpath_var=LD_RUN_PATH
38723 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
38724 no_undefined_flag='${wl}-z ${wl}text'
38725 if test "$GCC" = yes; then
38726 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38728 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38730 runpath_var='LD_RUN_PATH'
38731 hardcode_shlibpath_var=no
38735 no_undefined_flag=' -z text'
38736 # $CC -shared without GNU ld will not create a library from C++
38737 # object files and a static libstdc++, better avoid it by now
38738 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
38739 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
38741 hardcode_libdir_flag_spec=
38742 hardcode_shlibpath_var=no
38743 runpath_var='LD_RUN_PATH'
38747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38748 hardcode_libdir_flag_spec='-L$libdir'
38749 hardcode_shlibpath_var=no
38758 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
38759 $as_echo "$ld_shlibs" >&6; }
38760 test "$ld_shlibs" = no && can_build_shared=no
38762 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
38763 if test "$GCC" = yes; then
38764 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
38768 # Do we need to explicitly link libc?
38770 case "x$archive_cmds_need_lc" in
38772 # Assume -lc should be added
38773 archive_cmds_need_lc=yes
38775 if test "$enable_shared" = yes && test "$GCC" = yes; then
38776 case $archive_cmds in
38778 # FIXME: we may have to deal with multi-command sequences.
38781 # Test whether the compiler implicitly links with -lc since on some
38782 # systems, -lgcc has to come before -lc. If gcc already passes -lc
38783 # to ld, don't add -lc before -lgcc.
38784 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
38785 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
38787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
38789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38790 (eval $ac_compile) 2>&5
38792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793 (exit $ac_status); } 2>conftest.err; then
38796 libobjs=conftest.$ac_objext
38798 wl=$lt_prog_compiler_wl
38804 lt_save_allow_undefined_flag=$allow_undefined_flag
38805 allow_undefined_flag=
38806 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
38807 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
38809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38810 (exit $ac_status); }
38812 archive_cmds_need_lc=no
38814 archive_cmds_need_lc=yes
38816 allow_undefined_flag=$lt_save_allow_undefined_flag
38818 cat conftest.err 1>&5
38821 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
38822 $as_echo "$archive_cmds_need_lc" >&6; }
38829 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
38830 $as_echo_n "checking dynamic linker characteristics... " >&6; }
38831 library_names_spec=
38832 libname_spec='lib$name'
38836 postuninstall_cmds=
38840 shlibpath_overrides_runpath=unknown
38842 dynamic_linker="$host_os ld.so"
38843 sys_lib_dlsearch_path_spec="/lib /usr/lib"
38844 if test "$GCC" = yes; then
38845 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
38846 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
38847 # if the path contains ";" then we assume it to be the separator
38848 # otherwise default to the standard path separator (i.e. ":") - it is
38849 # assumed that no part of a normal pathname contains ";" but that should
38850 # okay in the real world where ";" in dirpaths is itself problematic.
38851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
38853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
38856 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
38858 need_lib_prefix=unknown
38859 hardcode_into_libs=no
38861 # when you set need_version to no, make sure it does not cause -set_version
38862 # flags to be left without arguments
38863 need_version=unknown
38868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
38869 shlibpath_var=LIBPATH
38871 # AIX 3 has no versioning support, so we append a major version to the name.
38872 soname_spec='${libname}${release}${shared_ext}$major'
38879 hardcode_into_libs=yes
38880 if test "$host_cpu" = ia64; then
38881 # AIX 5 supports IA64
38882 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
38883 shlibpath_var=LD_LIBRARY_PATH
38885 # With GCC up to 2.95.x, collect2 would create an import file
38886 # for dependence libraries. The import file would start with
38887 # the line `#! .'. This would cause the generated library to
38888 # depend on `.', always an invalid library. This was fixed in
38889 # development snapshots of GCC prior to 3.0.
38891 aix4 | aix4.[01] | aix4.[01].*)
38892 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
38894 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
38897 can_build_shared=no
38901 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
38902 # soname into executable. Probably we can add versioning support to
38903 # collect2, so additional links can be useful in future.
38904 if test "$aix_use_runtimelinking" = yes; then
38905 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
38906 # instead of lib<name>.a to let people know that these are not
38907 # typical AIX shared libraries.
38908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38910 # We preserve .a as extension for shared libraries through AIX4.2
38911 # and later when we are not doing run time linking.
38912 library_names_spec='${libname}${release}.a $libname.a'
38913 soname_spec='${libname}${release}${shared_ext}$major'
38915 shlibpath_var=LIBPATH
38920 library_names_spec='$libname.ixlibrary $libname.a'
38921 # Create ${libname}_ixlibrary.a entries in /sys/libs.
38922 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'
38926 library_names_spec='${libname}${shared_ext}'
38927 dynamic_linker="$host_os ld.so"
38928 shlibpath_var=LIBRARY_PATH
38934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38935 soname_spec='${libname}${release}${shared_ext}$major'
38936 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
38937 shlibpath_var=LD_LIBRARY_PATH
38938 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
38939 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
38940 # the default ld.so.conf also contains /usr/contrib/lib and
38941 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
38942 # libtool to hard-code these into programs
38945 cygwin* | mingw* | pw32*)
38946 version_type=windows
38951 case $GCC,$host_os in
38952 yes,cygwin* | yes,mingw* | yes,pw32*)
38953 library_names_spec='$libname.dll.a'
38954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
38955 postinstall_cmds='base_file=`basename \${file}`~
38956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
38957 dldir=$destdir/`dirname \$dlpath`~
38958 test -d \$dldir || mkdir -p \$dldir~
38959 $install_prog $dir/$dlname \$dldir/$dlname~
38960 chmod a+x \$dldir/$dlname'
38961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
38962 dlpath=$dir/\$dldll~
38964 shlibpath_overrides_runpath=yes
38968 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
38969 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
38970 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
38973 # MinGW DLLs use traditional 'lib' prefix
38974 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
38975 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
38976 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
38977 # It is most probably a Windows format PATH printed by
38978 # mingw gcc, but we are running on Cygwin. Gcc prints its search
38979 # path with ; separators, and with drive letters. We can handle the
38980 # drive letters (cygwin fileutils understands them), so leave them,
38981 # especially as we might pass files found there to a mingw objdump,
38982 # which wouldn't understand a cygwinified path. Ahh.
38983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
38985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
38989 # pw32 DLLs use 'pw' prefix rather than 'lib'
38990 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
38996 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
38999 dynamic_linker='Win32 ld.exe'
39000 # FIXME: first we should search . and the directory the executable is in
39004 darwin* | rhapsody*)
39005 dynamic_linker="$host_os dyld"
39006 version_type=darwin
39009 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
39010 soname_spec='${libname}${release}${major}$shared_ext'
39011 shlibpath_overrides_runpath=yes
39012 shlibpath_var=DYLD_LIBRARY_PATH
39013 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
39014 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
39015 if test "$GCC" = yes; then
39016 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
39018 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
39020 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
39027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
39028 soname_spec='${libname}${release}${shared_ext}$major'
39029 shlibpath_var=LD_LIBRARY_PATH
39040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39041 soname_spec='${libname}${release}${shared_ext}$major'
39042 shlibpath_var=LD_LIBRARY_PATH
39043 shlibpath_overrides_runpath=no
39044 hardcode_into_libs=yes
39045 dynamic_linker='GNU ld.so'
39048 freebsd* | dragonfly*)
39049 # DragonFly does not have aout. When/if they implement a new
39050 # versioning mechanism, adjust this.
39051 if test -x /usr/bin/objformat; then
39052 objformat=`/usr/bin/objformat`
39055 freebsd[123]*) objformat=aout ;;
39056 *) objformat=elf ;;
39059 version_type=freebsd-$objformat
39060 case $version_type in
39062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
39067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
39071 shlibpath_var=LD_LIBRARY_PATH
39074 shlibpath_overrides_runpath=yes
39076 freebsd3.[01]* | freebsdelf3.[01]*)
39077 shlibpath_overrides_runpath=yes
39078 hardcode_into_libs=yes
39081 shlibpath_overrides_runpath=no
39082 hardcode_into_libs=yes
39091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
39092 soname_spec='${libname}${release}${shared_ext}$major'
39093 shlibpath_var=LD_LIBRARY_PATH
39094 hardcode_into_libs=yes
39097 hpux9* | hpux10* | hpux11*)
39098 # Give a soname corresponding to the major version so that dld.sl refuses to
39099 # link against other versions.
39106 hardcode_into_libs=yes
39107 dynamic_linker="$host_os dld.so"
39108 shlibpath_var=LD_LIBRARY_PATH
39109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
39110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39111 soname_spec='${libname}${release}${shared_ext}$major'
39112 if test "X$HPUX_IA64_MODE" = X32; then
39113 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
39115 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
39117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
39121 hardcode_into_libs=yes
39122 dynamic_linker="$host_os dld.sl"
39123 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
39124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
39125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39126 soname_spec='${libname}${release}${shared_ext}$major'
39127 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
39128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
39132 dynamic_linker="$host_os dld.sl"
39133 shlibpath_var=SHLIB_PATH
39134 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
39135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39136 soname_spec='${libname}${release}${shared_ext}$major'
39139 # HP-UX runs *really* slowly unless shared libraries are mode 555.
39140 postinstall_cmds='chmod 555 $lib'
39143 irix5* | irix6* | nonstopux*)
39145 nonstopux*) version_type=nonstopux ;;
39147 if test "$lt_cv_prog_gnu_ld" = yes; then
39155 soname_spec='${libname}${release}${shared_ext}$major'
39156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
39158 irix5* | nonstopux*)
39159 libsuff= shlibsuff=
39162 case $LD in # libtool.m4 will add one of these switches to LD
39163 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
39164 libsuff= shlibsuff= libmagic=32-bit;;
39165 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
39166 libsuff=32 shlibsuff=N32 libmagic=N32;;
39167 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
39168 libsuff=64 shlibsuff=64 libmagic=64-bit;;
39169 *) libsuff= shlibsuff= libmagic=never-match;;
39173 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
39174 shlibpath_overrides_runpath=no
39175 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
39176 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
39177 hardcode_into_libs=yes
39180 # No shared lib support for Linux oldld, aout, or coff.
39181 linux*oldld* | linux*aout* | linux*coff*)
39185 # This must be Linux ELF.
39190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39191 soname_spec='${libname}${release}${shared_ext}$major'
39192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
39193 shlibpath_var=LD_LIBRARY_PATH
39194 shlibpath_overrides_runpath=no
39195 # This implies no fast_install, which is unacceptable.
39196 # Some rework will be needed to allow for fast_install
39197 # before this can be enabled.
39198 hardcode_into_libs=yes
39200 # Append ld.so.conf contents to the search path
39201 if test -f /etc/ld.so.conf; then
39202 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
39203 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
39206 # We used to test for /lib/ld.so.1 and disable shared libraries on
39207 # powerpc, because MkLinux only supported shared libraries with the
39208 # GNU dynamic linker. Since this was broken with cross compilers,
39209 # most powerpc-linux boxes support dynamic linking these days and
39210 # people can always --disable-shared, the test was removed, and we
39211 # assume the GNU/Linux dynamic linker is in use.
39212 dynamic_linker='GNU/Linux ld.so'
39219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39220 soname_spec='${libname}${release}${shared_ext}$major'
39221 shlibpath_var=LD_LIBRARY_PATH
39222 shlibpath_overrides_runpath=no
39223 hardcode_into_libs=yes
39224 dynamic_linker='GNU ld.so'
39231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
39232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
39234 dynamic_linker='NetBSD (a.out) ld.so'
39236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39237 soname_spec='${libname}${release}${shared_ext}$major'
39238 dynamic_linker='NetBSD ld.elf_so'
39240 shlibpath_var=LD_LIBRARY_PATH
39241 shlibpath_overrides_runpath=yes
39242 hardcode_into_libs=yes
39247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39248 shlibpath_var=LD_LIBRARY_PATH
39249 shlibpath_overrides_runpath=yes
39256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39257 soname_spec='${libname}${release}${shared_ext}$major'
39258 shlibpath_var=LD_LIBRARY_PATH
39259 shlibpath_overrides_runpath=yes
39265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
39267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
39268 *) need_version=no ;;
39270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
39272 shlibpath_var=LD_LIBRARY_PATH
39273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
39275 openbsd2.[89] | openbsd2.[89].*)
39276 shlibpath_overrides_runpath=no
39279 shlibpath_overrides_runpath=yes
39283 shlibpath_overrides_runpath=yes
39288 libname_spec='$name'
39291 library_names_spec='$libname${shared_ext} $libname.a'
39292 dynamic_linker='OS/2 ld.exe'
39293 shlibpath_var=LIBPATH
39296 osf3* | osf4* | osf5*)
39300 soname_spec='${libname}${release}${shared_ext}$major'
39301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39302 shlibpath_var=LD_LIBRARY_PATH
39303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
39304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
39309 soname_spec='${libname}${release}${shared_ext}$major'
39310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39311 shlibpath_var=LD_LIBRARY_PATH
39318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39319 soname_spec='${libname}${release}${shared_ext}$major'
39320 shlibpath_var=LD_LIBRARY_PATH
39321 shlibpath_overrides_runpath=yes
39322 hardcode_into_libs=yes
39323 # ldd complains unless libraries are executable
39324 postinstall_cmds='chmod +x $lib'
39329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39330 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
39331 shlibpath_var=LD_LIBRARY_PATH
39332 shlibpath_overrides_runpath=yes
39333 if test "$with_gnu_ld" = yes; then
39339 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
39341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39342 soname_spec='${libname}${release}${shared_ext}$major'
39343 shlibpath_var=LD_LIBRARY_PATH
39344 case $host_vendor in
39346 shlibpath_overrides_runpath=no
39348 export_dynamic_flag_spec='${wl}-Blargedynsym'
39349 runpath_var=LD_RUN_PATH
39357 shlibpath_overrides_runpath=no
39358 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
39364 if test -d /usr/nec ;then
39366 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
39367 soname_spec='$libname${shared_ext}.$major'
39368 shlibpath_var=LD_LIBRARY_PATH
39374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39375 soname_spec='${libname}${release}${shared_ext}$major'
39376 shlibpath_var=LD_LIBRARY_PATH
39383 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
39384 $as_echo "$dynamic_linker" >&6; }
39385 test "$dynamic_linker" = no && can_build_shared=no
39387 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
39388 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
39390 if test -n "$hardcode_libdir_flag_spec" || \
39391 test -n "$runpath_var" || \
39392 test "X$hardcode_automatic" = "Xyes" ; then
39394 # We can hardcode non-existant directories.
39395 if test "$hardcode_direct" != no &&
39396 # If the only mechanism to avoid hardcoding is shlibpath_var, we
39397 # have to relink, otherwise we might link with an installed library
39398 # when we should be linking with a yet-to-be-installed one
39399 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
39400 test "$hardcode_minus_L" != no; then
39401 # Linking always hardcodes the temporary library directory.
39402 hardcode_action=relink
39404 # We can link without hardcoding, and we can hardcode nonexisting dirs.
39405 hardcode_action=immediate
39408 # We cannot hardcode anything, or else we can only hardcode existing
39410 hardcode_action=unsupported
39412 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
39413 $as_echo "$hardcode_action" >&6; }
39415 if test "$hardcode_action" = relink; then
39416 # Fast installation is not supported
39417 enable_fast_install=no
39418 elif test "$shlibpath_overrides_runpath" = yes ||
39419 test "$enable_shared" = no; then
39420 # Fast installation is not necessary
39421 enable_fast_install=needless
39426 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
39427 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
39428 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
39429 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
39430 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
39431 { $as_echo "$as_me:$LINENO: result: yes" >&5
39432 $as_echo "yes" >&6; }
39434 # FIXME - insert some real tests, host_os isn't really good enough
39437 if test -n "$STRIP" ; then
39438 striplib="$STRIP -x"
39439 { $as_echo "$as_me:$LINENO: result: yes" >&5
39440 $as_echo "yes" >&6; }
39442 { $as_echo "$as_me:$LINENO: result: no" >&5
39443 $as_echo "no" >&6; }
39447 { $as_echo "$as_me:$LINENO: result: no" >&5
39448 $as_echo "no" >&6; }
39453 if test "x$enable_dlopen" != xyes; then
39454 enable_dlopen=unknown
39455 enable_dlopen_self=unknown
39456 enable_dlopen_self_static=unknown
39463 lt_cv_dlopen="load_add_on"
39465 lt_cv_dlopen_self=yes
39469 lt_cv_dlopen="LoadLibrary"
39474 lt_cv_dlopen="dlopen"
39479 # if libdl is installed we need to link against it
39480 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39481 $as_echo_n "checking for dlopen in -ldl... " >&6; }
39482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39483 $as_echo_n "(cached) " >&6
39485 ac_check_lib_save_LIBS=$LIBS
39487 cat >conftest.$ac_ext <<_ACEOF
39490 cat confdefs.h >>conftest.$ac_ext
39491 cat >>conftest.$ac_ext <<_ACEOF
39492 /* end confdefs.h. */
39494 /* Override any GCC internal prototype to avoid an error.
39495 Use char because int might match the return type of a GCC
39496 builtin and then its argument prototype would still apply. */
39509 rm -f conftest.$ac_objext conftest$ac_exeext
39510 if { (ac_try="$ac_link"
39511 case "(($ac_try" in
39512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39513 *) ac_try_echo=$ac_try;;
39515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39516 $as_echo "$ac_try_echo") >&5
39517 (eval "$ac_link") 2>conftest.er1
39519 grep -v '^ *+' conftest.er1 >conftest.err
39521 cat conftest.err >&5
39522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523 (exit $ac_status); } && {
39524 test -z "$ac_c_werror_flag" ||
39525 test ! -s conftest.err
39526 } && test -s conftest$ac_exeext && {
39527 test "$cross_compiling" = yes ||
39528 $as_test_x conftest$ac_exeext
39530 ac_cv_lib_dl_dlopen=yes
39532 $as_echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39535 ac_cv_lib_dl_dlopen=no
39538 rm -rf conftest.dSYM
39539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39540 conftest$ac_exeext conftest.$ac_ext
39541 LIBS=$ac_check_lib_save_LIBS
39543 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39544 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
39545 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
39546 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
39549 lt_cv_dlopen="dyld"
39551 lt_cv_dlopen_self=yes
39558 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
39559 $as_echo_n "checking for shl_load... " >&6; }
39560 if test "${ac_cv_func_shl_load+set}" = set; then
39561 $as_echo_n "(cached) " >&6
39563 cat >conftest.$ac_ext <<_ACEOF
39566 cat confdefs.h >>conftest.$ac_ext
39567 cat >>conftest.$ac_ext <<_ACEOF
39568 /* end confdefs.h. */
39569 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
39570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39571 #define shl_load innocuous_shl_load
39573 /* System header to define __stub macros and hopefully few prototypes,
39574 which can conflict with char shl_load (); below.
39575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39576 <limits.h> exists even on freestanding compilers. */
39579 # include <limits.h>
39581 # include <assert.h>
39586 /* Override any GCC internal prototype to avoid an error.
39587 Use char because int might match the return type of a GCC
39588 builtin and then its argument prototype would still apply. */
39593 /* The GNU C library defines this for functions which it implements
39594 to always fail with ENOSYS. Some functions are actually named
39595 something starting with __ and the normal name is an alias. */
39596 #if defined __stub_shl_load || defined __stub___shl_load
39603 return shl_load ();
39608 rm -f conftest.$ac_objext conftest$ac_exeext
39609 if { (ac_try="$ac_link"
39610 case "(($ac_try" in
39611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39612 *) ac_try_echo=$ac_try;;
39614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39615 $as_echo "$ac_try_echo") >&5
39616 (eval "$ac_link") 2>conftest.er1
39618 grep -v '^ *+' conftest.er1 >conftest.err
39620 cat conftest.err >&5
39621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622 (exit $ac_status); } && {
39623 test -z "$ac_c_werror_flag" ||
39624 test ! -s conftest.err
39625 } && test -s conftest$ac_exeext && {
39626 test "$cross_compiling" = yes ||
39627 $as_test_x conftest$ac_exeext
39629 ac_cv_func_shl_load=yes
39631 $as_echo "$as_me: failed program was:" >&5
39632 sed 's/^/| /' conftest.$ac_ext >&5
39634 ac_cv_func_shl_load=no
39637 rm -rf conftest.dSYM
39638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39639 conftest$ac_exeext conftest.$ac_ext
39641 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
39642 $as_echo "$ac_cv_func_shl_load" >&6; }
39643 if test "x$ac_cv_func_shl_load" = x""yes; then
39644 lt_cv_dlopen="shl_load"
39646 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
39647 $as_echo_n "checking for shl_load in -ldld... " >&6; }
39648 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
39649 $as_echo_n "(cached) " >&6
39651 ac_check_lib_save_LIBS=$LIBS
39653 cat >conftest.$ac_ext <<_ACEOF
39656 cat confdefs.h >>conftest.$ac_ext
39657 cat >>conftest.$ac_ext <<_ACEOF
39658 /* end confdefs.h. */
39660 /* Override any GCC internal prototype to avoid an error.
39661 Use char because int might match the return type of a GCC
39662 builtin and then its argument prototype would still apply. */
39670 return shl_load ();
39675 rm -f conftest.$ac_objext conftest$ac_exeext
39676 if { (ac_try="$ac_link"
39677 case "(($ac_try" in
39678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39679 *) ac_try_echo=$ac_try;;
39681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39682 $as_echo "$ac_try_echo") >&5
39683 (eval "$ac_link") 2>conftest.er1
39685 grep -v '^ *+' conftest.er1 >conftest.err
39687 cat conftest.err >&5
39688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689 (exit $ac_status); } && {
39690 test -z "$ac_c_werror_flag" ||
39691 test ! -s conftest.err
39692 } && test -s conftest$ac_exeext && {
39693 test "$cross_compiling" = yes ||
39694 $as_test_x conftest$ac_exeext
39696 ac_cv_lib_dld_shl_load=yes
39698 $as_echo "$as_me: failed program was:" >&5
39699 sed 's/^/| /' conftest.$ac_ext >&5
39701 ac_cv_lib_dld_shl_load=no
39704 rm -rf conftest.dSYM
39705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39706 conftest$ac_exeext conftest.$ac_ext
39707 LIBS=$ac_check_lib_save_LIBS
39709 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
39710 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
39711 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
39712 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
39714 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
39715 $as_echo_n "checking for dlopen... " >&6; }
39716 if test "${ac_cv_func_dlopen+set}" = set; then
39717 $as_echo_n "(cached) " >&6
39719 cat >conftest.$ac_ext <<_ACEOF
39722 cat confdefs.h >>conftest.$ac_ext
39723 cat >>conftest.$ac_ext <<_ACEOF
39724 /* end confdefs.h. */
39725 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
39726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39727 #define dlopen innocuous_dlopen
39729 /* System header to define __stub macros and hopefully few prototypes,
39730 which can conflict with char dlopen (); below.
39731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39732 <limits.h> exists even on freestanding compilers. */
39735 # include <limits.h>
39737 # include <assert.h>
39742 /* Override any GCC internal prototype to avoid an error.
39743 Use char because int might match the return type of a GCC
39744 builtin and then its argument prototype would still apply. */
39749 /* The GNU C library defines this for functions which it implements
39750 to always fail with ENOSYS. Some functions are actually named
39751 something starting with __ and the normal name is an alias. */
39752 #if defined __stub_dlopen || defined __stub___dlopen
39764 rm -f conftest.$ac_objext conftest$ac_exeext
39765 if { (ac_try="$ac_link"
39766 case "(($ac_try" in
39767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39768 *) ac_try_echo=$ac_try;;
39770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39771 $as_echo "$ac_try_echo") >&5
39772 (eval "$ac_link") 2>conftest.er1
39774 grep -v '^ *+' conftest.er1 >conftest.err
39776 cat conftest.err >&5
39777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778 (exit $ac_status); } && {
39779 test -z "$ac_c_werror_flag" ||
39780 test ! -s conftest.err
39781 } && test -s conftest$ac_exeext && {
39782 test "$cross_compiling" = yes ||
39783 $as_test_x conftest$ac_exeext
39785 ac_cv_func_dlopen=yes
39787 $as_echo "$as_me: failed program was:" >&5
39788 sed 's/^/| /' conftest.$ac_ext >&5
39790 ac_cv_func_dlopen=no
39793 rm -rf conftest.dSYM
39794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39795 conftest$ac_exeext conftest.$ac_ext
39797 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
39798 $as_echo "$ac_cv_func_dlopen" >&6; }
39799 if test "x$ac_cv_func_dlopen" = x""yes; then
39800 lt_cv_dlopen="dlopen"
39802 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39803 $as_echo_n "checking for dlopen in -ldl... " >&6; }
39804 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39805 $as_echo_n "(cached) " >&6
39807 ac_check_lib_save_LIBS=$LIBS
39809 cat >conftest.$ac_ext <<_ACEOF
39812 cat confdefs.h >>conftest.$ac_ext
39813 cat >>conftest.$ac_ext <<_ACEOF
39814 /* end confdefs.h. */
39816 /* Override any GCC internal prototype to avoid an error.
39817 Use char because int might match the return type of a GCC
39818 builtin and then its argument prototype would still apply. */
39831 rm -f conftest.$ac_objext conftest$ac_exeext
39832 if { (ac_try="$ac_link"
39833 case "(($ac_try" in
39834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39835 *) ac_try_echo=$ac_try;;
39837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39838 $as_echo "$ac_try_echo") >&5
39839 (eval "$ac_link") 2>conftest.er1
39841 grep -v '^ *+' conftest.er1 >conftest.err
39843 cat conftest.err >&5
39844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); } && {
39846 test -z "$ac_c_werror_flag" ||
39847 test ! -s conftest.err
39848 } && test -s conftest$ac_exeext && {
39849 test "$cross_compiling" = yes ||
39850 $as_test_x conftest$ac_exeext
39852 ac_cv_lib_dl_dlopen=yes
39854 $as_echo "$as_me: failed program was:" >&5
39855 sed 's/^/| /' conftest.$ac_ext >&5
39857 ac_cv_lib_dl_dlopen=no
39860 rm -rf conftest.dSYM
39861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39862 conftest$ac_exeext conftest.$ac_ext
39863 LIBS=$ac_check_lib_save_LIBS
39865 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39866 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
39867 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
39868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
39870 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
39871 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
39872 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
39873 $as_echo_n "(cached) " >&6
39875 ac_check_lib_save_LIBS=$LIBS
39876 LIBS="-lsvld $LIBS"
39877 cat >conftest.$ac_ext <<_ACEOF
39880 cat confdefs.h >>conftest.$ac_ext
39881 cat >>conftest.$ac_ext <<_ACEOF
39882 /* end confdefs.h. */
39884 /* Override any GCC internal prototype to avoid an error.
39885 Use char because int might match the return type of a GCC
39886 builtin and then its argument prototype would still apply. */
39899 rm -f conftest.$ac_objext conftest$ac_exeext
39900 if { (ac_try="$ac_link"
39901 case "(($ac_try" in
39902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39903 *) ac_try_echo=$ac_try;;
39905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39906 $as_echo "$ac_try_echo") >&5
39907 (eval "$ac_link") 2>conftest.er1
39909 grep -v '^ *+' conftest.er1 >conftest.err
39911 cat conftest.err >&5
39912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); } && {
39914 test -z "$ac_c_werror_flag" ||
39915 test ! -s conftest.err
39916 } && test -s conftest$ac_exeext && {
39917 test "$cross_compiling" = yes ||
39918 $as_test_x conftest$ac_exeext
39920 ac_cv_lib_svld_dlopen=yes
39922 $as_echo "$as_me: failed program was:" >&5
39923 sed 's/^/| /' conftest.$ac_ext >&5
39925 ac_cv_lib_svld_dlopen=no
39928 rm -rf conftest.dSYM
39929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39930 conftest$ac_exeext conftest.$ac_ext
39931 LIBS=$ac_check_lib_save_LIBS
39933 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
39934 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
39935 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
39936 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
39938 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
39939 $as_echo_n "checking for dld_link in -ldld... " >&6; }
39940 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
39941 $as_echo_n "(cached) " >&6
39943 ac_check_lib_save_LIBS=$LIBS
39945 cat >conftest.$ac_ext <<_ACEOF
39948 cat confdefs.h >>conftest.$ac_ext
39949 cat >>conftest.$ac_ext <<_ACEOF
39950 /* end confdefs.h. */
39952 /* Override any GCC internal prototype to avoid an error.
39953 Use char because int might match the return type of a GCC
39954 builtin and then its argument prototype would still apply. */
39962 return dld_link ();
39967 rm -f conftest.$ac_objext conftest$ac_exeext
39968 if { (ac_try="$ac_link"
39969 case "(($ac_try" in
39970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39971 *) ac_try_echo=$ac_try;;
39973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39974 $as_echo "$ac_try_echo") >&5
39975 (eval "$ac_link") 2>conftest.er1
39977 grep -v '^ *+' conftest.er1 >conftest.err
39979 cat conftest.err >&5
39980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39981 (exit $ac_status); } && {
39982 test -z "$ac_c_werror_flag" ||
39983 test ! -s conftest.err
39984 } && test -s conftest$ac_exeext && {
39985 test "$cross_compiling" = yes ||
39986 $as_test_x conftest$ac_exeext
39988 ac_cv_lib_dld_dld_link=yes
39990 $as_echo "$as_me: failed program was:" >&5
39991 sed 's/^/| /' conftest.$ac_ext >&5
39993 ac_cv_lib_dld_dld_link=no
39996 rm -rf conftest.dSYM
39997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39998 conftest$ac_exeext conftest.$ac_ext
39999 LIBS=$ac_check_lib_save_LIBS
40001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
40002 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
40003 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
40004 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
40025 if test "x$lt_cv_dlopen" != xno; then
40031 case $lt_cv_dlopen in
40033 save_CPPFLAGS="$CPPFLAGS"
40034 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
40036 save_LDFLAGS="$LDFLAGS"
40037 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
40040 LIBS="$lt_cv_dlopen_libs $LIBS"
40042 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
40043 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
40044 if test "${lt_cv_dlopen_self+set}" = set; then
40045 $as_echo_n "(cached) " >&6
40047 if test "$cross_compiling" = yes; then :
40048 lt_cv_dlopen_self=cross
40050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
40051 lt_status=$lt_dlunknown
40052 cat > conftest.$ac_ext <<EOF
40053 #line 40053 "configure"
40054 #include "confdefs.h"
40063 # define LT_DLGLOBAL RTLD_GLOBAL
40066 # define LT_DLGLOBAL DL_GLOBAL
40068 # define LT_DLGLOBAL 0
40072 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
40073 find out it does not work in some platform. */
40074 #ifndef LT_DLLAZY_OR_NOW
40076 # define LT_DLLAZY_OR_NOW RTLD_LAZY
40079 # define LT_DLLAZY_OR_NOW DL_LAZY
40082 # define LT_DLLAZY_OR_NOW RTLD_NOW
40085 # define LT_DLLAZY_OR_NOW DL_NOW
40087 # define LT_DLLAZY_OR_NOW 0
40095 extern "C" void exit (int);
40098 void fnord() { int i=42;}
40101 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
40102 int status = $lt_dlunknown;
40106 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
40107 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
40108 /* dlclose (self); */
40114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40115 (eval $ac_link) 2>&5
40117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
40119 (./conftest; exit; ) >&5 2>/dev/null
40121 case x$lt_status in
40122 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
40123 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
40124 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
40127 # compilation failed
40128 lt_cv_dlopen_self=no
40135 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
40136 $as_echo "$lt_cv_dlopen_self" >&6; }
40138 if test "x$lt_cv_dlopen_self" = xyes; then
40139 LDFLAGS="$LDFLAGS $link_static_flag"
40140 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
40141 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
40142 if test "${lt_cv_dlopen_self_static+set}" = set; then
40143 $as_echo_n "(cached) " >&6
40145 if test "$cross_compiling" = yes; then :
40146 lt_cv_dlopen_self_static=cross
40148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
40149 lt_status=$lt_dlunknown
40150 cat > conftest.$ac_ext <<EOF
40151 #line 40151 "configure"
40152 #include "confdefs.h"
40161 # define LT_DLGLOBAL RTLD_GLOBAL
40164 # define LT_DLGLOBAL DL_GLOBAL
40166 # define LT_DLGLOBAL 0
40170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
40171 find out it does not work in some platform. */
40172 #ifndef LT_DLLAZY_OR_NOW
40174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
40177 # define LT_DLLAZY_OR_NOW DL_LAZY
40180 # define LT_DLLAZY_OR_NOW RTLD_NOW
40183 # define LT_DLLAZY_OR_NOW DL_NOW
40185 # define LT_DLLAZY_OR_NOW 0
40193 extern "C" void exit (int);
40196 void fnord() { int i=42;}
40199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
40200 int status = $lt_dlunknown;
40204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
40205 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
40206 /* dlclose (self); */
40212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40213 (eval $ac_link) 2>&5
40215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40216 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
40217 (./conftest; exit; ) >&5 2>/dev/null
40219 case x$lt_status in
40220 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
40221 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
40222 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
40225 # compilation failed
40226 lt_cv_dlopen_self_static=no
40233 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
40234 $as_echo "$lt_cv_dlopen_self_static" >&6; }
40237 CPPFLAGS="$save_CPPFLAGS"
40238 LDFLAGS="$save_LDFLAGS"
40243 case $lt_cv_dlopen_self in
40244 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
40245 *) enable_dlopen_self=unknown ;;
40248 case $lt_cv_dlopen_self_static in
40249 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
40250 *) enable_dlopen_self_static=unknown ;;
40255 # Report which librarie types wil actually be built
40256 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
40257 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
40258 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
40259 $as_echo "$can_build_shared" >&6; }
40261 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
40262 $as_echo_n "checking whether to build shared libraries... " >&6; }
40263 test "$can_build_shared" = "no" && enable_shared=no
40265 # On AIX, shared libraries and static libraries use the same namespace, and
40266 # are all built from PIC.
40269 test "$enable_shared" = yes && enable_static=no
40270 if test -n "$RANLIB"; then
40271 archive_cmds="$archive_cmds~\$RANLIB \$lib"
40272 postinstall_cmds='$RANLIB $lib'
40277 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
40278 test "$enable_shared" = yes && enable_static=no
40282 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
40283 $as_echo "$enable_shared" >&6; }
40285 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
40286 $as_echo_n "checking whether to build static libraries... " >&6; }
40287 # Make sure either enable_shared or enable_static is yes.
40288 test "$enable_shared" = yes || enable_static=yes
40289 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
40290 $as_echo "$enable_static" >&6; }
40292 # The else clause should only fire when bootstrapping the
40293 # libtool distribution, otherwise you forgot to ship ltmain.sh
40294 # with your package, and you will get complaints that there are
40295 # no rules to generate ltmain.sh.
40296 if test -f "$ltmain"; then
40297 # See if we are running on zsh, and set the options which allow our commands through
40298 # without removal of \ escapes.
40299 if test -n "${ZSH_VERSION+set}" ; then
40300 setopt NO_GLOB_SUBST
40302 # Now quote all the things that may contain metacharacters while being
40303 # careful not to overquote the AC_SUBSTed values. We take copies of the
40304 # variables and quote the copies for generation of the libtool script.
40305 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
40307 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
40308 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
40309 deplibs_check_method reload_flag reload_cmds need_locks \
40310 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
40311 lt_cv_sys_global_symbol_to_c_name_address \
40312 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
40313 old_postinstall_cmds old_postuninstall_cmds \
40317 lt_prog_compiler_wl \
40318 lt_prog_compiler_pic \
40319 lt_prog_compiler_static \
40320 lt_prog_compiler_no_builtin_flag \
40321 export_dynamic_flag_spec \
40322 thread_safe_flag_spec \
40323 whole_archive_flag_spec \
40324 enable_shared_with_static_runtimes \
40326 old_archive_from_new_cmds \
40331 compiler_lib_search_path \
40333 archive_expsym_cmds \
40335 postuninstall_cmds \
40336 old_archive_from_expsyms_cmds \
40337 allow_undefined_flag \
40338 no_undefined_flag \
40339 export_symbols_cmds \
40340 hardcode_libdir_flag_spec \
40341 hardcode_libdir_flag_spec_ld \
40342 hardcode_libdir_separator \
40343 hardcode_automatic \
40345 module_expsym_cmds \
40346 lt_cv_prog_compiler_c_o \
40348 include_expsyms; do
40351 old_archive_cmds | \
40352 old_archive_from_new_cmds | \
40354 archive_expsym_cmds | \
40356 module_expsym_cmds | \
40357 old_archive_from_expsyms_cmds | \
40358 export_symbols_cmds | \
40359 extract_expsyms_cmds | reload_cmds | finish_cmds | \
40360 postinstall_cmds | postuninstall_cmds | \
40361 old_postinstall_cmds | old_postuninstall_cmds | \
40362 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
40363 # Double-quote double-evaled strings.
40364 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
40367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
40373 *'\$0 --fallback-echo"')
40374 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
40378 cfgfile="${ofile}T"
40379 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
40381 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
40382 $as_echo "$as_me: creating $ofile" >&6;}
40384 cat <<__EOF__ >> "$cfgfile"
40387 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
40388 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
40389 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
40391 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
40392 # Free Software Foundation, Inc.
40394 # This file is part of GNU Libtool:
40395 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
40397 # This program is free software; you can redistribute it and/or modify
40398 # it under the terms of the GNU General Public License as published by
40399 # the Free Software Foundation; either version 2 of the License, or
40400 # (at your option) any later version.
40402 # This program is distributed in the hope that it will be useful, but
40403 # WITHOUT ANY WARRANTY; without even the implied warranty of
40404 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
40405 # General Public License for more details.
40407 # You should have received a copy of the GNU General Public License
40408 # along with this program; if not, write to the Free Software
40409 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
40411 # As a special exception to the GNU General Public License, if you
40412 # distribute this file as part of a program that contains a
40413 # configuration script generated by Autoconf, you may include it under
40414 # the same distribution terms that you use for the rest of that program.
40416 # A sed program that does not truncate output.
40419 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
40420 Xsed="$SED -e 1s/^X//"
40422 # The HP-UX ksh and POSIX shell print the target directory to stdout
40423 # if CDPATH is set.
40424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40426 # The names of the tagged configurations supported by this script.
40429 # ### BEGIN LIBTOOL CONFIG
40431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
40433 # Shell to use when invoking shell scripts.
40436 # Whether or not to build shared libraries.
40437 build_libtool_libs=$enable_shared
40439 # Whether or not to build static libraries.
40440 build_old_libs=$enable_static
40442 # Whether or not to add -lc for building shared libraries.
40443 build_libtool_need_lc=$archive_cmds_need_lc
40445 # Whether or not to disallow shared libs when runtime libs are static
40446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
40448 # Whether or not to optimize for fast installation.
40449 fast_install=$enable_fast_install
40452 host_alias=$host_alias
40456 # The build system.
40457 build_alias=$build_alias
40461 # An echo program that does not interpret backslashes.
40466 AR_FLAGS=$lt_AR_FLAGS
40471 # A language-specific compiler.
40474 # Is the compiler the GNU C compiler?
40480 # The linker used to build libraries.
40483 # Whether we need hard or soft links.
40486 # A BSD-compatible nm program.
40489 # A symbol stripping program
40492 # Used to examine libraries when file_magic_cmd begins "file"
40493 MAGIC_CMD=$MAGIC_CMD
40495 # Used on cygwin: DLL creation program.
40498 # Used on cygwin: object dumper.
40501 # Used on cygwin: assembler.
40504 # The name of the directory that contains temporary libtool files.
40507 # How to create reloadable object files.
40508 reload_flag=$lt_reload_flag
40509 reload_cmds=$lt_reload_cmds
40511 # How to pass a linker flag through the compiler.
40512 wl=$lt_lt_prog_compiler_wl
40514 # Object file suffix (normally "o").
40515 objext="$ac_objext"
40517 # Old archive suffix (normally "a").
40520 # Shared library suffix (normally ".so").
40521 shrext_cmds='$shrext_cmds'
40523 # Executable file suffix (normally "").
40526 # Additional compiler flags for building library objects.
40527 pic_flag=$lt_lt_prog_compiler_pic
40530 # What is the maximum length of a command?
40531 max_cmd_len=$lt_cv_sys_max_cmd_len
40533 # Does compiler simultaneously support -c and -o options?
40534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
40536 # Must we lock files when doing compilation?
40537 need_locks=$lt_need_locks
40539 # Do we need the lib prefix for modules?
40540 need_lib_prefix=$need_lib_prefix
40542 # Do we need a version for libraries?
40543 need_version=$need_version
40545 # Whether dlopen is supported.
40546 dlopen_support=$enable_dlopen
40548 # Whether dlopen of programs is supported.
40549 dlopen_self=$enable_dlopen_self
40551 # Whether dlopen of statically linked programs is supported.
40552 dlopen_self_static=$enable_dlopen_self_static
40554 # Compiler flag to prevent dynamic linking.
40555 link_static_flag=$lt_lt_prog_compiler_static
40557 # Compiler flag to turn off builtin functions.
40558 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
40560 # Compiler flag to allow reflexive dlopens.
40561 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
40563 # Compiler flag to generate shared objects directly from archives.
40564 whole_archive_flag_spec=$lt_whole_archive_flag_spec
40566 # Compiler flag to generate thread-safe objects.
40567 thread_safe_flag_spec=$lt_thread_safe_flag_spec
40569 # Library versioning type.
40570 version_type=$version_type
40572 # Format of library name prefix.
40573 libname_spec=$lt_libname_spec
40575 # List of archive names. First name is the real one, the rest are links.
40576 # The last name is the one that the linker finds with -lNAME.
40577 library_names_spec=$lt_library_names_spec
40579 # The coded name of the library, if different from the real name.
40580 soname_spec=$lt_soname_spec
40582 # Commands used to build and install an old-style archive.
40584 old_archive_cmds=$lt_old_archive_cmds
40585 old_postinstall_cmds=$lt_old_postinstall_cmds
40586 old_postuninstall_cmds=$lt_old_postuninstall_cmds
40588 # Create an old-style archive from a shared archive.
40589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
40591 # Create a temporary old-style archive to link instead of a shared archive.
40592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
40594 # Commands used to build and install a shared archive.
40595 archive_cmds=$lt_archive_cmds
40596 archive_expsym_cmds=$lt_archive_expsym_cmds
40597 postinstall_cmds=$lt_postinstall_cmds
40598 postuninstall_cmds=$lt_postuninstall_cmds
40600 # Commands used to build a loadable module (assumed same as above if empty)
40601 module_cmds=$lt_module_cmds
40602 module_expsym_cmds=$lt_module_expsym_cmds
40604 # Commands to strip libraries.
40605 old_striplib=$lt_old_striplib
40606 striplib=$lt_striplib
40608 # Dependencies to place before the objects being linked to create a
40610 predep_objects=$lt_predep_objects
40612 # Dependencies to place after the objects being linked to create a
40614 postdep_objects=$lt_postdep_objects
40616 # Dependencies to place before the objects being linked to create a
40618 predeps=$lt_predeps
40620 # Dependencies to place after the objects being linked to create a
40622 postdeps=$lt_postdeps
40624 # The library search path used internally by the compiler when linking
40625 # a shared library.
40626 compiler_lib_search_path=$lt_compiler_lib_search_path
40628 # Method to check whether dependent libraries are shared objects.
40629 deplibs_check_method=$lt_deplibs_check_method
40631 # Command to use when deplibs_check_method == file_magic.
40632 file_magic_cmd=$lt_file_magic_cmd
40634 # Flag that allows shared libraries with undefined symbols to be built.
40635 allow_undefined_flag=$lt_allow_undefined_flag
40637 # Flag that forces no undefined symbols.
40638 no_undefined_flag=$lt_no_undefined_flag
40640 # Commands used to finish a libtool library installation in a directory.
40641 finish_cmds=$lt_finish_cmds
40643 # Same as above, but a single script fragment to be evaled but not shown.
40644 finish_eval=$lt_finish_eval
40646 # Take the output of nm and produce a listing of raw symbols and C names.
40647 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
40649 # Transform the output of nm in a proper C declaration
40650 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
40652 # Transform the output of nm in a C name address pair
40653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
40655 # This is the shared library runtime path variable.
40656 runpath_var=$runpath_var
40658 # This is the shared library path variable.
40659 shlibpath_var=$shlibpath_var
40661 # Is shlibpath searched before the hard-coded library search path?
40662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
40664 # How to hardcode a shared library path into an executable.
40665 hardcode_action=$hardcode_action
40667 # Whether we should hardcode library paths into libraries.
40668 hardcode_into_libs=$hardcode_into_libs
40670 # Flag to hardcode \$libdir into a binary during linking.
40671 # This must work even if \$libdir does not exist.
40672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
40674 # If ld is used when linking, flag to hardcode \$libdir into
40675 # a binary during linking. This must work even if \$libdir does
40677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
40679 # Whether we need a single -rpath flag with a separated argument.
40680 hardcode_libdir_separator=$lt_hardcode_libdir_separator
40682 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
40683 # resulting binary.
40684 hardcode_direct=$hardcode_direct
40686 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
40687 # resulting binary.
40688 hardcode_minus_L=$hardcode_minus_L
40690 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
40691 # the resulting binary.
40692 hardcode_shlibpath_var=$hardcode_shlibpath_var
40694 # Set to yes if building a shared library automatically hardcodes DIR into the library
40695 # and all subsequent libraries and executables linked against it.
40696 hardcode_automatic=$hardcode_automatic
40698 # Variables whose values should be saved in libtool wrapper scripts and
40699 # restored at relink time.
40700 variables_saved_for_relink="$variables_saved_for_relink"
40702 # Whether libtool must link a program against all its dependency libraries.
40703 link_all_deplibs=$link_all_deplibs
40705 # Compile-time system search path for libraries
40706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
40708 # Run-time system search path for libraries
40709 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
40711 # Fix the shell variable \$srcfile for the compiler.
40712 fix_srcfile_path="$fix_srcfile_path"
40714 # Set to yes if exported symbols are required.
40715 always_export_symbols=$always_export_symbols
40717 # The commands to list exported symbols.
40718 export_symbols_cmds=$lt_export_symbols_cmds
40720 # The commands to extract the exported symbol list from a shared archive.
40721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
40723 # Symbols that should not be listed in the preloaded symbols.
40724 exclude_expsyms=$lt_exclude_expsyms
40726 # Symbols that must always be exported.
40727 include_expsyms=$lt_include_expsyms
40729 # ### END LIBTOOL CONFIG
40736 cat <<\EOF >> "$cfgfile"
40738 # AIX sometimes has problems with the GCC collect2 program. For some
40739 # reason, if we set the COLLECT_NAMES environment variable, the problems
40740 # vanish in a puff of smoke.
40741 if test "X${COLLECT_NAMES+set}" != Xset; then
40743 export COLLECT_NAMES
40749 # We use sed instead of cat because bash on DJGPP gets confused if
40750 # if finds mixed CR/LF and LF-only lines. Since sed operates in
40751 # text mode, it properly converts lines to CR/LF. This bash problem
40752 # is reportedly fixed, but why not run on old versions too?
40753 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
40755 mv -f "$cfgfile" "$ofile" || \
40756 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
40760 # If there is no Makefile yet, we rely on a make rule to execute
40761 # `config.status --recheck' to rerun these tests and create the
40762 # libtool script then.
40763 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
40764 if test -f "$ltmain_in"; then
40765 test -f Makefile && make "$ltmain"
40771 ac_cpp='$CPP $CPPFLAGS'
40772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40779 # Check whether --with-tags was given.
40780 if test "${with_tags+set}" = set; then
40781 withval=$with_tags; tagnames="$withval"
40785 if test -f "$ltmain" && test -n "$tagnames"; then
40786 if test ! -f "${ofile}"; then
40788 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
40789 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
40792 cat <<AAW_EOF >>config.warnings
40793 output file \`$ofile' does not exist
40799 if test -z "$LTCC"; then
40800 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
40801 if test -z "$LTCC"; then
40803 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
40804 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
40807 cat <<AAW_EOF >>config.warnings
40808 output file \`$ofile' does not look like a libtool script
40814 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
40815 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
40818 cat <<AAW_EOF >>config.warnings
40819 using \`LTCC=$LTCC', extracted from \`$ofile'
40826 # Extract list of available tagged configurations in $ofile.
40827 # Note that this assumes the entire list is on one line.
40828 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
40830 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
40831 for tagname in $tagnames; do
40833 # Check whether tagname contains only valid characters
40834 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
40836 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
40837 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
40838 { (exit 1); exit 1; }; }
40842 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
40844 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
40845 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
40846 { (exit 1); exit 1; }; }
40849 # Update the list of available tags.
40850 if test -n "$tagname"; then
40851 echo appending configuration tag \"$tagname\" to $ofile
40855 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
40856 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
40857 (test "X$CXX" != "Xg++"))) ; then
40859 ac_cpp='$CXXCPP $CPPFLAGS'
40860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40867 archive_cmds_need_lc_CXX=no
40868 allow_undefined_flag_CXX=
40869 always_export_symbols_CXX=no
40870 archive_expsym_cmds_CXX=
40871 export_dynamic_flag_spec_CXX=
40872 hardcode_direct_CXX=no
40873 hardcode_libdir_flag_spec_CXX=
40874 hardcode_libdir_flag_spec_ld_CXX=
40875 hardcode_libdir_separator_CXX=
40876 hardcode_minus_L_CXX=no
40877 hardcode_automatic_CXX=no
40879 module_expsym_cmds_CXX=
40880 link_all_deplibs_CXX=unknown
40881 old_archive_cmds_CXX=$old_archive_cmds
40882 no_undefined_flag_CXX=
40883 whole_archive_flag_spec_CXX=
40884 enable_shared_with_static_runtimes_CXX=no
40886 # Dependencies to place before and after the object being linked:
40887 predep_objects_CXX=
40888 postdep_objects_CXX=
40891 compiler_lib_search_path_CXX=
40893 # Source file extension for C++ test sources.
40896 # Object file extension for compiled C++ test sources.
40900 # Code to be used in simple compile tests
40901 lt_simple_compile_test_code="int some_variable = 0;\n"
40903 # Code to be used in simple link tests
40904 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
40906 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
40908 # If no C compiler was specified, use CC.
40911 # Allow CC to be a program name with arguments.
40915 # save warnings/boilerplate of simple test code
40916 ac_outfile=conftest.$ac_objext
40917 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
40918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
40919 _lt_compiler_boilerplate=`cat conftest.err`
40922 ac_outfile=conftest.$ac_objext
40923 printf "$lt_simple_link_test_code" >conftest.$ac_ext
40924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
40925 _lt_linker_boilerplate=`cat conftest.err`
40929 # Allow CC to be a program name with arguments.
40934 lt_save_with_gnu_ld=$with_gnu_ld
40935 lt_save_path_LD=$lt_cv_path_LD
40936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
40937 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
40939 unset lt_cv_prog_gnu_ld
40941 if test -n "${lt_cv_path_LDCXX+set}"; then
40942 lt_cv_path_LD=$lt_cv_path_LDCXX
40944 unset lt_cv_path_LD
40946 test -z "${LDCXX+set}" || LD=$LDCXX
40950 for cc_temp in $compiler""; do
40952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
40953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
40958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
40961 # We don't want -fno-exception wen compiling C++ code, so set the
40962 # no_builtin_flag separately
40963 if test "$GXX" = yes; then
40964 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
40966 lt_prog_compiler_no_builtin_flag_CXX=
40969 if test "$GXX" = yes; then
40970 # Set up default GNU C++ configuration
40973 # Check whether --with-gnu-ld was given.
40974 if test "${with_gnu_ld+set}" = set; then
40975 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
40981 if test "$GCC" = yes; then
40982 # Check if gcc -print-prog-name=ld gives a path.
40983 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
40984 $as_echo_n "checking for ld used by $CC... " >&6; }
40987 # gcc leaves a trailing carriage return which upsets mingw
40988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
40990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
40993 # Accept absolute paths.
40995 re_direlt='/[^/][^/]*/\.\./'
40996 # Canonicalize the pathname of ld
40997 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
40998 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
40999 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
41001 test -z "$LD" && LD="$ac_prog"
41004 # If it fails, then pretend we aren't using GCC.
41008 # If it is relative, then search for the first ld in PATH.
41009 with_gnu_ld=unknown
41012 elif test "$with_gnu_ld" = yes; then
41013 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
41014 $as_echo_n "checking for GNU ld... " >&6; }
41016 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
41017 $as_echo_n "checking for non-GNU ld... " >&6; }
41019 if test "${lt_cv_path_LD+set}" = set; then
41020 $as_echo_n "(cached) " >&6
41022 if test -z "$LD"; then
41023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
41024 for ac_dir in $PATH; do
41026 test -z "$ac_dir" && ac_dir=.
41027 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
41028 lt_cv_path_LD="$ac_dir/$ac_prog"
41029 # Check to see if the program is GNU ld. I'd rather use --version,
41030 # but apparently some variants of GNU ld only accept -v.
41031 # Break only if it was the GNU/non-GNU ld that we prefer.
41032 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
41033 *GNU* | *'with BFD'*)
41034 test "$with_gnu_ld" != no && break
41037 test "$with_gnu_ld" != yes && break
41044 lt_cv_path_LD="$LD" # Let the user override the test with a path.
41048 LD="$lt_cv_path_LD"
41049 if test -n "$LD"; then
41050 { $as_echo "$as_me:$LINENO: result: $LD" >&5
41051 $as_echo "$LD" >&6; }
41053 { $as_echo "$as_me:$LINENO: result: no" >&5
41054 $as_echo "no" >&6; }
41056 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
41057 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
41058 { (exit 1); exit 1; }; }
41059 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
41060 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
41061 if test "${lt_cv_prog_gnu_ld+set}" = set; then
41062 $as_echo_n "(cached) " >&6
41064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
41065 case `$LD -v 2>&1 </dev/null` in
41066 *GNU* | *'with BFD'*)
41067 lt_cv_prog_gnu_ld=yes
41070 lt_cv_prog_gnu_ld=no
41074 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
41075 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
41076 with_gnu_ld=$lt_cv_prog_gnu_ld
41080 # Check if GNU C++ uses GNU ld as the underlying linker, since the
41081 # archiving commands below assume that GNU ld is being used.
41082 if test "$with_gnu_ld" = yes; then
41083 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41084 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
41086 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
41087 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41089 # If archive_cmds runs LD, not CC, wlarc should be empty
41090 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
41091 # investigate it a little bit more. (MM)
41094 # ancient GNU ld didn't support --whole-archive et. al.
41095 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
41096 grep 'no-whole-archive' > /dev/null; then
41097 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
41099 whole_archive_flag_spec_CXX=
41105 # A generic and very simple default shared library creation
41106 # command for GNU C++ for the case where it uses the native
41107 # linker, instead of GNU ld. If possible, this setting should
41108 # overridden to take advantage of the native linker features on
41109 # the platform it is being used on.
41110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
41113 # Commands to make compiler produce verbose output that lists
41114 # what "hidden" libraries, object files and flags are used when
41115 # linking a shared library.
41116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41124 # PORTME: fill in a description of your system's C++ link characteristics
41125 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
41126 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
41130 # FIXME: insert proper C++ library support
41134 if test "$host_cpu" = ia64; then
41135 # On IA64, the linker does run time linking by default, so we don't
41136 # have to do anything special.
41137 aix_use_runtimelinking=no
41138 exp_sym_flag='-Bexport'
41141 aix_use_runtimelinking=no
41143 # Test if we are trying to use run time linking or normal
41144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
41145 # need to do runtime linking.
41146 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
41147 for ld_flag in $LDFLAGS; do
41150 aix_use_runtimelinking=yes
41157 exp_sym_flag='-bexport'
41158 no_entry_flag='-bnoentry'
41161 # When large executables or shared objects are built, AIX ld can
41162 # have problems creating the table of contents. If linking a library
41163 # or program results in "error TOC overflow" add -mminimal-toc to
41164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
41165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
41167 archive_cmds_CXX=''
41168 hardcode_direct_CXX=yes
41169 hardcode_libdir_separator_CXX=':'
41170 link_all_deplibs_CXX=yes
41172 if test "$GXX" = yes; then
41173 case $host_os in aix4.[012]|aix4.[012].*)
41174 # We only want to do this on AIX 4.2 and lower, the check
41175 # below for broken collect2 doesn't work under 4.3+
41176 collect2name=`${CC} -print-prog-name=collect2`
41177 if test -f "$collect2name" && \
41178 strings "$collect2name" | grep resolve_lib_name >/dev/null
41180 # We have reworked collect2
41181 hardcode_direct_CXX=yes
41183 # We have old collect2
41184 hardcode_direct_CXX=unsupported
41185 # It fails to find uninstalled libraries when the uninstalled
41186 # path is not listed in the libpath. Setting hardcode_minus_L
41187 # to unsupported forces relinking
41188 hardcode_minus_L_CXX=yes
41189 hardcode_libdir_flag_spec_CXX='-L$libdir'
41190 hardcode_libdir_separator_CXX=
41193 shared_flag='-shared'
41194 if test "$aix_use_runtimelinking" = yes; then
41195 shared_flag="$shared_flag "'${wl}-G'
41199 if test "$host_cpu" = ia64; then
41200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
41201 # chokes on -Wl,-G. The following line is correct:
41204 if test "$aix_use_runtimelinking" = yes; then
41205 shared_flag='${wl}-G'
41207 shared_flag='${wl}-bM:SRE'
41212 # It seems that -bexpall does not export symbols beginning with
41213 # underscore (_), so it is better to generate a list of symbols to export.
41214 always_export_symbols_CXX=yes
41215 if test "$aix_use_runtimelinking" = yes; then
41216 # Warning - without using the other runtime loading flags (-brtl),
41217 # -berok will link without error, but may produce a broken library.
41218 allow_undefined_flag_CXX='-berok'
41219 # Determine the default libpath from the value encoded in an empty executable.
41220 cat >conftest.$ac_ext <<_ACEOF
41223 cat confdefs.h >>conftest.$ac_ext
41224 cat >>conftest.$ac_ext <<_ACEOF
41225 /* end confdefs.h. */
41235 rm -f conftest.$ac_objext conftest$ac_exeext
41236 if { (ac_try="$ac_link"
41237 case "(($ac_try" in
41238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41239 *) ac_try_echo=$ac_try;;
41241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41242 $as_echo "$ac_try_echo") >&5
41243 (eval "$ac_link") 2>conftest.er1
41245 grep -v '^ *+' conftest.er1 >conftest.err
41247 cat conftest.err >&5
41248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 (exit $ac_status); } && {
41250 test -z "$ac_cxx_werror_flag" ||
41251 test ! -s conftest.err
41252 } && test -s conftest$ac_exeext && {
41253 test "$cross_compiling" = yes ||
41254 $as_test_x conftest$ac_exeext
41257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
41259 # Check for a 64-bit object if we didn't find anything.
41260 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
41263 $as_echo "$as_me: failed program was:" >&5
41264 sed 's/^/| /' conftest.$ac_ext >&5
41269 rm -rf conftest.dSYM
41270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41271 conftest$ac_exeext conftest.$ac_ext
41272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
41274 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
41276 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
41278 if test "$host_cpu" = ia64; then
41279 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
41280 allow_undefined_flag_CXX="-z nodefs"
41281 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
41283 # Determine the default libpath from the value encoded in an empty executable.
41284 cat >conftest.$ac_ext <<_ACEOF
41287 cat confdefs.h >>conftest.$ac_ext
41288 cat >>conftest.$ac_ext <<_ACEOF
41289 /* end confdefs.h. */
41299 rm -f conftest.$ac_objext conftest$ac_exeext
41300 if { (ac_try="$ac_link"
41301 case "(($ac_try" in
41302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41303 *) ac_try_echo=$ac_try;;
41305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41306 $as_echo "$ac_try_echo") >&5
41307 (eval "$ac_link") 2>conftest.er1
41309 grep -v '^ *+' conftest.er1 >conftest.err
41311 cat conftest.err >&5
41312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41313 (exit $ac_status); } && {
41314 test -z "$ac_cxx_werror_flag" ||
41315 test ! -s conftest.err
41316 } && test -s conftest$ac_exeext && {
41317 test "$cross_compiling" = yes ||
41318 $as_test_x conftest$ac_exeext
41321 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
41323 # Check for a 64-bit object if we didn't find anything.
41324 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
41327 $as_echo "$as_me: failed program was:" >&5
41328 sed 's/^/| /' conftest.$ac_ext >&5
41333 rm -rf conftest.dSYM
41334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41335 conftest$ac_exeext conftest.$ac_ext
41336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
41338 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
41339 # Warning - without using the other run time loading flags,
41340 # -berok will link without error, but may produce a broken library.
41341 no_undefined_flag_CXX=' ${wl}-bernotok'
41342 allow_undefined_flag_CXX=' ${wl}-berok'
41343 # -bexpall does not export symbols beginning with underscore (_)
41344 always_export_symbols_CXX=yes
41345 # Exported symbols can be pulled into shared objects from archives
41346 whole_archive_flag_spec_CXX=' '
41347 archive_cmds_need_lc_CXX=yes
41348 # This is similar to how AIX traditionally builds its shared libraries.
41349 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
41354 case $cc_basename in
41356 # FIXME: insert proper C++ library support
41363 cygwin* | mingw* | pw32*)
41364 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
41365 # as there is no search path for DLLs.
41366 hardcode_libdir_flag_spec_CXX='-L$libdir'
41367 allow_undefined_flag_CXX=unsupported
41368 always_export_symbols_CXX=no
41369 enable_shared_with_static_runtimes_CXX=yes
41371 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
41372 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
41373 # If the export-symbols file already is a .def file (1st line
41374 # is EXPORTS), use it as is; otherwise, prepend...
41375 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
41376 cp $export_symbols $output_objdir/$soname.def;
41378 echo EXPORTS > $output_objdir/$soname.def;
41379 cat $export_symbols >> $output_objdir/$soname.def;
41381 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
41386 darwin* | rhapsody*)
41388 rhapsody* | darwin1.[012])
41389 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
41392 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
41393 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
41395 case ${MACOSX_DEPLOYMENT_TARGET} in
41397 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
41400 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
41406 archive_cmds_need_lc_CXX=no
41407 hardcode_direct_CXX=no
41408 hardcode_automatic_CXX=yes
41409 hardcode_shlibpath_var_CXX=unsupported
41410 whole_archive_flag_spec_CXX=''
41411 link_all_deplibs_CXX=yes
41413 if test "$GXX" = yes ; then
41414 lt_int_apple_cc_single_mod=no
41415 output_verbose_link_cmd='echo'
41416 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
41417 lt_int_apple_cc_single_mod=yes
41419 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
41420 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
41422 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
41424 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
41425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
41426 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
41427 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41429 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41431 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41433 case $cc_basename in
41435 output_verbose_link_cmd='echo'
41436 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
41437 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
41438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
41439 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41440 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41450 case $cc_basename in
41452 # FIXME: insert proper C++ library support
41456 # Green Hills C++ Compiler
41457 # FIXME: insert proper C++ library support
41461 # FIXME: insert proper C++ library support
41467 # C++ shared libraries reported to be fairly broken before switch to ELF
41471 archive_cmds_need_lc_CXX=no
41473 freebsd* | kfreebsd*-gnu | dragonfly*)
41474 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
41481 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41482 hardcode_libdir_separator_CXX=:
41483 export_dynamic_flag_spec_CXX='${wl}-E'
41484 hardcode_direct_CXX=yes
41485 hardcode_minus_L_CXX=yes # Not in the search PATH,
41486 # but as the default
41487 # location of the library.
41489 case $cc_basename in
41491 # FIXME: insert proper C++ library support
41495 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
41496 # Commands to make compiler produce verbose output that lists
41497 # what "hidden" libraries, object files and flags are used when
41498 # linking a shared library.
41500 # There doesn't appear to be a way to prevent this compiler from
41501 # explicitly linking system object files so we need to strip them
41502 # from the output so that they don't get included in the library
41504 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41507 if test "$GXX" = yes; then
41508 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
41510 # FIXME: insert proper C++ library support
41517 if test $with_gnu_ld = no; then
41520 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41521 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
41522 hardcode_libdir_separator_CXX=:
41525 hardcode_libdir_flag_spec_CXX='-L$libdir'
41528 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41529 hardcode_libdir_separator_CXX=:
41530 export_dynamic_flag_spec_CXX='${wl}-E'
41536 hardcode_direct_CXX=no
41537 hardcode_shlibpath_var_CXX=no
41540 hardcode_direct_CXX=no
41541 hardcode_shlibpath_var_CXX=no
41542 hardcode_minus_L_CXX=yes # Not in the search PATH,
41543 # but as the default
41544 # location of the library.
41547 hardcode_direct_CXX=yes
41548 hardcode_minus_L_CXX=yes # Not in the search PATH,
41549 # but as the default
41550 # location of the library.
41554 case $cc_basename in
41556 # FIXME: insert proper C++ library support
41562 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
41565 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
41568 # Commands to make compiler produce verbose output that lists
41569 # what "hidden" libraries, object files and flags are used when
41570 # linking a shared library.
41572 # There doesn't appear to be a way to prevent this compiler from
41573 # explicitly linking system object files so we need to strip them
41574 # from the output so that they don't get included in the library
41576 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41579 if test "$GXX" = yes; then
41580 if test $with_gnu_ld = no; then
41583 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
41586 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
41591 # FIXME: insert proper C++ library support
41598 case $cc_basename in
41601 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
41603 # Archives containing C++ object files must be created using
41604 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
41605 # necessary to make sure instantiated templates are included
41607 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
41610 if test "$GXX" = yes; then
41611 if test "$with_gnu_ld" = no; then
41612 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
41614 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
41617 link_all_deplibs_CXX=yes
41620 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41621 hardcode_libdir_separator_CXX=:
41624 case $cc_basename in
41626 # Kuck and Associates, Inc. (KAI) C++ Compiler
41628 # KCC will only create a shared library if the output file
41629 # ends with ".so" (or ".sl" for HP-UX), so rename the library
41630 # to its proper name (with version) after linking.
41631 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
41632 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
41633 # Commands to make compiler produce verbose output that lists
41634 # what "hidden" libraries, object files and flags are used when
41635 # linking a shared library.
41637 # There doesn't appear to be a way to prevent this compiler from
41638 # explicitly linking system object files so we need to strip them
41639 # from the output so that they don't get included in the library
41641 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41643 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
41644 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41646 # Archives containing C++ object files must be created using
41647 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
41648 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
41653 # version 8.0 and above of icpc choke on multiply defined symbols
41654 # if we add $predep_objects and $postdep_objects, however 7.1 and
41655 # earlier do not add the objects themselves.
41656 case `$CC -V 2>&1` in
41658 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41659 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
41661 *) # Version 8.0 or newer
41664 ia64*) tmp_idyn=' -i_dynamic';;
41666 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
41667 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
41670 archive_cmds_need_lc_CXX=no
41671 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41672 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41673 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
41676 # Portland Group C++ compiler
41677 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
41678 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
41680 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
41681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41682 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
41686 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41687 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
41689 runpath_var=LD_RUN_PATH
41690 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
41691 hardcode_libdir_separator_CXX=:
41693 # Commands to make compiler produce verbose output that lists
41694 # what "hidden" libraries, object files and flags are used when
41695 # linking a shared library.
41697 # There doesn't appear to be a way to prevent this compiler from
41698 # explicitly linking system object files so we need to strip them
41699 # from the output so that they don't get included in the library
41701 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41706 # FIXME: insert proper C++ library support
41710 # FIXME: insert proper C++ library support
41714 case $cc_basename in
41716 # FIXME: insert proper C++ library support
41720 # FIXME: insert proper C++ library support
41726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
41727 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
41729 hardcode_libdir_flag_spec_CXX='-R$libdir'
41730 hardcode_direct_CXX=yes
41731 hardcode_shlibpath_var_CXX=no
41733 # Workaround some broken pre-1.5 toolchains
41734 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
41737 # C++ shared libraries are fairly broken
41741 hardcode_direct_CXX=yes
41742 hardcode_shlibpath_var_CXX=no
41743 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
41744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41746 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
41747 export_dynamic_flag_spec_CXX='${wl}-E'
41748 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
41750 output_verbose_link_cmd='echo'
41753 case $cc_basename in
41755 # Kuck and Associates, Inc. (KAI) C++ Compiler
41757 # KCC will only create a shared library if the output file
41758 # ends with ".so" (or ".sl" for HP-UX), so rename the library
41759 # to its proper name (with version) after linking.
41760 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
41762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41763 hardcode_libdir_separator_CXX=:
41765 # Archives containing C++ object files must be created using
41766 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
41767 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
41771 # Rational C++ 2.4.1
41772 # FIXME: insert proper C++ library support
41776 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41777 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
41779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41780 hardcode_libdir_separator_CXX=:
41782 # Commands to make compiler produce verbose output that lists
41783 # what "hidden" libraries, object files and flags are used when
41784 # linking a shared library.
41786 # There doesn't appear to be a way to prevent this compiler from
41787 # explicitly linking system object files so we need to strip them
41788 # from the output so that they don't get included in the library
41790 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41793 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
41794 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41795 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
41797 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41798 hardcode_libdir_separator_CXX=:
41800 # Commands to make compiler produce verbose output that lists
41801 # what "hidden" libraries, object files and flags are used when
41802 # linking a shared library.
41803 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41806 # FIXME: insert proper C++ library support
41813 case $cc_basename in
41815 # Kuck and Associates, Inc. (KAI) C++ Compiler
41817 # KCC will only create a shared library if the output file
41818 # ends with ".so" (or ".sl" for HP-UX), so rename the library
41819 # to its proper name (with version) after linking.
41820 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
41822 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41823 hardcode_libdir_separator_CXX=:
41825 # Archives containing C++ object files must be created using
41826 # the KAI C++ compiler.
41827 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
41830 # Rational C++ 2.4.1
41831 # FIXME: insert proper C++ library support
41835 allow_undefined_flag_CXX=' -expect_unresolved \*'
41836 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
41837 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
41838 echo "-hidden">> $lib.exp~
41839 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
41842 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
41843 hardcode_libdir_separator_CXX=:
41845 # Commands to make compiler produce verbose output that lists
41846 # what "hidden" libraries, object files and flags are used when
41847 # linking a shared library.
41849 # There doesn't appear to be a way to prevent this compiler from
41850 # explicitly linking system object files so we need to strip them
41851 # from the output so that they don't get included in the library
41853 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41856 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
41857 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41858 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
41860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41861 hardcode_libdir_separator_CXX=:
41863 # Commands to make compiler produce verbose output that lists
41864 # what "hidden" libraries, object files and flags are used when
41865 # linking a shared library.
41866 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41869 # FIXME: insert proper C++ library support
41876 # FIXME: insert proper C++ library support
41880 archive_cmds_need_lc_CXX=no
41881 case $cc_basename in
41883 # FIXME: insert proper C++ library support
41887 # FIXME: insert proper C++ library support
41893 case $cc_basename in
41896 # FIXME: insert proper C++ library support
41901 # FIXME: insert proper C++ library support
41905 # FIXME: insert proper C++ library support
41911 case $cc_basename in
41913 # Sun C++ 4.2, 5.x and Centerline C++
41914 archive_cmds_need_lc_CXX=yes
41915 no_undefined_flag_CXX=' -zdefs'
41916 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
41917 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
41918 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
41920 hardcode_libdir_flag_spec_CXX='-R$libdir'
41921 hardcode_shlibpath_var_CXX=no
41923 solaris2.[0-5] | solaris2.[0-5].*) ;;
41925 # The C++ compiler is used as linker so we must use $wl
41926 # flag to pass the commands to the underlying system
41927 # linker. We must also pass each convience library through
41928 # to the system linker between allextract/defaultextract.
41929 # The C++ compiler will combine linker options so we
41930 # cannot just pass the convience library names through
41932 # Supported since Solaris 2.6 (maybe 2.5.1?)
41933 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
41936 link_all_deplibs_CXX=yes
41938 output_verbose_link_cmd='echo'
41940 # Archives containing C++ object files must be created using
41941 # "CC -xar", where "CC" is the Sun C++ compiler. This is
41942 # necessary to make sure instantiated templates are included
41944 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
41947 # Green Hills C++ Compiler
41948 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
41950 # The C++ compiler must be used to create the archive.
41951 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
41954 # GNU C++ compiler with Solaris linker
41955 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
41956 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
41957 if $CC --version | grep -v '^2\.7' > /dev/null; then
41958 if $CC -v --help 2>/dev/null | grep -- -shared > /dev/null 2> /dev/null; then
41959 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
41960 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
41961 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
41963 # Commands to make compiler produce verbose output that lists
41964 # what "hidden" libraries, object files and flags are used when
41965 # linking a shared library.
41966 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
41967 lt_prog_compiler_static_CXX='-static'
41969 archive_cmds_CXX='$CC ${wl}-G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
41970 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
41971 $CC ${wl}-G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
41973 # Commands to make compiler produce verbose output that lists
41974 # what "hidden" libraries, object files and flags are used when
41975 # linking a shared library.
41976 output_verbose_link_cmd="$CC ${wl}-G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
41977 lt_prog_compiler_static_CXX='${wl}-Bstatic'
41980 # g++ 2.7 appears to require `-G' NOT `-shared' on this
41982 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
41983 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
41984 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
41986 # Commands to make compiler produce verbose output that lists
41987 # what "hidden" libraries, object files and flags are used when
41988 # linking a shared library.
41989 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
41992 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
41997 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
41998 archive_cmds_need_lc_CXX=no
42001 case $cc_basename in
42003 # NonStop-UX NCC 3.20
42004 # FIXME: insert proper C++ library support
42008 # FIXME: insert proper C++ library support
42014 # FIXME: insert proper C++ library support
42018 # FIXME: insert proper C++ library support
42022 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
42023 $as_echo "$ld_shlibs_CXX" >&6; }
42024 test "$ld_shlibs_CXX" = no && can_build_shared=no
42030 ## There is no encapsulation within the following macros, do not change
42031 ## the running order or otherwise move them around unless you know exactly
42032 ## what you are doing...
42034 cat > conftest.$ac_ext <<EOF
42038 Foo (void) { a = 0; }
42044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42045 (eval $ac_compile) 2>&5
42047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42048 (exit $ac_status); }; then
42049 # Parse the compiler output and extract the necessary
42050 # objects, libraries and library flags.
42052 # Sentinel used to keep track of whether or not we are before
42053 # the conftest object file.
42054 pre_test_object_deps_done=no
42056 # The `*' in the case matches for architectures that use `case' in
42057 # $output_verbose_cmd can trigger glob expansion during the loop
42058 # eval without this substitution.
42059 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
42061 for p in `eval $output_verbose_link_cmd`; do
42065 # Some compilers place space between "-{L,R}" and the path.
42066 # Remove the space.
42067 if test $p = "-L" \
42068 || test $p = "-R"; then
42075 if test "$pre_test_object_deps_done" = no; then
42078 # Internal compiler library paths should come after those
42079 # provided the user. The postdeps already come after the
42080 # user supplied libs so there is no need to process them.
42081 if test -z "$compiler_lib_search_path_CXX"; then
42082 compiler_lib_search_path_CXX="${prev}${p}"
42084 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
42087 # The "-l" case would never come before the object being
42088 # linked, so don't bother handling this case.
42091 if test -z "$postdeps_CXX"; then
42092 postdeps_CXX="${prev}${p}"
42094 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
42100 # This assumes that the test object file only shows up
42101 # once in the compiler output.
42102 if test "$p" = "conftest.$objext"; then
42103 pre_test_object_deps_done=yes
42107 if test "$pre_test_object_deps_done" = no; then
42108 if test -z "$predep_objects_CXX"; then
42109 predep_objects_CXX="$p"
42111 predep_objects_CXX="$predep_objects_CXX $p"
42114 if test -z "$postdep_objects_CXX"; then
42115 postdep_objects_CXX="$p"
42117 postdep_objects_CXX="$postdep_objects_CXX $p"
42122 *) ;; # Ignore the rest.
42130 echo "libtool.m4: error: problem compiling CXX test program"
42133 $rm -f confest.$objext
42135 # PORTME: override above test on systems where it is broken
42138 case $cc_basename in
42140 # Adding this requires a known-good setup of shared libraries for
42141 # Sun compiler versions before 5.6, else PIC objects from an old
42142 # archive will be linked into the output, leading to subtle bugs.
42143 postdeps_CXX='-lCstd -lCrun'
42149 case " $postdeps_CXX " in
42150 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
42153 lt_prog_compiler_wl_CXX=
42154 lt_prog_compiler_pic_CXX=
42155 lt_prog_compiler_static_CXX=
42157 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
42158 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
42160 # C++ specific cases for pic, static, wl, etc.
42161 if test "$GXX" = yes; then
42162 lt_prog_compiler_wl_CXX='-Wl,'
42163 lt_prog_compiler_static_CXX='-static'
42167 # All AIX code is PIC.
42168 if test "$host_cpu" = ia64; then
42169 # AIX 5 now supports IA64 processor
42170 lt_prog_compiler_static_CXX='-Bstatic'
42174 # FIXME: we need at least 68020 code to build shared libraries, but
42175 # adding the `-m68020' flag to GCC prevents building anything better,
42177 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
42179 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
42180 # PIC is the default for these OSes.
42182 mingw* | os2* | pw32*)
42183 # This hack is so that the source file can tell whether it is being
42184 # built for inclusion in a dll (and should export symbols for example).
42185 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
42187 darwin* | rhapsody*)
42188 # PIC is the default on this platform
42189 # Common symbols not allowed in MH_DYLIB files
42190 lt_prog_compiler_pic_CXX='-fno-common'
42193 # DJGPP does not support shared libraries at all
42194 lt_prog_compiler_pic_CXX=
42197 if test -d /usr/nec; then
42198 lt_prog_compiler_pic_CXX=-Kconform_pic
42202 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42203 # not for PA HP-UX.
42208 lt_prog_compiler_pic_CXX='-fPIC'
42213 lt_prog_compiler_pic_CXX='-fPIC'
42219 # All AIX code is PIC.
42220 if test "$host_cpu" = ia64; then
42221 # AIX 5 now supports IA64 processor
42222 lt_prog_compiler_static_CXX='-Bstatic'
42224 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
42228 case $cc_basename in
42230 # Green Hills C++ Compiler
42231 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
42236 # PIC is the default on this platform
42237 # Common symbols not allowed in MH_DYLIB files
42238 case $cc_basename in
42240 lt_prog_compiler_pic_CXX='-qnocommon'
42241 lt_prog_compiler_wl_CXX='-Wl,'
42246 case $cc_basename in
42248 lt_prog_compiler_pic_CXX='-KPIC'
42251 # Green Hills C++ Compiler
42252 lt_prog_compiler_pic_CXX='-pic'
42258 freebsd* | kfreebsd*-gnu | dragonfly*)
42259 # FreeBSD uses GNU C++
42261 hpux9* | hpux10* | hpux11*)
42262 case $cc_basename in
42264 lt_prog_compiler_wl_CXX='-Wl,'
42265 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
42266 if test "$host_cpu" != ia64; then
42267 lt_prog_compiler_pic_CXX='+Z'
42271 lt_prog_compiler_wl_CXX='-Wl,'
42272 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
42278 lt_prog_compiler_pic_CXX='+Z'
42286 irix5* | irix6* | nonstopux*)
42287 case $cc_basename in
42289 lt_prog_compiler_wl_CXX='-Wl,'
42290 lt_prog_compiler_static_CXX='-non_shared'
42291 # CC pic flag -KPIC is the default.
42298 case $cc_basename in
42301 lt_prog_compiler_wl_CXX='--backend -Wl,'
42302 lt_prog_compiler_pic_CXX='-fPIC'
42306 lt_prog_compiler_wl_CXX='-Wl,'
42307 lt_prog_compiler_pic_CXX='-KPIC'
42308 lt_prog_compiler_static_CXX='-static'
42311 # Portland Group C++ compiler.
42312 lt_prog_compiler_wl_CXX='-Wl,'
42313 lt_prog_compiler_pic_CXX='-fpic'
42314 lt_prog_compiler_static_CXX='-Bstatic'
42318 # Make sure the PIC flag is empty. It appears that all Alpha
42319 # Linux and Compaq Tru64 Unix objects are PIC.
42320 lt_prog_compiler_pic_CXX=
42321 lt_prog_compiler_static_CXX='-non_shared'
42332 case $cc_basename in
42334 lt_prog_compiler_pic_CXX='-W c,exportall'
42342 osf3* | osf4* | osf5*)
42343 case $cc_basename in
42345 lt_prog_compiler_wl_CXX='--backend -Wl,'
42348 # Rational C++ 2.4.1
42349 lt_prog_compiler_pic_CXX='-pic'
42352 # Digital/Compaq C++
42353 lt_prog_compiler_wl_CXX='-Wl,'
42354 # Make sure the PIC flag is empty. It appears that all Alpha
42355 # Linux and Compaq Tru64 Unix objects are PIC.
42356 lt_prog_compiler_pic_CXX=
42357 lt_prog_compiler_static_CXX='-non_shared'
42366 case $cc_basename in
42368 lt_prog_compiler_pic_CXX='-fPIC'
42375 case $cc_basename in
42377 # Sun C++ 4.2, 5.x and Centerline C++
42378 lt_prog_compiler_pic_CXX='-KPIC'
42379 lt_prog_compiler_static_CXX='-Bstatic'
42380 lt_prog_compiler_wl_CXX='-Qoption ld '
42383 # Green Hills C++ Compiler
42384 lt_prog_compiler_pic_CXX='-PIC'
42387 if $CC -v --help 2>/dev/null | grep -- -static > /dev/null 2> /dev/null; then
42388 lt_prog_compiler_static_CXX='-static'
42390 # GCC with Sun linker
42391 lt_prog_compiler_pic_CXX='-KPIC'
42392 lt_prog_compiler_static_CXX='${wl}-Bstatic'
42398 case $cc_basename in
42401 lt_prog_compiler_pic_CXX='-pic'
42402 lt_prog_compiler_static_CXX='-Bstatic'
42406 lt_prog_compiler_pic_CXX='-pic'
42413 case $cc_basename in
42415 # NonStop-UX NCC 3.20
42416 lt_prog_compiler_pic_CXX='-KPIC'
42427 lt_prog_compiler_can_build_shared_CXX=no
42432 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
42433 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
42436 # Check to make sure the PIC flag actually works.
42438 if test -n "$lt_prog_compiler_pic_CXX"; then
42440 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
42441 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
42442 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
42443 $as_echo_n "(cached) " >&6
42445 lt_prog_compiler_pic_works_CXX=no
42446 ac_outfile=conftest.$ac_objext
42447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42448 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
42449 # Insert the option either (1) after the last *FLAGS variable, or
42450 # (2) before a word containing "conftest.", or (3) at the end.
42451 # Note that $ac_compile itself does not contain backslashes and begins
42452 # with a dollar sign (not a hyphen), so the echo should work correctly.
42453 # The option is referenced via a variable to avoid confusing sed.
42454 lt_compile=`echo "$ac_compile" | $SED \
42455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42457 -e 's:$: $lt_compiler_flag:'`
42458 (eval echo "\"\$as_me:42458: $lt_compile\"" >&5)
42459 (eval "$lt_compile" 2>conftest.err)
42461 cat conftest.err >&5
42462 echo "$as_me:42462: \$? = $ac_status" >&5
42463 if (exit $ac_status) && test -s "$ac_outfile"; then
42464 # The compiler can only warn and ignore the option if not recognized
42465 # So say no if there are warnings other than the usual output.
42466 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
42467 $SED '/^$/d' conftest.err >conftest.er2
42468 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
42469 lt_prog_compiler_pic_works_CXX=yes
42475 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
42476 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
42478 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
42479 case $lt_prog_compiler_pic_CXX in
42481 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
42484 lt_prog_compiler_pic_CXX=
42485 lt_prog_compiler_can_build_shared_CXX=no
42490 # For platforms which do not support PIC, -DPIC is meaningless:
42492 lt_prog_compiler_pic_CXX=
42495 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
42499 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
42500 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
42501 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
42502 $as_echo_n "(cached) " >&6
42504 lt_cv_prog_compiler_c_o_CXX=no
42505 $rm -r conftest 2>/dev/null
42509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42511 lt_compiler_flag="-o out/conftest2.$ac_objext"
42512 # Insert the option either (1) after the last *FLAGS variable, or
42513 # (2) before a word containing "conftest.", or (3) at the end.
42514 # Note that $ac_compile itself does not contain backslashes and begins
42515 # with a dollar sign (not a hyphen), so the echo should work correctly.
42516 lt_compile=`echo "$ac_compile" | $SED \
42517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42519 -e 's:$: $lt_compiler_flag:'`
42520 (eval echo "\"\$as_me:42520: $lt_compile\"" >&5)
42521 (eval "$lt_compile" 2>out/conftest.err)
42523 cat out/conftest.err >&5
42524 echo "$as_me:42524: \$? = $ac_status" >&5
42525 if (exit $ac_status) && test -s out/conftest2.$ac_objext
42527 # The compiler can only warn and ignore the option if not recognized
42528 # So say no if there are warnings
42529 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
42530 $SED '/^$/d' out/conftest.err >out/conftest.er2
42531 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
42532 lt_cv_prog_compiler_c_o_CXX=yes
42537 # SGI C++ compiler will create directory out/ii_files/ for
42538 # template instantiation
42539 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
42540 $rm out/* && rmdir out
42546 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
42547 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
42550 hard_links="nottested"
42551 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
42552 # do not overwrite the value of need_locks provided by the user
42553 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
42554 $as_echo_n "checking if we can lock with hard links... " >&6; }
42557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
42559 ln conftest.a conftest.b 2>&5 || hard_links=no
42560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
42561 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
42562 $as_echo "$hard_links" >&6; }
42563 if test "$hard_links" = no; then
42565 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
42566 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
42569 cat <<AAW_EOF >>config.warnings
42570 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
42580 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
42581 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
42583 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42586 # If we're using GNU nm, then we don't want the "-C" option.
42587 # -C means demangle to AIX nm, but means don't demangle with GNU nm
42588 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
42589 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
42591 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
42595 export_symbols_cmds_CXX="$ltdll_cmds"
42598 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
42601 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42605 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
42606 $as_echo "$ld_shlibs_CXX" >&6; }
42607 test "$ld_shlibs_CXX" = no && can_build_shared=no
42609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
42610 if test "$GCC" = yes; then
42611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
42615 # Do we need to explicitly link libc?
42617 case "x$archive_cmds_need_lc_CXX" in
42619 # Assume -lc should be added
42620 archive_cmds_need_lc_CXX=yes
42622 if test "$enable_shared" = yes && test "$GCC" = yes; then
42623 case $archive_cmds_CXX in
42625 # FIXME: we may have to deal with multi-command sequences.
42628 # Test whether the compiler implicitly links with -lc since on some
42629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
42630 # to ld, don't add -lc before -lgcc.
42631 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
42632 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
42634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42637 (eval $ac_compile) 2>&5
42639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42640 (exit $ac_status); } 2>conftest.err; then
42643 libobjs=conftest.$ac_objext
42645 wl=$lt_prog_compiler_wl_CXX
42651 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
42652 allow_undefined_flag_CXX=
42653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
42654 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
42656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657 (exit $ac_status); }
42659 archive_cmds_need_lc_CXX=no
42661 archive_cmds_need_lc_CXX=yes
42663 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
42665 cat conftest.err 1>&5
42668 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
42669 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
42676 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
42677 $as_echo_n "checking dynamic linker characteristics... " >&6; }
42678 library_names_spec=
42679 libname_spec='lib$name'
42683 postuninstall_cmds=
42687 shlibpath_overrides_runpath=unknown
42689 dynamic_linker="$host_os ld.so"
42690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
42691 if test "$GCC" = yes; then
42692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
42693 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
42694 # if the path contains ";" then we assume it to be the separator
42695 # otherwise default to the standard path separator (i.e. ":") - it is
42696 # assumed that no part of a normal pathname contains ";" but that should
42697 # okay in the real world where ";" in dirpaths is itself problematic.
42698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
42700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
42703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
42705 need_lib_prefix=unknown
42706 hardcode_into_libs=no
42708 # when you set need_version to no, make sure it does not cause -set_version
42709 # flags to be left without arguments
42710 need_version=unknown
42715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
42716 shlibpath_var=LIBPATH
42718 # AIX 3 has no versioning support, so we append a major version to the name.
42719 soname_spec='${libname}${release}${shared_ext}$major'
42726 hardcode_into_libs=yes
42727 if test "$host_cpu" = ia64; then
42728 # AIX 5 supports IA64
42729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
42730 shlibpath_var=LD_LIBRARY_PATH
42732 # With GCC up to 2.95.x, collect2 would create an import file
42733 # for dependence libraries. The import file would start with
42734 # the line `#! .'. This would cause the generated library to
42735 # depend on `.', always an invalid library. This was fixed in
42736 # development snapshots of GCC prior to 3.0.
42738 aix4 | aix4.[01] | aix4.[01].*)
42739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
42741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
42744 can_build_shared=no
42748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
42749 # soname into executable. Probably we can add versioning support to
42750 # collect2, so additional links can be useful in future.
42751 if test "$aix_use_runtimelinking" = yes; then
42752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
42753 # instead of lib<name>.a to let people know that these are not
42754 # typical AIX shared libraries.
42755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42757 # We preserve .a as extension for shared libraries through AIX4.2
42758 # and later when we are not doing run time linking.
42759 library_names_spec='${libname}${release}.a $libname.a'
42760 soname_spec='${libname}${release}${shared_ext}$major'
42762 shlibpath_var=LIBPATH
42767 library_names_spec='$libname.ixlibrary $libname.a'
42768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
42769 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'
42773 library_names_spec='${libname}${shared_ext}'
42774 dynamic_linker="$host_os ld.so"
42775 shlibpath_var=LIBRARY_PATH
42781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42782 soname_spec='${libname}${release}${shared_ext}$major'
42783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
42784 shlibpath_var=LD_LIBRARY_PATH
42785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
42786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
42787 # the default ld.so.conf also contains /usr/contrib/lib and
42788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
42789 # libtool to hard-code these into programs
42792 cygwin* | mingw* | pw32*)
42793 version_type=windows
42798 case $GCC,$host_os in
42799 yes,cygwin* | yes,mingw* | yes,pw32*)
42800 library_names_spec='$libname.dll.a'
42801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
42802 postinstall_cmds='base_file=`basename \${file}`~
42803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
42804 dldir=$destdir/`dirname \$dlpath`~
42805 test -d \$dldir || mkdir -p \$dldir~
42806 $install_prog $dir/$dlname \$dldir/$dlname~
42807 chmod a+x \$dldir/$dlname'
42808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
42809 dlpath=$dir/\$dldll~
42811 shlibpath_overrides_runpath=yes
42815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
42816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
42820 # MinGW DLLs use traditional 'lib' prefix
42821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
42823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
42824 # It is most probably a Windows format PATH printed by
42825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
42826 # path with ; separators, and with drive letters. We can handle the
42827 # drive letters (cygwin fileutils understands them), so leave them,
42828 # especially as we might pass files found there to a mingw objdump,
42829 # which wouldn't understand a cygwinified path. Ahh.
42830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
42832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
42836 # pw32 DLLs use 'pw' prefix rather than 'lib'
42837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
42846 dynamic_linker='Win32 ld.exe'
42847 # FIXME: first we should search . and the directory the executable is in
42851 darwin* | rhapsody*)
42852 dynamic_linker="$host_os dyld"
42853 version_type=darwin
42856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
42857 soname_spec='${libname}${release}${major}$shared_ext'
42858 shlibpath_overrides_runpath=yes
42859 shlibpath_var=DYLD_LIBRARY_PATH
42860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
42861 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
42862 if test "$GCC" = yes; then
42863 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
42865 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
42867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
42874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
42875 soname_spec='${libname}${release}${shared_ext}$major'
42876 shlibpath_var=LD_LIBRARY_PATH
42887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
42888 soname_spec='${libname}${release}${shared_ext}$major'
42889 shlibpath_var=LD_LIBRARY_PATH
42890 shlibpath_overrides_runpath=no
42891 hardcode_into_libs=yes
42892 dynamic_linker='GNU ld.so'
42895 freebsd* | dragonfly*)
42896 # DragonFly does not have aout. When/if they implement a new
42897 # versioning mechanism, adjust this.
42898 if test -x /usr/bin/objformat; then
42899 objformat=`/usr/bin/objformat`
42902 freebsd[123]*) objformat=aout ;;
42903 *) objformat=elf ;;
42906 version_type=freebsd-$objformat
42907 case $version_type in
42909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
42914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
42918 shlibpath_var=LD_LIBRARY_PATH
42921 shlibpath_overrides_runpath=yes
42923 freebsd3.[01]* | freebsdelf3.[01]*)
42924 shlibpath_overrides_runpath=yes
42925 hardcode_into_libs=yes
42928 shlibpath_overrides_runpath=no
42929 hardcode_into_libs=yes
42938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
42939 soname_spec='${libname}${release}${shared_ext}$major'
42940 shlibpath_var=LD_LIBRARY_PATH
42941 hardcode_into_libs=yes
42944 hpux9* | hpux10* | hpux11*)
42945 # Give a soname corresponding to the major version so that dld.sl refuses to
42946 # link against other versions.
42953 hardcode_into_libs=yes
42954 dynamic_linker="$host_os dld.so"
42955 shlibpath_var=LD_LIBRARY_PATH
42956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
42957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42958 soname_spec='${libname}${release}${shared_ext}$major'
42959 if test "X$HPUX_IA64_MODE" = X32; then
42960 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
42962 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
42964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
42968 hardcode_into_libs=yes
42969 dynamic_linker="$host_os dld.sl"
42970 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
42971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
42972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42973 soname_spec='${libname}${release}${shared_ext}$major'
42974 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
42975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
42979 dynamic_linker="$host_os dld.sl"
42980 shlibpath_var=SHLIB_PATH
42981 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
42982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42983 soname_spec='${libname}${release}${shared_ext}$major'
42986 # HP-UX runs *really* slowly unless shared libraries are mode 555.
42987 postinstall_cmds='chmod 555 $lib'
42990 irix5* | irix6* | nonstopux*)
42992 nonstopux*) version_type=nonstopux ;;
42994 if test "$lt_cv_prog_gnu_ld" = yes; then
43002 soname_spec='${libname}${release}${shared_ext}$major'
43003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
43005 irix5* | nonstopux*)
43006 libsuff= shlibsuff=
43009 case $LD in # libtool.m4 will add one of these switches to LD
43010 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
43011 libsuff= shlibsuff= libmagic=32-bit;;
43012 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
43013 libsuff=32 shlibsuff=N32 libmagic=N32;;
43014 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
43015 libsuff=64 shlibsuff=64 libmagic=64-bit;;
43016 *) libsuff= shlibsuff= libmagic=never-match;;
43020 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
43021 shlibpath_overrides_runpath=no
43022 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
43023 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
43024 hardcode_into_libs=yes
43027 # No shared lib support for Linux oldld, aout, or coff.
43028 linux*oldld* | linux*aout* | linux*coff*)
43032 # This must be Linux ELF.
43037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43038 soname_spec='${libname}${release}${shared_ext}$major'
43039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
43040 shlibpath_var=LD_LIBRARY_PATH
43041 shlibpath_overrides_runpath=no
43042 # This implies no fast_install, which is unacceptable.
43043 # Some rework will be needed to allow for fast_install
43044 # before this can be enabled.
43045 hardcode_into_libs=yes
43047 # Append ld.so.conf contents to the search path
43048 if test -f /etc/ld.so.conf; then
43049 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
43050 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
43053 # We used to test for /lib/ld.so.1 and disable shared libraries on
43054 # powerpc, because MkLinux only supported shared libraries with the
43055 # GNU dynamic linker. Since this was broken with cross compilers,
43056 # most powerpc-linux boxes support dynamic linking these days and
43057 # people can always --disable-shared, the test was removed, and we
43058 # assume the GNU/Linux dynamic linker is in use.
43059 dynamic_linker='GNU/Linux ld.so'
43066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43067 soname_spec='${libname}${release}${shared_ext}$major'
43068 shlibpath_var=LD_LIBRARY_PATH
43069 shlibpath_overrides_runpath=no
43070 hardcode_into_libs=yes
43071 dynamic_linker='GNU ld.so'
43078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
43079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
43081 dynamic_linker='NetBSD (a.out) ld.so'
43083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43084 soname_spec='${libname}${release}${shared_ext}$major'
43085 dynamic_linker='NetBSD ld.elf_so'
43087 shlibpath_var=LD_LIBRARY_PATH
43088 shlibpath_overrides_runpath=yes
43089 hardcode_into_libs=yes
43094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43095 shlibpath_var=LD_LIBRARY_PATH
43096 shlibpath_overrides_runpath=yes
43103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43104 soname_spec='${libname}${release}${shared_ext}$major'
43105 shlibpath_var=LD_LIBRARY_PATH
43106 shlibpath_overrides_runpath=yes
43112 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
43114 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
43115 *) need_version=no ;;
43117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
43119 shlibpath_var=LD_LIBRARY_PATH
43120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43122 openbsd2.[89] | openbsd2.[89].*)
43123 shlibpath_overrides_runpath=no
43126 shlibpath_overrides_runpath=yes
43130 shlibpath_overrides_runpath=yes
43135 libname_spec='$name'
43138 library_names_spec='$libname${shared_ext} $libname.a'
43139 dynamic_linker='OS/2 ld.exe'
43140 shlibpath_var=LIBPATH
43143 osf3* | osf4* | osf5*)
43147 soname_spec='${libname}${release}${shared_ext}$major'
43148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43149 shlibpath_var=LD_LIBRARY_PATH
43150 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
43151 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
43156 soname_spec='${libname}${release}${shared_ext}$major'
43157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43158 shlibpath_var=LD_LIBRARY_PATH
43165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43166 soname_spec='${libname}${release}${shared_ext}$major'
43167 shlibpath_var=LD_LIBRARY_PATH
43168 shlibpath_overrides_runpath=yes
43169 hardcode_into_libs=yes
43170 # ldd complains unless libraries are executable
43171 postinstall_cmds='chmod +x $lib'
43176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
43178 shlibpath_var=LD_LIBRARY_PATH
43179 shlibpath_overrides_runpath=yes
43180 if test "$with_gnu_ld" = yes; then
43186 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
43188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43189 soname_spec='${libname}${release}${shared_ext}$major'
43190 shlibpath_var=LD_LIBRARY_PATH
43191 case $host_vendor in
43193 shlibpath_overrides_runpath=no
43195 export_dynamic_flag_spec='${wl}-Blargedynsym'
43196 runpath_var=LD_RUN_PATH
43204 shlibpath_overrides_runpath=no
43205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
43211 if test -d /usr/nec ;then
43213 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
43214 soname_spec='$libname${shared_ext}.$major'
43215 shlibpath_var=LD_LIBRARY_PATH
43221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43222 soname_spec='${libname}${release}${shared_ext}$major'
43223 shlibpath_var=LD_LIBRARY_PATH
43230 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
43231 $as_echo "$dynamic_linker" >&6; }
43232 test "$dynamic_linker" = no && can_build_shared=no
43234 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
43235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
43236 hardcode_action_CXX=
43237 if test -n "$hardcode_libdir_flag_spec_CXX" || \
43238 test -n "$runpath_var_CXX" || \
43239 test "X$hardcode_automatic_CXX" = "Xyes" ; then
43241 # We can hardcode non-existant directories.
43242 if test "$hardcode_direct_CXX" != no &&
43243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
43244 # have to relink, otherwise we might link with an installed library
43245 # when we should be linking with a yet-to-be-installed one
43246 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
43247 test "$hardcode_minus_L_CXX" != no; then
43248 # Linking always hardcodes the temporary library directory.
43249 hardcode_action_CXX=relink
43251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
43252 hardcode_action_CXX=immediate
43255 # We cannot hardcode anything, or else we can only hardcode existing
43257 hardcode_action_CXX=unsupported
43259 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
43260 $as_echo "$hardcode_action_CXX" >&6; }
43262 if test "$hardcode_action_CXX" = relink; then
43263 # Fast installation is not supported
43264 enable_fast_install=no
43265 elif test "$shlibpath_overrides_runpath" = yes ||
43266 test "$enable_shared" = no; then
43267 # Fast installation is not necessary
43268 enable_fast_install=needless
43273 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
43274 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
43275 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
43276 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
43277 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
43278 { $as_echo "$as_me:$LINENO: result: yes" >&5
43279 $as_echo "yes" >&6; }
43281 # FIXME - insert some real tests, host_os isn't really good enough
43284 if test -n "$STRIP" ; then
43285 striplib="$STRIP -x"
43286 { $as_echo "$as_me:$LINENO: result: yes" >&5
43287 $as_echo "yes" >&6; }
43289 { $as_echo "$as_me:$LINENO: result: no" >&5
43290 $as_echo "no" >&6; }
43294 { $as_echo "$as_me:$LINENO: result: no" >&5
43295 $as_echo "no" >&6; }
43300 if test "x$enable_dlopen" != xyes; then
43301 enable_dlopen=unknown
43302 enable_dlopen_self=unknown
43303 enable_dlopen_self_static=unknown
43310 lt_cv_dlopen="load_add_on"
43312 lt_cv_dlopen_self=yes
43316 lt_cv_dlopen="LoadLibrary"
43321 lt_cv_dlopen="dlopen"
43326 # if libdl is installed we need to link against it
43327 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43328 $as_echo_n "checking for dlopen in -ldl... " >&6; }
43329 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43330 $as_echo_n "(cached) " >&6
43332 ac_check_lib_save_LIBS=$LIBS
43334 cat >conftest.$ac_ext <<_ACEOF
43337 cat confdefs.h >>conftest.$ac_ext
43338 cat >>conftest.$ac_ext <<_ACEOF
43339 /* end confdefs.h. */
43341 /* Override any GCC internal prototype to avoid an error.
43342 Use char because int might match the return type of a GCC
43343 builtin and then its argument prototype would still apply. */
43356 rm -f conftest.$ac_objext conftest$ac_exeext
43357 if { (ac_try="$ac_link"
43358 case "(($ac_try" in
43359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43360 *) ac_try_echo=$ac_try;;
43362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43363 $as_echo "$ac_try_echo") >&5
43364 (eval "$ac_link") 2>conftest.er1
43366 grep -v '^ *+' conftest.er1 >conftest.err
43368 cat conftest.err >&5
43369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43370 (exit $ac_status); } && {
43371 test -z "$ac_cxx_werror_flag" ||
43372 test ! -s conftest.err
43373 } && test -s conftest$ac_exeext && {
43374 test "$cross_compiling" = yes ||
43375 $as_test_x conftest$ac_exeext
43377 ac_cv_lib_dl_dlopen=yes
43379 $as_echo "$as_me: failed program was:" >&5
43380 sed 's/^/| /' conftest.$ac_ext >&5
43382 ac_cv_lib_dl_dlopen=no
43385 rm -rf conftest.dSYM
43386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43387 conftest$ac_exeext conftest.$ac_ext
43388 LIBS=$ac_check_lib_save_LIBS
43390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43391 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
43392 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
43393 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
43396 lt_cv_dlopen="dyld"
43398 lt_cv_dlopen_self=yes
43405 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
43406 $as_echo_n "checking for shl_load... " >&6; }
43407 if test "${ac_cv_func_shl_load+set}" = set; then
43408 $as_echo_n "(cached) " >&6
43410 cat >conftest.$ac_ext <<_ACEOF
43413 cat confdefs.h >>conftest.$ac_ext
43414 cat >>conftest.$ac_ext <<_ACEOF
43415 /* end confdefs.h. */
43416 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
43417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43418 #define shl_load innocuous_shl_load
43420 /* System header to define __stub macros and hopefully few prototypes,
43421 which can conflict with char shl_load (); below.
43422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43423 <limits.h> exists even on freestanding compilers. */
43426 # include <limits.h>
43428 # include <assert.h>
43433 /* Override any GCC internal prototype to avoid an error.
43434 Use char because int might match the return type of a GCC
43435 builtin and then its argument prototype would still apply. */
43440 /* The GNU C library defines this for functions which it implements
43441 to always fail with ENOSYS. Some functions are actually named
43442 something starting with __ and the normal name is an alias. */
43443 #if defined __stub_shl_load || defined __stub___shl_load
43450 return shl_load ();
43455 rm -f conftest.$ac_objext conftest$ac_exeext
43456 if { (ac_try="$ac_link"
43457 case "(($ac_try" in
43458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43459 *) ac_try_echo=$ac_try;;
43461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43462 $as_echo "$ac_try_echo") >&5
43463 (eval "$ac_link") 2>conftest.er1
43465 grep -v '^ *+' conftest.er1 >conftest.err
43467 cat conftest.err >&5
43468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43469 (exit $ac_status); } && {
43470 test -z "$ac_cxx_werror_flag" ||
43471 test ! -s conftest.err
43472 } && test -s conftest$ac_exeext && {
43473 test "$cross_compiling" = yes ||
43474 $as_test_x conftest$ac_exeext
43476 ac_cv_func_shl_load=yes
43478 $as_echo "$as_me: failed program was:" >&5
43479 sed 's/^/| /' conftest.$ac_ext >&5
43481 ac_cv_func_shl_load=no
43484 rm -rf conftest.dSYM
43485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43486 conftest$ac_exeext conftest.$ac_ext
43488 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
43489 $as_echo "$ac_cv_func_shl_load" >&6; }
43490 if test "x$ac_cv_func_shl_load" = x""yes; then
43491 lt_cv_dlopen="shl_load"
43493 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
43494 $as_echo_n "checking for shl_load in -ldld... " >&6; }
43495 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
43496 $as_echo_n "(cached) " >&6
43498 ac_check_lib_save_LIBS=$LIBS
43500 cat >conftest.$ac_ext <<_ACEOF
43503 cat confdefs.h >>conftest.$ac_ext
43504 cat >>conftest.$ac_ext <<_ACEOF
43505 /* end confdefs.h. */
43507 /* Override any GCC internal prototype to avoid an error.
43508 Use char because int might match the return type of a GCC
43509 builtin and then its argument prototype would still apply. */
43517 return shl_load ();
43522 rm -f conftest.$ac_objext conftest$ac_exeext
43523 if { (ac_try="$ac_link"
43524 case "(($ac_try" in
43525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43526 *) ac_try_echo=$ac_try;;
43528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43529 $as_echo "$ac_try_echo") >&5
43530 (eval "$ac_link") 2>conftest.er1
43532 grep -v '^ *+' conftest.er1 >conftest.err
43534 cat conftest.err >&5
43535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43536 (exit $ac_status); } && {
43537 test -z "$ac_cxx_werror_flag" ||
43538 test ! -s conftest.err
43539 } && test -s conftest$ac_exeext && {
43540 test "$cross_compiling" = yes ||
43541 $as_test_x conftest$ac_exeext
43543 ac_cv_lib_dld_shl_load=yes
43545 $as_echo "$as_me: failed program was:" >&5
43546 sed 's/^/| /' conftest.$ac_ext >&5
43548 ac_cv_lib_dld_shl_load=no
43551 rm -rf conftest.dSYM
43552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43553 conftest$ac_exeext conftest.$ac_ext
43554 LIBS=$ac_check_lib_save_LIBS
43556 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
43557 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
43558 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
43559 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
43561 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
43562 $as_echo_n "checking for dlopen... " >&6; }
43563 if test "${ac_cv_func_dlopen+set}" = set; then
43564 $as_echo_n "(cached) " >&6
43566 cat >conftest.$ac_ext <<_ACEOF
43569 cat confdefs.h >>conftest.$ac_ext
43570 cat >>conftest.$ac_ext <<_ACEOF
43571 /* end confdefs.h. */
43572 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
43573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43574 #define dlopen innocuous_dlopen
43576 /* System header to define __stub macros and hopefully few prototypes,
43577 which can conflict with char dlopen (); below.
43578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43579 <limits.h> exists even on freestanding compilers. */
43582 # include <limits.h>
43584 # include <assert.h>
43589 /* Override any GCC internal prototype to avoid an error.
43590 Use char because int might match the return type of a GCC
43591 builtin and then its argument prototype would still apply. */
43596 /* The GNU C library defines this for functions which it implements
43597 to always fail with ENOSYS. Some functions are actually named
43598 something starting with __ and the normal name is an alias. */
43599 #if defined __stub_dlopen || defined __stub___dlopen
43611 rm -f conftest.$ac_objext conftest$ac_exeext
43612 if { (ac_try="$ac_link"
43613 case "(($ac_try" in
43614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43615 *) ac_try_echo=$ac_try;;
43617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43618 $as_echo "$ac_try_echo") >&5
43619 (eval "$ac_link") 2>conftest.er1
43621 grep -v '^ *+' conftest.er1 >conftest.err
43623 cat conftest.err >&5
43624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43625 (exit $ac_status); } && {
43626 test -z "$ac_cxx_werror_flag" ||
43627 test ! -s conftest.err
43628 } && test -s conftest$ac_exeext && {
43629 test "$cross_compiling" = yes ||
43630 $as_test_x conftest$ac_exeext
43632 ac_cv_func_dlopen=yes
43634 $as_echo "$as_me: failed program was:" >&5
43635 sed 's/^/| /' conftest.$ac_ext >&5
43637 ac_cv_func_dlopen=no
43640 rm -rf conftest.dSYM
43641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43642 conftest$ac_exeext conftest.$ac_ext
43644 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
43645 $as_echo "$ac_cv_func_dlopen" >&6; }
43646 if test "x$ac_cv_func_dlopen" = x""yes; then
43647 lt_cv_dlopen="dlopen"
43649 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43650 $as_echo_n "checking for dlopen in -ldl... " >&6; }
43651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43652 $as_echo_n "(cached) " >&6
43654 ac_check_lib_save_LIBS=$LIBS
43656 cat >conftest.$ac_ext <<_ACEOF
43659 cat confdefs.h >>conftest.$ac_ext
43660 cat >>conftest.$ac_ext <<_ACEOF
43661 /* end confdefs.h. */
43663 /* Override any GCC internal prototype to avoid an error.
43664 Use char because int might match the return type of a GCC
43665 builtin and then its argument prototype would still apply. */
43678 rm -f conftest.$ac_objext conftest$ac_exeext
43679 if { (ac_try="$ac_link"
43680 case "(($ac_try" in
43681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43682 *) ac_try_echo=$ac_try;;
43684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43685 $as_echo "$ac_try_echo") >&5
43686 (eval "$ac_link") 2>conftest.er1
43688 grep -v '^ *+' conftest.er1 >conftest.err
43690 cat conftest.err >&5
43691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43692 (exit $ac_status); } && {
43693 test -z "$ac_cxx_werror_flag" ||
43694 test ! -s conftest.err
43695 } && test -s conftest$ac_exeext && {
43696 test "$cross_compiling" = yes ||
43697 $as_test_x conftest$ac_exeext
43699 ac_cv_lib_dl_dlopen=yes
43701 $as_echo "$as_me: failed program was:" >&5
43702 sed 's/^/| /' conftest.$ac_ext >&5
43704 ac_cv_lib_dl_dlopen=no
43707 rm -rf conftest.dSYM
43708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43709 conftest$ac_exeext conftest.$ac_ext
43710 LIBS=$ac_check_lib_save_LIBS
43712 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43713 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
43714 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
43715 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
43717 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
43718 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
43719 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
43720 $as_echo_n "(cached) " >&6
43722 ac_check_lib_save_LIBS=$LIBS
43723 LIBS="-lsvld $LIBS"
43724 cat >conftest.$ac_ext <<_ACEOF
43727 cat confdefs.h >>conftest.$ac_ext
43728 cat >>conftest.$ac_ext <<_ACEOF
43729 /* end confdefs.h. */
43731 /* Override any GCC internal prototype to avoid an error.
43732 Use char because int might match the return type of a GCC
43733 builtin and then its argument prototype would still apply. */
43746 rm -f conftest.$ac_objext conftest$ac_exeext
43747 if { (ac_try="$ac_link"
43748 case "(($ac_try" in
43749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43750 *) ac_try_echo=$ac_try;;
43752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43753 $as_echo "$ac_try_echo") >&5
43754 (eval "$ac_link") 2>conftest.er1
43756 grep -v '^ *+' conftest.er1 >conftest.err
43758 cat conftest.err >&5
43759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43760 (exit $ac_status); } && {
43761 test -z "$ac_cxx_werror_flag" ||
43762 test ! -s conftest.err
43763 } && test -s conftest$ac_exeext && {
43764 test "$cross_compiling" = yes ||
43765 $as_test_x conftest$ac_exeext
43767 ac_cv_lib_svld_dlopen=yes
43769 $as_echo "$as_me: failed program was:" >&5
43770 sed 's/^/| /' conftest.$ac_ext >&5
43772 ac_cv_lib_svld_dlopen=no
43775 rm -rf conftest.dSYM
43776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43777 conftest$ac_exeext conftest.$ac_ext
43778 LIBS=$ac_check_lib_save_LIBS
43780 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
43781 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
43782 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
43783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
43785 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
43786 $as_echo_n "checking for dld_link in -ldld... " >&6; }
43787 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
43788 $as_echo_n "(cached) " >&6
43790 ac_check_lib_save_LIBS=$LIBS
43792 cat >conftest.$ac_ext <<_ACEOF
43795 cat confdefs.h >>conftest.$ac_ext
43796 cat >>conftest.$ac_ext <<_ACEOF
43797 /* end confdefs.h. */
43799 /* Override any GCC internal prototype to avoid an error.
43800 Use char because int might match the return type of a GCC
43801 builtin and then its argument prototype would still apply. */
43809 return dld_link ();
43814 rm -f conftest.$ac_objext conftest$ac_exeext
43815 if { (ac_try="$ac_link"
43816 case "(($ac_try" in
43817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43818 *) ac_try_echo=$ac_try;;
43820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43821 $as_echo "$ac_try_echo") >&5
43822 (eval "$ac_link") 2>conftest.er1
43824 grep -v '^ *+' conftest.er1 >conftest.err
43826 cat conftest.err >&5
43827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828 (exit $ac_status); } && {
43829 test -z "$ac_cxx_werror_flag" ||
43830 test ! -s conftest.err
43831 } && test -s conftest$ac_exeext && {
43832 test "$cross_compiling" = yes ||
43833 $as_test_x conftest$ac_exeext
43835 ac_cv_lib_dld_dld_link=yes
43837 $as_echo "$as_me: failed program was:" >&5
43838 sed 's/^/| /' conftest.$ac_ext >&5
43840 ac_cv_lib_dld_dld_link=no
43843 rm -rf conftest.dSYM
43844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43845 conftest$ac_exeext conftest.$ac_ext
43846 LIBS=$ac_check_lib_save_LIBS
43848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
43849 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
43850 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
43851 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
43872 if test "x$lt_cv_dlopen" != xno; then
43878 case $lt_cv_dlopen in
43880 save_CPPFLAGS="$CPPFLAGS"
43881 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
43883 save_LDFLAGS="$LDFLAGS"
43884 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
43887 LIBS="$lt_cv_dlopen_libs $LIBS"
43889 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
43890 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
43891 if test "${lt_cv_dlopen_self+set}" = set; then
43892 $as_echo_n "(cached) " >&6
43894 if test "$cross_compiling" = yes; then :
43895 lt_cv_dlopen_self=cross
43897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
43898 lt_status=$lt_dlunknown
43899 cat > conftest.$ac_ext <<EOF
43900 #line 43900 "configure"
43901 #include "confdefs.h"
43910 # define LT_DLGLOBAL RTLD_GLOBAL
43913 # define LT_DLGLOBAL DL_GLOBAL
43915 # define LT_DLGLOBAL 0
43919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
43920 find out it does not work in some platform. */
43921 #ifndef LT_DLLAZY_OR_NOW
43923 # define LT_DLLAZY_OR_NOW RTLD_LAZY
43926 # define LT_DLLAZY_OR_NOW DL_LAZY
43929 # define LT_DLLAZY_OR_NOW RTLD_NOW
43932 # define LT_DLLAZY_OR_NOW DL_NOW
43934 # define LT_DLLAZY_OR_NOW 0
43942 extern "C" void exit (int);
43945 void fnord() { int i=42;}
43948 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
43949 int status = $lt_dlunknown;
43953 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43954 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
43955 /* dlclose (self); */
43961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43962 (eval $ac_link) 2>&5
43964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43965 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
43966 (./conftest; exit; ) >&5 2>/dev/null
43968 case x$lt_status in
43969 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
43970 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
43971 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
43974 # compilation failed
43975 lt_cv_dlopen_self=no
43982 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
43983 $as_echo "$lt_cv_dlopen_self" >&6; }
43985 if test "x$lt_cv_dlopen_self" = xyes; then
43986 LDFLAGS="$LDFLAGS $link_static_flag"
43987 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
43988 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
43989 if test "${lt_cv_dlopen_self_static+set}" = set; then
43990 $as_echo_n "(cached) " >&6
43992 if test "$cross_compiling" = yes; then :
43993 lt_cv_dlopen_self_static=cross
43995 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
43996 lt_status=$lt_dlunknown
43997 cat > conftest.$ac_ext <<EOF
43998 #line 43998 "configure"
43999 #include "confdefs.h"
44008 # define LT_DLGLOBAL RTLD_GLOBAL
44011 # define LT_DLGLOBAL DL_GLOBAL
44013 # define LT_DLGLOBAL 0
44017 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
44018 find out it does not work in some platform. */
44019 #ifndef LT_DLLAZY_OR_NOW
44021 # define LT_DLLAZY_OR_NOW RTLD_LAZY
44024 # define LT_DLLAZY_OR_NOW DL_LAZY
44027 # define LT_DLLAZY_OR_NOW RTLD_NOW
44030 # define LT_DLLAZY_OR_NOW DL_NOW
44032 # define LT_DLLAZY_OR_NOW 0
44040 extern "C" void exit (int);
44043 void fnord() { int i=42;}
44046 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
44047 int status = $lt_dlunknown;
44051 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
44052 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
44053 /* dlclose (self); */
44059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44060 (eval $ac_link) 2>&5
44062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44063 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
44064 (./conftest; exit; ) >&5 2>/dev/null
44066 case x$lt_status in
44067 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
44068 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
44069 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
44072 # compilation failed
44073 lt_cv_dlopen_self_static=no
44080 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
44081 $as_echo "$lt_cv_dlopen_self_static" >&6; }
44084 CPPFLAGS="$save_CPPFLAGS"
44085 LDFLAGS="$save_LDFLAGS"
44090 case $lt_cv_dlopen_self in
44091 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
44092 *) enable_dlopen_self=unknown ;;
44095 case $lt_cv_dlopen_self_static in
44096 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
44097 *) enable_dlopen_self_static=unknown ;;
44102 # The else clause should only fire when bootstrapping the
44103 # libtool distribution, otherwise you forgot to ship ltmain.sh
44104 # with your package, and you will get complaints that there are
44105 # no rules to generate ltmain.sh.
44106 if test -f "$ltmain"; then
44107 # See if we are running on zsh, and set the options which allow our commands through
44108 # without removal of \ escapes.
44109 if test -n "${ZSH_VERSION+set}" ; then
44110 setopt NO_GLOB_SUBST
44112 # Now quote all the things that may contain metacharacters while being
44113 # careful not to overquote the AC_SUBSTed values. We take copies of the
44114 # variables and quote the copies for generation of the libtool script.
44115 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
44117 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
44118 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
44119 deplibs_check_method reload_flag reload_cmds need_locks \
44120 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
44121 lt_cv_sys_global_symbol_to_c_name_address \
44122 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
44123 old_postinstall_cmds old_postuninstall_cmds \
44127 lt_prog_compiler_wl_CXX \
44128 lt_prog_compiler_pic_CXX \
44129 lt_prog_compiler_static_CXX \
44130 lt_prog_compiler_no_builtin_flag_CXX \
44131 export_dynamic_flag_spec_CXX \
44132 thread_safe_flag_spec_CXX \
44133 whole_archive_flag_spec_CXX \
44134 enable_shared_with_static_runtimes_CXX \
44135 old_archive_cmds_CXX \
44136 old_archive_from_new_cmds_CXX \
44137 predep_objects_CXX \
44138 postdep_objects_CXX \
44141 compiler_lib_search_path_CXX \
44143 archive_expsym_cmds_CXX \
44144 postinstall_cmds_CXX \
44145 postuninstall_cmds_CXX \
44146 old_archive_from_expsyms_cmds_CXX \
44147 allow_undefined_flag_CXX \
44148 no_undefined_flag_CXX \
44149 export_symbols_cmds_CXX \
44150 hardcode_libdir_flag_spec_CXX \
44151 hardcode_libdir_flag_spec_ld_CXX \
44152 hardcode_libdir_separator_CXX \
44153 hardcode_automatic_CXX \
44155 module_expsym_cmds_CXX \
44156 lt_cv_prog_compiler_c_o_CXX \
44157 exclude_expsyms_CXX \
44158 include_expsyms_CXX; do
44161 old_archive_cmds_CXX | \
44162 old_archive_from_new_cmds_CXX | \
44163 archive_cmds_CXX | \
44164 archive_expsym_cmds_CXX | \
44165 module_cmds_CXX | \
44166 module_expsym_cmds_CXX | \
44167 old_archive_from_expsyms_cmds_CXX | \
44168 export_symbols_cmds_CXX | \
44169 extract_expsyms_cmds | reload_cmds | finish_cmds | \
44170 postinstall_cmds | postuninstall_cmds | \
44171 old_postinstall_cmds | old_postuninstall_cmds | \
44172 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
44173 # Double-quote double-evaled strings.
44174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
44177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
44183 *'\$0 --fallback-echo"')
44184 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
44190 cat <<__EOF__ >> "$cfgfile"
44191 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
44193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44195 # Shell to use when invoking shell scripts.
44198 # Whether or not to build shared libraries.
44199 build_libtool_libs=$enable_shared
44201 # Whether or not to build static libraries.
44202 build_old_libs=$enable_static
44204 # Whether or not to add -lc for building shared libraries.
44205 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44207 # Whether or not to disallow shared libs when runtime libs are static
44208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44210 # Whether or not to optimize for fast installation.
44211 fast_install=$enable_fast_install
44214 host_alias=$host_alias
44218 # The build system.
44219 build_alias=$build_alias
44223 # An echo program that does not interpret backslashes.
44228 AR_FLAGS=$lt_AR_FLAGS
44233 # A language-specific compiler.
44234 CC=$lt_compiler_CXX
44236 # Is the compiler the GNU C compiler?
44242 # The linker used to build libraries.
44245 # Whether we need hard or soft links.
44248 # A BSD-compatible nm program.
44251 # A symbol stripping program
44254 # Used to examine libraries when file_magic_cmd begins "file"
44255 MAGIC_CMD=$MAGIC_CMD
44257 # Used on cygwin: DLL creation program.
44260 # Used on cygwin: object dumper.
44263 # Used on cygwin: assembler.
44266 # The name of the directory that contains temporary libtool files.
44269 # How to create reloadable object files.
44270 reload_flag=$lt_reload_flag
44271 reload_cmds=$lt_reload_cmds
44273 # How to pass a linker flag through the compiler.
44274 wl=$lt_lt_prog_compiler_wl_CXX
44276 # Object file suffix (normally "o").
44277 objext="$ac_objext"
44279 # Old archive suffix (normally "a").
44282 # Shared library suffix (normally ".so").
44283 shrext_cmds='$shrext_cmds'
44285 # Executable file suffix (normally "").
44288 # Additional compiler flags for building library objects.
44289 pic_flag=$lt_lt_prog_compiler_pic_CXX
44292 # What is the maximum length of a command?
44293 max_cmd_len=$lt_cv_sys_max_cmd_len
44295 # Does compiler simultaneously support -c and -o options?
44296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44298 # Must we lock files when doing compilation?
44299 need_locks=$lt_need_locks
44301 # Do we need the lib prefix for modules?
44302 need_lib_prefix=$need_lib_prefix
44304 # Do we need a version for libraries?
44305 need_version=$need_version
44307 # Whether dlopen is supported.
44308 dlopen_support=$enable_dlopen
44310 # Whether dlopen of programs is supported.
44311 dlopen_self=$enable_dlopen_self
44313 # Whether dlopen of statically linked programs is supported.
44314 dlopen_self_static=$enable_dlopen_self_static
44316 # Compiler flag to prevent dynamic linking.
44317 link_static_flag=$lt_lt_prog_compiler_static_CXX
44319 # Compiler flag to turn off builtin functions.
44320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44322 # Compiler flag to allow reflexive dlopens.
44323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44325 # Compiler flag to generate shared objects directly from archives.
44326 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44328 # Compiler flag to generate thread-safe objects.
44329 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
44331 # Library versioning type.
44332 version_type=$version_type
44334 # Format of library name prefix.
44335 libname_spec=$lt_libname_spec
44337 # List of archive names. First name is the real one, the rest are links.
44338 # The last name is the one that the linker finds with -lNAME.
44339 library_names_spec=$lt_library_names_spec
44341 # The coded name of the library, if different from the real name.
44342 soname_spec=$lt_soname_spec
44344 # Commands used to build and install an old-style archive.
44346 old_archive_cmds=$lt_old_archive_cmds_CXX
44347 old_postinstall_cmds=$lt_old_postinstall_cmds
44348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44350 # Create an old-style archive from a shared archive.
44351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44353 # Create a temporary old-style archive to link instead of a shared archive.
44354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44356 # Commands used to build and install a shared archive.
44357 archive_cmds=$lt_archive_cmds_CXX
44358 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44359 postinstall_cmds=$lt_postinstall_cmds
44360 postuninstall_cmds=$lt_postuninstall_cmds
44362 # Commands used to build a loadable module (assumed same as above if empty)
44363 module_cmds=$lt_module_cmds_CXX
44364 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44366 # Commands to strip libraries.
44367 old_striplib=$lt_old_striplib
44368 striplib=$lt_striplib
44370 # Dependencies to place before the objects being linked to create a
44372 predep_objects=$lt_predep_objects_CXX
44374 # Dependencies to place after the objects being linked to create a
44376 postdep_objects=$lt_postdep_objects_CXX
44378 # Dependencies to place before the objects being linked to create a
44380 predeps=$lt_predeps_CXX
44382 # Dependencies to place after the objects being linked to create a
44384 postdeps=$lt_postdeps_CXX
44386 # The library search path used internally by the compiler when linking
44387 # a shared library.
44388 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44390 # Method to check whether dependent libraries are shared objects.
44391 deplibs_check_method=$lt_deplibs_check_method
44393 # Command to use when deplibs_check_method == file_magic.
44394 file_magic_cmd=$lt_file_magic_cmd
44396 # Flag that allows shared libraries with undefined symbols to be built.
44397 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44399 # Flag that forces no undefined symbols.
44400 no_undefined_flag=$lt_no_undefined_flag_CXX
44402 # Commands used to finish a libtool library installation in a directory.
44403 finish_cmds=$lt_finish_cmds
44405 # Same as above, but a single script fragment to be evaled but not shown.
44406 finish_eval=$lt_finish_eval
44408 # Take the output of nm and produce a listing of raw symbols and C names.
44409 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44411 # Transform the output of nm in a proper C declaration
44412 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44414 # Transform the output of nm in a C name address pair
44415 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44417 # This is the shared library runtime path variable.
44418 runpath_var=$runpath_var
44420 # This is the shared library path variable.
44421 shlibpath_var=$shlibpath_var
44423 # Is shlibpath searched before the hard-coded library search path?
44424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44426 # How to hardcode a shared library path into an executable.
44427 hardcode_action=$hardcode_action_CXX
44429 # Whether we should hardcode library paths into libraries.
44430 hardcode_into_libs=$hardcode_into_libs
44432 # Flag to hardcode \$libdir into a binary during linking.
44433 # This must work even if \$libdir does not exist.
44434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44436 # If ld is used when linking, flag to hardcode \$libdir into
44437 # a binary during linking. This must work even if \$libdir does
44439 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44441 # Whether we need a single -rpath flag with a separated argument.
44442 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44444 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
44445 # resulting binary.
44446 hardcode_direct=$hardcode_direct_CXX
44448 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
44449 # resulting binary.
44450 hardcode_minus_L=$hardcode_minus_L_CXX
44452 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
44453 # the resulting binary.
44454 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44456 # Set to yes if building a shared library automatically hardcodes DIR into the library
44457 # and all subsequent libraries and executables linked against it.
44458 hardcode_automatic=$hardcode_automatic_CXX
44460 # Variables whose values should be saved in libtool wrapper scripts and
44461 # restored at relink time.
44462 variables_saved_for_relink="$variables_saved_for_relink"
44464 # Whether libtool must link a program against all its dependency libraries.
44465 link_all_deplibs=$link_all_deplibs_CXX
44467 # Compile-time system search path for libraries
44468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44470 # Run-time system search path for libraries
44471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44473 # Fix the shell variable \$srcfile for the compiler.
44474 fix_srcfile_path="$fix_srcfile_path_CXX"
44476 # Set to yes if exported symbols are required.
44477 always_export_symbols=$always_export_symbols_CXX
44479 # The commands to list exported symbols.
44480 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44482 # The commands to extract the exported symbol list from a shared archive.
44483 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44485 # Symbols that should not be listed in the preloaded symbols.
44486 exclude_expsyms=$lt_exclude_expsyms_CXX
44488 # Symbols that must always be exported.
44489 include_expsyms=$lt_include_expsyms_CXX
44491 # ### END LIBTOOL TAG CONFIG: $tagname
44497 # If there is no Makefile yet, we rely on a make rule to execute
44498 # `config.status --recheck' to rerun these tests and create the
44499 # libtool script then.
44500 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
44501 if test -f "$ltmain_in"; then
44502 test -f Makefile && make "$ltmain"
44508 ac_cpp='$CPP $CPPFLAGS'
44509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44517 with_gnu_ldcxx=$with_gnu_ld
44518 with_gnu_ld=$lt_save_with_gnu_ld
44519 lt_cv_path_LDCXX=$lt_cv_path_LD
44520 lt_cv_path_LD=$lt_save_path_LD
44521 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
44522 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
44530 if test -n "$F77" && test "X$F77" != "Xno"; then
44533 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44534 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44535 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44538 archive_cmds_need_lc_F77=no
44539 allow_undefined_flag_F77=
44540 always_export_symbols_F77=no
44541 archive_expsym_cmds_F77=
44542 export_dynamic_flag_spec_F77=
44543 hardcode_direct_F77=no
44544 hardcode_libdir_flag_spec_F77=
44545 hardcode_libdir_flag_spec_ld_F77=
44546 hardcode_libdir_separator_F77=
44547 hardcode_minus_L_F77=no
44548 hardcode_automatic_F77=no
44550 module_expsym_cmds_F77=
44551 link_all_deplibs_F77=unknown
44552 old_archive_cmds_F77=$old_archive_cmds
44553 no_undefined_flag_F77=
44554 whole_archive_flag_spec_F77=
44555 enable_shared_with_static_runtimes_F77=no
44557 # Source file extension for f77 test sources.
44560 # Object file extension for compiled f77 test sources.
44564 # Code to be used in simple compile tests
44565 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
44567 # Code to be used in simple link tests
44568 lt_simple_link_test_code=" program t\n end\n"
44570 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
44572 # If no C compiler was specified, use CC.
44575 # Allow CC to be a program name with arguments.
44579 # save warnings/boilerplate of simple test code
44580 ac_outfile=conftest.$ac_objext
44581 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
44582 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44583 _lt_compiler_boilerplate=`cat conftest.err`
44586 ac_outfile=conftest.$ac_objext
44587 printf "$lt_simple_link_test_code" >conftest.$ac_ext
44588 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44589 _lt_linker_boilerplate=`cat conftest.err`
44593 # Allow CC to be a program name with arguments.
44598 for cc_temp in $compiler""; do
44600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44606 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
44609 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
44610 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
44611 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
44612 $as_echo "$can_build_shared" >&6; }
44614 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
44615 $as_echo_n "checking whether to build shared libraries... " >&6; }
44616 test "$can_build_shared" = "no" && enable_shared=no
44618 # On AIX, shared libraries and static libraries use the same namespace, and
44619 # are all built from PIC.
44622 test "$enable_shared" = yes && enable_static=no
44623 if test -n "$RANLIB"; then
44624 archive_cmds="$archive_cmds~\$RANLIB \$lib"
44625 postinstall_cmds='$RANLIB $lib'
44629 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
44630 test "$enable_shared" = yes && enable_static=no
44634 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
44635 $as_echo "$enable_shared" >&6; }
44637 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
44638 $as_echo_n "checking whether to build static libraries... " >&6; }
44639 # Make sure either enable_shared or enable_static is yes.
44640 test "$enable_shared" = yes || enable_static=yes
44641 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
44642 $as_echo "$enable_static" >&6; }
44644 test "$ld_shlibs_F77" = no && can_build_shared=no
44649 lt_prog_compiler_wl_F77=
44650 lt_prog_compiler_pic_F77=
44651 lt_prog_compiler_static_F77=
44653 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
44654 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
44656 if test "$GCC" = yes; then
44657 lt_prog_compiler_wl_F77='-Wl,'
44658 lt_prog_compiler_static_F77='-static'
44662 # All AIX code is PIC.
44663 if test "$host_cpu" = ia64; then
44664 # AIX 5 now supports IA64 processor
44665 lt_prog_compiler_static_F77='-Bstatic'
44670 # FIXME: we need at least 68020 code to build shared libraries, but
44671 # adding the `-m68020' flag to GCC prevents building anything better,
44673 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
44676 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44677 # PIC is the default for these OSes.
44680 mingw* | pw32* | os2*)
44681 # This hack is so that the source file can tell whether it is being
44682 # built for inclusion in a dll (and should export symbols for example).
44683 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
44686 darwin* | rhapsody*)
44687 # PIC is the default on this platform
44688 # Common symbols not allowed in MH_DYLIB files
44689 lt_prog_compiler_pic_F77='-fno-common'
44693 # Just because we use GCC doesn't mean we suddenly get shared libraries
44694 # on systems that don't support them.
44695 lt_prog_compiler_can_build_shared_F77=no
44700 if test -d /usr/nec; then
44701 lt_prog_compiler_pic_F77=-Kconform_pic
44706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44707 # not for PA HP-UX.
44713 lt_prog_compiler_pic_F77='-fPIC'
44719 lt_prog_compiler_pic_F77='-fPIC'
44723 # PORTME Check for flag to pass linker flags through the system compiler.
44726 lt_prog_compiler_wl_F77='-Wl,'
44727 if test "$host_cpu" = ia64; then
44728 # AIX 5 now supports IA64 processor
44729 lt_prog_compiler_static_F77='-Bstatic'
44731 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
44735 # PIC is the default on this platform
44736 # Common symbols not allowed in MH_DYLIB files
44737 case $cc_basename in
44739 lt_prog_compiler_pic_F77='-qnocommon'
44740 lt_prog_compiler_wl_F77='-Wl,'
44745 mingw* | pw32* | os2*)
44746 # This hack is so that the source file can tell whether it is being
44747 # built for inclusion in a dll (and should export symbols for example).
44748 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
44751 hpux9* | hpux10* | hpux11*)
44752 lt_prog_compiler_wl_F77='-Wl,'
44753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44754 # not for PA HP-UX.
44760 lt_prog_compiler_pic_F77='+Z'
44763 # Is there a better lt_prog_compiler_static that works with the bundled CC?
44764 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
44767 irix5* | irix6* | nonstopux*)
44768 lt_prog_compiler_wl_F77='-Wl,'
44769 # PIC (with -KPIC) is the default.
44770 lt_prog_compiler_static_F77='-non_shared'
44774 lt_prog_compiler_pic_F77='-KPIC'
44775 lt_prog_compiler_static_F77='-Bstatic'
44779 case $cc_basename in
44781 lt_prog_compiler_wl_F77='-Wl,'
44782 lt_prog_compiler_pic_F77='-KPIC'
44783 lt_prog_compiler_static_F77='-static'
44785 pgcc* | pgf77* | pgf90* | pgf95*)
44786 # Portland Group compilers (*not* the Pentium gcc compiler,
44787 # which looks to be a dead project)
44788 lt_prog_compiler_wl_F77='-Wl,'
44789 lt_prog_compiler_pic_F77='-fpic'
44790 lt_prog_compiler_static_F77='-Bstatic'
44793 lt_prog_compiler_wl_F77='-Wl,'
44794 # All Alpha code is PIC.
44795 lt_prog_compiler_static_F77='-non_shared'
44800 osf3* | osf4* | osf5*)
44801 lt_prog_compiler_wl_F77='-Wl,'
44802 # All OSF/1 code is PIC.
44803 lt_prog_compiler_static_F77='-non_shared'
44807 lt_prog_compiler_pic_F77='-Kpic'
44808 lt_prog_compiler_static_F77='-dn'
44812 lt_prog_compiler_pic_F77='-KPIC'
44813 lt_prog_compiler_static_F77='-Bstatic'
44814 case $cc_basename in
44815 f77* | f90* | f95*)
44816 lt_prog_compiler_wl_F77='-Qoption ld ';;
44818 lt_prog_compiler_wl_F77='-Wl,';;
44823 lt_prog_compiler_wl_F77='-Qoption ld '
44824 lt_prog_compiler_pic_F77='-PIC'
44825 lt_prog_compiler_static_F77='-Bstatic'
44828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
44829 lt_prog_compiler_wl_F77='-Wl,'
44830 lt_prog_compiler_pic_F77='-KPIC'
44831 lt_prog_compiler_static_F77='-Bstatic'
44835 if test -d /usr/nec ;then
44836 lt_prog_compiler_pic_F77='-Kconform_pic'
44837 lt_prog_compiler_static_F77='-Bstatic'
44842 lt_prog_compiler_wl_F77='-Wl,'
44843 lt_prog_compiler_can_build_shared_F77=no
44847 lt_prog_compiler_pic_F77='-pic'
44848 lt_prog_compiler_static_F77='-Bstatic'
44852 lt_prog_compiler_can_build_shared_F77=no
44857 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
44858 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
44861 # Check to make sure the PIC flag actually works.
44863 if test -n "$lt_prog_compiler_pic_F77"; then
44865 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
44866 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
44867 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
44868 $as_echo_n "(cached) " >&6
44870 lt_prog_compiler_pic_works_F77=no
44871 ac_outfile=conftest.$ac_objext
44872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44873 lt_compiler_flag="$lt_prog_compiler_pic_F77"
44874 # Insert the option either (1) after the last *FLAGS variable, or
44875 # (2) before a word containing "conftest.", or (3) at the end.
44876 # Note that $ac_compile itself does not contain backslashes and begins
44877 # with a dollar sign (not a hyphen), so the echo should work correctly.
44878 # The option is referenced via a variable to avoid confusing sed.
44879 lt_compile=`echo "$ac_compile" | $SED \
44880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44882 -e 's:$: $lt_compiler_flag:'`
44883 (eval echo "\"\$as_me:44883: $lt_compile\"" >&5)
44884 (eval "$lt_compile" 2>conftest.err)
44886 cat conftest.err >&5
44887 echo "$as_me:44887: \$? = $ac_status" >&5
44888 if (exit $ac_status) && test -s "$ac_outfile"; then
44889 # The compiler can only warn and ignore the option if not recognized
44890 # So say no if there are warnings other than the usual output.
44891 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
44892 $SED '/^$/d' conftest.err >conftest.er2
44893 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
44894 lt_prog_compiler_pic_works_F77=yes
44900 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
44901 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
44903 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
44904 case $lt_prog_compiler_pic_F77 in
44906 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
44909 lt_prog_compiler_pic_F77=
44910 lt_prog_compiler_can_build_shared_F77=no
44915 # For platforms which do not support PIC, -DPIC is meaningless:
44917 lt_prog_compiler_pic_F77=
44920 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
44924 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
44925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
44926 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
44927 $as_echo_n "(cached) " >&6
44929 lt_cv_prog_compiler_c_o_F77=no
44930 $rm -r conftest 2>/dev/null
44934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44936 lt_compiler_flag="-o out/conftest2.$ac_objext"
44937 # Insert the option either (1) after the last *FLAGS variable, or
44938 # (2) before a word containing "conftest.", or (3) at the end.
44939 # Note that $ac_compile itself does not contain backslashes and begins
44940 # with a dollar sign (not a hyphen), so the echo should work correctly.
44941 lt_compile=`echo "$ac_compile" | $SED \
44942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44944 -e 's:$: $lt_compiler_flag:'`
44945 (eval echo "\"\$as_me:44945: $lt_compile\"" >&5)
44946 (eval "$lt_compile" 2>out/conftest.err)
44948 cat out/conftest.err >&5
44949 echo "$as_me:44949: \$? = $ac_status" >&5
44950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
44952 # The compiler can only warn and ignore the option if not recognized
44953 # So say no if there are warnings
44954 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
44955 $SED '/^$/d' out/conftest.err >out/conftest.er2
44956 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
44957 lt_cv_prog_compiler_c_o_F77=yes
44962 # SGI C++ compiler will create directory out/ii_files/ for
44963 # template instantiation
44964 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
44965 $rm out/* && rmdir out
44971 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
44972 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
44975 hard_links="nottested"
44976 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
44977 # do not overwrite the value of need_locks provided by the user
44978 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
44979 $as_echo_n "checking if we can lock with hard links... " >&6; }
44982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
44984 ln conftest.a conftest.b 2>&5 || hard_links=no
44985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
44986 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
44987 $as_echo "$hard_links" >&6; }
44988 if test "$hard_links" = no; then
44990 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
44991 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
44994 cat <<AAW_EOF >>config.warnings
44995 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
45005 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
45006 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
45009 allow_undefined_flag_F77=
45010 enable_shared_with_static_runtimes_F77=no
45012 archive_expsym_cmds_F77=
45013 old_archive_From_new_cmds_F77=
45014 old_archive_from_expsyms_cmds_F77=
45015 export_dynamic_flag_spec_F77=
45016 whole_archive_flag_spec_F77=
45017 thread_safe_flag_spec_F77=
45018 hardcode_libdir_flag_spec_F77=
45019 hardcode_libdir_flag_spec_ld_F77=
45020 hardcode_libdir_separator_F77=
45021 hardcode_direct_F77=no
45022 hardcode_minus_L_F77=no
45023 hardcode_shlibpath_var_F77=unsupported
45024 link_all_deplibs_F77=unknown
45025 hardcode_automatic_F77=no
45027 module_expsym_cmds_F77=
45028 always_export_symbols_F77=no
45029 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45030 # include_expsyms should be a list of space-separated symbols to be *always*
45031 # included in the symbol list
45032 include_expsyms_F77=
45033 # exclude_expsyms can be an extended regexp of symbols to exclude
45034 # it will be wrapped by ` (' and `)$', so one must not match beginning or
45035 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
45036 # as well as any symbol that contains `d'.
45037 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
45038 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
45039 # platforms (ab)use it in PIC code, but their linkers get confused if
45040 # the symbol is explicitly referenced. Since portable code cannot
45041 # rely on this symbol name, it's probably fine to never include it in
45042 # preloaded symbol tables.
45043 extract_expsyms_cmds=
45044 # Just being paranoid about ensuring that cc_basename is set.
45045 for cc_temp in $compiler""; do
45047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
45048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
45053 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
45056 cygwin* | mingw* | pw32*)
45057 # FIXME: the MSVC++ port hasn't been tested in a loooong time
45058 # When not using gcc, we currently assume that we are using
45059 # Microsoft Visual C++.
45060 if test "$GCC" != yes; then
45070 if test "$with_gnu_ld" = yes; then
45071 # If archive_cmds runs LD, not CC, wlarc should be empty
45074 # Set some defaults for GNU ld with shared library support. These
45075 # are reset later if shared libraries are not supported. Putting them
45076 # here allows them to be overridden if necessary.
45077 runpath_var=LD_RUN_PATH
45078 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
45079 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
45080 # ancient GNU ld didn't support --whole-archive et. al.
45081 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
45082 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
45084 whole_archive_flag_spec_F77=
45086 supports_anon_versioning=no
45087 case `$LD -v 2>/dev/null` in
45088 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
45089 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
45090 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
45091 *\ 2.11.*) ;; # other 2.11 versions
45092 *) supports_anon_versioning=yes ;;
45095 # See if GNU ld supports shared libraries.
45097 aix3* | aix4* | aix5*)
45098 # On AIX/PPC, the GNU linker is very broken
45099 if test "$host_cpu" != ia64; then
45103 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
45104 *** to be unable to reliably create shared libraries on AIX.
45105 *** Therefore, libtool is disabling shared libraries support. If you
45106 *** really care for shared libraries, you may want to modify your PATH
45107 *** so that a non-GNU linker is found, and then restart.
45114 archive_cmds_F77='$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)'
45115 hardcode_libdir_flag_spec_F77='-L$libdir'
45116 hardcode_minus_L_F77=yes
45118 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
45119 # that the semantics of dynamic libraries on AmigaOS, at least up
45120 # to version 4, is to share data among multiple programs linked
45121 # with the same dynamic library. Since this doesn't match the
45122 # behavior of shared libraries on other platforms, we can't use
45128 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45129 allow_undefined_flag_F77=unsupported
45130 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
45131 # support --undefined. This deserves some investigation. FIXME
45132 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45138 cygwin* | mingw* | pw32*)
45139 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
45140 # as there is no search path for DLLs.
45141 hardcode_libdir_flag_spec_F77='-L$libdir'
45142 allow_undefined_flag_F77=unsupported
45143 always_export_symbols_F77=no
45144 enable_shared_with_static_runtimes_F77=yes
45145 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
45147 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
45148 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
45149 # If the export-symbols file already is a .def file (1st line
45150 # is EXPORTS), use it as is; otherwise, prepend...
45151 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
45152 cp $export_symbols $output_objdir/$soname.def;
45154 echo EXPORTS > $output_objdir/$soname.def;
45155 cat $export_symbols >> $output_objdir/$soname.def;
45157 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
45164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45166 case $cc_basename,$host_cpu in
45167 pgcc*) # Portland Group C compiler
45168 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
45169 tmp_addflag=' $pic_flag'
45171 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
45172 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
45173 tmp_addflag=' $pic_flag -Mnomain' ;;
45174 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
45175 tmp_addflag=' -i_dynamic' ;;
45176 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
45177 tmp_addflag=' -i_dynamic -nofor_main' ;;
45178 ifc* | ifort*) # Intel Fortran compiler
45179 tmp_addflag=' -nofor_main' ;;
45181 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45183 if test $supports_anon_versioning = yes; then
45184 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
45185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
45186 $echo "local: *; };" >> $output_objdir/$libname.ver~
45187 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
45195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45196 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
45199 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45200 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45205 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
45209 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
45210 *** create shared libraries on Solaris systems. Therefore, libtool
45211 *** is disabling shared libraries support. We urge you to upgrade GNU
45212 *** binutils to release 2.9.1 or newer. Another option is to modify
45213 *** your PATH or compiler configuration so that the native linker is
45214 *** used, and then restart.
45217 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45218 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45219 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45226 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45228 hardcode_direct_F77=yes
45229 hardcode_shlibpath_var_F77=no
45233 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45234 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45235 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45242 if test "$ld_shlibs_F77" = no; then
45244 hardcode_libdir_flag_spec_F77=
45245 export_dynamic_flag_spec_F77=
45246 whole_archive_flag_spec_F77=
45249 # PORTME fill in a description of your system's linker (not GNU ld)
45252 allow_undefined_flag_F77=unsupported
45253 always_export_symbols_F77=yes
45254 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
45255 # Note: this linker hardcodes the directories in LIBPATH if there
45256 # are no directories specified by -L.
45257 hardcode_minus_L_F77=yes
45258 if test "$GCC" = yes && test -z "$link_static_flag"; then
45259 # Neither direct hardcoding nor static linking is supported with a
45261 hardcode_direct_F77=unsupported
45266 if test "$host_cpu" = ia64; then
45267 # On IA64, the linker does run time linking by default, so we don't
45268 # have to do anything special.
45269 aix_use_runtimelinking=no
45270 exp_sym_flag='-Bexport'
45273 # If we're using GNU nm, then we don't want the "-C" option.
45274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
45275 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
45276 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
45278 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
45280 aix_use_runtimelinking=no
45282 # Test if we are trying to use run time linking or normal
45283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
45284 # need to do runtime linking.
45285 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
45286 for ld_flag in $LDFLAGS; do
45287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
45288 aix_use_runtimelinking=yes
45294 exp_sym_flag='-bexport'
45295 no_entry_flag='-bnoentry'
45298 # When large executables or shared objects are built, AIX ld can
45299 # have problems creating the table of contents. If linking a library
45300 # or program results in "error TOC overflow" add -mminimal-toc to
45301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
45302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
45304 archive_cmds_F77=''
45305 hardcode_direct_F77=yes
45306 hardcode_libdir_separator_F77=':'
45307 link_all_deplibs_F77=yes
45309 if test "$GCC" = yes; then
45310 case $host_os in aix4.[012]|aix4.[012].*)
45311 # We only want to do this on AIX 4.2 and lower, the check
45312 # below for broken collect2 doesn't work under 4.3+
45313 collect2name=`${CC} -print-prog-name=collect2`
45314 if test -f "$collect2name" && \
45315 strings "$collect2name" | grep resolve_lib_name >/dev/null
45317 # We have reworked collect2
45318 hardcode_direct_F77=yes
45320 # We have old collect2
45321 hardcode_direct_F77=unsupported
45322 # It fails to find uninstalled libraries when the uninstalled
45323 # path is not listed in the libpath. Setting hardcode_minus_L
45324 # to unsupported forces relinking
45325 hardcode_minus_L_F77=yes
45326 hardcode_libdir_flag_spec_F77='-L$libdir'
45327 hardcode_libdir_separator_F77=
45330 shared_flag='-shared'
45331 if test "$aix_use_runtimelinking" = yes; then
45332 shared_flag="$shared_flag "'${wl}-G'
45336 if test "$host_cpu" = ia64; then
45337 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
45338 # chokes on -Wl,-G. The following line is correct:
45341 if test "$aix_use_runtimelinking" = yes; then
45342 shared_flag='${wl}-G'
45344 shared_flag='${wl}-bM:SRE'
45349 # It seems that -bexpall does not export symbols beginning with
45350 # underscore (_), so it is better to generate a list of symbols to export.
45351 always_export_symbols_F77=yes
45352 if test "$aix_use_runtimelinking" = yes; then
45353 # Warning - without using the other runtime loading flags (-brtl),
45354 # -berok will link without error, but may produce a broken library.
45355 allow_undefined_flag_F77='-berok'
45356 # Determine the default libpath from the value encoded in an empty executable.
45357 cat >conftest.$ac_ext <<_ACEOF
45362 rm -f conftest.$ac_objext conftest$ac_exeext
45363 if { (ac_try="$ac_link"
45364 case "(($ac_try" in
45365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45366 *) ac_try_echo=$ac_try;;
45368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45369 $as_echo "$ac_try_echo") >&5
45370 (eval "$ac_link") 2>conftest.er1
45372 grep -v '^ *+' conftest.er1 >conftest.err
45374 cat conftest.err >&5
45375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45376 (exit $ac_status); } && {
45377 test -z "$ac_f77_werror_flag" ||
45378 test ! -s conftest.err
45379 } && test -s conftest$ac_exeext && {
45380 test "$cross_compiling" = yes ||
45381 $as_test_x conftest$ac_exeext
45384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
45386 # Check for a 64-bit object if we didn't find anything.
45387 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
45390 $as_echo "$as_me: failed program was:" >&5
45391 sed 's/^/| /' conftest.$ac_ext >&5
45396 rm -rf conftest.dSYM
45397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45398 conftest$ac_exeext conftest.$ac_ext
45399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45401 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
45402 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
45404 if test "$host_cpu" = ia64; then
45405 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
45406 allow_undefined_flag_F77="-z nodefs"
45407 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
45409 # Determine the default libpath from the value encoded in an empty executable.
45410 cat >conftest.$ac_ext <<_ACEOF
45415 rm -f conftest.$ac_objext conftest$ac_exeext
45416 if { (ac_try="$ac_link"
45417 case "(($ac_try" in
45418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45419 *) ac_try_echo=$ac_try;;
45421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45422 $as_echo "$ac_try_echo") >&5
45423 (eval "$ac_link") 2>conftest.er1
45425 grep -v '^ *+' conftest.er1 >conftest.err
45427 cat conftest.err >&5
45428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45429 (exit $ac_status); } && {
45430 test -z "$ac_f77_werror_flag" ||
45431 test ! -s conftest.err
45432 } && test -s conftest$ac_exeext && {
45433 test "$cross_compiling" = yes ||
45434 $as_test_x conftest$ac_exeext
45437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
45439 # Check for a 64-bit object if we didn't find anything.
45440 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
45443 $as_echo "$as_me: failed program was:" >&5
45444 sed 's/^/| /' conftest.$ac_ext >&5
45449 rm -rf conftest.dSYM
45450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45451 conftest$ac_exeext conftest.$ac_ext
45452 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45454 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
45455 # Warning - without using the other run time loading flags,
45456 # -berok will link without error, but may produce a broken library.
45457 no_undefined_flag_F77=' ${wl}-bernotok'
45458 allow_undefined_flag_F77=' ${wl}-berok'
45459 # -bexpall does not export symbols beginning with underscore (_)
45460 always_export_symbols_F77=yes
45461 # Exported symbols can be pulled into shared objects from archives
45462 whole_archive_flag_spec_F77=' '
45463 archive_cmds_need_lc_F77=yes
45464 # This is similar to how AIX traditionally builds its shared libraries.
45465 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
45471 archive_cmds_F77='$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)'
45472 hardcode_libdir_flag_spec_F77='-L$libdir'
45473 hardcode_minus_L_F77=yes
45474 # see comment about different semantics on the GNU ld section
45479 export_dynamic_flag_spec_F77=-rdynamic
45482 cygwin* | mingw* | pw32*)
45483 # When not using gcc, we currently assume that we are using
45484 # Microsoft Visual C++.
45485 # hardcode_libdir_flag_spec is actually meaningless, as there is
45486 # no search path for DLLs.
45487 hardcode_libdir_flag_spec_F77=' '
45488 allow_undefined_flag_F77=unsupported
45489 # Tell ltmain to make .lib files, not .a files.
45491 # Tell ltmain to make .dll files, not .so files.
45493 # FIXME: Setting linknames here is a bad hack.
45494 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
45495 # The linker will automatically build a .lib file if we build a DLL.
45496 old_archive_From_new_cmds_F77='true'
45497 # FIXME: Should let the user specify the lib program.
45498 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
45499 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
45500 enable_shared_with_static_runtimes_F77=yes
45503 darwin* | rhapsody*)
45505 rhapsody* | darwin1.[012])
45506 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
45509 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
45510 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45512 case ${MACOSX_DEPLOYMENT_TARGET} in
45514 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45517 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
45523 archive_cmds_need_lc_F77=no
45524 hardcode_direct_F77=no
45525 hardcode_automatic_F77=yes
45526 hardcode_shlibpath_var_F77=unsupported
45527 whole_archive_flag_spec_F77=''
45528 link_all_deplibs_F77=yes
45529 if test "$GCC" = yes ; then
45530 output_verbose_link_cmd='echo'
45531 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
45532 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45533 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45534 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45535 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45537 case $cc_basename in
45539 output_verbose_link_cmd='echo'
45540 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
45541 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45542 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45543 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45544 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45554 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45555 hardcode_libdir_flag_spec_F77='-L$libdir'
45556 hardcode_shlibpath_var_F77=no
45563 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
45564 # support. Future versions do this automatically, but an explicit c++rt0.o
45565 # does not break anything, and helps significantly (at the cost of a little
45568 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
45569 hardcode_libdir_flag_spec_F77='-R$libdir'
45570 hardcode_direct_F77=yes
45571 hardcode_shlibpath_var_F77=no
45574 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
45576 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45577 hardcode_direct_F77=yes
45578 hardcode_minus_L_F77=yes
45579 hardcode_shlibpath_var_F77=no
45582 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
45583 freebsd* | kfreebsd*-gnu | dragonfly*)
45584 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
45585 hardcode_libdir_flag_spec_F77='-R$libdir'
45586 hardcode_direct_F77=yes
45587 hardcode_shlibpath_var_F77=no
45591 if test "$GCC" = yes; then
45592 archive_cmds_F77='$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'
45594 archive_cmds_F77='$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'
45596 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45597 hardcode_libdir_separator_F77=:
45598 hardcode_direct_F77=yes
45600 # hardcode_minus_L: Not really in the search PATH,
45601 # but as the default location of the library.
45602 hardcode_minus_L_F77=yes
45603 export_dynamic_flag_spec_F77='${wl}-E'
45607 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
45610 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45613 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
45619 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
45622 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
45626 if test "$with_gnu_ld" = no; then
45629 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45630 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
45631 hardcode_libdir_separator_F77=:
45632 hardcode_direct_F77=no
45633 hardcode_shlibpath_var_F77=no
45636 hardcode_libdir_flag_spec_F77='-L$libdir'
45637 hardcode_direct_F77=no
45638 hardcode_shlibpath_var_F77=no
45640 # hardcode_minus_L: Not really in the search PATH,
45641 # but as the default location of the library.
45642 hardcode_minus_L_F77=yes
45645 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45646 hardcode_libdir_separator_F77=:
45647 hardcode_direct_F77=yes
45648 export_dynamic_flag_spec_F77='${wl}-E'
45650 # hardcode_minus_L: Not really in the search PATH,
45651 # but as the default location of the library.
45652 hardcode_minus_L_F77=yes
45658 irix5* | irix6* | nonstopux*)
45659 if test "$GCC" = yes; then
45660 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45662 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45663 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
45665 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45666 hardcode_libdir_separator_F77=:
45667 link_all_deplibs_F77=yes
45671 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45672 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
45674 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
45676 hardcode_libdir_flag_spec_F77='-R$libdir'
45677 hardcode_direct_F77=yes
45678 hardcode_shlibpath_var_F77=no
45682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45683 hardcode_direct_F77=yes
45684 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45685 hardcode_libdir_separator_F77=:
45686 hardcode_shlibpath_var_F77=no
45690 hardcode_direct_F77=yes
45691 hardcode_shlibpath_var_F77=no
45692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45693 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45694 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
45695 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
45696 export_dynamic_flag_spec_F77='${wl}-E'
45699 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
45700 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45701 hardcode_libdir_flag_spec_F77='-R$libdir'
45704 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45705 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
45712 hardcode_libdir_flag_spec_F77='-L$libdir'
45713 hardcode_minus_L_F77=yes
45714 allow_undefined_flag_F77=unsupported
45715 archive_cmds_F77='$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'
45716 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
45720 if test "$GCC" = yes; then
45721 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
45722 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45724 allow_undefined_flag_F77=' -expect_unresolved \*'
45725 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45727 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45728 hardcode_libdir_separator_F77=:
45731 osf4* | osf5*) # as osf3* with the addition of -msym flag
45732 if test "$GCC" = yes; then
45733 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
45734 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45735 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45737 allow_undefined_flag_F77=' -expect_unresolved \*'
45738 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45739 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
45740 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
45742 # Both c and cxx compiler support -rpath directly
45743 hardcode_libdir_flag_spec_F77='-rpath $libdir'
45745 hardcode_libdir_separator_F77=:
45749 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45750 hardcode_shlibpath_var_F77=no
45751 export_dynamic_flag_spec_F77='${wl}-Bexport'
45752 runpath_var=LD_RUN_PATH
45753 hardcode_runpath_var=yes
45757 no_undefined_flag_F77=' -z text'
45758 if test "x$archive_cmds" = "x"; then
45759 if test "$GCC" = yes; then
45761 if $CC -v --help 2>/dev/null | grep -- -shared > /dev/null 2> /dev/null; then
45762 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45763 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45764 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45766 archive_cmds_F77='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45767 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45768 $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45772 lt_prog_compiler_static_F77='-static'
45773 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45774 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45775 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45776 lt_prog_compiler_static_F77='-static'
45779 hardcode_libdir_flag_spec_F77='-R$libdir'
45780 hardcode_shlibpath_var_F77=no
45782 solaris2.[0-5] | solaris2.[0-5].*) ;;
45784 # The compiler driver will combine linker options so we
45785 # cannot just pass the convience library names through
45786 # without $wl, iff we do not link with $LD.
45787 # Luckily, gcc supports the same syntax we need for Sun Studio.
45788 # Supported since Solaris 2.6 (maybe 2.5.1?)
45791 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
45793 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
45796 link_all_deplibs_F77=yes
45800 if test "x$host_vendor" = xsequent; then
45801 # Use $CC to link under sequent, because it throws in some extra .o
45802 # files that make .init and .fini sections work.
45803 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
45805 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
45807 hardcode_libdir_flag_spec_F77='-L$libdir'
45808 hardcode_direct_F77=yes
45809 hardcode_minus_L_F77=yes
45810 hardcode_shlibpath_var_F77=no
45814 case $host_vendor in
45816 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45817 hardcode_direct_F77=yes # is this really true???
45820 ## LD is ld it makes a PLAMLIB
45821 ## CC just makes a GrossModule.
45822 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45823 reload_cmds_F77='$CC -r -o $output$reload_objs'
45824 hardcode_direct_F77=no
45827 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45828 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
45831 runpath_var='LD_RUN_PATH'
45832 hardcode_shlibpath_var_F77=no
45836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45837 hardcode_shlibpath_var_F77=no
45838 export_dynamic_flag_spec_F77='-Bexport'
45842 if test -d /usr/nec; then
45843 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45844 hardcode_shlibpath_var_F77=no
45845 runpath_var=LD_RUN_PATH
45846 hardcode_runpath_var=yes
45852 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45853 hardcode_direct_F77=yes
45854 hardcode_minus_L_F77=no
45855 hardcode_shlibpath_var_F77=no
45856 hardcode_runpath_var=yes
45857 runpath_var=LD_RUN_PATH
45860 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
45861 no_undefined_flag_F77='${wl}-z ${wl}text'
45862 if test "$GCC" = yes; then
45863 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45865 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45867 runpath_var='LD_RUN_PATH'
45868 hardcode_shlibpath_var_F77=no
45872 no_undefined_flag_F77=' -z text'
45873 # $CC -shared without GNU ld will not create a library from C++
45874 # object files and a static libstdc++, better avoid it by now
45875 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45876 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45877 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45878 hardcode_libdir_flag_spec_F77=
45879 hardcode_shlibpath_var_F77=no
45880 runpath_var='LD_RUN_PATH'
45884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45885 hardcode_libdir_flag_spec_F77='-L$libdir'
45886 hardcode_shlibpath_var_F77=no
45895 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
45896 $as_echo "$ld_shlibs_F77" >&6; }
45897 test "$ld_shlibs_F77" = no && can_build_shared=no
45899 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
45900 if test "$GCC" = yes; then
45901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
45905 # Do we need to explicitly link libc?
45907 case "x$archive_cmds_need_lc_F77" in
45909 # Assume -lc should be added
45910 archive_cmds_need_lc_F77=yes
45912 if test "$enable_shared" = yes && test "$GCC" = yes; then
45913 case $archive_cmds_F77 in
45915 # FIXME: we may have to deal with multi-command sequences.
45918 # Test whether the compiler implicitly links with -lc since on some
45919 # systems, -lgcc has to come before -lc. If gcc already passes -lc
45920 # to ld, don't add -lc before -lgcc.
45921 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
45922 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
45924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
45926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45927 (eval $ac_compile) 2>&5
45929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930 (exit $ac_status); } 2>conftest.err; then
45933 libobjs=conftest.$ac_objext
45935 wl=$lt_prog_compiler_wl_F77
45941 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
45942 allow_undefined_flag_F77=
45943 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
45944 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
45946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45947 (exit $ac_status); }
45949 archive_cmds_need_lc_F77=no
45951 archive_cmds_need_lc_F77=yes
45953 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
45955 cat conftest.err 1>&5
45958 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
45959 $as_echo "$archive_cmds_need_lc_F77" >&6; }
45966 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
45967 $as_echo_n "checking dynamic linker characteristics... " >&6; }
45968 library_names_spec=
45969 libname_spec='lib$name'
45973 postuninstall_cmds=
45977 shlibpath_overrides_runpath=unknown
45979 dynamic_linker="$host_os ld.so"
45980 sys_lib_dlsearch_path_spec="/lib /usr/lib"
45981 if test "$GCC" = yes; then
45982 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
45983 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
45984 # if the path contains ";" then we assume it to be the separator
45985 # otherwise default to the standard path separator (i.e. ":") - it is
45986 # assumed that no part of a normal pathname contains ";" but that should
45987 # okay in the real world where ";" in dirpaths is itself problematic.
45988 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
45990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
45993 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
45995 need_lib_prefix=unknown
45996 hardcode_into_libs=no
45998 # when you set need_version to no, make sure it does not cause -set_version
45999 # flags to be left without arguments
46000 need_version=unknown
46005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
46006 shlibpath_var=LIBPATH
46008 # AIX 3 has no versioning support, so we append a major version to the name.
46009 soname_spec='${libname}${release}${shared_ext}$major'
46016 hardcode_into_libs=yes
46017 if test "$host_cpu" = ia64; then
46018 # AIX 5 supports IA64
46019 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
46020 shlibpath_var=LD_LIBRARY_PATH
46022 # With GCC up to 2.95.x, collect2 would create an import file
46023 # for dependence libraries. The import file would start with
46024 # the line `#! .'. This would cause the generated library to
46025 # depend on `.', always an invalid library. This was fixed in
46026 # development snapshots of GCC prior to 3.0.
46028 aix4 | aix4.[01] | aix4.[01].*)
46029 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
46031 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
46034 can_build_shared=no
46038 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
46039 # soname into executable. Probably we can add versioning support to
46040 # collect2, so additional links can be useful in future.
46041 if test "$aix_use_runtimelinking" = yes; then
46042 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
46043 # instead of lib<name>.a to let people know that these are not
46044 # typical AIX shared libraries.
46045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46047 # We preserve .a as extension for shared libraries through AIX4.2
46048 # and later when we are not doing run time linking.
46049 library_names_spec='${libname}${release}.a $libname.a'
46050 soname_spec='${libname}${release}${shared_ext}$major'
46052 shlibpath_var=LIBPATH
46057 library_names_spec='$libname.ixlibrary $libname.a'
46058 # Create ${libname}_ixlibrary.a entries in /sys/libs.
46059 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'
46063 library_names_spec='${libname}${shared_ext}'
46064 dynamic_linker="$host_os ld.so"
46065 shlibpath_var=LIBRARY_PATH
46071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46072 soname_spec='${libname}${release}${shared_ext}$major'
46073 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
46074 shlibpath_var=LD_LIBRARY_PATH
46075 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
46076 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
46077 # the default ld.so.conf also contains /usr/contrib/lib and
46078 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
46079 # libtool to hard-code these into programs
46082 cygwin* | mingw* | pw32*)
46083 version_type=windows
46088 case $GCC,$host_os in
46089 yes,cygwin* | yes,mingw* | yes,pw32*)
46090 library_names_spec='$libname.dll.a'
46091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
46092 postinstall_cmds='base_file=`basename \${file}`~
46093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
46094 dldir=$destdir/`dirname \$dlpath`~
46095 test -d \$dldir || mkdir -p \$dldir~
46096 $install_prog $dir/$dlname \$dldir/$dlname~
46097 chmod a+x \$dldir/$dlname'
46098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
46099 dlpath=$dir/\$dldll~
46101 shlibpath_overrides_runpath=yes
46105 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
46106 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46107 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
46110 # MinGW DLLs use traditional 'lib' prefix
46111 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46112 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46113 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
46114 # It is most probably a Windows format PATH printed by
46115 # mingw gcc, but we are running on Cygwin. Gcc prints its search
46116 # path with ; separators, and with drive letters. We can handle the
46117 # drive letters (cygwin fileutils understands them), so leave them,
46118 # especially as we might pass files found there to a mingw objdump,
46119 # which wouldn't understand a cygwinified path. Ahh.
46120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
46126 # pw32 DLLs use 'pw' prefix rather than 'lib'
46127 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46133 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
46136 dynamic_linker='Win32 ld.exe'
46137 # FIXME: first we should search . and the directory the executable is in
46141 darwin* | rhapsody*)
46142 dynamic_linker="$host_os dyld"
46143 version_type=darwin
46146 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
46147 soname_spec='${libname}${release}${major}$shared_ext'
46148 shlibpath_overrides_runpath=yes
46149 shlibpath_var=DYLD_LIBRARY_PATH
46150 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
46151 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
46152 if test "$GCC" = yes; then
46153 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
46155 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
46157 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
46164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
46165 soname_spec='${libname}${release}${shared_ext}$major'
46166 shlibpath_var=LD_LIBRARY_PATH
46177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46178 soname_spec='${libname}${release}${shared_ext}$major'
46179 shlibpath_var=LD_LIBRARY_PATH
46180 shlibpath_overrides_runpath=no
46181 hardcode_into_libs=yes
46182 dynamic_linker='GNU ld.so'
46185 freebsd* | dragonfly*)
46186 # DragonFly does not have aout. When/if they implement a new
46187 # versioning mechanism, adjust this.
46188 if test -x /usr/bin/objformat; then
46189 objformat=`/usr/bin/objformat`
46192 freebsd[123]*) objformat=aout ;;
46193 *) objformat=elf ;;
46196 version_type=freebsd-$objformat
46197 case $version_type in
46199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
46204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
46208 shlibpath_var=LD_LIBRARY_PATH
46211 shlibpath_overrides_runpath=yes
46213 freebsd3.[01]* | freebsdelf3.[01]*)
46214 shlibpath_overrides_runpath=yes
46215 hardcode_into_libs=yes
46218 shlibpath_overrides_runpath=no
46219 hardcode_into_libs=yes
46228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
46229 soname_spec='${libname}${release}${shared_ext}$major'
46230 shlibpath_var=LD_LIBRARY_PATH
46231 hardcode_into_libs=yes
46234 hpux9* | hpux10* | hpux11*)
46235 # Give a soname corresponding to the major version so that dld.sl refuses to
46236 # link against other versions.
46243 hardcode_into_libs=yes
46244 dynamic_linker="$host_os dld.so"
46245 shlibpath_var=LD_LIBRARY_PATH
46246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46248 soname_spec='${libname}${release}${shared_ext}$major'
46249 if test "X$HPUX_IA64_MODE" = X32; then
46250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
46252 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
46254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46258 hardcode_into_libs=yes
46259 dynamic_linker="$host_os dld.sl"
46260 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
46261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46263 soname_spec='${libname}${release}${shared_ext}$major'
46264 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
46265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46269 dynamic_linker="$host_os dld.sl"
46270 shlibpath_var=SHLIB_PATH
46271 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
46272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46273 soname_spec='${libname}${release}${shared_ext}$major'
46276 # HP-UX runs *really* slowly unless shared libraries are mode 555.
46277 postinstall_cmds='chmod 555 $lib'
46280 irix5* | irix6* | nonstopux*)
46282 nonstopux*) version_type=nonstopux ;;
46284 if test "$lt_cv_prog_gnu_ld" = yes; then
46292 soname_spec='${libname}${release}${shared_ext}$major'
46293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
46295 irix5* | nonstopux*)
46296 libsuff= shlibsuff=
46299 case $LD in # libtool.m4 will add one of these switches to LD
46300 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
46301 libsuff= shlibsuff= libmagic=32-bit;;
46302 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
46303 libsuff=32 shlibsuff=N32 libmagic=N32;;
46304 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
46305 libsuff=64 shlibsuff=64 libmagic=64-bit;;
46306 *) libsuff= shlibsuff= libmagic=never-match;;
46310 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
46311 shlibpath_overrides_runpath=no
46312 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
46313 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
46314 hardcode_into_libs=yes
46317 # No shared lib support for Linux oldld, aout, or coff.
46318 linux*oldld* | linux*aout* | linux*coff*)
46322 # This must be Linux ELF.
46327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46328 soname_spec='${libname}${release}${shared_ext}$major'
46329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
46330 shlibpath_var=LD_LIBRARY_PATH
46331 shlibpath_overrides_runpath=no
46332 # This implies no fast_install, which is unacceptable.
46333 # Some rework will be needed to allow for fast_install
46334 # before this can be enabled.
46335 hardcode_into_libs=yes
46337 # Append ld.so.conf contents to the search path
46338 if test -f /etc/ld.so.conf; then
46339 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
46340 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
46343 # We used to test for /lib/ld.so.1 and disable shared libraries on
46344 # powerpc, because MkLinux only supported shared libraries with the
46345 # GNU dynamic linker. Since this was broken with cross compilers,
46346 # most powerpc-linux boxes support dynamic linking these days and
46347 # people can always --disable-shared, the test was removed, and we
46348 # assume the GNU/Linux dynamic linker is in use.
46349 dynamic_linker='GNU/Linux ld.so'
46356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46357 soname_spec='${libname}${release}${shared_ext}$major'
46358 shlibpath_var=LD_LIBRARY_PATH
46359 shlibpath_overrides_runpath=no
46360 hardcode_into_libs=yes
46361 dynamic_linker='GNU ld.so'
46368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
46369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46371 dynamic_linker='NetBSD (a.out) ld.so'
46373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46374 soname_spec='${libname}${release}${shared_ext}$major'
46375 dynamic_linker='NetBSD ld.elf_so'
46377 shlibpath_var=LD_LIBRARY_PATH
46378 shlibpath_overrides_runpath=yes
46379 hardcode_into_libs=yes
46384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46385 shlibpath_var=LD_LIBRARY_PATH
46386 shlibpath_overrides_runpath=yes
46393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46394 soname_spec='${libname}${release}${shared_ext}$major'
46395 shlibpath_var=LD_LIBRARY_PATH
46396 shlibpath_overrides_runpath=yes
46402 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
46404 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
46405 *) need_version=no ;;
46407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46409 shlibpath_var=LD_LIBRARY_PATH
46410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46412 openbsd2.[89] | openbsd2.[89].*)
46413 shlibpath_overrides_runpath=no
46416 shlibpath_overrides_runpath=yes
46420 shlibpath_overrides_runpath=yes
46425 libname_spec='$name'
46428 library_names_spec='$libname${shared_ext} $libname.a'
46429 dynamic_linker='OS/2 ld.exe'
46430 shlibpath_var=LIBPATH
46433 osf3* | osf4* | osf5*)
46437 soname_spec='${libname}${release}${shared_ext}$major'
46438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46439 shlibpath_var=LD_LIBRARY_PATH
46440 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
46441 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
46446 soname_spec='${libname}${release}${shared_ext}$major'
46447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46448 shlibpath_var=LD_LIBRARY_PATH
46455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46456 soname_spec='${libname}${release}${shared_ext}$major'
46457 shlibpath_var=LD_LIBRARY_PATH
46458 shlibpath_overrides_runpath=yes
46459 hardcode_into_libs=yes
46460 # ldd complains unless libraries are executable
46461 postinstall_cmds='chmod +x $lib'
46466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46467 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
46468 shlibpath_var=LD_LIBRARY_PATH
46469 shlibpath_overrides_runpath=yes
46470 if test "$with_gnu_ld" = yes; then
46476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
46478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46479 soname_spec='${libname}${release}${shared_ext}$major'
46480 shlibpath_var=LD_LIBRARY_PATH
46481 case $host_vendor in
46483 shlibpath_overrides_runpath=no
46485 export_dynamic_flag_spec='${wl}-Blargedynsym'
46486 runpath_var=LD_RUN_PATH
46494 shlibpath_overrides_runpath=no
46495 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
46501 if test -d /usr/nec ;then
46503 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
46504 soname_spec='$libname${shared_ext}.$major'
46505 shlibpath_var=LD_LIBRARY_PATH
46511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46512 soname_spec='${libname}${release}${shared_ext}$major'
46513 shlibpath_var=LD_LIBRARY_PATH
46520 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
46521 $as_echo "$dynamic_linker" >&6; }
46522 test "$dynamic_linker" = no && can_build_shared=no
46524 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
46525 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
46526 hardcode_action_F77=
46527 if test -n "$hardcode_libdir_flag_spec_F77" || \
46528 test -n "$runpath_var_F77" || \
46529 test "X$hardcode_automatic_F77" = "Xyes" ; then
46531 # We can hardcode non-existant directories.
46532 if test "$hardcode_direct_F77" != no &&
46533 # If the only mechanism to avoid hardcoding is shlibpath_var, we
46534 # have to relink, otherwise we might link with an installed library
46535 # when we should be linking with a yet-to-be-installed one
46536 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
46537 test "$hardcode_minus_L_F77" != no; then
46538 # Linking always hardcodes the temporary library directory.
46539 hardcode_action_F77=relink
46541 # We can link without hardcoding, and we can hardcode nonexisting dirs.
46542 hardcode_action_F77=immediate
46545 # We cannot hardcode anything, or else we can only hardcode existing
46547 hardcode_action_F77=unsupported
46549 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
46550 $as_echo "$hardcode_action_F77" >&6; }
46552 if test "$hardcode_action_F77" = relink; then
46553 # Fast installation is not supported
46554 enable_fast_install=no
46555 elif test "$shlibpath_overrides_runpath" = yes ||
46556 test "$enable_shared" = no; then
46557 # Fast installation is not necessary
46558 enable_fast_install=needless
46563 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
46564 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
46565 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
46566 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
46567 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
46568 { $as_echo "$as_me:$LINENO: result: yes" >&5
46569 $as_echo "yes" >&6; }
46571 # FIXME - insert some real tests, host_os isn't really good enough
46574 if test -n "$STRIP" ; then
46575 striplib="$STRIP -x"
46576 { $as_echo "$as_me:$LINENO: result: yes" >&5
46577 $as_echo "yes" >&6; }
46579 { $as_echo "$as_me:$LINENO: result: no" >&5
46580 $as_echo "no" >&6; }
46584 { $as_echo "$as_me:$LINENO: result: no" >&5
46585 $as_echo "no" >&6; }
46592 # The else clause should only fire when bootstrapping the
46593 # libtool distribution, otherwise you forgot to ship ltmain.sh
46594 # with your package, and you will get complaints that there are
46595 # no rules to generate ltmain.sh.
46596 if test -f "$ltmain"; then
46597 # See if we are running on zsh, and set the options which allow our commands through
46598 # without removal of \ escapes.
46599 if test -n "${ZSH_VERSION+set}" ; then
46600 setopt NO_GLOB_SUBST
46602 # Now quote all the things that may contain metacharacters while being
46603 # careful not to overquote the AC_SUBSTed values. We take copies of the
46604 # variables and quote the copies for generation of the libtool script.
46605 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
46607 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
46608 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
46609 deplibs_check_method reload_flag reload_cmds need_locks \
46610 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
46611 lt_cv_sys_global_symbol_to_c_name_address \
46612 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
46613 old_postinstall_cmds old_postuninstall_cmds \
46617 lt_prog_compiler_wl_F77 \
46618 lt_prog_compiler_pic_F77 \
46619 lt_prog_compiler_static_F77 \
46620 lt_prog_compiler_no_builtin_flag_F77 \
46621 export_dynamic_flag_spec_F77 \
46622 thread_safe_flag_spec_F77 \
46623 whole_archive_flag_spec_F77 \
46624 enable_shared_with_static_runtimes_F77 \
46625 old_archive_cmds_F77 \
46626 old_archive_from_new_cmds_F77 \
46627 predep_objects_F77 \
46628 postdep_objects_F77 \
46631 compiler_lib_search_path_F77 \
46633 archive_expsym_cmds_F77 \
46634 postinstall_cmds_F77 \
46635 postuninstall_cmds_F77 \
46636 old_archive_from_expsyms_cmds_F77 \
46637 allow_undefined_flag_F77 \
46638 no_undefined_flag_F77 \
46639 export_symbols_cmds_F77 \
46640 hardcode_libdir_flag_spec_F77 \
46641 hardcode_libdir_flag_spec_ld_F77 \
46642 hardcode_libdir_separator_F77 \
46643 hardcode_automatic_F77 \
46645 module_expsym_cmds_F77 \
46646 lt_cv_prog_compiler_c_o_F77 \
46647 exclude_expsyms_F77 \
46648 include_expsyms_F77; do
46651 old_archive_cmds_F77 | \
46652 old_archive_from_new_cmds_F77 | \
46653 archive_cmds_F77 | \
46654 archive_expsym_cmds_F77 | \
46655 module_cmds_F77 | \
46656 module_expsym_cmds_F77 | \
46657 old_archive_from_expsyms_cmds_F77 | \
46658 export_symbols_cmds_F77 | \
46659 extract_expsyms_cmds | reload_cmds | finish_cmds | \
46660 postinstall_cmds | postuninstall_cmds | \
46661 old_postinstall_cmds | old_postuninstall_cmds | \
46662 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
46663 # Double-quote double-evaled strings.
46664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
46667 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
46673 *'\$0 --fallback-echo"')
46674 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
46680 cat <<__EOF__ >> "$cfgfile"
46681 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
46683 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46685 # Shell to use when invoking shell scripts.
46688 # Whether or not to build shared libraries.
46689 build_libtool_libs=$enable_shared
46691 # Whether or not to build static libraries.
46692 build_old_libs=$enable_static
46694 # Whether or not to add -lc for building shared libraries.
46695 build_libtool_need_lc=$archive_cmds_need_lc_F77
46697 # Whether or not to disallow shared libs when runtime libs are static
46698 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
46700 # Whether or not to optimize for fast installation.
46701 fast_install=$enable_fast_install
46704 host_alias=$host_alias
46708 # The build system.
46709 build_alias=$build_alias
46713 # An echo program that does not interpret backslashes.
46718 AR_FLAGS=$lt_AR_FLAGS
46723 # A language-specific compiler.
46724 CC=$lt_compiler_F77
46726 # Is the compiler the GNU C compiler?
46732 # The linker used to build libraries.
46735 # Whether we need hard or soft links.
46738 # A BSD-compatible nm program.
46741 # A symbol stripping program
46744 # Used to examine libraries when file_magic_cmd begins "file"
46745 MAGIC_CMD=$MAGIC_CMD
46747 # Used on cygwin: DLL creation program.
46750 # Used on cygwin: object dumper.
46753 # Used on cygwin: assembler.
46756 # The name of the directory that contains temporary libtool files.
46759 # How to create reloadable object files.
46760 reload_flag=$lt_reload_flag
46761 reload_cmds=$lt_reload_cmds
46763 # How to pass a linker flag through the compiler.
46764 wl=$lt_lt_prog_compiler_wl_F77
46766 # Object file suffix (normally "o").
46767 objext="$ac_objext"
46769 # Old archive suffix (normally "a").
46772 # Shared library suffix (normally ".so").
46773 shrext_cmds='$shrext_cmds'
46775 # Executable file suffix (normally "").
46778 # Additional compiler flags for building library objects.
46779 pic_flag=$lt_lt_prog_compiler_pic_F77
46782 # What is the maximum length of a command?
46783 max_cmd_len=$lt_cv_sys_max_cmd_len
46785 # Does compiler simultaneously support -c and -o options?
46786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
46788 # Must we lock files when doing compilation?
46789 need_locks=$lt_need_locks
46791 # Do we need the lib prefix for modules?
46792 need_lib_prefix=$need_lib_prefix
46794 # Do we need a version for libraries?
46795 need_version=$need_version
46797 # Whether dlopen is supported.
46798 dlopen_support=$enable_dlopen
46800 # Whether dlopen of programs is supported.
46801 dlopen_self=$enable_dlopen_self
46803 # Whether dlopen of statically linked programs is supported.
46804 dlopen_self_static=$enable_dlopen_self_static
46806 # Compiler flag to prevent dynamic linking.
46807 link_static_flag=$lt_lt_prog_compiler_static_F77
46809 # Compiler flag to turn off builtin functions.
46810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
46812 # Compiler flag to allow reflexive dlopens.
46813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
46815 # Compiler flag to generate shared objects directly from archives.
46816 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
46818 # Compiler flag to generate thread-safe objects.
46819 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
46821 # Library versioning type.
46822 version_type=$version_type
46824 # Format of library name prefix.
46825 libname_spec=$lt_libname_spec
46827 # List of archive names. First name is the real one, the rest are links.
46828 # The last name is the one that the linker finds with -lNAME.
46829 library_names_spec=$lt_library_names_spec
46831 # The coded name of the library, if different from the real name.
46832 soname_spec=$lt_soname_spec
46834 # Commands used to build and install an old-style archive.
46836 old_archive_cmds=$lt_old_archive_cmds_F77
46837 old_postinstall_cmds=$lt_old_postinstall_cmds
46838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46840 # Create an old-style archive from a shared archive.
46841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
46843 # Create a temporary old-style archive to link instead of a shared archive.
46844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
46846 # Commands used to build and install a shared archive.
46847 archive_cmds=$lt_archive_cmds_F77
46848 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
46849 postinstall_cmds=$lt_postinstall_cmds
46850 postuninstall_cmds=$lt_postuninstall_cmds
46852 # Commands used to build a loadable module (assumed same as above if empty)
46853 module_cmds=$lt_module_cmds_F77
46854 module_expsym_cmds=$lt_module_expsym_cmds_F77
46856 # Commands to strip libraries.
46857 old_striplib=$lt_old_striplib
46858 striplib=$lt_striplib
46860 # Dependencies to place before the objects being linked to create a
46862 predep_objects=$lt_predep_objects_F77
46864 # Dependencies to place after the objects being linked to create a
46866 postdep_objects=$lt_postdep_objects_F77
46868 # Dependencies to place before the objects being linked to create a
46870 predeps=$lt_predeps_F77
46872 # Dependencies to place after the objects being linked to create a
46874 postdeps=$lt_postdeps_F77
46876 # The library search path used internally by the compiler when linking
46877 # a shared library.
46878 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
46880 # Method to check whether dependent libraries are shared objects.
46881 deplibs_check_method=$lt_deplibs_check_method
46883 # Command to use when deplibs_check_method == file_magic.
46884 file_magic_cmd=$lt_file_magic_cmd
46886 # Flag that allows shared libraries with undefined symbols to be built.
46887 allow_undefined_flag=$lt_allow_undefined_flag_F77
46889 # Flag that forces no undefined symbols.
46890 no_undefined_flag=$lt_no_undefined_flag_F77
46892 # Commands used to finish a libtool library installation in a directory.
46893 finish_cmds=$lt_finish_cmds
46895 # Same as above, but a single script fragment to be evaled but not shown.
46896 finish_eval=$lt_finish_eval
46898 # Take the output of nm and produce a listing of raw symbols and C names.
46899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46901 # Transform the output of nm in a proper C declaration
46902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46904 # Transform the output of nm in a C name address pair
46905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46907 # This is the shared library runtime path variable.
46908 runpath_var=$runpath_var
46910 # This is the shared library path variable.
46911 shlibpath_var=$shlibpath_var
46913 # Is shlibpath searched before the hard-coded library search path?
46914 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46916 # How to hardcode a shared library path into an executable.
46917 hardcode_action=$hardcode_action_F77
46919 # Whether we should hardcode library paths into libraries.
46920 hardcode_into_libs=$hardcode_into_libs
46922 # Flag to hardcode \$libdir into a binary during linking.
46923 # This must work even if \$libdir does not exist.
46924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
46926 # If ld is used when linking, flag to hardcode \$libdir into
46927 # a binary during linking. This must work even if \$libdir does
46929 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
46931 # Whether we need a single -rpath flag with a separated argument.
46932 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
46934 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
46935 # resulting binary.
46936 hardcode_direct=$hardcode_direct_F77
46938 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
46939 # resulting binary.
46940 hardcode_minus_L=$hardcode_minus_L_F77
46942 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
46943 # the resulting binary.
46944 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
46946 # Set to yes if building a shared library automatically hardcodes DIR into the library
46947 # and all subsequent libraries and executables linked against it.
46948 hardcode_automatic=$hardcode_automatic_F77
46950 # Variables whose values should be saved in libtool wrapper scripts and
46951 # restored at relink time.
46952 variables_saved_for_relink="$variables_saved_for_relink"
46954 # Whether libtool must link a program against all its dependency libraries.
46955 link_all_deplibs=$link_all_deplibs_F77
46957 # Compile-time system search path for libraries
46958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46960 # Run-time system search path for libraries
46961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46963 # Fix the shell variable \$srcfile for the compiler.
46964 fix_srcfile_path="$fix_srcfile_path_F77"
46966 # Set to yes if exported symbols are required.
46967 always_export_symbols=$always_export_symbols_F77
46969 # The commands to list exported symbols.
46970 export_symbols_cmds=$lt_export_symbols_cmds_F77
46972 # The commands to extract the exported symbol list from a shared archive.
46973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46975 # Symbols that should not be listed in the preloaded symbols.
46976 exclude_expsyms=$lt_exclude_expsyms_F77
46978 # Symbols that must always be exported.
46979 include_expsyms=$lt_include_expsyms_F77
46981 # ### END LIBTOOL TAG CONFIG: $tagname
46987 # If there is no Makefile yet, we rely on a make rule to execute
46988 # `config.status --recheck' to rerun these tests and create the
46989 # libtool script then.
46990 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
46991 if test -f "$ltmain_in"; then
46992 test -f Makefile && make "$ltmain"
46998 ac_cpp='$CPP $CPPFLAGS'
46999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47011 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
47014 # Source file extension for Java test sources.
47017 # Object file extension for compiled Java test sources.
47021 # Code to be used in simple compile tests
47022 lt_simple_compile_test_code="class foo {}\n"
47024 # Code to be used in simple link tests
47025 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
47027 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
47029 # If no C compiler was specified, use CC.
47032 # Allow CC to be a program name with arguments.
47036 # save warnings/boilerplate of simple test code
47037 ac_outfile=conftest.$ac_objext
47038 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
47039 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47040 _lt_compiler_boilerplate=`cat conftest.err`
47043 ac_outfile=conftest.$ac_objext
47044 printf "$lt_simple_link_test_code" >conftest.$ac_ext
47045 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47046 _lt_linker_boilerplate=`cat conftest.err`
47050 # Allow CC to be a program name with arguments.
47055 for cc_temp in $compiler""; do
47057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47063 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47066 # GCJ did not exist at the time GCC didn't implicitly link libc in.
47067 archive_cmds_need_lc_GCJ=no
47069 old_archive_cmds_GCJ=$old_archive_cmds
47072 ## There is no encapsulation within the following macros, do not change
47073 ## the running order or otherwise move them around unless you know exactly
47074 ## what you are doing...
47076 lt_prog_compiler_no_builtin_flag_GCJ=
47078 if test "$GCC" = yes; then
47079 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
47082 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
47083 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
47084 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
47085 $as_echo_n "(cached) " >&6
47087 lt_cv_prog_compiler_rtti_exceptions=no
47088 ac_outfile=conftest.$ac_objext
47089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47090 lt_compiler_flag="-fno-rtti -fno-exceptions"
47091 # Insert the option either (1) after the last *FLAGS variable, or
47092 # (2) before a word containing "conftest.", or (3) at the end.
47093 # Note that $ac_compile itself does not contain backslashes and begins
47094 # with a dollar sign (not a hyphen), so the echo should work correctly.
47095 # The option is referenced via a variable to avoid confusing sed.
47096 lt_compile=`echo "$ac_compile" | $SED \
47097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47099 -e 's:$: $lt_compiler_flag:'`
47100 (eval echo "\"\$as_me:47100: $lt_compile\"" >&5)
47101 (eval "$lt_compile" 2>conftest.err)
47103 cat conftest.err >&5
47104 echo "$as_me:47104: \$? = $ac_status" >&5
47105 if (exit $ac_status) && test -s "$ac_outfile"; then
47106 # The compiler can only warn and ignore the option if not recognized
47107 # So say no if there are warnings other than the usual output.
47108 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
47109 $SED '/^$/d' conftest.err >conftest.er2
47110 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
47111 lt_cv_prog_compiler_rtti_exceptions=yes
47117 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
47118 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
47120 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
47121 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
47128 lt_prog_compiler_wl_GCJ=
47129 lt_prog_compiler_pic_GCJ=
47130 lt_prog_compiler_static_GCJ=
47132 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
47133 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
47135 if test "$GCC" = yes; then
47136 lt_prog_compiler_wl_GCJ='-Wl,'
47137 lt_prog_compiler_static_GCJ='-static'
47141 # All AIX code is PIC.
47142 if test "$host_cpu" = ia64; then
47143 # AIX 5 now supports IA64 processor
47144 lt_prog_compiler_static_GCJ='-Bstatic'
47149 # FIXME: we need at least 68020 code to build shared libraries, but
47150 # adding the `-m68020' flag to GCC prevents building anything better,
47152 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
47155 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
47156 # PIC is the default for these OSes.
47159 mingw* | pw32* | os2*)
47160 # This hack is so that the source file can tell whether it is being
47161 # built for inclusion in a dll (and should export symbols for example).
47162 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
47165 darwin* | rhapsody*)
47166 # PIC is the default on this platform
47167 # Common symbols not allowed in MH_DYLIB files
47168 lt_prog_compiler_pic_GCJ='-fno-common'
47172 # Just because we use GCC doesn't mean we suddenly get shared libraries
47173 # on systems that don't support them.
47174 lt_prog_compiler_can_build_shared_GCJ=no
47179 if test -d /usr/nec; then
47180 lt_prog_compiler_pic_GCJ=-Kconform_pic
47185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
47186 # not for PA HP-UX.
47192 lt_prog_compiler_pic_GCJ='-fPIC'
47198 lt_prog_compiler_pic_GCJ='-fPIC'
47202 # PORTME Check for flag to pass linker flags through the system compiler.
47205 lt_prog_compiler_wl_GCJ='-Wl,'
47206 if test "$host_cpu" = ia64; then
47207 # AIX 5 now supports IA64 processor
47208 lt_prog_compiler_static_GCJ='-Bstatic'
47210 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
47214 # PIC is the default on this platform
47215 # Common symbols not allowed in MH_DYLIB files
47216 case $cc_basename in
47218 lt_prog_compiler_pic_GCJ='-qnocommon'
47219 lt_prog_compiler_wl_GCJ='-Wl,'
47224 mingw* | pw32* | os2*)
47225 # This hack is so that the source file can tell whether it is being
47226 # built for inclusion in a dll (and should export symbols for example).
47227 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
47230 hpux9* | hpux10* | hpux11*)
47231 lt_prog_compiler_wl_GCJ='-Wl,'
47232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
47233 # not for PA HP-UX.
47239 lt_prog_compiler_pic_GCJ='+Z'
47242 # Is there a better lt_prog_compiler_static that works with the bundled CC?
47243 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
47246 irix5* | irix6* | nonstopux*)
47247 lt_prog_compiler_wl_GCJ='-Wl,'
47248 # PIC (with -KPIC) is the default.
47249 lt_prog_compiler_static_GCJ='-non_shared'
47253 lt_prog_compiler_pic_GCJ='-KPIC'
47254 lt_prog_compiler_static_GCJ='-Bstatic'
47258 case $cc_basename in
47260 lt_prog_compiler_wl_GCJ='-Wl,'
47261 lt_prog_compiler_pic_GCJ='-KPIC'
47262 lt_prog_compiler_static_GCJ='-static'
47264 pgcc* | pgf77* | pgf90* | pgf95*)
47265 # Portland Group compilers (*not* the Pentium gcc compiler,
47266 # which looks to be a dead project)
47267 lt_prog_compiler_wl_GCJ='-Wl,'
47268 lt_prog_compiler_pic_GCJ='-fpic'
47269 lt_prog_compiler_static_GCJ='-Bstatic'
47272 lt_prog_compiler_wl_GCJ='-Wl,'
47273 # All Alpha code is PIC.
47274 lt_prog_compiler_static_GCJ='-non_shared'
47279 osf3* | osf4* | osf5*)
47280 lt_prog_compiler_wl_GCJ='-Wl,'
47281 # All OSF/1 code is PIC.
47282 lt_prog_compiler_static_GCJ='-non_shared'
47286 lt_prog_compiler_pic_GCJ='-Kpic'
47287 lt_prog_compiler_static_GCJ='-dn'
47291 lt_prog_compiler_pic_GCJ='-KPIC'
47292 lt_prog_compiler_static_GCJ='-Bstatic'
47293 case $cc_basename in
47294 f77* | f90* | f95*)
47295 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
47297 lt_prog_compiler_wl_GCJ='-Wl,';;
47302 lt_prog_compiler_wl_GCJ='-Qoption ld '
47303 lt_prog_compiler_pic_GCJ='-PIC'
47304 lt_prog_compiler_static_GCJ='-Bstatic'
47307 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
47308 lt_prog_compiler_wl_GCJ='-Wl,'
47309 lt_prog_compiler_pic_GCJ='-KPIC'
47310 lt_prog_compiler_static_GCJ='-Bstatic'
47314 if test -d /usr/nec ;then
47315 lt_prog_compiler_pic_GCJ='-Kconform_pic'
47316 lt_prog_compiler_static_GCJ='-Bstatic'
47321 lt_prog_compiler_wl_GCJ='-Wl,'
47322 lt_prog_compiler_can_build_shared_GCJ=no
47326 lt_prog_compiler_pic_GCJ='-pic'
47327 lt_prog_compiler_static_GCJ='-Bstatic'
47331 lt_prog_compiler_can_build_shared_GCJ=no
47336 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
47337 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
47340 # Check to make sure the PIC flag actually works.
47342 if test -n "$lt_prog_compiler_pic_GCJ"; then
47344 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
47345 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
47346 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
47347 $as_echo_n "(cached) " >&6
47349 lt_prog_compiler_pic_works_GCJ=no
47350 ac_outfile=conftest.$ac_objext
47351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47352 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
47353 # Insert the option either (1) after the last *FLAGS variable, or
47354 # (2) before a word containing "conftest.", or (3) at the end.
47355 # Note that $ac_compile itself does not contain backslashes and begins
47356 # with a dollar sign (not a hyphen), so the echo should work correctly.
47357 # The option is referenced via a variable to avoid confusing sed.
47358 lt_compile=`echo "$ac_compile" | $SED \
47359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47361 -e 's:$: $lt_compiler_flag:'`
47362 (eval echo "\"\$as_me:47362: $lt_compile\"" >&5)
47363 (eval "$lt_compile" 2>conftest.err)
47365 cat conftest.err >&5
47366 echo "$as_me:47366: \$? = $ac_status" >&5
47367 if (exit $ac_status) && test -s "$ac_outfile"; then
47368 # The compiler can only warn and ignore the option if not recognized
47369 # So say no if there are warnings other than the usual output.
47370 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
47371 $SED '/^$/d' conftest.err >conftest.er2
47372 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
47373 lt_prog_compiler_pic_works_GCJ=yes
47379 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
47380 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
47382 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
47383 case $lt_prog_compiler_pic_GCJ in
47385 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
47388 lt_prog_compiler_pic_GCJ=
47389 lt_prog_compiler_can_build_shared_GCJ=no
47394 # For platforms which do not support PIC, -DPIC is meaningless:
47396 lt_prog_compiler_pic_GCJ=
47399 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
47403 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
47404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
47405 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
47406 $as_echo_n "(cached) " >&6
47408 lt_cv_prog_compiler_c_o_GCJ=no
47409 $rm -r conftest 2>/dev/null
47413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47415 lt_compiler_flag="-o out/conftest2.$ac_objext"
47416 # Insert the option either (1) after the last *FLAGS variable, or
47417 # (2) before a word containing "conftest.", or (3) at the end.
47418 # Note that $ac_compile itself does not contain backslashes and begins
47419 # with a dollar sign (not a hyphen), so the echo should work correctly.
47420 lt_compile=`echo "$ac_compile" | $SED \
47421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47423 -e 's:$: $lt_compiler_flag:'`
47424 (eval echo "\"\$as_me:47424: $lt_compile\"" >&5)
47425 (eval "$lt_compile" 2>out/conftest.err)
47427 cat out/conftest.err >&5
47428 echo "$as_me:47428: \$? = $ac_status" >&5
47429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
47431 # The compiler can only warn and ignore the option if not recognized
47432 # So say no if there are warnings
47433 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
47434 $SED '/^$/d' out/conftest.err >out/conftest.er2
47435 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
47436 lt_cv_prog_compiler_c_o_GCJ=yes
47441 # SGI C++ compiler will create directory out/ii_files/ for
47442 # template instantiation
47443 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
47444 $rm out/* && rmdir out
47450 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
47451 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
47454 hard_links="nottested"
47455 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
47456 # do not overwrite the value of need_locks provided by the user
47457 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
47458 $as_echo_n "checking if we can lock with hard links... " >&6; }
47461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
47463 ln conftest.a conftest.b 2>&5 || hard_links=no
47464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
47465 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
47466 $as_echo "$hard_links" >&6; }
47467 if test "$hard_links" = no; then
47469 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
47470 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
47473 cat <<AAW_EOF >>config.warnings
47474 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
47484 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
47485 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
47488 allow_undefined_flag_GCJ=
47489 enable_shared_with_static_runtimes_GCJ=no
47491 archive_expsym_cmds_GCJ=
47492 old_archive_From_new_cmds_GCJ=
47493 old_archive_from_expsyms_cmds_GCJ=
47494 export_dynamic_flag_spec_GCJ=
47495 whole_archive_flag_spec_GCJ=
47496 thread_safe_flag_spec_GCJ=
47497 hardcode_libdir_flag_spec_GCJ=
47498 hardcode_libdir_flag_spec_ld_GCJ=
47499 hardcode_libdir_separator_GCJ=
47500 hardcode_direct_GCJ=no
47501 hardcode_minus_L_GCJ=no
47502 hardcode_shlibpath_var_GCJ=unsupported
47503 link_all_deplibs_GCJ=unknown
47504 hardcode_automatic_GCJ=no
47506 module_expsym_cmds_GCJ=
47507 always_export_symbols_GCJ=no
47508 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
47509 # include_expsyms should be a list of space-separated symbols to be *always*
47510 # included in the symbol list
47511 include_expsyms_GCJ=
47512 # exclude_expsyms can be an extended regexp of symbols to exclude
47513 # it will be wrapped by ` (' and `)$', so one must not match beginning or
47514 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
47515 # as well as any symbol that contains `d'.
47516 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
47517 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
47518 # platforms (ab)use it in PIC code, but their linkers get confused if
47519 # the symbol is explicitly referenced. Since portable code cannot
47520 # rely on this symbol name, it's probably fine to never include it in
47521 # preloaded symbol tables.
47522 extract_expsyms_cmds=
47523 # Just being paranoid about ensuring that cc_basename is set.
47524 for cc_temp in $compiler""; do
47526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47532 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47535 cygwin* | mingw* | pw32*)
47536 # FIXME: the MSVC++ port hasn't been tested in a loooong time
47537 # When not using gcc, we currently assume that we are using
47538 # Microsoft Visual C++.
47539 if test "$GCC" != yes; then
47549 if test "$with_gnu_ld" = yes; then
47550 # If archive_cmds runs LD, not CC, wlarc should be empty
47553 # Set some defaults for GNU ld with shared library support. These
47554 # are reset later if shared libraries are not supported. Putting them
47555 # here allows them to be overridden if necessary.
47556 runpath_var=LD_RUN_PATH
47557 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
47558 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
47559 # ancient GNU ld didn't support --whole-archive et. al.
47560 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
47561 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
47563 whole_archive_flag_spec_GCJ=
47565 supports_anon_versioning=no
47566 case `$LD -v 2>/dev/null` in
47567 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
47568 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47569 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
47570 *\ 2.11.*) ;; # other 2.11 versions
47571 *) supports_anon_versioning=yes ;;
47574 # See if GNU ld supports shared libraries.
47576 aix3* | aix4* | aix5*)
47577 # On AIX/PPC, the GNU linker is very broken
47578 if test "$host_cpu" != ia64; then
47582 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
47583 *** to be unable to reliably create shared libraries on AIX.
47584 *** Therefore, libtool is disabling shared libraries support. If you
47585 *** really care for shared libraries, you may want to modify your PATH
47586 *** so that a non-GNU linker is found, and then restart.
47593 archive_cmds_GCJ='$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)'
47594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
47595 hardcode_minus_L_GCJ=yes
47597 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
47598 # that the semantics of dynamic libraries on AmigaOS, at least up
47599 # to version 4, is to share data among multiple programs linked
47600 # with the same dynamic library. Since this doesn't match the
47601 # behavior of shared libraries on other platforms, we can't use
47607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47608 allow_undefined_flag_GCJ=unsupported
47609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47610 # support --undefined. This deserves some investigation. FIXME
47611 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47617 cygwin* | mingw* | pw32*)
47618 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
47619 # as there is no search path for DLLs.
47620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
47621 allow_undefined_flag_GCJ=unsupported
47622 always_export_symbols_GCJ=no
47623 enable_shared_with_static_runtimes_GCJ=yes
47624 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
47626 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
47627 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
47628 # If the export-symbols file already is a .def file (1st line
47629 # is EXPORTS), use it as is; otherwise, prepend...
47630 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
47631 cp $export_symbols $output_objdir/$soname.def;
47633 echo EXPORTS > $output_objdir/$soname.def;
47634 cat $export_symbols >> $output_objdir/$soname.def;
47636 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
47643 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47645 case $cc_basename,$host_cpu in
47646 pgcc*) # Portland Group C compiler
47647 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
47648 tmp_addflag=' $pic_flag'
47650 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
47651 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
47652 tmp_addflag=' $pic_flag -Mnomain' ;;
47653 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
47654 tmp_addflag=' -i_dynamic' ;;
47655 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
47656 tmp_addflag=' -i_dynamic -nofor_main' ;;
47657 ifc* | ifort*) # Intel Fortran compiler
47658 tmp_addflag=' -nofor_main' ;;
47660 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47662 if test $supports_anon_versioning = yes; then
47663 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
47664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
47665 $echo "local: *; };" >> $output_objdir/$libname.ver~
47666 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
47674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
47675 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
47678 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47679 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47684 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
47688 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
47689 *** create shared libraries on Solaris systems. Therefore, libtool
47690 *** is disabling shared libraries support. We urge you to upgrade GNU
47691 *** binutils to release 2.9.1 or newer. Another option is to modify
47692 *** your PATH or compiler configuration so that the native linker is
47693 *** used, and then restart.
47696 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47697 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47698 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47705 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
47707 hardcode_direct_GCJ=yes
47708 hardcode_shlibpath_var_GCJ=no
47712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47714 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47721 if test "$ld_shlibs_GCJ" = no; then
47723 hardcode_libdir_flag_spec_GCJ=
47724 export_dynamic_flag_spec_GCJ=
47725 whole_archive_flag_spec_GCJ=
47728 # PORTME fill in a description of your system's linker (not GNU ld)
47731 allow_undefined_flag_GCJ=unsupported
47732 always_export_symbols_GCJ=yes
47733 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
47734 # Note: this linker hardcodes the directories in LIBPATH if there
47735 # are no directories specified by -L.
47736 hardcode_minus_L_GCJ=yes
47737 if test "$GCC" = yes && test -z "$link_static_flag"; then
47738 # Neither direct hardcoding nor static linking is supported with a
47740 hardcode_direct_GCJ=unsupported
47745 if test "$host_cpu" = ia64; then
47746 # On IA64, the linker does run time linking by default, so we don't
47747 # have to do anything special.
47748 aix_use_runtimelinking=no
47749 exp_sym_flag='-Bexport'
47752 # If we're using GNU nm, then we don't want the "-C" option.
47753 # -C means demangle to AIX nm, but means don't demangle with GNU nm
47754 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
47755 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
47757 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
47759 aix_use_runtimelinking=no
47761 # Test if we are trying to use run time linking or normal
47762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
47763 # need to do runtime linking.
47764 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
47765 for ld_flag in $LDFLAGS; do
47766 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
47767 aix_use_runtimelinking=yes
47773 exp_sym_flag='-bexport'
47774 no_entry_flag='-bnoentry'
47777 # When large executables or shared objects are built, AIX ld can
47778 # have problems creating the table of contents. If linking a library
47779 # or program results in "error TOC overflow" add -mminimal-toc to
47780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
47781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
47783 archive_cmds_GCJ=''
47784 hardcode_direct_GCJ=yes
47785 hardcode_libdir_separator_GCJ=':'
47786 link_all_deplibs_GCJ=yes
47788 if test "$GCC" = yes; then
47789 case $host_os in aix4.[012]|aix4.[012].*)
47790 # We only want to do this on AIX 4.2 and lower, the check
47791 # below for broken collect2 doesn't work under 4.3+
47792 collect2name=`${CC} -print-prog-name=collect2`
47793 if test -f "$collect2name" && \
47794 strings "$collect2name" | grep resolve_lib_name >/dev/null
47796 # We have reworked collect2
47797 hardcode_direct_GCJ=yes
47799 # We have old collect2
47800 hardcode_direct_GCJ=unsupported
47801 # It fails to find uninstalled libraries when the uninstalled
47802 # path is not listed in the libpath. Setting hardcode_minus_L
47803 # to unsupported forces relinking
47804 hardcode_minus_L_GCJ=yes
47805 hardcode_libdir_flag_spec_GCJ='-L$libdir'
47806 hardcode_libdir_separator_GCJ=
47809 shared_flag='-shared'
47810 if test "$aix_use_runtimelinking" = yes; then
47811 shared_flag="$shared_flag "'${wl}-G'
47815 if test "$host_cpu" = ia64; then
47816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
47817 # chokes on -Wl,-G. The following line is correct:
47820 if test "$aix_use_runtimelinking" = yes; then
47821 shared_flag='${wl}-G'
47823 shared_flag='${wl}-bM:SRE'
47828 # It seems that -bexpall does not export symbols beginning with
47829 # underscore (_), so it is better to generate a list of symbols to export.
47830 always_export_symbols_GCJ=yes
47831 if test "$aix_use_runtimelinking" = yes; then
47832 # Warning - without using the other runtime loading flags (-brtl),
47833 # -berok will link without error, but may produce a broken library.
47834 allow_undefined_flag_GCJ='-berok'
47835 # Determine the default libpath from the value encoded in an empty executable.
47836 cat >conftest.$ac_ext <<_ACEOF
47839 cat confdefs.h >>conftest.$ac_ext
47840 cat >>conftest.$ac_ext <<_ACEOF
47841 /* end confdefs.h. */
47851 rm -f conftest.$ac_objext conftest$ac_exeext
47852 if { (ac_try="$ac_link"
47853 case "(($ac_try" in
47854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47855 *) ac_try_echo=$ac_try;;
47857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47858 $as_echo "$ac_try_echo") >&5
47859 (eval "$ac_link") 2>conftest.er1
47861 grep -v '^ *+' conftest.er1 >conftest.err
47863 cat conftest.err >&5
47864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47865 (exit $ac_status); } && {
47866 test -z "$ac_c_werror_flag" ||
47867 test ! -s conftest.err
47868 } && test -s conftest$ac_exeext && {
47869 test "$cross_compiling" = yes ||
47870 $as_test_x conftest$ac_exeext
47873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
47875 # Check for a 64-bit object if we didn't find anything.
47876 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
47879 $as_echo "$as_me: failed program was:" >&5
47880 sed 's/^/| /' conftest.$ac_ext >&5
47885 rm -rf conftest.dSYM
47886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47887 conftest$ac_exeext conftest.$ac_ext
47888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
47890 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
47891 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
47893 if test "$host_cpu" = ia64; then
47894 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
47895 allow_undefined_flag_GCJ="-z nodefs"
47896 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
47898 # Determine the default libpath from the value encoded in an empty executable.
47899 cat >conftest.$ac_ext <<_ACEOF
47902 cat confdefs.h >>conftest.$ac_ext
47903 cat >>conftest.$ac_ext <<_ACEOF
47904 /* end confdefs.h. */
47914 rm -f conftest.$ac_objext conftest$ac_exeext
47915 if { (ac_try="$ac_link"
47916 case "(($ac_try" in
47917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47918 *) ac_try_echo=$ac_try;;
47920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47921 $as_echo "$ac_try_echo") >&5
47922 (eval "$ac_link") 2>conftest.er1
47924 grep -v '^ *+' conftest.er1 >conftest.err
47926 cat conftest.err >&5
47927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47928 (exit $ac_status); } && {
47929 test -z "$ac_c_werror_flag" ||
47930 test ! -s conftest.err
47931 } && test -s conftest$ac_exeext && {
47932 test "$cross_compiling" = yes ||
47933 $as_test_x conftest$ac_exeext
47936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
47938 # Check for a 64-bit object if we didn't find anything.
47939 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
47942 $as_echo "$as_me: failed program was:" >&5
47943 sed 's/^/| /' conftest.$ac_ext >&5
47948 rm -rf conftest.dSYM
47949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47950 conftest$ac_exeext conftest.$ac_ext
47951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
47953 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
47954 # Warning - without using the other run time loading flags,
47955 # -berok will link without error, but may produce a broken library.
47956 no_undefined_flag_GCJ=' ${wl}-bernotok'
47957 allow_undefined_flag_GCJ=' ${wl}-berok'
47958 # -bexpall does not export symbols beginning with underscore (_)
47959 always_export_symbols_GCJ=yes
47960 # Exported symbols can be pulled into shared objects from archives
47961 whole_archive_flag_spec_GCJ=' '
47962 archive_cmds_need_lc_GCJ=yes
47963 # This is similar to how AIX traditionally builds its shared libraries.
47964 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
47970 archive_cmds_GCJ='$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)'
47971 hardcode_libdir_flag_spec_GCJ='-L$libdir'
47972 hardcode_minus_L_GCJ=yes
47973 # see comment about different semantics on the GNU ld section
47978 export_dynamic_flag_spec_GCJ=-rdynamic
47981 cygwin* | mingw* | pw32*)
47982 # When not using gcc, we currently assume that we are using
47983 # Microsoft Visual C++.
47984 # hardcode_libdir_flag_spec is actually meaningless, as there is
47985 # no search path for DLLs.
47986 hardcode_libdir_flag_spec_GCJ=' '
47987 allow_undefined_flag_GCJ=unsupported
47988 # Tell ltmain to make .lib files, not .a files.
47990 # Tell ltmain to make .dll files, not .so files.
47992 # FIXME: Setting linknames here is a bad hack.
47993 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
47994 # The linker will automatically build a .lib file if we build a DLL.
47995 old_archive_From_new_cmds_GCJ='true'
47996 # FIXME: Should let the user specify the lib program.
47997 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
47998 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
47999 enable_shared_with_static_runtimes_GCJ=yes
48002 darwin* | rhapsody*)
48004 rhapsody* | darwin1.[012])
48005 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
48008 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
48009 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
48011 case ${MACOSX_DEPLOYMENT_TARGET} in
48013 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
48016 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
48022 archive_cmds_need_lc_GCJ=no
48023 hardcode_direct_GCJ=no
48024 hardcode_automatic_GCJ=yes
48025 hardcode_shlibpath_var_GCJ=unsupported
48026 whole_archive_flag_spec_GCJ=''
48027 link_all_deplibs_GCJ=yes
48028 if test "$GCC" = yes ; then
48029 output_verbose_link_cmd='echo'
48030 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
48031 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
48032 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
48033 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48034 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48036 case $cc_basename in
48038 output_verbose_link_cmd='echo'
48039 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
48040 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
48041 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
48042 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48043 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48053 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48054 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48055 hardcode_shlibpath_var_GCJ=no
48062 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
48063 # support. Future versions do this automatically, but an explicit c++rt0.o
48064 # does not break anything, and helps significantly (at the cost of a little
48067 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
48068 hardcode_libdir_flag_spec_GCJ='-R$libdir'
48069 hardcode_direct_GCJ=yes
48070 hardcode_shlibpath_var_GCJ=no
48073 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
48075 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48076 hardcode_direct_GCJ=yes
48077 hardcode_minus_L_GCJ=yes
48078 hardcode_shlibpath_var_GCJ=no
48081 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
48082 freebsd* | kfreebsd*-gnu | dragonfly*)
48083 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
48084 hardcode_libdir_flag_spec_GCJ='-R$libdir'
48085 hardcode_direct_GCJ=yes
48086 hardcode_shlibpath_var_GCJ=no
48090 if test "$GCC" = yes; then
48091 archive_cmds_GCJ='$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'
48093 archive_cmds_GCJ='$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'
48095 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48096 hardcode_libdir_separator_GCJ=:
48097 hardcode_direct_GCJ=yes
48099 # hardcode_minus_L: Not really in the search PATH,
48100 # but as the default location of the library.
48101 hardcode_minus_L_GCJ=yes
48102 export_dynamic_flag_spec_GCJ='${wl}-E'
48106 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
48109 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48112 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48118 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
48121 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
48125 if test "$with_gnu_ld" = no; then
48128 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48129 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
48130 hardcode_libdir_separator_GCJ=:
48131 hardcode_direct_GCJ=no
48132 hardcode_shlibpath_var_GCJ=no
48135 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48136 hardcode_direct_GCJ=no
48137 hardcode_shlibpath_var_GCJ=no
48139 # hardcode_minus_L: Not really in the search PATH,
48140 # but as the default location of the library.
48141 hardcode_minus_L_GCJ=yes
48144 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48145 hardcode_libdir_separator_GCJ=:
48146 hardcode_direct_GCJ=yes
48147 export_dynamic_flag_spec_GCJ='${wl}-E'
48149 # hardcode_minus_L: Not really in the search PATH,
48150 # but as the default location of the library.
48151 hardcode_minus_L_GCJ=yes
48157 irix5* | irix6* | nonstopux*)
48158 if test "$GCC" = yes; then
48159 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48161 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
48162 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
48164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48165 hardcode_libdir_separator_GCJ=:
48166 link_all_deplibs_GCJ=yes
48170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
48171 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
48173 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
48175 hardcode_libdir_flag_spec_GCJ='-R$libdir'
48176 hardcode_direct_GCJ=yes
48177 hardcode_shlibpath_var_GCJ=no
48181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48182 hardcode_direct_GCJ=yes
48183 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48184 hardcode_libdir_separator_GCJ=:
48185 hardcode_shlibpath_var_GCJ=no
48189 hardcode_direct_GCJ=yes
48190 hardcode_shlibpath_var_GCJ=no
48191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
48192 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
48193 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
48194 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
48195 export_dynamic_flag_spec_GCJ='${wl}-E'
48198 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
48199 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48200 hardcode_libdir_flag_spec_GCJ='-R$libdir'
48203 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
48204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
48211 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48212 hardcode_minus_L_GCJ=yes
48213 allow_undefined_flag_GCJ=unsupported
48214 archive_cmds_GCJ='$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'
48215 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
48219 if test "$GCC" = yes; then
48220 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
48221 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48223 allow_undefined_flag_GCJ=' -expect_unresolved \*'
48224 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
48226 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48227 hardcode_libdir_separator_GCJ=:
48230 osf4* | osf5*) # as osf3* with the addition of -msym flag
48231 if test "$GCC" = yes; then
48232 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
48233 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48234 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48236 allow_undefined_flag_GCJ=' -expect_unresolved \*'
48237 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
48238 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
48239 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
48241 # Both c and cxx compiler support -rpath directly
48242 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
48244 hardcode_libdir_separator_GCJ=:
48248 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48249 hardcode_shlibpath_var_GCJ=no
48250 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
48251 runpath_var=LD_RUN_PATH
48252 hardcode_runpath_var=yes
48256 no_undefined_flag_GCJ=' -z text'
48257 if test "x$archive_cmds" = "x"; then
48258 if test "$GCC" = yes; then
48260 if $CC -v --help 2>/dev/null | grep -- -shared > /dev/null 2> /dev/null; then
48261 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48262 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48263 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
48265 archive_cmds_GCJ='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48266 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48267 $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
48271 lt_prog_compiler_static_GCJ='-static'
48272 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
48273 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48274 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
48275 lt_prog_compiler_static_GCJ='-static'
48278 hardcode_libdir_flag_spec_GCJ='-R$libdir'
48279 hardcode_shlibpath_var_GCJ=no
48281 solaris2.[0-5] | solaris2.[0-5].*) ;;
48283 # The compiler driver will combine linker options so we
48284 # cannot just pass the convience library names through
48285 # without $wl, iff we do not link with $LD.
48286 # Luckily, gcc supports the same syntax we need for Sun Studio.
48287 # Supported since Solaris 2.6 (maybe 2.5.1?)
48290 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
48292 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
48295 link_all_deplibs_GCJ=yes
48299 if test "x$host_vendor" = xsequent; then
48300 # Use $CC to link under sequent, because it throws in some extra .o
48301 # files that make .init and .fini sections work.
48302 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
48304 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
48306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48307 hardcode_direct_GCJ=yes
48308 hardcode_minus_L_GCJ=yes
48309 hardcode_shlibpath_var_GCJ=no
48313 case $host_vendor in
48315 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48316 hardcode_direct_GCJ=yes # is this really true???
48319 ## LD is ld it makes a PLAMLIB
48320 ## CC just makes a GrossModule.
48321 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
48322 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
48323 hardcode_direct_GCJ=no
48326 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48327 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
48330 runpath_var='LD_RUN_PATH'
48331 hardcode_shlibpath_var_GCJ=no
48335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48336 hardcode_shlibpath_var_GCJ=no
48337 export_dynamic_flag_spec_GCJ='-Bexport'
48341 if test -d /usr/nec; then
48342 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48343 hardcode_shlibpath_var_GCJ=no
48344 runpath_var=LD_RUN_PATH
48345 hardcode_runpath_var=yes
48351 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
48352 hardcode_direct_GCJ=yes
48353 hardcode_minus_L_GCJ=no
48354 hardcode_shlibpath_var_GCJ=no
48355 hardcode_runpath_var=yes
48356 runpath_var=LD_RUN_PATH
48359 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
48360 no_undefined_flag_GCJ='${wl}-z ${wl}text'
48361 if test "$GCC" = yes; then
48362 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48364 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48366 runpath_var='LD_RUN_PATH'
48367 hardcode_shlibpath_var_GCJ=no
48371 no_undefined_flag_GCJ=' -z text'
48372 # $CC -shared without GNU ld will not create a library from C++
48373 # object files and a static libstdc++, better avoid it by now
48374 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
48375 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48376 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
48377 hardcode_libdir_flag_spec_GCJ=
48378 hardcode_shlibpath_var_GCJ=no
48379 runpath_var='LD_RUN_PATH'
48383 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48384 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48385 hardcode_shlibpath_var_GCJ=no
48394 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
48395 $as_echo "$ld_shlibs_GCJ" >&6; }
48396 test "$ld_shlibs_GCJ" = no && can_build_shared=no
48398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
48399 if test "$GCC" = yes; then
48400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
48404 # Do we need to explicitly link libc?
48406 case "x$archive_cmds_need_lc_GCJ" in
48408 # Assume -lc should be added
48409 archive_cmds_need_lc_GCJ=yes
48411 if test "$enable_shared" = yes && test "$GCC" = yes; then
48412 case $archive_cmds_GCJ in
48414 # FIXME: we may have to deal with multi-command sequences.
48417 # Test whether the compiler implicitly links with -lc since on some
48418 # systems, -lgcc has to come before -lc. If gcc already passes -lc
48419 # to ld, don't add -lc before -lgcc.
48420 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
48421 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
48423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
48425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48426 (eval $ac_compile) 2>&5
48428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48429 (exit $ac_status); } 2>conftest.err; then
48432 libobjs=conftest.$ac_objext
48434 wl=$lt_prog_compiler_wl_GCJ
48440 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
48441 allow_undefined_flag_GCJ=
48442 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
48443 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
48445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48446 (exit $ac_status); }
48448 archive_cmds_need_lc_GCJ=no
48450 archive_cmds_need_lc_GCJ=yes
48452 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
48454 cat conftest.err 1>&5
48457 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
48458 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
48465 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
48466 $as_echo_n "checking dynamic linker characteristics... " >&6; }
48467 library_names_spec=
48468 libname_spec='lib$name'
48472 postuninstall_cmds=
48476 shlibpath_overrides_runpath=unknown
48478 dynamic_linker="$host_os ld.so"
48479 sys_lib_dlsearch_path_spec="/lib /usr/lib"
48480 if test "$GCC" = yes; then
48481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
48482 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
48483 # if the path contains ";" then we assume it to be the separator
48484 # otherwise default to the standard path separator (i.e. ":") - it is
48485 # assumed that no part of a normal pathname contains ";" but that should
48486 # okay in the real world where ";" in dirpaths is itself problematic.
48487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
48489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
48492 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
48494 need_lib_prefix=unknown
48495 hardcode_into_libs=no
48497 # when you set need_version to no, make sure it does not cause -set_version
48498 # flags to be left without arguments
48499 need_version=unknown
48504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
48505 shlibpath_var=LIBPATH
48507 # AIX 3 has no versioning support, so we append a major version to the name.
48508 soname_spec='${libname}${release}${shared_ext}$major'
48515 hardcode_into_libs=yes
48516 if test "$host_cpu" = ia64; then
48517 # AIX 5 supports IA64
48518 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
48519 shlibpath_var=LD_LIBRARY_PATH
48521 # With GCC up to 2.95.x, collect2 would create an import file
48522 # for dependence libraries. The import file would start with
48523 # the line `#! .'. This would cause the generated library to
48524 # depend on `.', always an invalid library. This was fixed in
48525 # development snapshots of GCC prior to 3.0.
48527 aix4 | aix4.[01] | aix4.[01].*)
48528 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
48530 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
48533 can_build_shared=no
48537 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
48538 # soname into executable. Probably we can add versioning support to
48539 # collect2, so additional links can be useful in future.
48540 if test "$aix_use_runtimelinking" = yes; then
48541 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
48542 # instead of lib<name>.a to let people know that these are not
48543 # typical AIX shared libraries.
48544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48546 # We preserve .a as extension for shared libraries through AIX4.2
48547 # and later when we are not doing run time linking.
48548 library_names_spec='${libname}${release}.a $libname.a'
48549 soname_spec='${libname}${release}${shared_ext}$major'
48551 shlibpath_var=LIBPATH
48556 library_names_spec='$libname.ixlibrary $libname.a'
48557 # Create ${libname}_ixlibrary.a entries in /sys/libs.
48558 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'
48562 library_names_spec='${libname}${shared_ext}'
48563 dynamic_linker="$host_os ld.so"
48564 shlibpath_var=LIBRARY_PATH
48570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48571 soname_spec='${libname}${release}${shared_ext}$major'
48572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
48573 shlibpath_var=LD_LIBRARY_PATH
48574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
48575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
48576 # the default ld.so.conf also contains /usr/contrib/lib and
48577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
48578 # libtool to hard-code these into programs
48581 cygwin* | mingw* | pw32*)
48582 version_type=windows
48587 case $GCC,$host_os in
48588 yes,cygwin* | yes,mingw* | yes,pw32*)
48589 library_names_spec='$libname.dll.a'
48590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
48591 postinstall_cmds='base_file=`basename \${file}`~
48592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
48593 dldir=$destdir/`dirname \$dlpath`~
48594 test -d \$dldir || mkdir -p \$dldir~
48595 $install_prog $dir/$dlname \$dldir/$dlname~
48596 chmod a+x \$dldir/$dlname'
48597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
48598 dlpath=$dir/\$dldll~
48600 shlibpath_overrides_runpath=yes
48604 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
48605 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48606 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
48609 # MinGW DLLs use traditional 'lib' prefix
48610 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
48612 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
48613 # It is most probably a Windows format PATH printed by
48614 # mingw gcc, but we are running on Cygwin. Gcc prints its search
48615 # path with ; separators, and with drive letters. We can handle the
48616 # drive letters (cygwin fileutils understands them), so leave them,
48617 # especially as we might pass files found there to a mingw objdump,
48618 # which wouldn't understand a cygwinified path. Ahh.
48619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
48621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
48625 # pw32 DLLs use 'pw' prefix rather than 'lib'
48626 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48632 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
48635 dynamic_linker='Win32 ld.exe'
48636 # FIXME: first we should search . and the directory the executable is in
48640 darwin* | rhapsody*)
48641 dynamic_linker="$host_os dyld"
48642 version_type=darwin
48645 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
48646 soname_spec='${libname}${release}${major}$shared_ext'
48647 shlibpath_overrides_runpath=yes
48648 shlibpath_var=DYLD_LIBRARY_PATH
48649 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
48650 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
48651 if test "$GCC" = yes; then
48652 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
48654 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
48656 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
48663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
48664 soname_spec='${libname}${release}${shared_ext}$major'
48665 shlibpath_var=LD_LIBRARY_PATH
48676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48677 soname_spec='${libname}${release}${shared_ext}$major'
48678 shlibpath_var=LD_LIBRARY_PATH
48679 shlibpath_overrides_runpath=no
48680 hardcode_into_libs=yes
48681 dynamic_linker='GNU ld.so'
48684 freebsd* | dragonfly*)
48685 # DragonFly does not have aout. When/if they implement a new
48686 # versioning mechanism, adjust this.
48687 if test -x /usr/bin/objformat; then
48688 objformat=`/usr/bin/objformat`
48691 freebsd[123]*) objformat=aout ;;
48692 *) objformat=elf ;;
48695 version_type=freebsd-$objformat
48696 case $version_type in
48698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
48703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
48707 shlibpath_var=LD_LIBRARY_PATH
48710 shlibpath_overrides_runpath=yes
48712 freebsd3.[01]* | freebsdelf3.[01]*)
48713 shlibpath_overrides_runpath=yes
48714 hardcode_into_libs=yes
48717 shlibpath_overrides_runpath=no
48718 hardcode_into_libs=yes
48727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
48728 soname_spec='${libname}${release}${shared_ext}$major'
48729 shlibpath_var=LD_LIBRARY_PATH
48730 hardcode_into_libs=yes
48733 hpux9* | hpux10* | hpux11*)
48734 # Give a soname corresponding to the major version so that dld.sl refuses to
48735 # link against other versions.
48742 hardcode_into_libs=yes
48743 dynamic_linker="$host_os dld.so"
48744 shlibpath_var=LD_LIBRARY_PATH
48745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
48746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48747 soname_spec='${libname}${release}${shared_ext}$major'
48748 if test "X$HPUX_IA64_MODE" = X32; then
48749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
48751 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
48753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
48757 hardcode_into_libs=yes
48758 dynamic_linker="$host_os dld.sl"
48759 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
48760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
48761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48762 soname_spec='${libname}${release}${shared_ext}$major'
48763 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
48764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
48768 dynamic_linker="$host_os dld.sl"
48769 shlibpath_var=SHLIB_PATH
48770 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
48771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48772 soname_spec='${libname}${release}${shared_ext}$major'
48775 # HP-UX runs *really* slowly unless shared libraries are mode 555.
48776 postinstall_cmds='chmod 555 $lib'
48779 irix5* | irix6* | nonstopux*)
48781 nonstopux*) version_type=nonstopux ;;
48783 if test "$lt_cv_prog_gnu_ld" = yes; then
48791 soname_spec='${libname}${release}${shared_ext}$major'
48792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
48794 irix5* | nonstopux*)
48795 libsuff= shlibsuff=
48798 case $LD in # libtool.m4 will add one of these switches to LD
48799 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
48800 libsuff= shlibsuff= libmagic=32-bit;;
48801 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
48802 libsuff=32 shlibsuff=N32 libmagic=N32;;
48803 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
48804 libsuff=64 shlibsuff=64 libmagic=64-bit;;
48805 *) libsuff= shlibsuff= libmagic=never-match;;
48809 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
48810 shlibpath_overrides_runpath=no
48811 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
48812 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
48813 hardcode_into_libs=yes
48816 # No shared lib support for Linux oldld, aout, or coff.
48817 linux*oldld* | linux*aout* | linux*coff*)
48821 # This must be Linux ELF.
48826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48827 soname_spec='${libname}${release}${shared_ext}$major'
48828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
48829 shlibpath_var=LD_LIBRARY_PATH
48830 shlibpath_overrides_runpath=no
48831 # This implies no fast_install, which is unacceptable.
48832 # Some rework will be needed to allow for fast_install
48833 # before this can be enabled.
48834 hardcode_into_libs=yes
48836 # Append ld.so.conf contents to the search path
48837 if test -f /etc/ld.so.conf; then
48838 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
48839 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
48842 # We used to test for /lib/ld.so.1 and disable shared libraries on
48843 # powerpc, because MkLinux only supported shared libraries with the
48844 # GNU dynamic linker. Since this was broken with cross compilers,
48845 # most powerpc-linux boxes support dynamic linking these days and
48846 # people can always --disable-shared, the test was removed, and we
48847 # assume the GNU/Linux dynamic linker is in use.
48848 dynamic_linker='GNU/Linux ld.so'
48855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48856 soname_spec='${libname}${release}${shared_ext}$major'
48857 shlibpath_var=LD_LIBRARY_PATH
48858 shlibpath_overrides_runpath=no
48859 hardcode_into_libs=yes
48860 dynamic_linker='GNU ld.so'
48867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
48868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
48870 dynamic_linker='NetBSD (a.out) ld.so'
48872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48873 soname_spec='${libname}${release}${shared_ext}$major'
48874 dynamic_linker='NetBSD ld.elf_so'
48876 shlibpath_var=LD_LIBRARY_PATH
48877 shlibpath_overrides_runpath=yes
48878 hardcode_into_libs=yes
48883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48884 shlibpath_var=LD_LIBRARY_PATH
48885 shlibpath_overrides_runpath=yes
48892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48893 soname_spec='${libname}${release}${shared_ext}$major'
48894 shlibpath_var=LD_LIBRARY_PATH
48895 shlibpath_overrides_runpath=yes
48901 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
48903 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
48904 *) need_version=no ;;
48906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
48908 shlibpath_var=LD_LIBRARY_PATH
48909 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
48911 openbsd2.[89] | openbsd2.[89].*)
48912 shlibpath_overrides_runpath=no
48915 shlibpath_overrides_runpath=yes
48919 shlibpath_overrides_runpath=yes
48924 libname_spec='$name'
48927 library_names_spec='$libname${shared_ext} $libname.a'
48928 dynamic_linker='OS/2 ld.exe'
48929 shlibpath_var=LIBPATH
48932 osf3* | osf4* | osf5*)
48936 soname_spec='${libname}${release}${shared_ext}$major'
48937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48938 shlibpath_var=LD_LIBRARY_PATH
48939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
48940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
48945 soname_spec='${libname}${release}${shared_ext}$major'
48946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48947 shlibpath_var=LD_LIBRARY_PATH
48954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48955 soname_spec='${libname}${release}${shared_ext}$major'
48956 shlibpath_var=LD_LIBRARY_PATH
48957 shlibpath_overrides_runpath=yes
48958 hardcode_into_libs=yes
48959 # ldd complains unless libraries are executable
48960 postinstall_cmds='chmod +x $lib'
48965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48966 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
48967 shlibpath_var=LD_LIBRARY_PATH
48968 shlibpath_overrides_runpath=yes
48969 if test "$with_gnu_ld" = yes; then
48975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
48977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48978 soname_spec='${libname}${release}${shared_ext}$major'
48979 shlibpath_var=LD_LIBRARY_PATH
48980 case $host_vendor in
48982 shlibpath_overrides_runpath=no
48984 export_dynamic_flag_spec='${wl}-Blargedynsym'
48985 runpath_var=LD_RUN_PATH
48993 shlibpath_overrides_runpath=no
48994 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
49000 if test -d /usr/nec ;then
49002 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
49003 soname_spec='$libname${shared_ext}.$major'
49004 shlibpath_var=LD_LIBRARY_PATH
49010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49011 soname_spec='${libname}${release}${shared_ext}$major'
49012 shlibpath_var=LD_LIBRARY_PATH
49019 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
49020 $as_echo "$dynamic_linker" >&6; }
49021 test "$dynamic_linker" = no && can_build_shared=no
49023 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
49024 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
49025 hardcode_action_GCJ=
49026 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
49027 test -n "$runpath_var_GCJ" || \
49028 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
49030 # We can hardcode non-existant directories.
49031 if test "$hardcode_direct_GCJ" != no &&
49032 # If the only mechanism to avoid hardcoding is shlibpath_var, we
49033 # have to relink, otherwise we might link with an installed library
49034 # when we should be linking with a yet-to-be-installed one
49035 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
49036 test "$hardcode_minus_L_GCJ" != no; then
49037 # Linking always hardcodes the temporary library directory.
49038 hardcode_action_GCJ=relink
49040 # We can link without hardcoding, and we can hardcode nonexisting dirs.
49041 hardcode_action_GCJ=immediate
49044 # We cannot hardcode anything, or else we can only hardcode existing
49046 hardcode_action_GCJ=unsupported
49048 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
49049 $as_echo "$hardcode_action_GCJ" >&6; }
49051 if test "$hardcode_action_GCJ" = relink; then
49052 # Fast installation is not supported
49053 enable_fast_install=no
49054 elif test "$shlibpath_overrides_runpath" = yes ||
49055 test "$enable_shared" = no; then
49056 # Fast installation is not necessary
49057 enable_fast_install=needless
49062 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
49063 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
49064 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
49065 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
49066 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
49067 { $as_echo "$as_me:$LINENO: result: yes" >&5
49068 $as_echo "yes" >&6; }
49070 # FIXME - insert some real tests, host_os isn't really good enough
49073 if test -n "$STRIP" ; then
49074 striplib="$STRIP -x"
49075 { $as_echo "$as_me:$LINENO: result: yes" >&5
49076 $as_echo "yes" >&6; }
49078 { $as_echo "$as_me:$LINENO: result: no" >&5
49079 $as_echo "no" >&6; }
49083 { $as_echo "$as_me:$LINENO: result: no" >&5
49084 $as_echo "no" >&6; }
49089 if test "x$enable_dlopen" != xyes; then
49090 enable_dlopen=unknown
49091 enable_dlopen_self=unknown
49092 enable_dlopen_self_static=unknown
49099 lt_cv_dlopen="load_add_on"
49101 lt_cv_dlopen_self=yes
49105 lt_cv_dlopen="LoadLibrary"
49110 lt_cv_dlopen="dlopen"
49115 # if libdl is installed we need to link against it
49116 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
49117 $as_echo_n "checking for dlopen in -ldl... " >&6; }
49118 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
49119 $as_echo_n "(cached) " >&6
49121 ac_check_lib_save_LIBS=$LIBS
49123 cat >conftest.$ac_ext <<_ACEOF
49126 cat confdefs.h >>conftest.$ac_ext
49127 cat >>conftest.$ac_ext <<_ACEOF
49128 /* end confdefs.h. */
49130 /* Override any GCC internal prototype to avoid an error.
49131 Use char because int might match the return type of a GCC
49132 builtin and then its argument prototype would still apply. */
49145 rm -f conftest.$ac_objext conftest$ac_exeext
49146 if { (ac_try="$ac_link"
49147 case "(($ac_try" in
49148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49149 *) ac_try_echo=$ac_try;;
49151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49152 $as_echo "$ac_try_echo") >&5
49153 (eval "$ac_link") 2>conftest.er1
49155 grep -v '^ *+' conftest.er1 >conftest.err
49157 cat conftest.err >&5
49158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49159 (exit $ac_status); } && {
49160 test -z "$ac_c_werror_flag" ||
49161 test ! -s conftest.err
49162 } && test -s conftest$ac_exeext && {
49163 test "$cross_compiling" = yes ||
49164 $as_test_x conftest$ac_exeext
49166 ac_cv_lib_dl_dlopen=yes
49168 $as_echo "$as_me: failed program was:" >&5
49169 sed 's/^/| /' conftest.$ac_ext >&5
49171 ac_cv_lib_dl_dlopen=no
49174 rm -rf conftest.dSYM
49175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49176 conftest$ac_exeext conftest.$ac_ext
49177 LIBS=$ac_check_lib_save_LIBS
49179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
49180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
49181 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
49182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
49185 lt_cv_dlopen="dyld"
49187 lt_cv_dlopen_self=yes
49194 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
49195 $as_echo_n "checking for shl_load... " >&6; }
49196 if test "${ac_cv_func_shl_load+set}" = set; then
49197 $as_echo_n "(cached) " >&6
49199 cat >conftest.$ac_ext <<_ACEOF
49202 cat confdefs.h >>conftest.$ac_ext
49203 cat >>conftest.$ac_ext <<_ACEOF
49204 /* end confdefs.h. */
49205 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
49206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49207 #define shl_load innocuous_shl_load
49209 /* System header to define __stub macros and hopefully few prototypes,
49210 which can conflict with char shl_load (); below.
49211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49212 <limits.h> exists even on freestanding compilers. */
49215 # include <limits.h>
49217 # include <assert.h>
49222 /* Override any GCC internal prototype to avoid an error.
49223 Use char because int might match the return type of a GCC
49224 builtin and then its argument prototype would still apply. */
49229 /* The GNU C library defines this for functions which it implements
49230 to always fail with ENOSYS. Some functions are actually named
49231 something starting with __ and the normal name is an alias. */
49232 #if defined __stub_shl_load || defined __stub___shl_load
49239 return shl_load ();
49244 rm -f conftest.$ac_objext conftest$ac_exeext
49245 if { (ac_try="$ac_link"
49246 case "(($ac_try" in
49247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49248 *) ac_try_echo=$ac_try;;
49250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49251 $as_echo "$ac_try_echo") >&5
49252 (eval "$ac_link") 2>conftest.er1
49254 grep -v '^ *+' conftest.er1 >conftest.err
49256 cat conftest.err >&5
49257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49258 (exit $ac_status); } && {
49259 test -z "$ac_c_werror_flag" ||
49260 test ! -s conftest.err
49261 } && test -s conftest$ac_exeext && {
49262 test "$cross_compiling" = yes ||
49263 $as_test_x conftest$ac_exeext
49265 ac_cv_func_shl_load=yes
49267 $as_echo "$as_me: failed program was:" >&5
49268 sed 's/^/| /' conftest.$ac_ext >&5
49270 ac_cv_func_shl_load=no
49273 rm -rf conftest.dSYM
49274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49275 conftest$ac_exeext conftest.$ac_ext
49277 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
49278 $as_echo "$ac_cv_func_shl_load" >&6; }
49279 if test "x$ac_cv_func_shl_load" = x""yes; then
49280 lt_cv_dlopen="shl_load"
49282 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
49283 $as_echo_n "checking for shl_load in -ldld... " >&6; }
49284 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
49285 $as_echo_n "(cached) " >&6
49287 ac_check_lib_save_LIBS=$LIBS
49289 cat >conftest.$ac_ext <<_ACEOF
49292 cat confdefs.h >>conftest.$ac_ext
49293 cat >>conftest.$ac_ext <<_ACEOF
49294 /* end confdefs.h. */
49296 /* Override any GCC internal prototype to avoid an error.
49297 Use char because int might match the return type of a GCC
49298 builtin and then its argument prototype would still apply. */
49306 return shl_load ();
49311 rm -f conftest.$ac_objext conftest$ac_exeext
49312 if { (ac_try="$ac_link"
49313 case "(($ac_try" in
49314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49315 *) ac_try_echo=$ac_try;;
49317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49318 $as_echo "$ac_try_echo") >&5
49319 (eval "$ac_link") 2>conftest.er1
49321 grep -v '^ *+' conftest.er1 >conftest.err
49323 cat conftest.err >&5
49324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49325 (exit $ac_status); } && {
49326 test -z "$ac_c_werror_flag" ||
49327 test ! -s conftest.err
49328 } && test -s conftest$ac_exeext && {
49329 test "$cross_compiling" = yes ||
49330 $as_test_x conftest$ac_exeext
49332 ac_cv_lib_dld_shl_load=yes
49334 $as_echo "$as_me: failed program was:" >&5
49335 sed 's/^/| /' conftest.$ac_ext >&5
49337 ac_cv_lib_dld_shl_load=no
49340 rm -rf conftest.dSYM
49341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49342 conftest$ac_exeext conftest.$ac_ext
49343 LIBS=$ac_check_lib_save_LIBS
49345 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
49346 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
49347 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
49348 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
49350 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
49351 $as_echo_n "checking for dlopen... " >&6; }
49352 if test "${ac_cv_func_dlopen+set}" = set; then
49353 $as_echo_n "(cached) " >&6
49355 cat >conftest.$ac_ext <<_ACEOF
49358 cat confdefs.h >>conftest.$ac_ext
49359 cat >>conftest.$ac_ext <<_ACEOF
49360 /* end confdefs.h. */
49361 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
49362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49363 #define dlopen innocuous_dlopen
49365 /* System header to define __stub macros and hopefully few prototypes,
49366 which can conflict with char dlopen (); below.
49367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49368 <limits.h> exists even on freestanding compilers. */
49371 # include <limits.h>
49373 # include <assert.h>
49378 /* Override any GCC internal prototype to avoid an error.
49379 Use char because int might match the return type of a GCC
49380 builtin and then its argument prototype would still apply. */
49385 /* The GNU C library defines this for functions which it implements
49386 to always fail with ENOSYS. Some functions are actually named
49387 something starting with __ and the normal name is an alias. */
49388 #if defined __stub_dlopen || defined __stub___dlopen
49400 rm -f conftest.$ac_objext conftest$ac_exeext
49401 if { (ac_try="$ac_link"
49402 case "(($ac_try" in
49403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49404 *) ac_try_echo=$ac_try;;
49406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49407 $as_echo "$ac_try_echo") >&5
49408 (eval "$ac_link") 2>conftest.er1
49410 grep -v '^ *+' conftest.er1 >conftest.err
49412 cat conftest.err >&5
49413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49414 (exit $ac_status); } && {
49415 test -z "$ac_c_werror_flag" ||
49416 test ! -s conftest.err
49417 } && test -s conftest$ac_exeext && {
49418 test "$cross_compiling" = yes ||
49419 $as_test_x conftest$ac_exeext
49421 ac_cv_func_dlopen=yes
49423 $as_echo "$as_me: failed program was:" >&5
49424 sed 's/^/| /' conftest.$ac_ext >&5
49426 ac_cv_func_dlopen=no
49429 rm -rf conftest.dSYM
49430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49431 conftest$ac_exeext conftest.$ac_ext
49433 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
49434 $as_echo "$ac_cv_func_dlopen" >&6; }
49435 if test "x$ac_cv_func_dlopen" = x""yes; then
49436 lt_cv_dlopen="dlopen"
49438 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
49439 $as_echo_n "checking for dlopen in -ldl... " >&6; }
49440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
49441 $as_echo_n "(cached) " >&6
49443 ac_check_lib_save_LIBS=$LIBS
49445 cat >conftest.$ac_ext <<_ACEOF
49448 cat confdefs.h >>conftest.$ac_ext
49449 cat >>conftest.$ac_ext <<_ACEOF
49450 /* end confdefs.h. */
49452 /* Override any GCC internal prototype to avoid an error.
49453 Use char because int might match the return type of a GCC
49454 builtin and then its argument prototype would still apply. */
49467 rm -f conftest.$ac_objext conftest$ac_exeext
49468 if { (ac_try="$ac_link"
49469 case "(($ac_try" in
49470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49471 *) ac_try_echo=$ac_try;;
49473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49474 $as_echo "$ac_try_echo") >&5
49475 (eval "$ac_link") 2>conftest.er1
49477 grep -v '^ *+' conftest.er1 >conftest.err
49479 cat conftest.err >&5
49480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49481 (exit $ac_status); } && {
49482 test -z "$ac_c_werror_flag" ||
49483 test ! -s conftest.err
49484 } && test -s conftest$ac_exeext && {
49485 test "$cross_compiling" = yes ||
49486 $as_test_x conftest$ac_exeext
49488 ac_cv_lib_dl_dlopen=yes
49490 $as_echo "$as_me: failed program was:" >&5
49491 sed 's/^/| /' conftest.$ac_ext >&5
49493 ac_cv_lib_dl_dlopen=no
49496 rm -rf conftest.dSYM
49497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49498 conftest$ac_exeext conftest.$ac_ext
49499 LIBS=$ac_check_lib_save_LIBS
49501 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
49502 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
49503 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
49504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
49506 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
49507 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
49508 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
49509 $as_echo_n "(cached) " >&6
49511 ac_check_lib_save_LIBS=$LIBS
49512 LIBS="-lsvld $LIBS"
49513 cat >conftest.$ac_ext <<_ACEOF
49516 cat confdefs.h >>conftest.$ac_ext
49517 cat >>conftest.$ac_ext <<_ACEOF
49518 /* end confdefs.h. */
49520 /* Override any GCC internal prototype to avoid an error.
49521 Use char because int might match the return type of a GCC
49522 builtin and then its argument prototype would still apply. */
49535 rm -f conftest.$ac_objext conftest$ac_exeext
49536 if { (ac_try="$ac_link"
49537 case "(($ac_try" in
49538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49539 *) ac_try_echo=$ac_try;;
49541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49542 $as_echo "$ac_try_echo") >&5
49543 (eval "$ac_link") 2>conftest.er1
49545 grep -v '^ *+' conftest.er1 >conftest.err
49547 cat conftest.err >&5
49548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49549 (exit $ac_status); } && {
49550 test -z "$ac_c_werror_flag" ||
49551 test ! -s conftest.err
49552 } && test -s conftest$ac_exeext && {
49553 test "$cross_compiling" = yes ||
49554 $as_test_x conftest$ac_exeext
49556 ac_cv_lib_svld_dlopen=yes
49558 $as_echo "$as_me: failed program was:" >&5
49559 sed 's/^/| /' conftest.$ac_ext >&5
49561 ac_cv_lib_svld_dlopen=no
49564 rm -rf conftest.dSYM
49565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49566 conftest$ac_exeext conftest.$ac_ext
49567 LIBS=$ac_check_lib_save_LIBS
49569 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
49570 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
49571 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
49572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
49574 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
49575 $as_echo_n "checking for dld_link in -ldld... " >&6; }
49576 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
49577 $as_echo_n "(cached) " >&6
49579 ac_check_lib_save_LIBS=$LIBS
49581 cat >conftest.$ac_ext <<_ACEOF
49584 cat confdefs.h >>conftest.$ac_ext
49585 cat >>conftest.$ac_ext <<_ACEOF
49586 /* end confdefs.h. */
49588 /* Override any GCC internal prototype to avoid an error.
49589 Use char because int might match the return type of a GCC
49590 builtin and then its argument prototype would still apply. */
49598 return dld_link ();
49603 rm -f conftest.$ac_objext conftest$ac_exeext
49604 if { (ac_try="$ac_link"
49605 case "(($ac_try" in
49606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49607 *) ac_try_echo=$ac_try;;
49609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49610 $as_echo "$ac_try_echo") >&5
49611 (eval "$ac_link") 2>conftest.er1
49613 grep -v '^ *+' conftest.er1 >conftest.err
49615 cat conftest.err >&5
49616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49617 (exit $ac_status); } && {
49618 test -z "$ac_c_werror_flag" ||
49619 test ! -s conftest.err
49620 } && test -s conftest$ac_exeext && {
49621 test "$cross_compiling" = yes ||
49622 $as_test_x conftest$ac_exeext
49624 ac_cv_lib_dld_dld_link=yes
49626 $as_echo "$as_me: failed program was:" >&5
49627 sed 's/^/| /' conftest.$ac_ext >&5
49629 ac_cv_lib_dld_dld_link=no
49632 rm -rf conftest.dSYM
49633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49634 conftest$ac_exeext conftest.$ac_ext
49635 LIBS=$ac_check_lib_save_LIBS
49637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
49638 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
49639 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
49640 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
49661 if test "x$lt_cv_dlopen" != xno; then
49667 case $lt_cv_dlopen in
49669 save_CPPFLAGS="$CPPFLAGS"
49670 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
49672 save_LDFLAGS="$LDFLAGS"
49673 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
49676 LIBS="$lt_cv_dlopen_libs $LIBS"
49678 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
49679 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
49680 if test "${lt_cv_dlopen_self+set}" = set; then
49681 $as_echo_n "(cached) " >&6
49683 if test "$cross_compiling" = yes; then :
49684 lt_cv_dlopen_self=cross
49686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
49687 lt_status=$lt_dlunknown
49688 cat > conftest.$ac_ext <<EOF
49689 #line 49689 "configure"
49690 #include "confdefs.h"
49699 # define LT_DLGLOBAL RTLD_GLOBAL
49702 # define LT_DLGLOBAL DL_GLOBAL
49704 # define LT_DLGLOBAL 0
49708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
49709 find out it does not work in some platform. */
49710 #ifndef LT_DLLAZY_OR_NOW
49712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
49715 # define LT_DLLAZY_OR_NOW DL_LAZY
49718 # define LT_DLLAZY_OR_NOW RTLD_NOW
49721 # define LT_DLLAZY_OR_NOW DL_NOW
49723 # define LT_DLLAZY_OR_NOW 0
49731 extern "C" void exit (int);
49734 void fnord() { int i=42;}
49737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
49738 int status = $lt_dlunknown;
49742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
49743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
49744 /* dlclose (self); */
49750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49751 (eval $ac_link) 2>&5
49753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
49755 (./conftest; exit; ) >&5 2>/dev/null
49757 case x$lt_status in
49758 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
49759 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
49760 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
49763 # compilation failed
49764 lt_cv_dlopen_self=no
49771 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
49772 $as_echo "$lt_cv_dlopen_self" >&6; }
49774 if test "x$lt_cv_dlopen_self" = xyes; then
49775 LDFLAGS="$LDFLAGS $link_static_flag"
49776 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
49777 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
49778 if test "${lt_cv_dlopen_self_static+set}" = set; then
49779 $as_echo_n "(cached) " >&6
49781 if test "$cross_compiling" = yes; then :
49782 lt_cv_dlopen_self_static=cross
49784 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
49785 lt_status=$lt_dlunknown
49786 cat > conftest.$ac_ext <<EOF
49787 #line 49787 "configure"
49788 #include "confdefs.h"
49797 # define LT_DLGLOBAL RTLD_GLOBAL
49800 # define LT_DLGLOBAL DL_GLOBAL
49802 # define LT_DLGLOBAL 0
49806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
49807 find out it does not work in some platform. */
49808 #ifndef LT_DLLAZY_OR_NOW
49810 # define LT_DLLAZY_OR_NOW RTLD_LAZY
49813 # define LT_DLLAZY_OR_NOW DL_LAZY
49816 # define LT_DLLAZY_OR_NOW RTLD_NOW
49819 # define LT_DLLAZY_OR_NOW DL_NOW
49821 # define LT_DLLAZY_OR_NOW 0
49829 extern "C" void exit (int);
49832 void fnord() { int i=42;}
49835 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
49836 int status = $lt_dlunknown;
49840 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
49841 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
49842 /* dlclose (self); */
49848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49849 (eval $ac_link) 2>&5
49851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49852 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
49853 (./conftest; exit; ) >&5 2>/dev/null
49855 case x$lt_status in
49856 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
49857 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
49858 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
49861 # compilation failed
49862 lt_cv_dlopen_self_static=no
49869 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
49870 $as_echo "$lt_cv_dlopen_self_static" >&6; }
49873 CPPFLAGS="$save_CPPFLAGS"
49874 LDFLAGS="$save_LDFLAGS"
49879 case $lt_cv_dlopen_self in
49880 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
49881 *) enable_dlopen_self=unknown ;;
49884 case $lt_cv_dlopen_self_static in
49885 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
49886 *) enable_dlopen_self_static=unknown ;;
49891 # The else clause should only fire when bootstrapping the
49892 # libtool distribution, otherwise you forgot to ship ltmain.sh
49893 # with your package, and you will get complaints that there are
49894 # no rules to generate ltmain.sh.
49895 if test -f "$ltmain"; then
49896 # See if we are running on zsh, and set the options which allow our commands through
49897 # without removal of \ escapes.
49898 if test -n "${ZSH_VERSION+set}" ; then
49899 setopt NO_GLOB_SUBST
49901 # Now quote all the things that may contain metacharacters while being
49902 # careful not to overquote the AC_SUBSTed values. We take copies of the
49903 # variables and quote the copies for generation of the libtool script.
49904 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
49906 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
49907 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
49908 deplibs_check_method reload_flag reload_cmds need_locks \
49909 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
49910 lt_cv_sys_global_symbol_to_c_name_address \
49911 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
49912 old_postinstall_cmds old_postuninstall_cmds \
49916 lt_prog_compiler_wl_GCJ \
49917 lt_prog_compiler_pic_GCJ \
49918 lt_prog_compiler_static_GCJ \
49919 lt_prog_compiler_no_builtin_flag_GCJ \
49920 export_dynamic_flag_spec_GCJ \
49921 thread_safe_flag_spec_GCJ \
49922 whole_archive_flag_spec_GCJ \
49923 enable_shared_with_static_runtimes_GCJ \
49924 old_archive_cmds_GCJ \
49925 old_archive_from_new_cmds_GCJ \
49926 predep_objects_GCJ \
49927 postdep_objects_GCJ \
49930 compiler_lib_search_path_GCJ \
49932 archive_expsym_cmds_GCJ \
49933 postinstall_cmds_GCJ \
49934 postuninstall_cmds_GCJ \
49935 old_archive_from_expsyms_cmds_GCJ \
49936 allow_undefined_flag_GCJ \
49937 no_undefined_flag_GCJ \
49938 export_symbols_cmds_GCJ \
49939 hardcode_libdir_flag_spec_GCJ \
49940 hardcode_libdir_flag_spec_ld_GCJ \
49941 hardcode_libdir_separator_GCJ \
49942 hardcode_automatic_GCJ \
49944 module_expsym_cmds_GCJ \
49945 lt_cv_prog_compiler_c_o_GCJ \
49946 exclude_expsyms_GCJ \
49947 include_expsyms_GCJ; do
49950 old_archive_cmds_GCJ | \
49951 old_archive_from_new_cmds_GCJ | \
49952 archive_cmds_GCJ | \
49953 archive_expsym_cmds_GCJ | \
49954 module_cmds_GCJ | \
49955 module_expsym_cmds_GCJ | \
49956 old_archive_from_expsyms_cmds_GCJ | \
49957 export_symbols_cmds_GCJ | \
49958 extract_expsyms_cmds | reload_cmds | finish_cmds | \
49959 postinstall_cmds | postuninstall_cmds | \
49960 old_postinstall_cmds | old_postuninstall_cmds | \
49961 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
49962 # Double-quote double-evaled strings.
49963 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
49966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
49972 *'\$0 --fallback-echo"')
49973 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
49979 cat <<__EOF__ >> "$cfgfile"
49980 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
49982 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
49984 # Shell to use when invoking shell scripts.
49987 # Whether or not to build shared libraries.
49988 build_libtool_libs=$enable_shared
49990 # Whether or not to build static libraries.
49991 build_old_libs=$enable_static
49993 # Whether or not to add -lc for building shared libraries.
49994 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
49996 # Whether or not to disallow shared libs when runtime libs are static
49997 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
49999 # Whether or not to optimize for fast installation.
50000 fast_install=$enable_fast_install
50003 host_alias=$host_alias
50007 # The build system.
50008 build_alias=$build_alias
50012 # An echo program that does not interpret backslashes.
50017 AR_FLAGS=$lt_AR_FLAGS
50022 # A language-specific compiler.
50023 CC=$lt_compiler_GCJ
50025 # Is the compiler the GNU C compiler?
50031 # The linker used to build libraries.
50034 # Whether we need hard or soft links.
50037 # A BSD-compatible nm program.
50040 # A symbol stripping program
50043 # Used to examine libraries when file_magic_cmd begins "file"
50044 MAGIC_CMD=$MAGIC_CMD
50046 # Used on cygwin: DLL creation program.
50049 # Used on cygwin: object dumper.
50052 # Used on cygwin: assembler.
50055 # The name of the directory that contains temporary libtool files.
50058 # How to create reloadable object files.
50059 reload_flag=$lt_reload_flag
50060 reload_cmds=$lt_reload_cmds
50062 # How to pass a linker flag through the compiler.
50063 wl=$lt_lt_prog_compiler_wl_GCJ
50065 # Object file suffix (normally "o").
50066 objext="$ac_objext"
50068 # Old archive suffix (normally "a").
50071 # Shared library suffix (normally ".so").
50072 shrext_cmds='$shrext_cmds'
50074 # Executable file suffix (normally "").
50077 # Additional compiler flags for building library objects.
50078 pic_flag=$lt_lt_prog_compiler_pic_GCJ
50081 # What is the maximum length of a command?
50082 max_cmd_len=$lt_cv_sys_max_cmd_len
50084 # Does compiler simultaneously support -c and -o options?
50085 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
50087 # Must we lock files when doing compilation?
50088 need_locks=$lt_need_locks
50090 # Do we need the lib prefix for modules?
50091 need_lib_prefix=$need_lib_prefix
50093 # Do we need a version for libraries?
50094 need_version=$need_version
50096 # Whether dlopen is supported.
50097 dlopen_support=$enable_dlopen
50099 # Whether dlopen of programs is supported.
50100 dlopen_self=$enable_dlopen_self
50102 # Whether dlopen of statically linked programs is supported.
50103 dlopen_self_static=$enable_dlopen_self_static
50105 # Compiler flag to prevent dynamic linking.
50106 link_static_flag=$lt_lt_prog_compiler_static_GCJ
50108 # Compiler flag to turn off builtin functions.
50109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
50111 # Compiler flag to allow reflexive dlopens.
50112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
50114 # Compiler flag to generate shared objects directly from archives.
50115 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
50117 # Compiler flag to generate thread-safe objects.
50118 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
50120 # Library versioning type.
50121 version_type=$version_type
50123 # Format of library name prefix.
50124 libname_spec=$lt_libname_spec
50126 # List of archive names. First name is the real one, the rest are links.
50127 # The last name is the one that the linker finds with -lNAME.
50128 library_names_spec=$lt_library_names_spec
50130 # The coded name of the library, if different from the real name.
50131 soname_spec=$lt_soname_spec
50133 # Commands used to build and install an old-style archive.
50135 old_archive_cmds=$lt_old_archive_cmds_GCJ
50136 old_postinstall_cmds=$lt_old_postinstall_cmds
50137 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50139 # Create an old-style archive from a shared archive.
50140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
50142 # Create a temporary old-style archive to link instead of a shared archive.
50143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
50145 # Commands used to build and install a shared archive.
50146 archive_cmds=$lt_archive_cmds_GCJ
50147 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
50148 postinstall_cmds=$lt_postinstall_cmds
50149 postuninstall_cmds=$lt_postuninstall_cmds
50151 # Commands used to build a loadable module (assumed same as above if empty)
50152 module_cmds=$lt_module_cmds_GCJ
50153 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
50155 # Commands to strip libraries.
50156 old_striplib=$lt_old_striplib
50157 striplib=$lt_striplib
50159 # Dependencies to place before the objects being linked to create a
50161 predep_objects=$lt_predep_objects_GCJ
50163 # Dependencies to place after the objects being linked to create a
50165 postdep_objects=$lt_postdep_objects_GCJ
50167 # Dependencies to place before the objects being linked to create a
50169 predeps=$lt_predeps_GCJ
50171 # Dependencies to place after the objects being linked to create a
50173 postdeps=$lt_postdeps_GCJ
50175 # The library search path used internally by the compiler when linking
50176 # a shared library.
50177 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
50179 # Method to check whether dependent libraries are shared objects.
50180 deplibs_check_method=$lt_deplibs_check_method
50182 # Command to use when deplibs_check_method == file_magic.
50183 file_magic_cmd=$lt_file_magic_cmd
50185 # Flag that allows shared libraries with undefined symbols to be built.
50186 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
50188 # Flag that forces no undefined symbols.
50189 no_undefined_flag=$lt_no_undefined_flag_GCJ
50191 # Commands used to finish a libtool library installation in a directory.
50192 finish_cmds=$lt_finish_cmds
50194 # Same as above, but a single script fragment to be evaled but not shown.
50195 finish_eval=$lt_finish_eval
50197 # Take the output of nm and produce a listing of raw symbols and C names.
50198 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50200 # Transform the output of nm in a proper C declaration
50201 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50203 # Transform the output of nm in a C name address pair
50204 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50206 # This is the shared library runtime path variable.
50207 runpath_var=$runpath_var
50209 # This is the shared library path variable.
50210 shlibpath_var=$shlibpath_var
50212 # Is shlibpath searched before the hard-coded library search path?
50213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50215 # How to hardcode a shared library path into an executable.
50216 hardcode_action=$hardcode_action_GCJ
50218 # Whether we should hardcode library paths into libraries.
50219 hardcode_into_libs=$hardcode_into_libs
50221 # Flag to hardcode \$libdir into a binary during linking.
50222 # This must work even if \$libdir does not exist.
50223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
50225 # If ld is used when linking, flag to hardcode \$libdir into
50226 # a binary during linking. This must work even if \$libdir does
50228 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
50230 # Whether we need a single -rpath flag with a separated argument.
50231 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
50233 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
50234 # resulting binary.
50235 hardcode_direct=$hardcode_direct_GCJ
50237 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
50238 # resulting binary.
50239 hardcode_minus_L=$hardcode_minus_L_GCJ
50241 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
50242 # the resulting binary.
50243 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
50245 # Set to yes if building a shared library automatically hardcodes DIR into the library
50246 # and all subsequent libraries and executables linked against it.
50247 hardcode_automatic=$hardcode_automatic_GCJ
50249 # Variables whose values should be saved in libtool wrapper scripts and
50250 # restored at relink time.
50251 variables_saved_for_relink="$variables_saved_for_relink"
50253 # Whether libtool must link a program against all its dependency libraries.
50254 link_all_deplibs=$link_all_deplibs_GCJ
50256 # Compile-time system search path for libraries
50257 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50259 # Run-time system search path for libraries
50260 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50262 # Fix the shell variable \$srcfile for the compiler.
50263 fix_srcfile_path="$fix_srcfile_path_GCJ"
50265 # Set to yes if exported symbols are required.
50266 always_export_symbols=$always_export_symbols_GCJ
50268 # The commands to list exported symbols.
50269 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
50271 # The commands to extract the exported symbol list from a shared archive.
50272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50274 # Symbols that should not be listed in the preloaded symbols.
50275 exclude_expsyms=$lt_exclude_expsyms_GCJ
50277 # Symbols that must always be exported.
50278 include_expsyms=$lt_include_expsyms_GCJ
50280 # ### END LIBTOOL TAG CONFIG: $tagname
50286 # If there is no Makefile yet, we rely on a make rule to execute
50287 # `config.status --recheck' to rerun these tests and create the
50288 # libtool script then.
50289 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
50290 if test -f "$ltmain_in"; then
50291 test -f Makefile && make "$ltmain"
50297 ac_cpp='$CPP $CPPFLAGS'
50298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50312 # Source file extension for RC test sources.
50315 # Object file extension for compiled RC test sources.
50319 # Code to be used in simple compile tests
50320 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
50322 # Code to be used in simple link tests
50323 lt_simple_link_test_code="$lt_simple_compile_test_code"
50325 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
50327 # If no C compiler was specified, use CC.
50330 # Allow CC to be a program name with arguments.
50334 # save warnings/boilerplate of simple test code
50335 ac_outfile=conftest.$ac_objext
50336 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
50337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
50338 _lt_compiler_boilerplate=`cat conftest.err`
50341 ac_outfile=conftest.$ac_objext
50342 printf "$lt_simple_link_test_code" >conftest.$ac_ext
50343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
50344 _lt_linker_boilerplate=`cat conftest.err`
50348 # Allow CC to be a program name with arguments.
50353 for cc_temp in $compiler""; do
50355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
50356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
50361 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
50363 lt_cv_prog_compiler_c_o_RC=yes
50365 # The else clause should only fire when bootstrapping the
50366 # libtool distribution, otherwise you forgot to ship ltmain.sh
50367 # with your package, and you will get complaints that there are
50368 # no rules to generate ltmain.sh.
50369 if test -f "$ltmain"; then
50370 # See if we are running on zsh, and set the options which allow our commands through
50371 # without removal of \ escapes.
50372 if test -n "${ZSH_VERSION+set}" ; then
50373 setopt NO_GLOB_SUBST
50375 # Now quote all the things that may contain metacharacters while being
50376 # careful not to overquote the AC_SUBSTed values. We take copies of the
50377 # variables and quote the copies for generation of the libtool script.
50378 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
50380 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
50381 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
50382 deplibs_check_method reload_flag reload_cmds need_locks \
50383 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
50384 lt_cv_sys_global_symbol_to_c_name_address \
50385 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
50386 old_postinstall_cmds old_postuninstall_cmds \
50390 lt_prog_compiler_wl_RC \
50391 lt_prog_compiler_pic_RC \
50392 lt_prog_compiler_static_RC \
50393 lt_prog_compiler_no_builtin_flag_RC \
50394 export_dynamic_flag_spec_RC \
50395 thread_safe_flag_spec_RC \
50396 whole_archive_flag_spec_RC \
50397 enable_shared_with_static_runtimes_RC \
50398 old_archive_cmds_RC \
50399 old_archive_from_new_cmds_RC \
50400 predep_objects_RC \
50401 postdep_objects_RC \
50404 compiler_lib_search_path_RC \
50406 archive_expsym_cmds_RC \
50407 postinstall_cmds_RC \
50408 postuninstall_cmds_RC \
50409 old_archive_from_expsyms_cmds_RC \
50410 allow_undefined_flag_RC \
50411 no_undefined_flag_RC \
50412 export_symbols_cmds_RC \
50413 hardcode_libdir_flag_spec_RC \
50414 hardcode_libdir_flag_spec_ld_RC \
50415 hardcode_libdir_separator_RC \
50416 hardcode_automatic_RC \
50418 module_expsym_cmds_RC \
50419 lt_cv_prog_compiler_c_o_RC \
50420 exclude_expsyms_RC \
50421 include_expsyms_RC; do
50424 old_archive_cmds_RC | \
50425 old_archive_from_new_cmds_RC | \
50426 archive_cmds_RC | \
50427 archive_expsym_cmds_RC | \
50429 module_expsym_cmds_RC | \
50430 old_archive_from_expsyms_cmds_RC | \
50431 export_symbols_cmds_RC | \
50432 extract_expsyms_cmds | reload_cmds | finish_cmds | \
50433 postinstall_cmds | postuninstall_cmds | \
50434 old_postinstall_cmds | old_postuninstall_cmds | \
50435 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
50436 # Double-quote double-evaled strings.
50437 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
50440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
50446 *'\$0 --fallback-echo"')
50447 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
50453 cat <<__EOF__ >> "$cfgfile"
50454 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
50456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
50458 # Shell to use when invoking shell scripts.
50461 # Whether or not to build shared libraries.
50462 build_libtool_libs=$enable_shared
50464 # Whether or not to build static libraries.
50465 build_old_libs=$enable_static
50467 # Whether or not to add -lc for building shared libraries.
50468 build_libtool_need_lc=$archive_cmds_need_lc_RC
50470 # Whether or not to disallow shared libs when runtime libs are static
50471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
50473 # Whether or not to optimize for fast installation.
50474 fast_install=$enable_fast_install
50477 host_alias=$host_alias
50481 # The build system.
50482 build_alias=$build_alias
50486 # An echo program that does not interpret backslashes.
50491 AR_FLAGS=$lt_AR_FLAGS
50496 # A language-specific compiler.
50499 # Is the compiler the GNU C compiler?
50505 # The linker used to build libraries.
50508 # Whether we need hard or soft links.
50511 # A BSD-compatible nm program.
50514 # A symbol stripping program
50517 # Used to examine libraries when file_magic_cmd begins "file"
50518 MAGIC_CMD=$MAGIC_CMD
50520 # Used on cygwin: DLL creation program.
50523 # Used on cygwin: object dumper.
50526 # Used on cygwin: assembler.
50529 # The name of the directory that contains temporary libtool files.
50532 # How to create reloadable object files.
50533 reload_flag=$lt_reload_flag
50534 reload_cmds=$lt_reload_cmds
50536 # How to pass a linker flag through the compiler.
50537 wl=$lt_lt_prog_compiler_wl_RC
50539 # Object file suffix (normally "o").
50540 objext="$ac_objext"
50542 # Old archive suffix (normally "a").
50545 # Shared library suffix (normally ".so").
50546 shrext_cmds='$shrext_cmds'
50548 # Executable file suffix (normally "").
50551 # Additional compiler flags for building library objects.
50552 pic_flag=$lt_lt_prog_compiler_pic_RC
50555 # What is the maximum length of a command?
50556 max_cmd_len=$lt_cv_sys_max_cmd_len
50558 # Does compiler simultaneously support -c and -o options?
50559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
50561 # Must we lock files when doing compilation?
50562 need_locks=$lt_need_locks
50564 # Do we need the lib prefix for modules?
50565 need_lib_prefix=$need_lib_prefix
50567 # Do we need a version for libraries?
50568 need_version=$need_version
50570 # Whether dlopen is supported.
50571 dlopen_support=$enable_dlopen
50573 # Whether dlopen of programs is supported.
50574 dlopen_self=$enable_dlopen_self
50576 # Whether dlopen of statically linked programs is supported.
50577 dlopen_self_static=$enable_dlopen_self_static
50579 # Compiler flag to prevent dynamic linking.
50580 link_static_flag=$lt_lt_prog_compiler_static_RC
50582 # Compiler flag to turn off builtin functions.
50583 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
50585 # Compiler flag to allow reflexive dlopens.
50586 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
50588 # Compiler flag to generate shared objects directly from archives.
50589 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
50591 # Compiler flag to generate thread-safe objects.
50592 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
50594 # Library versioning type.
50595 version_type=$version_type
50597 # Format of library name prefix.
50598 libname_spec=$lt_libname_spec
50600 # List of archive names. First name is the real one, the rest are links.
50601 # The last name is the one that the linker finds with -lNAME.
50602 library_names_spec=$lt_library_names_spec
50604 # The coded name of the library, if different from the real name.
50605 soname_spec=$lt_soname_spec
50607 # Commands used to build and install an old-style archive.
50609 old_archive_cmds=$lt_old_archive_cmds_RC
50610 old_postinstall_cmds=$lt_old_postinstall_cmds
50611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50613 # Create an old-style archive from a shared archive.
50614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
50616 # Create a temporary old-style archive to link instead of a shared archive.
50617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
50619 # Commands used to build and install a shared archive.
50620 archive_cmds=$lt_archive_cmds_RC
50621 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
50622 postinstall_cmds=$lt_postinstall_cmds
50623 postuninstall_cmds=$lt_postuninstall_cmds
50625 # Commands used to build a loadable module (assumed same as above if empty)
50626 module_cmds=$lt_module_cmds_RC
50627 module_expsym_cmds=$lt_module_expsym_cmds_RC
50629 # Commands to strip libraries.
50630 old_striplib=$lt_old_striplib
50631 striplib=$lt_striplib
50633 # Dependencies to place before the objects being linked to create a
50635 predep_objects=$lt_predep_objects_RC
50637 # Dependencies to place after the objects being linked to create a
50639 postdep_objects=$lt_postdep_objects_RC
50641 # Dependencies to place before the objects being linked to create a
50643 predeps=$lt_predeps_RC
50645 # Dependencies to place after the objects being linked to create a
50647 postdeps=$lt_postdeps_RC
50649 # The library search path used internally by the compiler when linking
50650 # a shared library.
50651 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
50653 # Method to check whether dependent libraries are shared objects.
50654 deplibs_check_method=$lt_deplibs_check_method
50656 # Command to use when deplibs_check_method == file_magic.
50657 file_magic_cmd=$lt_file_magic_cmd
50659 # Flag that allows shared libraries with undefined symbols to be built.
50660 allow_undefined_flag=$lt_allow_undefined_flag_RC
50662 # Flag that forces no undefined symbols.
50663 no_undefined_flag=$lt_no_undefined_flag_RC
50665 # Commands used to finish a libtool library installation in a directory.
50666 finish_cmds=$lt_finish_cmds
50668 # Same as above, but a single script fragment to be evaled but not shown.
50669 finish_eval=$lt_finish_eval
50671 # Take the output of nm and produce a listing of raw symbols and C names.
50672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50674 # Transform the output of nm in a proper C declaration
50675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50677 # Transform the output of nm in a C name address pair
50678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50680 # This is the shared library runtime path variable.
50681 runpath_var=$runpath_var
50683 # This is the shared library path variable.
50684 shlibpath_var=$shlibpath_var
50686 # Is shlibpath searched before the hard-coded library search path?
50687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50689 # How to hardcode a shared library path into an executable.
50690 hardcode_action=$hardcode_action_RC
50692 # Whether we should hardcode library paths into libraries.
50693 hardcode_into_libs=$hardcode_into_libs
50695 # Flag to hardcode \$libdir into a binary during linking.
50696 # This must work even if \$libdir does not exist.
50697 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
50699 # If ld is used when linking, flag to hardcode \$libdir into
50700 # a binary during linking. This must work even if \$libdir does
50702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
50704 # Whether we need a single -rpath flag with a separated argument.
50705 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
50707 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
50708 # resulting binary.
50709 hardcode_direct=$hardcode_direct_RC
50711 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
50712 # resulting binary.
50713 hardcode_minus_L=$hardcode_minus_L_RC
50715 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
50716 # the resulting binary.
50717 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
50719 # Set to yes if building a shared library automatically hardcodes DIR into the library
50720 # and all subsequent libraries and executables linked against it.
50721 hardcode_automatic=$hardcode_automatic_RC
50723 # Variables whose values should be saved in libtool wrapper scripts and
50724 # restored at relink time.
50725 variables_saved_for_relink="$variables_saved_for_relink"
50727 # Whether libtool must link a program against all its dependency libraries.
50728 link_all_deplibs=$link_all_deplibs_RC
50730 # Compile-time system search path for libraries
50731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50733 # Run-time system search path for libraries
50734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50736 # Fix the shell variable \$srcfile for the compiler.
50737 fix_srcfile_path="$fix_srcfile_path_RC"
50739 # Set to yes if exported symbols are required.
50740 always_export_symbols=$always_export_symbols_RC
50742 # The commands to list exported symbols.
50743 export_symbols_cmds=$lt_export_symbols_cmds_RC
50745 # The commands to extract the exported symbol list from a shared archive.
50746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50748 # Symbols that should not be listed in the preloaded symbols.
50749 exclude_expsyms=$lt_exclude_expsyms_RC
50751 # Symbols that must always be exported.
50752 include_expsyms=$lt_include_expsyms_RC
50754 # ### END LIBTOOL TAG CONFIG: $tagname
50760 # If there is no Makefile yet, we rely on a make rule to execute
50761 # `config.status --recheck' to rerun these tests and create the
50762 # libtool script then.
50763 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
50764 if test -f "$ltmain_in"; then
50765 test -f Makefile && make "$ltmain"
50771 ac_cpp='$CPP $CPPFLAGS'
50772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50781 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
50782 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
50783 { (exit 1); exit 1; }; }
50787 # Append the new tag name to the list of available tags.
50788 if test -n "$tagname" ; then
50789 available_tags="$available_tags $tagname"
50795 # Now substitute the updated list of available tags.
50796 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
50797 mv "${ofile}T" "$ofile"
50801 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
50802 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
50803 { (exit 1); exit 1; }; }
50809 # This can be used to rebuild libtool when needed
50810 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
50812 # Always use our own libtool.
50813 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
50815 # Prevent multiple expansion
50838 # Check whether --enable-static-binary was given.
50839 if test "${enable_static_binary+set}" = set; then
50840 enableval=$enable_static_binary;
50843 AMANDA_STATIC_LDFLAGS=-static
50844 if test x"$enable_static" = x"no"; then
50845 { { $as_echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
50846 $as_echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
50847 { (exit 1); exit 1; }; }
50851 AMANDA_STATIC_LDFLAGS=
50868 ac_header_dirent=no
50869 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
50870 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
50871 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
50872 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
50873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50874 $as_echo_n "(cached) " >&6
50876 cat >conftest.$ac_ext <<_ACEOF
50879 cat confdefs.h >>conftest.$ac_ext
50880 cat >>conftest.$ac_ext <<_ACEOF
50881 /* end confdefs.h. */
50882 #include <sys/types.h>
50894 rm -f conftest.$ac_objext
50895 if { (ac_try="$ac_compile"
50896 case "(($ac_try" in
50897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50898 *) ac_try_echo=$ac_try;;
50900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50901 $as_echo "$ac_try_echo") >&5
50902 (eval "$ac_compile") 2>conftest.er1
50904 grep -v '^ *+' conftest.er1 >conftest.err
50906 cat conftest.err >&5
50907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50908 (exit $ac_status); } && {
50909 test -z "$ac_c_werror_flag" ||
50910 test ! -s conftest.err
50911 } && test -s conftest.$ac_objext; then
50912 eval "$as_ac_Header=yes"
50914 $as_echo "$as_me: failed program was:" >&5
50915 sed 's/^/| /' conftest.$ac_ext >&5
50917 eval "$as_ac_Header=no"
50920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50922 ac_res=`eval 'as_val=${'$as_ac_Header'}
50923 $as_echo "$as_val"'`
50924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50925 $as_echo "$ac_res" >&6; }
50926 as_val=`eval 'as_val=${'$as_ac_Header'}
50927 $as_echo "$as_val"'`
50928 if test "x$as_val" = x""yes; then
50929 cat >>confdefs.h <<_ACEOF
50930 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
50933 ac_header_dirent=$ac_hdr; break
50937 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
50938 if test $ac_header_dirent = dirent.h; then
50939 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
50940 $as_echo_n "checking for library containing opendir... " >&6; }
50941 if test "${ac_cv_search_opendir+set}" = set; then
50942 $as_echo_n "(cached) " >&6
50944 ac_func_search_save_LIBS=$LIBS
50945 cat >conftest.$ac_ext <<_ACEOF
50948 cat confdefs.h >>conftest.$ac_ext
50949 cat >>conftest.$ac_ext <<_ACEOF
50950 /* end confdefs.h. */
50952 /* Override any GCC internal prototype to avoid an error.
50953 Use char because int might match the return type of a GCC
50954 builtin and then its argument prototype would still apply. */
50967 for ac_lib in '' dir; do
50968 if test -z "$ac_lib"; then
50969 ac_res="none required"
50972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
50974 rm -f conftest.$ac_objext conftest$ac_exeext
50975 if { (ac_try="$ac_link"
50976 case "(($ac_try" in
50977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50978 *) ac_try_echo=$ac_try;;
50980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50981 $as_echo "$ac_try_echo") >&5
50982 (eval "$ac_link") 2>conftest.er1
50984 grep -v '^ *+' conftest.er1 >conftest.err
50986 cat conftest.err >&5
50987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50988 (exit $ac_status); } && {
50989 test -z "$ac_c_werror_flag" ||
50990 test ! -s conftest.err
50991 } && test -s conftest$ac_exeext && {
50992 test "$cross_compiling" = yes ||
50993 $as_test_x conftest$ac_exeext
50995 ac_cv_search_opendir=$ac_res
50997 $as_echo "$as_me: failed program was:" >&5
50998 sed 's/^/| /' conftest.$ac_ext >&5
51003 rm -rf conftest.dSYM
51004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51006 if test "${ac_cv_search_opendir+set}" = set; then
51010 if test "${ac_cv_search_opendir+set}" = set; then
51013 ac_cv_search_opendir=no
51015 rm conftest.$ac_ext
51016 LIBS=$ac_func_search_save_LIBS
51018 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
51019 $as_echo "$ac_cv_search_opendir" >&6; }
51020 ac_res=$ac_cv_search_opendir
51021 if test "$ac_res" != no; then
51022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51027 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
51028 $as_echo_n "checking for library containing opendir... " >&6; }
51029 if test "${ac_cv_search_opendir+set}" = set; then
51030 $as_echo_n "(cached) " >&6
51032 ac_func_search_save_LIBS=$LIBS
51033 cat >conftest.$ac_ext <<_ACEOF
51036 cat confdefs.h >>conftest.$ac_ext
51037 cat >>conftest.$ac_ext <<_ACEOF
51038 /* end confdefs.h. */
51040 /* Override any GCC internal prototype to avoid an error.
51041 Use char because int might match the return type of a GCC
51042 builtin and then its argument prototype would still apply. */
51055 for ac_lib in '' x; do
51056 if test -z "$ac_lib"; then
51057 ac_res="none required"
51060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
51062 rm -f conftest.$ac_objext conftest$ac_exeext
51063 if { (ac_try="$ac_link"
51064 case "(($ac_try" in
51065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51066 *) ac_try_echo=$ac_try;;
51068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51069 $as_echo "$ac_try_echo") >&5
51070 (eval "$ac_link") 2>conftest.er1
51072 grep -v '^ *+' conftest.er1 >conftest.err
51074 cat conftest.err >&5
51075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51076 (exit $ac_status); } && {
51077 test -z "$ac_c_werror_flag" ||
51078 test ! -s conftest.err
51079 } && test -s conftest$ac_exeext && {
51080 test "$cross_compiling" = yes ||
51081 $as_test_x conftest$ac_exeext
51083 ac_cv_search_opendir=$ac_res
51085 $as_echo "$as_me: failed program was:" >&5
51086 sed 's/^/| /' conftest.$ac_ext >&5
51091 rm -rf conftest.dSYM
51092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51094 if test "${ac_cv_search_opendir+set}" = set; then
51098 if test "${ac_cv_search_opendir+set}" = set; then
51101 ac_cv_search_opendir=no
51103 rm conftest.$ac_ext
51104 LIBS=$ac_func_search_save_LIBS
51106 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
51107 $as_echo "$ac_cv_search_opendir" >&6; }
51108 ac_res=$ac_cv_search_opendir
51109 if test "$ac_res" != no; then
51110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51116 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
51117 $as_echo_n "checking for ANSI C header files... " >&6; }
51118 if test "${ac_cv_header_stdc+set}" = set; then
51119 $as_echo_n "(cached) " >&6
51121 cat >conftest.$ac_ext <<_ACEOF
51124 cat confdefs.h >>conftest.$ac_ext
51125 cat >>conftest.$ac_ext <<_ACEOF
51126 /* end confdefs.h. */
51127 #include <stdlib.h>
51128 #include <stdarg.h>
51129 #include <string.h>
51140 rm -f conftest.$ac_objext
51141 if { (ac_try="$ac_compile"
51142 case "(($ac_try" in
51143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51144 *) ac_try_echo=$ac_try;;
51146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51147 $as_echo "$ac_try_echo") >&5
51148 (eval "$ac_compile") 2>conftest.er1
51150 grep -v '^ *+' conftest.er1 >conftest.err
51152 cat conftest.err >&5
51153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51154 (exit $ac_status); } && {
51155 test -z "$ac_c_werror_flag" ||
51156 test ! -s conftest.err
51157 } && test -s conftest.$ac_objext; then
51158 ac_cv_header_stdc=yes
51160 $as_echo "$as_me: failed program was:" >&5
51161 sed 's/^/| /' conftest.$ac_ext >&5
51163 ac_cv_header_stdc=no
51166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51168 if test $ac_cv_header_stdc = yes; then
51169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
51170 cat >conftest.$ac_ext <<_ACEOF
51173 cat confdefs.h >>conftest.$ac_ext
51174 cat >>conftest.$ac_ext <<_ACEOF
51175 /* end confdefs.h. */
51176 #include <string.h>
51179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51180 $EGREP "memchr" >/dev/null 2>&1; then
51183 ac_cv_header_stdc=no
51189 if test $ac_cv_header_stdc = yes; then
51190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
51191 cat >conftest.$ac_ext <<_ACEOF
51194 cat confdefs.h >>conftest.$ac_ext
51195 cat >>conftest.$ac_ext <<_ACEOF
51196 /* end confdefs.h. */
51197 #include <stdlib.h>
51200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51201 $EGREP "free" >/dev/null 2>&1; then
51204 ac_cv_header_stdc=no
51210 if test $ac_cv_header_stdc = yes; then
51211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
51212 if test "$cross_compiling" = yes; then
51215 cat >conftest.$ac_ext <<_ACEOF
51218 cat confdefs.h >>conftest.$ac_ext
51219 cat >>conftest.$ac_ext <<_ACEOF
51220 /* end confdefs.h. */
51222 #include <stdlib.h>
51223 #if ((' ' & 0x0FF) == 0x020)
51224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
51225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
51227 # define ISLOWER(c) \
51228 (('a' <= (c) && (c) <= 'i') \
51229 || ('j' <= (c) && (c) <= 'r') \
51230 || ('s' <= (c) && (c) <= 'z'))
51231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
51234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
51239 for (i = 0; i < 256; i++)
51240 if (XOR (islower (i), ISLOWER (i))
51241 || toupper (i) != TOUPPER (i))
51246 rm -f conftest$ac_exeext
51247 if { (ac_try="$ac_link"
51248 case "(($ac_try" in
51249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51250 *) ac_try_echo=$ac_try;;
51252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51253 $as_echo "$ac_try_echo") >&5
51254 (eval "$ac_link") 2>&5
51256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51258 { (case "(($ac_try" in
51259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51260 *) ac_try_echo=$ac_try;;
51262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51263 $as_echo "$ac_try_echo") >&5
51264 (eval "$ac_try") 2>&5
51266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51267 (exit $ac_status); }; }; then
51270 $as_echo "$as_me: program exited with status $ac_status" >&5
51271 $as_echo "$as_me: failed program was:" >&5
51272 sed 's/^/| /' conftest.$ac_ext >&5
51274 ( exit $ac_status )
51275 ac_cv_header_stdc=no
51277 rm -rf conftest.dSYM
51278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51284 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
51285 $as_echo "$ac_cv_header_stdc" >&6; }
51286 if test $ac_cv_header_stdc = yes; then
51288 cat >>confdefs.h <<\_ACEOF
51289 #define STDC_HEADERS 1
51294 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
51295 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
51296 if test "${ac_cv_header_time+set}" = set; then
51297 $as_echo_n "(cached) " >&6
51299 cat >conftest.$ac_ext <<_ACEOF
51302 cat confdefs.h >>conftest.$ac_ext
51303 cat >>conftest.$ac_ext <<_ACEOF
51304 /* end confdefs.h. */
51305 #include <sys/types.h>
51306 #include <sys/time.h>
51312 if ((struct tm *) 0)
51318 rm -f conftest.$ac_objext
51319 if { (ac_try="$ac_compile"
51320 case "(($ac_try" in
51321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51322 *) ac_try_echo=$ac_try;;
51324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51325 $as_echo "$ac_try_echo") >&5
51326 (eval "$ac_compile") 2>conftest.er1
51328 grep -v '^ *+' conftest.er1 >conftest.err
51330 cat conftest.err >&5
51331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51332 (exit $ac_status); } && {
51333 test -z "$ac_c_werror_flag" ||
51334 test ! -s conftest.err
51335 } && test -s conftest.$ac_objext; then
51336 ac_cv_header_time=yes
51338 $as_echo "$as_me: failed program was:" >&5
51339 sed 's/^/| /' conftest.$ac_ext >&5
51341 ac_cv_header_time=no
51344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51346 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
51347 $as_echo "$ac_cv_header_time" >&6; }
51348 if test $ac_cv_header_time = yes; then
51350 cat >>confdefs.h <<\_ACEOF
51351 #define TIME_WITH_SYS_TIME 1
51382 for ac_header in arpa/inet.h \
51410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51412 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51413 $as_echo_n "checking for $ac_header... " >&6; }
51414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51415 $as_echo_n "(cached) " >&6
51417 ac_res=`eval 'as_val=${'$as_ac_Header'}
51418 $as_echo "$as_val"'`
51419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51420 $as_echo "$ac_res" >&6; }
51422 # Is the header compilable?
51423 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
51424 $as_echo_n "checking $ac_header usability... " >&6; }
51425 cat >conftest.$ac_ext <<_ACEOF
51428 cat confdefs.h >>conftest.$ac_ext
51429 cat >>conftest.$ac_ext <<_ACEOF
51430 /* end confdefs.h. */
51431 $ac_includes_default
51432 #include <$ac_header>
51434 rm -f conftest.$ac_objext
51435 if { (ac_try="$ac_compile"
51436 case "(($ac_try" in
51437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51438 *) ac_try_echo=$ac_try;;
51440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51441 $as_echo "$ac_try_echo") >&5
51442 (eval "$ac_compile") 2>conftest.er1
51444 grep -v '^ *+' conftest.er1 >conftest.err
51446 cat conftest.err >&5
51447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51448 (exit $ac_status); } && {
51449 test -z "$ac_c_werror_flag" ||
51450 test ! -s conftest.err
51451 } && test -s conftest.$ac_objext; then
51452 ac_header_compiler=yes
51454 $as_echo "$as_me: failed program was:" >&5
51455 sed 's/^/| /' conftest.$ac_ext >&5
51457 ac_header_compiler=no
51460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51461 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51462 $as_echo "$ac_header_compiler" >&6; }
51464 # Is the header present?
51465 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51466 $as_echo_n "checking $ac_header presence... " >&6; }
51467 cat >conftest.$ac_ext <<_ACEOF
51470 cat confdefs.h >>conftest.$ac_ext
51471 cat >>conftest.$ac_ext <<_ACEOF
51472 /* end confdefs.h. */
51473 #include <$ac_header>
51475 if { (ac_try="$ac_cpp conftest.$ac_ext"
51476 case "(($ac_try" in
51477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51478 *) ac_try_echo=$ac_try;;
51480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51481 $as_echo "$ac_try_echo") >&5
51482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51484 grep -v '^ *+' conftest.er1 >conftest.err
51486 cat conftest.err >&5
51487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51488 (exit $ac_status); } >/dev/null && {
51489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51490 test ! -s conftest.err
51492 ac_header_preproc=yes
51494 $as_echo "$as_me: failed program was:" >&5
51495 sed 's/^/| /' conftest.$ac_ext >&5
51497 ac_header_preproc=no
51500 rm -f conftest.err conftest.$ac_ext
51501 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51502 $as_echo "$ac_header_preproc" >&6; }
51504 # So? What about this header?
51505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51508 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51510 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51511 ac_header_preproc=yes
51514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51515 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51517 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51519 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51521 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51523 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51525 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51529 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51530 $as_echo_n "checking for $ac_header... " >&6; }
51531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51532 $as_echo_n "(cached) " >&6
51534 eval "$as_ac_Header=\$ac_header_preproc"
51536 ac_res=`eval 'as_val=${'$as_ac_Header'}
51537 $as_echo "$as_val"'`
51538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51539 $as_echo "$ac_res" >&6; }
51542 as_val=`eval 'as_val=${'$as_ac_Header'}
51543 $as_echo "$as_val"'`
51544 if test "x$as_val" = x""yes; then
51545 cat >>confdefs.h <<_ACEOF
51546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51554 cat >>confdefs.h <<\_ACEOF
51555 #define HAVE_AMANDA_H 1
51559 cat >>confdefs.h <<\_ACEOF
51560 #define HAVE_UTIL_H 1
51565 cat >>confdefs.h <<\_ACEOF
51566 #define USE_GETTEXT 1
51573 # The cast to long int works around a bug in the HP C Compiler
51574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51576 # This bug is HP SR number 8606223364.
51577 { $as_echo "$as_me:$LINENO: checking size of int" >&5
51578 $as_echo_n "checking size of int... " >&6; }
51579 if test "${ac_cv_sizeof_int+set}" = set; then
51580 $as_echo_n "(cached) " >&6
51582 if test "$cross_compiling" = yes; then
51583 # Depending upon the size, compute the lo and hi bounds.
51584 cat >conftest.$ac_ext <<_ACEOF
51587 cat confdefs.h >>conftest.$ac_ext
51588 cat >>conftest.$ac_ext <<_ACEOF
51589 /* end confdefs.h. */
51590 $ac_includes_default
51594 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
51601 rm -f conftest.$ac_objext
51602 if { (ac_try="$ac_compile"
51603 case "(($ac_try" in
51604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51605 *) ac_try_echo=$ac_try;;
51607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51608 $as_echo "$ac_try_echo") >&5
51609 (eval "$ac_compile") 2>conftest.er1
51611 grep -v '^ *+' conftest.er1 >conftest.err
51613 cat conftest.err >&5
51614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51615 (exit $ac_status); } && {
51616 test -z "$ac_c_werror_flag" ||
51617 test ! -s conftest.err
51618 } && test -s conftest.$ac_objext; then
51621 cat >conftest.$ac_ext <<_ACEOF
51624 cat confdefs.h >>conftest.$ac_ext
51625 cat >>conftest.$ac_ext <<_ACEOF
51626 /* end confdefs.h. */
51627 $ac_includes_default
51631 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
51638 rm -f conftest.$ac_objext
51639 if { (ac_try="$ac_compile"
51640 case "(($ac_try" in
51641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51642 *) ac_try_echo=$ac_try;;
51644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51645 $as_echo "$ac_try_echo") >&5
51646 (eval "$ac_compile") 2>conftest.er1
51648 grep -v '^ *+' conftest.er1 >conftest.err
51650 cat conftest.err >&5
51651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51652 (exit $ac_status); } && {
51653 test -z "$ac_c_werror_flag" ||
51654 test ! -s conftest.err
51655 } && test -s conftest.$ac_objext; then
51656 ac_hi=$ac_mid; break
51658 $as_echo "$as_me: failed program was:" >&5
51659 sed 's/^/| /' conftest.$ac_ext >&5
51661 ac_lo=`expr $ac_mid + 1`
51662 if test $ac_lo -le $ac_mid; then
51666 ac_mid=`expr 2 '*' $ac_mid + 1`
51669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51672 $as_echo "$as_me: failed program was:" >&5
51673 sed 's/^/| /' conftest.$ac_ext >&5
51675 cat >conftest.$ac_ext <<_ACEOF
51678 cat confdefs.h >>conftest.$ac_ext
51679 cat >>conftest.$ac_ext <<_ACEOF
51680 /* end confdefs.h. */
51681 $ac_includes_default
51685 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
51692 rm -f conftest.$ac_objext
51693 if { (ac_try="$ac_compile"
51694 case "(($ac_try" in
51695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51696 *) ac_try_echo=$ac_try;;
51698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51699 $as_echo "$ac_try_echo") >&5
51700 (eval "$ac_compile") 2>conftest.er1
51702 grep -v '^ *+' conftest.er1 >conftest.err
51704 cat conftest.err >&5
51705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51706 (exit $ac_status); } && {
51707 test -z "$ac_c_werror_flag" ||
51708 test ! -s conftest.err
51709 } && test -s conftest.$ac_objext; then
51712 cat >conftest.$ac_ext <<_ACEOF
51715 cat confdefs.h >>conftest.$ac_ext
51716 cat >>conftest.$ac_ext <<_ACEOF
51717 /* end confdefs.h. */
51718 $ac_includes_default
51722 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
51729 rm -f conftest.$ac_objext
51730 if { (ac_try="$ac_compile"
51731 case "(($ac_try" in
51732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51733 *) ac_try_echo=$ac_try;;
51735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51736 $as_echo "$ac_try_echo") >&5
51737 (eval "$ac_compile") 2>conftest.er1
51739 grep -v '^ *+' conftest.er1 >conftest.err
51741 cat conftest.err >&5
51742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51743 (exit $ac_status); } && {
51744 test -z "$ac_c_werror_flag" ||
51745 test ! -s conftest.err
51746 } && test -s conftest.$ac_objext; then
51747 ac_lo=$ac_mid; break
51749 $as_echo "$as_me: failed program was:" >&5
51750 sed 's/^/| /' conftest.$ac_ext >&5
51752 ac_hi=`expr '(' $ac_mid ')' - 1`
51753 if test $ac_mid -le $ac_hi; then
51757 ac_mid=`expr 2 '*' $ac_mid`
51760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51763 $as_echo "$as_me: failed program was:" >&5
51764 sed 's/^/| /' conftest.$ac_ext >&5
51769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51773 # Binary search between lo and hi bounds.
51774 while test "x$ac_lo" != "x$ac_hi"; do
51775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51776 cat >conftest.$ac_ext <<_ACEOF
51779 cat confdefs.h >>conftest.$ac_ext
51780 cat >>conftest.$ac_ext <<_ACEOF
51781 /* end confdefs.h. */
51782 $ac_includes_default
51786 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
51793 rm -f conftest.$ac_objext
51794 if { (ac_try="$ac_compile"
51795 case "(($ac_try" in
51796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51797 *) ac_try_echo=$ac_try;;
51799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51800 $as_echo "$ac_try_echo") >&5
51801 (eval "$ac_compile") 2>conftest.er1
51803 grep -v '^ *+' conftest.er1 >conftest.err
51805 cat conftest.err >&5
51806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51807 (exit $ac_status); } && {
51808 test -z "$ac_c_werror_flag" ||
51809 test ! -s conftest.err
51810 } && test -s conftest.$ac_objext; then
51813 $as_echo "$as_me: failed program was:" >&5
51814 sed 's/^/| /' conftest.$ac_ext >&5
51816 ac_lo=`expr '(' $ac_mid ')' + 1`
51819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51822 ?*) ac_cv_sizeof_int=$ac_lo;;
51823 '') if test "$ac_cv_type_int" = yes; then
51824 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51826 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
51827 See \`config.log' for more details." >&5
51828 $as_echo "$as_me: error: cannot compute sizeof (int)
51829 See \`config.log' for more details." >&2;}
51830 { (exit 77); exit 77; }; }; }
51836 cat >conftest.$ac_ext <<_ACEOF
51839 cat confdefs.h >>conftest.$ac_ext
51840 cat >>conftest.$ac_ext <<_ACEOF
51841 /* end confdefs.h. */
51842 $ac_includes_default
51843 static long int longval () { return (long int) (sizeof (int)); }
51844 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
51846 #include <stdlib.h>
51851 FILE *f = fopen ("conftest.val", "w");
51854 if (((long int) (sizeof (int))) < 0)
51856 long int i = longval ();
51857 if (i != ((long int) (sizeof (int))))
51859 fprintf (f, "%ld", i);
51863 unsigned long int i = ulongval ();
51864 if (i != ((long int) (sizeof (int))))
51866 fprintf (f, "%lu", i);
51868 /* Do not output a trailing newline, as this causes \r\n confusion
51869 on some platforms. */
51870 return ferror (f) || fclose (f) != 0;
51876 rm -f conftest$ac_exeext
51877 if { (ac_try="$ac_link"
51878 case "(($ac_try" in
51879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51880 *) ac_try_echo=$ac_try;;
51882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51883 $as_echo "$ac_try_echo") >&5
51884 (eval "$ac_link") 2>&5
51886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51888 { (case "(($ac_try" in
51889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51890 *) ac_try_echo=$ac_try;;
51892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51893 $as_echo "$ac_try_echo") >&5
51894 (eval "$ac_try") 2>&5
51896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51897 (exit $ac_status); }; }; then
51898 ac_cv_sizeof_int=`cat conftest.val`
51900 $as_echo "$as_me: program exited with status $ac_status" >&5
51901 $as_echo "$as_me: failed program was:" >&5
51902 sed 's/^/| /' conftest.$ac_ext >&5
51904 ( exit $ac_status )
51905 if test "$ac_cv_type_int" = yes; then
51906 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51908 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
51909 See \`config.log' for more details." >&5
51910 $as_echo "$as_me: error: cannot compute sizeof (int)
51911 See \`config.log' for more details." >&2;}
51912 { (exit 77); exit 77; }; }; }
51917 rm -rf conftest.dSYM
51918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51922 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
51923 $as_echo "$ac_cv_sizeof_int" >&6; }
51927 cat >>confdefs.h <<_ACEOF
51928 #define SIZEOF_INT $ac_cv_sizeof_int
51932 # The cast to long int works around a bug in the HP C Compiler
51933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51935 # This bug is HP SR number 8606223364.
51936 { $as_echo "$as_me:$LINENO: checking size of long" >&5
51937 $as_echo_n "checking size of long... " >&6; }
51938 if test "${ac_cv_sizeof_long+set}" = set; then
51939 $as_echo_n "(cached) " >&6
51941 if test "$cross_compiling" = yes; then
51942 # Depending upon the size, compute the lo and hi bounds.
51943 cat >conftest.$ac_ext <<_ACEOF
51946 cat confdefs.h >>conftest.$ac_ext
51947 cat >>conftest.$ac_ext <<_ACEOF
51948 /* end confdefs.h. */
51949 $ac_includes_default
51953 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
51960 rm -f conftest.$ac_objext
51961 if { (ac_try="$ac_compile"
51962 case "(($ac_try" in
51963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51964 *) ac_try_echo=$ac_try;;
51966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51967 $as_echo "$ac_try_echo") >&5
51968 (eval "$ac_compile") 2>conftest.er1
51970 grep -v '^ *+' conftest.er1 >conftest.err
51972 cat conftest.err >&5
51973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51974 (exit $ac_status); } && {
51975 test -z "$ac_c_werror_flag" ||
51976 test ! -s conftest.err
51977 } && test -s conftest.$ac_objext; then
51980 cat >conftest.$ac_ext <<_ACEOF
51983 cat confdefs.h >>conftest.$ac_ext
51984 cat >>conftest.$ac_ext <<_ACEOF
51985 /* end confdefs.h. */
51986 $ac_includes_default
51990 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
51997 rm -f conftest.$ac_objext
51998 if { (ac_try="$ac_compile"
51999 case "(($ac_try" in
52000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52001 *) ac_try_echo=$ac_try;;
52003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52004 $as_echo "$ac_try_echo") >&5
52005 (eval "$ac_compile") 2>conftest.er1
52007 grep -v '^ *+' conftest.er1 >conftest.err
52009 cat conftest.err >&5
52010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52011 (exit $ac_status); } && {
52012 test -z "$ac_c_werror_flag" ||
52013 test ! -s conftest.err
52014 } && test -s conftest.$ac_objext; then
52015 ac_hi=$ac_mid; break
52017 $as_echo "$as_me: failed program was:" >&5
52018 sed 's/^/| /' conftest.$ac_ext >&5
52020 ac_lo=`expr $ac_mid + 1`
52021 if test $ac_lo -le $ac_mid; then
52025 ac_mid=`expr 2 '*' $ac_mid + 1`
52028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52031 $as_echo "$as_me: failed program was:" >&5
52032 sed 's/^/| /' conftest.$ac_ext >&5
52034 cat >conftest.$ac_ext <<_ACEOF
52037 cat confdefs.h >>conftest.$ac_ext
52038 cat >>conftest.$ac_ext <<_ACEOF
52039 /* end confdefs.h. */
52040 $ac_includes_default
52044 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
52051 rm -f conftest.$ac_objext
52052 if { (ac_try="$ac_compile"
52053 case "(($ac_try" in
52054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52055 *) ac_try_echo=$ac_try;;
52057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52058 $as_echo "$ac_try_echo") >&5
52059 (eval "$ac_compile") 2>conftest.er1
52061 grep -v '^ *+' conftest.er1 >conftest.err
52063 cat conftest.err >&5
52064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52065 (exit $ac_status); } && {
52066 test -z "$ac_c_werror_flag" ||
52067 test ! -s conftest.err
52068 } && test -s conftest.$ac_objext; then
52071 cat >conftest.$ac_ext <<_ACEOF
52074 cat confdefs.h >>conftest.$ac_ext
52075 cat >>conftest.$ac_ext <<_ACEOF
52076 /* end confdefs.h. */
52077 $ac_includes_default
52081 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
52088 rm -f conftest.$ac_objext
52089 if { (ac_try="$ac_compile"
52090 case "(($ac_try" in
52091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52092 *) ac_try_echo=$ac_try;;
52094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52095 $as_echo "$ac_try_echo") >&5
52096 (eval "$ac_compile") 2>conftest.er1
52098 grep -v '^ *+' conftest.er1 >conftest.err
52100 cat conftest.err >&5
52101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52102 (exit $ac_status); } && {
52103 test -z "$ac_c_werror_flag" ||
52104 test ! -s conftest.err
52105 } && test -s conftest.$ac_objext; then
52106 ac_lo=$ac_mid; break
52108 $as_echo "$as_me: failed program was:" >&5
52109 sed 's/^/| /' conftest.$ac_ext >&5
52111 ac_hi=`expr '(' $ac_mid ')' - 1`
52112 if test $ac_mid -le $ac_hi; then
52116 ac_mid=`expr 2 '*' $ac_mid`
52119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52122 $as_echo "$as_me: failed program was:" >&5
52123 sed 's/^/| /' conftest.$ac_ext >&5
52128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52132 # Binary search between lo and hi bounds.
52133 while test "x$ac_lo" != "x$ac_hi"; do
52134 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52135 cat >conftest.$ac_ext <<_ACEOF
52138 cat confdefs.h >>conftest.$ac_ext
52139 cat >>conftest.$ac_ext <<_ACEOF
52140 /* end confdefs.h. */
52141 $ac_includes_default
52145 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
52152 rm -f conftest.$ac_objext
52153 if { (ac_try="$ac_compile"
52154 case "(($ac_try" in
52155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52156 *) ac_try_echo=$ac_try;;
52158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52159 $as_echo "$ac_try_echo") >&5
52160 (eval "$ac_compile") 2>conftest.er1
52162 grep -v '^ *+' conftest.er1 >conftest.err
52164 cat conftest.err >&5
52165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52166 (exit $ac_status); } && {
52167 test -z "$ac_c_werror_flag" ||
52168 test ! -s conftest.err
52169 } && test -s conftest.$ac_objext; then
52172 $as_echo "$as_me: failed program was:" >&5
52173 sed 's/^/| /' conftest.$ac_ext >&5
52175 ac_lo=`expr '(' $ac_mid ')' + 1`
52178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52181 ?*) ac_cv_sizeof_long=$ac_lo;;
52182 '') if test "$ac_cv_type_long" = yes; then
52183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52185 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
52186 See \`config.log' for more details." >&5
52187 $as_echo "$as_me: error: cannot compute sizeof (long)
52188 See \`config.log' for more details." >&2;}
52189 { (exit 77); exit 77; }; }; }
52191 ac_cv_sizeof_long=0
52195 cat >conftest.$ac_ext <<_ACEOF
52198 cat confdefs.h >>conftest.$ac_ext
52199 cat >>conftest.$ac_ext <<_ACEOF
52200 /* end confdefs.h. */
52201 $ac_includes_default
52202 static long int longval () { return (long int) (sizeof (long)); }
52203 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
52205 #include <stdlib.h>
52210 FILE *f = fopen ("conftest.val", "w");
52213 if (((long int) (sizeof (long))) < 0)
52215 long int i = longval ();
52216 if (i != ((long int) (sizeof (long))))
52218 fprintf (f, "%ld", i);
52222 unsigned long int i = ulongval ();
52223 if (i != ((long int) (sizeof (long))))
52225 fprintf (f, "%lu", i);
52227 /* Do not output a trailing newline, as this causes \r\n confusion
52228 on some platforms. */
52229 return ferror (f) || fclose (f) != 0;
52235 rm -f conftest$ac_exeext
52236 if { (ac_try="$ac_link"
52237 case "(($ac_try" in
52238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52239 *) ac_try_echo=$ac_try;;
52241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52242 $as_echo "$ac_try_echo") >&5
52243 (eval "$ac_link") 2>&5
52245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52247 { (case "(($ac_try" in
52248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52249 *) ac_try_echo=$ac_try;;
52251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52252 $as_echo "$ac_try_echo") >&5
52253 (eval "$ac_try") 2>&5
52255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52256 (exit $ac_status); }; }; then
52257 ac_cv_sizeof_long=`cat conftest.val`
52259 $as_echo "$as_me: program exited with status $ac_status" >&5
52260 $as_echo "$as_me: failed program was:" >&5
52261 sed 's/^/| /' conftest.$ac_ext >&5
52263 ( exit $ac_status )
52264 if test "$ac_cv_type_long" = yes; then
52265 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52267 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
52268 See \`config.log' for more details." >&5
52269 $as_echo "$as_me: error: cannot compute sizeof (long)
52270 See \`config.log' for more details." >&2;}
52271 { (exit 77); exit 77; }; }; }
52273 ac_cv_sizeof_long=0
52276 rm -rf conftest.dSYM
52277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52281 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
52282 $as_echo "$ac_cv_sizeof_long" >&6; }
52286 cat >>confdefs.h <<_ACEOF
52287 #define SIZEOF_LONG $ac_cv_sizeof_long
52291 # The cast to long int works around a bug in the HP C Compiler
52292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52294 # This bug is HP SR number 8606223364.
52295 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
52296 $as_echo_n "checking size of long long... " >&6; }
52297 if test "${ac_cv_sizeof_long_long+set}" = set; then
52298 $as_echo_n "(cached) " >&6
52300 if test "$cross_compiling" = yes; then
52301 # Depending upon the size, compute the lo and hi bounds.
52302 cat >conftest.$ac_ext <<_ACEOF
52305 cat confdefs.h >>conftest.$ac_ext
52306 cat >>conftest.$ac_ext <<_ACEOF
52307 /* end confdefs.h. */
52308 $ac_includes_default
52312 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
52319 rm -f conftest.$ac_objext
52320 if { (ac_try="$ac_compile"
52321 case "(($ac_try" in
52322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52323 *) ac_try_echo=$ac_try;;
52325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52326 $as_echo "$ac_try_echo") >&5
52327 (eval "$ac_compile") 2>conftest.er1
52329 grep -v '^ *+' conftest.er1 >conftest.err
52331 cat conftest.err >&5
52332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52333 (exit $ac_status); } && {
52334 test -z "$ac_c_werror_flag" ||
52335 test ! -s conftest.err
52336 } && test -s conftest.$ac_objext; then
52339 cat >conftest.$ac_ext <<_ACEOF
52342 cat confdefs.h >>conftest.$ac_ext
52343 cat >>conftest.$ac_ext <<_ACEOF
52344 /* end confdefs.h. */
52345 $ac_includes_default
52349 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
52356 rm -f conftest.$ac_objext
52357 if { (ac_try="$ac_compile"
52358 case "(($ac_try" in
52359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52360 *) ac_try_echo=$ac_try;;
52362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52363 $as_echo "$ac_try_echo") >&5
52364 (eval "$ac_compile") 2>conftest.er1
52366 grep -v '^ *+' conftest.er1 >conftest.err
52368 cat conftest.err >&5
52369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52370 (exit $ac_status); } && {
52371 test -z "$ac_c_werror_flag" ||
52372 test ! -s conftest.err
52373 } && test -s conftest.$ac_objext; then
52374 ac_hi=$ac_mid; break
52376 $as_echo "$as_me: failed program was:" >&5
52377 sed 's/^/| /' conftest.$ac_ext >&5
52379 ac_lo=`expr $ac_mid + 1`
52380 if test $ac_lo -le $ac_mid; then
52384 ac_mid=`expr 2 '*' $ac_mid + 1`
52387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52390 $as_echo "$as_me: failed program was:" >&5
52391 sed 's/^/| /' conftest.$ac_ext >&5
52393 cat >conftest.$ac_ext <<_ACEOF
52396 cat confdefs.h >>conftest.$ac_ext
52397 cat >>conftest.$ac_ext <<_ACEOF
52398 /* end confdefs.h. */
52399 $ac_includes_default
52403 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
52410 rm -f conftest.$ac_objext
52411 if { (ac_try="$ac_compile"
52412 case "(($ac_try" in
52413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52414 *) ac_try_echo=$ac_try;;
52416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52417 $as_echo "$ac_try_echo") >&5
52418 (eval "$ac_compile") 2>conftest.er1
52420 grep -v '^ *+' conftest.er1 >conftest.err
52422 cat conftest.err >&5
52423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52424 (exit $ac_status); } && {
52425 test -z "$ac_c_werror_flag" ||
52426 test ! -s conftest.err
52427 } && test -s conftest.$ac_objext; then
52430 cat >conftest.$ac_ext <<_ACEOF
52433 cat confdefs.h >>conftest.$ac_ext
52434 cat >>conftest.$ac_ext <<_ACEOF
52435 /* end confdefs.h. */
52436 $ac_includes_default
52440 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
52447 rm -f conftest.$ac_objext
52448 if { (ac_try="$ac_compile"
52449 case "(($ac_try" in
52450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52451 *) ac_try_echo=$ac_try;;
52453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52454 $as_echo "$ac_try_echo") >&5
52455 (eval "$ac_compile") 2>conftest.er1
52457 grep -v '^ *+' conftest.er1 >conftest.err
52459 cat conftest.err >&5
52460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52461 (exit $ac_status); } && {
52462 test -z "$ac_c_werror_flag" ||
52463 test ! -s conftest.err
52464 } && test -s conftest.$ac_objext; then
52465 ac_lo=$ac_mid; break
52467 $as_echo "$as_me: failed program was:" >&5
52468 sed 's/^/| /' conftest.$ac_ext >&5
52470 ac_hi=`expr '(' $ac_mid ')' - 1`
52471 if test $ac_mid -le $ac_hi; then
52475 ac_mid=`expr 2 '*' $ac_mid`
52478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52481 $as_echo "$as_me: failed program was:" >&5
52482 sed 's/^/| /' conftest.$ac_ext >&5
52487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52491 # Binary search between lo and hi bounds.
52492 while test "x$ac_lo" != "x$ac_hi"; do
52493 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52494 cat >conftest.$ac_ext <<_ACEOF
52497 cat confdefs.h >>conftest.$ac_ext
52498 cat >>conftest.$ac_ext <<_ACEOF
52499 /* end confdefs.h. */
52500 $ac_includes_default
52504 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
52511 rm -f conftest.$ac_objext
52512 if { (ac_try="$ac_compile"
52513 case "(($ac_try" in
52514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52515 *) ac_try_echo=$ac_try;;
52517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52518 $as_echo "$ac_try_echo") >&5
52519 (eval "$ac_compile") 2>conftest.er1
52521 grep -v '^ *+' conftest.er1 >conftest.err
52523 cat conftest.err >&5
52524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52525 (exit $ac_status); } && {
52526 test -z "$ac_c_werror_flag" ||
52527 test ! -s conftest.err
52528 } && test -s conftest.$ac_objext; then
52531 $as_echo "$as_me: failed program was:" >&5
52532 sed 's/^/| /' conftest.$ac_ext >&5
52534 ac_lo=`expr '(' $ac_mid ')' + 1`
52537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52540 ?*) ac_cv_sizeof_long_long=$ac_lo;;
52541 '') if test "$ac_cv_type_long_long" = yes; then
52542 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52544 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52545 See \`config.log' for more details." >&5
52546 $as_echo "$as_me: error: cannot compute sizeof (long long)
52547 See \`config.log' for more details." >&2;}
52548 { (exit 77); exit 77; }; }; }
52550 ac_cv_sizeof_long_long=0
52554 cat >conftest.$ac_ext <<_ACEOF
52557 cat confdefs.h >>conftest.$ac_ext
52558 cat >>conftest.$ac_ext <<_ACEOF
52559 /* end confdefs.h. */
52560 $ac_includes_default
52561 static long int longval () { return (long int) (sizeof (long long)); }
52562 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
52564 #include <stdlib.h>
52569 FILE *f = fopen ("conftest.val", "w");
52572 if (((long int) (sizeof (long long))) < 0)
52574 long int i = longval ();
52575 if (i != ((long int) (sizeof (long long))))
52577 fprintf (f, "%ld", i);
52581 unsigned long int i = ulongval ();
52582 if (i != ((long int) (sizeof (long long))))
52584 fprintf (f, "%lu", i);
52586 /* Do not output a trailing newline, as this causes \r\n confusion
52587 on some platforms. */
52588 return ferror (f) || fclose (f) != 0;
52594 rm -f conftest$ac_exeext
52595 if { (ac_try="$ac_link"
52596 case "(($ac_try" in
52597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52598 *) ac_try_echo=$ac_try;;
52600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52601 $as_echo "$ac_try_echo") >&5
52602 (eval "$ac_link") 2>&5
52604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52606 { (case "(($ac_try" in
52607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52608 *) ac_try_echo=$ac_try;;
52610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52611 $as_echo "$ac_try_echo") >&5
52612 (eval "$ac_try") 2>&5
52614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52615 (exit $ac_status); }; }; then
52616 ac_cv_sizeof_long_long=`cat conftest.val`
52618 $as_echo "$as_me: program exited with status $ac_status" >&5
52619 $as_echo "$as_me: failed program was:" >&5
52620 sed 's/^/| /' conftest.$ac_ext >&5
52622 ( exit $ac_status )
52623 if test "$ac_cv_type_long_long" = yes; then
52624 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52626 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52627 See \`config.log' for more details." >&5
52628 $as_echo "$as_me: error: cannot compute sizeof (long long)
52629 See \`config.log' for more details." >&2;}
52630 { (exit 77); exit 77; }; }; }
52632 ac_cv_sizeof_long_long=0
52635 rm -rf conftest.dSYM
52636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52640 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
52641 $as_echo "$ac_cv_sizeof_long_long" >&6; }
52645 cat >>confdefs.h <<_ACEOF
52646 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
52650 # The cast to long int works around a bug in the HP C Compiler
52651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52653 # This bug is HP SR number 8606223364.
52654 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
52655 $as_echo_n "checking size of intmax_t... " >&6; }
52656 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
52657 $as_echo_n "(cached) " >&6
52659 if test "$cross_compiling" = yes; then
52660 # Depending upon the size, compute the lo and hi bounds.
52661 cat >conftest.$ac_ext <<_ACEOF
52664 cat confdefs.h >>conftest.$ac_ext
52665 cat >>conftest.$ac_ext <<_ACEOF
52666 /* end confdefs.h. */
52667 $ac_includes_default
52671 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
52678 rm -f conftest.$ac_objext
52679 if { (ac_try="$ac_compile"
52680 case "(($ac_try" in
52681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52682 *) ac_try_echo=$ac_try;;
52684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52685 $as_echo "$ac_try_echo") >&5
52686 (eval "$ac_compile") 2>conftest.er1
52688 grep -v '^ *+' conftest.er1 >conftest.err
52690 cat conftest.err >&5
52691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52692 (exit $ac_status); } && {
52693 test -z "$ac_c_werror_flag" ||
52694 test ! -s conftest.err
52695 } && test -s conftest.$ac_objext; then
52698 cat >conftest.$ac_ext <<_ACEOF
52701 cat confdefs.h >>conftest.$ac_ext
52702 cat >>conftest.$ac_ext <<_ACEOF
52703 /* end confdefs.h. */
52704 $ac_includes_default
52708 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
52715 rm -f conftest.$ac_objext
52716 if { (ac_try="$ac_compile"
52717 case "(($ac_try" in
52718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52719 *) ac_try_echo=$ac_try;;
52721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52722 $as_echo "$ac_try_echo") >&5
52723 (eval "$ac_compile") 2>conftest.er1
52725 grep -v '^ *+' conftest.er1 >conftest.err
52727 cat conftest.err >&5
52728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52729 (exit $ac_status); } && {
52730 test -z "$ac_c_werror_flag" ||
52731 test ! -s conftest.err
52732 } && test -s conftest.$ac_objext; then
52733 ac_hi=$ac_mid; break
52735 $as_echo "$as_me: failed program was:" >&5
52736 sed 's/^/| /' conftest.$ac_ext >&5
52738 ac_lo=`expr $ac_mid + 1`
52739 if test $ac_lo -le $ac_mid; then
52743 ac_mid=`expr 2 '*' $ac_mid + 1`
52746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52749 $as_echo "$as_me: failed program was:" >&5
52750 sed 's/^/| /' conftest.$ac_ext >&5
52752 cat >conftest.$ac_ext <<_ACEOF
52755 cat confdefs.h >>conftest.$ac_ext
52756 cat >>conftest.$ac_ext <<_ACEOF
52757 /* end confdefs.h. */
52758 $ac_includes_default
52762 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
52769 rm -f conftest.$ac_objext
52770 if { (ac_try="$ac_compile"
52771 case "(($ac_try" in
52772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52773 *) ac_try_echo=$ac_try;;
52775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52776 $as_echo "$ac_try_echo") >&5
52777 (eval "$ac_compile") 2>conftest.er1
52779 grep -v '^ *+' conftest.er1 >conftest.err
52781 cat conftest.err >&5
52782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52783 (exit $ac_status); } && {
52784 test -z "$ac_c_werror_flag" ||
52785 test ! -s conftest.err
52786 } && test -s conftest.$ac_objext; then
52789 cat >conftest.$ac_ext <<_ACEOF
52792 cat confdefs.h >>conftest.$ac_ext
52793 cat >>conftest.$ac_ext <<_ACEOF
52794 /* end confdefs.h. */
52795 $ac_includes_default
52799 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
52806 rm -f conftest.$ac_objext
52807 if { (ac_try="$ac_compile"
52808 case "(($ac_try" in
52809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52810 *) ac_try_echo=$ac_try;;
52812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52813 $as_echo "$ac_try_echo") >&5
52814 (eval "$ac_compile") 2>conftest.er1
52816 grep -v '^ *+' conftest.er1 >conftest.err
52818 cat conftest.err >&5
52819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52820 (exit $ac_status); } && {
52821 test -z "$ac_c_werror_flag" ||
52822 test ! -s conftest.err
52823 } && test -s conftest.$ac_objext; then
52824 ac_lo=$ac_mid; break
52826 $as_echo "$as_me: failed program was:" >&5
52827 sed 's/^/| /' conftest.$ac_ext >&5
52829 ac_hi=`expr '(' $ac_mid ')' - 1`
52830 if test $ac_mid -le $ac_hi; then
52834 ac_mid=`expr 2 '*' $ac_mid`
52837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52840 $as_echo "$as_me: failed program was:" >&5
52841 sed 's/^/| /' conftest.$ac_ext >&5
52846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52850 # Binary search between lo and hi bounds.
52851 while test "x$ac_lo" != "x$ac_hi"; do
52852 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52853 cat >conftest.$ac_ext <<_ACEOF
52856 cat confdefs.h >>conftest.$ac_ext
52857 cat >>conftest.$ac_ext <<_ACEOF
52858 /* end confdefs.h. */
52859 $ac_includes_default
52863 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
52870 rm -f conftest.$ac_objext
52871 if { (ac_try="$ac_compile"
52872 case "(($ac_try" in
52873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52874 *) ac_try_echo=$ac_try;;
52876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52877 $as_echo "$ac_try_echo") >&5
52878 (eval "$ac_compile") 2>conftest.er1
52880 grep -v '^ *+' conftest.er1 >conftest.err
52882 cat conftest.err >&5
52883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52884 (exit $ac_status); } && {
52885 test -z "$ac_c_werror_flag" ||
52886 test ! -s conftest.err
52887 } && test -s conftest.$ac_objext; then
52890 $as_echo "$as_me: failed program was:" >&5
52891 sed 's/^/| /' conftest.$ac_ext >&5
52893 ac_lo=`expr '(' $ac_mid ')' + 1`
52896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52899 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
52900 '') if test "$ac_cv_type_intmax_t" = yes; then
52901 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52903 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
52904 See \`config.log' for more details." >&5
52905 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
52906 See \`config.log' for more details." >&2;}
52907 { (exit 77); exit 77; }; }; }
52909 ac_cv_sizeof_intmax_t=0
52913 cat >conftest.$ac_ext <<_ACEOF
52916 cat confdefs.h >>conftest.$ac_ext
52917 cat >>conftest.$ac_ext <<_ACEOF
52918 /* end confdefs.h. */
52919 $ac_includes_default
52920 static long int longval () { return (long int) (sizeof (intmax_t)); }
52921 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
52923 #include <stdlib.h>
52928 FILE *f = fopen ("conftest.val", "w");
52931 if (((long int) (sizeof (intmax_t))) < 0)
52933 long int i = longval ();
52934 if (i != ((long int) (sizeof (intmax_t))))
52936 fprintf (f, "%ld", i);
52940 unsigned long int i = ulongval ();
52941 if (i != ((long int) (sizeof (intmax_t))))
52943 fprintf (f, "%lu", i);
52945 /* Do not output a trailing newline, as this causes \r\n confusion
52946 on some platforms. */
52947 return ferror (f) || fclose (f) != 0;
52953 rm -f conftest$ac_exeext
52954 if { (ac_try="$ac_link"
52955 case "(($ac_try" in
52956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52957 *) ac_try_echo=$ac_try;;
52959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52960 $as_echo "$ac_try_echo") >&5
52961 (eval "$ac_link") 2>&5
52963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52965 { (case "(($ac_try" in
52966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52967 *) ac_try_echo=$ac_try;;
52969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52970 $as_echo "$ac_try_echo") >&5
52971 (eval "$ac_try") 2>&5
52973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52974 (exit $ac_status); }; }; then
52975 ac_cv_sizeof_intmax_t=`cat conftest.val`
52977 $as_echo "$as_me: program exited with status $ac_status" >&5
52978 $as_echo "$as_me: failed program was:" >&5
52979 sed 's/^/| /' conftest.$ac_ext >&5
52981 ( exit $ac_status )
52982 if test "$ac_cv_type_intmax_t" = yes; then
52983 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52985 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
52986 See \`config.log' for more details." >&5
52987 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
52988 See \`config.log' for more details." >&2;}
52989 { (exit 77); exit 77; }; }; }
52991 ac_cv_sizeof_intmax_t=0
52994 rm -rf conftest.dSYM
52995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52999 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
53000 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
53004 cat >>confdefs.h <<_ACEOF
53005 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
53009 # The cast to long int works around a bug in the HP C Compiler
53010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53012 # This bug is HP SR number 8606223364.
53013 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
53014 $as_echo_n "checking size of off_t... " >&6; }
53015 if test "${ac_cv_sizeof_off_t+set}" = set; then
53016 $as_echo_n "(cached) " >&6
53018 if test "$cross_compiling" = yes; then
53019 # Depending upon the size, compute the lo and hi bounds.
53020 cat >conftest.$ac_ext <<_ACEOF
53023 cat confdefs.h >>conftest.$ac_ext
53024 cat >>conftest.$ac_ext <<_ACEOF
53025 /* end confdefs.h. */
53026 $ac_includes_default
53030 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
53037 rm -f conftest.$ac_objext
53038 if { (ac_try="$ac_compile"
53039 case "(($ac_try" in
53040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53041 *) ac_try_echo=$ac_try;;
53043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53044 $as_echo "$ac_try_echo") >&5
53045 (eval "$ac_compile") 2>conftest.er1
53047 grep -v '^ *+' conftest.er1 >conftest.err
53049 cat conftest.err >&5
53050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53051 (exit $ac_status); } && {
53052 test -z "$ac_c_werror_flag" ||
53053 test ! -s conftest.err
53054 } && test -s conftest.$ac_objext; then
53057 cat >conftest.$ac_ext <<_ACEOF
53060 cat confdefs.h >>conftest.$ac_ext
53061 cat >>conftest.$ac_ext <<_ACEOF
53062 /* end confdefs.h. */
53063 $ac_includes_default
53067 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
53074 rm -f conftest.$ac_objext
53075 if { (ac_try="$ac_compile"
53076 case "(($ac_try" in
53077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53078 *) ac_try_echo=$ac_try;;
53080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53081 $as_echo "$ac_try_echo") >&5
53082 (eval "$ac_compile") 2>conftest.er1
53084 grep -v '^ *+' conftest.er1 >conftest.err
53086 cat conftest.err >&5
53087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53088 (exit $ac_status); } && {
53089 test -z "$ac_c_werror_flag" ||
53090 test ! -s conftest.err
53091 } && test -s conftest.$ac_objext; then
53092 ac_hi=$ac_mid; break
53094 $as_echo "$as_me: failed program was:" >&5
53095 sed 's/^/| /' conftest.$ac_ext >&5
53097 ac_lo=`expr $ac_mid + 1`
53098 if test $ac_lo -le $ac_mid; then
53102 ac_mid=`expr 2 '*' $ac_mid + 1`
53105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53108 $as_echo "$as_me: failed program was:" >&5
53109 sed 's/^/| /' conftest.$ac_ext >&5
53111 cat >conftest.$ac_ext <<_ACEOF
53114 cat confdefs.h >>conftest.$ac_ext
53115 cat >>conftest.$ac_ext <<_ACEOF
53116 /* end confdefs.h. */
53117 $ac_includes_default
53121 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
53128 rm -f conftest.$ac_objext
53129 if { (ac_try="$ac_compile"
53130 case "(($ac_try" in
53131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53132 *) ac_try_echo=$ac_try;;
53134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53135 $as_echo "$ac_try_echo") >&5
53136 (eval "$ac_compile") 2>conftest.er1
53138 grep -v '^ *+' conftest.er1 >conftest.err
53140 cat conftest.err >&5
53141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53142 (exit $ac_status); } && {
53143 test -z "$ac_c_werror_flag" ||
53144 test ! -s conftest.err
53145 } && test -s conftest.$ac_objext; then
53148 cat >conftest.$ac_ext <<_ACEOF
53151 cat confdefs.h >>conftest.$ac_ext
53152 cat >>conftest.$ac_ext <<_ACEOF
53153 /* end confdefs.h. */
53154 $ac_includes_default
53158 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
53165 rm -f conftest.$ac_objext
53166 if { (ac_try="$ac_compile"
53167 case "(($ac_try" in
53168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53169 *) ac_try_echo=$ac_try;;
53171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53172 $as_echo "$ac_try_echo") >&5
53173 (eval "$ac_compile") 2>conftest.er1
53175 grep -v '^ *+' conftest.er1 >conftest.err
53177 cat conftest.err >&5
53178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53179 (exit $ac_status); } && {
53180 test -z "$ac_c_werror_flag" ||
53181 test ! -s conftest.err
53182 } && test -s conftest.$ac_objext; then
53183 ac_lo=$ac_mid; break
53185 $as_echo "$as_me: failed program was:" >&5
53186 sed 's/^/| /' conftest.$ac_ext >&5
53188 ac_hi=`expr '(' $ac_mid ')' - 1`
53189 if test $ac_mid -le $ac_hi; then
53193 ac_mid=`expr 2 '*' $ac_mid`
53196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53199 $as_echo "$as_me: failed program was:" >&5
53200 sed 's/^/| /' conftest.$ac_ext >&5
53205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53209 # Binary search between lo and hi bounds.
53210 while test "x$ac_lo" != "x$ac_hi"; do
53211 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53212 cat >conftest.$ac_ext <<_ACEOF
53215 cat confdefs.h >>conftest.$ac_ext
53216 cat >>conftest.$ac_ext <<_ACEOF
53217 /* end confdefs.h. */
53218 $ac_includes_default
53222 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
53229 rm -f conftest.$ac_objext
53230 if { (ac_try="$ac_compile"
53231 case "(($ac_try" in
53232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53233 *) ac_try_echo=$ac_try;;
53235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53236 $as_echo "$ac_try_echo") >&5
53237 (eval "$ac_compile") 2>conftest.er1
53239 grep -v '^ *+' conftest.er1 >conftest.err
53241 cat conftest.err >&5
53242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53243 (exit $ac_status); } && {
53244 test -z "$ac_c_werror_flag" ||
53245 test ! -s conftest.err
53246 } && test -s conftest.$ac_objext; then
53249 $as_echo "$as_me: failed program was:" >&5
53250 sed 's/^/| /' conftest.$ac_ext >&5
53252 ac_lo=`expr '(' $ac_mid ')' + 1`
53255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53258 ?*) ac_cv_sizeof_off_t=$ac_lo;;
53259 '') if test "$ac_cv_type_off_t" = yes; then
53260 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53262 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
53263 See \`config.log' for more details." >&5
53264 $as_echo "$as_me: error: cannot compute sizeof (off_t)
53265 See \`config.log' for more details." >&2;}
53266 { (exit 77); exit 77; }; }; }
53268 ac_cv_sizeof_off_t=0
53272 cat >conftest.$ac_ext <<_ACEOF
53275 cat confdefs.h >>conftest.$ac_ext
53276 cat >>conftest.$ac_ext <<_ACEOF
53277 /* end confdefs.h. */
53278 $ac_includes_default
53279 static long int longval () { return (long int) (sizeof (off_t)); }
53280 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
53282 #include <stdlib.h>
53287 FILE *f = fopen ("conftest.val", "w");
53290 if (((long int) (sizeof (off_t))) < 0)
53292 long int i = longval ();
53293 if (i != ((long int) (sizeof (off_t))))
53295 fprintf (f, "%ld", i);
53299 unsigned long int i = ulongval ();
53300 if (i != ((long int) (sizeof (off_t))))
53302 fprintf (f, "%lu", i);
53304 /* Do not output a trailing newline, as this causes \r\n confusion
53305 on some platforms. */
53306 return ferror (f) || fclose (f) != 0;
53312 rm -f conftest$ac_exeext
53313 if { (ac_try="$ac_link"
53314 case "(($ac_try" in
53315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53316 *) ac_try_echo=$ac_try;;
53318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53319 $as_echo "$ac_try_echo") >&5
53320 (eval "$ac_link") 2>&5
53322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53324 { (case "(($ac_try" in
53325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53326 *) ac_try_echo=$ac_try;;
53328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53329 $as_echo "$ac_try_echo") >&5
53330 (eval "$ac_try") 2>&5
53332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53333 (exit $ac_status); }; }; then
53334 ac_cv_sizeof_off_t=`cat conftest.val`
53336 $as_echo "$as_me: program exited with status $ac_status" >&5
53337 $as_echo "$as_me: failed program was:" >&5
53338 sed 's/^/| /' conftest.$ac_ext >&5
53340 ( exit $ac_status )
53341 if test "$ac_cv_type_off_t" = yes; then
53342 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53344 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
53345 See \`config.log' for more details." >&5
53346 $as_echo "$as_me: error: cannot compute sizeof (off_t)
53347 See \`config.log' for more details." >&2;}
53348 { (exit 77); exit 77; }; }; }
53350 ac_cv_sizeof_off_t=0
53353 rm -rf conftest.dSYM
53354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53358 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
53359 $as_echo "$ac_cv_sizeof_off_t" >&6; }
53363 cat >>confdefs.h <<_ACEOF
53364 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
53368 # The cast to long int works around a bug in the HP C Compiler
53369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53371 # This bug is HP SR number 8606223364.
53372 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
53373 $as_echo_n "checking size of size_t... " >&6; }
53374 if test "${ac_cv_sizeof_size_t+set}" = set; then
53375 $as_echo_n "(cached) " >&6
53377 if test "$cross_compiling" = yes; then
53378 # Depending upon the size, compute the lo and hi bounds.
53379 cat >conftest.$ac_ext <<_ACEOF
53382 cat confdefs.h >>conftest.$ac_ext
53383 cat >>conftest.$ac_ext <<_ACEOF
53384 /* end confdefs.h. */
53385 $ac_includes_default
53389 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
53396 rm -f conftest.$ac_objext
53397 if { (ac_try="$ac_compile"
53398 case "(($ac_try" in
53399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53400 *) ac_try_echo=$ac_try;;
53402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53403 $as_echo "$ac_try_echo") >&5
53404 (eval "$ac_compile") 2>conftest.er1
53406 grep -v '^ *+' conftest.er1 >conftest.err
53408 cat conftest.err >&5
53409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53410 (exit $ac_status); } && {
53411 test -z "$ac_c_werror_flag" ||
53412 test ! -s conftest.err
53413 } && test -s conftest.$ac_objext; then
53416 cat >conftest.$ac_ext <<_ACEOF
53419 cat confdefs.h >>conftest.$ac_ext
53420 cat >>conftest.$ac_ext <<_ACEOF
53421 /* end confdefs.h. */
53422 $ac_includes_default
53426 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
53433 rm -f conftest.$ac_objext
53434 if { (ac_try="$ac_compile"
53435 case "(($ac_try" in
53436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53437 *) ac_try_echo=$ac_try;;
53439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53440 $as_echo "$ac_try_echo") >&5
53441 (eval "$ac_compile") 2>conftest.er1
53443 grep -v '^ *+' conftest.er1 >conftest.err
53445 cat conftest.err >&5
53446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53447 (exit $ac_status); } && {
53448 test -z "$ac_c_werror_flag" ||
53449 test ! -s conftest.err
53450 } && test -s conftest.$ac_objext; then
53451 ac_hi=$ac_mid; break
53453 $as_echo "$as_me: failed program was:" >&5
53454 sed 's/^/| /' conftest.$ac_ext >&5
53456 ac_lo=`expr $ac_mid + 1`
53457 if test $ac_lo -le $ac_mid; then
53461 ac_mid=`expr 2 '*' $ac_mid + 1`
53464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53467 $as_echo "$as_me: failed program was:" >&5
53468 sed 's/^/| /' conftest.$ac_ext >&5
53470 cat >conftest.$ac_ext <<_ACEOF
53473 cat confdefs.h >>conftest.$ac_ext
53474 cat >>conftest.$ac_ext <<_ACEOF
53475 /* end confdefs.h. */
53476 $ac_includes_default
53480 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
53487 rm -f conftest.$ac_objext
53488 if { (ac_try="$ac_compile"
53489 case "(($ac_try" in
53490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53491 *) ac_try_echo=$ac_try;;
53493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53494 $as_echo "$ac_try_echo") >&5
53495 (eval "$ac_compile") 2>conftest.er1
53497 grep -v '^ *+' conftest.er1 >conftest.err
53499 cat conftest.err >&5
53500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53501 (exit $ac_status); } && {
53502 test -z "$ac_c_werror_flag" ||
53503 test ! -s conftest.err
53504 } && test -s conftest.$ac_objext; then
53507 cat >conftest.$ac_ext <<_ACEOF
53510 cat confdefs.h >>conftest.$ac_ext
53511 cat >>conftest.$ac_ext <<_ACEOF
53512 /* end confdefs.h. */
53513 $ac_includes_default
53517 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
53524 rm -f conftest.$ac_objext
53525 if { (ac_try="$ac_compile"
53526 case "(($ac_try" in
53527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53528 *) ac_try_echo=$ac_try;;
53530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53531 $as_echo "$ac_try_echo") >&5
53532 (eval "$ac_compile") 2>conftest.er1
53534 grep -v '^ *+' conftest.er1 >conftest.err
53536 cat conftest.err >&5
53537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53538 (exit $ac_status); } && {
53539 test -z "$ac_c_werror_flag" ||
53540 test ! -s conftest.err
53541 } && test -s conftest.$ac_objext; then
53542 ac_lo=$ac_mid; break
53544 $as_echo "$as_me: failed program was:" >&5
53545 sed 's/^/| /' conftest.$ac_ext >&5
53547 ac_hi=`expr '(' $ac_mid ')' - 1`
53548 if test $ac_mid -le $ac_hi; then
53552 ac_mid=`expr 2 '*' $ac_mid`
53555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53558 $as_echo "$as_me: failed program was:" >&5
53559 sed 's/^/| /' conftest.$ac_ext >&5
53564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53568 # Binary search between lo and hi bounds.
53569 while test "x$ac_lo" != "x$ac_hi"; do
53570 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53571 cat >conftest.$ac_ext <<_ACEOF
53574 cat confdefs.h >>conftest.$ac_ext
53575 cat >>conftest.$ac_ext <<_ACEOF
53576 /* end confdefs.h. */
53577 $ac_includes_default
53581 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
53588 rm -f conftest.$ac_objext
53589 if { (ac_try="$ac_compile"
53590 case "(($ac_try" in
53591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53592 *) ac_try_echo=$ac_try;;
53594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53595 $as_echo "$ac_try_echo") >&5
53596 (eval "$ac_compile") 2>conftest.er1
53598 grep -v '^ *+' conftest.er1 >conftest.err
53600 cat conftest.err >&5
53601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53602 (exit $ac_status); } && {
53603 test -z "$ac_c_werror_flag" ||
53604 test ! -s conftest.err
53605 } && test -s conftest.$ac_objext; then
53608 $as_echo "$as_me: failed program was:" >&5
53609 sed 's/^/| /' conftest.$ac_ext >&5
53611 ac_lo=`expr '(' $ac_mid ')' + 1`
53614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53617 ?*) ac_cv_sizeof_size_t=$ac_lo;;
53618 '') if test "$ac_cv_type_size_t" = yes; then
53619 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53621 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53622 See \`config.log' for more details." >&5
53623 $as_echo "$as_me: error: cannot compute sizeof (size_t)
53624 See \`config.log' for more details." >&2;}
53625 { (exit 77); exit 77; }; }; }
53627 ac_cv_sizeof_size_t=0
53631 cat >conftest.$ac_ext <<_ACEOF
53634 cat confdefs.h >>conftest.$ac_ext
53635 cat >>conftest.$ac_ext <<_ACEOF
53636 /* end confdefs.h. */
53637 $ac_includes_default
53638 static long int longval () { return (long int) (sizeof (size_t)); }
53639 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
53641 #include <stdlib.h>
53646 FILE *f = fopen ("conftest.val", "w");
53649 if (((long int) (sizeof (size_t))) < 0)
53651 long int i = longval ();
53652 if (i != ((long int) (sizeof (size_t))))
53654 fprintf (f, "%ld", i);
53658 unsigned long int i = ulongval ();
53659 if (i != ((long int) (sizeof (size_t))))
53661 fprintf (f, "%lu", i);
53663 /* Do not output a trailing newline, as this causes \r\n confusion
53664 on some platforms. */
53665 return ferror (f) || fclose (f) != 0;
53671 rm -f conftest$ac_exeext
53672 if { (ac_try="$ac_link"
53673 case "(($ac_try" in
53674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53675 *) ac_try_echo=$ac_try;;
53677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53678 $as_echo "$ac_try_echo") >&5
53679 (eval "$ac_link") 2>&5
53681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53683 { (case "(($ac_try" in
53684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53685 *) ac_try_echo=$ac_try;;
53687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53688 $as_echo "$ac_try_echo") >&5
53689 (eval "$ac_try") 2>&5
53691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53692 (exit $ac_status); }; }; then
53693 ac_cv_sizeof_size_t=`cat conftest.val`
53695 $as_echo "$as_me: program exited with status $ac_status" >&5
53696 $as_echo "$as_me: failed program was:" >&5
53697 sed 's/^/| /' conftest.$ac_ext >&5
53699 ( exit $ac_status )
53700 if test "$ac_cv_type_size_t" = yes; then
53701 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53703 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53704 See \`config.log' for more details." >&5
53705 $as_echo "$as_me: error: cannot compute sizeof (size_t)
53706 See \`config.log' for more details." >&2;}
53707 { (exit 77); exit 77; }; }; }
53709 ac_cv_sizeof_size_t=0
53712 rm -rf conftest.dSYM
53713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53717 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
53718 $as_echo "$ac_cv_sizeof_size_t" >&6; }
53722 cat >>confdefs.h <<_ACEOF
53723 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
53727 # The cast to long int works around a bug in the HP C Compiler
53728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53730 # This bug is HP SR number 8606223364.
53731 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
53732 $as_echo_n "checking size of ssize_t... " >&6; }
53733 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
53734 $as_echo_n "(cached) " >&6
53736 if test "$cross_compiling" = yes; then
53737 # Depending upon the size, compute the lo and hi bounds.
53738 cat >conftest.$ac_ext <<_ACEOF
53741 cat confdefs.h >>conftest.$ac_ext
53742 cat >>conftest.$ac_ext <<_ACEOF
53743 /* end confdefs.h. */
53744 $ac_includes_default
53748 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
53755 rm -f conftest.$ac_objext
53756 if { (ac_try="$ac_compile"
53757 case "(($ac_try" in
53758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53759 *) ac_try_echo=$ac_try;;
53761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53762 $as_echo "$ac_try_echo") >&5
53763 (eval "$ac_compile") 2>conftest.er1
53765 grep -v '^ *+' conftest.er1 >conftest.err
53767 cat conftest.err >&5
53768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53769 (exit $ac_status); } && {
53770 test -z "$ac_c_werror_flag" ||
53771 test ! -s conftest.err
53772 } && test -s conftest.$ac_objext; then
53775 cat >conftest.$ac_ext <<_ACEOF
53778 cat confdefs.h >>conftest.$ac_ext
53779 cat >>conftest.$ac_ext <<_ACEOF
53780 /* end confdefs.h. */
53781 $ac_includes_default
53785 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
53792 rm -f conftest.$ac_objext
53793 if { (ac_try="$ac_compile"
53794 case "(($ac_try" in
53795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53796 *) ac_try_echo=$ac_try;;
53798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53799 $as_echo "$ac_try_echo") >&5
53800 (eval "$ac_compile") 2>conftest.er1
53802 grep -v '^ *+' conftest.er1 >conftest.err
53804 cat conftest.err >&5
53805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53806 (exit $ac_status); } && {
53807 test -z "$ac_c_werror_flag" ||
53808 test ! -s conftest.err
53809 } && test -s conftest.$ac_objext; then
53810 ac_hi=$ac_mid; break
53812 $as_echo "$as_me: failed program was:" >&5
53813 sed 's/^/| /' conftest.$ac_ext >&5
53815 ac_lo=`expr $ac_mid + 1`
53816 if test $ac_lo -le $ac_mid; then
53820 ac_mid=`expr 2 '*' $ac_mid + 1`
53823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53826 $as_echo "$as_me: failed program was:" >&5
53827 sed 's/^/| /' conftest.$ac_ext >&5
53829 cat >conftest.$ac_ext <<_ACEOF
53832 cat confdefs.h >>conftest.$ac_ext
53833 cat >>conftest.$ac_ext <<_ACEOF
53834 /* end confdefs.h. */
53835 $ac_includes_default
53839 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
53846 rm -f conftest.$ac_objext
53847 if { (ac_try="$ac_compile"
53848 case "(($ac_try" in
53849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53850 *) ac_try_echo=$ac_try;;
53852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53853 $as_echo "$ac_try_echo") >&5
53854 (eval "$ac_compile") 2>conftest.er1
53856 grep -v '^ *+' conftest.er1 >conftest.err
53858 cat conftest.err >&5
53859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53860 (exit $ac_status); } && {
53861 test -z "$ac_c_werror_flag" ||
53862 test ! -s conftest.err
53863 } && test -s conftest.$ac_objext; then
53866 cat >conftest.$ac_ext <<_ACEOF
53869 cat confdefs.h >>conftest.$ac_ext
53870 cat >>conftest.$ac_ext <<_ACEOF
53871 /* end confdefs.h. */
53872 $ac_includes_default
53876 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
53883 rm -f conftest.$ac_objext
53884 if { (ac_try="$ac_compile"
53885 case "(($ac_try" in
53886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53887 *) ac_try_echo=$ac_try;;
53889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53890 $as_echo "$ac_try_echo") >&5
53891 (eval "$ac_compile") 2>conftest.er1
53893 grep -v '^ *+' conftest.er1 >conftest.err
53895 cat conftest.err >&5
53896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53897 (exit $ac_status); } && {
53898 test -z "$ac_c_werror_flag" ||
53899 test ! -s conftest.err
53900 } && test -s conftest.$ac_objext; then
53901 ac_lo=$ac_mid; break
53903 $as_echo "$as_me: failed program was:" >&5
53904 sed 's/^/| /' conftest.$ac_ext >&5
53906 ac_hi=`expr '(' $ac_mid ')' - 1`
53907 if test $ac_mid -le $ac_hi; then
53911 ac_mid=`expr 2 '*' $ac_mid`
53914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53917 $as_echo "$as_me: failed program was:" >&5
53918 sed 's/^/| /' conftest.$ac_ext >&5
53923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53927 # Binary search between lo and hi bounds.
53928 while test "x$ac_lo" != "x$ac_hi"; do
53929 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53930 cat >conftest.$ac_ext <<_ACEOF
53933 cat confdefs.h >>conftest.$ac_ext
53934 cat >>conftest.$ac_ext <<_ACEOF
53935 /* end confdefs.h. */
53936 $ac_includes_default
53940 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
53947 rm -f conftest.$ac_objext
53948 if { (ac_try="$ac_compile"
53949 case "(($ac_try" in
53950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53951 *) ac_try_echo=$ac_try;;
53953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53954 $as_echo "$ac_try_echo") >&5
53955 (eval "$ac_compile") 2>conftest.er1
53957 grep -v '^ *+' conftest.er1 >conftest.err
53959 cat conftest.err >&5
53960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53961 (exit $ac_status); } && {
53962 test -z "$ac_c_werror_flag" ||
53963 test ! -s conftest.err
53964 } && test -s conftest.$ac_objext; then
53967 $as_echo "$as_me: failed program was:" >&5
53968 sed 's/^/| /' conftest.$ac_ext >&5
53970 ac_lo=`expr '(' $ac_mid ')' + 1`
53973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53976 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
53977 '') if test "$ac_cv_type_ssize_t" = yes; then
53978 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53980 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
53981 See \`config.log' for more details." >&5
53982 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
53983 See \`config.log' for more details." >&2;}
53984 { (exit 77); exit 77; }; }; }
53986 ac_cv_sizeof_ssize_t=0
53990 cat >conftest.$ac_ext <<_ACEOF
53993 cat confdefs.h >>conftest.$ac_ext
53994 cat >>conftest.$ac_ext <<_ACEOF
53995 /* end confdefs.h. */
53996 $ac_includes_default
53997 static long int longval () { return (long int) (sizeof (ssize_t)); }
53998 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
54000 #include <stdlib.h>
54005 FILE *f = fopen ("conftest.val", "w");
54008 if (((long int) (sizeof (ssize_t))) < 0)
54010 long int i = longval ();
54011 if (i != ((long int) (sizeof (ssize_t))))
54013 fprintf (f, "%ld", i);
54017 unsigned long int i = ulongval ();
54018 if (i != ((long int) (sizeof (ssize_t))))
54020 fprintf (f, "%lu", i);
54022 /* Do not output a trailing newline, as this causes \r\n confusion
54023 on some platforms. */
54024 return ferror (f) || fclose (f) != 0;
54030 rm -f conftest$ac_exeext
54031 if { (ac_try="$ac_link"
54032 case "(($ac_try" in
54033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54034 *) ac_try_echo=$ac_try;;
54036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54037 $as_echo "$ac_try_echo") >&5
54038 (eval "$ac_link") 2>&5
54040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54042 { (case "(($ac_try" in
54043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54044 *) ac_try_echo=$ac_try;;
54046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54047 $as_echo "$ac_try_echo") >&5
54048 (eval "$ac_try") 2>&5
54050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54051 (exit $ac_status); }; }; then
54052 ac_cv_sizeof_ssize_t=`cat conftest.val`
54054 $as_echo "$as_me: program exited with status $ac_status" >&5
54055 $as_echo "$as_me: failed program was:" >&5
54056 sed 's/^/| /' conftest.$ac_ext >&5
54058 ( exit $ac_status )
54059 if test "$ac_cv_type_ssize_t" = yes; then
54060 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54062 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
54063 See \`config.log' for more details." >&5
54064 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
54065 See \`config.log' for more details." >&2;}
54066 { (exit 77); exit 77; }; }; }
54068 ac_cv_sizeof_ssize_t=0
54071 rm -rf conftest.dSYM
54072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54076 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
54077 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
54081 cat >>confdefs.h <<_ACEOF
54082 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
54086 # The cast to long int works around a bug in the HP C Compiler
54087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54089 # This bug is HP SR number 8606223364.
54090 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
54091 $as_echo_n "checking size of time_t... " >&6; }
54092 if test "${ac_cv_sizeof_time_t+set}" = set; then
54093 $as_echo_n "(cached) " >&6
54095 if test "$cross_compiling" = yes; then
54096 # Depending upon the size, compute the lo and hi bounds.
54097 cat >conftest.$ac_ext <<_ACEOF
54100 cat confdefs.h >>conftest.$ac_ext
54101 cat >>conftest.$ac_ext <<_ACEOF
54102 /* end confdefs.h. */
54103 $ac_includes_default
54107 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
54114 rm -f conftest.$ac_objext
54115 if { (ac_try="$ac_compile"
54116 case "(($ac_try" in
54117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54118 *) ac_try_echo=$ac_try;;
54120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54121 $as_echo "$ac_try_echo") >&5
54122 (eval "$ac_compile") 2>conftest.er1
54124 grep -v '^ *+' conftest.er1 >conftest.err
54126 cat conftest.err >&5
54127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54128 (exit $ac_status); } && {
54129 test -z "$ac_c_werror_flag" ||
54130 test ! -s conftest.err
54131 } && test -s conftest.$ac_objext; then
54134 cat >conftest.$ac_ext <<_ACEOF
54137 cat confdefs.h >>conftest.$ac_ext
54138 cat >>conftest.$ac_ext <<_ACEOF
54139 /* end confdefs.h. */
54140 $ac_includes_default
54144 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
54151 rm -f conftest.$ac_objext
54152 if { (ac_try="$ac_compile"
54153 case "(($ac_try" in
54154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54155 *) ac_try_echo=$ac_try;;
54157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54158 $as_echo "$ac_try_echo") >&5
54159 (eval "$ac_compile") 2>conftest.er1
54161 grep -v '^ *+' conftest.er1 >conftest.err
54163 cat conftest.err >&5
54164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54165 (exit $ac_status); } && {
54166 test -z "$ac_c_werror_flag" ||
54167 test ! -s conftest.err
54168 } && test -s conftest.$ac_objext; then
54169 ac_hi=$ac_mid; break
54171 $as_echo "$as_me: failed program was:" >&5
54172 sed 's/^/| /' conftest.$ac_ext >&5
54174 ac_lo=`expr $ac_mid + 1`
54175 if test $ac_lo -le $ac_mid; then
54179 ac_mid=`expr 2 '*' $ac_mid + 1`
54182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54185 $as_echo "$as_me: failed program was:" >&5
54186 sed 's/^/| /' conftest.$ac_ext >&5
54188 cat >conftest.$ac_ext <<_ACEOF
54191 cat confdefs.h >>conftest.$ac_ext
54192 cat >>conftest.$ac_ext <<_ACEOF
54193 /* end confdefs.h. */
54194 $ac_includes_default
54198 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
54205 rm -f conftest.$ac_objext
54206 if { (ac_try="$ac_compile"
54207 case "(($ac_try" in
54208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54209 *) ac_try_echo=$ac_try;;
54211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54212 $as_echo "$ac_try_echo") >&5
54213 (eval "$ac_compile") 2>conftest.er1
54215 grep -v '^ *+' conftest.er1 >conftest.err
54217 cat conftest.err >&5
54218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54219 (exit $ac_status); } && {
54220 test -z "$ac_c_werror_flag" ||
54221 test ! -s conftest.err
54222 } && test -s conftest.$ac_objext; then
54225 cat >conftest.$ac_ext <<_ACEOF
54228 cat confdefs.h >>conftest.$ac_ext
54229 cat >>conftest.$ac_ext <<_ACEOF
54230 /* end confdefs.h. */
54231 $ac_includes_default
54235 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
54242 rm -f conftest.$ac_objext
54243 if { (ac_try="$ac_compile"
54244 case "(($ac_try" in
54245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54246 *) ac_try_echo=$ac_try;;
54248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54249 $as_echo "$ac_try_echo") >&5
54250 (eval "$ac_compile") 2>conftest.er1
54252 grep -v '^ *+' conftest.er1 >conftest.err
54254 cat conftest.err >&5
54255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54256 (exit $ac_status); } && {
54257 test -z "$ac_c_werror_flag" ||
54258 test ! -s conftest.err
54259 } && test -s conftest.$ac_objext; then
54260 ac_lo=$ac_mid; break
54262 $as_echo "$as_me: failed program was:" >&5
54263 sed 's/^/| /' conftest.$ac_ext >&5
54265 ac_hi=`expr '(' $ac_mid ')' - 1`
54266 if test $ac_mid -le $ac_hi; then
54270 ac_mid=`expr 2 '*' $ac_mid`
54273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54276 $as_echo "$as_me: failed program was:" >&5
54277 sed 's/^/| /' conftest.$ac_ext >&5
54282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54286 # Binary search between lo and hi bounds.
54287 while test "x$ac_lo" != "x$ac_hi"; do
54288 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54289 cat >conftest.$ac_ext <<_ACEOF
54292 cat confdefs.h >>conftest.$ac_ext
54293 cat >>conftest.$ac_ext <<_ACEOF
54294 /* end confdefs.h. */
54295 $ac_includes_default
54299 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
54306 rm -f conftest.$ac_objext
54307 if { (ac_try="$ac_compile"
54308 case "(($ac_try" in
54309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54310 *) ac_try_echo=$ac_try;;
54312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54313 $as_echo "$ac_try_echo") >&5
54314 (eval "$ac_compile") 2>conftest.er1
54316 grep -v '^ *+' conftest.er1 >conftest.err
54318 cat conftest.err >&5
54319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54320 (exit $ac_status); } && {
54321 test -z "$ac_c_werror_flag" ||
54322 test ! -s conftest.err
54323 } && test -s conftest.$ac_objext; then
54326 $as_echo "$as_me: failed program was:" >&5
54327 sed 's/^/| /' conftest.$ac_ext >&5
54329 ac_lo=`expr '(' $ac_mid ')' + 1`
54332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54335 ?*) ac_cv_sizeof_time_t=$ac_lo;;
54336 '') if test "$ac_cv_type_time_t" = yes; then
54337 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54339 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54340 See \`config.log' for more details." >&5
54341 $as_echo "$as_me: error: cannot compute sizeof (time_t)
54342 See \`config.log' for more details." >&2;}
54343 { (exit 77); exit 77; }; }; }
54345 ac_cv_sizeof_time_t=0
54349 cat >conftest.$ac_ext <<_ACEOF
54352 cat confdefs.h >>conftest.$ac_ext
54353 cat >>conftest.$ac_ext <<_ACEOF
54354 /* end confdefs.h. */
54355 $ac_includes_default
54356 static long int longval () { return (long int) (sizeof (time_t)); }
54357 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
54359 #include <stdlib.h>
54364 FILE *f = fopen ("conftest.val", "w");
54367 if (((long int) (sizeof (time_t))) < 0)
54369 long int i = longval ();
54370 if (i != ((long int) (sizeof (time_t))))
54372 fprintf (f, "%ld", i);
54376 unsigned long int i = ulongval ();
54377 if (i != ((long int) (sizeof (time_t))))
54379 fprintf (f, "%lu", i);
54381 /* Do not output a trailing newline, as this causes \r\n confusion
54382 on some platforms. */
54383 return ferror (f) || fclose (f) != 0;
54389 rm -f conftest$ac_exeext
54390 if { (ac_try="$ac_link"
54391 case "(($ac_try" in
54392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54393 *) ac_try_echo=$ac_try;;
54395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54396 $as_echo "$ac_try_echo") >&5
54397 (eval "$ac_link") 2>&5
54399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54401 { (case "(($ac_try" in
54402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54403 *) ac_try_echo=$ac_try;;
54405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54406 $as_echo "$ac_try_echo") >&5
54407 (eval "$ac_try") 2>&5
54409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54410 (exit $ac_status); }; }; then
54411 ac_cv_sizeof_time_t=`cat conftest.val`
54413 $as_echo "$as_me: program exited with status $ac_status" >&5
54414 $as_echo "$as_me: failed program was:" >&5
54415 sed 's/^/| /' conftest.$ac_ext >&5
54417 ( exit $ac_status )
54418 if test "$ac_cv_type_time_t" = yes; then
54419 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54421 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54422 See \`config.log' for more details." >&5
54423 $as_echo "$as_me: error: cannot compute sizeof (time_t)
54424 See \`config.log' for more details." >&2;}
54425 { (exit 77); exit 77; }; }; }
54427 ac_cv_sizeof_time_t=0
54430 rm -rf conftest.dSYM
54431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54435 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
54436 $as_echo "$ac_cv_sizeof_time_t" >&6; }
54440 cat >>confdefs.h <<_ACEOF
54441 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
54445 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
54446 $as_echo_n "checking for off_t... " >&6; }
54447 if test "${ac_cv_type_off_t+set}" = set; then
54448 $as_echo_n "(cached) " >&6
54450 ac_cv_type_off_t=no
54451 cat >conftest.$ac_ext <<_ACEOF
54454 cat confdefs.h >>conftest.$ac_ext
54455 cat >>conftest.$ac_ext <<_ACEOF
54456 /* end confdefs.h. */
54457 $ac_includes_default
54461 if (sizeof (off_t))
54467 rm -f conftest.$ac_objext
54468 if { (ac_try="$ac_compile"
54469 case "(($ac_try" in
54470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54471 *) ac_try_echo=$ac_try;;
54473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54474 $as_echo "$ac_try_echo") >&5
54475 (eval "$ac_compile") 2>conftest.er1
54477 grep -v '^ *+' conftest.er1 >conftest.err
54479 cat conftest.err >&5
54480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54481 (exit $ac_status); } && {
54482 test -z "$ac_c_werror_flag" ||
54483 test ! -s conftest.err
54484 } && test -s conftest.$ac_objext; then
54485 cat >conftest.$ac_ext <<_ACEOF
54488 cat confdefs.h >>conftest.$ac_ext
54489 cat >>conftest.$ac_ext <<_ACEOF
54490 /* end confdefs.h. */
54491 $ac_includes_default
54495 if (sizeof ((off_t)))
54501 rm -f conftest.$ac_objext
54502 if { (ac_try="$ac_compile"
54503 case "(($ac_try" in
54504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54505 *) ac_try_echo=$ac_try;;
54507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54508 $as_echo "$ac_try_echo") >&5
54509 (eval "$ac_compile") 2>conftest.er1
54511 grep -v '^ *+' conftest.er1 >conftest.err
54513 cat conftest.err >&5
54514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54515 (exit $ac_status); } && {
54516 test -z "$ac_c_werror_flag" ||
54517 test ! -s conftest.err
54518 } && test -s conftest.$ac_objext; then
54521 $as_echo "$as_me: failed program was:" >&5
54522 sed 's/^/| /' conftest.$ac_ext >&5
54524 ac_cv_type_off_t=yes
54527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54529 $as_echo "$as_me: failed program was:" >&5
54530 sed 's/^/| /' conftest.$ac_ext >&5
54535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54537 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
54538 $as_echo "$ac_cv_type_off_t" >&6; }
54539 if test "x$ac_cv_type_off_t" = x""yes; then
54543 cat >>confdefs.h <<_ACEOF
54544 #define off_t long int
54549 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
54550 $as_echo_n "checking for pid_t... " >&6; }
54551 if test "${ac_cv_type_pid_t+set}" = set; then
54552 $as_echo_n "(cached) " >&6
54554 ac_cv_type_pid_t=no
54555 cat >conftest.$ac_ext <<_ACEOF
54558 cat confdefs.h >>conftest.$ac_ext
54559 cat >>conftest.$ac_ext <<_ACEOF
54560 /* end confdefs.h. */
54561 $ac_includes_default
54565 if (sizeof (pid_t))
54571 rm -f conftest.$ac_objext
54572 if { (ac_try="$ac_compile"
54573 case "(($ac_try" in
54574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54575 *) ac_try_echo=$ac_try;;
54577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54578 $as_echo "$ac_try_echo") >&5
54579 (eval "$ac_compile") 2>conftest.er1
54581 grep -v '^ *+' conftest.er1 >conftest.err
54583 cat conftest.err >&5
54584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54585 (exit $ac_status); } && {
54586 test -z "$ac_c_werror_flag" ||
54587 test ! -s conftest.err
54588 } && test -s conftest.$ac_objext; then
54589 cat >conftest.$ac_ext <<_ACEOF
54592 cat confdefs.h >>conftest.$ac_ext
54593 cat >>conftest.$ac_ext <<_ACEOF
54594 /* end confdefs.h. */
54595 $ac_includes_default
54599 if (sizeof ((pid_t)))
54605 rm -f conftest.$ac_objext
54606 if { (ac_try="$ac_compile"
54607 case "(($ac_try" in
54608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54609 *) ac_try_echo=$ac_try;;
54611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54612 $as_echo "$ac_try_echo") >&5
54613 (eval "$ac_compile") 2>conftest.er1
54615 grep -v '^ *+' conftest.er1 >conftest.err
54617 cat conftest.err >&5
54618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54619 (exit $ac_status); } && {
54620 test -z "$ac_c_werror_flag" ||
54621 test ! -s conftest.err
54622 } && test -s conftest.$ac_objext; then
54625 $as_echo "$as_me: failed program was:" >&5
54626 sed 's/^/| /' conftest.$ac_ext >&5
54628 ac_cv_type_pid_t=yes
54631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54633 $as_echo "$as_me: failed program was:" >&5
54634 sed 's/^/| /' conftest.$ac_ext >&5
54639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54641 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
54642 $as_echo "$ac_cv_type_pid_t" >&6; }
54643 if test "x$ac_cv_type_pid_t" = x""yes; then
54647 cat >>confdefs.h <<_ACEOF
54653 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
54654 $as_echo_n "checking for size_t... " >&6; }
54655 if test "${ac_cv_type_size_t+set}" = set; then
54656 $as_echo_n "(cached) " >&6
54658 ac_cv_type_size_t=no
54659 cat >conftest.$ac_ext <<_ACEOF
54662 cat confdefs.h >>conftest.$ac_ext
54663 cat >>conftest.$ac_ext <<_ACEOF
54664 /* end confdefs.h. */
54665 $ac_includes_default
54669 if (sizeof (size_t))
54675 rm -f conftest.$ac_objext
54676 if { (ac_try="$ac_compile"
54677 case "(($ac_try" in
54678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54679 *) ac_try_echo=$ac_try;;
54681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54682 $as_echo "$ac_try_echo") >&5
54683 (eval "$ac_compile") 2>conftest.er1
54685 grep -v '^ *+' conftest.er1 >conftest.err
54687 cat conftest.err >&5
54688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54689 (exit $ac_status); } && {
54690 test -z "$ac_c_werror_flag" ||
54691 test ! -s conftest.err
54692 } && test -s conftest.$ac_objext; then
54693 cat >conftest.$ac_ext <<_ACEOF
54696 cat confdefs.h >>conftest.$ac_ext
54697 cat >>conftest.$ac_ext <<_ACEOF
54698 /* end confdefs.h. */
54699 $ac_includes_default
54703 if (sizeof ((size_t)))
54709 rm -f conftest.$ac_objext
54710 if { (ac_try="$ac_compile"
54711 case "(($ac_try" in
54712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54713 *) ac_try_echo=$ac_try;;
54715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54716 $as_echo "$ac_try_echo") >&5
54717 (eval "$ac_compile") 2>conftest.er1
54719 grep -v '^ *+' conftest.er1 >conftest.err
54721 cat conftest.err >&5
54722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54723 (exit $ac_status); } && {
54724 test -z "$ac_c_werror_flag" ||
54725 test ! -s conftest.err
54726 } && test -s conftest.$ac_objext; then
54729 $as_echo "$as_me: failed program was:" >&5
54730 sed 's/^/| /' conftest.$ac_ext >&5
54732 ac_cv_type_size_t=yes
54735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54737 $as_echo "$as_me: failed program was:" >&5
54738 sed 's/^/| /' conftest.$ac_ext >&5
54743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54745 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
54746 $as_echo "$ac_cv_type_size_t" >&6; }
54747 if test "x$ac_cv_type_size_t" = x""yes; then
54751 cat >>confdefs.h <<_ACEOF
54752 #define size_t unsigned int
54757 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
54758 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
54759 if test "${ac_cv_type_uid_t+set}" = set; then
54760 $as_echo_n "(cached) " >&6
54762 cat >conftest.$ac_ext <<_ACEOF
54765 cat confdefs.h >>conftest.$ac_ext
54766 cat >>conftest.$ac_ext <<_ACEOF
54767 /* end confdefs.h. */
54768 #include <sys/types.h>
54771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54772 $EGREP "uid_t" >/dev/null 2>&1; then
54773 ac_cv_type_uid_t=yes
54775 ac_cv_type_uid_t=no
54780 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
54781 $as_echo "$ac_cv_type_uid_t" >&6; }
54782 if test $ac_cv_type_uid_t = no; then
54784 cat >>confdefs.h <<\_ACEOF
54789 cat >>confdefs.h <<\_ACEOF
54795 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
54796 $as_echo_n "checking return type of signal handlers... " >&6; }
54797 if test "${ac_cv_type_signal+set}" = set; then
54798 $as_echo_n "(cached) " >&6
54800 cat >conftest.$ac_ext <<_ACEOF
54803 cat confdefs.h >>conftest.$ac_ext
54804 cat >>conftest.$ac_ext <<_ACEOF
54805 /* end confdefs.h. */
54806 #include <sys/types.h>
54807 #include <signal.h>
54812 return *(signal (0, 0)) (0) == 1;
54817 rm -f conftest.$ac_objext
54818 if { (ac_try="$ac_compile"
54819 case "(($ac_try" in
54820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54821 *) ac_try_echo=$ac_try;;
54823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54824 $as_echo "$ac_try_echo") >&5
54825 (eval "$ac_compile") 2>conftest.er1
54827 grep -v '^ *+' conftest.er1 >conftest.err
54829 cat conftest.err >&5
54830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54831 (exit $ac_status); } && {
54832 test -z "$ac_c_werror_flag" ||
54833 test ! -s conftest.err
54834 } && test -s conftest.$ac_objext; then
54835 ac_cv_type_signal=int
54837 $as_echo "$as_me: failed program was:" >&5
54838 sed 's/^/| /' conftest.$ac_ext >&5
54840 ac_cv_type_signal=void
54843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54845 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
54846 $as_echo "$ac_cv_type_signal" >&6; }
54848 cat >>confdefs.h <<_ACEOF
54849 #define RETSIGTYPE $ac_cv_type_signal
54853 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
54854 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
54855 if test "${ac_cv_struct_tm+set}" = set; then
54856 $as_echo_n "(cached) " >&6
54858 cat >conftest.$ac_ext <<_ACEOF
54861 cat confdefs.h >>conftest.$ac_ext
54862 cat >>conftest.$ac_ext <<_ACEOF
54863 /* end confdefs.h. */
54864 #include <sys/types.h>
54871 int *p = &tm.tm_sec;
54877 rm -f conftest.$ac_objext
54878 if { (ac_try="$ac_compile"
54879 case "(($ac_try" in
54880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54881 *) ac_try_echo=$ac_try;;
54883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54884 $as_echo "$ac_try_echo") >&5
54885 (eval "$ac_compile") 2>conftest.er1
54887 grep -v '^ *+' conftest.er1 >conftest.err
54889 cat conftest.err >&5
54890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54891 (exit $ac_status); } && {
54892 test -z "$ac_c_werror_flag" ||
54893 test ! -s conftest.err
54894 } && test -s conftest.$ac_objext; then
54895 ac_cv_struct_tm=time.h
54897 $as_echo "$as_me: failed program was:" >&5
54898 sed 's/^/| /' conftest.$ac_ext >&5
54900 ac_cv_struct_tm=sys/time.h
54903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54905 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
54906 $as_echo "$ac_cv_struct_tm" >&6; }
54907 if test $ac_cv_struct_tm = sys/time.h; then
54909 cat >>confdefs.h <<\_ACEOF
54910 #define TM_IN_SYS_TIME 1
54916 ## lifted from config/gnulib/socklen.m4
54917 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
54918 $as_echo_n "checking for socklen_t equivalent... " >&6; }
54919 if test "${gl_cv_socklen_t_equiv+set}" = set; then
54920 $as_echo_n "(cached) " >&6
54922 # Systems have either "struct sockaddr *" or
54923 # "void *" as the second argument to getpeername
54924 gl_cv_socklen_t_equiv=
54925 for arg2 in "struct sockaddr" void; do
54926 for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
54927 cat >conftest.$ac_ext <<_ACEOF
54930 cat confdefs.h >>conftest.$ac_ext
54931 cat >>conftest.$ac_ext <<_ACEOF
54932 /* end confdefs.h. */
54933 #include <sys/types.h>
54934 #include <sys/socket.h>
54936 int getpeername (int, $arg2 *, $t *);
54941 getpeername (0, 0, &len);
54946 rm -f conftest.$ac_objext
54947 if { (ac_try="$ac_compile"
54948 case "(($ac_try" in
54949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54950 *) ac_try_echo=$ac_try;;
54952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54953 $as_echo "$ac_try_echo") >&5
54954 (eval "$ac_compile") 2>conftest.er1
54956 grep -v '^ *+' conftest.er1 >conftest.err
54958 cat conftest.err >&5
54959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54960 (exit $ac_status); } && {
54961 test -z "$ac_c_werror_flag" ||
54962 test ! -s conftest.err
54963 } && test -s conftest.$ac_objext; then
54964 gl_cv_socklen_t_equiv="$t"
54966 $as_echo "$as_me: failed program was:" >&5
54967 sed 's/^/| /' conftest.$ac_ext >&5
54972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54973 test "$gl_cv_socklen_t_equiv" != "" && break
54975 test "$gl_cv_socklen_t_equiv" != "" && break
54980 ## end lifting from config/gnulib/socklen.m4
54981 # fallback if the check fails
54982 if test "$gl_cv_socklen_t_equiv" = ""; then
54983 gl_cv_socklen_t_equiv=socklen_t
54985 { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
54986 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
54989 cat >>confdefs.h <<_ACEOF
54990 #define socklen_t_equiv $gl_cv_socklen_t_equiv
54996 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
54997 $as_echo_n "checking for sa_family_t... " >&6; }
54998 if test "${ac_cv_type_sa_family_t+set}" = set; then
54999 $as_echo_n "(cached) " >&6
55001 ac_cv_type_sa_family_t=no
55002 cat >conftest.$ac_ext <<_ACEOF
55005 cat confdefs.h >>conftest.$ac_ext
55006 cat >>conftest.$ac_ext <<_ACEOF
55007 /* end confdefs.h. */
55009 #ifdef HAVE_SYS_TYPES_H
55010 #include <sys/types.h>
55012 #ifdef STDC_HEADERS
55013 #include <stdlib.h>
55014 #include <stddef.h>
55016 #include <sys/socket.h>
55023 if (sizeof (sa_family_t))
55029 rm -f conftest.$ac_objext
55030 if { (ac_try="$ac_compile"
55031 case "(($ac_try" in
55032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55033 *) ac_try_echo=$ac_try;;
55035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55036 $as_echo "$ac_try_echo") >&5
55037 (eval "$ac_compile") 2>conftest.er1
55039 grep -v '^ *+' conftest.er1 >conftest.err
55041 cat conftest.err >&5
55042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55043 (exit $ac_status); } && {
55044 test -z "$ac_c_werror_flag" ||
55045 test ! -s conftest.err
55046 } && test -s conftest.$ac_objext; then
55047 cat >conftest.$ac_ext <<_ACEOF
55050 cat confdefs.h >>conftest.$ac_ext
55051 cat >>conftest.$ac_ext <<_ACEOF
55052 /* end confdefs.h. */
55054 #ifdef HAVE_SYS_TYPES_H
55055 #include <sys/types.h>
55057 #ifdef STDC_HEADERS
55058 #include <stdlib.h>
55059 #include <stddef.h>
55061 #include <sys/socket.h>
55068 if (sizeof ((sa_family_t)))
55074 rm -f conftest.$ac_objext
55075 if { (ac_try="$ac_compile"
55076 case "(($ac_try" in
55077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55078 *) ac_try_echo=$ac_try;;
55080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55081 $as_echo "$ac_try_echo") >&5
55082 (eval "$ac_compile") 2>conftest.er1
55084 grep -v '^ *+' conftest.er1 >conftest.err
55086 cat conftest.err >&5
55087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55088 (exit $ac_status); } && {
55089 test -z "$ac_c_werror_flag" ||
55090 test ! -s conftest.err
55091 } && test -s conftest.$ac_objext; then
55094 $as_echo "$as_me: failed program was:" >&5
55095 sed 's/^/| /' conftest.$ac_ext >&5
55097 ac_cv_type_sa_family_t=yes
55100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55102 $as_echo "$as_me: failed program was:" >&5
55103 sed 's/^/| /' conftest.$ac_ext >&5
55108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55110 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
55111 $as_echo "$ac_cv_type_sa_family_t" >&6; }
55112 if test "x$ac_cv_type_sa_family_t" = x""yes; then
55117 cat >>confdefs.h <<\_ACEOF
55118 #define sa_family_t unsigned short
55127 { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
55128 $as_echo_n "checking for in_port_t... " >&6; }
55129 if test "${ac_cv_type_in_port_t+set}" = set; then
55130 $as_echo_n "(cached) " >&6
55132 ac_cv_type_in_port_t=no
55133 cat >conftest.$ac_ext <<_ACEOF
55136 cat confdefs.h >>conftest.$ac_ext
55137 cat >>conftest.$ac_ext <<_ACEOF
55138 /* end confdefs.h. */
55140 #ifdef HAVE_SYS_TYPES_H
55141 #include <sys/types.h>
55143 #ifdef STDC_HEADERS
55144 #include <stdlib.h>
55145 #include <stddef.h>
55147 #include <netinet/in.h>
55154 if (sizeof (in_port_t))
55160 rm -f conftest.$ac_objext
55161 if { (ac_try="$ac_compile"
55162 case "(($ac_try" in
55163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55164 *) ac_try_echo=$ac_try;;
55166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55167 $as_echo "$ac_try_echo") >&5
55168 (eval "$ac_compile") 2>conftest.er1
55170 grep -v '^ *+' conftest.er1 >conftest.err
55172 cat conftest.err >&5
55173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55174 (exit $ac_status); } && {
55175 test -z "$ac_c_werror_flag" ||
55176 test ! -s conftest.err
55177 } && test -s conftest.$ac_objext; then
55178 cat >conftest.$ac_ext <<_ACEOF
55181 cat confdefs.h >>conftest.$ac_ext
55182 cat >>conftest.$ac_ext <<_ACEOF
55183 /* end confdefs.h. */
55185 #ifdef HAVE_SYS_TYPES_H
55186 #include <sys/types.h>
55188 #ifdef STDC_HEADERS
55189 #include <stdlib.h>
55190 #include <stddef.h>
55192 #include <netinet/in.h>
55199 if (sizeof ((in_port_t)))
55205 rm -f conftest.$ac_objext
55206 if { (ac_try="$ac_compile"
55207 case "(($ac_try" in
55208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55209 *) ac_try_echo=$ac_try;;
55211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55212 $as_echo "$ac_try_echo") >&5
55213 (eval "$ac_compile") 2>conftest.er1
55215 grep -v '^ *+' conftest.er1 >conftest.err
55217 cat conftest.err >&5
55218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55219 (exit $ac_status); } && {
55220 test -z "$ac_c_werror_flag" ||
55221 test ! -s conftest.err
55222 } && test -s conftest.$ac_objext; then
55225 $as_echo "$as_me: failed program was:" >&5
55226 sed 's/^/| /' conftest.$ac_ext >&5
55228 ac_cv_type_in_port_t=yes
55231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55233 $as_echo "$as_me: failed program was:" >&5
55234 sed 's/^/| /' conftest.$ac_ext >&5
55239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55241 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
55242 $as_echo "$ac_cv_type_in_port_t" >&6; }
55243 if test "x$ac_cv_type_in_port_t" = x""yes; then
55248 cat >>confdefs.h <<\_ACEOF
55249 #define in_port_t unsigned short
55260 for ac_header in sys/wait.h wait.h
55262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55265 $as_echo_n "checking for $ac_header... " >&6; }
55266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55267 $as_echo_n "(cached) " >&6
55269 ac_res=`eval 'as_val=${'$as_ac_Header'}
55270 $as_echo "$as_val"'`
55271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55272 $as_echo "$ac_res" >&6; }
55274 # Is the header compilable?
55275 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55276 $as_echo_n "checking $ac_header usability... " >&6; }
55277 cat >conftest.$ac_ext <<_ACEOF
55280 cat confdefs.h >>conftest.$ac_ext
55281 cat >>conftest.$ac_ext <<_ACEOF
55282 /* end confdefs.h. */
55283 $ac_includes_default
55284 #include <$ac_header>
55286 rm -f conftest.$ac_objext
55287 if { (ac_try="$ac_compile"
55288 case "(($ac_try" in
55289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55290 *) ac_try_echo=$ac_try;;
55292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55293 $as_echo "$ac_try_echo") >&5
55294 (eval "$ac_compile") 2>conftest.er1
55296 grep -v '^ *+' conftest.er1 >conftest.err
55298 cat conftest.err >&5
55299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55300 (exit $ac_status); } && {
55301 test -z "$ac_c_werror_flag" ||
55302 test ! -s conftest.err
55303 } && test -s conftest.$ac_objext; then
55304 ac_header_compiler=yes
55306 $as_echo "$as_me: failed program was:" >&5
55307 sed 's/^/| /' conftest.$ac_ext >&5
55309 ac_header_compiler=no
55312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55314 $as_echo "$ac_header_compiler" >&6; }
55316 # Is the header present?
55317 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55318 $as_echo_n "checking $ac_header presence... " >&6; }
55319 cat >conftest.$ac_ext <<_ACEOF
55322 cat confdefs.h >>conftest.$ac_ext
55323 cat >>conftest.$ac_ext <<_ACEOF
55324 /* end confdefs.h. */
55325 #include <$ac_header>
55327 if { (ac_try="$ac_cpp conftest.$ac_ext"
55328 case "(($ac_try" in
55329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55330 *) ac_try_echo=$ac_try;;
55332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55333 $as_echo "$ac_try_echo") >&5
55334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55336 grep -v '^ *+' conftest.er1 >conftest.err
55338 cat conftest.err >&5
55339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55340 (exit $ac_status); } >/dev/null && {
55341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55342 test ! -s conftest.err
55344 ac_header_preproc=yes
55346 $as_echo "$as_me: failed program was:" >&5
55347 sed 's/^/| /' conftest.$ac_ext >&5
55349 ac_header_preproc=no
55352 rm -f conftest.err conftest.$ac_ext
55353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55354 $as_echo "$ac_header_preproc" >&6; }
55356 # So? What about this header?
55357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55360 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55363 ac_header_preproc=yes
55366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55367 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55369 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55371 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55373 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55377 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55381 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55382 $as_echo_n "checking for $ac_header... " >&6; }
55383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55384 $as_echo_n "(cached) " >&6
55386 eval "$as_ac_Header=\$ac_header_preproc"
55388 ac_res=`eval 'as_val=${'$as_ac_Header'}
55389 $as_echo "$as_val"'`
55390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55391 $as_echo "$ac_res" >&6; }
55394 as_val=`eval 'as_val=${'$as_ac_Header'}
55395 $as_echo "$as_val"'`
55396 if test "x$as_val" = x""yes; then
55397 cat >>confdefs.h <<_ACEOF
55398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55405 { $as_echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
55406 $as_echo_n "checking whether wait uses union wait... " >&6; }
55407 if test "${cf_cv_arg_union_wait+set}" = set; then
55408 $as_echo_n "(cached) " >&6
55411 cat >conftest.$ac_ext <<_ACEOF
55414 cat confdefs.h >>conftest.$ac_ext
55415 cat >>conftest.$ac_ext <<_ACEOF
55416 /* end confdefs.h. */
55418 #include <sys/types.h>
55420 #if HAVE_SYS_WAIT_H
55421 # include <sys/wait.h>
55429 pid_t wait(union wait *);
55436 union wait x; int i;
55437 wait(&x); i = WIFEXITED(x)
55443 rm -f conftest.$ac_objext
55444 if { (ac_try="$ac_compile"
55445 case "(($ac_try" in
55446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55447 *) ac_try_echo=$ac_try;;
55449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55450 $as_echo "$ac_try_echo") >&5
55451 (eval "$ac_compile") 2>conftest.er1
55453 grep -v '^ *+' conftest.er1 >conftest.err
55455 cat conftest.err >&5
55456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55457 (exit $ac_status); } && {
55458 test -z "$ac_c_werror_flag" ||
55459 test ! -s conftest.err
55460 } && test -s conftest.$ac_objext; then
55461 cf_cv_arg_union_wait=yes
55463 $as_echo "$as_me: failed program was:" >&5
55464 sed 's/^/| /' conftest.$ac_ext >&5
55466 cf_cv_arg_union_wait=no
55469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55471 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
55472 $as_echo "$cf_cv_arg_union_wait" >&6; }
55473 if test $cf_cv_arg_union_wait = yes; then
55475 cat >>confdefs.h <<\_ACEOF
55476 #define WAIT_USES_UNION 1
55485 for ac_header in sys/wait.h wait.h
55487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55490 $as_echo_n "checking for $ac_header... " >&6; }
55491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55492 $as_echo_n "(cached) " >&6
55494 ac_res=`eval 'as_val=${'$as_ac_Header'}
55495 $as_echo "$as_val"'`
55496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55497 $as_echo "$ac_res" >&6; }
55499 # Is the header compilable?
55500 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55501 $as_echo_n "checking $ac_header usability... " >&6; }
55502 cat >conftest.$ac_ext <<_ACEOF
55505 cat confdefs.h >>conftest.$ac_ext
55506 cat >>conftest.$ac_ext <<_ACEOF
55507 /* end confdefs.h. */
55508 $ac_includes_default
55509 #include <$ac_header>
55511 rm -f conftest.$ac_objext
55512 if { (ac_try="$ac_compile"
55513 case "(($ac_try" in
55514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55515 *) ac_try_echo=$ac_try;;
55517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55518 $as_echo "$ac_try_echo") >&5
55519 (eval "$ac_compile") 2>conftest.er1
55521 grep -v '^ *+' conftest.er1 >conftest.err
55523 cat conftest.err >&5
55524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55525 (exit $ac_status); } && {
55526 test -z "$ac_c_werror_flag" ||
55527 test ! -s conftest.err
55528 } && test -s conftest.$ac_objext; then
55529 ac_header_compiler=yes
55531 $as_echo "$as_me: failed program was:" >&5
55532 sed 's/^/| /' conftest.$ac_ext >&5
55534 ac_header_compiler=no
55537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55538 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55539 $as_echo "$ac_header_compiler" >&6; }
55541 # Is the header present?
55542 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55543 $as_echo_n "checking $ac_header presence... " >&6; }
55544 cat >conftest.$ac_ext <<_ACEOF
55547 cat confdefs.h >>conftest.$ac_ext
55548 cat >>conftest.$ac_ext <<_ACEOF
55549 /* end confdefs.h. */
55550 #include <$ac_header>
55552 if { (ac_try="$ac_cpp conftest.$ac_ext"
55553 case "(($ac_try" in
55554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55555 *) ac_try_echo=$ac_try;;
55557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55558 $as_echo "$ac_try_echo") >&5
55559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55561 grep -v '^ *+' conftest.er1 >conftest.err
55563 cat conftest.err >&5
55564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55565 (exit $ac_status); } >/dev/null && {
55566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55567 test ! -s conftest.err
55569 ac_header_preproc=yes
55571 $as_echo "$as_me: failed program was:" >&5
55572 sed 's/^/| /' conftest.$ac_ext >&5
55574 ac_header_preproc=no
55577 rm -f conftest.err conftest.$ac_ext
55578 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55579 $as_echo "$ac_header_preproc" >&6; }
55581 # So? What about this header?
55582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55585 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55587 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55588 ac_header_preproc=yes
55591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55592 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55594 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55596 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55598 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55602 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55607 $as_echo_n "checking for $ac_header... " >&6; }
55608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55609 $as_echo_n "(cached) " >&6
55611 eval "$as_ac_Header=\$ac_header_preproc"
55613 ac_res=`eval 'as_val=${'$as_ac_Header'}
55614 $as_echo "$as_val"'`
55615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55616 $as_echo "$ac_res" >&6; }
55619 as_val=`eval 'as_val=${'$as_ac_Header'}
55620 $as_echo "$as_val"'`
55621 if test "x$as_val" = x""yes; then
55622 cat >>confdefs.h <<_ACEOF
55623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55630 { $as_echo "$as_me:$LINENO: checking whether wait uses int" >&5
55631 $as_echo_n "checking whether wait uses int... " >&6; }
55632 if test "${cf_cv_arg_int+set}" = set; then
55633 $as_echo_n "(cached) " >&6
55636 cat >conftest.$ac_ext <<_ACEOF
55639 cat confdefs.h >>conftest.$ac_ext
55640 cat >>conftest.$ac_ext <<_ACEOF
55641 /* end confdefs.h. */
55643 #include <sys/types.h>
55645 #if HAVE_SYS_WAIT_H
55646 # include <sys/wait.h>
55662 wait(&x); i = WIFEXITED(x)
55668 rm -f conftest.$ac_objext
55669 if { (ac_try="$ac_compile"
55670 case "(($ac_try" in
55671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55672 *) ac_try_echo=$ac_try;;
55674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55675 $as_echo "$ac_try_echo") >&5
55676 (eval "$ac_compile") 2>conftest.er1
55678 grep -v '^ *+' conftest.er1 >conftest.err
55680 cat conftest.err >&5
55681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55682 (exit $ac_status); } && {
55683 test -z "$ac_c_werror_flag" ||
55684 test ! -s conftest.err
55685 } && test -s conftest.$ac_objext; then
55688 $as_echo "$as_me: failed program was:" >&5
55689 sed 's/^/| /' conftest.$ac_ext >&5
55694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55696 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
55697 $as_echo "$cf_cv_arg_int" >&6; }
55698 if test $cf_cv_arg_int = yes; then
55700 cat >>confdefs.h <<\_ACEOF
55701 #define WAIT_USES_INT 1
55710 # cur_colr is on some HP's
55712 { $as_echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
55713 $as_echo_n "checking for main in -lcur_colr... " >&6; }
55714 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
55715 $as_echo_n "(cached) " >&6
55717 ac_check_lib_save_LIBS=$LIBS
55718 LIBS="-lcur_colr $LIBS"
55719 cat >conftest.$ac_ext <<_ACEOF
55722 cat confdefs.h >>conftest.$ac_ext
55723 cat >>conftest.$ac_ext <<_ACEOF
55724 /* end confdefs.h. */
55735 rm -f conftest.$ac_objext conftest$ac_exeext
55736 if { (ac_try="$ac_link"
55737 case "(($ac_try" in
55738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55739 *) ac_try_echo=$ac_try;;
55741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55742 $as_echo "$ac_try_echo") >&5
55743 (eval "$ac_link") 2>conftest.er1
55745 grep -v '^ *+' conftest.er1 >conftest.err
55747 cat conftest.err >&5
55748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55749 (exit $ac_status); } && {
55750 test -z "$ac_c_werror_flag" ||
55751 test ! -s conftest.err
55752 } && test -s conftest$ac_exeext && {
55753 test "$cross_compiling" = yes ||
55754 $as_test_x conftest$ac_exeext
55756 ac_cv_lib_cur_colr_main=yes
55758 $as_echo "$as_me: failed program was:" >&5
55759 sed 's/^/| /' conftest.$ac_ext >&5
55761 ac_cv_lib_cur_colr_main=no
55764 rm -rf conftest.dSYM
55765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55766 conftest$ac_exeext conftest.$ac_ext
55767 LIBS=$ac_check_lib_save_LIBS
55769 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
55770 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
55771 if test "x$ac_cv_lib_cur_colr_main" = x""yes; then
55772 cat >>confdefs.h <<_ACEOF
55773 #define HAVE_LIBCUR_COLR 1
55776 LIBS="-lcur_colr $LIBS"
55781 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
55782 $as_echo_n "checking for main in -lintl... " >&6; }
55783 if test "${ac_cv_lib_intl_main+set}" = set; then
55784 $as_echo_n "(cached) " >&6
55786 ac_check_lib_save_LIBS=$LIBS
55787 LIBS="-lintl $LIBS"
55788 cat >conftest.$ac_ext <<_ACEOF
55791 cat confdefs.h >>conftest.$ac_ext
55792 cat >>conftest.$ac_ext <<_ACEOF
55793 /* end confdefs.h. */
55804 rm -f conftest.$ac_objext conftest$ac_exeext
55805 if { (ac_try="$ac_link"
55806 case "(($ac_try" in
55807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55808 *) ac_try_echo=$ac_try;;
55810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55811 $as_echo "$ac_try_echo") >&5
55812 (eval "$ac_link") 2>conftest.er1
55814 grep -v '^ *+' conftest.er1 >conftest.err
55816 cat conftest.err >&5
55817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55818 (exit $ac_status); } && {
55819 test -z "$ac_c_werror_flag" ||
55820 test ! -s conftest.err
55821 } && test -s conftest$ac_exeext && {
55822 test "$cross_compiling" = yes ||
55823 $as_test_x conftest$ac_exeext
55825 ac_cv_lib_intl_main=yes
55827 $as_echo "$as_me: failed program was:" >&5
55828 sed 's/^/| /' conftest.$ac_ext >&5
55830 ac_cv_lib_intl_main=no
55833 rm -rf conftest.dSYM
55834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55835 conftest$ac_exeext conftest.$ac_ext
55836 LIBS=$ac_check_lib_save_LIBS
55838 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
55839 $as_echo "$ac_cv_lib_intl_main" >&6; }
55840 if test "x$ac_cv_lib_intl_main" = x""yes; then
55841 cat >>confdefs.h <<_ACEOF
55842 #define HAVE_LIBINTL 1
55845 LIBS="-lintl $LIBS"
55850 # Make sure we don't use -lnsl and -lsun on Irix systems.
55854 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
55855 $as_echo_n "checking for main in -lsocket... " >&6; }
55856 if test "${ac_cv_lib_socket_main+set}" = set; then
55857 $as_echo_n "(cached) " >&6
55859 ac_check_lib_save_LIBS=$LIBS
55860 LIBS="-lsocket $LIBS"
55861 cat >conftest.$ac_ext <<_ACEOF
55864 cat confdefs.h >>conftest.$ac_ext
55865 cat >>conftest.$ac_ext <<_ACEOF
55866 /* end confdefs.h. */
55877 rm -f conftest.$ac_objext conftest$ac_exeext
55878 if { (ac_try="$ac_link"
55879 case "(($ac_try" in
55880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55881 *) ac_try_echo=$ac_try;;
55883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55884 $as_echo "$ac_try_echo") >&5
55885 (eval "$ac_link") 2>conftest.er1
55887 grep -v '^ *+' conftest.er1 >conftest.err
55889 cat conftest.err >&5
55890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55891 (exit $ac_status); } && {
55892 test -z "$ac_c_werror_flag" ||
55893 test ! -s conftest.err
55894 } && test -s conftest$ac_exeext && {
55895 test "$cross_compiling" = yes ||
55896 $as_test_x conftest$ac_exeext
55898 ac_cv_lib_socket_main=yes
55900 $as_echo "$as_me: failed program was:" >&5
55901 sed 's/^/| /' conftest.$ac_ext >&5
55903 ac_cv_lib_socket_main=no
55906 rm -rf conftest.dSYM
55907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55908 conftest$ac_exeext conftest.$ac_ext
55909 LIBS=$ac_check_lib_save_LIBS
55911 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
55912 $as_echo "$ac_cv_lib_socket_main" >&6; }
55913 if test "x$ac_cv_lib_socket_main" = x""yes; then
55914 cat >>confdefs.h <<_ACEOF
55915 #define HAVE_LIBSOCKET 1
55918 LIBS="-lsocket $LIBS"
55925 { $as_echo "$as_me:$LINENO: checking for main in -lresolv" >&5
55926 $as_echo_n "checking for main in -lresolv... " >&6; }
55927 if test "${ac_cv_lib_resolv_main+set}" = set; then
55928 $as_echo_n "(cached) " >&6
55930 ac_check_lib_save_LIBS=$LIBS
55931 LIBS="-lresolv $LIBS"
55932 cat >conftest.$ac_ext <<_ACEOF
55935 cat confdefs.h >>conftest.$ac_ext
55936 cat >>conftest.$ac_ext <<_ACEOF
55937 /* end confdefs.h. */
55948 rm -f conftest.$ac_objext conftest$ac_exeext
55949 if { (ac_try="$ac_link"
55950 case "(($ac_try" in
55951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55952 *) ac_try_echo=$ac_try;;
55954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55955 $as_echo "$ac_try_echo") >&5
55956 (eval "$ac_link") 2>conftest.er1
55958 grep -v '^ *+' conftest.er1 >conftest.err
55960 cat conftest.err >&5
55961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55962 (exit $ac_status); } && {
55963 test -z "$ac_c_werror_flag" ||
55964 test ! -s conftest.err
55965 } && test -s conftest$ac_exeext && {
55966 test "$cross_compiling" = yes ||
55967 $as_test_x conftest$ac_exeext
55969 ac_cv_lib_resolv_main=yes
55971 $as_echo "$as_me: failed program was:" >&5
55972 sed 's/^/| /' conftest.$ac_ext >&5
55974 ac_cv_lib_resolv_main=no
55977 rm -rf conftest.dSYM
55978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55979 conftest$ac_exeext conftest.$ac_ext
55980 LIBS=$ac_check_lib_save_LIBS
55982 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
55983 $as_echo "$ac_cv_lib_resolv_main" >&6; }
55984 if test "x$ac_cv_lib_resolv_main" = x""yes; then
55985 cat >>confdefs.h <<_ACEOF
55986 #define HAVE_LIBRESOLV 1
55989 LIBS="-lresolv $LIBS"
55994 { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
55995 $as_echo_n "checking for main in -lnsl... " >&6; }
55996 if test "${ac_cv_lib_nsl_main+set}" = set; then
55997 $as_echo_n "(cached) " >&6
55999 ac_check_lib_save_LIBS=$LIBS
56001 cat >conftest.$ac_ext <<_ACEOF
56004 cat confdefs.h >>conftest.$ac_ext
56005 cat >>conftest.$ac_ext <<_ACEOF
56006 /* end confdefs.h. */
56017 rm -f conftest.$ac_objext conftest$ac_exeext
56018 if { (ac_try="$ac_link"
56019 case "(($ac_try" in
56020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56021 *) ac_try_echo=$ac_try;;
56023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56024 $as_echo "$ac_try_echo") >&5
56025 (eval "$ac_link") 2>conftest.er1
56027 grep -v '^ *+' conftest.er1 >conftest.err
56029 cat conftest.err >&5
56030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56031 (exit $ac_status); } && {
56032 test -z "$ac_c_werror_flag" ||
56033 test ! -s conftest.err
56034 } && test -s conftest$ac_exeext && {
56035 test "$cross_compiling" = yes ||
56036 $as_test_x conftest$ac_exeext
56038 ac_cv_lib_nsl_main=yes
56040 $as_echo "$as_me: failed program was:" >&5
56041 sed 's/^/| /' conftest.$ac_ext >&5
56043 ac_cv_lib_nsl_main=no
56046 rm -rf conftest.dSYM
56047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56048 conftest$ac_exeext conftest.$ac_ext
56049 LIBS=$ac_check_lib_save_LIBS
56051 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
56052 $as_echo "$ac_cv_lib_nsl_main" >&6; }
56053 if test "x$ac_cv_lib_nsl_main" = x""yes; then
56054 cat >>confdefs.h <<_ACEOF
56055 #define HAVE_LIBNSL 1
56063 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
56064 $as_echo_n "checking for main in -lsocket... " >&6; }
56065 if test "${ac_cv_lib_socket_main+set}" = set; then
56066 $as_echo_n "(cached) " >&6
56068 ac_check_lib_save_LIBS=$LIBS
56069 LIBS="-lsocket $LIBS"
56070 cat >conftest.$ac_ext <<_ACEOF
56073 cat confdefs.h >>conftest.$ac_ext
56074 cat >>conftest.$ac_ext <<_ACEOF
56075 /* end confdefs.h. */
56086 rm -f conftest.$ac_objext conftest$ac_exeext
56087 if { (ac_try="$ac_link"
56088 case "(($ac_try" in
56089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56090 *) ac_try_echo=$ac_try;;
56092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56093 $as_echo "$ac_try_echo") >&5
56094 (eval "$ac_link") 2>conftest.er1
56096 grep -v '^ *+' conftest.er1 >conftest.err
56098 cat conftest.err >&5
56099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56100 (exit $ac_status); } && {
56101 test -z "$ac_c_werror_flag" ||
56102 test ! -s conftest.err
56103 } && test -s conftest$ac_exeext && {
56104 test "$cross_compiling" = yes ||
56105 $as_test_x conftest$ac_exeext
56107 ac_cv_lib_socket_main=yes
56109 $as_echo "$as_me: failed program was:" >&5
56110 sed 's/^/| /' conftest.$ac_ext >&5
56112 ac_cv_lib_socket_main=no
56115 rm -rf conftest.dSYM
56116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56117 conftest$ac_exeext conftest.$ac_ext
56118 LIBS=$ac_check_lib_save_LIBS
56120 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
56121 $as_echo "$ac_cv_lib_socket_main" >&6; }
56122 if test "x$ac_cv_lib_socket_main" = x""yes; then
56123 cat >>confdefs.h <<_ACEOF
56124 #define HAVE_LIBSOCKET 1
56127 LIBS="-lsocket $LIBS"
56132 { $as_echo "$as_me:$LINENO: checking for main in -lsun" >&5
56133 $as_echo_n "checking for main in -lsun... " >&6; }
56134 if test "${ac_cv_lib_sun_main+set}" = set; then
56135 $as_echo_n "(cached) " >&6
56137 ac_check_lib_save_LIBS=$LIBS
56139 cat >conftest.$ac_ext <<_ACEOF
56142 cat confdefs.h >>conftest.$ac_ext
56143 cat >>conftest.$ac_ext <<_ACEOF
56144 /* end confdefs.h. */
56155 rm -f conftest.$ac_objext conftest$ac_exeext
56156 if { (ac_try="$ac_link"
56157 case "(($ac_try" in
56158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56159 *) ac_try_echo=$ac_try;;
56161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56162 $as_echo "$ac_try_echo") >&5
56163 (eval "$ac_link") 2>conftest.er1
56165 grep -v '^ *+' conftest.er1 >conftest.err
56167 cat conftest.err >&5
56168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56169 (exit $ac_status); } && {
56170 test -z "$ac_c_werror_flag" ||
56171 test ! -s conftest.err
56172 } && test -s conftest$ac_exeext && {
56173 test "$cross_compiling" = yes ||
56174 $as_test_x conftest$ac_exeext
56176 ac_cv_lib_sun_main=yes
56178 $as_echo "$as_me: failed program was:" >&5
56179 sed 's/^/| /' conftest.$ac_ext >&5
56181 ac_cv_lib_sun_main=no
56184 rm -rf conftest.dSYM
56185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56186 conftest$ac_exeext conftest.$ac_ext
56187 LIBS=$ac_check_lib_save_LIBS
56189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
56190 $as_echo "$ac_cv_lib_sun_main" >&6; }
56191 if test "x$ac_cv_lib_sun_main" = x""yes; then
56192 cat >>confdefs.h <<_ACEOF
56193 #define HAVE_LIBSUN 1
56204 # search for pkg-config, which the glib configuration uses, adding a few
56205 # system-specific search paths.
56206 # Extract the first word of "pkg-config", so it can be a program name with args.
56207 set dummy pkg-config; ac_word=$2
56208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56209 $as_echo_n "checking for $ac_word... " >&6; }
56210 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
56211 $as_echo_n "(cached) " >&6
56213 case $PKG_CONFIG in
56215 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
56218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56219 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
56220 for as_dir in $as_dummy
56223 test -z "$as_dir" && as_dir=.
56224 for ac_exec_ext in '' $ac_executable_extensions; do
56225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56226 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56237 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
56238 if test -n "$PKG_CONFIG"; then
56239 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
56240 $as_echo "$PKG_CONFIG" >&6; }
56242 { $as_echo "$as_me:$LINENO: result: no" >&5
56243 $as_echo "no" >&6; }
56249 sparc-sun-solaris2.8) # Solaris 8
56250 # give the linker a runtime search path; pkg-config doesn't supply this.
56251 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
56252 # and make. Adding this support here makes straight './configure; make'
56253 # "just work" on Solaris 8
56254 if test -n "$PKG_CONFIG"; then
56255 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
56256 LDFLAGS="$LDFLAGS $glib_R_flag"
56261 # Check whether --enable-glibtest was given.
56262 if test "${enable_glibtest+set}" = set; then
56263 enableval=$enable_glibtest;
56265 enable_glibtest=yes
56269 pkg_config_args=glib-2.0
56270 for module in . gmodule gobject gthread
56274 pkg_config_args="$pkg_config_args gmodule-2.0"
56277 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
56280 pkg_config_args="$pkg_config_args gobject-2.0"
56283 pkg_config_args="$pkg_config_args gthread-2.0"
56286 pkg_config_args="$pkg_config_args $module-2.0"
56293 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
56294 if test -n "$ac_tool_prefix"; then
56295 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
56296 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
56297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56298 $as_echo_n "checking for $ac_word... " >&6; }
56299 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
56300 $as_echo_n "(cached) " >&6
56302 case $PKG_CONFIG in
56304 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
56307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56308 for as_dir in $PATH
56311 test -z "$as_dir" && as_dir=.
56312 for ac_exec_ext in '' $ac_executable_extensions; do
56313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56314 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56325 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
56326 if test -n "$PKG_CONFIG"; then
56327 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
56328 $as_echo "$PKG_CONFIG" >&6; }
56330 { $as_echo "$as_me:$LINENO: result: no" >&5
56331 $as_echo "no" >&6; }
56336 if test -z "$ac_cv_path_PKG_CONFIG"; then
56337 ac_pt_PKG_CONFIG=$PKG_CONFIG
56338 # Extract the first word of "pkg-config", so it can be a program name with args.
56339 set dummy pkg-config; ac_word=$2
56340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56341 $as_echo_n "checking for $ac_word... " >&6; }
56342 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
56343 $as_echo_n "(cached) " >&6
56345 case $ac_pt_PKG_CONFIG in
56347 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
56350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56351 for as_dir in $PATH
56354 test -z "$as_dir" && as_dir=.
56355 for ac_exec_ext in '' $ac_executable_extensions; do
56356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56357 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56368 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
56369 if test -n "$ac_pt_PKG_CONFIG"; then
56370 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
56371 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
56373 { $as_echo "$as_me:$LINENO: result: no" >&5
56374 $as_echo "no" >&6; }
56377 if test "x$ac_pt_PKG_CONFIG" = x; then
56380 case $cross_compiling:$ac_tool_warned in
56382 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
56383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56384 ac_tool_warned=yes ;;
56386 PKG_CONFIG=$ac_pt_PKG_CONFIG
56389 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
56393 if test -n "$PKG_CONFIG"; then
56394 _pkg_min_version=0.7
56395 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
56396 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
56397 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
56398 { $as_echo "$as_me:$LINENO: result: yes" >&5
56399 $as_echo "yes" >&6; }
56401 { $as_echo "$as_me:$LINENO: result: no" >&5
56402 $as_echo "no" >&6; }
56410 if test "x$PKG_CONFIG" = x ; then
56415 min_glib_version=2.2.0
56416 { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
56417 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
56419 if test x$PKG_CONFIG != xno ; then
56420 ## don't try to run the test against uninstalled libtool libs
56421 if $PKG_CONFIG --uninstalled $pkg_config_args; then
56422 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
56426 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
56433 if test x"$no_glib" = x ; then
56434 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
56435 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
56436 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
56438 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
56439 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
56440 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
56441 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
56442 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
56443 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
56444 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
56445 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
56446 if test "x$enable_glibtest" = "xyes" ; then
56447 ac_save_CFLAGS="$CFLAGS"
56448 ac_save_LIBS="$LIBS"
56449 CFLAGS="$CFLAGS $GLIB_CFLAGS"
56450 LIBS="$GLIB_LIBS $LIBS"
56451 rm -f conf.glibtest
56452 if test "$cross_compiling" = yes; then
56453 echo $ac_n "cross compiling; assumed OK... $ac_c"
56455 cat >conftest.$ac_ext <<_ACEOF
56458 cat confdefs.h >>conftest.$ac_ext
56459 cat >>conftest.$ac_ext <<_ACEOF
56460 /* end confdefs.h. */
56464 #include <stdlib.h>
56469 int major, minor, micro;
56472 system ("touch conf.glibtest");
56474 /* HP/UX 9 (%@#!) writes to sscanf strings */
56475 tmp_version = g_strdup("$min_glib_version");
56476 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
56477 printf("%s, bad version string\n", "$min_glib_version");
56481 if ((glib_major_version != $glib_config_major_version) ||
56482 (glib_minor_version != $glib_config_minor_version) ||
56483 (glib_micro_version != $glib_config_micro_version))
56485 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
56486 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
56487 glib_major_version, glib_minor_version, glib_micro_version);
56488 printf ("*** was found! If pkg-config was correct, then it is best\n");
56489 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
56490 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
56491 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
56492 printf("*** required on your system.\n");
56493 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
56494 printf("*** to point to the correct configuration files\n");
56496 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
56497 (glib_minor_version != GLIB_MINOR_VERSION) ||
56498 (glib_micro_version != GLIB_MICRO_VERSION))
56500 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
56501 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
56502 printf("*** library (version %d.%d.%d)\n",
56503 glib_major_version, glib_minor_version, glib_micro_version);
56507 if ((glib_major_version > major) ||
56508 ((glib_major_version == major) && (glib_minor_version > minor)) ||
56509 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
56515 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
56516 glib_major_version, glib_minor_version, glib_micro_version);
56517 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
56518 major, minor, micro);
56519 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
56521 printf("*** If you have already installed a sufficiently new version, this error\n");
56522 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
56523 printf("*** being found. The easiest way to fix this is to remove the old version\n");
56524 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
56525 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
56526 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
56527 printf("*** so that the correct libraries are found at run-time))\n");
56534 rm -f conftest$ac_exeext
56535 if { (ac_try="$ac_link"
56536 case "(($ac_try" in
56537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56538 *) ac_try_echo=$ac_try;;
56540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56541 $as_echo "$ac_try_echo") >&5
56542 (eval "$ac_link") 2>&5
56544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56546 { (case "(($ac_try" in
56547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56548 *) ac_try_echo=$ac_try;;
56550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56551 $as_echo "$ac_try_echo") >&5
56552 (eval "$ac_try") 2>&5
56554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56555 (exit $ac_status); }; }; then
56558 $as_echo "$as_me: program exited with status $ac_status" >&5
56559 $as_echo "$as_me: failed program was:" >&5
56560 sed 's/^/| /' conftest.$ac_ext >&5
56562 ( exit $ac_status )
56565 rm -rf conftest.dSYM
56566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56570 CFLAGS="$ac_save_CFLAGS"
56571 LIBS="$ac_save_LIBS"
56574 if test "x$no_glib" = x ; then
56575 { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
56576 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
56579 { $as_echo "$as_me:$LINENO: result: no" >&5
56580 $as_echo "no" >&6; }
56581 if test "$PKG_CONFIG" = "no" ; then
56582 echo "*** A new enough version of pkg-config was not found."
56583 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
56585 if test -f conf.glibtest ; then
56588 echo "*** Could not run GLIB test program, checking why..."
56589 ac_save_CFLAGS="$CFLAGS"
56590 ac_save_LIBS="$LIBS"
56591 CFLAGS="$CFLAGS $GLIB_CFLAGS"
56592 LIBS="$LIBS $GLIB_LIBS"
56593 cat >conftest.$ac_ext <<_ACEOF
56596 cat confdefs.h >>conftest.$ac_ext
56597 cat >>conftest.$ac_ext <<_ACEOF
56598 /* end confdefs.h. */
56606 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
56611 rm -f conftest.$ac_objext conftest$ac_exeext
56612 if { (ac_try="$ac_link"
56613 case "(($ac_try" in
56614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56615 *) ac_try_echo=$ac_try;;
56617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56618 $as_echo "$ac_try_echo") >&5
56619 (eval "$ac_link") 2>conftest.er1
56621 grep -v '^ *+' conftest.er1 >conftest.err
56623 cat conftest.err >&5
56624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56625 (exit $ac_status); } && {
56626 test -z "$ac_c_werror_flag" ||
56627 test ! -s conftest.err
56628 } && test -s conftest$ac_exeext && {
56629 test "$cross_compiling" = yes ||
56630 $as_test_x conftest$ac_exeext
56632 echo "*** The test program compiled, but did not run. This usually means"
56633 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
56634 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
56635 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
56636 echo "*** to the installed location Also, make sure you have run ldconfig if that"
56637 echo "*** is required on your system"
56639 echo "*** If you have an old version installed, it is best to remove it, although"
56640 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
56642 $as_echo "$as_me: failed program was:" >&5
56643 sed 's/^/| /' conftest.$ac_ext >&5
56645 echo "*** The test program failed to compile or link. See the file config.log for the"
56646 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
56649 rm -rf conftest.dSYM
56650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56651 conftest$ac_exeext conftest.$ac_ext
56652 CFLAGS="$ac_save_CFLAGS"
56653 LIBS="$ac_save_LIBS"
56662 { { $as_echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
56663 $as_echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
56664 { (exit 1); exit 1; }; }
56672 rm -f conf.glibtest
56674 # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
56675 CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
56677 LIBS="$GLIB_LIBS $LIBS"
56682 # Check whether --with-readline was given.
56683 if test "${with_readline+set}" = set; then
56684 withval=$with_readline;
56686 y | ye | yes | n | no) : ;;
56687 *) { { $as_echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
56688 $as_echo "$as_me: error: *** --with-readline does not take a value" >&2;}
56689 { (exit 1); exit 1; }; }
56691 want_readline="$withval"
56695 want_readline="maybe" # meaning "only if we can find it"
56700 # unless the user said "no", look for readline.
56701 if test x"$want_readline" != x"no"; then
56702 # we need a tgetent() somewhere..
56704 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
56705 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
56706 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
56707 $as_echo_n "(cached) " >&6
56709 ac_check_lib_save_LIBS=$LIBS
56710 LIBS="-ltermcap $LIBS"
56711 cat >conftest.$ac_ext <<_ACEOF
56714 cat confdefs.h >>conftest.$ac_ext
56715 cat >>conftest.$ac_ext <<_ACEOF
56716 /* end confdefs.h. */
56718 /* Override any GCC internal prototype to avoid an error.
56719 Use char because int might match the return type of a GCC
56720 builtin and then its argument prototype would still apply. */
56733 rm -f conftest.$ac_objext conftest$ac_exeext
56734 if { (ac_try="$ac_link"
56735 case "(($ac_try" in
56736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56737 *) ac_try_echo=$ac_try;;
56739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56740 $as_echo "$ac_try_echo") >&5
56741 (eval "$ac_link") 2>conftest.er1
56743 grep -v '^ *+' conftest.er1 >conftest.err
56745 cat conftest.err >&5
56746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56747 (exit $ac_status); } && {
56748 test -z "$ac_c_werror_flag" ||
56749 test ! -s conftest.err
56750 } && test -s conftest$ac_exeext && {
56751 test "$cross_compiling" = yes ||
56752 $as_test_x conftest$ac_exeext
56754 ac_cv_lib_termcap_tgetent=yes
56756 $as_echo "$as_me: failed program was:" >&5
56757 sed 's/^/| /' conftest.$ac_ext >&5
56759 ac_cv_lib_termcap_tgetent=no
56762 rm -rf conftest.dSYM
56763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56764 conftest$ac_exeext conftest.$ac_ext
56765 LIBS=$ac_check_lib_save_LIBS
56767 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
56768 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
56769 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
56771 READLINE_LIBS="-ltermcap"
56776 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
56777 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
56778 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
56779 $as_echo_n "(cached) " >&6
56781 ac_check_lib_save_LIBS=$LIBS
56782 LIBS="-lcurses $LIBS"
56783 cat >conftest.$ac_ext <<_ACEOF
56786 cat confdefs.h >>conftest.$ac_ext
56787 cat >>conftest.$ac_ext <<_ACEOF
56788 /* end confdefs.h. */
56790 /* Override any GCC internal prototype to avoid an error.
56791 Use char because int might match the return type of a GCC
56792 builtin and then its argument prototype would still apply. */
56805 rm -f conftest.$ac_objext conftest$ac_exeext
56806 if { (ac_try="$ac_link"
56807 case "(($ac_try" in
56808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56809 *) ac_try_echo=$ac_try;;
56811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56812 $as_echo "$ac_try_echo") >&5
56813 (eval "$ac_link") 2>conftest.er1
56815 grep -v '^ *+' conftest.er1 >conftest.err
56817 cat conftest.err >&5
56818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56819 (exit $ac_status); } && {
56820 test -z "$ac_c_werror_flag" ||
56821 test ! -s conftest.err
56822 } && test -s conftest$ac_exeext && {
56823 test "$cross_compiling" = yes ||
56824 $as_test_x conftest$ac_exeext
56826 ac_cv_lib_curses_tgetent=yes
56828 $as_echo "$as_me: failed program was:" >&5
56829 sed 's/^/| /' conftest.$ac_ext >&5
56831 ac_cv_lib_curses_tgetent=no
56834 rm -rf conftest.dSYM
56835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56836 conftest$ac_exeext conftest.$ac_ext
56837 LIBS=$ac_check_lib_save_LIBS
56839 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
56840 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
56841 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
56843 READLINE_LIBS="-lcurses"
56848 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
56849 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
56850 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
56851 $as_echo_n "(cached) " >&6
56853 ac_check_lib_save_LIBS=$LIBS
56854 LIBS="-lncurses $LIBS"
56855 cat >conftest.$ac_ext <<_ACEOF
56858 cat confdefs.h >>conftest.$ac_ext
56859 cat >>conftest.$ac_ext <<_ACEOF
56860 /* end confdefs.h. */
56862 /* Override any GCC internal prototype to avoid an error.
56863 Use char because int might match the return type of a GCC
56864 builtin and then its argument prototype would still apply. */
56877 rm -f conftest.$ac_objext conftest$ac_exeext
56878 if { (ac_try="$ac_link"
56879 case "(($ac_try" in
56880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56881 *) ac_try_echo=$ac_try;;
56883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56884 $as_echo "$ac_try_echo") >&5
56885 (eval "$ac_link") 2>conftest.er1
56887 grep -v '^ *+' conftest.er1 >conftest.err
56889 cat conftest.err >&5
56890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56891 (exit $ac_status); } && {
56892 test -z "$ac_c_werror_flag" ||
56893 test ! -s conftest.err
56894 } && test -s conftest$ac_exeext && {
56895 test "$cross_compiling" = yes ||
56896 $as_test_x conftest$ac_exeext
56898 ac_cv_lib_ncurses_tgetent=yes
56900 $as_echo "$as_me: failed program was:" >&5
56901 sed 's/^/| /' conftest.$ac_ext >&5
56903 ac_cv_lib_ncurses_tgetent=no
56906 rm -rf conftest.dSYM
56907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56908 conftest$ac_exeext conftest.$ac_ext
56909 LIBS=$ac_check_lib_save_LIBS
56911 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
56912 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
56913 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
56915 READLINE_LIBS="-lncurses"
56933 for ac_header in history.h readline.h readline/history.h readline/readline.h
56935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
56936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
56938 $as_echo_n "checking for $ac_header... " >&6; }
56939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56940 $as_echo_n "(cached) " >&6
56942 ac_res=`eval 'as_val=${'$as_ac_Header'}
56943 $as_echo "$as_val"'`
56944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56945 $as_echo "$ac_res" >&6; }
56947 # Is the header compilable?
56948 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
56949 $as_echo_n "checking $ac_header usability... " >&6; }
56950 cat >conftest.$ac_ext <<_ACEOF
56953 cat confdefs.h >>conftest.$ac_ext
56954 cat >>conftest.$ac_ext <<_ACEOF
56955 /* end confdefs.h. */
56956 $ac_includes_default
56957 #include <$ac_header>
56959 rm -f conftest.$ac_objext
56960 if { (ac_try="$ac_compile"
56961 case "(($ac_try" in
56962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56963 *) ac_try_echo=$ac_try;;
56965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56966 $as_echo "$ac_try_echo") >&5
56967 (eval "$ac_compile") 2>conftest.er1
56969 grep -v '^ *+' conftest.er1 >conftest.err
56971 cat conftest.err >&5
56972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56973 (exit $ac_status); } && {
56974 test -z "$ac_c_werror_flag" ||
56975 test ! -s conftest.err
56976 } && test -s conftest.$ac_objext; then
56977 ac_header_compiler=yes
56979 $as_echo "$as_me: failed program was:" >&5
56980 sed 's/^/| /' conftest.$ac_ext >&5
56982 ac_header_compiler=no
56985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56986 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56987 $as_echo "$ac_header_compiler" >&6; }
56989 # Is the header present?
56990 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
56991 $as_echo_n "checking $ac_header presence... " >&6; }
56992 cat >conftest.$ac_ext <<_ACEOF
56995 cat confdefs.h >>conftest.$ac_ext
56996 cat >>conftest.$ac_ext <<_ACEOF
56997 /* end confdefs.h. */
56998 #include <$ac_header>
57000 if { (ac_try="$ac_cpp conftest.$ac_ext"
57001 case "(($ac_try" in
57002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57003 *) ac_try_echo=$ac_try;;
57005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57006 $as_echo "$ac_try_echo") >&5
57007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57009 grep -v '^ *+' conftest.er1 >conftest.err
57011 cat conftest.err >&5
57012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57013 (exit $ac_status); } >/dev/null && {
57014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57015 test ! -s conftest.err
57017 ac_header_preproc=yes
57019 $as_echo "$as_me: failed program was:" >&5
57020 sed 's/^/| /' conftest.$ac_ext >&5
57022 ac_header_preproc=no
57025 rm -f conftest.err conftest.$ac_ext
57026 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57027 $as_echo "$ac_header_preproc" >&6; }
57029 # So? What about this header?
57030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57033 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57035 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57036 ac_header_preproc=yes
57039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57040 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57042 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57044 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
57046 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
57047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57050 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57054 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57055 $as_echo_n "checking for $ac_header... " >&6; }
57056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57057 $as_echo_n "(cached) " >&6
57059 eval "$as_ac_Header=\$ac_header_preproc"
57061 ac_res=`eval 'as_val=${'$as_ac_Header'}
57062 $as_echo "$as_val"'`
57063 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57064 $as_echo "$ac_res" >&6; }
57067 as_val=`eval 'as_val=${'$as_ac_Header'}
57068 $as_echo "$as_val"'`
57069 if test "x$as_val" = x""yes; then
57070 cat >>confdefs.h <<_ACEOF
57071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57074 # found at least one of the headers, so we can proceed.
57085 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
57086 $as_echo_n "checking for readline in -lreadline... " >&6; }
57087 if test "${ac_cv_lib_readline_readline+set}" = set; then
57088 $as_echo_n "(cached) " >&6
57090 ac_check_lib_save_LIBS=$LIBS
57091 LIBS="-lreadline $READLINE_LIBS $LIBS"
57092 cat >conftest.$ac_ext <<_ACEOF
57095 cat confdefs.h >>conftest.$ac_ext
57096 cat >>conftest.$ac_ext <<_ACEOF
57097 /* end confdefs.h. */
57099 /* Override any GCC internal prototype to avoid an error.
57100 Use char because int might match the return type of a GCC
57101 builtin and then its argument prototype would still apply. */
57109 return readline ();
57114 rm -f conftest.$ac_objext conftest$ac_exeext
57115 if { (ac_try="$ac_link"
57116 case "(($ac_try" in
57117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57118 *) ac_try_echo=$ac_try;;
57120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57121 $as_echo "$ac_try_echo") >&5
57122 (eval "$ac_link") 2>conftest.er1
57124 grep -v '^ *+' conftest.er1 >conftest.err
57126 cat conftest.err >&5
57127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57128 (exit $ac_status); } && {
57129 test -z "$ac_c_werror_flag" ||
57130 test ! -s conftest.err
57131 } && test -s conftest$ac_exeext && {
57132 test "$cross_compiling" = yes ||
57133 $as_test_x conftest$ac_exeext
57135 ac_cv_lib_readline_readline=yes
57137 $as_echo "$as_me: failed program was:" >&5
57138 sed 's/^/| /' conftest.$ac_ext >&5
57140 ac_cv_lib_readline_readline=no
57143 rm -rf conftest.dSYM
57144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57145 conftest$ac_exeext conftest.$ac_ext
57146 LIBS=$ac_check_lib_save_LIBS
57148 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
57149 $as_echo "$ac_cv_lib_readline_readline" >&6; }
57150 if test "x$ac_cv_lib_readline_readline" = x""yes; then
57152 READLINE_LIBS="-lreadline $READLINE_LIBS"
57160 # we have readline!
57162 cat >>confdefs.h <<\_ACEOF
57163 #define HAVE_READLINE 1
57167 # no readline. if the user *really* wanted it, bail out.
57168 if test x"$want_readline" = x"yes"; then
57169 { { $as_echo "$as_me:$LINENO: error: *** No readline implementation found. Try using --with-libraries and --with-includes" >&5
57170 $as_echo "$as_me: error: *** No readline implementation found. Try using --with-libraries and --with-includes" >&2;}
57171 { (exit 1); exit 1; }; }
57179 { $as_echo "$as_me:$LINENO: checking for modf in -lm" >&5
57180 $as_echo_n "checking for modf in -lm... " >&6; }
57181 if test "${ac_cv_lib_m_modf+set}" = set; then
57182 $as_echo_n "(cached) " >&6
57184 ac_check_lib_save_LIBS=$LIBS
57186 cat >conftest.$ac_ext <<_ACEOF
57189 cat confdefs.h >>conftest.$ac_ext
57190 cat >>conftest.$ac_ext <<_ACEOF
57191 /* end confdefs.h. */
57193 /* Override any GCC internal prototype to avoid an error.
57194 Use char because int might match the return type of a GCC
57195 builtin and then its argument prototype would still apply. */
57208 rm -f conftest.$ac_objext conftest$ac_exeext
57209 if { (ac_try="$ac_link"
57210 case "(($ac_try" in
57211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57212 *) ac_try_echo=$ac_try;;
57214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57215 $as_echo "$ac_try_echo") >&5
57216 (eval "$ac_link") 2>conftest.er1
57218 grep -v '^ *+' conftest.er1 >conftest.err
57220 cat conftest.err >&5
57221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57222 (exit $ac_status); } && {
57223 test -z "$ac_c_werror_flag" ||
57224 test ! -s conftest.err
57225 } && test -s conftest$ac_exeext && {
57226 test "$cross_compiling" = yes ||
57227 $as_test_x conftest$ac_exeext
57229 ac_cv_lib_m_modf=yes
57231 $as_echo "$as_me: failed program was:" >&5
57232 sed 's/^/| /' conftest.$ac_ext >&5
57234 ac_cv_lib_m_modf=no
57237 rm -rf conftest.dSYM
57238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57239 conftest$ac_exeext conftest.$ac_ext
57240 LIBS=$ac_check_lib_save_LIBS
57242 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
57243 $as_echo "$ac_cv_lib_m_modf" >&6; }
57244 if test "x$ac_cv_lib_m_modf" = x""yes; then
57245 cat >>confdefs.h <<_ACEOF
57246 #define HAVE_LIBM 1
57254 if test "${ac_cv_header_execinfo_h+set}" = set; then
57255 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
57256 $as_echo_n "checking for execinfo.h... " >&6; }
57257 if test "${ac_cv_header_execinfo_h+set}" = set; then
57258 $as_echo_n "(cached) " >&6
57260 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
57261 $as_echo "$ac_cv_header_execinfo_h" >&6; }
57263 # Is the header compilable?
57264 { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
57265 $as_echo_n "checking execinfo.h usability... " >&6; }
57266 cat >conftest.$ac_ext <<_ACEOF
57269 cat confdefs.h >>conftest.$ac_ext
57270 cat >>conftest.$ac_ext <<_ACEOF
57271 /* end confdefs.h. */
57272 $ac_includes_default
57273 #include <execinfo.h>
57275 rm -f conftest.$ac_objext
57276 if { (ac_try="$ac_compile"
57277 case "(($ac_try" in
57278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57279 *) ac_try_echo=$ac_try;;
57281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57282 $as_echo "$ac_try_echo") >&5
57283 (eval "$ac_compile") 2>conftest.er1
57285 grep -v '^ *+' conftest.er1 >conftest.err
57287 cat conftest.err >&5
57288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57289 (exit $ac_status); } && {
57290 test -z "$ac_c_werror_flag" ||
57291 test ! -s conftest.err
57292 } && test -s conftest.$ac_objext; then
57293 ac_header_compiler=yes
57295 $as_echo "$as_me: failed program was:" >&5
57296 sed 's/^/| /' conftest.$ac_ext >&5
57298 ac_header_compiler=no
57301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57302 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57303 $as_echo "$ac_header_compiler" >&6; }
57305 # Is the header present?
57306 { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
57307 $as_echo_n "checking execinfo.h presence... " >&6; }
57308 cat >conftest.$ac_ext <<_ACEOF
57311 cat confdefs.h >>conftest.$ac_ext
57312 cat >>conftest.$ac_ext <<_ACEOF
57313 /* end confdefs.h. */
57314 #include <execinfo.h>
57316 if { (ac_try="$ac_cpp conftest.$ac_ext"
57317 case "(($ac_try" in
57318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57319 *) ac_try_echo=$ac_try;;
57321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57322 $as_echo "$ac_try_echo") >&5
57323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57325 grep -v '^ *+' conftest.er1 >conftest.err
57327 cat conftest.err >&5
57328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57329 (exit $ac_status); } >/dev/null && {
57330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57331 test ! -s conftest.err
57333 ac_header_preproc=yes
57335 $as_echo "$as_me: failed program was:" >&5
57336 sed 's/^/| /' conftest.$ac_ext >&5
57338 ac_header_preproc=no
57341 rm -f conftest.err conftest.$ac_ext
57342 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57343 $as_echo "$ac_header_preproc" >&6; }
57345 # So? What about this header?
57346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57348 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57349 $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57350 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
57351 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
57352 ac_header_preproc=yes
57355 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
57356 $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
57357 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
57358 $as_echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
57359 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
57360 $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
57361 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
57362 $as_echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
57363 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
57364 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
57365 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
57366 $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
57370 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
57371 $as_echo_n "checking for execinfo.h... " >&6; }
57372 if test "${ac_cv_header_execinfo_h+set}" = set; then
57373 $as_echo_n "(cached) " >&6
57375 ac_cv_header_execinfo_h=$ac_header_preproc
57377 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
57378 $as_echo "$ac_cv_header_execinfo_h" >&6; }
57381 if test "x$ac_cv_header_execinfo_h" = x""yes; then
57383 { $as_echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
57384 $as_echo_n "checking for backtrace_symbols_fd... " >&6; }
57385 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
57386 $as_echo_n "(cached) " >&6
57388 cat >conftest.$ac_ext <<_ACEOF
57391 cat confdefs.h >>conftest.$ac_ext
57392 cat >>conftest.$ac_ext <<_ACEOF
57393 /* end confdefs.h. */
57394 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
57395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57396 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
57398 /* System header to define __stub macros and hopefully few prototypes,
57399 which can conflict with char backtrace_symbols_fd (); below.
57400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57401 <limits.h> exists even on freestanding compilers. */
57404 # include <limits.h>
57406 # include <assert.h>
57409 #undef backtrace_symbols_fd
57411 /* Override any GCC internal prototype to avoid an error.
57412 Use char because int might match the return type of a GCC
57413 builtin and then its argument prototype would still apply. */
57417 char backtrace_symbols_fd ();
57418 /* The GNU C library defines this for functions which it implements
57419 to always fail with ENOSYS. Some functions are actually named
57420 something starting with __ and the normal name is an alias. */
57421 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
57428 return backtrace_symbols_fd ();
57433 rm -f conftest.$ac_objext conftest$ac_exeext
57434 if { (ac_try="$ac_link"
57435 case "(($ac_try" in
57436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57437 *) ac_try_echo=$ac_try;;
57439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57440 $as_echo "$ac_try_echo") >&5
57441 (eval "$ac_link") 2>conftest.er1
57443 grep -v '^ *+' conftest.er1 >conftest.err
57445 cat conftest.err >&5
57446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57447 (exit $ac_status); } && {
57448 test -z "$ac_c_werror_flag" ||
57449 test ! -s conftest.err
57450 } && test -s conftest$ac_exeext && {
57451 test "$cross_compiling" = yes ||
57452 $as_test_x conftest$ac_exeext
57454 ac_cv_func_backtrace_symbols_fd=yes
57456 $as_echo "$as_me: failed program was:" >&5
57457 sed 's/^/| /' conftest.$ac_ext >&5
57459 ac_cv_func_backtrace_symbols_fd=no
57462 rm -rf conftest.dSYM
57463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57464 conftest$ac_exeext conftest.$ac_ext
57466 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
57467 $as_echo "$ac_cv_func_backtrace_symbols_fd" >&6; }
57468 if test "x$ac_cv_func_backtrace_symbols_fd" = x""yes; then
57471 cat >>confdefs.h <<\_ACEOF
57472 #define HAVE_GLIBC_BACKTRACE 1
57487 # Checks for library functions and if the function is declared in
57488 # an appropriate header file. Functions which exist, but for which
57489 # no declaration is available, are declared in common-src/amanda.h.
57490 # It's not clear that any existing system implements but does not
57491 # declare common functions such as these.
57496 for ac_func in accept
57498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57499 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57500 $as_echo_n "checking for $ac_func... " >&6; }
57501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57502 $as_echo_n "(cached) " >&6
57504 cat >conftest.$ac_ext <<_ACEOF
57507 cat confdefs.h >>conftest.$ac_ext
57508 cat >>conftest.$ac_ext <<_ACEOF
57509 /* end confdefs.h. */
57510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57512 #define $ac_func innocuous_$ac_func
57514 /* System header to define __stub macros and hopefully few prototypes,
57515 which can conflict with char $ac_func (); below.
57516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57517 <limits.h> exists even on freestanding compilers. */
57520 # include <limits.h>
57522 # include <assert.h>
57527 /* Override any GCC internal prototype to avoid an error.
57528 Use char because int might match the return type of a GCC
57529 builtin and then its argument prototype would still apply. */
57534 /* The GNU C library defines this for functions which it implements
57535 to always fail with ENOSYS. Some functions are actually named
57536 something starting with __ and the normal name is an alias. */
57537 #if defined __stub_$ac_func || defined __stub___$ac_func
57544 return $ac_func ();
57549 rm -f conftest.$ac_objext conftest$ac_exeext
57550 if { (ac_try="$ac_link"
57551 case "(($ac_try" in
57552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57553 *) ac_try_echo=$ac_try;;
57555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57556 $as_echo "$ac_try_echo") >&5
57557 (eval "$ac_link") 2>conftest.er1
57559 grep -v '^ *+' conftest.er1 >conftest.err
57561 cat conftest.err >&5
57562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57563 (exit $ac_status); } && {
57564 test -z "$ac_c_werror_flag" ||
57565 test ! -s conftest.err
57566 } && test -s conftest$ac_exeext && {
57567 test "$cross_compiling" = yes ||
57568 $as_test_x conftest$ac_exeext
57570 eval "$as_ac_var=yes"
57572 $as_echo "$as_me: failed program was:" >&5
57573 sed 's/^/| /' conftest.$ac_ext >&5
57575 eval "$as_ac_var=no"
57578 rm -rf conftest.dSYM
57579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57580 conftest$ac_exeext conftest.$ac_ext
57582 ac_res=`eval 'as_val=${'$as_ac_var'}
57583 $as_echo "$as_val"'`
57584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57585 $as_echo "$ac_res" >&6; }
57586 as_val=`eval 'as_val=${'$as_ac_var'}
57587 $as_echo "$as_val"'`
57588 if test "x$as_val" = x""yes; then
57589 cat >>confdefs.h <<_ACEOF
57590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57592 ice_have_accept=yes
57596 if test "${ice_have_accept}" = yes; then
57597 { $as_echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
57598 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
57599 if test "${ice_cv_have_accept_decl+set}" = set; then
57600 $as_echo_n "(cached) " >&6
57603 ice_cv_have_accept_decl=no
57604 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57605 ice_re_word='(^|[^a-zA-Z0-9_])'
57606 for header in sys/types.h sys/socket.h; do
57607 # Check for ordinary declaration
57608 cat >conftest.$ac_ext <<_ACEOF
57611 cat confdefs.h >>conftest.$ac_ext
57612 cat >>conftest.$ac_ext <<_ACEOF
57613 /* end confdefs.h. */
57617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57618 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then
57619 ice_cv_have_accept_decl=yes
57623 if test "$ice_cv_have_accept_decl" = yes; then
57626 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57627 cat >conftest.$ac_ext <<_ACEOF
57630 cat confdefs.h >>conftest.$ac_ext
57631 cat >>conftest.$ac_ext <<_ACEOF
57632 /* end confdefs.h. */
57636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57637 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57638 ice_cv_have_accept_decl=yes
57642 if test "$ice_cv_have_accept_decl" = yes; then
57649 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
57650 $as_echo "$ice_cv_have_accept_decl" >&6; }
57651 if test "$ice_cv_have_accept_decl" = yes; then
57653 cat >>confdefs.h <<_ACEOF
57654 #define HAVE_ACCEPT_DECL 1
57660 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
57661 # for constant arguments. Useless!
57662 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
57663 $as_echo_n "checking for working alloca.h... " >&6; }
57664 if test "${ac_cv_working_alloca_h+set}" = set; then
57665 $as_echo_n "(cached) " >&6
57667 cat >conftest.$ac_ext <<_ACEOF
57670 cat confdefs.h >>conftest.$ac_ext
57671 cat >>conftest.$ac_ext <<_ACEOF
57672 /* end confdefs.h. */
57673 #include <alloca.h>
57677 char *p = (char *) alloca (2 * sizeof (int));
57683 rm -f conftest.$ac_objext conftest$ac_exeext
57684 if { (ac_try="$ac_link"
57685 case "(($ac_try" in
57686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57687 *) ac_try_echo=$ac_try;;
57689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57690 $as_echo "$ac_try_echo") >&5
57691 (eval "$ac_link") 2>conftest.er1
57693 grep -v '^ *+' conftest.er1 >conftest.err
57695 cat conftest.err >&5
57696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57697 (exit $ac_status); } && {
57698 test -z "$ac_c_werror_flag" ||
57699 test ! -s conftest.err
57700 } && test -s conftest$ac_exeext && {
57701 test "$cross_compiling" = yes ||
57702 $as_test_x conftest$ac_exeext
57704 ac_cv_working_alloca_h=yes
57706 $as_echo "$as_me: failed program was:" >&5
57707 sed 's/^/| /' conftest.$ac_ext >&5
57709 ac_cv_working_alloca_h=no
57712 rm -rf conftest.dSYM
57713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57714 conftest$ac_exeext conftest.$ac_ext
57716 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
57717 $as_echo "$ac_cv_working_alloca_h" >&6; }
57718 if test $ac_cv_working_alloca_h = yes; then
57720 cat >>confdefs.h <<\_ACEOF
57721 #define HAVE_ALLOCA_H 1
57726 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
57727 $as_echo_n "checking for alloca... " >&6; }
57728 if test "${ac_cv_func_alloca_works+set}" = set; then
57729 $as_echo_n "(cached) " >&6
57731 cat >conftest.$ac_ext <<_ACEOF
57734 cat confdefs.h >>conftest.$ac_ext
57735 cat >>conftest.$ac_ext <<_ACEOF
57736 /* end confdefs.h. */
57738 # define alloca __builtin_alloca
57741 # include <malloc.h>
57742 # define alloca _alloca
57744 # ifdef HAVE_ALLOCA_H
57745 # include <alloca.h>
57750 # ifndef alloca /* predefined by HP cc +Olibcalls */
57761 char *p = (char *) alloca (1);
57767 rm -f conftest.$ac_objext conftest$ac_exeext
57768 if { (ac_try="$ac_link"
57769 case "(($ac_try" in
57770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57771 *) ac_try_echo=$ac_try;;
57773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57774 $as_echo "$ac_try_echo") >&5
57775 (eval "$ac_link") 2>conftest.er1
57777 grep -v '^ *+' conftest.er1 >conftest.err
57779 cat conftest.err >&5
57780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57781 (exit $ac_status); } && {
57782 test -z "$ac_c_werror_flag" ||
57783 test ! -s conftest.err
57784 } && test -s conftest$ac_exeext && {
57785 test "$cross_compiling" = yes ||
57786 $as_test_x conftest$ac_exeext
57788 ac_cv_func_alloca_works=yes
57790 $as_echo "$as_me: failed program was:" >&5
57791 sed 's/^/| /' conftest.$ac_ext >&5
57793 ac_cv_func_alloca_works=no
57796 rm -rf conftest.dSYM
57797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57798 conftest$ac_exeext conftest.$ac_ext
57800 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
57801 $as_echo "$ac_cv_func_alloca_works" >&6; }
57803 if test $ac_cv_func_alloca_works = yes; then
57805 cat >>confdefs.h <<\_ACEOF
57806 #define HAVE_ALLOCA 1
57810 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
57811 # that cause trouble. Some versions do not even contain alloca or
57812 # contain a buggy version. If you still want to use their alloca,
57813 # use ar to extract alloca.o from them instead of compiling alloca.c.
57815 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
57817 cat >>confdefs.h <<\_ACEOF
57822 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
57823 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
57824 if test "${ac_cv_os_cray+set}" = set; then
57825 $as_echo_n "(cached) " >&6
57827 cat >conftest.$ac_ext <<_ACEOF
57830 cat confdefs.h >>conftest.$ac_ext
57831 cat >>conftest.$ac_ext <<_ACEOF
57832 /* end confdefs.h. */
57833 #if defined CRAY && ! defined CRAY2
57840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57841 $EGREP "webecray" >/dev/null 2>&1; then
57849 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
57850 $as_echo "$ac_cv_os_cray" >&6; }
57851 if test $ac_cv_os_cray = yes; then
57852 for ac_func in _getb67 GETB67 getb67; do
57853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57854 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57855 $as_echo_n "checking for $ac_func... " >&6; }
57856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57857 $as_echo_n "(cached) " >&6
57859 cat >conftest.$ac_ext <<_ACEOF
57862 cat confdefs.h >>conftest.$ac_ext
57863 cat >>conftest.$ac_ext <<_ACEOF
57864 /* end confdefs.h. */
57865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57867 #define $ac_func innocuous_$ac_func
57869 /* System header to define __stub macros and hopefully few prototypes,
57870 which can conflict with char $ac_func (); below.
57871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57872 <limits.h> exists even on freestanding compilers. */
57875 # include <limits.h>
57877 # include <assert.h>
57882 /* Override any GCC internal prototype to avoid an error.
57883 Use char because int might match the return type of a GCC
57884 builtin and then its argument prototype would still apply. */
57889 /* The GNU C library defines this for functions which it implements
57890 to always fail with ENOSYS. Some functions are actually named
57891 something starting with __ and the normal name is an alias. */
57892 #if defined __stub_$ac_func || defined __stub___$ac_func
57899 return $ac_func ();
57904 rm -f conftest.$ac_objext conftest$ac_exeext
57905 if { (ac_try="$ac_link"
57906 case "(($ac_try" in
57907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57908 *) ac_try_echo=$ac_try;;
57910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57911 $as_echo "$ac_try_echo") >&5
57912 (eval "$ac_link") 2>conftest.er1
57914 grep -v '^ *+' conftest.er1 >conftest.err
57916 cat conftest.err >&5
57917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57918 (exit $ac_status); } && {
57919 test -z "$ac_c_werror_flag" ||
57920 test ! -s conftest.err
57921 } && test -s conftest$ac_exeext && {
57922 test "$cross_compiling" = yes ||
57923 $as_test_x conftest$ac_exeext
57925 eval "$as_ac_var=yes"
57927 $as_echo "$as_me: failed program was:" >&5
57928 sed 's/^/| /' conftest.$ac_ext >&5
57930 eval "$as_ac_var=no"
57933 rm -rf conftest.dSYM
57934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57935 conftest$ac_exeext conftest.$ac_ext
57937 ac_res=`eval 'as_val=${'$as_ac_var'}
57938 $as_echo "$as_val"'`
57939 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57940 $as_echo "$ac_res" >&6; }
57941 as_val=`eval 'as_val=${'$as_ac_var'}
57942 $as_echo "$as_val"'`
57943 if test "x$as_val" = x""yes; then
57945 cat >>confdefs.h <<_ACEOF
57946 #define CRAY_STACKSEG_END $ac_func
57955 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
57956 $as_echo_n "checking stack direction for C alloca... " >&6; }
57957 if test "${ac_cv_c_stack_direction+set}" = set; then
57958 $as_echo_n "(cached) " >&6
57960 if test "$cross_compiling" = yes; then
57961 ac_cv_c_stack_direction=0
57963 cat >conftest.$ac_ext <<_ACEOF
57966 cat confdefs.h >>conftest.$ac_ext
57967 cat >>conftest.$ac_ext <<_ACEOF
57968 /* end confdefs.h. */
57969 $ac_includes_default
57971 find_stack_direction ()
57973 static char *addr = 0;
57978 return find_stack_direction ();
57981 return (&dummy > addr) ? 1 : -1;
57987 return find_stack_direction () < 0;
57990 rm -f conftest$ac_exeext
57991 if { (ac_try="$ac_link"
57992 case "(($ac_try" in
57993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57994 *) ac_try_echo=$ac_try;;
57996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57997 $as_echo "$ac_try_echo") >&5
57998 (eval "$ac_link") 2>&5
58000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58002 { (case "(($ac_try" in
58003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58004 *) ac_try_echo=$ac_try;;
58006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58007 $as_echo "$ac_try_echo") >&5
58008 (eval "$ac_try") 2>&5
58010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58011 (exit $ac_status); }; }; then
58012 ac_cv_c_stack_direction=1
58014 $as_echo "$as_me: program exited with status $ac_status" >&5
58015 $as_echo "$as_me: failed program was:" >&5
58016 sed 's/^/| /' conftest.$ac_ext >&5
58018 ( exit $ac_status )
58019 ac_cv_c_stack_direction=-1
58021 rm -rf conftest.dSYM
58022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58027 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
58028 $as_echo "$ac_cv_c_stack_direction" >&6; }
58030 cat >>confdefs.h <<_ACEOF
58031 #define STACK_DIRECTION $ac_cv_c_stack_direction
58038 for ac_func in atexit
58040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58041 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58042 $as_echo_n "checking for $ac_func... " >&6; }
58043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58044 $as_echo_n "(cached) " >&6
58046 cat >conftest.$ac_ext <<_ACEOF
58049 cat confdefs.h >>conftest.$ac_ext
58050 cat >>conftest.$ac_ext <<_ACEOF
58051 /* end confdefs.h. */
58052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58054 #define $ac_func innocuous_$ac_func
58056 /* System header to define __stub macros and hopefully few prototypes,
58057 which can conflict with char $ac_func (); below.
58058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58059 <limits.h> exists even on freestanding compilers. */
58062 # include <limits.h>
58064 # include <assert.h>
58069 /* Override any GCC internal prototype to avoid an error.
58070 Use char because int might match the return type of a GCC
58071 builtin and then its argument prototype would still apply. */
58076 /* The GNU C library defines this for functions which it implements
58077 to always fail with ENOSYS. Some functions are actually named
58078 something starting with __ and the normal name is an alias. */
58079 #if defined __stub_$ac_func || defined __stub___$ac_func
58086 return $ac_func ();
58091 rm -f conftest.$ac_objext conftest$ac_exeext
58092 if { (ac_try="$ac_link"
58093 case "(($ac_try" in
58094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58095 *) ac_try_echo=$ac_try;;
58097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58098 $as_echo "$ac_try_echo") >&5
58099 (eval "$ac_link") 2>conftest.er1
58101 grep -v '^ *+' conftest.er1 >conftest.err
58103 cat conftest.err >&5
58104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58105 (exit $ac_status); } && {
58106 test -z "$ac_c_werror_flag" ||
58107 test ! -s conftest.err
58108 } && test -s conftest$ac_exeext && {
58109 test "$cross_compiling" = yes ||
58110 $as_test_x conftest$ac_exeext
58112 eval "$as_ac_var=yes"
58114 $as_echo "$as_me: failed program was:" >&5
58115 sed 's/^/| /' conftest.$ac_ext >&5
58117 eval "$as_ac_var=no"
58120 rm -rf conftest.dSYM
58121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58122 conftest$ac_exeext conftest.$ac_ext
58124 ac_res=`eval 'as_val=${'$as_ac_var'}
58125 $as_echo "$as_val"'`
58126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58127 $as_echo "$ac_res" >&6; }
58128 as_val=`eval 'as_val=${'$as_ac_var'}
58129 $as_echo "$as_val"'`
58130 if test "x$as_val" = x""yes; then
58131 cat >>confdefs.h <<_ACEOF
58132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58141 for ac_func in atof
58143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58144 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58145 $as_echo_n "checking for $ac_func... " >&6; }
58146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58147 $as_echo_n "(cached) " >&6
58149 cat >conftest.$ac_ext <<_ACEOF
58152 cat confdefs.h >>conftest.$ac_ext
58153 cat >>conftest.$ac_ext <<_ACEOF
58154 /* end confdefs.h. */
58155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58157 #define $ac_func innocuous_$ac_func
58159 /* System header to define __stub macros and hopefully few prototypes,
58160 which can conflict with char $ac_func (); below.
58161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58162 <limits.h> exists even on freestanding compilers. */
58165 # include <limits.h>
58167 # include <assert.h>
58172 /* Override any GCC internal prototype to avoid an error.
58173 Use char because int might match the return type of a GCC
58174 builtin and then its argument prototype would still apply. */
58179 /* The GNU C library defines this for functions which it implements
58180 to always fail with ENOSYS. Some functions are actually named
58181 something starting with __ and the normal name is an alias. */
58182 #if defined __stub_$ac_func || defined __stub___$ac_func
58189 return $ac_func ();
58194 rm -f conftest.$ac_objext conftest$ac_exeext
58195 if { (ac_try="$ac_link"
58196 case "(($ac_try" in
58197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58198 *) ac_try_echo=$ac_try;;
58200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58201 $as_echo "$ac_try_echo") >&5
58202 (eval "$ac_link") 2>conftest.er1
58204 grep -v '^ *+' conftest.er1 >conftest.err
58206 cat conftest.err >&5
58207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58208 (exit $ac_status); } && {
58209 test -z "$ac_c_werror_flag" ||
58210 test ! -s conftest.err
58211 } && test -s conftest$ac_exeext && {
58212 test "$cross_compiling" = yes ||
58213 $as_test_x conftest$ac_exeext
58215 eval "$as_ac_var=yes"
58217 $as_echo "$as_me: failed program was:" >&5
58218 sed 's/^/| /' conftest.$ac_ext >&5
58220 eval "$as_ac_var=no"
58223 rm -rf conftest.dSYM
58224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58225 conftest$ac_exeext conftest.$ac_ext
58227 ac_res=`eval 'as_val=${'$as_ac_var'}
58228 $as_echo "$as_val"'`
58229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58230 $as_echo "$ac_res" >&6; }
58231 as_val=`eval 'as_val=${'$as_ac_var'}
58232 $as_echo "$as_val"'`
58233 if test "x$as_val" = x""yes; then
58234 cat >>confdefs.h <<_ACEOF
58235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58241 if test "${ice_have_atof}" = yes; then
58242 { $as_echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
58243 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
58244 if test "${ice_cv_have_atof_decl+set}" = set; then
58245 $as_echo_n "(cached) " >&6
58248 ice_cv_have_atof_decl=no
58249 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58250 ice_re_word='(^|[^a-zA-Z0-9_])'
58251 for header in stdlib.h; do
58252 # Check for ordinary declaration
58253 cat >conftest.$ac_ext <<_ACEOF
58256 cat confdefs.h >>conftest.$ac_ext
58257 cat >>conftest.$ac_ext <<_ACEOF
58258 /* end confdefs.h. */
58262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58263 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then
58264 ice_cv_have_atof_decl=yes
58268 if test "$ice_cv_have_atof_decl" = yes; then
58271 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58272 cat >conftest.$ac_ext <<_ACEOF
58275 cat confdefs.h >>conftest.$ac_ext
58276 cat >>conftest.$ac_ext <<_ACEOF
58277 /* end confdefs.h. */
58281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58282 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58283 ice_cv_have_atof_decl=yes
58287 if test "$ice_cv_have_atof_decl" = yes; then
58294 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
58295 $as_echo "$ice_cv_have_atof_decl" >&6; }
58296 if test "$ice_cv_have_atof_decl" = yes; then
58298 cat >>confdefs.h <<_ACEOF
58299 #define HAVE_ATOF_DECL 1
58308 for ac_func in atol
58310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58311 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58312 $as_echo_n "checking for $ac_func... " >&6; }
58313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58314 $as_echo_n "(cached) " >&6
58316 cat >conftest.$ac_ext <<_ACEOF
58319 cat confdefs.h >>conftest.$ac_ext
58320 cat >>conftest.$ac_ext <<_ACEOF
58321 /* end confdefs.h. */
58322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58324 #define $ac_func innocuous_$ac_func
58326 /* System header to define __stub macros and hopefully few prototypes,
58327 which can conflict with char $ac_func (); below.
58328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58329 <limits.h> exists even on freestanding compilers. */
58332 # include <limits.h>
58334 # include <assert.h>
58339 /* Override any GCC internal prototype to avoid an error.
58340 Use char because int might match the return type of a GCC
58341 builtin and then its argument prototype would still apply. */
58346 /* The GNU C library defines this for functions which it implements
58347 to always fail with ENOSYS. Some functions are actually named
58348 something starting with __ and the normal name is an alias. */
58349 #if defined __stub_$ac_func || defined __stub___$ac_func
58356 return $ac_func ();
58361 rm -f conftest.$ac_objext conftest$ac_exeext
58362 if { (ac_try="$ac_link"
58363 case "(($ac_try" in
58364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58365 *) ac_try_echo=$ac_try;;
58367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58368 $as_echo "$ac_try_echo") >&5
58369 (eval "$ac_link") 2>conftest.er1
58371 grep -v '^ *+' conftest.er1 >conftest.err
58373 cat conftest.err >&5
58374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58375 (exit $ac_status); } && {
58376 test -z "$ac_c_werror_flag" ||
58377 test ! -s conftest.err
58378 } && test -s conftest$ac_exeext && {
58379 test "$cross_compiling" = yes ||
58380 $as_test_x conftest$ac_exeext
58382 eval "$as_ac_var=yes"
58384 $as_echo "$as_me: failed program was:" >&5
58385 sed 's/^/| /' conftest.$ac_ext >&5
58387 eval "$as_ac_var=no"
58390 rm -rf conftest.dSYM
58391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58392 conftest$ac_exeext conftest.$ac_ext
58394 ac_res=`eval 'as_val=${'$as_ac_var'}
58395 $as_echo "$as_val"'`
58396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58397 $as_echo "$ac_res" >&6; }
58398 as_val=`eval 'as_val=${'$as_ac_var'}
58399 $as_echo "$as_val"'`
58400 if test "x$as_val" = x""yes; then
58401 cat >>confdefs.h <<_ACEOF
58402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58408 if test "${ice_have_atol}" = yes; then
58409 { $as_echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
58410 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
58411 if test "${ice_cv_have_atol_decl+set}" = set; then
58412 $as_echo_n "(cached) " >&6
58415 ice_cv_have_atol_decl=no
58416 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58417 ice_re_word='(^|[^a-zA-Z0-9_])'
58418 for header in stdlib.h; do
58419 # Check for ordinary declaration
58420 cat >conftest.$ac_ext <<_ACEOF
58423 cat confdefs.h >>conftest.$ac_ext
58424 cat >>conftest.$ac_ext <<_ACEOF
58425 /* end confdefs.h. */
58429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58430 $EGREP "${ice_re_word}atol[ ]*\(" >/dev/null 2>&1; then
58431 ice_cv_have_atol_decl=yes
58435 if test "$ice_cv_have_atol_decl" = yes; then
58438 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58439 cat >conftest.$ac_ext <<_ACEOF
58442 cat confdefs.h >>conftest.$ac_ext
58443 cat >>conftest.$ac_ext <<_ACEOF
58444 /* end confdefs.h. */
58448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58449 $EGREP "${ice_re_word}atol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58450 ice_cv_have_atol_decl=yes
58454 if test "$ice_cv_have_atol_decl" = yes; then
58461 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
58462 $as_echo "$ice_cv_have_atol_decl" >&6; }
58463 if test "$ice_cv_have_atol_decl" = yes; then
58465 cat >>confdefs.h <<_ACEOF
58466 #define HAVE_ATOL_DECL 1
58475 for ac_func in atoll
58477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58478 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58479 $as_echo_n "checking for $ac_func... " >&6; }
58480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58481 $as_echo_n "(cached) " >&6
58483 cat >conftest.$ac_ext <<_ACEOF
58486 cat confdefs.h >>conftest.$ac_ext
58487 cat >>conftest.$ac_ext <<_ACEOF
58488 /* end confdefs.h. */
58489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58491 #define $ac_func innocuous_$ac_func
58493 /* System header to define __stub macros and hopefully few prototypes,
58494 which can conflict with char $ac_func (); below.
58495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58496 <limits.h> exists even on freestanding compilers. */
58499 # include <limits.h>
58501 # include <assert.h>
58506 /* Override any GCC internal prototype to avoid an error.
58507 Use char because int might match the return type of a GCC
58508 builtin and then its argument prototype would still apply. */
58513 /* The GNU C library defines this for functions which it implements
58514 to always fail with ENOSYS. Some functions are actually named
58515 something starting with __ and the normal name is an alias. */
58516 #if defined __stub_$ac_func || defined __stub___$ac_func
58523 return $ac_func ();
58528 rm -f conftest.$ac_objext conftest$ac_exeext
58529 if { (ac_try="$ac_link"
58530 case "(($ac_try" in
58531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58532 *) ac_try_echo=$ac_try;;
58534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58535 $as_echo "$ac_try_echo") >&5
58536 (eval "$ac_link") 2>conftest.er1
58538 grep -v '^ *+' conftest.er1 >conftest.err
58540 cat conftest.err >&5
58541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58542 (exit $ac_status); } && {
58543 test -z "$ac_c_werror_flag" ||
58544 test ! -s conftest.err
58545 } && test -s conftest$ac_exeext && {
58546 test "$cross_compiling" = yes ||
58547 $as_test_x conftest$ac_exeext
58549 eval "$as_ac_var=yes"
58551 $as_echo "$as_me: failed program was:" >&5
58552 sed 's/^/| /' conftest.$ac_ext >&5
58554 eval "$as_ac_var=no"
58557 rm -rf conftest.dSYM
58558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58559 conftest$ac_exeext conftest.$ac_ext
58561 ac_res=`eval 'as_val=${'$as_ac_var'}
58562 $as_echo "$as_val"'`
58563 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58564 $as_echo "$ac_res" >&6; }
58565 as_val=`eval 'as_val=${'$as_ac_var'}
58566 $as_echo "$as_val"'`
58567 if test "x$as_val" = x""yes; then
58568 cat >>confdefs.h <<_ACEOF
58569 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58575 if test "${ice_have_atoll}" = yes; then
58576 { $as_echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
58577 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
58578 if test "${ice_cv_have_atoll_decl+set}" = set; then
58579 $as_echo_n "(cached) " >&6
58582 ice_cv_have_atoll_decl=no
58583 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58584 ice_re_word='(^|[^a-zA-Z0-9_])'
58585 for header in stdlib.h; do
58586 # Check for ordinary declaration
58587 cat >conftest.$ac_ext <<_ACEOF
58590 cat confdefs.h >>conftest.$ac_ext
58591 cat >>conftest.$ac_ext <<_ACEOF
58592 /* end confdefs.h. */
58596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58597 $EGREP "${ice_re_word}atoll[ ]*\(" >/dev/null 2>&1; then
58598 ice_cv_have_atoll_decl=yes
58602 if test "$ice_cv_have_atoll_decl" = yes; then
58605 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58606 cat >conftest.$ac_ext <<_ACEOF
58609 cat confdefs.h >>conftest.$ac_ext
58610 cat >>conftest.$ac_ext <<_ACEOF
58611 /* end confdefs.h. */
58615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58616 $EGREP "${ice_re_word}atoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58617 ice_cv_have_atoll_decl=yes
58621 if test "$ice_cv_have_atoll_decl" = yes; then
58628 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
58629 $as_echo "$ice_cv_have_atoll_decl" >&6; }
58630 if test "$ice_cv_have_atoll_decl" = yes; then
58632 cat >>confdefs.h <<_ACEOF
58633 #define HAVE_ATOLL_DECL 1
58642 for ac_func in strtol
58644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58645 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58646 $as_echo_n "checking for $ac_func... " >&6; }
58647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58648 $as_echo_n "(cached) " >&6
58650 cat >conftest.$ac_ext <<_ACEOF
58653 cat confdefs.h >>conftest.$ac_ext
58654 cat >>conftest.$ac_ext <<_ACEOF
58655 /* end confdefs.h. */
58656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58658 #define $ac_func innocuous_$ac_func
58660 /* System header to define __stub macros and hopefully few prototypes,
58661 which can conflict with char $ac_func (); below.
58662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58663 <limits.h> exists even on freestanding compilers. */
58666 # include <limits.h>
58668 # include <assert.h>
58673 /* Override any GCC internal prototype to avoid an error.
58674 Use char because int might match the return type of a GCC
58675 builtin and then its argument prototype would still apply. */
58680 /* The GNU C library defines this for functions which it implements
58681 to always fail with ENOSYS. Some functions are actually named
58682 something starting with __ and the normal name is an alias. */
58683 #if defined __stub_$ac_func || defined __stub___$ac_func
58690 return $ac_func ();
58695 rm -f conftest.$ac_objext conftest$ac_exeext
58696 if { (ac_try="$ac_link"
58697 case "(($ac_try" in
58698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58699 *) ac_try_echo=$ac_try;;
58701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58702 $as_echo "$ac_try_echo") >&5
58703 (eval "$ac_link") 2>conftest.er1
58705 grep -v '^ *+' conftest.er1 >conftest.err
58707 cat conftest.err >&5
58708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58709 (exit $ac_status); } && {
58710 test -z "$ac_c_werror_flag" ||
58711 test ! -s conftest.err
58712 } && test -s conftest$ac_exeext && {
58713 test "$cross_compiling" = yes ||
58714 $as_test_x conftest$ac_exeext
58716 eval "$as_ac_var=yes"
58718 $as_echo "$as_me: failed program was:" >&5
58719 sed 's/^/| /' conftest.$ac_ext >&5
58721 eval "$as_ac_var=no"
58724 rm -rf conftest.dSYM
58725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58726 conftest$ac_exeext conftest.$ac_ext
58728 ac_res=`eval 'as_val=${'$as_ac_var'}
58729 $as_echo "$as_val"'`
58730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58731 $as_echo "$ac_res" >&6; }
58732 as_val=`eval 'as_val=${'$as_ac_var'}
58733 $as_echo "$as_val"'`
58734 if test "x$as_val" = x""yes; then
58735 cat >>confdefs.h <<_ACEOF
58736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58738 ice_have_strtol=yes
58742 if test "${ice_have_strtol}" = yes; then
58743 { $as_echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
58744 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
58745 if test "${ice_cv_have_strtol_decl+set}" = set; then
58746 $as_echo_n "(cached) " >&6
58749 ice_cv_have_strtol_decl=no
58750 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58751 ice_re_word='(^|[^a-zA-Z0-9_])'
58752 for header in stdlib.h; do
58753 # Check for ordinary declaration
58754 cat >conftest.$ac_ext <<_ACEOF
58757 cat confdefs.h >>conftest.$ac_ext
58758 cat >>conftest.$ac_ext <<_ACEOF
58759 /* end confdefs.h. */
58763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58764 $EGREP "${ice_re_word}strtol[ ]*\(" >/dev/null 2>&1; then
58765 ice_cv_have_strtol_decl=yes
58769 if test "$ice_cv_have_strtol_decl" = yes; then
58772 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58773 cat >conftest.$ac_ext <<_ACEOF
58776 cat confdefs.h >>conftest.$ac_ext
58777 cat >>conftest.$ac_ext <<_ACEOF
58778 /* end confdefs.h. */
58782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58783 $EGREP "${ice_re_word}strtol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58784 ice_cv_have_strtol_decl=yes
58788 if test "$ice_cv_have_strtol_decl" = yes; then
58795 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
58796 $as_echo "$ice_cv_have_strtol_decl" >&6; }
58797 if test "$ice_cv_have_strtol_decl" = yes; then
58799 cat >>confdefs.h <<_ACEOF
58800 #define HAVE_STRTOL_DECL 1
58807 ice_have_strtoll=no
58809 for ac_func in strtoll
58811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58812 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58813 $as_echo_n "checking for $ac_func... " >&6; }
58814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58815 $as_echo_n "(cached) " >&6
58817 cat >conftest.$ac_ext <<_ACEOF
58820 cat confdefs.h >>conftest.$ac_ext
58821 cat >>conftest.$ac_ext <<_ACEOF
58822 /* end confdefs.h. */
58823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58825 #define $ac_func innocuous_$ac_func
58827 /* System header to define __stub macros and hopefully few prototypes,
58828 which can conflict with char $ac_func (); below.
58829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58830 <limits.h> exists even on freestanding compilers. */
58833 # include <limits.h>
58835 # include <assert.h>
58840 /* Override any GCC internal prototype to avoid an error.
58841 Use char because int might match the return type of a GCC
58842 builtin and then its argument prototype would still apply. */
58847 /* The GNU C library defines this for functions which it implements
58848 to always fail with ENOSYS. Some functions are actually named
58849 something starting with __ and the normal name is an alias. */
58850 #if defined __stub_$ac_func || defined __stub___$ac_func
58857 return $ac_func ();
58862 rm -f conftest.$ac_objext conftest$ac_exeext
58863 if { (ac_try="$ac_link"
58864 case "(($ac_try" in
58865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58866 *) ac_try_echo=$ac_try;;
58868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58869 $as_echo "$ac_try_echo") >&5
58870 (eval "$ac_link") 2>conftest.er1
58872 grep -v '^ *+' conftest.er1 >conftest.err
58874 cat conftest.err >&5
58875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58876 (exit $ac_status); } && {
58877 test -z "$ac_c_werror_flag" ||
58878 test ! -s conftest.err
58879 } && test -s conftest$ac_exeext && {
58880 test "$cross_compiling" = yes ||
58881 $as_test_x conftest$ac_exeext
58883 eval "$as_ac_var=yes"
58885 $as_echo "$as_me: failed program was:" >&5
58886 sed 's/^/| /' conftest.$ac_ext >&5
58888 eval "$as_ac_var=no"
58891 rm -rf conftest.dSYM
58892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58893 conftest$ac_exeext conftest.$ac_ext
58895 ac_res=`eval 'as_val=${'$as_ac_var'}
58896 $as_echo "$as_val"'`
58897 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58898 $as_echo "$ac_res" >&6; }
58899 as_val=`eval 'as_val=${'$as_ac_var'}
58900 $as_echo "$as_val"'`
58901 if test "x$as_val" = x""yes; then
58902 cat >>confdefs.h <<_ACEOF
58903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58905 ice_have_strtoll=yes
58909 if test "${ice_have_strtoll}" = yes; then
58910 { $as_echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
58911 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
58912 if test "${ice_cv_have_strtoll_decl+set}" = set; then
58913 $as_echo_n "(cached) " >&6
58916 ice_cv_have_strtoll_decl=no
58917 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58918 ice_re_word='(^|[^a-zA-Z0-9_])'
58919 for header in stdlib.h; do
58920 # Check for ordinary declaration
58921 cat >conftest.$ac_ext <<_ACEOF
58924 cat confdefs.h >>conftest.$ac_ext
58925 cat >>conftest.$ac_ext <<_ACEOF
58926 /* end confdefs.h. */
58930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58931 $EGREP "${ice_re_word}strtoll[ ]*\(" >/dev/null 2>&1; then
58932 ice_cv_have_strtoll_decl=yes
58936 if test "$ice_cv_have_strtoll_decl" = yes; then
58939 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58940 cat >conftest.$ac_ext <<_ACEOF
58943 cat confdefs.h >>conftest.$ac_ext
58944 cat >>conftest.$ac_ext <<_ACEOF
58945 /* end confdefs.h. */
58949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58950 $EGREP "${ice_re_word}strtoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58951 ice_cv_have_strtoll_decl=yes
58955 if test "$ice_cv_have_strtoll_decl" = yes; then
58962 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
58963 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
58964 if test "$ice_cv_have_strtoll_decl" = yes; then
58966 cat >>confdefs.h <<_ACEOF
58967 #define HAVE_STRTOLL_DECL 1
58974 for ac_func in basename
58976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58977 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58978 $as_echo_n "checking for $ac_func... " >&6; }
58979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58980 $as_echo_n "(cached) " >&6
58982 cat >conftest.$ac_ext <<_ACEOF
58985 cat confdefs.h >>conftest.$ac_ext
58986 cat >>conftest.$ac_ext <<_ACEOF
58987 /* end confdefs.h. */
58988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58990 #define $ac_func innocuous_$ac_func
58992 /* System header to define __stub macros and hopefully few prototypes,
58993 which can conflict with char $ac_func (); below.
58994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58995 <limits.h> exists even on freestanding compilers. */
58998 # include <limits.h>
59000 # include <assert.h>
59005 /* Override any GCC internal prototype to avoid an error.
59006 Use char because int might match the return type of a GCC
59007 builtin and then its argument prototype would still apply. */
59012 /* The GNU C library defines this for functions which it implements
59013 to always fail with ENOSYS. Some functions are actually named
59014 something starting with __ and the normal name is an alias. */
59015 #if defined __stub_$ac_func || defined __stub___$ac_func
59022 return $ac_func ();
59027 rm -f conftest.$ac_objext conftest$ac_exeext
59028 if { (ac_try="$ac_link"
59029 case "(($ac_try" in
59030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59031 *) ac_try_echo=$ac_try;;
59033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59034 $as_echo "$ac_try_echo") >&5
59035 (eval "$ac_link") 2>conftest.er1
59037 grep -v '^ *+' conftest.er1 >conftest.err
59039 cat conftest.err >&5
59040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59041 (exit $ac_status); } && {
59042 test -z "$ac_c_werror_flag" ||
59043 test ! -s conftest.err
59044 } && test -s conftest$ac_exeext && {
59045 test "$cross_compiling" = yes ||
59046 $as_test_x conftest$ac_exeext
59048 eval "$as_ac_var=yes"
59050 $as_echo "$as_me: failed program was:" >&5
59051 sed 's/^/| /' conftest.$ac_ext >&5
59053 eval "$as_ac_var=no"
59056 rm -rf conftest.dSYM
59057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59058 conftest$ac_exeext conftest.$ac_ext
59060 ac_res=`eval 'as_val=${'$as_ac_var'}
59061 $as_echo "$as_val"'`
59062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59063 $as_echo "$ac_res" >&6; }
59064 as_val=`eval 'as_val=${'$as_ac_var'}
59065 $as_echo "$as_val"'`
59066 if test "x$as_val" = x""yes; then
59067 cat >>confdefs.h <<_ACEOF
59068 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59077 for ac_func in bind
59079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59080 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59081 $as_echo_n "checking for $ac_func... " >&6; }
59082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59083 $as_echo_n "(cached) " >&6
59085 cat >conftest.$ac_ext <<_ACEOF
59088 cat confdefs.h >>conftest.$ac_ext
59089 cat >>conftest.$ac_ext <<_ACEOF
59090 /* end confdefs.h. */
59091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59093 #define $ac_func innocuous_$ac_func
59095 /* System header to define __stub macros and hopefully few prototypes,
59096 which can conflict with char $ac_func (); below.
59097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59098 <limits.h> exists even on freestanding compilers. */
59101 # include <limits.h>
59103 # include <assert.h>
59108 /* Override any GCC internal prototype to avoid an error.
59109 Use char because int might match the return type of a GCC
59110 builtin and then its argument prototype would still apply. */
59115 /* The GNU C library defines this for functions which it implements
59116 to always fail with ENOSYS. Some functions are actually named
59117 something starting with __ and the normal name is an alias. */
59118 #if defined __stub_$ac_func || defined __stub___$ac_func
59125 return $ac_func ();
59130 rm -f conftest.$ac_objext conftest$ac_exeext
59131 if { (ac_try="$ac_link"
59132 case "(($ac_try" in
59133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59134 *) ac_try_echo=$ac_try;;
59136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59137 $as_echo "$ac_try_echo") >&5
59138 (eval "$ac_link") 2>conftest.er1
59140 grep -v '^ *+' conftest.er1 >conftest.err
59142 cat conftest.err >&5
59143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59144 (exit $ac_status); } && {
59145 test -z "$ac_c_werror_flag" ||
59146 test ! -s conftest.err
59147 } && test -s conftest$ac_exeext && {
59148 test "$cross_compiling" = yes ||
59149 $as_test_x conftest$ac_exeext
59151 eval "$as_ac_var=yes"
59153 $as_echo "$as_me: failed program was:" >&5
59154 sed 's/^/| /' conftest.$ac_ext >&5
59156 eval "$as_ac_var=no"
59159 rm -rf conftest.dSYM
59160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59161 conftest$ac_exeext conftest.$ac_ext
59163 ac_res=`eval 'as_val=${'$as_ac_var'}
59164 $as_echo "$as_val"'`
59165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59166 $as_echo "$ac_res" >&6; }
59167 as_val=`eval 'as_val=${'$as_ac_var'}
59168 $as_echo "$as_val"'`
59169 if test "x$as_val" = x""yes; then
59170 cat >>confdefs.h <<_ACEOF
59171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59177 if test "${ice_have_bind}" = yes; then
59178 { $as_echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
59179 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
59180 if test "${ice_cv_have_bind_decl+set}" = set; then
59181 $as_echo_n "(cached) " >&6
59184 ice_cv_have_bind_decl=no
59185 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59186 ice_re_word='(^|[^a-zA-Z0-9_])'
59187 for header in sys/types.h sys/socket.h; do
59188 # Check for ordinary declaration
59189 cat >conftest.$ac_ext <<_ACEOF
59192 cat confdefs.h >>conftest.$ac_ext
59193 cat >>conftest.$ac_ext <<_ACEOF
59194 /* end confdefs.h. */
59198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59199 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then
59200 ice_cv_have_bind_decl=yes
59204 if test "$ice_cv_have_bind_decl" = yes; then
59207 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59208 cat >conftest.$ac_ext <<_ACEOF
59211 cat confdefs.h >>conftest.$ac_ext
59212 cat >>conftest.$ac_ext <<_ACEOF
59213 /* end confdefs.h. */
59217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59218 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59219 ice_cv_have_bind_decl=yes
59223 if test "$ice_cv_have_bind_decl" = yes; then
59230 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
59231 $as_echo "$ice_cv_have_bind_decl" >&6; }
59232 if test "$ice_cv_have_bind_decl" = yes; then
59234 cat >>confdefs.h <<_ACEOF
59235 #define HAVE_BIND_DECL 1
59244 for ac_func in bcopy
59246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59247 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59248 $as_echo_n "checking for $ac_func... " >&6; }
59249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59250 $as_echo_n "(cached) " >&6
59252 cat >conftest.$ac_ext <<_ACEOF
59255 cat confdefs.h >>conftest.$ac_ext
59256 cat >>conftest.$ac_ext <<_ACEOF
59257 /* end confdefs.h. */
59258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59260 #define $ac_func innocuous_$ac_func
59262 /* System header to define __stub macros and hopefully few prototypes,
59263 which can conflict with char $ac_func (); below.
59264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59265 <limits.h> exists even on freestanding compilers. */
59268 # include <limits.h>
59270 # include <assert.h>
59275 /* Override any GCC internal prototype to avoid an error.
59276 Use char because int might match the return type of a GCC
59277 builtin and then its argument prototype would still apply. */
59282 /* The GNU C library defines this for functions which it implements
59283 to always fail with ENOSYS. Some functions are actually named
59284 something starting with __ and the normal name is an alias. */
59285 #if defined __stub_$ac_func || defined __stub___$ac_func
59292 return $ac_func ();
59297 rm -f conftest.$ac_objext conftest$ac_exeext
59298 if { (ac_try="$ac_link"
59299 case "(($ac_try" in
59300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59301 *) ac_try_echo=$ac_try;;
59303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59304 $as_echo "$ac_try_echo") >&5
59305 (eval "$ac_link") 2>conftest.er1
59307 grep -v '^ *+' conftest.er1 >conftest.err
59309 cat conftest.err >&5
59310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59311 (exit $ac_status); } && {
59312 test -z "$ac_c_werror_flag" ||
59313 test ! -s conftest.err
59314 } && test -s conftest$ac_exeext && {
59315 test "$cross_compiling" = yes ||
59316 $as_test_x conftest$ac_exeext
59318 eval "$as_ac_var=yes"
59320 $as_echo "$as_me: failed program was:" >&5
59321 sed 's/^/| /' conftest.$ac_ext >&5
59323 eval "$as_ac_var=no"
59326 rm -rf conftest.dSYM
59327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59328 conftest$ac_exeext conftest.$ac_ext
59330 ac_res=`eval 'as_val=${'$as_ac_var'}
59331 $as_echo "$as_val"'`
59332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59333 $as_echo "$ac_res" >&6; }
59334 as_val=`eval 'as_val=${'$as_ac_var'}
59335 $as_echo "$as_val"'`
59336 if test "x$as_val" = x""yes; then
59337 cat >>confdefs.h <<_ACEOF
59338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59344 if test "${ice_have_bcopy}" = yes; then
59345 { $as_echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
59346 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
59347 if test "${ice_cv_have_bcopy_decl+set}" = set; then
59348 $as_echo_n "(cached) " >&6
59351 ice_cv_have_bcopy_decl=no
59352 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59353 ice_re_word='(^|[^a-zA-Z0-9_])'
59354 for header in string.h strings.h stdlib.h; do
59355 # Check for ordinary declaration
59356 cat >conftest.$ac_ext <<_ACEOF
59359 cat confdefs.h >>conftest.$ac_ext
59360 cat >>conftest.$ac_ext <<_ACEOF
59361 /* end confdefs.h. */
59365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59366 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then
59367 ice_cv_have_bcopy_decl=yes
59371 if test "$ice_cv_have_bcopy_decl" = yes; then
59374 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59375 cat >conftest.$ac_ext <<_ACEOF
59378 cat confdefs.h >>conftest.$ac_ext
59379 cat >>conftest.$ac_ext <<_ACEOF
59380 /* end confdefs.h. */
59384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59385 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59386 ice_cv_have_bcopy_decl=yes
59390 if test "$ice_cv_have_bcopy_decl" = yes; then
59397 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
59398 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
59399 if test "$ice_cv_have_bcopy_decl" = yes; then
59401 cat >>confdefs.h <<_ACEOF
59402 #define HAVE_BCOPY_DECL 1
59411 for ac_func in bzero
59413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59414 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59415 $as_echo_n "checking for $ac_func... " >&6; }
59416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59417 $as_echo_n "(cached) " >&6
59419 cat >conftest.$ac_ext <<_ACEOF
59422 cat confdefs.h >>conftest.$ac_ext
59423 cat >>conftest.$ac_ext <<_ACEOF
59424 /* end confdefs.h. */
59425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59427 #define $ac_func innocuous_$ac_func
59429 /* System header to define __stub macros and hopefully few prototypes,
59430 which can conflict with char $ac_func (); below.
59431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59432 <limits.h> exists even on freestanding compilers. */
59435 # include <limits.h>
59437 # include <assert.h>
59442 /* Override any GCC internal prototype to avoid an error.
59443 Use char because int might match the return type of a GCC
59444 builtin and then its argument prototype would still apply. */
59449 /* The GNU C library defines this for functions which it implements
59450 to always fail with ENOSYS. Some functions are actually named
59451 something starting with __ and the normal name is an alias. */
59452 #if defined __stub_$ac_func || defined __stub___$ac_func
59459 return $ac_func ();
59464 rm -f conftest.$ac_objext conftest$ac_exeext
59465 if { (ac_try="$ac_link"
59466 case "(($ac_try" in
59467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59468 *) ac_try_echo=$ac_try;;
59470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59471 $as_echo "$ac_try_echo") >&5
59472 (eval "$ac_link") 2>conftest.er1
59474 grep -v '^ *+' conftest.er1 >conftest.err
59476 cat conftest.err >&5
59477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59478 (exit $ac_status); } && {
59479 test -z "$ac_c_werror_flag" ||
59480 test ! -s conftest.err
59481 } && test -s conftest$ac_exeext && {
59482 test "$cross_compiling" = yes ||
59483 $as_test_x conftest$ac_exeext
59485 eval "$as_ac_var=yes"
59487 $as_echo "$as_me: failed program was:" >&5
59488 sed 's/^/| /' conftest.$ac_ext >&5
59490 eval "$as_ac_var=no"
59493 rm -rf conftest.dSYM
59494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59495 conftest$ac_exeext conftest.$ac_ext
59497 ac_res=`eval 'as_val=${'$as_ac_var'}
59498 $as_echo "$as_val"'`
59499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59500 $as_echo "$ac_res" >&6; }
59501 as_val=`eval 'as_val=${'$as_ac_var'}
59502 $as_echo "$as_val"'`
59503 if test "x$as_val" = x""yes; then
59504 cat >>confdefs.h <<_ACEOF
59505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59511 if test "${ice_have_bzero}" = yes; then
59512 { $as_echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
59513 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
59514 if test "${ice_cv_have_bzero_decl+set}" = set; then
59515 $as_echo_n "(cached) " >&6
59518 ice_cv_have_bzero_decl=no
59519 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59520 ice_re_word='(^|[^a-zA-Z0-9_])'
59521 for header in string.h strings.h stdlib.h; do
59522 # Check for ordinary declaration
59523 cat >conftest.$ac_ext <<_ACEOF
59526 cat confdefs.h >>conftest.$ac_ext
59527 cat >>conftest.$ac_ext <<_ACEOF
59528 /* end confdefs.h. */
59532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59533 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then
59534 ice_cv_have_bzero_decl=yes
59538 if test "$ice_cv_have_bzero_decl" = yes; then
59541 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59542 cat >conftest.$ac_ext <<_ACEOF
59545 cat confdefs.h >>conftest.$ac_ext
59546 cat >>conftest.$ac_ext <<_ACEOF
59547 /* end confdefs.h. */
59551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59552 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59553 ice_cv_have_bzero_decl=yes
59557 if test "$ice_cv_have_bzero_decl" = yes; then
59564 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
59565 $as_echo "$ice_cv_have_bzero_decl" >&6; }
59566 if test "$ice_cv_have_bzero_decl" = yes; then
59568 cat >>confdefs.h <<_ACEOF
59569 #define HAVE_BZERO_DECL 1
59575 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
59576 $as_echo_n "checking whether closedir returns void... " >&6; }
59577 if test "${ac_cv_func_closedir_void+set}" = set; then
59578 $as_echo_n "(cached) " >&6
59580 if test "$cross_compiling" = yes; then
59581 ac_cv_func_closedir_void=yes
59583 cat >conftest.$ac_ext <<_ACEOF
59586 cat confdefs.h >>conftest.$ac_ext
59587 cat >>conftest.$ac_ext <<_ACEOF
59588 /* end confdefs.h. */
59589 $ac_includes_default
59590 #include <$ac_header_dirent>
59591 #ifndef __cplusplus
59598 return closedir (opendir (".")) != 0;
59603 rm -f conftest$ac_exeext
59604 if { (ac_try="$ac_link"
59605 case "(($ac_try" in
59606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59607 *) ac_try_echo=$ac_try;;
59609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59610 $as_echo "$ac_try_echo") >&5
59611 (eval "$ac_link") 2>&5
59613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59615 { (case "(($ac_try" in
59616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59617 *) ac_try_echo=$ac_try;;
59619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59620 $as_echo "$ac_try_echo") >&5
59621 (eval "$ac_try") 2>&5
59623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59624 (exit $ac_status); }; }; then
59625 ac_cv_func_closedir_void=no
59627 $as_echo "$as_me: program exited with status $ac_status" >&5
59628 $as_echo "$as_me: failed program was:" >&5
59629 sed 's/^/| /' conftest.$ac_ext >&5
59631 ( exit $ac_status )
59632 ac_cv_func_closedir_void=yes
59634 rm -rf conftest.dSYM
59635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59640 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
59641 $as_echo "$ac_cv_func_closedir_void" >&6; }
59642 if test $ac_cv_func_closedir_void = yes; then
59644 cat >>confdefs.h <<\_ACEOF
59645 #define CLOSEDIR_VOID 1
59651 ice_have_closelog=no
59653 for ac_func in closelog
59655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59656 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59657 $as_echo_n "checking for $ac_func... " >&6; }
59658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59659 $as_echo_n "(cached) " >&6
59661 cat >conftest.$ac_ext <<_ACEOF
59664 cat confdefs.h >>conftest.$ac_ext
59665 cat >>conftest.$ac_ext <<_ACEOF
59666 /* end confdefs.h. */
59667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59669 #define $ac_func innocuous_$ac_func
59671 /* System header to define __stub macros and hopefully few prototypes,
59672 which can conflict with char $ac_func (); below.
59673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59674 <limits.h> exists even on freestanding compilers. */
59677 # include <limits.h>
59679 # include <assert.h>
59684 /* Override any GCC internal prototype to avoid an error.
59685 Use char because int might match the return type of a GCC
59686 builtin and then its argument prototype would still apply. */
59691 /* The GNU C library defines this for functions which it implements
59692 to always fail with ENOSYS. Some functions are actually named
59693 something starting with __ and the normal name is an alias. */
59694 #if defined __stub_$ac_func || defined __stub___$ac_func
59701 return $ac_func ();
59706 rm -f conftest.$ac_objext conftest$ac_exeext
59707 if { (ac_try="$ac_link"
59708 case "(($ac_try" in
59709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59710 *) ac_try_echo=$ac_try;;
59712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59713 $as_echo "$ac_try_echo") >&5
59714 (eval "$ac_link") 2>conftest.er1
59716 grep -v '^ *+' conftest.er1 >conftest.err
59718 cat conftest.err >&5
59719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59720 (exit $ac_status); } && {
59721 test -z "$ac_c_werror_flag" ||
59722 test ! -s conftest.err
59723 } && test -s conftest$ac_exeext && {
59724 test "$cross_compiling" = yes ||
59725 $as_test_x conftest$ac_exeext
59727 eval "$as_ac_var=yes"
59729 $as_echo "$as_me: failed program was:" >&5
59730 sed 's/^/| /' conftest.$ac_ext >&5
59732 eval "$as_ac_var=no"
59735 rm -rf conftest.dSYM
59736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59737 conftest$ac_exeext conftest.$ac_ext
59739 ac_res=`eval 'as_val=${'$as_ac_var'}
59740 $as_echo "$as_val"'`
59741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59742 $as_echo "$ac_res" >&6; }
59743 as_val=`eval 'as_val=${'$as_ac_var'}
59744 $as_echo "$as_val"'`
59745 if test "x$as_val" = x""yes; then
59746 cat >>confdefs.h <<_ACEOF
59747 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59749 ice_have_closelog=yes
59753 if test "${ice_have_closelog}" = yes; then
59754 { $as_echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
59755 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
59756 if test "${ice_cv_have_closelog_decl+set}" = set; then
59757 $as_echo_n "(cached) " >&6
59760 ice_cv_have_closelog_decl=no
59761 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59762 ice_re_word='(^|[^a-zA-Z0-9_])'
59763 for header in syslog.h; do
59764 # Check for ordinary declaration
59765 cat >conftest.$ac_ext <<_ACEOF
59768 cat confdefs.h >>conftest.$ac_ext
59769 cat >>conftest.$ac_ext <<_ACEOF
59770 /* end confdefs.h. */
59774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59775 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then
59776 ice_cv_have_closelog_decl=yes
59780 if test "$ice_cv_have_closelog_decl" = yes; then
59783 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59784 cat >conftest.$ac_ext <<_ACEOF
59787 cat confdefs.h >>conftest.$ac_ext
59788 cat >>conftest.$ac_ext <<_ACEOF
59789 /* end confdefs.h. */
59793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59794 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59795 ice_cv_have_closelog_decl=yes
59799 if test "$ice_cv_have_closelog_decl" = yes; then
59806 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
59807 $as_echo "$ice_cv_have_closelog_decl" >&6; }
59808 if test "$ice_cv_have_closelog_decl" = yes; then
59810 cat >>confdefs.h <<_ACEOF
59811 #define HAVE_CLOSELOG_DECL 1
59818 ice_have_connect=no
59820 for ac_func in connect
59822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59823 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59824 $as_echo_n "checking for $ac_func... " >&6; }
59825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59826 $as_echo_n "(cached) " >&6
59828 cat >conftest.$ac_ext <<_ACEOF
59831 cat confdefs.h >>conftest.$ac_ext
59832 cat >>conftest.$ac_ext <<_ACEOF
59833 /* end confdefs.h. */
59834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59836 #define $ac_func innocuous_$ac_func
59838 /* System header to define __stub macros and hopefully few prototypes,
59839 which can conflict with char $ac_func (); below.
59840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59841 <limits.h> exists even on freestanding compilers. */
59844 # include <limits.h>
59846 # include <assert.h>
59851 /* Override any GCC internal prototype to avoid an error.
59852 Use char because int might match the return type of a GCC
59853 builtin and then its argument prototype would still apply. */
59858 /* The GNU C library defines this for functions which it implements
59859 to always fail with ENOSYS. Some functions are actually named
59860 something starting with __ and the normal name is an alias. */
59861 #if defined __stub_$ac_func || defined __stub___$ac_func
59868 return $ac_func ();
59873 rm -f conftest.$ac_objext conftest$ac_exeext
59874 if { (ac_try="$ac_link"
59875 case "(($ac_try" in
59876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59877 *) ac_try_echo=$ac_try;;
59879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59880 $as_echo "$ac_try_echo") >&5
59881 (eval "$ac_link") 2>conftest.er1
59883 grep -v '^ *+' conftest.er1 >conftest.err
59885 cat conftest.err >&5
59886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59887 (exit $ac_status); } && {
59888 test -z "$ac_c_werror_flag" ||
59889 test ! -s conftest.err
59890 } && test -s conftest$ac_exeext && {
59891 test "$cross_compiling" = yes ||
59892 $as_test_x conftest$ac_exeext
59894 eval "$as_ac_var=yes"
59896 $as_echo "$as_me: failed program was:" >&5
59897 sed 's/^/| /' conftest.$ac_ext >&5
59899 eval "$as_ac_var=no"
59902 rm -rf conftest.dSYM
59903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59904 conftest$ac_exeext conftest.$ac_ext
59906 ac_res=`eval 'as_val=${'$as_ac_var'}
59907 $as_echo "$as_val"'`
59908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59909 $as_echo "$ac_res" >&6; }
59910 as_val=`eval 'as_val=${'$as_ac_var'}
59911 $as_echo "$as_val"'`
59912 if test "x$as_val" = x""yes; then
59913 cat >>confdefs.h <<_ACEOF
59914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59916 ice_have_connect=yes
59920 if test "${ice_have_connect}" = yes; then
59921 { $as_echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
59922 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
59923 if test "${ice_cv_have_connect_decl+set}" = set; then
59924 $as_echo_n "(cached) " >&6
59927 ice_cv_have_connect_decl=no
59928 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59929 ice_re_word='(^|[^a-zA-Z0-9_])'
59930 for header in sys/types.h sys/socket.h; do
59931 # Check for ordinary declaration
59932 cat >conftest.$ac_ext <<_ACEOF
59935 cat confdefs.h >>conftest.$ac_ext
59936 cat >>conftest.$ac_ext <<_ACEOF
59937 /* end confdefs.h. */
59941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59942 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then
59943 ice_cv_have_connect_decl=yes
59947 if test "$ice_cv_have_connect_decl" = yes; then
59950 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59951 cat >conftest.$ac_ext <<_ACEOF
59954 cat confdefs.h >>conftest.$ac_ext
59955 cat >>conftest.$ac_ext <<_ACEOF
59956 /* end confdefs.h. */
59960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59961 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59962 ice_cv_have_connect_decl=yes
59966 if test "$ice_cv_have_connect_decl" = yes; then
59973 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
59974 $as_echo "$ice_cv_have_connect_decl" >&6; }
59975 if test "$ice_cv_have_connect_decl" = yes; then
59977 cat >>confdefs.h <<_ACEOF
59978 #define HAVE_CONNECT_DECL 1
59987 for ac_func in fclose
59989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59990 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59991 $as_echo_n "checking for $ac_func... " >&6; }
59992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59993 $as_echo_n "(cached) " >&6
59995 cat >conftest.$ac_ext <<_ACEOF
59998 cat confdefs.h >>conftest.$ac_ext
59999 cat >>conftest.$ac_ext <<_ACEOF
60000 /* end confdefs.h. */
60001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60003 #define $ac_func innocuous_$ac_func
60005 /* System header to define __stub macros and hopefully few prototypes,
60006 which can conflict with char $ac_func (); below.
60007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60008 <limits.h> exists even on freestanding compilers. */
60011 # include <limits.h>
60013 # include <assert.h>
60018 /* Override any GCC internal prototype to avoid an error.
60019 Use char because int might match the return type of a GCC
60020 builtin and then its argument prototype would still apply. */
60025 /* The GNU C library defines this for functions which it implements
60026 to always fail with ENOSYS. Some functions are actually named
60027 something starting with __ and the normal name is an alias. */
60028 #if defined __stub_$ac_func || defined __stub___$ac_func
60035 return $ac_func ();
60040 rm -f conftest.$ac_objext conftest$ac_exeext
60041 if { (ac_try="$ac_link"
60042 case "(($ac_try" in
60043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60044 *) ac_try_echo=$ac_try;;
60046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60047 $as_echo "$ac_try_echo") >&5
60048 (eval "$ac_link") 2>conftest.er1
60050 grep -v '^ *+' conftest.er1 >conftest.err
60052 cat conftest.err >&5
60053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60054 (exit $ac_status); } && {
60055 test -z "$ac_c_werror_flag" ||
60056 test ! -s conftest.err
60057 } && test -s conftest$ac_exeext && {
60058 test "$cross_compiling" = yes ||
60059 $as_test_x conftest$ac_exeext
60061 eval "$as_ac_var=yes"
60063 $as_echo "$as_me: failed program was:" >&5
60064 sed 's/^/| /' conftest.$ac_ext >&5
60066 eval "$as_ac_var=no"
60069 rm -rf conftest.dSYM
60070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60071 conftest$ac_exeext conftest.$ac_ext
60073 ac_res=`eval 'as_val=${'$as_ac_var'}
60074 $as_echo "$as_val"'`
60075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60076 $as_echo "$ac_res" >&6; }
60077 as_val=`eval 'as_val=${'$as_ac_var'}
60078 $as_echo "$as_val"'`
60079 if test "x$as_val" = x""yes; then
60080 cat >>confdefs.h <<_ACEOF
60081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60083 ice_have_fclose=yes
60087 if test "${ice_have_fclose}" = yes; then
60088 { $as_echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
60089 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
60090 if test "${ice_cv_have_fclose_decl+set}" = set; then
60091 $as_echo_n "(cached) " >&6
60094 ice_cv_have_fclose_decl=no
60095 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60096 ice_re_word='(^|[^a-zA-Z0-9_])'
60097 for header in stdio.h; do
60098 # Check for ordinary declaration
60099 cat >conftest.$ac_ext <<_ACEOF
60102 cat confdefs.h >>conftest.$ac_ext
60103 cat >>conftest.$ac_ext <<_ACEOF
60104 /* end confdefs.h. */
60108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60109 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then
60110 ice_cv_have_fclose_decl=yes
60114 if test "$ice_cv_have_fclose_decl" = yes; then
60117 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60118 cat >conftest.$ac_ext <<_ACEOF
60121 cat confdefs.h >>conftest.$ac_ext
60122 cat >>conftest.$ac_ext <<_ACEOF
60123 /* end confdefs.h. */
60127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60128 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60129 ice_cv_have_fclose_decl=yes
60133 if test "$ice_cv_have_fclose_decl" = yes; then
60140 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
60141 $as_echo "$ice_cv_have_fclose_decl" >&6; }
60142 if test "$ice_cv_have_fclose_decl" = yes; then
60144 cat >>confdefs.h <<_ACEOF
60145 #define HAVE_FCLOSE_DECL 1
60154 for ac_func in fflush
60156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60157 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60158 $as_echo_n "checking for $ac_func... " >&6; }
60159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60160 $as_echo_n "(cached) " >&6
60162 cat >conftest.$ac_ext <<_ACEOF
60165 cat confdefs.h >>conftest.$ac_ext
60166 cat >>conftest.$ac_ext <<_ACEOF
60167 /* end confdefs.h. */
60168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60170 #define $ac_func innocuous_$ac_func
60172 /* System header to define __stub macros and hopefully few prototypes,
60173 which can conflict with char $ac_func (); below.
60174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60175 <limits.h> exists even on freestanding compilers. */
60178 # include <limits.h>
60180 # include <assert.h>
60185 /* Override any GCC internal prototype to avoid an error.
60186 Use char because int might match the return type of a GCC
60187 builtin and then its argument prototype would still apply. */
60192 /* The GNU C library defines this for functions which it implements
60193 to always fail with ENOSYS. Some functions are actually named
60194 something starting with __ and the normal name is an alias. */
60195 #if defined __stub_$ac_func || defined __stub___$ac_func
60202 return $ac_func ();
60207 rm -f conftest.$ac_objext conftest$ac_exeext
60208 if { (ac_try="$ac_link"
60209 case "(($ac_try" in
60210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60211 *) ac_try_echo=$ac_try;;
60213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60214 $as_echo "$ac_try_echo") >&5
60215 (eval "$ac_link") 2>conftest.er1
60217 grep -v '^ *+' conftest.er1 >conftest.err
60219 cat conftest.err >&5
60220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60221 (exit $ac_status); } && {
60222 test -z "$ac_c_werror_flag" ||
60223 test ! -s conftest.err
60224 } && test -s conftest$ac_exeext && {
60225 test "$cross_compiling" = yes ||
60226 $as_test_x conftest$ac_exeext
60228 eval "$as_ac_var=yes"
60230 $as_echo "$as_me: failed program was:" >&5
60231 sed 's/^/| /' conftest.$ac_ext >&5
60233 eval "$as_ac_var=no"
60236 rm -rf conftest.dSYM
60237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60238 conftest$ac_exeext conftest.$ac_ext
60240 ac_res=`eval 'as_val=${'$as_ac_var'}
60241 $as_echo "$as_val"'`
60242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60243 $as_echo "$ac_res" >&6; }
60244 as_val=`eval 'as_val=${'$as_ac_var'}
60245 $as_echo "$as_val"'`
60246 if test "x$as_val" = x""yes; then
60247 cat >>confdefs.h <<_ACEOF
60248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60250 ice_have_fflush=yes
60254 if test "${ice_have_fflush}" = yes; then
60255 { $as_echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
60256 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
60257 if test "${ice_cv_have_fflush_decl+set}" = set; then
60258 $as_echo_n "(cached) " >&6
60261 ice_cv_have_fflush_decl=no
60262 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60263 ice_re_word='(^|[^a-zA-Z0-9_])'
60264 for header in stdio.h; do
60265 # Check for ordinary declaration
60266 cat >conftest.$ac_ext <<_ACEOF
60269 cat confdefs.h >>conftest.$ac_ext
60270 cat >>conftest.$ac_ext <<_ACEOF
60271 /* end confdefs.h. */
60275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60276 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then
60277 ice_cv_have_fflush_decl=yes
60281 if test "$ice_cv_have_fflush_decl" = yes; then
60284 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60285 cat >conftest.$ac_ext <<_ACEOF
60288 cat confdefs.h >>conftest.$ac_ext
60289 cat >>conftest.$ac_ext <<_ACEOF
60290 /* end confdefs.h. */
60294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60295 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60296 ice_cv_have_fflush_decl=yes
60300 if test "$ice_cv_have_fflush_decl" = yes; then
60307 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
60308 $as_echo "$ice_cv_have_fflush_decl" >&6; }
60309 if test "$ice_cv_have_fflush_decl" = yes; then
60311 cat >>confdefs.h <<_ACEOF
60312 #define HAVE_FFLUSH_DECL 1
60319 ice_have_fprintf=no
60321 for ac_func in fprintf
60323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60324 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60325 $as_echo_n "checking for $ac_func... " >&6; }
60326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60327 $as_echo_n "(cached) " >&6
60329 cat >conftest.$ac_ext <<_ACEOF
60332 cat confdefs.h >>conftest.$ac_ext
60333 cat >>conftest.$ac_ext <<_ACEOF
60334 /* end confdefs.h. */
60335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60337 #define $ac_func innocuous_$ac_func
60339 /* System header to define __stub macros and hopefully few prototypes,
60340 which can conflict with char $ac_func (); below.
60341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60342 <limits.h> exists even on freestanding compilers. */
60345 # include <limits.h>
60347 # include <assert.h>
60352 /* Override any GCC internal prototype to avoid an error.
60353 Use char because int might match the return type of a GCC
60354 builtin and then its argument prototype would still apply. */
60359 /* The GNU C library defines this for functions which it implements
60360 to always fail with ENOSYS. Some functions are actually named
60361 something starting with __ and the normal name is an alias. */
60362 #if defined __stub_$ac_func || defined __stub___$ac_func
60369 return $ac_func ();
60374 rm -f conftest.$ac_objext conftest$ac_exeext
60375 if { (ac_try="$ac_link"
60376 case "(($ac_try" in
60377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60378 *) ac_try_echo=$ac_try;;
60380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60381 $as_echo "$ac_try_echo") >&5
60382 (eval "$ac_link") 2>conftest.er1
60384 grep -v '^ *+' conftest.er1 >conftest.err
60386 cat conftest.err >&5
60387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60388 (exit $ac_status); } && {
60389 test -z "$ac_c_werror_flag" ||
60390 test ! -s conftest.err
60391 } && test -s conftest$ac_exeext && {
60392 test "$cross_compiling" = yes ||
60393 $as_test_x conftest$ac_exeext
60395 eval "$as_ac_var=yes"
60397 $as_echo "$as_me: failed program was:" >&5
60398 sed 's/^/| /' conftest.$ac_ext >&5
60400 eval "$as_ac_var=no"
60403 rm -rf conftest.dSYM
60404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60405 conftest$ac_exeext conftest.$ac_ext
60407 ac_res=`eval 'as_val=${'$as_ac_var'}
60408 $as_echo "$as_val"'`
60409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60410 $as_echo "$ac_res" >&6; }
60411 as_val=`eval 'as_val=${'$as_ac_var'}
60412 $as_echo "$as_val"'`
60413 if test "x$as_val" = x""yes; then
60414 cat >>confdefs.h <<_ACEOF
60415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60417 ice_have_fprintf=yes
60421 if test "${ice_have_fprintf}" = yes; then
60422 { $as_echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
60423 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
60424 if test "${ice_cv_have_fprintf_decl+set}" = set; then
60425 $as_echo_n "(cached) " >&6
60428 ice_cv_have_fprintf_decl=no
60429 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60430 ice_re_word='(^|[^a-zA-Z0-9_])'
60431 for header in stdio.h; do
60432 # Check for ordinary declaration
60433 cat >conftest.$ac_ext <<_ACEOF
60436 cat confdefs.h >>conftest.$ac_ext
60437 cat >>conftest.$ac_ext <<_ACEOF
60438 /* end confdefs.h. */
60442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60443 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then
60444 ice_cv_have_fprintf_decl=yes
60448 if test "$ice_cv_have_fprintf_decl" = yes; then
60451 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60452 cat >conftest.$ac_ext <<_ACEOF
60455 cat confdefs.h >>conftest.$ac_ext
60456 cat >>conftest.$ac_ext <<_ACEOF
60457 /* end confdefs.h. */
60461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60462 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60463 ice_cv_have_fprintf_decl=yes
60467 if test "$ice_cv_have_fprintf_decl" = yes; then
60474 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
60475 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
60476 if test "$ice_cv_have_fprintf_decl" = yes; then
60478 cat >>confdefs.h <<_ACEOF
60479 #define HAVE_FPRINTF_DECL 1
60488 for ac_func in fputc
60490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60492 $as_echo_n "checking for $ac_func... " >&6; }
60493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60494 $as_echo_n "(cached) " >&6
60496 cat >conftest.$ac_ext <<_ACEOF
60499 cat confdefs.h >>conftest.$ac_ext
60500 cat >>conftest.$ac_ext <<_ACEOF
60501 /* end confdefs.h. */
60502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60504 #define $ac_func innocuous_$ac_func
60506 /* System header to define __stub macros and hopefully few prototypes,
60507 which can conflict with char $ac_func (); below.
60508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60509 <limits.h> exists even on freestanding compilers. */
60512 # include <limits.h>
60514 # include <assert.h>
60519 /* Override any GCC internal prototype to avoid an error.
60520 Use char because int might match the return type of a GCC
60521 builtin and then its argument prototype would still apply. */
60526 /* The GNU C library defines this for functions which it implements
60527 to always fail with ENOSYS. Some functions are actually named
60528 something starting with __ and the normal name is an alias. */
60529 #if defined __stub_$ac_func || defined __stub___$ac_func
60536 return $ac_func ();
60541 rm -f conftest.$ac_objext conftest$ac_exeext
60542 if { (ac_try="$ac_link"
60543 case "(($ac_try" in
60544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60545 *) ac_try_echo=$ac_try;;
60547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60548 $as_echo "$ac_try_echo") >&5
60549 (eval "$ac_link") 2>conftest.er1
60551 grep -v '^ *+' conftest.er1 >conftest.err
60553 cat conftest.err >&5
60554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60555 (exit $ac_status); } && {
60556 test -z "$ac_c_werror_flag" ||
60557 test ! -s conftest.err
60558 } && test -s conftest$ac_exeext && {
60559 test "$cross_compiling" = yes ||
60560 $as_test_x conftest$ac_exeext
60562 eval "$as_ac_var=yes"
60564 $as_echo "$as_me: failed program was:" >&5
60565 sed 's/^/| /' conftest.$ac_ext >&5
60567 eval "$as_ac_var=no"
60570 rm -rf conftest.dSYM
60571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60572 conftest$ac_exeext conftest.$ac_ext
60574 ac_res=`eval 'as_val=${'$as_ac_var'}
60575 $as_echo "$as_val"'`
60576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60577 $as_echo "$ac_res" >&6; }
60578 as_val=`eval 'as_val=${'$as_ac_var'}
60579 $as_echo "$as_val"'`
60580 if test "x$as_val" = x""yes; then
60581 cat >>confdefs.h <<_ACEOF
60582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60588 if test "${ice_have_fputc}" = yes; then
60589 { $as_echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
60590 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
60591 if test "${ice_cv_have_fputc_decl+set}" = set; then
60592 $as_echo_n "(cached) " >&6
60595 ice_cv_have_fputc_decl=no
60596 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60597 ice_re_word='(^|[^a-zA-Z0-9_])'
60598 for header in stdio.h; do
60599 # Check for ordinary declaration
60600 cat >conftest.$ac_ext <<_ACEOF
60603 cat confdefs.h >>conftest.$ac_ext
60604 cat >>conftest.$ac_ext <<_ACEOF
60605 /* end confdefs.h. */
60609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60610 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then
60611 ice_cv_have_fputc_decl=yes
60615 if test "$ice_cv_have_fputc_decl" = yes; then
60618 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60619 cat >conftest.$ac_ext <<_ACEOF
60622 cat confdefs.h >>conftest.$ac_ext
60623 cat >>conftest.$ac_ext <<_ACEOF
60624 /* end confdefs.h. */
60628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60629 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60630 ice_cv_have_fputc_decl=yes
60634 if test "$ice_cv_have_fputc_decl" = yes; then
60641 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
60642 $as_echo "$ice_cv_have_fputc_decl" >&6; }
60643 if test "$ice_cv_have_fputc_decl" = yes; then
60645 cat >>confdefs.h <<_ACEOF
60646 #define HAVE_FPUTC_DECL 1
60655 for ac_func in fputs
60657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60658 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60659 $as_echo_n "checking for $ac_func... " >&6; }
60660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60661 $as_echo_n "(cached) " >&6
60663 cat >conftest.$ac_ext <<_ACEOF
60666 cat confdefs.h >>conftest.$ac_ext
60667 cat >>conftest.$ac_ext <<_ACEOF
60668 /* end confdefs.h. */
60669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60671 #define $ac_func innocuous_$ac_func
60673 /* System header to define __stub macros and hopefully few prototypes,
60674 which can conflict with char $ac_func (); below.
60675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60676 <limits.h> exists even on freestanding compilers. */
60679 # include <limits.h>
60681 # include <assert.h>
60686 /* Override any GCC internal prototype to avoid an error.
60687 Use char because int might match the return type of a GCC
60688 builtin and then its argument prototype would still apply. */
60693 /* The GNU C library defines this for functions which it implements
60694 to always fail with ENOSYS. Some functions are actually named
60695 something starting with __ and the normal name is an alias. */
60696 #if defined __stub_$ac_func || defined __stub___$ac_func
60703 return $ac_func ();
60708 rm -f conftest.$ac_objext conftest$ac_exeext
60709 if { (ac_try="$ac_link"
60710 case "(($ac_try" in
60711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60712 *) ac_try_echo=$ac_try;;
60714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60715 $as_echo "$ac_try_echo") >&5
60716 (eval "$ac_link") 2>conftest.er1
60718 grep -v '^ *+' conftest.er1 >conftest.err
60720 cat conftest.err >&5
60721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60722 (exit $ac_status); } && {
60723 test -z "$ac_c_werror_flag" ||
60724 test ! -s conftest.err
60725 } && test -s conftest$ac_exeext && {
60726 test "$cross_compiling" = yes ||
60727 $as_test_x conftest$ac_exeext
60729 eval "$as_ac_var=yes"
60731 $as_echo "$as_me: failed program was:" >&5
60732 sed 's/^/| /' conftest.$ac_ext >&5
60734 eval "$as_ac_var=no"
60737 rm -rf conftest.dSYM
60738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60739 conftest$ac_exeext conftest.$ac_ext
60741 ac_res=`eval 'as_val=${'$as_ac_var'}
60742 $as_echo "$as_val"'`
60743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60744 $as_echo "$ac_res" >&6; }
60745 as_val=`eval 'as_val=${'$as_ac_var'}
60746 $as_echo "$as_val"'`
60747 if test "x$as_val" = x""yes; then
60748 cat >>confdefs.h <<_ACEOF
60749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60755 if test "${ice_have_fputs}" = yes; then
60756 { $as_echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
60757 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
60758 if test "${ice_cv_have_fputs_decl+set}" = set; then
60759 $as_echo_n "(cached) " >&6
60762 ice_cv_have_fputs_decl=no
60763 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60764 ice_re_word='(^|[^a-zA-Z0-9_])'
60765 for header in stdio.h; do
60766 # Check for ordinary declaration
60767 cat >conftest.$ac_ext <<_ACEOF
60770 cat confdefs.h >>conftest.$ac_ext
60771 cat >>conftest.$ac_ext <<_ACEOF
60772 /* end confdefs.h. */
60776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60777 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then
60778 ice_cv_have_fputs_decl=yes
60782 if test "$ice_cv_have_fputs_decl" = yes; then
60785 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60786 cat >conftest.$ac_ext <<_ACEOF
60789 cat confdefs.h >>conftest.$ac_ext
60790 cat >>conftest.$ac_ext <<_ACEOF
60791 /* end confdefs.h. */
60795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60796 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60797 ice_cv_have_fputs_decl=yes
60801 if test "$ice_cv_have_fputs_decl" = yes; then
60808 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
60809 $as_echo "$ice_cv_have_fputs_decl" >&6; }
60810 if test "$ice_cv_have_fputs_decl" = yes; then
60812 cat >>confdefs.h <<_ACEOF
60813 #define HAVE_FPUTS_DECL 1
60822 for ac_func in fread
60824 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60825 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60826 $as_echo_n "checking for $ac_func... " >&6; }
60827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60828 $as_echo_n "(cached) " >&6
60830 cat >conftest.$ac_ext <<_ACEOF
60833 cat confdefs.h >>conftest.$ac_ext
60834 cat >>conftest.$ac_ext <<_ACEOF
60835 /* end confdefs.h. */
60836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60838 #define $ac_func innocuous_$ac_func
60840 /* System header to define __stub macros and hopefully few prototypes,
60841 which can conflict with char $ac_func (); below.
60842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60843 <limits.h> exists even on freestanding compilers. */
60846 # include <limits.h>
60848 # include <assert.h>
60853 /* Override any GCC internal prototype to avoid an error.
60854 Use char because int might match the return type of a GCC
60855 builtin and then its argument prototype would still apply. */
60860 /* The GNU C library defines this for functions which it implements
60861 to always fail with ENOSYS. Some functions are actually named
60862 something starting with __ and the normal name is an alias. */
60863 #if defined __stub_$ac_func || defined __stub___$ac_func
60870 return $ac_func ();
60875 rm -f conftest.$ac_objext conftest$ac_exeext
60876 if { (ac_try="$ac_link"
60877 case "(($ac_try" in
60878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60879 *) ac_try_echo=$ac_try;;
60881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60882 $as_echo "$ac_try_echo") >&5
60883 (eval "$ac_link") 2>conftest.er1
60885 grep -v '^ *+' conftest.er1 >conftest.err
60887 cat conftest.err >&5
60888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60889 (exit $ac_status); } && {
60890 test -z "$ac_c_werror_flag" ||
60891 test ! -s conftest.err
60892 } && test -s conftest$ac_exeext && {
60893 test "$cross_compiling" = yes ||
60894 $as_test_x conftest$ac_exeext
60896 eval "$as_ac_var=yes"
60898 $as_echo "$as_me: failed program was:" >&5
60899 sed 's/^/| /' conftest.$ac_ext >&5
60901 eval "$as_ac_var=no"
60904 rm -rf conftest.dSYM
60905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60906 conftest$ac_exeext conftest.$ac_ext
60908 ac_res=`eval 'as_val=${'$as_ac_var'}
60909 $as_echo "$as_val"'`
60910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60911 $as_echo "$ac_res" >&6; }
60912 as_val=`eval 'as_val=${'$as_ac_var'}
60913 $as_echo "$as_val"'`
60914 if test "x$as_val" = x""yes; then
60915 cat >>confdefs.h <<_ACEOF
60916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60922 if test "${ice_have_fread}" = yes; then
60923 { $as_echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
60924 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
60925 if test "${ice_cv_have_fread_decl+set}" = set; then
60926 $as_echo_n "(cached) " >&6
60929 ice_cv_have_fread_decl=no
60930 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60931 ice_re_word='(^|[^a-zA-Z0-9_])'
60932 for header in stdio.h stdlib.h; do
60933 # Check for ordinary declaration
60934 cat >conftest.$ac_ext <<_ACEOF
60937 cat confdefs.h >>conftest.$ac_ext
60938 cat >>conftest.$ac_ext <<_ACEOF
60939 /* end confdefs.h. */
60943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60944 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then
60945 ice_cv_have_fread_decl=yes
60949 if test "$ice_cv_have_fread_decl" = yes; then
60952 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60953 cat >conftest.$ac_ext <<_ACEOF
60956 cat confdefs.h >>conftest.$ac_ext
60957 cat >>conftest.$ac_ext <<_ACEOF
60958 /* end confdefs.h. */
60962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60963 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60964 ice_cv_have_fread_decl=yes
60968 if test "$ice_cv_have_fread_decl" = yes; then
60975 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
60976 $as_echo "$ice_cv_have_fread_decl" >&6; }
60977 if test "$ice_cv_have_fread_decl" = yes; then
60979 cat >>confdefs.h <<_ACEOF
60980 #define HAVE_FREAD_DECL 1
60989 for ac_func in fseek
60991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60993 $as_echo_n "checking for $ac_func... " >&6; }
60994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60995 $as_echo_n "(cached) " >&6
60997 cat >conftest.$ac_ext <<_ACEOF
61000 cat confdefs.h >>conftest.$ac_ext
61001 cat >>conftest.$ac_ext <<_ACEOF
61002 /* end confdefs.h. */
61003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61005 #define $ac_func innocuous_$ac_func
61007 /* System header to define __stub macros and hopefully few prototypes,
61008 which can conflict with char $ac_func (); below.
61009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61010 <limits.h> exists even on freestanding compilers. */
61013 # include <limits.h>
61015 # include <assert.h>
61020 /* Override any GCC internal prototype to avoid an error.
61021 Use char because int might match the return type of a GCC
61022 builtin and then its argument prototype would still apply. */
61027 /* The GNU C library defines this for functions which it implements
61028 to always fail with ENOSYS. Some functions are actually named
61029 something starting with __ and the normal name is an alias. */
61030 #if defined __stub_$ac_func || defined __stub___$ac_func
61037 return $ac_func ();
61042 rm -f conftest.$ac_objext conftest$ac_exeext
61043 if { (ac_try="$ac_link"
61044 case "(($ac_try" in
61045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61046 *) ac_try_echo=$ac_try;;
61048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61049 $as_echo "$ac_try_echo") >&5
61050 (eval "$ac_link") 2>conftest.er1
61052 grep -v '^ *+' conftest.er1 >conftest.err
61054 cat conftest.err >&5
61055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61056 (exit $ac_status); } && {
61057 test -z "$ac_c_werror_flag" ||
61058 test ! -s conftest.err
61059 } && test -s conftest$ac_exeext && {
61060 test "$cross_compiling" = yes ||
61061 $as_test_x conftest$ac_exeext
61063 eval "$as_ac_var=yes"
61065 $as_echo "$as_me: failed program was:" >&5
61066 sed 's/^/| /' conftest.$ac_ext >&5
61068 eval "$as_ac_var=no"
61071 rm -rf conftest.dSYM
61072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61073 conftest$ac_exeext conftest.$ac_ext
61075 ac_res=`eval 'as_val=${'$as_ac_var'}
61076 $as_echo "$as_val"'`
61077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61078 $as_echo "$ac_res" >&6; }
61079 as_val=`eval 'as_val=${'$as_ac_var'}
61080 $as_echo "$as_val"'`
61081 if test "x$as_val" = x""yes; then
61082 cat >>confdefs.h <<_ACEOF
61083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61089 if test "${ice_have_fseek}" = yes; then
61090 { $as_echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
61091 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
61092 if test "${ice_cv_have_fseek_decl+set}" = set; then
61093 $as_echo_n "(cached) " >&6
61096 ice_cv_have_fseek_decl=no
61097 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61098 ice_re_word='(^|[^a-zA-Z0-9_])'
61099 for header in stdio.h; do
61100 # Check for ordinary declaration
61101 cat >conftest.$ac_ext <<_ACEOF
61104 cat confdefs.h >>conftest.$ac_ext
61105 cat >>conftest.$ac_ext <<_ACEOF
61106 /* end confdefs.h. */
61110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61111 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then
61112 ice_cv_have_fseek_decl=yes
61116 if test "$ice_cv_have_fseek_decl" = yes; then
61119 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61120 cat >conftest.$ac_ext <<_ACEOF
61123 cat confdefs.h >>conftest.$ac_ext
61124 cat >>conftest.$ac_ext <<_ACEOF
61125 /* end confdefs.h. */
61129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61130 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61131 ice_cv_have_fseek_decl=yes
61135 if test "$ice_cv_have_fseek_decl" = yes; then
61142 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
61143 $as_echo "$ice_cv_have_fseek_decl" >&6; }
61144 if test "$ice_cv_have_fseek_decl" = yes; then
61146 cat >>confdefs.h <<_ACEOF
61147 #define HAVE_FSEEK_DECL 1
61156 for ac_func in fwrite
61158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61159 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61160 $as_echo_n "checking for $ac_func... " >&6; }
61161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61162 $as_echo_n "(cached) " >&6
61164 cat >conftest.$ac_ext <<_ACEOF
61167 cat confdefs.h >>conftest.$ac_ext
61168 cat >>conftest.$ac_ext <<_ACEOF
61169 /* end confdefs.h. */
61170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61172 #define $ac_func innocuous_$ac_func
61174 /* System header to define __stub macros and hopefully few prototypes,
61175 which can conflict with char $ac_func (); below.
61176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61177 <limits.h> exists even on freestanding compilers. */
61180 # include <limits.h>
61182 # include <assert.h>
61187 /* Override any GCC internal prototype to avoid an error.
61188 Use char because int might match the return type of a GCC
61189 builtin and then its argument prototype would still apply. */
61194 /* The GNU C library defines this for functions which it implements
61195 to always fail with ENOSYS. Some functions are actually named
61196 something starting with __ and the normal name is an alias. */
61197 #if defined __stub_$ac_func || defined __stub___$ac_func
61204 return $ac_func ();
61209 rm -f conftest.$ac_objext conftest$ac_exeext
61210 if { (ac_try="$ac_link"
61211 case "(($ac_try" in
61212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61213 *) ac_try_echo=$ac_try;;
61215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61216 $as_echo "$ac_try_echo") >&5
61217 (eval "$ac_link") 2>conftest.er1
61219 grep -v '^ *+' conftest.er1 >conftest.err
61221 cat conftest.err >&5
61222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61223 (exit $ac_status); } && {
61224 test -z "$ac_c_werror_flag" ||
61225 test ! -s conftest.err
61226 } && test -s conftest$ac_exeext && {
61227 test "$cross_compiling" = yes ||
61228 $as_test_x conftest$ac_exeext
61230 eval "$as_ac_var=yes"
61232 $as_echo "$as_me: failed program was:" >&5
61233 sed 's/^/| /' conftest.$ac_ext >&5
61235 eval "$as_ac_var=no"
61238 rm -rf conftest.dSYM
61239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61240 conftest$ac_exeext conftest.$ac_ext
61242 ac_res=`eval 'as_val=${'$as_ac_var'}
61243 $as_echo "$as_val"'`
61244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61245 $as_echo "$ac_res" >&6; }
61246 as_val=`eval 'as_val=${'$as_ac_var'}
61247 $as_echo "$as_val"'`
61248 if test "x$as_val" = x""yes; then
61249 cat >>confdefs.h <<_ACEOF
61250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61252 ice_have_fwrite=yes
61256 if test "${ice_have_fwrite}" = yes; then
61257 { $as_echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
61258 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
61259 if test "${ice_cv_have_fwrite_decl+set}" = set; then
61260 $as_echo_n "(cached) " >&6
61263 ice_cv_have_fwrite_decl=no
61264 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61265 ice_re_word='(^|[^a-zA-Z0-9_])'
61266 for header in stdio.h stdlib.h; do
61267 # Check for ordinary declaration
61268 cat >conftest.$ac_ext <<_ACEOF
61271 cat confdefs.h >>conftest.$ac_ext
61272 cat >>conftest.$ac_ext <<_ACEOF
61273 /* end confdefs.h. */
61277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61278 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then
61279 ice_cv_have_fwrite_decl=yes
61283 if test "$ice_cv_have_fwrite_decl" = yes; then
61286 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61287 cat >conftest.$ac_ext <<_ACEOF
61290 cat confdefs.h >>conftest.$ac_ext
61291 cat >>conftest.$ac_ext <<_ACEOF
61292 /* end confdefs.h. */
61296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61297 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61298 ice_cv_have_fwrite_decl=yes
61302 if test "$ice_cv_have_fwrite_decl" = yes; then
61309 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
61310 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
61311 if test "$ice_cv_have_fwrite_decl" = yes; then
61313 cat >>confdefs.h <<_ACEOF
61314 #define HAVE_FWRITE_DECL 1
61321 for ac_func in getgrgid_r
61323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61324 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61325 $as_echo_n "checking for $ac_func... " >&6; }
61326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61327 $as_echo_n "(cached) " >&6
61329 cat >conftest.$ac_ext <<_ACEOF
61332 cat confdefs.h >>conftest.$ac_ext
61333 cat >>conftest.$ac_ext <<_ACEOF
61334 /* end confdefs.h. */
61335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61337 #define $ac_func innocuous_$ac_func
61339 /* System header to define __stub macros and hopefully few prototypes,
61340 which can conflict with char $ac_func (); below.
61341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61342 <limits.h> exists even on freestanding compilers. */
61345 # include <limits.h>
61347 # include <assert.h>
61352 /* Override any GCC internal prototype to avoid an error.
61353 Use char because int might match the return type of a GCC
61354 builtin and then its argument prototype would still apply. */
61359 /* The GNU C library defines this for functions which it implements
61360 to always fail with ENOSYS. Some functions are actually named
61361 something starting with __ and the normal name is an alias. */
61362 #if defined __stub_$ac_func || defined __stub___$ac_func
61369 return $ac_func ();
61374 rm -f conftest.$ac_objext conftest$ac_exeext
61375 if { (ac_try="$ac_link"
61376 case "(($ac_try" in
61377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61378 *) ac_try_echo=$ac_try;;
61380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61381 $as_echo "$ac_try_echo") >&5
61382 (eval "$ac_link") 2>conftest.er1
61384 grep -v '^ *+' conftest.er1 >conftest.err
61386 cat conftest.err >&5
61387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61388 (exit $ac_status); } && {
61389 test -z "$ac_c_werror_flag" ||
61390 test ! -s conftest.err
61391 } && test -s conftest$ac_exeext && {
61392 test "$cross_compiling" = yes ||
61393 $as_test_x conftest$ac_exeext
61395 eval "$as_ac_var=yes"
61397 $as_echo "$as_me: failed program was:" >&5
61398 sed 's/^/| /' conftest.$ac_ext >&5
61400 eval "$as_ac_var=no"
61403 rm -rf conftest.dSYM
61404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61405 conftest$ac_exeext conftest.$ac_ext
61407 ac_res=`eval 'as_val=${'$as_ac_var'}
61408 $as_echo "$as_val"'`
61409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61410 $as_echo "$ac_res" >&6; }
61411 as_val=`eval 'as_val=${'$as_ac_var'}
61412 $as_echo "$as_val"'`
61413 if test "x$as_val" = x""yes; then
61414 cat >>confdefs.h <<_ACEOF
61415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61422 for ac_func in getpwuid_r
61424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61425 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61426 $as_echo_n "checking for $ac_func... " >&6; }
61427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61428 $as_echo_n "(cached) " >&6
61430 cat >conftest.$ac_ext <<_ACEOF
61433 cat confdefs.h >>conftest.$ac_ext
61434 cat >>conftest.$ac_ext <<_ACEOF
61435 /* end confdefs.h. */
61436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61438 #define $ac_func innocuous_$ac_func
61440 /* System header to define __stub macros and hopefully few prototypes,
61441 which can conflict with char $ac_func (); below.
61442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61443 <limits.h> exists even on freestanding compilers. */
61446 # include <limits.h>
61448 # include <assert.h>
61453 /* Override any GCC internal prototype to avoid an error.
61454 Use char because int might match the return type of a GCC
61455 builtin and then its argument prototype would still apply. */
61460 /* The GNU C library defines this for functions which it implements
61461 to always fail with ENOSYS. Some functions are actually named
61462 something starting with __ and the normal name is an alias. */
61463 #if defined __stub_$ac_func || defined __stub___$ac_func
61470 return $ac_func ();
61475 rm -f conftest.$ac_objext conftest$ac_exeext
61476 if { (ac_try="$ac_link"
61477 case "(($ac_try" in
61478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61479 *) ac_try_echo=$ac_try;;
61481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61482 $as_echo "$ac_try_echo") >&5
61483 (eval "$ac_link") 2>conftest.er1
61485 grep -v '^ *+' conftest.er1 >conftest.err
61487 cat conftest.err >&5
61488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61489 (exit $ac_status); } && {
61490 test -z "$ac_c_werror_flag" ||
61491 test ! -s conftest.err
61492 } && test -s conftest$ac_exeext && {
61493 test "$cross_compiling" = yes ||
61494 $as_test_x conftest$ac_exeext
61496 eval "$as_ac_var=yes"
61498 $as_echo "$as_me: failed program was:" >&5
61499 sed 's/^/| /' conftest.$ac_ext >&5
61501 eval "$as_ac_var=no"
61504 rm -rf conftest.dSYM
61505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61506 conftest$ac_exeext conftest.$ac_ext
61508 ac_res=`eval 'as_val=${'$as_ac_var'}
61509 $as_echo "$as_val"'`
61510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61511 $as_echo "$ac_res" >&6; }
61512 as_val=`eval 'as_val=${'$as_ac_var'}
61513 $as_echo "$as_val"'`
61514 if test "x$as_val" = x""yes; then
61515 cat >>confdefs.h <<_ACEOF
61516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61523 ice_have_gethostname=no
61525 for ac_func in gethostname
61527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61528 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61529 $as_echo_n "checking for $ac_func... " >&6; }
61530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61531 $as_echo_n "(cached) " >&6
61533 cat >conftest.$ac_ext <<_ACEOF
61536 cat confdefs.h >>conftest.$ac_ext
61537 cat >>conftest.$ac_ext <<_ACEOF
61538 /* end confdefs.h. */
61539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61541 #define $ac_func innocuous_$ac_func
61543 /* System header to define __stub macros and hopefully few prototypes,
61544 which can conflict with char $ac_func (); below.
61545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61546 <limits.h> exists even on freestanding compilers. */
61549 # include <limits.h>
61551 # include <assert.h>
61556 /* Override any GCC internal prototype to avoid an error.
61557 Use char because int might match the return type of a GCC
61558 builtin and then its argument prototype would still apply. */
61563 /* The GNU C library defines this for functions which it implements
61564 to always fail with ENOSYS. Some functions are actually named
61565 something starting with __ and the normal name is an alias. */
61566 #if defined __stub_$ac_func || defined __stub___$ac_func
61573 return $ac_func ();
61578 rm -f conftest.$ac_objext conftest$ac_exeext
61579 if { (ac_try="$ac_link"
61580 case "(($ac_try" in
61581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61582 *) ac_try_echo=$ac_try;;
61584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61585 $as_echo "$ac_try_echo") >&5
61586 (eval "$ac_link") 2>conftest.er1
61588 grep -v '^ *+' conftest.er1 >conftest.err
61590 cat conftest.err >&5
61591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61592 (exit $ac_status); } && {
61593 test -z "$ac_c_werror_flag" ||
61594 test ! -s conftest.err
61595 } && test -s conftest$ac_exeext && {
61596 test "$cross_compiling" = yes ||
61597 $as_test_x conftest$ac_exeext
61599 eval "$as_ac_var=yes"
61601 $as_echo "$as_me: failed program was:" >&5
61602 sed 's/^/| /' conftest.$ac_ext >&5
61604 eval "$as_ac_var=no"
61607 rm -rf conftest.dSYM
61608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61609 conftest$ac_exeext conftest.$ac_ext
61611 ac_res=`eval 'as_val=${'$as_ac_var'}
61612 $as_echo "$as_val"'`
61613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61614 $as_echo "$ac_res" >&6; }
61615 as_val=`eval 'as_val=${'$as_ac_var'}
61616 $as_echo "$as_val"'`
61617 if test "x$as_val" = x""yes; then
61618 cat >>confdefs.h <<_ACEOF
61619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61621 ice_have_gethostname=yes
61625 if test "${ice_have_gethostname}" = yes; then
61626 { $as_echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
61627 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
61628 if test "${ice_cv_have_gethostname_decl+set}" = set; then
61629 $as_echo_n "(cached) " >&6
61632 ice_cv_have_gethostname_decl=no
61633 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61634 ice_re_word='(^|[^a-zA-Z0-9_])'
61635 for header in unistd.h; do
61636 # Check for ordinary declaration
61637 cat >conftest.$ac_ext <<_ACEOF
61640 cat confdefs.h >>conftest.$ac_ext
61641 cat >>conftest.$ac_ext <<_ACEOF
61642 /* end confdefs.h. */
61646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61647 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then
61648 ice_cv_have_gethostname_decl=yes
61652 if test "$ice_cv_have_gethostname_decl" = yes; then
61655 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61656 cat >conftest.$ac_ext <<_ACEOF
61659 cat confdefs.h >>conftest.$ac_ext
61660 cat >>conftest.$ac_ext <<_ACEOF
61661 /* end confdefs.h. */
61665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61666 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61667 ice_cv_have_gethostname_decl=yes
61671 if test "$ice_cv_have_gethostname_decl" = yes; then
61678 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
61679 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
61680 if test "$ice_cv_have_gethostname_decl" = yes; then
61682 cat >>confdefs.h <<_ACEOF
61683 #define HAVE_GETHOSTNAME_DECL 1
61692 for ac_func in getopt
61694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61695 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61696 $as_echo_n "checking for $ac_func... " >&6; }
61697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61698 $as_echo_n "(cached) " >&6
61700 cat >conftest.$ac_ext <<_ACEOF
61703 cat confdefs.h >>conftest.$ac_ext
61704 cat >>conftest.$ac_ext <<_ACEOF
61705 /* end confdefs.h. */
61706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61708 #define $ac_func innocuous_$ac_func
61710 /* System header to define __stub macros and hopefully few prototypes,
61711 which can conflict with char $ac_func (); below.
61712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61713 <limits.h> exists even on freestanding compilers. */
61716 # include <limits.h>
61718 # include <assert.h>
61723 /* Override any GCC internal prototype to avoid an error.
61724 Use char because int might match the return type of a GCC
61725 builtin and then its argument prototype would still apply. */
61730 /* The GNU C library defines this for functions which it implements
61731 to always fail with ENOSYS. Some functions are actually named
61732 something starting with __ and the normal name is an alias. */
61733 #if defined __stub_$ac_func || defined __stub___$ac_func
61740 return $ac_func ();
61745 rm -f conftest.$ac_objext conftest$ac_exeext
61746 if { (ac_try="$ac_link"
61747 case "(($ac_try" in
61748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61749 *) ac_try_echo=$ac_try;;
61751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61752 $as_echo "$ac_try_echo") >&5
61753 (eval "$ac_link") 2>conftest.er1
61755 grep -v '^ *+' conftest.er1 >conftest.err
61757 cat conftest.err >&5
61758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61759 (exit $ac_status); } && {
61760 test -z "$ac_c_werror_flag" ||
61761 test ! -s conftest.err
61762 } && test -s conftest$ac_exeext && {
61763 test "$cross_compiling" = yes ||
61764 $as_test_x conftest$ac_exeext
61766 eval "$as_ac_var=yes"
61768 $as_echo "$as_me: failed program was:" >&5
61769 sed 's/^/| /' conftest.$ac_ext >&5
61771 eval "$as_ac_var=no"
61774 rm -rf conftest.dSYM
61775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61776 conftest$ac_exeext conftest.$ac_ext
61778 ac_res=`eval 'as_val=${'$as_ac_var'}
61779 $as_echo "$as_val"'`
61780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61781 $as_echo "$ac_res" >&6; }
61782 as_val=`eval 'as_val=${'$as_ac_var'}
61783 $as_echo "$as_val"'`
61784 if test "x$as_val" = x""yes; then
61785 cat >>confdefs.h <<_ACEOF
61786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61788 ice_have_getopt=yes
61792 if test "${ice_have_getopt}" = yes; then
61793 { $as_echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
61794 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
61795 if test "${ice_cv_have_getopt_decl+set}" = set; then
61796 $as_echo_n "(cached) " >&6
61799 ice_cv_have_getopt_decl=no
61800 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61801 ice_re_word='(^|[^a-zA-Z0-9_])'
61802 for header in stdlib.h unistd.h libc.h; do
61803 # Check for ordinary declaration
61804 cat >conftest.$ac_ext <<_ACEOF
61807 cat confdefs.h >>conftest.$ac_ext
61808 cat >>conftest.$ac_ext <<_ACEOF
61809 /* end confdefs.h. */
61813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61814 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then
61815 ice_cv_have_getopt_decl=yes
61819 if test "$ice_cv_have_getopt_decl" = yes; then
61822 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61823 cat >conftest.$ac_ext <<_ACEOF
61826 cat confdefs.h >>conftest.$ac_ext
61827 cat >>conftest.$ac_ext <<_ACEOF
61828 /* end confdefs.h. */
61832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61833 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61834 ice_cv_have_getopt_decl=yes
61838 if test "$ice_cv_have_getopt_decl" = yes; then
61845 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
61846 $as_echo "$ice_cv_have_getopt_decl" >&6; }
61847 if test "$ice_cv_have_getopt_decl" = yes; then
61849 cat >>confdefs.h <<_ACEOF
61850 #define HAVE_GETOPT_DECL 1
61857 ice_have_getpeername=no
61859 for ac_func in getpeername
61861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61862 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61863 $as_echo_n "checking for $ac_func... " >&6; }
61864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61865 $as_echo_n "(cached) " >&6
61867 cat >conftest.$ac_ext <<_ACEOF
61870 cat confdefs.h >>conftest.$ac_ext
61871 cat >>conftest.$ac_ext <<_ACEOF
61872 /* end confdefs.h. */
61873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61875 #define $ac_func innocuous_$ac_func
61877 /* System header to define __stub macros and hopefully few prototypes,
61878 which can conflict with char $ac_func (); below.
61879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61880 <limits.h> exists even on freestanding compilers. */
61883 # include <limits.h>
61885 # include <assert.h>
61890 /* Override any GCC internal prototype to avoid an error.
61891 Use char because int might match the return type of a GCC
61892 builtin and then its argument prototype would still apply. */
61897 /* The GNU C library defines this for functions which it implements
61898 to always fail with ENOSYS. Some functions are actually named
61899 something starting with __ and the normal name is an alias. */
61900 #if defined __stub_$ac_func || defined __stub___$ac_func
61907 return $ac_func ();
61912 rm -f conftest.$ac_objext conftest$ac_exeext
61913 if { (ac_try="$ac_link"
61914 case "(($ac_try" in
61915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61916 *) ac_try_echo=$ac_try;;
61918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61919 $as_echo "$ac_try_echo") >&5
61920 (eval "$ac_link") 2>conftest.er1
61922 grep -v '^ *+' conftest.er1 >conftest.err
61924 cat conftest.err >&5
61925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61926 (exit $ac_status); } && {
61927 test -z "$ac_c_werror_flag" ||
61928 test ! -s conftest.err
61929 } && test -s conftest$ac_exeext && {
61930 test "$cross_compiling" = yes ||
61931 $as_test_x conftest$ac_exeext
61933 eval "$as_ac_var=yes"
61935 $as_echo "$as_me: failed program was:" >&5
61936 sed 's/^/| /' conftest.$ac_ext >&5
61938 eval "$as_ac_var=no"
61941 rm -rf conftest.dSYM
61942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61943 conftest$ac_exeext conftest.$ac_ext
61945 ac_res=`eval 'as_val=${'$as_ac_var'}
61946 $as_echo "$as_val"'`
61947 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61948 $as_echo "$ac_res" >&6; }
61949 as_val=`eval 'as_val=${'$as_ac_var'}
61950 $as_echo "$as_val"'`
61951 if test "x$as_val" = x""yes; then
61952 cat >>confdefs.h <<_ACEOF
61953 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61955 ice_have_getpeername=yes
61959 if test "${ice_have_getpeername}" = yes; then
61960 { $as_echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
61961 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
61962 if test "${ice_cv_have_getpeername_decl+set}" = set; then
61963 $as_echo_n "(cached) " >&6
61966 ice_cv_have_getpeername_decl=no
61967 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61968 ice_re_word='(^|[^a-zA-Z0-9_])'
61969 for header in sys/types.h sys/socket.h; do
61970 # Check for ordinary declaration
61971 cat >conftest.$ac_ext <<_ACEOF
61974 cat confdefs.h >>conftest.$ac_ext
61975 cat >>conftest.$ac_ext <<_ACEOF
61976 /* end confdefs.h. */
61980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61981 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then
61982 ice_cv_have_getpeername_decl=yes
61986 if test "$ice_cv_have_getpeername_decl" = yes; then
61989 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61990 cat >conftest.$ac_ext <<_ACEOF
61993 cat confdefs.h >>conftest.$ac_ext
61994 cat >>conftest.$ac_ext <<_ACEOF
61995 /* end confdefs.h. */
61999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62000 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62001 ice_cv_have_getpeername_decl=yes
62005 if test "$ice_cv_have_getpeername_decl" = yes; then
62012 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
62013 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
62014 if test "$ice_cv_have_getpeername_decl" = yes; then
62016 cat >>confdefs.h <<_ACEOF
62017 #define HAVE_GETPEERNAME_DECL 1
62023 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
62024 $as_echo_n "checking for getpgrp... " >&6; }
62025 if test "${ac_cv_func_getpgrp+set}" = set; then
62026 $as_echo_n "(cached) " >&6
62028 cat >conftest.$ac_ext <<_ACEOF
62031 cat confdefs.h >>conftest.$ac_ext
62032 cat >>conftest.$ac_ext <<_ACEOF
62033 /* end confdefs.h. */
62034 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
62035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62036 #define getpgrp innocuous_getpgrp
62038 /* System header to define __stub macros and hopefully few prototypes,
62039 which can conflict with char getpgrp (); below.
62040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62041 <limits.h> exists even on freestanding compilers. */
62044 # include <limits.h>
62046 # include <assert.h>
62051 /* Override any GCC internal prototype to avoid an error.
62052 Use char because int might match the return type of a GCC
62053 builtin and then its argument prototype would still apply. */
62058 /* The GNU C library defines this for functions which it implements
62059 to always fail with ENOSYS. Some functions are actually named
62060 something starting with __ and the normal name is an alias. */
62061 #if defined __stub_getpgrp || defined __stub___getpgrp
62073 rm -f conftest.$ac_objext conftest$ac_exeext
62074 if { (ac_try="$ac_link"
62075 case "(($ac_try" in
62076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62077 *) ac_try_echo=$ac_try;;
62079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62080 $as_echo "$ac_try_echo") >&5
62081 (eval "$ac_link") 2>conftest.er1
62083 grep -v '^ *+' conftest.er1 >conftest.err
62085 cat conftest.err >&5
62086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62087 (exit $ac_status); } && {
62088 test -z "$ac_c_werror_flag" ||
62089 test ! -s conftest.err
62090 } && test -s conftest$ac_exeext && {
62091 test "$cross_compiling" = yes ||
62092 $as_test_x conftest$ac_exeext
62094 ac_cv_func_getpgrp=yes
62096 $as_echo "$as_me: failed program was:" >&5
62097 sed 's/^/| /' conftest.$ac_ext >&5
62099 ac_cv_func_getpgrp=no
62102 rm -rf conftest.dSYM
62103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62104 conftest$ac_exeext conftest.$ac_ext
62106 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
62107 $as_echo "$ac_cv_func_getpgrp" >&6; }
62109 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
62110 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
62111 if test "${ac_cv_func_getpgrp_void+set}" = set; then
62112 $as_echo_n "(cached) " >&6
62114 # Use it with a single arg.
62115 cat >conftest.$ac_ext <<_ACEOF
62118 cat confdefs.h >>conftest.$ac_ext
62119 cat >>conftest.$ac_ext <<_ACEOF
62120 /* end confdefs.h. */
62121 $ac_includes_default
62130 rm -f conftest.$ac_objext
62131 if { (ac_try="$ac_compile"
62132 case "(($ac_try" in
62133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62134 *) ac_try_echo=$ac_try;;
62136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62137 $as_echo "$ac_try_echo") >&5
62138 (eval "$ac_compile") 2>conftest.er1
62140 grep -v '^ *+' conftest.er1 >conftest.err
62142 cat conftest.err >&5
62143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62144 (exit $ac_status); } && {
62145 test -z "$ac_c_werror_flag" ||
62146 test ! -s conftest.err
62147 } && test -s conftest.$ac_objext; then
62148 ac_cv_func_getpgrp_void=no
62150 $as_echo "$as_me: failed program was:" >&5
62151 sed 's/^/| /' conftest.$ac_ext >&5
62153 ac_cv_func_getpgrp_void=yes
62156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62159 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
62160 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
62161 if test $ac_cv_func_getpgrp_void = yes; then
62163 cat >>confdefs.h <<\_ACEOF
62164 #define GETPGRP_VOID 1
62170 ice_have_getsockname=no
62172 for ac_func in getsockname
62174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62175 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62176 $as_echo_n "checking for $ac_func... " >&6; }
62177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62178 $as_echo_n "(cached) " >&6
62180 cat >conftest.$ac_ext <<_ACEOF
62183 cat confdefs.h >>conftest.$ac_ext
62184 cat >>conftest.$ac_ext <<_ACEOF
62185 /* end confdefs.h. */
62186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62188 #define $ac_func innocuous_$ac_func
62190 /* System header to define __stub macros and hopefully few prototypes,
62191 which can conflict with char $ac_func (); below.
62192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62193 <limits.h> exists even on freestanding compilers. */
62196 # include <limits.h>
62198 # include <assert.h>
62203 /* Override any GCC internal prototype to avoid an error.
62204 Use char because int might match the return type of a GCC
62205 builtin and then its argument prototype would still apply. */
62210 /* The GNU C library defines this for functions which it implements
62211 to always fail with ENOSYS. Some functions are actually named
62212 something starting with __ and the normal name is an alias. */
62213 #if defined __stub_$ac_func || defined __stub___$ac_func
62220 return $ac_func ();
62225 rm -f conftest.$ac_objext conftest$ac_exeext
62226 if { (ac_try="$ac_link"
62227 case "(($ac_try" in
62228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62229 *) ac_try_echo=$ac_try;;
62231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62232 $as_echo "$ac_try_echo") >&5
62233 (eval "$ac_link") 2>conftest.er1
62235 grep -v '^ *+' conftest.er1 >conftest.err
62237 cat conftest.err >&5
62238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62239 (exit $ac_status); } && {
62240 test -z "$ac_c_werror_flag" ||
62241 test ! -s conftest.err
62242 } && test -s conftest$ac_exeext && {
62243 test "$cross_compiling" = yes ||
62244 $as_test_x conftest$ac_exeext
62246 eval "$as_ac_var=yes"
62248 $as_echo "$as_me: failed program was:" >&5
62249 sed 's/^/| /' conftest.$ac_ext >&5
62251 eval "$as_ac_var=no"
62254 rm -rf conftest.dSYM
62255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62256 conftest$ac_exeext conftest.$ac_ext
62258 ac_res=`eval 'as_val=${'$as_ac_var'}
62259 $as_echo "$as_val"'`
62260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62261 $as_echo "$ac_res" >&6; }
62262 as_val=`eval 'as_val=${'$as_ac_var'}
62263 $as_echo "$as_val"'`
62264 if test "x$as_val" = x""yes; then
62265 cat >>confdefs.h <<_ACEOF
62266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62268 ice_have_getsockname=yes
62272 if test "${ice_have_getsockname}" = yes; then
62273 { $as_echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
62274 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
62275 if test "${ice_cv_have_getsockname_decl+set}" = set; then
62276 $as_echo_n "(cached) " >&6
62279 ice_cv_have_getsockname_decl=no
62280 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62281 ice_re_word='(^|[^a-zA-Z0-9_])'
62282 for header in sys/types.h sys/socket.h; do
62283 # Check for ordinary declaration
62284 cat >conftest.$ac_ext <<_ACEOF
62287 cat confdefs.h >>conftest.$ac_ext
62288 cat >>conftest.$ac_ext <<_ACEOF
62289 /* end confdefs.h. */
62293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62294 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then
62295 ice_cv_have_getsockname_decl=yes
62299 if test "$ice_cv_have_getsockname_decl" = yes; then
62302 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62303 cat >conftest.$ac_ext <<_ACEOF
62306 cat confdefs.h >>conftest.$ac_ext
62307 cat >>conftest.$ac_ext <<_ACEOF
62308 /* end confdefs.h. */
62312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62313 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62314 ice_cv_have_getsockname_decl=yes
62318 if test "$ice_cv_have_getsockname_decl" = yes; then
62325 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
62326 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
62327 if test "$ice_cv_have_getsockname_decl" = yes; then
62329 cat >>confdefs.h <<_ACEOF
62330 #define HAVE_GETSOCKNAME_DECL 1
62337 ice_have_getsockopt=no
62339 for ac_func in getsockopt
62341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62342 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62343 $as_echo_n "checking for $ac_func... " >&6; }
62344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62345 $as_echo_n "(cached) " >&6
62347 cat >conftest.$ac_ext <<_ACEOF
62350 cat confdefs.h >>conftest.$ac_ext
62351 cat >>conftest.$ac_ext <<_ACEOF
62352 /* end confdefs.h. */
62353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62355 #define $ac_func innocuous_$ac_func
62357 /* System header to define __stub macros and hopefully few prototypes,
62358 which can conflict with char $ac_func (); below.
62359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62360 <limits.h> exists even on freestanding compilers. */
62363 # include <limits.h>
62365 # include <assert.h>
62370 /* Override any GCC internal prototype to avoid an error.
62371 Use char because int might match the return type of a GCC
62372 builtin and then its argument prototype would still apply. */
62377 /* The GNU C library defines this for functions which it implements
62378 to always fail with ENOSYS. Some functions are actually named
62379 something starting with __ and the normal name is an alias. */
62380 #if defined __stub_$ac_func || defined __stub___$ac_func
62387 return $ac_func ();
62392 rm -f conftest.$ac_objext conftest$ac_exeext
62393 if { (ac_try="$ac_link"
62394 case "(($ac_try" in
62395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62396 *) ac_try_echo=$ac_try;;
62398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62399 $as_echo "$ac_try_echo") >&5
62400 (eval "$ac_link") 2>conftest.er1
62402 grep -v '^ *+' conftest.er1 >conftest.err
62404 cat conftest.err >&5
62405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62406 (exit $ac_status); } && {
62407 test -z "$ac_c_werror_flag" ||
62408 test ! -s conftest.err
62409 } && test -s conftest$ac_exeext && {
62410 test "$cross_compiling" = yes ||
62411 $as_test_x conftest$ac_exeext
62413 eval "$as_ac_var=yes"
62415 $as_echo "$as_me: failed program was:" >&5
62416 sed 's/^/| /' conftest.$ac_ext >&5
62418 eval "$as_ac_var=no"
62421 rm -rf conftest.dSYM
62422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62423 conftest$ac_exeext conftest.$ac_ext
62425 ac_res=`eval 'as_val=${'$as_ac_var'}
62426 $as_echo "$as_val"'`
62427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62428 $as_echo "$ac_res" >&6; }
62429 as_val=`eval 'as_val=${'$as_ac_var'}
62430 $as_echo "$as_val"'`
62431 if test "x$as_val" = x""yes; then
62432 cat >>confdefs.h <<_ACEOF
62433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62435 ice_have_getsockopt=yes
62439 if test "${ice_have_getsockopt}" = yes; then
62440 { $as_echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
62441 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
62442 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
62443 $as_echo_n "(cached) " >&6
62446 ice_cv_have_getsockopt_decl=no
62447 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62448 ice_re_word='(^|[^a-zA-Z0-9_])'
62449 for header in sys/types.h sys/socket.h; do
62450 # Check for ordinary declaration
62451 cat >conftest.$ac_ext <<_ACEOF
62454 cat confdefs.h >>conftest.$ac_ext
62455 cat >>conftest.$ac_ext <<_ACEOF
62456 /* end confdefs.h. */
62460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62461 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then
62462 ice_cv_have_getsockopt_decl=yes
62466 if test "$ice_cv_have_getsockopt_decl" = yes; then
62469 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62470 cat >conftest.$ac_ext <<_ACEOF
62473 cat confdefs.h >>conftest.$ac_ext
62474 cat >>conftest.$ac_ext <<_ACEOF
62475 /* end confdefs.h. */
62479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62480 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62481 ice_cv_have_getsockopt_decl=yes
62485 if test "$ice_cv_have_getsockopt_decl" = yes; then
62492 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
62493 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
62494 if test "$ice_cv_have_getsockopt_decl" = yes; then
62496 cat >>confdefs.h <<_ACEOF
62497 #define HAVE_GETSOCKOPT_DECL 1
62504 ice_have_initgroups=no
62506 for ac_func in initgroups
62508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62509 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62510 $as_echo_n "checking for $ac_func... " >&6; }
62511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62512 $as_echo_n "(cached) " >&6
62514 cat >conftest.$ac_ext <<_ACEOF
62517 cat confdefs.h >>conftest.$ac_ext
62518 cat >>conftest.$ac_ext <<_ACEOF
62519 /* end confdefs.h. */
62520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62522 #define $ac_func innocuous_$ac_func
62524 /* System header to define __stub macros and hopefully few prototypes,
62525 which can conflict with char $ac_func (); below.
62526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62527 <limits.h> exists even on freestanding compilers. */
62530 # include <limits.h>
62532 # include <assert.h>
62537 /* Override any GCC internal prototype to avoid an error.
62538 Use char because int might match the return type of a GCC
62539 builtin and then its argument prototype would still apply. */
62544 /* The GNU C library defines this for functions which it implements
62545 to always fail with ENOSYS. Some functions are actually named
62546 something starting with __ and the normal name is an alias. */
62547 #if defined __stub_$ac_func || defined __stub___$ac_func
62554 return $ac_func ();
62559 rm -f conftest.$ac_objext conftest$ac_exeext
62560 if { (ac_try="$ac_link"
62561 case "(($ac_try" in
62562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62563 *) ac_try_echo=$ac_try;;
62565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62566 $as_echo "$ac_try_echo") >&5
62567 (eval "$ac_link") 2>conftest.er1
62569 grep -v '^ *+' conftest.er1 >conftest.err
62571 cat conftest.err >&5
62572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62573 (exit $ac_status); } && {
62574 test -z "$ac_c_werror_flag" ||
62575 test ! -s conftest.err
62576 } && test -s conftest$ac_exeext && {
62577 test "$cross_compiling" = yes ||
62578 $as_test_x conftest$ac_exeext
62580 eval "$as_ac_var=yes"
62582 $as_echo "$as_me: failed program was:" >&5
62583 sed 's/^/| /' conftest.$ac_ext >&5
62585 eval "$as_ac_var=no"
62588 rm -rf conftest.dSYM
62589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62590 conftest$ac_exeext conftest.$ac_ext
62592 ac_res=`eval 'as_val=${'$as_ac_var'}
62593 $as_echo "$as_val"'`
62594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62595 $as_echo "$ac_res" >&6; }
62596 as_val=`eval 'as_val=${'$as_ac_var'}
62597 $as_echo "$as_val"'`
62598 if test "x$as_val" = x""yes; then
62599 cat >>confdefs.h <<_ACEOF
62600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62602 ice_have_initgroups=yes
62606 if test "${ice_have_initgroups}" = yes; then
62607 { $as_echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
62608 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
62609 if test "${ice_cv_have_initgroups_decl+set}" = set; then
62610 $as_echo_n "(cached) " >&6
62613 ice_cv_have_initgroups_decl=no
62614 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62615 ice_re_word='(^|[^a-zA-Z0-9_])'
62616 for header in grp.h sys/types.h unistd.h libc.h; do
62617 # Check for ordinary declaration
62618 cat >conftest.$ac_ext <<_ACEOF
62621 cat confdefs.h >>conftest.$ac_ext
62622 cat >>conftest.$ac_ext <<_ACEOF
62623 /* end confdefs.h. */
62627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62628 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then
62629 ice_cv_have_initgroups_decl=yes
62633 if test "$ice_cv_have_initgroups_decl" = yes; then
62636 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62637 cat >conftest.$ac_ext <<_ACEOF
62640 cat confdefs.h >>conftest.$ac_ext
62641 cat >>conftest.$ac_ext <<_ACEOF
62642 /* end confdefs.h. */
62646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62647 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62648 ice_cv_have_initgroups_decl=yes
62652 if test "$ice_cv_have_initgroups_decl" = yes; then
62659 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
62660 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
62661 if test "$ice_cv_have_initgroups_decl" = yes; then
62663 cat >>confdefs.h <<_ACEOF
62664 #define HAVE_INITGROUPS_DECL 1
62673 for ac_func in ioctl
62675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62676 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62677 $as_echo_n "checking for $ac_func... " >&6; }
62678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62679 $as_echo_n "(cached) " >&6
62681 cat >conftest.$ac_ext <<_ACEOF
62684 cat confdefs.h >>conftest.$ac_ext
62685 cat >>conftest.$ac_ext <<_ACEOF
62686 /* end confdefs.h. */
62687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62689 #define $ac_func innocuous_$ac_func
62691 /* System header to define __stub macros and hopefully few prototypes,
62692 which can conflict with char $ac_func (); below.
62693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62694 <limits.h> exists even on freestanding compilers. */
62697 # include <limits.h>
62699 # include <assert.h>
62704 /* Override any GCC internal prototype to avoid an error.
62705 Use char because int might match the return type of a GCC
62706 builtin and then its argument prototype would still apply. */
62711 /* The GNU C library defines this for functions which it implements
62712 to always fail with ENOSYS. Some functions are actually named
62713 something starting with __ and the normal name is an alias. */
62714 #if defined __stub_$ac_func || defined __stub___$ac_func
62721 return $ac_func ();
62726 rm -f conftest.$ac_objext conftest$ac_exeext
62727 if { (ac_try="$ac_link"
62728 case "(($ac_try" in
62729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62730 *) ac_try_echo=$ac_try;;
62732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62733 $as_echo "$ac_try_echo") >&5
62734 (eval "$ac_link") 2>conftest.er1
62736 grep -v '^ *+' conftest.er1 >conftest.err
62738 cat conftest.err >&5
62739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62740 (exit $ac_status); } && {
62741 test -z "$ac_c_werror_flag" ||
62742 test ! -s conftest.err
62743 } && test -s conftest$ac_exeext && {
62744 test "$cross_compiling" = yes ||
62745 $as_test_x conftest$ac_exeext
62747 eval "$as_ac_var=yes"
62749 $as_echo "$as_me: failed program was:" >&5
62750 sed 's/^/| /' conftest.$ac_ext >&5
62752 eval "$as_ac_var=no"
62755 rm -rf conftest.dSYM
62756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62757 conftest$ac_exeext conftest.$ac_ext
62759 ac_res=`eval 'as_val=${'$as_ac_var'}
62760 $as_echo "$as_val"'`
62761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62762 $as_echo "$ac_res" >&6; }
62763 as_val=`eval 'as_val=${'$as_ac_var'}
62764 $as_echo "$as_val"'`
62765 if test "x$as_val" = x""yes; then
62766 cat >>confdefs.h <<_ACEOF
62767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62773 if test "${ice_have_ioctl}" = yes; then
62774 { $as_echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
62775 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
62776 if test "${ice_cv_have_ioctl_decl+set}" = set; then
62777 $as_echo_n "(cached) " >&6
62780 ice_cv_have_ioctl_decl=no
62781 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62782 ice_re_word='(^|[^a-zA-Z0-9_])'
62783 for header in sys/ioctl.h unistd.h libc.h; do
62784 # Check for ordinary declaration
62785 cat >conftest.$ac_ext <<_ACEOF
62788 cat confdefs.h >>conftest.$ac_ext
62789 cat >>conftest.$ac_ext <<_ACEOF
62790 /* end confdefs.h. */
62794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62795 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then
62796 ice_cv_have_ioctl_decl=yes
62800 if test "$ice_cv_have_ioctl_decl" = yes; then
62803 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62804 cat >conftest.$ac_ext <<_ACEOF
62807 cat confdefs.h >>conftest.$ac_ext
62808 cat >>conftest.$ac_ext <<_ACEOF
62809 /* end confdefs.h. */
62813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62814 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62815 ice_cv_have_ioctl_decl=yes
62819 if test "$ice_cv_have_ioctl_decl" = yes; then
62826 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
62827 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
62828 if test "$ice_cv_have_ioctl_decl" = yes; then
62830 cat >>confdefs.h <<_ACEOF
62831 #define HAVE_IOCTL_DECL 1
62838 ice_have_isnormal=no
62840 for ac_func in isnormal
62842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62843 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62844 $as_echo_n "checking for $ac_func... " >&6; }
62845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62846 $as_echo_n "(cached) " >&6
62848 cat >conftest.$ac_ext <<_ACEOF
62851 cat confdefs.h >>conftest.$ac_ext
62852 cat >>conftest.$ac_ext <<_ACEOF
62853 /* end confdefs.h. */
62854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62856 #define $ac_func innocuous_$ac_func
62858 /* System header to define __stub macros and hopefully few prototypes,
62859 which can conflict with char $ac_func (); below.
62860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62861 <limits.h> exists even on freestanding compilers. */
62864 # include <limits.h>
62866 # include <assert.h>
62871 /* Override any GCC internal prototype to avoid an error.
62872 Use char because int might match the return type of a GCC
62873 builtin and then its argument prototype would still apply. */
62878 /* The GNU C library defines this for functions which it implements
62879 to always fail with ENOSYS. Some functions are actually named
62880 something starting with __ and the normal name is an alias. */
62881 #if defined __stub_$ac_func || defined __stub___$ac_func
62888 return $ac_func ();
62893 rm -f conftest.$ac_objext conftest$ac_exeext
62894 if { (ac_try="$ac_link"
62895 case "(($ac_try" in
62896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62897 *) ac_try_echo=$ac_try;;
62899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62900 $as_echo "$ac_try_echo") >&5
62901 (eval "$ac_link") 2>conftest.er1
62903 grep -v '^ *+' conftest.er1 >conftest.err
62905 cat conftest.err >&5
62906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62907 (exit $ac_status); } && {
62908 test -z "$ac_c_werror_flag" ||
62909 test ! -s conftest.err
62910 } && test -s conftest$ac_exeext && {
62911 test "$cross_compiling" = yes ||
62912 $as_test_x conftest$ac_exeext
62914 eval "$as_ac_var=yes"
62916 $as_echo "$as_me: failed program was:" >&5
62917 sed 's/^/| /' conftest.$ac_ext >&5
62919 eval "$as_ac_var=no"
62922 rm -rf conftest.dSYM
62923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62924 conftest$ac_exeext conftest.$ac_ext
62926 ac_res=`eval 'as_val=${'$as_ac_var'}
62927 $as_echo "$as_val"'`
62928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62929 $as_echo "$ac_res" >&6; }
62930 as_val=`eval 'as_val=${'$as_ac_var'}
62931 $as_echo "$as_val"'`
62932 if test "x$as_val" = x""yes; then
62933 cat >>confdefs.h <<_ACEOF
62934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62936 ice_have_isnormal=yes
62940 if test "${ice_have_isnormal}" = yes; then
62941 { $as_echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
62942 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
62943 if test "${ice_cv_have_isnormal_decl+set}" = set; then
62944 $as_echo_n "(cached) " >&6
62947 ice_cv_have_isnormal_decl=no
62948 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62949 ice_re_word='(^|[^a-zA-Z0-9_])'
62950 for header in math.h; do
62951 # Check for ordinary declaration
62952 cat >conftest.$ac_ext <<_ACEOF
62955 cat confdefs.h >>conftest.$ac_ext
62956 cat >>conftest.$ac_ext <<_ACEOF
62957 /* end confdefs.h. */
62961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62962 $EGREP "${ice_re_word}isnormal[ ]*\(" >/dev/null 2>&1; then
62963 ice_cv_have_isnormal_decl=yes
62967 if test "$ice_cv_have_isnormal_decl" = yes; then
62970 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62971 cat >conftest.$ac_ext <<_ACEOF
62974 cat confdefs.h >>conftest.$ac_ext
62975 cat >>conftest.$ac_ext <<_ACEOF
62976 /* end confdefs.h. */
62980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62981 $EGREP "${ice_re_word}isnormal[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62982 ice_cv_have_isnormal_decl=yes
62986 if test "$ice_cv_have_isnormal_decl" = yes; then
62993 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
62994 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
62995 if test "$ice_cv_have_isnormal_decl" = yes; then
62997 cat >>confdefs.h <<_ACEOF
62998 #define HAVE_ISNORMAL_DECL 1
63007 for ac_func in listen
63009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63011 $as_echo_n "checking for $ac_func... " >&6; }
63012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63013 $as_echo_n "(cached) " >&6
63015 cat >conftest.$ac_ext <<_ACEOF
63018 cat confdefs.h >>conftest.$ac_ext
63019 cat >>conftest.$ac_ext <<_ACEOF
63020 /* end confdefs.h. */
63021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63023 #define $ac_func innocuous_$ac_func
63025 /* System header to define __stub macros and hopefully few prototypes,
63026 which can conflict with char $ac_func (); below.
63027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63028 <limits.h> exists even on freestanding compilers. */
63031 # include <limits.h>
63033 # include <assert.h>
63038 /* Override any GCC internal prototype to avoid an error.
63039 Use char because int might match the return type of a GCC
63040 builtin and then its argument prototype would still apply. */
63045 /* The GNU C library defines this for functions which it implements
63046 to always fail with ENOSYS. Some functions are actually named
63047 something starting with __ and the normal name is an alias. */
63048 #if defined __stub_$ac_func || defined __stub___$ac_func
63055 return $ac_func ();
63060 rm -f conftest.$ac_objext conftest$ac_exeext
63061 if { (ac_try="$ac_link"
63062 case "(($ac_try" in
63063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63064 *) ac_try_echo=$ac_try;;
63066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63067 $as_echo "$ac_try_echo") >&5
63068 (eval "$ac_link") 2>conftest.er1
63070 grep -v '^ *+' conftest.er1 >conftest.err
63072 cat conftest.err >&5
63073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63074 (exit $ac_status); } && {
63075 test -z "$ac_c_werror_flag" ||
63076 test ! -s conftest.err
63077 } && test -s conftest$ac_exeext && {
63078 test "$cross_compiling" = yes ||
63079 $as_test_x conftest$ac_exeext
63081 eval "$as_ac_var=yes"
63083 $as_echo "$as_me: failed program was:" >&5
63084 sed 's/^/| /' conftest.$ac_ext >&5
63086 eval "$as_ac_var=no"
63089 rm -rf conftest.dSYM
63090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63091 conftest$ac_exeext conftest.$ac_ext
63093 ac_res=`eval 'as_val=${'$as_ac_var'}
63094 $as_echo "$as_val"'`
63095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63096 $as_echo "$ac_res" >&6; }
63097 as_val=`eval 'as_val=${'$as_ac_var'}
63098 $as_echo "$as_val"'`
63099 if test "x$as_val" = x""yes; then
63100 cat >>confdefs.h <<_ACEOF
63101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63103 ice_have_listen=yes
63107 if test "${ice_have_listen}" = yes; then
63108 { $as_echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
63109 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
63110 if test "${ice_cv_have_listen_decl+set}" = set; then
63111 $as_echo_n "(cached) " >&6
63114 ice_cv_have_listen_decl=no
63115 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63116 ice_re_word='(^|[^a-zA-Z0-9_])'
63117 for header in sys/types.h sys/socket.h; do
63118 # Check for ordinary declaration
63119 cat >conftest.$ac_ext <<_ACEOF
63122 cat confdefs.h >>conftest.$ac_ext
63123 cat >>conftest.$ac_ext <<_ACEOF
63124 /* end confdefs.h. */
63128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63129 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then
63130 ice_cv_have_listen_decl=yes
63134 if test "$ice_cv_have_listen_decl" = yes; then
63137 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63138 cat >conftest.$ac_ext <<_ACEOF
63141 cat confdefs.h >>conftest.$ac_ext
63142 cat >>conftest.$ac_ext <<_ACEOF
63143 /* end confdefs.h. */
63147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63148 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63149 ice_cv_have_listen_decl=yes
63153 if test "$ice_cv_have_listen_decl" = yes; then
63160 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
63161 $as_echo "$ice_cv_have_listen_decl" >&6; }
63162 if test "$ice_cv_have_listen_decl" = yes; then
63164 cat >>confdefs.h <<_ACEOF
63165 #define HAVE_LISTEN_DECL 1
63174 for ac_func in lstat
63176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63177 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63178 $as_echo_n "checking for $ac_func... " >&6; }
63179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63180 $as_echo_n "(cached) " >&6
63182 cat >conftest.$ac_ext <<_ACEOF
63185 cat confdefs.h >>conftest.$ac_ext
63186 cat >>conftest.$ac_ext <<_ACEOF
63187 /* end confdefs.h. */
63188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63190 #define $ac_func innocuous_$ac_func
63192 /* System header to define __stub macros and hopefully few prototypes,
63193 which can conflict with char $ac_func (); below.
63194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63195 <limits.h> exists even on freestanding compilers. */
63198 # include <limits.h>
63200 # include <assert.h>
63205 /* Override any GCC internal prototype to avoid an error.
63206 Use char because int might match the return type of a GCC
63207 builtin and then its argument prototype would still apply. */
63212 /* The GNU C library defines this for functions which it implements
63213 to always fail with ENOSYS. Some functions are actually named
63214 something starting with __ and the normal name is an alias. */
63215 #if defined __stub_$ac_func || defined __stub___$ac_func
63222 return $ac_func ();
63227 rm -f conftest.$ac_objext conftest$ac_exeext
63228 if { (ac_try="$ac_link"
63229 case "(($ac_try" in
63230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63231 *) ac_try_echo=$ac_try;;
63233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63234 $as_echo "$ac_try_echo") >&5
63235 (eval "$ac_link") 2>conftest.er1
63237 grep -v '^ *+' conftest.er1 >conftest.err
63239 cat conftest.err >&5
63240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63241 (exit $ac_status); } && {
63242 test -z "$ac_c_werror_flag" ||
63243 test ! -s conftest.err
63244 } && test -s conftest$ac_exeext && {
63245 test "$cross_compiling" = yes ||
63246 $as_test_x conftest$ac_exeext
63248 eval "$as_ac_var=yes"
63250 $as_echo "$as_me: failed program was:" >&5
63251 sed 's/^/| /' conftest.$ac_ext >&5
63253 eval "$as_ac_var=no"
63256 rm -rf conftest.dSYM
63257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63258 conftest$ac_exeext conftest.$ac_ext
63260 ac_res=`eval 'as_val=${'$as_ac_var'}
63261 $as_echo "$as_val"'`
63262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63263 $as_echo "$ac_res" >&6; }
63264 as_val=`eval 'as_val=${'$as_ac_var'}
63265 $as_echo "$as_val"'`
63266 if test "x$as_val" = x""yes; then
63267 cat >>confdefs.h <<_ACEOF
63268 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63274 if test "${ice_have_lstat}" = yes; then
63275 { $as_echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
63276 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
63277 if test "${ice_cv_have_lstat_decl+set}" = set; then
63278 $as_echo_n "(cached) " >&6
63281 ice_cv_have_lstat_decl=no
63282 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63283 ice_re_word='(^|[^a-zA-Z0-9_])'
63284 for header in sys/types.h sys/stat.h; do
63285 # Check for ordinary declaration
63286 cat >conftest.$ac_ext <<_ACEOF
63289 cat confdefs.h >>conftest.$ac_ext
63290 cat >>conftest.$ac_ext <<_ACEOF
63291 /* end confdefs.h. */
63295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63296 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then
63297 ice_cv_have_lstat_decl=yes
63301 if test "$ice_cv_have_lstat_decl" = yes; then
63304 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63305 cat >conftest.$ac_ext <<_ACEOF
63308 cat confdefs.h >>conftest.$ac_ext
63309 cat >>conftest.$ac_ext <<_ACEOF
63310 /* end confdefs.h. */
63314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63315 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63316 ice_cv_have_lstat_decl=yes
63320 if test "$ice_cv_have_lstat_decl" = yes; then
63327 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
63328 $as_echo "$ice_cv_have_lstat_decl" >&6; }
63329 if test "$ice_cv_have_lstat_decl" = yes; then
63331 cat >>confdefs.h <<_ACEOF
63332 #define HAVE_LSTAT_DECL 1
63341 for ac_func in malloc
63343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63345 $as_echo_n "checking for $ac_func... " >&6; }
63346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63347 $as_echo_n "(cached) " >&6
63349 cat >conftest.$ac_ext <<_ACEOF
63352 cat confdefs.h >>conftest.$ac_ext
63353 cat >>conftest.$ac_ext <<_ACEOF
63354 /* end confdefs.h. */
63355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63357 #define $ac_func innocuous_$ac_func
63359 /* System header to define __stub macros and hopefully few prototypes,
63360 which can conflict with char $ac_func (); below.
63361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63362 <limits.h> exists even on freestanding compilers. */
63365 # include <limits.h>
63367 # include <assert.h>
63372 /* Override any GCC internal prototype to avoid an error.
63373 Use char because int might match the return type of a GCC
63374 builtin and then its argument prototype would still apply. */
63379 /* The GNU C library defines this for functions which it implements
63380 to always fail with ENOSYS. Some functions are actually named
63381 something starting with __ and the normal name is an alias. */
63382 #if defined __stub_$ac_func || defined __stub___$ac_func
63389 return $ac_func ();
63394 rm -f conftest.$ac_objext conftest$ac_exeext
63395 if { (ac_try="$ac_link"
63396 case "(($ac_try" in
63397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63398 *) ac_try_echo=$ac_try;;
63400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63401 $as_echo "$ac_try_echo") >&5
63402 (eval "$ac_link") 2>conftest.er1
63404 grep -v '^ *+' conftest.er1 >conftest.err
63406 cat conftest.err >&5
63407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63408 (exit $ac_status); } && {
63409 test -z "$ac_c_werror_flag" ||
63410 test ! -s conftest.err
63411 } && test -s conftest$ac_exeext && {
63412 test "$cross_compiling" = yes ||
63413 $as_test_x conftest$ac_exeext
63415 eval "$as_ac_var=yes"
63417 $as_echo "$as_me: failed program was:" >&5
63418 sed 's/^/| /' conftest.$ac_ext >&5
63420 eval "$as_ac_var=no"
63423 rm -rf conftest.dSYM
63424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63425 conftest$ac_exeext conftest.$ac_ext
63427 ac_res=`eval 'as_val=${'$as_ac_var'}
63428 $as_echo "$as_val"'`
63429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63430 $as_echo "$ac_res" >&6; }
63431 as_val=`eval 'as_val=${'$as_ac_var'}
63432 $as_echo "$as_val"'`
63433 if test "x$as_val" = x""yes; then
63434 cat >>confdefs.h <<_ACEOF
63435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63437 ice_have_malloc=yes
63441 if test "${ice_have_malloc}" = yes; then
63442 { $as_echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
63443 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
63444 if test "${ice_cv_have_malloc_decl+set}" = set; then
63445 $as_echo_n "(cached) " >&6
63448 ice_cv_have_malloc_decl=no
63449 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63450 ice_re_word='(^|[^a-zA-Z0-9_])'
63451 for header in stdlib.h; do
63452 # Check for ordinary declaration
63453 cat >conftest.$ac_ext <<_ACEOF
63456 cat confdefs.h >>conftest.$ac_ext
63457 cat >>conftest.$ac_ext <<_ACEOF
63458 /* end confdefs.h. */
63462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63463 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then
63464 ice_cv_have_malloc_decl=yes
63468 if test "$ice_cv_have_malloc_decl" = yes; then
63471 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63472 cat >conftest.$ac_ext <<_ACEOF
63475 cat confdefs.h >>conftest.$ac_ext
63476 cat >>conftest.$ac_ext <<_ACEOF
63477 /* end confdefs.h. */
63481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63482 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63483 ice_cv_have_malloc_decl=yes
63487 if test "$ice_cv_have_malloc_decl" = yes; then
63494 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
63495 $as_echo "$ice_cv_have_malloc_decl" >&6; }
63496 if test "$ice_cv_have_malloc_decl" = yes; then
63498 cat >>confdefs.h <<_ACEOF
63499 #define HAVE_MALLOC_DECL 1
63506 ice_have_memmove=no
63508 for ac_func in memmove
63510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63511 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63512 $as_echo_n "checking for $ac_func... " >&6; }
63513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63514 $as_echo_n "(cached) " >&6
63516 cat >conftest.$ac_ext <<_ACEOF
63519 cat confdefs.h >>conftest.$ac_ext
63520 cat >>conftest.$ac_ext <<_ACEOF
63521 /* end confdefs.h. */
63522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63524 #define $ac_func innocuous_$ac_func
63526 /* System header to define __stub macros and hopefully few prototypes,
63527 which can conflict with char $ac_func (); below.
63528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63529 <limits.h> exists even on freestanding compilers. */
63532 # include <limits.h>
63534 # include <assert.h>
63539 /* Override any GCC internal prototype to avoid an error.
63540 Use char because int might match the return type of a GCC
63541 builtin and then its argument prototype would still apply. */
63546 /* The GNU C library defines this for functions which it implements
63547 to always fail with ENOSYS. Some functions are actually named
63548 something starting with __ and the normal name is an alias. */
63549 #if defined __stub_$ac_func || defined __stub___$ac_func
63556 return $ac_func ();
63561 rm -f conftest.$ac_objext conftest$ac_exeext
63562 if { (ac_try="$ac_link"
63563 case "(($ac_try" in
63564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63565 *) ac_try_echo=$ac_try;;
63567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63568 $as_echo "$ac_try_echo") >&5
63569 (eval "$ac_link") 2>conftest.er1
63571 grep -v '^ *+' conftest.er1 >conftest.err
63573 cat conftest.err >&5
63574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63575 (exit $ac_status); } && {
63576 test -z "$ac_c_werror_flag" ||
63577 test ! -s conftest.err
63578 } && test -s conftest$ac_exeext && {
63579 test "$cross_compiling" = yes ||
63580 $as_test_x conftest$ac_exeext
63582 eval "$as_ac_var=yes"
63584 $as_echo "$as_me: failed program was:" >&5
63585 sed 's/^/| /' conftest.$ac_ext >&5
63587 eval "$as_ac_var=no"
63590 rm -rf conftest.dSYM
63591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63592 conftest$ac_exeext conftest.$ac_ext
63594 ac_res=`eval 'as_val=${'$as_ac_var'}
63595 $as_echo "$as_val"'`
63596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63597 $as_echo "$ac_res" >&6; }
63598 as_val=`eval 'as_val=${'$as_ac_var'}
63599 $as_echo "$as_val"'`
63600 if test "x$as_val" = x""yes; then
63601 cat >>confdefs.h <<_ACEOF
63602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63604 ice_have_memmove=yes
63608 if test "${ice_have_memmove}" = yes; then
63609 { $as_echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
63610 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
63611 if test "${ice_cv_have_memmove_decl+set}" = set; then
63612 $as_echo_n "(cached) " >&6
63615 ice_cv_have_memmove_decl=no
63616 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63617 ice_re_word='(^|[^a-zA-Z0-9_])'
63618 for header in string.h strings.h; do
63619 # Check for ordinary declaration
63620 cat >conftest.$ac_ext <<_ACEOF
63623 cat confdefs.h >>conftest.$ac_ext
63624 cat >>conftest.$ac_ext <<_ACEOF
63625 /* end confdefs.h. */
63629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63630 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then
63631 ice_cv_have_memmove_decl=yes
63635 if test "$ice_cv_have_memmove_decl" = yes; then
63638 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63639 cat >conftest.$ac_ext <<_ACEOF
63642 cat confdefs.h >>conftest.$ac_ext
63643 cat >>conftest.$ac_ext <<_ACEOF
63644 /* end confdefs.h. */
63648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63649 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63650 ice_cv_have_memmove_decl=yes
63654 if test "$ice_cv_have_memmove_decl" = yes; then
63661 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
63662 $as_echo "$ice_cv_have_memmove_decl" >&6; }
63663 if test "$ice_cv_have_memmove_decl" = yes; then
63665 cat >>confdefs.h <<_ACEOF
63666 #define HAVE_MEMMOVE_DECL 1
63675 for ac_func in memset
63677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63678 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63679 $as_echo_n "checking for $ac_func... " >&6; }
63680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63681 $as_echo_n "(cached) " >&6
63683 cat >conftest.$ac_ext <<_ACEOF
63686 cat confdefs.h >>conftest.$ac_ext
63687 cat >>conftest.$ac_ext <<_ACEOF
63688 /* end confdefs.h. */
63689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63691 #define $ac_func innocuous_$ac_func
63693 /* System header to define __stub macros and hopefully few prototypes,
63694 which can conflict with char $ac_func (); below.
63695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63696 <limits.h> exists even on freestanding compilers. */
63699 # include <limits.h>
63701 # include <assert.h>
63706 /* Override any GCC internal prototype to avoid an error.
63707 Use char because int might match the return type of a GCC
63708 builtin and then its argument prototype would still apply. */
63713 /* The GNU C library defines this for functions which it implements
63714 to always fail with ENOSYS. Some functions are actually named
63715 something starting with __ and the normal name is an alias. */
63716 #if defined __stub_$ac_func || defined __stub___$ac_func
63723 return $ac_func ();
63728 rm -f conftest.$ac_objext conftest$ac_exeext
63729 if { (ac_try="$ac_link"
63730 case "(($ac_try" in
63731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63732 *) ac_try_echo=$ac_try;;
63734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63735 $as_echo "$ac_try_echo") >&5
63736 (eval "$ac_link") 2>conftest.er1
63738 grep -v '^ *+' conftest.er1 >conftest.err
63740 cat conftest.err >&5
63741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63742 (exit $ac_status); } && {
63743 test -z "$ac_c_werror_flag" ||
63744 test ! -s conftest.err
63745 } && test -s conftest$ac_exeext && {
63746 test "$cross_compiling" = yes ||
63747 $as_test_x conftest$ac_exeext
63749 eval "$as_ac_var=yes"
63751 $as_echo "$as_me: failed program was:" >&5
63752 sed 's/^/| /' conftest.$ac_ext >&5
63754 eval "$as_ac_var=no"
63757 rm -rf conftest.dSYM
63758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63759 conftest$ac_exeext conftest.$ac_ext
63761 ac_res=`eval 'as_val=${'$as_ac_var'}
63762 $as_echo "$as_val"'`
63763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63764 $as_echo "$ac_res" >&6; }
63765 as_val=`eval 'as_val=${'$as_ac_var'}
63766 $as_echo "$as_val"'`
63767 if test "x$as_val" = x""yes; then
63768 cat >>confdefs.h <<_ACEOF
63769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63771 ice_have_memset=yes
63775 if test "${ice_have_memset}" = yes; then
63776 { $as_echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
63777 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
63778 if test "${ice_cv_have_memset_decl+set}" = set; then
63779 $as_echo_n "(cached) " >&6
63782 ice_cv_have_memset_decl=no
63783 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63784 ice_re_word='(^|[^a-zA-Z0-9_])'
63785 for header in string.h strings.h; do
63786 # Check for ordinary declaration
63787 cat >conftest.$ac_ext <<_ACEOF
63790 cat confdefs.h >>conftest.$ac_ext
63791 cat >>conftest.$ac_ext <<_ACEOF
63792 /* end confdefs.h. */
63796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63797 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then
63798 ice_cv_have_memset_decl=yes
63802 if test "$ice_cv_have_memset_decl" = yes; then
63805 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63806 cat >conftest.$ac_ext <<_ACEOF
63809 cat confdefs.h >>conftest.$ac_ext
63810 cat >>conftest.$ac_ext <<_ACEOF
63811 /* end confdefs.h. */
63815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63816 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63817 ice_cv_have_memset_decl=yes
63821 if test "$ice_cv_have_memset_decl" = yes; then
63828 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
63829 $as_echo "$ice_cv_have_memset_decl" >&6; }
63830 if test "$ice_cv_have_memset_decl" = yes; then
63832 cat >>confdefs.h <<_ACEOF
63833 #define HAVE_MEMSET_DECL 1
63840 ice_have_mkstemp=no
63842 for ac_func in mkstemp
63844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63845 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63846 $as_echo_n "checking for $ac_func... " >&6; }
63847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63848 $as_echo_n "(cached) " >&6
63850 cat >conftest.$ac_ext <<_ACEOF
63853 cat confdefs.h >>conftest.$ac_ext
63854 cat >>conftest.$ac_ext <<_ACEOF
63855 /* end confdefs.h. */
63856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63858 #define $ac_func innocuous_$ac_func
63860 /* System header to define __stub macros and hopefully few prototypes,
63861 which can conflict with char $ac_func (); below.
63862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63863 <limits.h> exists even on freestanding compilers. */
63866 # include <limits.h>
63868 # include <assert.h>
63873 /* Override any GCC internal prototype to avoid an error.
63874 Use char because int might match the return type of a GCC
63875 builtin and then its argument prototype would still apply. */
63880 /* The GNU C library defines this for functions which it implements
63881 to always fail with ENOSYS. Some functions are actually named
63882 something starting with __ and the normal name is an alias. */
63883 #if defined __stub_$ac_func || defined __stub___$ac_func
63890 return $ac_func ();
63895 rm -f conftest.$ac_objext conftest$ac_exeext
63896 if { (ac_try="$ac_link"
63897 case "(($ac_try" in
63898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63899 *) ac_try_echo=$ac_try;;
63901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63902 $as_echo "$ac_try_echo") >&5
63903 (eval "$ac_link") 2>conftest.er1
63905 grep -v '^ *+' conftest.er1 >conftest.err
63907 cat conftest.err >&5
63908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63909 (exit $ac_status); } && {
63910 test -z "$ac_c_werror_flag" ||
63911 test ! -s conftest.err
63912 } && test -s conftest$ac_exeext && {
63913 test "$cross_compiling" = yes ||
63914 $as_test_x conftest$ac_exeext
63916 eval "$as_ac_var=yes"
63918 $as_echo "$as_me: failed program was:" >&5
63919 sed 's/^/| /' conftest.$ac_ext >&5
63921 eval "$as_ac_var=no"
63924 rm -rf conftest.dSYM
63925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63926 conftest$ac_exeext conftest.$ac_ext
63928 ac_res=`eval 'as_val=${'$as_ac_var'}
63929 $as_echo "$as_val"'`
63930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63931 $as_echo "$ac_res" >&6; }
63932 as_val=`eval 'as_val=${'$as_ac_var'}
63933 $as_echo "$as_val"'`
63934 if test "x$as_val" = x""yes; then
63935 cat >>confdefs.h <<_ACEOF
63936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63938 ice_have_mkstemp=yes
63942 if test "${ice_have_mkstemp}" = yes; then
63943 { $as_echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
63944 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
63945 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
63946 $as_echo_n "(cached) " >&6
63949 ice_cv_have_mkstemp_decl=no
63950 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63951 ice_re_word='(^|[^a-zA-Z0-9_])'
63952 for header in stdlib.h; do
63953 # Check for ordinary declaration
63954 cat >conftest.$ac_ext <<_ACEOF
63957 cat confdefs.h >>conftest.$ac_ext
63958 cat >>conftest.$ac_ext <<_ACEOF
63959 /* end confdefs.h. */
63963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63964 $EGREP "${ice_re_word}mkstemp[ ]*\(" >/dev/null 2>&1; then
63965 ice_cv_have_mkstemp_decl=yes
63969 if test "$ice_cv_have_mkstemp_decl" = yes; then
63972 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63973 cat >conftest.$ac_ext <<_ACEOF
63976 cat confdefs.h >>conftest.$ac_ext
63977 cat >>conftest.$ac_ext <<_ACEOF
63978 /* end confdefs.h. */
63982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63983 $EGREP "${ice_re_word}mkstemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63984 ice_cv_have_mkstemp_decl=yes
63988 if test "$ice_cv_have_mkstemp_decl" = yes; then
63995 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
63996 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
63997 if test "$ice_cv_have_mkstemp_decl" = yes; then
63999 cat >>confdefs.h <<_ACEOF
64000 #define HAVE_MKSTEMP_DECL 1
64009 for ac_func in mktemp
64011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64013 $as_echo_n "checking for $ac_func... " >&6; }
64014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64015 $as_echo_n "(cached) " >&6
64017 cat >conftest.$ac_ext <<_ACEOF
64020 cat confdefs.h >>conftest.$ac_ext
64021 cat >>conftest.$ac_ext <<_ACEOF
64022 /* end confdefs.h. */
64023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64025 #define $ac_func innocuous_$ac_func
64027 /* System header to define __stub macros and hopefully few prototypes,
64028 which can conflict with char $ac_func (); below.
64029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64030 <limits.h> exists even on freestanding compilers. */
64033 # include <limits.h>
64035 # include <assert.h>
64040 /* Override any GCC internal prototype to avoid an error.
64041 Use char because int might match the return type of a GCC
64042 builtin and then its argument prototype would still apply. */
64047 /* The GNU C library defines this for functions which it implements
64048 to always fail with ENOSYS. Some functions are actually named
64049 something starting with __ and the normal name is an alias. */
64050 #if defined __stub_$ac_func || defined __stub___$ac_func
64057 return $ac_func ();
64062 rm -f conftest.$ac_objext conftest$ac_exeext
64063 if { (ac_try="$ac_link"
64064 case "(($ac_try" in
64065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64066 *) ac_try_echo=$ac_try;;
64068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64069 $as_echo "$ac_try_echo") >&5
64070 (eval "$ac_link") 2>conftest.er1
64072 grep -v '^ *+' conftest.er1 >conftest.err
64074 cat conftest.err >&5
64075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64076 (exit $ac_status); } && {
64077 test -z "$ac_c_werror_flag" ||
64078 test ! -s conftest.err
64079 } && test -s conftest$ac_exeext && {
64080 test "$cross_compiling" = yes ||
64081 $as_test_x conftest$ac_exeext
64083 eval "$as_ac_var=yes"
64085 $as_echo "$as_me: failed program was:" >&5
64086 sed 's/^/| /' conftest.$ac_ext >&5
64088 eval "$as_ac_var=no"
64091 rm -rf conftest.dSYM
64092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64093 conftest$ac_exeext conftest.$ac_ext
64095 ac_res=`eval 'as_val=${'$as_ac_var'}
64096 $as_echo "$as_val"'`
64097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64098 $as_echo "$ac_res" >&6; }
64099 as_val=`eval 'as_val=${'$as_ac_var'}
64100 $as_echo "$as_val"'`
64101 if test "x$as_val" = x""yes; then
64102 cat >>confdefs.h <<_ACEOF
64103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64105 ice_have_mktemp=yes
64109 if test "${ice_have_mktemp}" = yes; then
64110 { $as_echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
64111 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
64112 if test "${ice_cv_have_mktemp_decl+set}" = set; then
64113 $as_echo_n "(cached) " >&6
64116 ice_cv_have_mktemp_decl=no
64117 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64118 ice_re_word='(^|[^a-zA-Z0-9_])'
64119 for header in stdlib.h; do
64120 # Check for ordinary declaration
64121 cat >conftest.$ac_ext <<_ACEOF
64124 cat confdefs.h >>conftest.$ac_ext
64125 cat >>conftest.$ac_ext <<_ACEOF
64126 /* end confdefs.h. */
64130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64131 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then
64132 ice_cv_have_mktemp_decl=yes
64136 if test "$ice_cv_have_mktemp_decl" = yes; then
64139 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64140 cat >conftest.$ac_ext <<_ACEOF
64143 cat confdefs.h >>conftest.$ac_ext
64144 cat >>conftest.$ac_ext <<_ACEOF
64145 /* end confdefs.h. */
64149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64150 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64151 ice_cv_have_mktemp_decl=yes
64155 if test "$ice_cv_have_mktemp_decl" = yes; then
64162 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
64163 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
64164 if test "$ice_cv_have_mktemp_decl" = yes; then
64166 cat >>confdefs.h <<_ACEOF
64167 #define HAVE_MKTEMP_DECL 1
64176 for ac_func in mktime
64178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64179 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64180 $as_echo_n "checking for $ac_func... " >&6; }
64181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64182 $as_echo_n "(cached) " >&6
64184 cat >conftest.$ac_ext <<_ACEOF
64187 cat confdefs.h >>conftest.$ac_ext
64188 cat >>conftest.$ac_ext <<_ACEOF
64189 /* end confdefs.h. */
64190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64192 #define $ac_func innocuous_$ac_func
64194 /* System header to define __stub macros and hopefully few prototypes,
64195 which can conflict with char $ac_func (); below.
64196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64197 <limits.h> exists even on freestanding compilers. */
64200 # include <limits.h>
64202 # include <assert.h>
64207 /* Override any GCC internal prototype to avoid an error.
64208 Use char because int might match the return type of a GCC
64209 builtin and then its argument prototype would still apply. */
64214 /* The GNU C library defines this for functions which it implements
64215 to always fail with ENOSYS. Some functions are actually named
64216 something starting with __ and the normal name is an alias. */
64217 #if defined __stub_$ac_func || defined __stub___$ac_func
64224 return $ac_func ();
64229 rm -f conftest.$ac_objext conftest$ac_exeext
64230 if { (ac_try="$ac_link"
64231 case "(($ac_try" in
64232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64233 *) ac_try_echo=$ac_try;;
64235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64236 $as_echo "$ac_try_echo") >&5
64237 (eval "$ac_link") 2>conftest.er1
64239 grep -v '^ *+' conftest.er1 >conftest.err
64241 cat conftest.err >&5
64242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64243 (exit $ac_status); } && {
64244 test -z "$ac_c_werror_flag" ||
64245 test ! -s conftest.err
64246 } && test -s conftest$ac_exeext && {
64247 test "$cross_compiling" = yes ||
64248 $as_test_x conftest$ac_exeext
64250 eval "$as_ac_var=yes"
64252 $as_echo "$as_me: failed program was:" >&5
64253 sed 's/^/| /' conftest.$ac_ext >&5
64255 eval "$as_ac_var=no"
64258 rm -rf conftest.dSYM
64259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64260 conftest$ac_exeext conftest.$ac_ext
64262 ac_res=`eval 'as_val=${'$as_ac_var'}
64263 $as_echo "$as_val"'`
64264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64265 $as_echo "$ac_res" >&6; }
64266 as_val=`eval 'as_val=${'$as_ac_var'}
64267 $as_echo "$as_val"'`
64268 if test "x$as_val" = x""yes; then
64269 cat >>confdefs.h <<_ACEOF
64270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64272 ice_have_mktime=yes
64276 if test "${ice_have_mktime}" = yes; then
64277 { $as_echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
64278 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
64279 if test "${ice_cv_have_mktime_decl+set}" = set; then
64280 $as_echo_n "(cached) " >&6
64283 ice_cv_have_mktime_decl=no
64284 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64285 ice_re_word='(^|[^a-zA-Z0-9_])'
64286 for header in time.h sys/time.h; do
64287 # Check for ordinary declaration
64288 cat >conftest.$ac_ext <<_ACEOF
64291 cat confdefs.h >>conftest.$ac_ext
64292 cat >>conftest.$ac_ext <<_ACEOF
64293 /* end confdefs.h. */
64297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64298 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then
64299 ice_cv_have_mktime_decl=yes
64303 if test "$ice_cv_have_mktime_decl" = yes; then
64306 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64307 cat >conftest.$ac_ext <<_ACEOF
64310 cat confdefs.h >>conftest.$ac_ext
64311 cat >>conftest.$ac_ext <<_ACEOF
64312 /* end confdefs.h. */
64316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64317 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64318 ice_cv_have_mktime_decl=yes
64322 if test "$ice_cv_have_mktime_decl" = yes; then
64329 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
64330 $as_echo "$ice_cv_have_mktime_decl" >&6; }
64331 if test "$ice_cv_have_mktime_decl" = yes; then
64333 cat >>confdefs.h <<_ACEOF
64334 #define HAVE_MKTIME_DECL 1
64341 for ac_func in on_exit
64343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64345 $as_echo_n "checking for $ac_func... " >&6; }
64346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64347 $as_echo_n "(cached) " >&6
64349 cat >conftest.$ac_ext <<_ACEOF
64352 cat confdefs.h >>conftest.$ac_ext
64353 cat >>conftest.$ac_ext <<_ACEOF
64354 /* end confdefs.h. */
64355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64357 #define $ac_func innocuous_$ac_func
64359 /* System header to define __stub macros and hopefully few prototypes,
64360 which can conflict with char $ac_func (); below.
64361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64362 <limits.h> exists even on freestanding compilers. */
64365 # include <limits.h>
64367 # include <assert.h>
64372 /* Override any GCC internal prototype to avoid an error.
64373 Use char because int might match the return type of a GCC
64374 builtin and then its argument prototype would still apply. */
64379 /* The GNU C library defines this for functions which it implements
64380 to always fail with ENOSYS. Some functions are actually named
64381 something starting with __ and the normal name is an alias. */
64382 #if defined __stub_$ac_func || defined __stub___$ac_func
64389 return $ac_func ();
64394 rm -f conftest.$ac_objext conftest$ac_exeext
64395 if { (ac_try="$ac_link"
64396 case "(($ac_try" in
64397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64398 *) ac_try_echo=$ac_try;;
64400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64401 $as_echo "$ac_try_echo") >&5
64402 (eval "$ac_link") 2>conftest.er1
64404 grep -v '^ *+' conftest.er1 >conftest.err
64406 cat conftest.err >&5
64407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64408 (exit $ac_status); } && {
64409 test -z "$ac_c_werror_flag" ||
64410 test ! -s conftest.err
64411 } && test -s conftest$ac_exeext && {
64412 test "$cross_compiling" = yes ||
64413 $as_test_x conftest$ac_exeext
64415 eval "$as_ac_var=yes"
64417 $as_echo "$as_me: failed program was:" >&5
64418 sed 's/^/| /' conftest.$ac_ext >&5
64420 eval "$as_ac_var=no"
64423 rm -rf conftest.dSYM
64424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64425 conftest$ac_exeext conftest.$ac_ext
64427 ac_res=`eval 'as_val=${'$as_ac_var'}
64428 $as_echo "$as_val"'`
64429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64430 $as_echo "$ac_res" >&6; }
64431 as_val=`eval 'as_val=${'$as_ac_var'}
64432 $as_echo "$as_val"'`
64433 if test "x$as_val" = x""yes; then
64434 cat >>confdefs.h <<_ACEOF
64435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64442 ice_have_openlog=no
64444 for ac_func in openlog
64446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64447 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64448 $as_echo_n "checking for $ac_func... " >&6; }
64449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64450 $as_echo_n "(cached) " >&6
64452 cat >conftest.$ac_ext <<_ACEOF
64455 cat confdefs.h >>conftest.$ac_ext
64456 cat >>conftest.$ac_ext <<_ACEOF
64457 /* end confdefs.h. */
64458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64460 #define $ac_func innocuous_$ac_func
64462 /* System header to define __stub macros and hopefully few prototypes,
64463 which can conflict with char $ac_func (); below.
64464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64465 <limits.h> exists even on freestanding compilers. */
64468 # include <limits.h>
64470 # include <assert.h>
64475 /* Override any GCC internal prototype to avoid an error.
64476 Use char because int might match the return type of a GCC
64477 builtin and then its argument prototype would still apply. */
64482 /* The GNU C library defines this for functions which it implements
64483 to always fail with ENOSYS. Some functions are actually named
64484 something starting with __ and the normal name is an alias. */
64485 #if defined __stub_$ac_func || defined __stub___$ac_func
64492 return $ac_func ();
64497 rm -f conftest.$ac_objext conftest$ac_exeext
64498 if { (ac_try="$ac_link"
64499 case "(($ac_try" in
64500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64501 *) ac_try_echo=$ac_try;;
64503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64504 $as_echo "$ac_try_echo") >&5
64505 (eval "$ac_link") 2>conftest.er1
64507 grep -v '^ *+' conftest.er1 >conftest.err
64509 cat conftest.err >&5
64510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64511 (exit $ac_status); } && {
64512 test -z "$ac_c_werror_flag" ||
64513 test ! -s conftest.err
64514 } && test -s conftest$ac_exeext && {
64515 test "$cross_compiling" = yes ||
64516 $as_test_x conftest$ac_exeext
64518 eval "$as_ac_var=yes"
64520 $as_echo "$as_me: failed program was:" >&5
64521 sed 's/^/| /' conftest.$ac_ext >&5
64523 eval "$as_ac_var=no"
64526 rm -rf conftest.dSYM
64527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64528 conftest$ac_exeext conftest.$ac_ext
64530 ac_res=`eval 'as_val=${'$as_ac_var'}
64531 $as_echo "$as_val"'`
64532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64533 $as_echo "$ac_res" >&6; }
64534 as_val=`eval 'as_val=${'$as_ac_var'}
64535 $as_echo "$as_val"'`
64536 if test "x$as_val" = x""yes; then
64537 cat >>confdefs.h <<_ACEOF
64538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64540 ice_have_openlog=yes
64544 if test "${ice_have_openlog}" = yes; then
64545 { $as_echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
64546 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
64547 if test "${ice_cv_have_openlog_decl+set}" = set; then
64548 $as_echo_n "(cached) " >&6
64551 ice_cv_have_openlog_decl=no
64552 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64553 ice_re_word='(^|[^a-zA-Z0-9_])'
64554 for header in syslog.h; do
64555 # Check for ordinary declaration
64556 cat >conftest.$ac_ext <<_ACEOF
64559 cat confdefs.h >>conftest.$ac_ext
64560 cat >>conftest.$ac_ext <<_ACEOF
64561 /* end confdefs.h. */
64565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64566 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then
64567 ice_cv_have_openlog_decl=yes
64571 if test "$ice_cv_have_openlog_decl" = yes; then
64574 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64575 cat >conftest.$ac_ext <<_ACEOF
64578 cat confdefs.h >>conftest.$ac_ext
64579 cat >>conftest.$ac_ext <<_ACEOF
64580 /* end confdefs.h. */
64584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64585 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64586 ice_cv_have_openlog_decl=yes
64590 if test "$ice_cv_have_openlog_decl" = yes; then
64597 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
64598 $as_echo "$ice_cv_have_openlog_decl" >&6; }
64599 if test "$ice_cv_have_openlog_decl" = yes; then
64601 cat >>confdefs.h <<_ACEOF
64602 #define HAVE_OPENLOG_DECL 1
64611 for ac_func in pclose
64613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64614 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64615 $as_echo_n "checking for $ac_func... " >&6; }
64616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64617 $as_echo_n "(cached) " >&6
64619 cat >conftest.$ac_ext <<_ACEOF
64622 cat confdefs.h >>conftest.$ac_ext
64623 cat >>conftest.$ac_ext <<_ACEOF
64624 /* end confdefs.h. */
64625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64627 #define $ac_func innocuous_$ac_func
64629 /* System header to define __stub macros and hopefully few prototypes,
64630 which can conflict with char $ac_func (); below.
64631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64632 <limits.h> exists even on freestanding compilers. */
64635 # include <limits.h>
64637 # include <assert.h>
64642 /* Override any GCC internal prototype to avoid an error.
64643 Use char because int might match the return type of a GCC
64644 builtin and then its argument prototype would still apply. */
64649 /* The GNU C library defines this for functions which it implements
64650 to always fail with ENOSYS. Some functions are actually named
64651 something starting with __ and the normal name is an alias. */
64652 #if defined __stub_$ac_func || defined __stub___$ac_func
64659 return $ac_func ();
64664 rm -f conftest.$ac_objext conftest$ac_exeext
64665 if { (ac_try="$ac_link"
64666 case "(($ac_try" in
64667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64668 *) ac_try_echo=$ac_try;;
64670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64671 $as_echo "$ac_try_echo") >&5
64672 (eval "$ac_link") 2>conftest.er1
64674 grep -v '^ *+' conftest.er1 >conftest.err
64676 cat conftest.err >&5
64677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64678 (exit $ac_status); } && {
64679 test -z "$ac_c_werror_flag" ||
64680 test ! -s conftest.err
64681 } && test -s conftest$ac_exeext && {
64682 test "$cross_compiling" = yes ||
64683 $as_test_x conftest$ac_exeext
64685 eval "$as_ac_var=yes"
64687 $as_echo "$as_me: failed program was:" >&5
64688 sed 's/^/| /' conftest.$ac_ext >&5
64690 eval "$as_ac_var=no"
64693 rm -rf conftest.dSYM
64694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64695 conftest$ac_exeext conftest.$ac_ext
64697 ac_res=`eval 'as_val=${'$as_ac_var'}
64698 $as_echo "$as_val"'`
64699 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64700 $as_echo "$ac_res" >&6; }
64701 as_val=`eval 'as_val=${'$as_ac_var'}
64702 $as_echo "$as_val"'`
64703 if test "x$as_val" = x""yes; then
64704 cat >>confdefs.h <<_ACEOF
64705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64707 ice_have_pclose=yes
64711 if test "${ice_have_pclose}" = yes; then
64712 { $as_echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
64713 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
64714 if test "${ice_cv_have_pclose_decl+set}" = set; then
64715 $as_echo_n "(cached) " >&6
64718 ice_cv_have_pclose_decl=no
64719 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64720 ice_re_word='(^|[^a-zA-Z0-9_])'
64721 for header in stdio.h; do
64722 # Check for ordinary declaration
64723 cat >conftest.$ac_ext <<_ACEOF
64726 cat confdefs.h >>conftest.$ac_ext
64727 cat >>conftest.$ac_ext <<_ACEOF
64728 /* end confdefs.h. */
64732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64733 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then
64734 ice_cv_have_pclose_decl=yes
64738 if test "$ice_cv_have_pclose_decl" = yes; then
64741 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64742 cat >conftest.$ac_ext <<_ACEOF
64745 cat confdefs.h >>conftest.$ac_ext
64746 cat >>conftest.$ac_ext <<_ACEOF
64747 /* end confdefs.h. */
64751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64752 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64753 ice_cv_have_pclose_decl=yes
64757 if test "$ice_cv_have_pclose_decl" = yes; then
64764 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
64765 $as_echo "$ice_cv_have_pclose_decl" >&6; }
64766 if test "$ice_cv_have_pclose_decl" = yes; then
64768 cat >>confdefs.h <<_ACEOF
64769 #define HAVE_PCLOSE_DECL 1
64778 for ac_func in perror
64780 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64781 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64782 $as_echo_n "checking for $ac_func... " >&6; }
64783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64784 $as_echo_n "(cached) " >&6
64786 cat >conftest.$ac_ext <<_ACEOF
64789 cat confdefs.h >>conftest.$ac_ext
64790 cat >>conftest.$ac_ext <<_ACEOF
64791 /* end confdefs.h. */
64792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64794 #define $ac_func innocuous_$ac_func
64796 /* System header to define __stub macros and hopefully few prototypes,
64797 which can conflict with char $ac_func (); below.
64798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64799 <limits.h> exists even on freestanding compilers. */
64802 # include <limits.h>
64804 # include <assert.h>
64809 /* Override any GCC internal prototype to avoid an error.
64810 Use char because int might match the return type of a GCC
64811 builtin and then its argument prototype would still apply. */
64816 /* The GNU C library defines this for functions which it implements
64817 to always fail with ENOSYS. Some functions are actually named
64818 something starting with __ and the normal name is an alias. */
64819 #if defined __stub_$ac_func || defined __stub___$ac_func
64826 return $ac_func ();
64831 rm -f conftest.$ac_objext conftest$ac_exeext
64832 if { (ac_try="$ac_link"
64833 case "(($ac_try" in
64834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64835 *) ac_try_echo=$ac_try;;
64837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64838 $as_echo "$ac_try_echo") >&5
64839 (eval "$ac_link") 2>conftest.er1
64841 grep -v '^ *+' conftest.er1 >conftest.err
64843 cat conftest.err >&5
64844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64845 (exit $ac_status); } && {
64846 test -z "$ac_c_werror_flag" ||
64847 test ! -s conftest.err
64848 } && test -s conftest$ac_exeext && {
64849 test "$cross_compiling" = yes ||
64850 $as_test_x conftest$ac_exeext
64852 eval "$as_ac_var=yes"
64854 $as_echo "$as_me: failed program was:" >&5
64855 sed 's/^/| /' conftest.$ac_ext >&5
64857 eval "$as_ac_var=no"
64860 rm -rf conftest.dSYM
64861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64862 conftest$ac_exeext conftest.$ac_ext
64864 ac_res=`eval 'as_val=${'$as_ac_var'}
64865 $as_echo "$as_val"'`
64866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64867 $as_echo "$ac_res" >&6; }
64868 as_val=`eval 'as_val=${'$as_ac_var'}
64869 $as_echo "$as_val"'`
64870 if test "x$as_val" = x""yes; then
64871 cat >>confdefs.h <<_ACEOF
64872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64874 ice_have_perror=yes
64878 if test "${ice_have_perror}" = yes; then
64879 { $as_echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
64880 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
64881 if test "${ice_cv_have_perror_decl+set}" = set; then
64882 $as_echo_n "(cached) " >&6
64885 ice_cv_have_perror_decl=no
64886 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64887 ice_re_word='(^|[^a-zA-Z0-9_])'
64888 for header in stdio.h; do
64889 # Check for ordinary declaration
64890 cat >conftest.$ac_ext <<_ACEOF
64893 cat confdefs.h >>conftest.$ac_ext
64894 cat >>conftest.$ac_ext <<_ACEOF
64895 /* end confdefs.h. */
64899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64900 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then
64901 ice_cv_have_perror_decl=yes
64905 if test "$ice_cv_have_perror_decl" = yes; then
64908 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64909 cat >conftest.$ac_ext <<_ACEOF
64912 cat confdefs.h >>conftest.$ac_ext
64913 cat >>conftest.$ac_ext <<_ACEOF
64914 /* end confdefs.h. */
64918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64919 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64920 ice_cv_have_perror_decl=yes
64924 if test "$ice_cv_have_perror_decl" = yes; then
64931 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
64932 $as_echo "$ice_cv_have_perror_decl" >&6; }
64933 if test "$ice_cv_have_perror_decl" = yes; then
64935 cat >>confdefs.h <<_ACEOF
64936 #define HAVE_PERROR_DECL 1
64945 for ac_func in printf
64947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64948 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64949 $as_echo_n "checking for $ac_func... " >&6; }
64950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64951 $as_echo_n "(cached) " >&6
64953 cat >conftest.$ac_ext <<_ACEOF
64956 cat confdefs.h >>conftest.$ac_ext
64957 cat >>conftest.$ac_ext <<_ACEOF
64958 /* end confdefs.h. */
64959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64961 #define $ac_func innocuous_$ac_func
64963 /* System header to define __stub macros and hopefully few prototypes,
64964 which can conflict with char $ac_func (); below.
64965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64966 <limits.h> exists even on freestanding compilers. */
64969 # include <limits.h>
64971 # include <assert.h>
64976 /* Override any GCC internal prototype to avoid an error.
64977 Use char because int might match the return type of a GCC
64978 builtin and then its argument prototype would still apply. */
64983 /* The GNU C library defines this for functions which it implements
64984 to always fail with ENOSYS. Some functions are actually named
64985 something starting with __ and the normal name is an alias. */
64986 #if defined __stub_$ac_func || defined __stub___$ac_func
64993 return $ac_func ();
64998 rm -f conftest.$ac_objext conftest$ac_exeext
64999 if { (ac_try="$ac_link"
65000 case "(($ac_try" in
65001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65002 *) ac_try_echo=$ac_try;;
65004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65005 $as_echo "$ac_try_echo") >&5
65006 (eval "$ac_link") 2>conftest.er1
65008 grep -v '^ *+' conftest.er1 >conftest.err
65010 cat conftest.err >&5
65011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65012 (exit $ac_status); } && {
65013 test -z "$ac_c_werror_flag" ||
65014 test ! -s conftest.err
65015 } && test -s conftest$ac_exeext && {
65016 test "$cross_compiling" = yes ||
65017 $as_test_x conftest$ac_exeext
65019 eval "$as_ac_var=yes"
65021 $as_echo "$as_me: failed program was:" >&5
65022 sed 's/^/| /' conftest.$ac_ext >&5
65024 eval "$as_ac_var=no"
65027 rm -rf conftest.dSYM
65028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65029 conftest$ac_exeext conftest.$ac_ext
65031 ac_res=`eval 'as_val=${'$as_ac_var'}
65032 $as_echo "$as_val"'`
65033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65034 $as_echo "$ac_res" >&6; }
65035 as_val=`eval 'as_val=${'$as_ac_var'}
65036 $as_echo "$as_val"'`
65037 if test "x$as_val" = x""yes; then
65038 cat >>confdefs.h <<_ACEOF
65039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65041 ice_have_printf=yes
65045 if test "${ice_have_printf}" = yes; then
65046 { $as_echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
65047 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
65048 if test "${ice_cv_have_printf_decl+set}" = set; then
65049 $as_echo_n "(cached) " >&6
65052 ice_cv_have_printf_decl=no
65053 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65054 ice_re_word='(^|[^a-zA-Z0-9_])'
65055 for header in stdio.h; do
65056 # Check for ordinary declaration
65057 cat >conftest.$ac_ext <<_ACEOF
65060 cat confdefs.h >>conftest.$ac_ext
65061 cat >>conftest.$ac_ext <<_ACEOF
65062 /* end confdefs.h. */
65066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65067 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then
65068 ice_cv_have_printf_decl=yes
65072 if test "$ice_cv_have_printf_decl" = yes; then
65075 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65076 cat >conftest.$ac_ext <<_ACEOF
65079 cat confdefs.h >>conftest.$ac_ext
65080 cat >>conftest.$ac_ext <<_ACEOF
65081 /* end confdefs.h. */
65085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65086 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65087 ice_cv_have_printf_decl=yes
65091 if test "$ice_cv_have_printf_decl" = yes; then
65098 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
65099 $as_echo "$ice_cv_have_printf_decl" >&6; }
65100 if test "$ice_cv_have_printf_decl" = yes; then
65102 cat >>confdefs.h <<_ACEOF
65103 #define HAVE_PRINTF_DECL 1
65110 for ac_func in putenv
65112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65113 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65114 $as_echo_n "checking for $ac_func... " >&6; }
65115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65116 $as_echo_n "(cached) " >&6
65118 cat >conftest.$ac_ext <<_ACEOF
65121 cat confdefs.h >>conftest.$ac_ext
65122 cat >>conftest.$ac_ext <<_ACEOF
65123 /* end confdefs.h. */
65124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65126 #define $ac_func innocuous_$ac_func
65128 /* System header to define __stub macros and hopefully few prototypes,
65129 which can conflict with char $ac_func (); below.
65130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65131 <limits.h> exists even on freestanding compilers. */
65134 # include <limits.h>
65136 # include <assert.h>
65141 /* Override any GCC internal prototype to avoid an error.
65142 Use char because int might match the return type of a GCC
65143 builtin and then its argument prototype would still apply. */
65148 /* The GNU C library defines this for functions which it implements
65149 to always fail with ENOSYS. Some functions are actually named
65150 something starting with __ and the normal name is an alias. */
65151 #if defined __stub_$ac_func || defined __stub___$ac_func
65158 return $ac_func ();
65163 rm -f conftest.$ac_objext conftest$ac_exeext
65164 if { (ac_try="$ac_link"
65165 case "(($ac_try" in
65166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65167 *) ac_try_echo=$ac_try;;
65169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65170 $as_echo "$ac_try_echo") >&5
65171 (eval "$ac_link") 2>conftest.er1
65173 grep -v '^ *+' conftest.er1 >conftest.err
65175 cat conftest.err >&5
65176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65177 (exit $ac_status); } && {
65178 test -z "$ac_c_werror_flag" ||
65179 test ! -s conftest.err
65180 } && test -s conftest$ac_exeext && {
65181 test "$cross_compiling" = yes ||
65182 $as_test_x conftest$ac_exeext
65184 eval "$as_ac_var=yes"
65186 $as_echo "$as_me: failed program was:" >&5
65187 sed 's/^/| /' conftest.$ac_ext >&5
65189 eval "$as_ac_var=no"
65192 rm -rf conftest.dSYM
65193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65194 conftest$ac_exeext conftest.$ac_ext
65196 ac_res=`eval 'as_val=${'$as_ac_var'}
65197 $as_echo "$as_val"'`
65198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65199 $as_echo "$ac_res" >&6; }
65200 as_val=`eval 'as_val=${'$as_ac_var'}
65201 $as_echo "$as_val"'`
65202 if test "x$as_val" = x""yes; then
65203 cat >>confdefs.h <<_ACEOF
65204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65213 for ac_func in puts
65215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65216 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65217 $as_echo_n "checking for $ac_func... " >&6; }
65218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65219 $as_echo_n "(cached) " >&6
65221 cat >conftest.$ac_ext <<_ACEOF
65224 cat confdefs.h >>conftest.$ac_ext
65225 cat >>conftest.$ac_ext <<_ACEOF
65226 /* end confdefs.h. */
65227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65229 #define $ac_func innocuous_$ac_func
65231 /* System header to define __stub macros and hopefully few prototypes,
65232 which can conflict with char $ac_func (); below.
65233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65234 <limits.h> exists even on freestanding compilers. */
65237 # include <limits.h>
65239 # include <assert.h>
65244 /* Override any GCC internal prototype to avoid an error.
65245 Use char because int might match the return type of a GCC
65246 builtin and then its argument prototype would still apply. */
65251 /* The GNU C library defines this for functions which it implements
65252 to always fail with ENOSYS. Some functions are actually named
65253 something starting with __ and the normal name is an alias. */
65254 #if defined __stub_$ac_func || defined __stub___$ac_func
65261 return $ac_func ();
65266 rm -f conftest.$ac_objext conftest$ac_exeext
65267 if { (ac_try="$ac_link"
65268 case "(($ac_try" in
65269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65270 *) ac_try_echo=$ac_try;;
65272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65273 $as_echo "$ac_try_echo") >&5
65274 (eval "$ac_link") 2>conftest.er1
65276 grep -v '^ *+' conftest.er1 >conftest.err
65278 cat conftest.err >&5
65279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65280 (exit $ac_status); } && {
65281 test -z "$ac_c_werror_flag" ||
65282 test ! -s conftest.err
65283 } && test -s conftest$ac_exeext && {
65284 test "$cross_compiling" = yes ||
65285 $as_test_x conftest$ac_exeext
65287 eval "$as_ac_var=yes"
65289 $as_echo "$as_me: failed program was:" >&5
65290 sed 's/^/| /' conftest.$ac_ext >&5
65292 eval "$as_ac_var=no"
65295 rm -rf conftest.dSYM
65296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65297 conftest$ac_exeext conftest.$ac_ext
65299 ac_res=`eval 'as_val=${'$as_ac_var'}
65300 $as_echo "$as_val"'`
65301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65302 $as_echo "$ac_res" >&6; }
65303 as_val=`eval 'as_val=${'$as_ac_var'}
65304 $as_echo "$as_val"'`
65305 if test "x$as_val" = x""yes; then
65306 cat >>confdefs.h <<_ACEOF
65307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65313 if test "${ice_have_puts}" = yes; then
65314 { $as_echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
65315 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
65316 if test "${ice_cv_have_puts_decl+set}" = set; then
65317 $as_echo_n "(cached) " >&6
65320 ice_cv_have_puts_decl=no
65321 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65322 ice_re_word='(^|[^a-zA-Z0-9_])'
65323 for header in stdio.h; do
65324 # Check for ordinary declaration
65325 cat >conftest.$ac_ext <<_ACEOF
65328 cat confdefs.h >>conftest.$ac_ext
65329 cat >>conftest.$ac_ext <<_ACEOF
65330 /* end confdefs.h. */
65334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65335 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then
65336 ice_cv_have_puts_decl=yes
65340 if test "$ice_cv_have_puts_decl" = yes; then
65343 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65344 cat >conftest.$ac_ext <<_ACEOF
65347 cat confdefs.h >>conftest.$ac_ext
65348 cat >>conftest.$ac_ext <<_ACEOF
65349 /* end confdefs.h. */
65353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65354 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65355 ice_cv_have_puts_decl=yes
65359 if test "$ice_cv_have_puts_decl" = yes; then
65366 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
65367 $as_echo "$ice_cv_have_puts_decl" >&6; }
65368 if test "$ice_cv_have_puts_decl" = yes; then
65370 cat >>confdefs.h <<_ACEOF
65371 #define HAVE_PUTS_DECL 1
65378 ice_have_realloc=no
65380 for ac_func in realloc
65382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65383 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65384 $as_echo_n "checking for $ac_func... " >&6; }
65385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65386 $as_echo_n "(cached) " >&6
65388 cat >conftest.$ac_ext <<_ACEOF
65391 cat confdefs.h >>conftest.$ac_ext
65392 cat >>conftest.$ac_ext <<_ACEOF
65393 /* end confdefs.h. */
65394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65396 #define $ac_func innocuous_$ac_func
65398 /* System header to define __stub macros and hopefully few prototypes,
65399 which can conflict with char $ac_func (); below.
65400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65401 <limits.h> exists even on freestanding compilers. */
65404 # include <limits.h>
65406 # include <assert.h>
65411 /* Override any GCC internal prototype to avoid an error.
65412 Use char because int might match the return type of a GCC
65413 builtin and then its argument prototype would still apply. */
65418 /* The GNU C library defines this for functions which it implements
65419 to always fail with ENOSYS. Some functions are actually named
65420 something starting with __ and the normal name is an alias. */
65421 #if defined __stub_$ac_func || defined __stub___$ac_func
65428 return $ac_func ();
65433 rm -f conftest.$ac_objext conftest$ac_exeext
65434 if { (ac_try="$ac_link"
65435 case "(($ac_try" in
65436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65437 *) ac_try_echo=$ac_try;;
65439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65440 $as_echo "$ac_try_echo") >&5
65441 (eval "$ac_link") 2>conftest.er1
65443 grep -v '^ *+' conftest.er1 >conftest.err
65445 cat conftest.err >&5
65446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65447 (exit $ac_status); } && {
65448 test -z "$ac_c_werror_flag" ||
65449 test ! -s conftest.err
65450 } && test -s conftest$ac_exeext && {
65451 test "$cross_compiling" = yes ||
65452 $as_test_x conftest$ac_exeext
65454 eval "$as_ac_var=yes"
65456 $as_echo "$as_me: failed program was:" >&5
65457 sed 's/^/| /' conftest.$ac_ext >&5
65459 eval "$as_ac_var=no"
65462 rm -rf conftest.dSYM
65463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65464 conftest$ac_exeext conftest.$ac_ext
65466 ac_res=`eval 'as_val=${'$as_ac_var'}
65467 $as_echo "$as_val"'`
65468 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65469 $as_echo "$ac_res" >&6; }
65470 as_val=`eval 'as_val=${'$as_ac_var'}
65471 $as_echo "$as_val"'`
65472 if test "x$as_val" = x""yes; then
65473 cat >>confdefs.h <<_ACEOF
65474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65476 ice_have_realloc=yes
65480 if test "${ice_have_realloc}" = yes; then
65481 { $as_echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
65482 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
65483 if test "${ice_cv_have_realloc_decl+set}" = set; then
65484 $as_echo_n "(cached) " >&6
65487 ice_cv_have_realloc_decl=no
65488 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65489 ice_re_word='(^|[^a-zA-Z0-9_])'
65490 for header in stdlib.h; do
65491 # Check for ordinary declaration
65492 cat >conftest.$ac_ext <<_ACEOF
65495 cat confdefs.h >>conftest.$ac_ext
65496 cat >>conftest.$ac_ext <<_ACEOF
65497 /* end confdefs.h. */
65501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65502 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then
65503 ice_cv_have_realloc_decl=yes
65507 if test "$ice_cv_have_realloc_decl" = yes; then
65510 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65511 cat >conftest.$ac_ext <<_ACEOF
65514 cat confdefs.h >>conftest.$ac_ext
65515 cat >>conftest.$ac_ext <<_ACEOF
65516 /* end confdefs.h. */
65520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65521 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65522 ice_cv_have_realloc_decl=yes
65526 if test "$ice_cv_have_realloc_decl" = yes; then
65533 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
65534 $as_echo "$ice_cv_have_realloc_decl" >&6; }
65535 if test "$ice_cv_have_realloc_decl" = yes; then
65537 cat >>confdefs.h <<_ACEOF
65538 #define HAVE_REALLOC_DECL 1
65545 ice_have_recvfrom=no
65547 for ac_func in recvfrom
65549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65550 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65551 $as_echo_n "checking for $ac_func... " >&6; }
65552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65553 $as_echo_n "(cached) " >&6
65555 cat >conftest.$ac_ext <<_ACEOF
65558 cat confdefs.h >>conftest.$ac_ext
65559 cat >>conftest.$ac_ext <<_ACEOF
65560 /* end confdefs.h. */
65561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65563 #define $ac_func innocuous_$ac_func
65565 /* System header to define __stub macros and hopefully few prototypes,
65566 which can conflict with char $ac_func (); below.
65567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65568 <limits.h> exists even on freestanding compilers. */
65571 # include <limits.h>
65573 # include <assert.h>
65578 /* Override any GCC internal prototype to avoid an error.
65579 Use char because int might match the return type of a GCC
65580 builtin and then its argument prototype would still apply. */
65585 /* The GNU C library defines this for functions which it implements
65586 to always fail with ENOSYS. Some functions are actually named
65587 something starting with __ and the normal name is an alias. */
65588 #if defined __stub_$ac_func || defined __stub___$ac_func
65595 return $ac_func ();
65600 rm -f conftest.$ac_objext conftest$ac_exeext
65601 if { (ac_try="$ac_link"
65602 case "(($ac_try" in
65603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65604 *) ac_try_echo=$ac_try;;
65606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65607 $as_echo "$ac_try_echo") >&5
65608 (eval "$ac_link") 2>conftest.er1
65610 grep -v '^ *+' conftest.er1 >conftest.err
65612 cat conftest.err >&5
65613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65614 (exit $ac_status); } && {
65615 test -z "$ac_c_werror_flag" ||
65616 test ! -s conftest.err
65617 } && test -s conftest$ac_exeext && {
65618 test "$cross_compiling" = yes ||
65619 $as_test_x conftest$ac_exeext
65621 eval "$as_ac_var=yes"
65623 $as_echo "$as_me: failed program was:" >&5
65624 sed 's/^/| /' conftest.$ac_ext >&5
65626 eval "$as_ac_var=no"
65629 rm -rf conftest.dSYM
65630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65631 conftest$ac_exeext conftest.$ac_ext
65633 ac_res=`eval 'as_val=${'$as_ac_var'}
65634 $as_echo "$as_val"'`
65635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65636 $as_echo "$ac_res" >&6; }
65637 as_val=`eval 'as_val=${'$as_ac_var'}
65638 $as_echo "$as_val"'`
65639 if test "x$as_val" = x""yes; then
65640 cat >>confdefs.h <<_ACEOF
65641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65643 ice_have_recvfrom=yes
65647 if test "${ice_have_recvfrom}" = yes; then
65648 { $as_echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
65649 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
65650 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
65651 $as_echo_n "(cached) " >&6
65654 ice_cv_have_recvfrom_decl=no
65655 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65656 ice_re_word='(^|[^a-zA-Z0-9_])'
65657 for header in sys/types.h sys/socket.h; do
65658 # Check for ordinary declaration
65659 cat >conftest.$ac_ext <<_ACEOF
65662 cat confdefs.h >>conftest.$ac_ext
65663 cat >>conftest.$ac_ext <<_ACEOF
65664 /* end confdefs.h. */
65668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65669 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then
65670 ice_cv_have_recvfrom_decl=yes
65674 if test "$ice_cv_have_recvfrom_decl" = yes; then
65677 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65678 cat >conftest.$ac_ext <<_ACEOF
65681 cat confdefs.h >>conftest.$ac_ext
65682 cat >>conftest.$ac_ext <<_ACEOF
65683 /* end confdefs.h. */
65687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65688 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65689 ice_cv_have_recvfrom_decl=yes
65693 if test "$ice_cv_have_recvfrom_decl" = yes; then
65700 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
65701 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
65702 if test "$ice_cv_have_recvfrom_decl" = yes; then
65704 cat >>confdefs.h <<_ACEOF
65705 #define HAVE_RECVFROM_DECL 1
65714 for ac_func in remove
65716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65717 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65718 $as_echo_n "checking for $ac_func... " >&6; }
65719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65720 $as_echo_n "(cached) " >&6
65722 cat >conftest.$ac_ext <<_ACEOF
65725 cat confdefs.h >>conftest.$ac_ext
65726 cat >>conftest.$ac_ext <<_ACEOF
65727 /* end confdefs.h. */
65728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65730 #define $ac_func innocuous_$ac_func
65732 /* System header to define __stub macros and hopefully few prototypes,
65733 which can conflict with char $ac_func (); below.
65734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65735 <limits.h> exists even on freestanding compilers. */
65738 # include <limits.h>
65740 # include <assert.h>
65745 /* Override any GCC internal prototype to avoid an error.
65746 Use char because int might match the return type of a GCC
65747 builtin and then its argument prototype would still apply. */
65752 /* The GNU C library defines this for functions which it implements
65753 to always fail with ENOSYS. Some functions are actually named
65754 something starting with __ and the normal name is an alias. */
65755 #if defined __stub_$ac_func || defined __stub___$ac_func
65762 return $ac_func ();
65767 rm -f conftest.$ac_objext conftest$ac_exeext
65768 if { (ac_try="$ac_link"
65769 case "(($ac_try" in
65770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65771 *) ac_try_echo=$ac_try;;
65773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65774 $as_echo "$ac_try_echo") >&5
65775 (eval "$ac_link") 2>conftest.er1
65777 grep -v '^ *+' conftest.er1 >conftest.err
65779 cat conftest.err >&5
65780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65781 (exit $ac_status); } && {
65782 test -z "$ac_c_werror_flag" ||
65783 test ! -s conftest.err
65784 } && test -s conftest$ac_exeext && {
65785 test "$cross_compiling" = yes ||
65786 $as_test_x conftest$ac_exeext
65788 eval "$as_ac_var=yes"
65790 $as_echo "$as_me: failed program was:" >&5
65791 sed 's/^/| /' conftest.$ac_ext >&5
65793 eval "$as_ac_var=no"
65796 rm -rf conftest.dSYM
65797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65798 conftest$ac_exeext conftest.$ac_ext
65800 ac_res=`eval 'as_val=${'$as_ac_var'}
65801 $as_echo "$as_val"'`
65802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65803 $as_echo "$ac_res" >&6; }
65804 as_val=`eval 'as_val=${'$as_ac_var'}
65805 $as_echo "$as_val"'`
65806 if test "x$as_val" = x""yes; then
65807 cat >>confdefs.h <<_ACEOF
65808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65810 ice_have_remove=yes
65814 if test "${ice_have_remove}" = yes; then
65815 { $as_echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
65816 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
65817 if test "${ice_cv_have_remove_decl+set}" = set; then
65818 $as_echo_n "(cached) " >&6
65821 ice_cv_have_remove_decl=no
65822 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65823 ice_re_word='(^|[^a-zA-Z0-9_])'
65824 for header in stdio.h; do
65825 # Check for ordinary declaration
65826 cat >conftest.$ac_ext <<_ACEOF
65829 cat confdefs.h >>conftest.$ac_ext
65830 cat >>conftest.$ac_ext <<_ACEOF
65831 /* end confdefs.h. */
65835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65836 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then
65837 ice_cv_have_remove_decl=yes
65841 if test "$ice_cv_have_remove_decl" = yes; then
65844 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65845 cat >conftest.$ac_ext <<_ACEOF
65848 cat confdefs.h >>conftest.$ac_ext
65849 cat >>conftest.$ac_ext <<_ACEOF
65850 /* end confdefs.h. */
65854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65855 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65856 ice_cv_have_remove_decl=yes
65860 if test "$ice_cv_have_remove_decl" = yes; then
65867 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
65868 $as_echo "$ice_cv_have_remove_decl" >&6; }
65869 if test "$ice_cv_have_remove_decl" = yes; then
65871 cat >>confdefs.h <<_ACEOF
65872 #define HAVE_REMOVE_DECL 1
65881 for ac_func in rename
65883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65885 $as_echo_n "checking for $ac_func... " >&6; }
65886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65887 $as_echo_n "(cached) " >&6
65889 cat >conftest.$ac_ext <<_ACEOF
65892 cat confdefs.h >>conftest.$ac_ext
65893 cat >>conftest.$ac_ext <<_ACEOF
65894 /* end confdefs.h. */
65895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65897 #define $ac_func innocuous_$ac_func
65899 /* System header to define __stub macros and hopefully few prototypes,
65900 which can conflict with char $ac_func (); below.
65901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65902 <limits.h> exists even on freestanding compilers. */
65905 # include <limits.h>
65907 # include <assert.h>
65912 /* Override any GCC internal prototype to avoid an error.
65913 Use char because int might match the return type of a GCC
65914 builtin and then its argument prototype would still apply. */
65919 /* The GNU C library defines this for functions which it implements
65920 to always fail with ENOSYS. Some functions are actually named
65921 something starting with __ and the normal name is an alias. */
65922 #if defined __stub_$ac_func || defined __stub___$ac_func
65929 return $ac_func ();
65934 rm -f conftest.$ac_objext conftest$ac_exeext
65935 if { (ac_try="$ac_link"
65936 case "(($ac_try" in
65937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65938 *) ac_try_echo=$ac_try;;
65940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65941 $as_echo "$ac_try_echo") >&5
65942 (eval "$ac_link") 2>conftest.er1
65944 grep -v '^ *+' conftest.er1 >conftest.err
65946 cat conftest.err >&5
65947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65948 (exit $ac_status); } && {
65949 test -z "$ac_c_werror_flag" ||
65950 test ! -s conftest.err
65951 } && test -s conftest$ac_exeext && {
65952 test "$cross_compiling" = yes ||
65953 $as_test_x conftest$ac_exeext
65955 eval "$as_ac_var=yes"
65957 $as_echo "$as_me: failed program was:" >&5
65958 sed 's/^/| /' conftest.$ac_ext >&5
65960 eval "$as_ac_var=no"
65963 rm -rf conftest.dSYM
65964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65965 conftest$ac_exeext conftest.$ac_ext
65967 ac_res=`eval 'as_val=${'$as_ac_var'}
65968 $as_echo "$as_val"'`
65969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65970 $as_echo "$ac_res" >&6; }
65971 as_val=`eval 'as_val=${'$as_ac_var'}
65972 $as_echo "$as_val"'`
65973 if test "x$as_val" = x""yes; then
65974 cat >>confdefs.h <<_ACEOF
65975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65977 ice_have_rename=yes
65981 if test "${ice_have_rename}" = yes; then
65982 { $as_echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
65983 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
65984 if test "${ice_cv_have_rename_decl+set}" = set; then
65985 $as_echo_n "(cached) " >&6
65988 ice_cv_have_rename_decl=no
65989 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65990 ice_re_word='(^|[^a-zA-Z0-9_])'
65991 for header in stdio.h; do
65992 # Check for ordinary declaration
65993 cat >conftest.$ac_ext <<_ACEOF
65996 cat confdefs.h >>conftest.$ac_ext
65997 cat >>conftest.$ac_ext <<_ACEOF
65998 /* end confdefs.h. */
66002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66003 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then
66004 ice_cv_have_rename_decl=yes
66008 if test "$ice_cv_have_rename_decl" = yes; then
66011 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66012 cat >conftest.$ac_ext <<_ACEOF
66015 cat confdefs.h >>conftest.$ac_ext
66016 cat >>conftest.$ac_ext <<_ACEOF
66017 /* end confdefs.h. */
66021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66022 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66023 ice_cv_have_rename_decl=yes
66027 if test "$ice_cv_have_rename_decl" = yes; then
66034 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
66035 $as_echo "$ice_cv_have_rename_decl" >&6; }
66036 if test "$ice_cv_have_rename_decl" = yes; then
66038 cat >>confdefs.h <<_ACEOF
66039 #define HAVE_RENAME_DECL 1
66048 for ac_func in rewind
66050 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66051 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66052 $as_echo_n "checking for $ac_func... " >&6; }
66053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66054 $as_echo_n "(cached) " >&6
66056 cat >conftest.$ac_ext <<_ACEOF
66059 cat confdefs.h >>conftest.$ac_ext
66060 cat >>conftest.$ac_ext <<_ACEOF
66061 /* end confdefs.h. */
66062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66064 #define $ac_func innocuous_$ac_func
66066 /* System header to define __stub macros and hopefully few prototypes,
66067 which can conflict with char $ac_func (); below.
66068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66069 <limits.h> exists even on freestanding compilers. */
66072 # include <limits.h>
66074 # include <assert.h>
66079 /* Override any GCC internal prototype to avoid an error.
66080 Use char because int might match the return type of a GCC
66081 builtin and then its argument prototype would still apply. */
66086 /* The GNU C library defines this for functions which it implements
66087 to always fail with ENOSYS. Some functions are actually named
66088 something starting with __ and the normal name is an alias. */
66089 #if defined __stub_$ac_func || defined __stub___$ac_func
66096 return $ac_func ();
66101 rm -f conftest.$ac_objext conftest$ac_exeext
66102 if { (ac_try="$ac_link"
66103 case "(($ac_try" in
66104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66105 *) ac_try_echo=$ac_try;;
66107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66108 $as_echo "$ac_try_echo") >&5
66109 (eval "$ac_link") 2>conftest.er1
66111 grep -v '^ *+' conftest.er1 >conftest.err
66113 cat conftest.err >&5
66114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66115 (exit $ac_status); } && {
66116 test -z "$ac_c_werror_flag" ||
66117 test ! -s conftest.err
66118 } && test -s conftest$ac_exeext && {
66119 test "$cross_compiling" = yes ||
66120 $as_test_x conftest$ac_exeext
66122 eval "$as_ac_var=yes"
66124 $as_echo "$as_me: failed program was:" >&5
66125 sed 's/^/| /' conftest.$ac_ext >&5
66127 eval "$as_ac_var=no"
66130 rm -rf conftest.dSYM
66131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66132 conftest$ac_exeext conftest.$ac_ext
66134 ac_res=`eval 'as_val=${'$as_ac_var'}
66135 $as_echo "$as_val"'`
66136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66137 $as_echo "$ac_res" >&6; }
66138 as_val=`eval 'as_val=${'$as_ac_var'}
66139 $as_echo "$as_val"'`
66140 if test "x$as_val" = x""yes; then
66141 cat >>confdefs.h <<_ACEOF
66142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66144 ice_have_rewind=yes
66148 if test "${ice_have_rewind}" = yes; then
66149 { $as_echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
66150 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
66151 if test "${ice_cv_have_rewind_decl+set}" = set; then
66152 $as_echo_n "(cached) " >&6
66155 ice_cv_have_rewind_decl=no
66156 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66157 ice_re_word='(^|[^a-zA-Z0-9_])'
66158 for header in stdio.h; do
66159 # Check for ordinary declaration
66160 cat >conftest.$ac_ext <<_ACEOF
66163 cat confdefs.h >>conftest.$ac_ext
66164 cat >>conftest.$ac_ext <<_ACEOF
66165 /* end confdefs.h. */
66169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66170 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then
66171 ice_cv_have_rewind_decl=yes
66175 if test "$ice_cv_have_rewind_decl" = yes; then
66178 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66179 cat >conftest.$ac_ext <<_ACEOF
66182 cat confdefs.h >>conftest.$ac_ext
66183 cat >>conftest.$ac_ext <<_ACEOF
66184 /* end confdefs.h. */
66188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66189 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66190 ice_cv_have_rewind_decl=yes
66194 if test "$ice_cv_have_rewind_decl" = yes; then
66201 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
66202 $as_echo "$ice_cv_have_rewind_decl" >&6; }
66203 if test "$ice_cv_have_rewind_decl" = yes; then
66205 cat >>confdefs.h <<_ACEOF
66206 #define HAVE_REWIND_DECL 1
66213 ice_have_ruserok=no
66215 for ac_func in ruserok
66217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66218 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66219 $as_echo_n "checking for $ac_func... " >&6; }
66220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66221 $as_echo_n "(cached) " >&6
66223 cat >conftest.$ac_ext <<_ACEOF
66226 cat confdefs.h >>conftest.$ac_ext
66227 cat >>conftest.$ac_ext <<_ACEOF
66228 /* end confdefs.h. */
66229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66231 #define $ac_func innocuous_$ac_func
66233 /* System header to define __stub macros and hopefully few prototypes,
66234 which can conflict with char $ac_func (); below.
66235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66236 <limits.h> exists even on freestanding compilers. */
66239 # include <limits.h>
66241 # include <assert.h>
66246 /* Override any GCC internal prototype to avoid an error.
66247 Use char because int might match the return type of a GCC
66248 builtin and then its argument prototype would still apply. */
66253 /* The GNU C library defines this for functions which it implements
66254 to always fail with ENOSYS. Some functions are actually named
66255 something starting with __ and the normal name is an alias. */
66256 #if defined __stub_$ac_func || defined __stub___$ac_func
66263 return $ac_func ();
66268 rm -f conftest.$ac_objext conftest$ac_exeext
66269 if { (ac_try="$ac_link"
66270 case "(($ac_try" in
66271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66272 *) ac_try_echo=$ac_try;;
66274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66275 $as_echo "$ac_try_echo") >&5
66276 (eval "$ac_link") 2>conftest.er1
66278 grep -v '^ *+' conftest.er1 >conftest.err
66280 cat conftest.err >&5
66281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66282 (exit $ac_status); } && {
66283 test -z "$ac_c_werror_flag" ||
66284 test ! -s conftest.err
66285 } && test -s conftest$ac_exeext && {
66286 test "$cross_compiling" = yes ||
66287 $as_test_x conftest$ac_exeext
66289 eval "$as_ac_var=yes"
66291 $as_echo "$as_me: failed program was:" >&5
66292 sed 's/^/| /' conftest.$ac_ext >&5
66294 eval "$as_ac_var=no"
66297 rm -rf conftest.dSYM
66298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66299 conftest$ac_exeext conftest.$ac_ext
66301 ac_res=`eval 'as_val=${'$as_ac_var'}
66302 $as_echo "$as_val"'`
66303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66304 $as_echo "$ac_res" >&6; }
66305 as_val=`eval 'as_val=${'$as_ac_var'}
66306 $as_echo "$as_val"'`
66307 if test "x$as_val" = x""yes; then
66308 cat >>confdefs.h <<_ACEOF
66309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66311 ice_have_ruserok=yes
66315 if test "${ice_have_ruserok}" = yes; then
66316 { $as_echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
66317 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
66318 if test "${ice_cv_have_ruserok_decl+set}" = set; then
66319 $as_echo_n "(cached) " >&6
66322 ice_cv_have_ruserok_decl=no
66323 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66324 ice_re_word='(^|[^a-zA-Z0-9_])'
66325 for header in netdb.h sys/socket.h libc.h unistd.h; do
66326 # Check for ordinary declaration
66327 cat >conftest.$ac_ext <<_ACEOF
66330 cat confdefs.h >>conftest.$ac_ext
66331 cat >>conftest.$ac_ext <<_ACEOF
66332 /* end confdefs.h. */
66336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66337 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then
66338 ice_cv_have_ruserok_decl=yes
66342 if test "$ice_cv_have_ruserok_decl" = yes; then
66345 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66346 cat >conftest.$ac_ext <<_ACEOF
66349 cat confdefs.h >>conftest.$ac_ext
66350 cat >>conftest.$ac_ext <<_ACEOF
66351 /* end confdefs.h. */
66355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66356 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66357 ice_cv_have_ruserok_decl=yes
66361 if test "$ice_cv_have_ruserok_decl" = yes; then
66368 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
66369 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
66370 if test "$ice_cv_have_ruserok_decl" = yes; then
66372 cat >>confdefs.h <<_ACEOF
66373 #define HAVE_RUSEROK_DECL 1
66382 for ac_func in select
66384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66385 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66386 $as_echo_n "checking for $ac_func... " >&6; }
66387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66388 $as_echo_n "(cached) " >&6
66390 cat >conftest.$ac_ext <<_ACEOF
66393 cat confdefs.h >>conftest.$ac_ext
66394 cat >>conftest.$ac_ext <<_ACEOF
66395 /* end confdefs.h. */
66396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66398 #define $ac_func innocuous_$ac_func
66400 /* System header to define __stub macros and hopefully few prototypes,
66401 which can conflict with char $ac_func (); below.
66402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66403 <limits.h> exists even on freestanding compilers. */
66406 # include <limits.h>
66408 # include <assert.h>
66413 /* Override any GCC internal prototype to avoid an error.
66414 Use char because int might match the return type of a GCC
66415 builtin and then its argument prototype would still apply. */
66420 /* The GNU C library defines this for functions which it implements
66421 to always fail with ENOSYS. Some functions are actually named
66422 something starting with __ and the normal name is an alias. */
66423 #if defined __stub_$ac_func || defined __stub___$ac_func
66430 return $ac_func ();
66435 rm -f conftest.$ac_objext conftest$ac_exeext
66436 if { (ac_try="$ac_link"
66437 case "(($ac_try" in
66438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66439 *) ac_try_echo=$ac_try;;
66441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66442 $as_echo "$ac_try_echo") >&5
66443 (eval "$ac_link") 2>conftest.er1
66445 grep -v '^ *+' conftest.er1 >conftest.err
66447 cat conftest.err >&5
66448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66449 (exit $ac_status); } && {
66450 test -z "$ac_c_werror_flag" ||
66451 test ! -s conftest.err
66452 } && test -s conftest$ac_exeext && {
66453 test "$cross_compiling" = yes ||
66454 $as_test_x conftest$ac_exeext
66456 eval "$as_ac_var=yes"
66458 $as_echo "$as_me: failed program was:" >&5
66459 sed 's/^/| /' conftest.$ac_ext >&5
66461 eval "$as_ac_var=no"
66464 rm -rf conftest.dSYM
66465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66466 conftest$ac_exeext conftest.$ac_ext
66468 ac_res=`eval 'as_val=${'$as_ac_var'}
66469 $as_echo "$as_val"'`
66470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66471 $as_echo "$ac_res" >&6; }
66472 as_val=`eval 'as_val=${'$as_ac_var'}
66473 $as_echo "$as_val"'`
66474 if test "x$as_val" = x""yes; then
66475 cat >>confdefs.h <<_ACEOF
66476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66478 ice_have_select=yes
66482 if test "${ice_have_select}" = yes; then
66483 { $as_echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
66484 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
66485 if test "${ice_cv_have_select_decl+set}" = set; then
66486 $as_echo_n "(cached) " >&6
66489 ice_cv_have_select_decl=no
66490 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66491 ice_re_word='(^|[^a-zA-Z0-9_])'
66492 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
66493 # Check for ordinary declaration
66494 cat >conftest.$ac_ext <<_ACEOF
66497 cat confdefs.h >>conftest.$ac_ext
66498 cat >>conftest.$ac_ext <<_ACEOF
66499 /* end confdefs.h. */
66503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66504 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then
66505 ice_cv_have_select_decl=yes
66509 if test "$ice_cv_have_select_decl" = yes; then
66512 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66513 cat >conftest.$ac_ext <<_ACEOF
66516 cat confdefs.h >>conftest.$ac_ext
66517 cat >>conftest.$ac_ext <<_ACEOF
66518 /* end confdefs.h. */
66522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66523 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66524 ice_cv_have_select_decl=yes
66528 if test "$ice_cv_have_select_decl" = yes; then
66535 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
66536 $as_echo "$ice_cv_have_select_decl" >&6; }
66537 if test "$ice_cv_have_select_decl" = yes; then
66539 cat >>confdefs.h <<_ACEOF
66540 #define HAVE_SELECT_DECL 1
66553 for ac_header in sys/time.h \
66560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
66561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66562 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
66563 $as_echo_n "checking for $ac_header... " >&6; }
66564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66565 $as_echo_n "(cached) " >&6
66567 ac_res=`eval 'as_val=${'$as_ac_Header'}
66568 $as_echo "$as_val"'`
66569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66570 $as_echo "$ac_res" >&6; }
66572 # Is the header compilable?
66573 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
66574 $as_echo_n "checking $ac_header usability... " >&6; }
66575 cat >conftest.$ac_ext <<_ACEOF
66578 cat confdefs.h >>conftest.$ac_ext
66579 cat >>conftest.$ac_ext <<_ACEOF
66580 /* end confdefs.h. */
66581 $ac_includes_default
66582 #include <$ac_header>
66584 rm -f conftest.$ac_objext
66585 if { (ac_try="$ac_compile"
66586 case "(($ac_try" in
66587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66588 *) ac_try_echo=$ac_try;;
66590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66591 $as_echo "$ac_try_echo") >&5
66592 (eval "$ac_compile") 2>conftest.er1
66594 grep -v '^ *+' conftest.er1 >conftest.err
66596 cat conftest.err >&5
66597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66598 (exit $ac_status); } && {
66599 test -z "$ac_c_werror_flag" ||
66600 test ! -s conftest.err
66601 } && test -s conftest.$ac_objext; then
66602 ac_header_compiler=yes
66604 $as_echo "$as_me: failed program was:" >&5
66605 sed 's/^/| /' conftest.$ac_ext >&5
66607 ac_header_compiler=no
66610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66611 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66612 $as_echo "$ac_header_compiler" >&6; }
66614 # Is the header present?
66615 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
66616 $as_echo_n "checking $ac_header presence... " >&6; }
66617 cat >conftest.$ac_ext <<_ACEOF
66620 cat confdefs.h >>conftest.$ac_ext
66621 cat >>conftest.$ac_ext <<_ACEOF
66622 /* end confdefs.h. */
66623 #include <$ac_header>
66625 if { (ac_try="$ac_cpp conftest.$ac_ext"
66626 case "(($ac_try" in
66627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66628 *) ac_try_echo=$ac_try;;
66630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66631 $as_echo "$ac_try_echo") >&5
66632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
66634 grep -v '^ *+' conftest.er1 >conftest.err
66636 cat conftest.err >&5
66637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66638 (exit $ac_status); } >/dev/null && {
66639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
66640 test ! -s conftest.err
66642 ac_header_preproc=yes
66644 $as_echo "$as_me: failed program was:" >&5
66645 sed 's/^/| /' conftest.$ac_ext >&5
66647 ac_header_preproc=no
66650 rm -f conftest.err conftest.$ac_ext
66651 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66652 $as_echo "$ac_header_preproc" >&6; }
66654 # So? What about this header?
66655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66658 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66660 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66661 ac_header_preproc=yes
66664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66665 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66667 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66669 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66671 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66673 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66675 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
66680 $as_echo_n "checking for $ac_header... " >&6; }
66681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66682 $as_echo_n "(cached) " >&6
66684 eval "$as_ac_Header=\$ac_header_preproc"
66686 ac_res=`eval 'as_val=${'$as_ac_Header'}
66687 $as_echo "$as_val"'`
66688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66689 $as_echo "$ac_res" >&6; }
66692 as_val=`eval 'as_val=${'$as_ac_Header'}
66693 $as_echo "$as_val"'`
66694 if test "x$as_val" = x""yes; then
66695 cat >>confdefs.h <<_ACEOF
66696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
66704 { $as_echo "$as_me:$LINENO: checking for select() argument type" >&5
66705 $as_echo_n "checking for select() argument type... " >&6; }
66706 if test "${amanda_cv_select_arg_type+set}" = set; then
66707 $as_echo_n "(cached) " >&6
66711 cat <<EOF >conftest.$ac_ext
66712 #include "confdefs.h"
66713 #ifdef TIME_WITH_SYS_TIME
66714 # include <sys/time.h>
66717 # ifdef HAVE_SYS_TIME_H
66718 # include <sys/time.h>
66723 #ifdef HAVE_SYS_TYPES_H
66724 # include <sys/types.h>
66726 #ifdef HAVE_SYS_SELECT_H
66727 # include <sys/select.h>
66729 #ifdef HAVE_SYS_SOCKET_H
66730 # include <sys/socket.h>
66732 #ifdef HAVE_UNISTD_H
66733 # include <unistd.h>
66738 #ifdef FD_SET_POINTER
66739 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
66741 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
66747 # Figure out the select argument type by first trying to
66748 # compile with the fd_set argument. If the compile fails,
66749 # then we know to use the int. If it suceeds, then try to
66750 # use the int. If the int fails, then use fd_set. If
66751 # both suceeed, then do a line count on the number of
66752 # lines that the compiler spit out, assuming that the
66753 # compile outputing more lines had more errors.
66754 amanda_cv_select_arg_type=no
66755 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
66756 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
66757 if test $? -ne 0; then
66758 amanda_cv_select_arg_type=int
66760 if test "$amanda_cv_select_arg_type" = no; then
66761 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
66762 if test $? -ne 0; then
66763 amanda_cv_select_arg_type=fd_set
66766 if test "$amanda_cv_select_arg_type" = no; then
66767 wc_fdset=`wc -l <conftest.fd_set`
66768 wc_int=`wc -l <conftest.int`
66769 if test "$wc_fdset" -le "$wc_int"; then
66770 amanda_cv_select_arg_type=fd_set
66772 amanda_cv_select_arg_type=int
66779 { $as_echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
66780 $as_echo "$amanda_cv_select_arg_type" >&6; }
66782 cat >>confdefs.h <<_ACEOF
66783 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
66791 for ac_func in sendto
66793 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66794 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66795 $as_echo_n "checking for $ac_func... " >&6; }
66796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66797 $as_echo_n "(cached) " >&6
66799 cat >conftest.$ac_ext <<_ACEOF
66802 cat confdefs.h >>conftest.$ac_ext
66803 cat >>conftest.$ac_ext <<_ACEOF
66804 /* end confdefs.h. */
66805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66807 #define $ac_func innocuous_$ac_func
66809 /* System header to define __stub macros and hopefully few prototypes,
66810 which can conflict with char $ac_func (); below.
66811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66812 <limits.h> exists even on freestanding compilers. */
66815 # include <limits.h>
66817 # include <assert.h>
66822 /* Override any GCC internal prototype to avoid an error.
66823 Use char because int might match the return type of a GCC
66824 builtin and then its argument prototype would still apply. */
66829 /* The GNU C library defines this for functions which it implements
66830 to always fail with ENOSYS. Some functions are actually named
66831 something starting with __ and the normal name is an alias. */
66832 #if defined __stub_$ac_func || defined __stub___$ac_func
66839 return $ac_func ();
66844 rm -f conftest.$ac_objext conftest$ac_exeext
66845 if { (ac_try="$ac_link"
66846 case "(($ac_try" in
66847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66848 *) ac_try_echo=$ac_try;;
66850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66851 $as_echo "$ac_try_echo") >&5
66852 (eval "$ac_link") 2>conftest.er1
66854 grep -v '^ *+' conftest.er1 >conftest.err
66856 cat conftest.err >&5
66857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66858 (exit $ac_status); } && {
66859 test -z "$ac_c_werror_flag" ||
66860 test ! -s conftest.err
66861 } && test -s conftest$ac_exeext && {
66862 test "$cross_compiling" = yes ||
66863 $as_test_x conftest$ac_exeext
66865 eval "$as_ac_var=yes"
66867 $as_echo "$as_me: failed program was:" >&5
66868 sed 's/^/| /' conftest.$ac_ext >&5
66870 eval "$as_ac_var=no"
66873 rm -rf conftest.dSYM
66874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66875 conftest$ac_exeext conftest.$ac_ext
66877 ac_res=`eval 'as_val=${'$as_ac_var'}
66878 $as_echo "$as_val"'`
66879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66880 $as_echo "$ac_res" >&6; }
66881 as_val=`eval 'as_val=${'$as_ac_var'}
66882 $as_echo "$as_val"'`
66883 if test "x$as_val" = x""yes; then
66884 cat >>confdefs.h <<_ACEOF
66885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66887 ice_have_sendto=yes
66891 if test "${ice_have_sendto}" = yes; then
66892 { $as_echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
66893 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
66894 if test "${ice_cv_have_sendto_decl+set}" = set; then
66895 $as_echo_n "(cached) " >&6
66898 ice_cv_have_sendto_decl=no
66899 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66900 ice_re_word='(^|[^a-zA-Z0-9_])'
66901 for header in sys/types.h sys/socket.h; do
66902 # Check for ordinary declaration
66903 cat >conftest.$ac_ext <<_ACEOF
66906 cat confdefs.h >>conftest.$ac_ext
66907 cat >>conftest.$ac_ext <<_ACEOF
66908 /* end confdefs.h. */
66912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66913 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then
66914 ice_cv_have_sendto_decl=yes
66918 if test "$ice_cv_have_sendto_decl" = yes; then
66921 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66922 cat >conftest.$ac_ext <<_ACEOF
66925 cat confdefs.h >>conftest.$ac_ext
66926 cat >>conftest.$ac_ext <<_ACEOF
66927 /* end confdefs.h. */
66931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66932 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66933 ice_cv_have_sendto_decl=yes
66937 if test "$ice_cv_have_sendto_decl" = yes; then
66944 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
66945 $as_echo "$ice_cv_have_sendto_decl" >&6; }
66946 if test "$ice_cv_have_sendto_decl" = yes; then
66948 cat >>confdefs.h <<_ACEOF
66949 #define HAVE_SENDTO_DECL 1
66956 ice_have_setegid=no
66958 for ac_func in setegid
66960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66961 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66962 $as_echo_n "checking for $ac_func... " >&6; }
66963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66964 $as_echo_n "(cached) " >&6
66966 cat >conftest.$ac_ext <<_ACEOF
66969 cat confdefs.h >>conftest.$ac_ext
66970 cat >>conftest.$ac_ext <<_ACEOF
66971 /* end confdefs.h. */
66972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66974 #define $ac_func innocuous_$ac_func
66976 /* System header to define __stub macros and hopefully few prototypes,
66977 which can conflict with char $ac_func (); below.
66978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66979 <limits.h> exists even on freestanding compilers. */
66982 # include <limits.h>
66984 # include <assert.h>
66989 /* Override any GCC internal prototype to avoid an error.
66990 Use char because int might match the return type of a GCC
66991 builtin and then its argument prototype would still apply. */
66996 /* The GNU C library defines this for functions which it implements
66997 to always fail with ENOSYS. Some functions are actually named
66998 something starting with __ and the normal name is an alias. */
66999 #if defined __stub_$ac_func || defined __stub___$ac_func
67006 return $ac_func ();
67011 rm -f conftest.$ac_objext conftest$ac_exeext
67012 if { (ac_try="$ac_link"
67013 case "(($ac_try" in
67014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67015 *) ac_try_echo=$ac_try;;
67017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67018 $as_echo "$ac_try_echo") >&5
67019 (eval "$ac_link") 2>conftest.er1
67021 grep -v '^ *+' conftest.er1 >conftest.err
67023 cat conftest.err >&5
67024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67025 (exit $ac_status); } && {
67026 test -z "$ac_c_werror_flag" ||
67027 test ! -s conftest.err
67028 } && test -s conftest$ac_exeext && {
67029 test "$cross_compiling" = yes ||
67030 $as_test_x conftest$ac_exeext
67032 eval "$as_ac_var=yes"
67034 $as_echo "$as_me: failed program was:" >&5
67035 sed 's/^/| /' conftest.$ac_ext >&5
67037 eval "$as_ac_var=no"
67040 rm -rf conftest.dSYM
67041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67042 conftest$ac_exeext conftest.$ac_ext
67044 ac_res=`eval 'as_val=${'$as_ac_var'}
67045 $as_echo "$as_val"'`
67046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67047 $as_echo "$ac_res" >&6; }
67048 as_val=`eval 'as_val=${'$as_ac_var'}
67049 $as_echo "$as_val"'`
67050 if test "x$as_val" = x""yes; then
67051 cat >>confdefs.h <<_ACEOF
67052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67054 ice_have_setegid=yes
67058 if test "${ice_have_setegid}" = yes; then
67059 { $as_echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
67060 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
67061 if test "${ice_cv_have_setegid_decl+set}" = set; then
67062 $as_echo_n "(cached) " >&6
67065 ice_cv_have_setegid_decl=no
67066 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67067 ice_re_word='(^|[^a-zA-Z0-9_])'
67068 for header in unistd.h; do
67069 # Check for ordinary declaration
67070 cat >conftest.$ac_ext <<_ACEOF
67073 cat confdefs.h >>conftest.$ac_ext
67074 cat >>conftest.$ac_ext <<_ACEOF
67075 /* end confdefs.h. */
67079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67080 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then
67081 ice_cv_have_setegid_decl=yes
67085 if test "$ice_cv_have_setegid_decl" = yes; then
67088 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67089 cat >conftest.$ac_ext <<_ACEOF
67092 cat confdefs.h >>conftest.$ac_ext
67093 cat >>conftest.$ac_ext <<_ACEOF
67094 /* end confdefs.h. */
67098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67099 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67100 ice_cv_have_setegid_decl=yes
67104 if test "$ice_cv_have_setegid_decl" = yes; then
67111 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
67112 $as_echo "$ice_cv_have_setegid_decl" >&6; }
67113 if test "$ice_cv_have_setegid_decl" = yes; then
67115 cat >>confdefs.h <<_ACEOF
67116 #define HAVE_SETEGID_DECL 1
67123 ice_have_seteuid=no
67125 for ac_func in seteuid
67127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67128 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67129 $as_echo_n "checking for $ac_func... " >&6; }
67130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67131 $as_echo_n "(cached) " >&6
67133 cat >conftest.$ac_ext <<_ACEOF
67136 cat confdefs.h >>conftest.$ac_ext
67137 cat >>conftest.$ac_ext <<_ACEOF
67138 /* end confdefs.h. */
67139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67141 #define $ac_func innocuous_$ac_func
67143 /* System header to define __stub macros and hopefully few prototypes,
67144 which can conflict with char $ac_func (); below.
67145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67146 <limits.h> exists even on freestanding compilers. */
67149 # include <limits.h>
67151 # include <assert.h>
67156 /* Override any GCC internal prototype to avoid an error.
67157 Use char because int might match the return type of a GCC
67158 builtin and then its argument prototype would still apply. */
67163 /* The GNU C library defines this for functions which it implements
67164 to always fail with ENOSYS. Some functions are actually named
67165 something starting with __ and the normal name is an alias. */
67166 #if defined __stub_$ac_func || defined __stub___$ac_func
67173 return $ac_func ();
67178 rm -f conftest.$ac_objext conftest$ac_exeext
67179 if { (ac_try="$ac_link"
67180 case "(($ac_try" in
67181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67182 *) ac_try_echo=$ac_try;;
67184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67185 $as_echo "$ac_try_echo") >&5
67186 (eval "$ac_link") 2>conftest.er1
67188 grep -v '^ *+' conftest.er1 >conftest.err
67190 cat conftest.err >&5
67191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67192 (exit $ac_status); } && {
67193 test -z "$ac_c_werror_flag" ||
67194 test ! -s conftest.err
67195 } && test -s conftest$ac_exeext && {
67196 test "$cross_compiling" = yes ||
67197 $as_test_x conftest$ac_exeext
67199 eval "$as_ac_var=yes"
67201 $as_echo "$as_me: failed program was:" >&5
67202 sed 's/^/| /' conftest.$ac_ext >&5
67204 eval "$as_ac_var=no"
67207 rm -rf conftest.dSYM
67208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67209 conftest$ac_exeext conftest.$ac_ext
67211 ac_res=`eval 'as_val=${'$as_ac_var'}
67212 $as_echo "$as_val"'`
67213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67214 $as_echo "$ac_res" >&6; }
67215 as_val=`eval 'as_val=${'$as_ac_var'}
67216 $as_echo "$as_val"'`
67217 if test "x$as_val" = x""yes; then
67218 cat >>confdefs.h <<_ACEOF
67219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67221 ice_have_seteuid=yes
67225 if test "${ice_have_seteuid}" = yes; then
67226 { $as_echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
67227 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
67228 if test "${ice_cv_have_seteuid_decl+set}" = set; then
67229 $as_echo_n "(cached) " >&6
67232 ice_cv_have_seteuid_decl=no
67233 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67234 ice_re_word='(^|[^a-zA-Z0-9_])'
67235 for header in unistd.h; do
67236 # Check for ordinary declaration
67237 cat >conftest.$ac_ext <<_ACEOF
67240 cat confdefs.h >>conftest.$ac_ext
67241 cat >>conftest.$ac_ext <<_ACEOF
67242 /* end confdefs.h. */
67246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67247 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then
67248 ice_cv_have_seteuid_decl=yes
67252 if test "$ice_cv_have_seteuid_decl" = yes; then
67255 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67256 cat >conftest.$ac_ext <<_ACEOF
67259 cat confdefs.h >>conftest.$ac_ext
67260 cat >>conftest.$ac_ext <<_ACEOF
67261 /* end confdefs.h. */
67265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67266 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67267 ice_cv_have_seteuid_decl=yes
67271 if test "$ice_cv_have_seteuid_decl" = yes; then
67278 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
67279 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
67280 if test "$ice_cv_have_seteuid_decl" = yes; then
67282 cat >>confdefs.h <<_ACEOF
67283 #define HAVE_SETEUID_DECL 1
67290 ice_have_setresgid=no
67292 for ac_func in setresgid
67294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67295 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67296 $as_echo_n "checking for $ac_func... " >&6; }
67297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67298 $as_echo_n "(cached) " >&6
67300 cat >conftest.$ac_ext <<_ACEOF
67303 cat confdefs.h >>conftest.$ac_ext
67304 cat >>conftest.$ac_ext <<_ACEOF
67305 /* end confdefs.h. */
67306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67308 #define $ac_func innocuous_$ac_func
67310 /* System header to define __stub macros and hopefully few prototypes,
67311 which can conflict with char $ac_func (); below.
67312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67313 <limits.h> exists even on freestanding compilers. */
67316 # include <limits.h>
67318 # include <assert.h>
67323 /* Override any GCC internal prototype to avoid an error.
67324 Use char because int might match the return type of a GCC
67325 builtin and then its argument prototype would still apply. */
67330 /* The GNU C library defines this for functions which it implements
67331 to always fail with ENOSYS. Some functions are actually named
67332 something starting with __ and the normal name is an alias. */
67333 #if defined __stub_$ac_func || defined __stub___$ac_func
67340 return $ac_func ();
67345 rm -f conftest.$ac_objext conftest$ac_exeext
67346 if { (ac_try="$ac_link"
67347 case "(($ac_try" in
67348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67349 *) ac_try_echo=$ac_try;;
67351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67352 $as_echo "$ac_try_echo") >&5
67353 (eval "$ac_link") 2>conftest.er1
67355 grep -v '^ *+' conftest.er1 >conftest.err
67357 cat conftest.err >&5
67358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67359 (exit $ac_status); } && {
67360 test -z "$ac_c_werror_flag" ||
67361 test ! -s conftest.err
67362 } && test -s conftest$ac_exeext && {
67363 test "$cross_compiling" = yes ||
67364 $as_test_x conftest$ac_exeext
67366 eval "$as_ac_var=yes"
67368 $as_echo "$as_me: failed program was:" >&5
67369 sed 's/^/| /' conftest.$ac_ext >&5
67371 eval "$as_ac_var=no"
67374 rm -rf conftest.dSYM
67375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67376 conftest$ac_exeext conftest.$ac_ext
67378 ac_res=`eval 'as_val=${'$as_ac_var'}
67379 $as_echo "$as_val"'`
67380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67381 $as_echo "$ac_res" >&6; }
67382 as_val=`eval 'as_val=${'$as_ac_var'}
67383 $as_echo "$as_val"'`
67384 if test "x$as_val" = x""yes; then
67385 cat >>confdefs.h <<_ACEOF
67386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67388 ice_have_setresgid=yes
67392 if test "${ice_have_setresgid}" = yes; then
67393 { $as_echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
67394 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
67395 if test "${ice_cv_have_setresgid_decl+set}" = set; then
67396 $as_echo_n "(cached) " >&6
67399 ice_cv_have_setresgid_decl=no
67400 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67401 ice_re_word='(^|[^a-zA-Z0-9_])'
67402 for header in unistd.h; do
67403 # Check for ordinary declaration
67404 cat >conftest.$ac_ext <<_ACEOF
67407 cat confdefs.h >>conftest.$ac_ext
67408 cat >>conftest.$ac_ext <<_ACEOF
67409 /* end confdefs.h. */
67413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67414 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then
67415 ice_cv_have_setresgid_decl=yes
67419 if test "$ice_cv_have_setresgid_decl" = yes; then
67422 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67423 cat >conftest.$ac_ext <<_ACEOF
67426 cat confdefs.h >>conftest.$ac_ext
67427 cat >>conftest.$ac_ext <<_ACEOF
67428 /* end confdefs.h. */
67432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67433 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67434 ice_cv_have_setresgid_decl=yes
67438 if test "$ice_cv_have_setresgid_decl" = yes; then
67445 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
67446 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
67447 if test "$ice_cv_have_setresgid_decl" = yes; then
67449 cat >>confdefs.h <<_ACEOF
67450 #define HAVE_SETRESGID_DECL 1
67457 ice_have_setresuid=no
67459 for ac_func in setresuid
67461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67462 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67463 $as_echo_n "checking for $ac_func... " >&6; }
67464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67465 $as_echo_n "(cached) " >&6
67467 cat >conftest.$ac_ext <<_ACEOF
67470 cat confdefs.h >>conftest.$ac_ext
67471 cat >>conftest.$ac_ext <<_ACEOF
67472 /* end confdefs.h. */
67473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67475 #define $ac_func innocuous_$ac_func
67477 /* System header to define __stub macros and hopefully few prototypes,
67478 which can conflict with char $ac_func (); below.
67479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67480 <limits.h> exists even on freestanding compilers. */
67483 # include <limits.h>
67485 # include <assert.h>
67490 /* Override any GCC internal prototype to avoid an error.
67491 Use char because int might match the return type of a GCC
67492 builtin and then its argument prototype would still apply. */
67497 /* The GNU C library defines this for functions which it implements
67498 to always fail with ENOSYS. Some functions are actually named
67499 something starting with __ and the normal name is an alias. */
67500 #if defined __stub_$ac_func || defined __stub___$ac_func
67507 return $ac_func ();
67512 rm -f conftest.$ac_objext conftest$ac_exeext
67513 if { (ac_try="$ac_link"
67514 case "(($ac_try" in
67515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67516 *) ac_try_echo=$ac_try;;
67518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67519 $as_echo "$ac_try_echo") >&5
67520 (eval "$ac_link") 2>conftest.er1
67522 grep -v '^ *+' conftest.er1 >conftest.err
67524 cat conftest.err >&5
67525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67526 (exit $ac_status); } && {
67527 test -z "$ac_c_werror_flag" ||
67528 test ! -s conftest.err
67529 } && test -s conftest$ac_exeext && {
67530 test "$cross_compiling" = yes ||
67531 $as_test_x conftest$ac_exeext
67533 eval "$as_ac_var=yes"
67535 $as_echo "$as_me: failed program was:" >&5
67536 sed 's/^/| /' conftest.$ac_ext >&5
67538 eval "$as_ac_var=no"
67541 rm -rf conftest.dSYM
67542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67543 conftest$ac_exeext conftest.$ac_ext
67545 ac_res=`eval 'as_val=${'$as_ac_var'}
67546 $as_echo "$as_val"'`
67547 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67548 $as_echo "$ac_res" >&6; }
67549 as_val=`eval 'as_val=${'$as_ac_var'}
67550 $as_echo "$as_val"'`
67551 if test "x$as_val" = x""yes; then
67552 cat >>confdefs.h <<_ACEOF
67553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67555 ice_have_setresuid=yes
67559 if test "${ice_have_setresuid}" = yes; then
67560 { $as_echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
67561 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
67562 if test "${ice_cv_have_setresuid_decl+set}" = set; then
67563 $as_echo_n "(cached) " >&6
67566 ice_cv_have_setresuid_decl=no
67567 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67568 ice_re_word='(^|[^a-zA-Z0-9_])'
67569 for header in unistd.h; do
67570 # Check for ordinary declaration
67571 cat >conftest.$ac_ext <<_ACEOF
67574 cat confdefs.h >>conftest.$ac_ext
67575 cat >>conftest.$ac_ext <<_ACEOF
67576 /* end confdefs.h. */
67580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67581 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then
67582 ice_cv_have_setresuid_decl=yes
67586 if test "$ice_cv_have_setresuid_decl" = yes; then
67589 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67590 cat >conftest.$ac_ext <<_ACEOF
67593 cat confdefs.h >>conftest.$ac_ext
67594 cat >>conftest.$ac_ext <<_ACEOF
67595 /* end confdefs.h. */
67599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67600 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67601 ice_cv_have_setresuid_decl=yes
67605 if test "$ice_cv_have_setresuid_decl" = yes; then
67612 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
67613 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
67614 if test "$ice_cv_have_setresuid_decl" = yes; then
67616 cat >>confdefs.h <<_ACEOF
67617 #define HAVE_SETRESUID_DECL 1
67624 ice_have_snprintf=no
67626 for ac_func in snprintf
67628 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67629 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67630 $as_echo_n "checking for $ac_func... " >&6; }
67631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67632 $as_echo_n "(cached) " >&6
67634 cat >conftest.$ac_ext <<_ACEOF
67637 cat confdefs.h >>conftest.$ac_ext
67638 cat >>conftest.$ac_ext <<_ACEOF
67639 /* end confdefs.h. */
67640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67642 #define $ac_func innocuous_$ac_func
67644 /* System header to define __stub macros and hopefully few prototypes,
67645 which can conflict with char $ac_func (); below.
67646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67647 <limits.h> exists even on freestanding compilers. */
67650 # include <limits.h>
67652 # include <assert.h>
67657 /* Override any GCC internal prototype to avoid an error.
67658 Use char because int might match the return type of a GCC
67659 builtin and then its argument prototype would still apply. */
67664 /* The GNU C library defines this for functions which it implements
67665 to always fail with ENOSYS. Some functions are actually named
67666 something starting with __ and the normal name is an alias. */
67667 #if defined __stub_$ac_func || defined __stub___$ac_func
67674 return $ac_func ();
67679 rm -f conftest.$ac_objext conftest$ac_exeext
67680 if { (ac_try="$ac_link"
67681 case "(($ac_try" in
67682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67683 *) ac_try_echo=$ac_try;;
67685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67686 $as_echo "$ac_try_echo") >&5
67687 (eval "$ac_link") 2>conftest.er1
67689 grep -v '^ *+' conftest.er1 >conftest.err
67691 cat conftest.err >&5
67692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67693 (exit $ac_status); } && {
67694 test -z "$ac_c_werror_flag" ||
67695 test ! -s conftest.err
67696 } && test -s conftest$ac_exeext && {
67697 test "$cross_compiling" = yes ||
67698 $as_test_x conftest$ac_exeext
67700 eval "$as_ac_var=yes"
67702 $as_echo "$as_me: failed program was:" >&5
67703 sed 's/^/| /' conftest.$ac_ext >&5
67705 eval "$as_ac_var=no"
67708 rm -rf conftest.dSYM
67709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67710 conftest$ac_exeext conftest.$ac_ext
67712 ac_res=`eval 'as_val=${'$as_ac_var'}
67713 $as_echo "$as_val"'`
67714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67715 $as_echo "$ac_res" >&6; }
67716 as_val=`eval 'as_val=${'$as_ac_var'}
67717 $as_echo "$as_val"'`
67718 if test "x$as_val" = x""yes; then
67719 cat >>confdefs.h <<_ACEOF
67720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67722 ice_have_snprintf=yes
67726 if test "${ice_have_snprintf}" = yes; then
67727 { $as_echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
67728 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
67729 if test "${ice_cv_have_snprintf_decl+set}" = set; then
67730 $as_echo_n "(cached) " >&6
67733 ice_cv_have_snprintf_decl=no
67734 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67735 ice_re_word='(^|[^a-zA-Z0-9_])'
67736 for header in stdio.h; do
67737 # Check for ordinary declaration
67738 cat >conftest.$ac_ext <<_ACEOF
67741 cat confdefs.h >>conftest.$ac_ext
67742 cat >>conftest.$ac_ext <<_ACEOF
67743 /* end confdefs.h. */
67747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67748 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then
67749 ice_cv_have_snprintf_decl=yes
67753 if test "$ice_cv_have_snprintf_decl" = yes; then
67756 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67757 cat >conftest.$ac_ext <<_ACEOF
67760 cat confdefs.h >>conftest.$ac_ext
67761 cat >>conftest.$ac_ext <<_ACEOF
67762 /* end confdefs.h. */
67766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67767 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67768 ice_cv_have_snprintf_decl=yes
67772 if test "$ice_cv_have_snprintf_decl" = yes; then
67779 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
67780 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
67781 if test "$ice_cv_have_snprintf_decl" = yes; then
67783 cat >>confdefs.h <<_ACEOF
67784 #define HAVE_SNPRINTF_DECL 1
67791 ice_have_vsnprintf=no
67793 for ac_func in vsnprintf
67795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67797 $as_echo_n "checking for $ac_func... " >&6; }
67798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67799 $as_echo_n "(cached) " >&6
67801 cat >conftest.$ac_ext <<_ACEOF
67804 cat confdefs.h >>conftest.$ac_ext
67805 cat >>conftest.$ac_ext <<_ACEOF
67806 /* end confdefs.h. */
67807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67809 #define $ac_func innocuous_$ac_func
67811 /* System header to define __stub macros and hopefully few prototypes,
67812 which can conflict with char $ac_func (); below.
67813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67814 <limits.h> exists even on freestanding compilers. */
67817 # include <limits.h>
67819 # include <assert.h>
67824 /* Override any GCC internal prototype to avoid an error.
67825 Use char because int might match the return type of a GCC
67826 builtin and then its argument prototype would still apply. */
67831 /* The GNU C library defines this for functions which it implements
67832 to always fail with ENOSYS. Some functions are actually named
67833 something starting with __ and the normal name is an alias. */
67834 #if defined __stub_$ac_func || defined __stub___$ac_func
67841 return $ac_func ();
67846 rm -f conftest.$ac_objext conftest$ac_exeext
67847 if { (ac_try="$ac_link"
67848 case "(($ac_try" in
67849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67850 *) ac_try_echo=$ac_try;;
67852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67853 $as_echo "$ac_try_echo") >&5
67854 (eval "$ac_link") 2>conftest.er1
67856 grep -v '^ *+' conftest.er1 >conftest.err
67858 cat conftest.err >&5
67859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67860 (exit $ac_status); } && {
67861 test -z "$ac_c_werror_flag" ||
67862 test ! -s conftest.err
67863 } && test -s conftest$ac_exeext && {
67864 test "$cross_compiling" = yes ||
67865 $as_test_x conftest$ac_exeext
67867 eval "$as_ac_var=yes"
67869 $as_echo "$as_me: failed program was:" >&5
67870 sed 's/^/| /' conftest.$ac_ext >&5
67872 eval "$as_ac_var=no"
67875 rm -rf conftest.dSYM
67876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67877 conftest$ac_exeext conftest.$ac_ext
67879 ac_res=`eval 'as_val=${'$as_ac_var'}
67880 $as_echo "$as_val"'`
67881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67882 $as_echo "$ac_res" >&6; }
67883 as_val=`eval 'as_val=${'$as_ac_var'}
67884 $as_echo "$as_val"'`
67885 if test "x$as_val" = x""yes; then
67886 cat >>confdefs.h <<_ACEOF
67887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67889 ice_have_vsnprintf=yes
67893 if test "${ice_have_vsnprintf}" = yes; then
67894 { $as_echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
67895 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
67896 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
67897 $as_echo_n "(cached) " >&6
67900 ice_cv_have_vsnprintf_decl=no
67901 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67902 ice_re_word='(^|[^a-zA-Z0-9_])'
67903 for header in stdio.h; do
67904 # Check for ordinary declaration
67905 cat >conftest.$ac_ext <<_ACEOF
67908 cat confdefs.h >>conftest.$ac_ext
67909 cat >>conftest.$ac_ext <<_ACEOF
67910 /* end confdefs.h. */
67914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67915 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then
67916 ice_cv_have_vsnprintf_decl=yes
67920 if test "$ice_cv_have_vsnprintf_decl" = yes; then
67923 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67924 cat >conftest.$ac_ext <<_ACEOF
67927 cat confdefs.h >>conftest.$ac_ext
67928 cat >>conftest.$ac_ext <<_ACEOF
67929 /* end confdefs.h. */
67933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67934 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67935 ice_cv_have_vsnprintf_decl=yes
67939 if test "$ice_cv_have_vsnprintf_decl" = yes; then
67946 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
67947 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
67948 if test "$ice_cv_have_vsnprintf_decl" = yes; then
67950 cat >>confdefs.h <<_ACEOF
67951 #define HAVE_VSNPRINTF_DECL 1
67958 { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
67959 $as_echo_n "checking for setpgid... " >&6; }
67960 if test "${ac_cv_func_setpgid+set}" = set; then
67961 $as_echo_n "(cached) " >&6
67963 cat >conftest.$ac_ext <<_ACEOF
67966 cat confdefs.h >>conftest.$ac_ext
67967 cat >>conftest.$ac_ext <<_ACEOF
67968 /* end confdefs.h. */
67969 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
67970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67971 #define setpgid innocuous_setpgid
67973 /* System header to define __stub macros and hopefully few prototypes,
67974 which can conflict with char setpgid (); below.
67975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67976 <limits.h> exists even on freestanding compilers. */
67979 # include <limits.h>
67981 # include <assert.h>
67986 /* Override any GCC internal prototype to avoid an error.
67987 Use char because int might match the return type of a GCC
67988 builtin and then its argument prototype would still apply. */
67993 /* The GNU C library defines this for functions which it implements
67994 to always fail with ENOSYS. Some functions are actually named
67995 something starting with __ and the normal name is an alias. */
67996 #if defined __stub_setpgid || defined __stub___setpgid
68008 rm -f conftest.$ac_objext conftest$ac_exeext
68009 if { (ac_try="$ac_link"
68010 case "(($ac_try" in
68011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68012 *) ac_try_echo=$ac_try;;
68014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68015 $as_echo "$ac_try_echo") >&5
68016 (eval "$ac_link") 2>conftest.er1
68018 grep -v '^ *+' conftest.er1 >conftest.err
68020 cat conftest.err >&5
68021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68022 (exit $ac_status); } && {
68023 test -z "$ac_c_werror_flag" ||
68024 test ! -s conftest.err
68025 } && test -s conftest$ac_exeext && {
68026 test "$cross_compiling" = yes ||
68027 $as_test_x conftest$ac_exeext
68029 ac_cv_func_setpgid=yes
68031 $as_echo "$as_me: failed program was:" >&5
68032 sed 's/^/| /' conftest.$ac_ext >&5
68034 ac_cv_func_setpgid=no
68037 rm -rf conftest.dSYM
68038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68039 conftest$ac_exeext conftest.$ac_ext
68041 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
68042 $as_echo "$ac_cv_func_setpgid" >&6; }
68043 if test "x$ac_cv_func_setpgid" = x""yes; then
68046 cat >>confdefs.h <<\_ACEOF
68047 #define HAVE_SETPGID 1
68051 ice_have_setpgid=no
68053 for ac_func in setpgid
68055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68056 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68057 $as_echo_n "checking for $ac_func... " >&6; }
68058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68059 $as_echo_n "(cached) " >&6
68061 cat >conftest.$ac_ext <<_ACEOF
68064 cat confdefs.h >>conftest.$ac_ext
68065 cat >>conftest.$ac_ext <<_ACEOF
68066 /* end confdefs.h. */
68067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68069 #define $ac_func innocuous_$ac_func
68071 /* System header to define __stub macros and hopefully few prototypes,
68072 which can conflict with char $ac_func (); below.
68073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68074 <limits.h> exists even on freestanding compilers. */
68077 # include <limits.h>
68079 # include <assert.h>
68084 /* Override any GCC internal prototype to avoid an error.
68085 Use char because int might match the return type of a GCC
68086 builtin and then its argument prototype would still apply. */
68091 /* The GNU C library defines this for functions which it implements
68092 to always fail with ENOSYS. Some functions are actually named
68093 something starting with __ and the normal name is an alias. */
68094 #if defined __stub_$ac_func || defined __stub___$ac_func
68101 return $ac_func ();
68106 rm -f conftest.$ac_objext conftest$ac_exeext
68107 if { (ac_try="$ac_link"
68108 case "(($ac_try" in
68109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68110 *) ac_try_echo=$ac_try;;
68112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68113 $as_echo "$ac_try_echo") >&5
68114 (eval "$ac_link") 2>conftest.er1
68116 grep -v '^ *+' conftest.er1 >conftest.err
68118 cat conftest.err >&5
68119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68120 (exit $ac_status); } && {
68121 test -z "$ac_c_werror_flag" ||
68122 test ! -s conftest.err
68123 } && test -s conftest$ac_exeext && {
68124 test "$cross_compiling" = yes ||
68125 $as_test_x conftest$ac_exeext
68127 eval "$as_ac_var=yes"
68129 $as_echo "$as_me: failed program was:" >&5
68130 sed 's/^/| /' conftest.$ac_ext >&5
68132 eval "$as_ac_var=no"
68135 rm -rf conftest.dSYM
68136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68137 conftest$ac_exeext conftest.$ac_ext
68139 ac_res=`eval 'as_val=${'$as_ac_var'}
68140 $as_echo "$as_val"'`
68141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68142 $as_echo "$ac_res" >&6; }
68143 as_val=`eval 'as_val=${'$as_ac_var'}
68144 $as_echo "$as_val"'`
68145 if test "x$as_val" = x""yes; then
68146 cat >>confdefs.h <<_ACEOF
68147 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68149 ice_have_setpgid=yes
68153 if test "${ice_have_setpgid}" = yes; then
68154 { $as_echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
68155 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
68156 if test "${ice_cv_have_setpgid_decl+set}" = set; then
68157 $as_echo_n "(cached) " >&6
68160 ice_cv_have_setpgid_decl=no
68161 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68162 ice_re_word='(^|[^a-zA-Z0-9_])'
68163 for header in sys/types.h unistd.h; do
68164 # Check for ordinary declaration
68165 cat >conftest.$ac_ext <<_ACEOF
68168 cat confdefs.h >>conftest.$ac_ext
68169 cat >>conftest.$ac_ext <<_ACEOF
68170 /* end confdefs.h. */
68174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68175 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then
68176 ice_cv_have_setpgid_decl=yes
68180 if test "$ice_cv_have_setpgid_decl" = yes; then
68183 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68184 cat >conftest.$ac_ext <<_ACEOF
68187 cat confdefs.h >>conftest.$ac_ext
68188 cat >>conftest.$ac_ext <<_ACEOF
68189 /* end confdefs.h. */
68193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68194 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68195 ice_cv_have_setpgid_decl=yes
68199 if test "$ice_cv_have_setpgid_decl" = yes; then
68206 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
68207 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
68208 if test "$ice_cv_have_setpgid_decl" = yes; then
68210 cat >>confdefs.h <<_ACEOF
68211 #define HAVE_SETPGID_DECL 1
68221 { $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
68222 $as_echo_n "checking for setpgrp... " >&6; }
68223 if test "${ac_cv_func_setpgrp+set}" = set; then
68224 $as_echo_n "(cached) " >&6
68226 cat >conftest.$ac_ext <<_ACEOF
68229 cat confdefs.h >>conftest.$ac_ext
68230 cat >>conftest.$ac_ext <<_ACEOF
68231 /* end confdefs.h. */
68232 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
68233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68234 #define setpgrp innocuous_setpgrp
68236 /* System header to define __stub macros and hopefully few prototypes,
68237 which can conflict with char setpgrp (); below.
68238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68239 <limits.h> exists even on freestanding compilers. */
68242 # include <limits.h>
68244 # include <assert.h>
68249 /* Override any GCC internal prototype to avoid an error.
68250 Use char because int might match the return type of a GCC
68251 builtin and then its argument prototype would still apply. */
68256 /* The GNU C library defines this for functions which it implements
68257 to always fail with ENOSYS. Some functions are actually named
68258 something starting with __ and the normal name is an alias. */
68259 #if defined __stub_setpgrp || defined __stub___setpgrp
68271 rm -f conftest.$ac_objext conftest$ac_exeext
68272 if { (ac_try="$ac_link"
68273 case "(($ac_try" in
68274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68275 *) ac_try_echo=$ac_try;;
68277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68278 $as_echo "$ac_try_echo") >&5
68279 (eval "$ac_link") 2>conftest.er1
68281 grep -v '^ *+' conftest.er1 >conftest.err
68283 cat conftest.err >&5
68284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68285 (exit $ac_status); } && {
68286 test -z "$ac_c_werror_flag" ||
68287 test ! -s conftest.err
68288 } && test -s conftest$ac_exeext && {
68289 test "$cross_compiling" = yes ||
68290 $as_test_x conftest$ac_exeext
68292 ac_cv_func_setpgrp=yes
68294 $as_echo "$as_me: failed program was:" >&5
68295 sed 's/^/| /' conftest.$ac_ext >&5
68297 ac_cv_func_setpgrp=no
68300 rm -rf conftest.dSYM
68301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68302 conftest$ac_exeext conftest.$ac_ext
68304 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
68305 $as_echo "$ac_cv_func_setpgrp" >&6; }
68306 if test "x$ac_cv_func_setpgrp" = x""yes; then
68307 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
68308 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
68309 if test "${ac_cv_func_setpgrp_void+set}" = set; then
68310 $as_echo_n "(cached) " >&6
68312 if test "$cross_compiling" = yes; then
68313 { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
68314 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
68315 { (exit 1); exit 1; }; }
68317 cat >conftest.$ac_ext <<_ACEOF
68320 cat confdefs.h >>conftest.$ac_ext
68321 cat >>conftest.$ac_ext <<_ACEOF
68322 /* end confdefs.h. */
68323 $ac_includes_default
68327 /* If this system has a BSD-style setpgrp which takes arguments,
68328 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
68329 exit successfully. */
68330 return setpgrp (1,1) != -1;
68335 rm -f conftest$ac_exeext
68336 if { (ac_try="$ac_link"
68337 case "(($ac_try" in
68338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68339 *) ac_try_echo=$ac_try;;
68341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68342 $as_echo "$ac_try_echo") >&5
68343 (eval "$ac_link") 2>&5
68345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
68347 { (case "(($ac_try" in
68348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68349 *) ac_try_echo=$ac_try;;
68351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68352 $as_echo "$ac_try_echo") >&5
68353 (eval "$ac_try") 2>&5
68355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68356 (exit $ac_status); }; }; then
68357 ac_cv_func_setpgrp_void=no
68359 $as_echo "$as_me: program exited with status $ac_status" >&5
68360 $as_echo "$as_me: failed program was:" >&5
68361 sed 's/^/| /' conftest.$ac_ext >&5
68363 ( exit $ac_status )
68364 ac_cv_func_setpgrp_void=yes
68366 rm -rf conftest.dSYM
68367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
68372 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
68373 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
68374 if test $ac_cv_func_setpgrp_void = yes; then
68376 cat >>confdefs.h <<\_ACEOF
68377 #define SETPGRP_VOID 1
68385 ice_have_setpgrp=no
68387 for ac_func in setpgrp
68389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68390 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68391 $as_echo_n "checking for $ac_func... " >&6; }
68392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68393 $as_echo_n "(cached) " >&6
68395 cat >conftest.$ac_ext <<_ACEOF
68398 cat confdefs.h >>conftest.$ac_ext
68399 cat >>conftest.$ac_ext <<_ACEOF
68400 /* end confdefs.h. */
68401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68403 #define $ac_func innocuous_$ac_func
68405 /* System header to define __stub macros and hopefully few prototypes,
68406 which can conflict with char $ac_func (); below.
68407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68408 <limits.h> exists even on freestanding compilers. */
68411 # include <limits.h>
68413 # include <assert.h>
68418 /* Override any GCC internal prototype to avoid an error.
68419 Use char because int might match the return type of a GCC
68420 builtin and then its argument prototype would still apply. */
68425 /* The GNU C library defines this for functions which it implements
68426 to always fail with ENOSYS. Some functions are actually named
68427 something starting with __ and the normal name is an alias. */
68428 #if defined __stub_$ac_func || defined __stub___$ac_func
68435 return $ac_func ();
68440 rm -f conftest.$ac_objext conftest$ac_exeext
68441 if { (ac_try="$ac_link"
68442 case "(($ac_try" in
68443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68444 *) ac_try_echo=$ac_try;;
68446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68447 $as_echo "$ac_try_echo") >&5
68448 (eval "$ac_link") 2>conftest.er1
68450 grep -v '^ *+' conftest.er1 >conftest.err
68452 cat conftest.err >&5
68453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68454 (exit $ac_status); } && {
68455 test -z "$ac_c_werror_flag" ||
68456 test ! -s conftest.err
68457 } && test -s conftest$ac_exeext && {
68458 test "$cross_compiling" = yes ||
68459 $as_test_x conftest$ac_exeext
68461 eval "$as_ac_var=yes"
68463 $as_echo "$as_me: failed program was:" >&5
68464 sed 's/^/| /' conftest.$ac_ext >&5
68466 eval "$as_ac_var=no"
68469 rm -rf conftest.dSYM
68470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68471 conftest$ac_exeext conftest.$ac_ext
68473 ac_res=`eval 'as_val=${'$as_ac_var'}
68474 $as_echo "$as_val"'`
68475 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68476 $as_echo "$ac_res" >&6; }
68477 as_val=`eval 'as_val=${'$as_ac_var'}
68478 $as_echo "$as_val"'`
68479 if test "x$as_val" = x""yes; then
68480 cat >>confdefs.h <<_ACEOF
68481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68483 ice_have_setpgrp=yes
68487 if test "${ice_have_setpgrp}" = yes; then
68488 { $as_echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
68489 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
68490 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
68491 $as_echo_n "(cached) " >&6
68494 ice_cv_have_setpgrp_decl=no
68495 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68496 ice_re_word='(^|[^a-zA-Z0-9_])'
68497 for header in sys/types.h unistd.h libc.h; do
68498 # Check for ordinary declaration
68499 cat >conftest.$ac_ext <<_ACEOF
68502 cat confdefs.h >>conftest.$ac_ext
68503 cat >>conftest.$ac_ext <<_ACEOF
68504 /* end confdefs.h. */
68508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68509 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then
68510 ice_cv_have_setpgrp_decl=yes
68514 if test "$ice_cv_have_setpgrp_decl" = yes; then
68517 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68518 cat >conftest.$ac_ext <<_ACEOF
68521 cat confdefs.h >>conftest.$ac_ext
68522 cat >>conftest.$ac_ext <<_ACEOF
68523 /* end confdefs.h. */
68527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68528 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68529 ice_cv_have_setpgrp_decl=yes
68533 if test "$ice_cv_have_setpgrp_decl" = yes; then
68540 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
68541 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
68542 if test "$ice_cv_have_setpgrp_decl" = yes; then
68544 cat >>confdefs.h <<_ACEOF
68545 #define HAVE_SETPGRP_DECL 1
68552 ice_have_setsockopt=no
68554 for ac_func in setsockopt
68556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68557 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68558 $as_echo_n "checking for $ac_func... " >&6; }
68559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68560 $as_echo_n "(cached) " >&6
68562 cat >conftest.$ac_ext <<_ACEOF
68565 cat confdefs.h >>conftest.$ac_ext
68566 cat >>conftest.$ac_ext <<_ACEOF
68567 /* end confdefs.h. */
68568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68570 #define $ac_func innocuous_$ac_func
68572 /* System header to define __stub macros and hopefully few prototypes,
68573 which can conflict with char $ac_func (); below.
68574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68575 <limits.h> exists even on freestanding compilers. */
68578 # include <limits.h>
68580 # include <assert.h>
68585 /* Override any GCC internal prototype to avoid an error.
68586 Use char because int might match the return type of a GCC
68587 builtin and then its argument prototype would still apply. */
68592 /* The GNU C library defines this for functions which it implements
68593 to always fail with ENOSYS. Some functions are actually named
68594 something starting with __ and the normal name is an alias. */
68595 #if defined __stub_$ac_func || defined __stub___$ac_func
68602 return $ac_func ();
68607 rm -f conftest.$ac_objext conftest$ac_exeext
68608 if { (ac_try="$ac_link"
68609 case "(($ac_try" in
68610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68611 *) ac_try_echo=$ac_try;;
68613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68614 $as_echo "$ac_try_echo") >&5
68615 (eval "$ac_link") 2>conftest.er1
68617 grep -v '^ *+' conftest.er1 >conftest.err
68619 cat conftest.err >&5
68620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68621 (exit $ac_status); } && {
68622 test -z "$ac_c_werror_flag" ||
68623 test ! -s conftest.err
68624 } && test -s conftest$ac_exeext && {
68625 test "$cross_compiling" = yes ||
68626 $as_test_x conftest$ac_exeext
68628 eval "$as_ac_var=yes"
68630 $as_echo "$as_me: failed program was:" >&5
68631 sed 's/^/| /' conftest.$ac_ext >&5
68633 eval "$as_ac_var=no"
68636 rm -rf conftest.dSYM
68637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68638 conftest$ac_exeext conftest.$ac_ext
68640 ac_res=`eval 'as_val=${'$as_ac_var'}
68641 $as_echo "$as_val"'`
68642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68643 $as_echo "$ac_res" >&6; }
68644 as_val=`eval 'as_val=${'$as_ac_var'}
68645 $as_echo "$as_val"'`
68646 if test "x$as_val" = x""yes; then
68647 cat >>confdefs.h <<_ACEOF
68648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68650 ice_have_setsockopt=yes
68654 if test "${ice_have_setsockopt}" = yes; then
68655 { $as_echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
68656 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
68657 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
68658 $as_echo_n "(cached) " >&6
68661 ice_cv_have_setsockopt_decl=no
68662 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68663 ice_re_word='(^|[^a-zA-Z0-9_])'
68664 for header in sys/types.h sys/socket.h; do
68665 # Check for ordinary declaration
68666 cat >conftest.$ac_ext <<_ACEOF
68669 cat confdefs.h >>conftest.$ac_ext
68670 cat >>conftest.$ac_ext <<_ACEOF
68671 /* end confdefs.h. */
68675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68676 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then
68677 ice_cv_have_setsockopt_decl=yes
68681 if test "$ice_cv_have_setsockopt_decl" = yes; then
68684 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68685 cat >conftest.$ac_ext <<_ACEOF
68688 cat confdefs.h >>conftest.$ac_ext
68689 cat >>conftest.$ac_ext <<_ACEOF
68690 /* end confdefs.h. */
68694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68695 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68696 ice_cv_have_setsockopt_decl=yes
68700 if test "$ice_cv_have_setsockopt_decl" = yes; then
68707 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
68708 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
68709 if test "$ice_cv_have_setsockopt_decl" = yes; then
68711 cat >>confdefs.h <<_ACEOF
68712 #define HAVE_SETSOCKOPT_DECL 1
68721 for ac_func in sigaction sigemptyset sigvec
68723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68724 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68725 $as_echo_n "checking for $ac_func... " >&6; }
68726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68727 $as_echo_n "(cached) " >&6
68729 cat >conftest.$ac_ext <<_ACEOF
68732 cat confdefs.h >>conftest.$ac_ext
68733 cat >>conftest.$ac_ext <<_ACEOF
68734 /* end confdefs.h. */
68735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68737 #define $ac_func innocuous_$ac_func
68739 /* System header to define __stub macros and hopefully few prototypes,
68740 which can conflict with char $ac_func (); below.
68741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68742 <limits.h> exists even on freestanding compilers. */
68745 # include <limits.h>
68747 # include <assert.h>
68752 /* Override any GCC internal prototype to avoid an error.
68753 Use char because int might match the return type of a GCC
68754 builtin and then its argument prototype would still apply. */
68759 /* The GNU C library defines this for functions which it implements
68760 to always fail with ENOSYS. Some functions are actually named
68761 something starting with __ and the normal name is an alias. */
68762 #if defined __stub_$ac_func || defined __stub___$ac_func
68769 return $ac_func ();
68774 rm -f conftest.$ac_objext conftest$ac_exeext
68775 if { (ac_try="$ac_link"
68776 case "(($ac_try" in
68777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68778 *) ac_try_echo=$ac_try;;
68780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68781 $as_echo "$ac_try_echo") >&5
68782 (eval "$ac_link") 2>conftest.er1
68784 grep -v '^ *+' conftest.er1 >conftest.err
68786 cat conftest.err >&5
68787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68788 (exit $ac_status); } && {
68789 test -z "$ac_c_werror_flag" ||
68790 test ! -s conftest.err
68791 } && test -s conftest$ac_exeext && {
68792 test "$cross_compiling" = yes ||
68793 $as_test_x conftest$ac_exeext
68795 eval "$as_ac_var=yes"
68797 $as_echo "$as_me: failed program was:" >&5
68798 sed 's/^/| /' conftest.$ac_ext >&5
68800 eval "$as_ac_var=no"
68803 rm -rf conftest.dSYM
68804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68805 conftest$ac_exeext conftest.$ac_ext
68807 ac_res=`eval 'as_val=${'$as_ac_var'}
68808 $as_echo "$as_val"'`
68809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68810 $as_echo "$ac_res" >&6; }
68811 as_val=`eval 'as_val=${'$as_ac_var'}
68812 $as_echo "$as_val"'`
68813 if test "x$as_val" = x""yes; then
68814 cat >>confdefs.h <<_ACEOF
68815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68824 for ac_func in socket
68826 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68827 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68828 $as_echo_n "checking for $ac_func... " >&6; }
68829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68830 $as_echo_n "(cached) " >&6
68832 cat >conftest.$ac_ext <<_ACEOF
68835 cat confdefs.h >>conftest.$ac_ext
68836 cat >>conftest.$ac_ext <<_ACEOF
68837 /* end confdefs.h. */
68838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68840 #define $ac_func innocuous_$ac_func
68842 /* System header to define __stub macros and hopefully few prototypes,
68843 which can conflict with char $ac_func (); below.
68844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68845 <limits.h> exists even on freestanding compilers. */
68848 # include <limits.h>
68850 # include <assert.h>
68855 /* Override any GCC internal prototype to avoid an error.
68856 Use char because int might match the return type of a GCC
68857 builtin and then its argument prototype would still apply. */
68862 /* The GNU C library defines this for functions which it implements
68863 to always fail with ENOSYS. Some functions are actually named
68864 something starting with __ and the normal name is an alias. */
68865 #if defined __stub_$ac_func || defined __stub___$ac_func
68872 return $ac_func ();
68877 rm -f conftest.$ac_objext conftest$ac_exeext
68878 if { (ac_try="$ac_link"
68879 case "(($ac_try" in
68880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68881 *) ac_try_echo=$ac_try;;
68883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68884 $as_echo "$ac_try_echo") >&5
68885 (eval "$ac_link") 2>conftest.er1
68887 grep -v '^ *+' conftest.er1 >conftest.err
68889 cat conftest.err >&5
68890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68891 (exit $ac_status); } && {
68892 test -z "$ac_c_werror_flag" ||
68893 test ! -s conftest.err
68894 } && test -s conftest$ac_exeext && {
68895 test "$cross_compiling" = yes ||
68896 $as_test_x conftest$ac_exeext
68898 eval "$as_ac_var=yes"
68900 $as_echo "$as_me: failed program was:" >&5
68901 sed 's/^/| /' conftest.$ac_ext >&5
68903 eval "$as_ac_var=no"
68906 rm -rf conftest.dSYM
68907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68908 conftest$ac_exeext conftest.$ac_ext
68910 ac_res=`eval 'as_val=${'$as_ac_var'}
68911 $as_echo "$as_val"'`
68912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68913 $as_echo "$ac_res" >&6; }
68914 as_val=`eval 'as_val=${'$as_ac_var'}
68915 $as_echo "$as_val"'`
68916 if test "x$as_val" = x""yes; then
68917 cat >>confdefs.h <<_ACEOF
68918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68920 ice_have_socket=yes
68924 if test "${ice_have_socket}" = yes; then
68925 { $as_echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
68926 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
68927 if test "${ice_cv_have_socket_decl+set}" = set; then
68928 $as_echo_n "(cached) " >&6
68931 ice_cv_have_socket_decl=no
68932 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68933 ice_re_word='(^|[^a-zA-Z0-9_])'
68934 for header in sys/types.h sys/socket.h; do
68935 # Check for ordinary declaration
68936 cat >conftest.$ac_ext <<_ACEOF
68939 cat confdefs.h >>conftest.$ac_ext
68940 cat >>conftest.$ac_ext <<_ACEOF
68941 /* end confdefs.h. */
68945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68946 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then
68947 ice_cv_have_socket_decl=yes
68951 if test "$ice_cv_have_socket_decl" = yes; then
68954 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68955 cat >conftest.$ac_ext <<_ACEOF
68958 cat confdefs.h >>conftest.$ac_ext
68959 cat >>conftest.$ac_ext <<_ACEOF
68960 /* end confdefs.h. */
68964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68965 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68966 ice_cv_have_socket_decl=yes
68970 if test "$ice_cv_have_socket_decl" = yes; then
68977 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
68978 $as_echo "$ice_cv_have_socket_decl" >&6; }
68979 if test "$ice_cv_have_socket_decl" = yes; then
68981 cat >>confdefs.h <<_ACEOF
68982 #define HAVE_SOCKET_DECL 1
68989 ice_have_socketpair=no
68991 for ac_func in socketpair
68993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68994 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68995 $as_echo_n "checking for $ac_func... " >&6; }
68996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68997 $as_echo_n "(cached) " >&6
68999 cat >conftest.$ac_ext <<_ACEOF
69002 cat confdefs.h >>conftest.$ac_ext
69003 cat >>conftest.$ac_ext <<_ACEOF
69004 /* end confdefs.h. */
69005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69007 #define $ac_func innocuous_$ac_func
69009 /* System header to define __stub macros and hopefully few prototypes,
69010 which can conflict with char $ac_func (); below.
69011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69012 <limits.h> exists even on freestanding compilers. */
69015 # include <limits.h>
69017 # include <assert.h>
69022 /* Override any GCC internal prototype to avoid an error.
69023 Use char because int might match the return type of a GCC
69024 builtin and then its argument prototype would still apply. */
69029 /* The GNU C library defines this for functions which it implements
69030 to always fail with ENOSYS. Some functions are actually named
69031 something starting with __ and the normal name is an alias. */
69032 #if defined __stub_$ac_func || defined __stub___$ac_func
69039 return $ac_func ();
69044 rm -f conftest.$ac_objext conftest$ac_exeext
69045 if { (ac_try="$ac_link"
69046 case "(($ac_try" in
69047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69048 *) ac_try_echo=$ac_try;;
69050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69051 $as_echo "$ac_try_echo") >&5
69052 (eval "$ac_link") 2>conftest.er1
69054 grep -v '^ *+' conftest.er1 >conftest.err
69056 cat conftest.err >&5
69057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69058 (exit $ac_status); } && {
69059 test -z "$ac_c_werror_flag" ||
69060 test ! -s conftest.err
69061 } && test -s conftest$ac_exeext && {
69062 test "$cross_compiling" = yes ||
69063 $as_test_x conftest$ac_exeext
69065 eval "$as_ac_var=yes"
69067 $as_echo "$as_me: failed program was:" >&5
69068 sed 's/^/| /' conftest.$ac_ext >&5
69070 eval "$as_ac_var=no"
69073 rm -rf conftest.dSYM
69074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69075 conftest$ac_exeext conftest.$ac_ext
69077 ac_res=`eval 'as_val=${'$as_ac_var'}
69078 $as_echo "$as_val"'`
69079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69080 $as_echo "$ac_res" >&6; }
69081 as_val=`eval 'as_val=${'$as_ac_var'}
69082 $as_echo "$as_val"'`
69083 if test "x$as_val" = x""yes; then
69084 cat >>confdefs.h <<_ACEOF
69085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69087 ice_have_socketpair=yes
69091 if test "${ice_have_socketpair}" = yes; then
69092 { $as_echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
69093 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
69094 if test "${ice_cv_have_socketpair_decl+set}" = set; then
69095 $as_echo_n "(cached) " >&6
69098 ice_cv_have_socketpair_decl=no
69099 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69100 ice_re_word='(^|[^a-zA-Z0-9_])'
69101 for header in sys/types.h sys/socket.h; do
69102 # Check for ordinary declaration
69103 cat >conftest.$ac_ext <<_ACEOF
69106 cat confdefs.h >>conftest.$ac_ext
69107 cat >>conftest.$ac_ext <<_ACEOF
69108 /* end confdefs.h. */
69112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69113 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then
69114 ice_cv_have_socketpair_decl=yes
69118 if test "$ice_cv_have_socketpair_decl" = yes; then
69121 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69122 cat >conftest.$ac_ext <<_ACEOF
69125 cat confdefs.h >>conftest.$ac_ext
69126 cat >>conftest.$ac_ext <<_ACEOF
69127 /* end confdefs.h. */
69131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69132 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69133 ice_cv_have_socketpair_decl=yes
69137 if test "$ice_cv_have_socketpair_decl" = yes; then
69144 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
69145 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
69146 if test "$ice_cv_have_socketpair_decl" = yes; then
69148 cat >>confdefs.h <<_ACEOF
69149 #define HAVE_SOCKETPAIR_DECL 1
69158 for ac_func in sscanf
69160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69161 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69162 $as_echo_n "checking for $ac_func... " >&6; }
69163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69164 $as_echo_n "(cached) " >&6
69166 cat >conftest.$ac_ext <<_ACEOF
69169 cat confdefs.h >>conftest.$ac_ext
69170 cat >>conftest.$ac_ext <<_ACEOF
69171 /* end confdefs.h. */
69172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69174 #define $ac_func innocuous_$ac_func
69176 /* System header to define __stub macros and hopefully few prototypes,
69177 which can conflict with char $ac_func (); below.
69178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69179 <limits.h> exists even on freestanding compilers. */
69182 # include <limits.h>
69184 # include <assert.h>
69189 /* Override any GCC internal prototype to avoid an error.
69190 Use char because int might match the return type of a GCC
69191 builtin and then its argument prototype would still apply. */
69196 /* The GNU C library defines this for functions which it implements
69197 to always fail with ENOSYS. Some functions are actually named
69198 something starting with __ and the normal name is an alias. */
69199 #if defined __stub_$ac_func || defined __stub___$ac_func
69206 return $ac_func ();
69211 rm -f conftest.$ac_objext conftest$ac_exeext
69212 if { (ac_try="$ac_link"
69213 case "(($ac_try" in
69214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69215 *) ac_try_echo=$ac_try;;
69217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69218 $as_echo "$ac_try_echo") >&5
69219 (eval "$ac_link") 2>conftest.er1
69221 grep -v '^ *+' conftest.er1 >conftest.err
69223 cat conftest.err >&5
69224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69225 (exit $ac_status); } && {
69226 test -z "$ac_c_werror_flag" ||
69227 test ! -s conftest.err
69228 } && test -s conftest$ac_exeext && {
69229 test "$cross_compiling" = yes ||
69230 $as_test_x conftest$ac_exeext
69232 eval "$as_ac_var=yes"
69234 $as_echo "$as_me: failed program was:" >&5
69235 sed 's/^/| /' conftest.$ac_ext >&5
69237 eval "$as_ac_var=no"
69240 rm -rf conftest.dSYM
69241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69242 conftest$ac_exeext conftest.$ac_ext
69244 ac_res=`eval 'as_val=${'$as_ac_var'}
69245 $as_echo "$as_val"'`
69246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69247 $as_echo "$ac_res" >&6; }
69248 as_val=`eval 'as_val=${'$as_ac_var'}
69249 $as_echo "$as_val"'`
69250 if test "x$as_val" = x""yes; then
69251 cat >>confdefs.h <<_ACEOF
69252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69254 ice_have_sscanf=yes
69258 if test "${ice_have_sscanf}" = yes; then
69259 { $as_echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
69260 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
69261 if test "${ice_cv_have_sscanf_decl+set}" = set; then
69262 $as_echo_n "(cached) " >&6
69265 ice_cv_have_sscanf_decl=no
69266 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69267 ice_re_word='(^|[^a-zA-Z0-9_])'
69268 for header in stdio.h; do
69269 # Check for ordinary declaration
69270 cat >conftest.$ac_ext <<_ACEOF
69273 cat confdefs.h >>conftest.$ac_ext
69274 cat >>conftest.$ac_ext <<_ACEOF
69275 /* end confdefs.h. */
69279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69280 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then
69281 ice_cv_have_sscanf_decl=yes
69285 if test "$ice_cv_have_sscanf_decl" = yes; then
69288 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69289 cat >conftest.$ac_ext <<_ACEOF
69292 cat confdefs.h >>conftest.$ac_ext
69293 cat >>conftest.$ac_ext <<_ACEOF
69294 /* end confdefs.h. */
69298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69299 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69300 ice_cv_have_sscanf_decl=yes
69304 if test "$ice_cv_have_sscanf_decl" = yes; then
69311 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
69312 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
69313 if test "$ice_cv_have_sscanf_decl" = yes; then
69315 cat >>confdefs.h <<_ACEOF
69316 #define HAVE_SSCANF_DECL 1
69323 ice_have_strerror=no
69325 for ac_func in strerror
69327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69328 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69329 $as_echo_n "checking for $ac_func... " >&6; }
69330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69331 $as_echo_n "(cached) " >&6
69333 cat >conftest.$ac_ext <<_ACEOF
69336 cat confdefs.h >>conftest.$ac_ext
69337 cat >>conftest.$ac_ext <<_ACEOF
69338 /* end confdefs.h. */
69339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69341 #define $ac_func innocuous_$ac_func
69343 /* System header to define __stub macros and hopefully few prototypes,
69344 which can conflict with char $ac_func (); below.
69345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69346 <limits.h> exists even on freestanding compilers. */
69349 # include <limits.h>
69351 # include <assert.h>
69356 /* Override any GCC internal prototype to avoid an error.
69357 Use char because int might match the return type of a GCC
69358 builtin and then its argument prototype would still apply. */
69363 /* The GNU C library defines this for functions which it implements
69364 to always fail with ENOSYS. Some functions are actually named
69365 something starting with __ and the normal name is an alias. */
69366 #if defined __stub_$ac_func || defined __stub___$ac_func
69373 return $ac_func ();
69378 rm -f conftest.$ac_objext conftest$ac_exeext
69379 if { (ac_try="$ac_link"
69380 case "(($ac_try" in
69381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69382 *) ac_try_echo=$ac_try;;
69384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69385 $as_echo "$ac_try_echo") >&5
69386 (eval "$ac_link") 2>conftest.er1
69388 grep -v '^ *+' conftest.er1 >conftest.err
69390 cat conftest.err >&5
69391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69392 (exit $ac_status); } && {
69393 test -z "$ac_c_werror_flag" ||
69394 test ! -s conftest.err
69395 } && test -s conftest$ac_exeext && {
69396 test "$cross_compiling" = yes ||
69397 $as_test_x conftest$ac_exeext
69399 eval "$as_ac_var=yes"
69401 $as_echo "$as_me: failed program was:" >&5
69402 sed 's/^/| /' conftest.$ac_ext >&5
69404 eval "$as_ac_var=no"
69407 rm -rf conftest.dSYM
69408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69409 conftest$ac_exeext conftest.$ac_ext
69411 ac_res=`eval 'as_val=${'$as_ac_var'}
69412 $as_echo "$as_val"'`
69413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69414 $as_echo "$ac_res" >&6; }
69415 as_val=`eval 'as_val=${'$as_ac_var'}
69416 $as_echo "$as_val"'`
69417 if test "x$as_val" = x""yes; then
69418 cat >>confdefs.h <<_ACEOF
69419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69421 ice_have_strerror=yes
69425 if test "${ice_have_strerror}" = yes; then
69426 { $as_echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
69427 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
69428 if test "${ice_cv_have_strerror_decl+set}" = set; then
69429 $as_echo_n "(cached) " >&6
69432 ice_cv_have_strerror_decl=no
69433 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69434 ice_re_word='(^|[^a-zA-Z0-9_])'
69435 for header in string.h strings.h; do
69436 # Check for ordinary declaration
69437 cat >conftest.$ac_ext <<_ACEOF
69440 cat confdefs.h >>conftest.$ac_ext
69441 cat >>conftest.$ac_ext <<_ACEOF
69442 /* end confdefs.h. */
69446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69447 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then
69448 ice_cv_have_strerror_decl=yes
69452 if test "$ice_cv_have_strerror_decl" = yes; then
69455 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69456 cat >conftest.$ac_ext <<_ACEOF
69459 cat confdefs.h >>conftest.$ac_ext
69460 cat >>conftest.$ac_ext <<_ACEOF
69461 /* end confdefs.h. */
69465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69466 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69467 ice_cv_have_strerror_decl=yes
69471 if test "$ice_cv_have_strerror_decl" = yes; then
69478 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
69479 $as_echo "$ice_cv_have_strerror_decl" >&6; }
69480 if test "$ice_cv_have_strerror_decl" = yes; then
69482 cat >>confdefs.h <<_ACEOF
69483 #define HAVE_STRERROR_DECL 1
69490 for ac_func in strftime
69492 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69493 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69494 $as_echo_n "checking for $ac_func... " >&6; }
69495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69496 $as_echo_n "(cached) " >&6
69498 cat >conftest.$ac_ext <<_ACEOF
69501 cat confdefs.h >>conftest.$ac_ext
69502 cat >>conftest.$ac_ext <<_ACEOF
69503 /* end confdefs.h. */
69504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69506 #define $ac_func innocuous_$ac_func
69508 /* System header to define __stub macros and hopefully few prototypes,
69509 which can conflict with char $ac_func (); below.
69510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69511 <limits.h> exists even on freestanding compilers. */
69514 # include <limits.h>
69516 # include <assert.h>
69521 /* Override any GCC internal prototype to avoid an error.
69522 Use char because int might match the return type of a GCC
69523 builtin and then its argument prototype would still apply. */
69528 /* The GNU C library defines this for functions which it implements
69529 to always fail with ENOSYS. Some functions are actually named
69530 something starting with __ and the normal name is an alias. */
69531 #if defined __stub_$ac_func || defined __stub___$ac_func
69538 return $ac_func ();
69543 rm -f conftest.$ac_objext conftest$ac_exeext
69544 if { (ac_try="$ac_link"
69545 case "(($ac_try" in
69546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69547 *) ac_try_echo=$ac_try;;
69549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69550 $as_echo "$ac_try_echo") >&5
69551 (eval "$ac_link") 2>conftest.er1
69553 grep -v '^ *+' conftest.er1 >conftest.err
69555 cat conftest.err >&5
69556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69557 (exit $ac_status); } && {
69558 test -z "$ac_c_werror_flag" ||
69559 test ! -s conftest.err
69560 } && test -s conftest$ac_exeext && {
69561 test "$cross_compiling" = yes ||
69562 $as_test_x conftest$ac_exeext
69564 eval "$as_ac_var=yes"
69566 $as_echo "$as_me: failed program was:" >&5
69567 sed 's/^/| /' conftest.$ac_ext >&5
69569 eval "$as_ac_var=no"
69572 rm -rf conftest.dSYM
69573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69574 conftest$ac_exeext conftest.$ac_ext
69576 ac_res=`eval 'as_val=${'$as_ac_var'}
69577 $as_echo "$as_val"'`
69578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69579 $as_echo "$ac_res" >&6; }
69580 as_val=`eval 'as_val=${'$as_ac_var'}
69581 $as_echo "$as_val"'`
69582 if test "x$as_val" = x""yes; then
69583 cat >>confdefs.h <<_ACEOF
69584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69588 # strftime is in -lintl on SCO UNIX.
69589 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
69590 $as_echo_n "checking for strftime in -lintl... " >&6; }
69591 if test "${ac_cv_lib_intl_strftime+set}" = set; then
69592 $as_echo_n "(cached) " >&6
69594 ac_check_lib_save_LIBS=$LIBS
69595 LIBS="-lintl $LIBS"
69596 cat >conftest.$ac_ext <<_ACEOF
69599 cat confdefs.h >>conftest.$ac_ext
69600 cat >>conftest.$ac_ext <<_ACEOF
69601 /* end confdefs.h. */
69603 /* Override any GCC internal prototype to avoid an error.
69604 Use char because int might match the return type of a GCC
69605 builtin and then its argument prototype would still apply. */
69613 return strftime ();
69618 rm -f conftest.$ac_objext conftest$ac_exeext
69619 if { (ac_try="$ac_link"
69620 case "(($ac_try" in
69621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69622 *) ac_try_echo=$ac_try;;
69624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69625 $as_echo "$ac_try_echo") >&5
69626 (eval "$ac_link") 2>conftest.er1
69628 grep -v '^ *+' conftest.er1 >conftest.err
69630 cat conftest.err >&5
69631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69632 (exit $ac_status); } && {
69633 test -z "$ac_c_werror_flag" ||
69634 test ! -s conftest.err
69635 } && test -s conftest$ac_exeext && {
69636 test "$cross_compiling" = yes ||
69637 $as_test_x conftest$ac_exeext
69639 ac_cv_lib_intl_strftime=yes
69641 $as_echo "$as_me: failed program was:" >&5
69642 sed 's/^/| /' conftest.$ac_ext >&5
69644 ac_cv_lib_intl_strftime=no
69647 rm -rf conftest.dSYM
69648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69649 conftest$ac_exeext conftest.$ac_ext
69650 LIBS=$ac_check_lib_save_LIBS
69652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
69653 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
69654 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
69655 cat >>confdefs.h <<\_ACEOF
69656 #define HAVE_STRFTIME 1
69659 LIBS="-lintl $LIBS"
69666 ice_have_strftime=no
69668 for ac_func in strftime
69670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69671 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69672 $as_echo_n "checking for $ac_func... " >&6; }
69673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69674 $as_echo_n "(cached) " >&6
69676 cat >conftest.$ac_ext <<_ACEOF
69679 cat confdefs.h >>conftest.$ac_ext
69680 cat >>conftest.$ac_ext <<_ACEOF
69681 /* end confdefs.h. */
69682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69684 #define $ac_func innocuous_$ac_func
69686 /* System header to define __stub macros and hopefully few prototypes,
69687 which can conflict with char $ac_func (); below.
69688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69689 <limits.h> exists even on freestanding compilers. */
69692 # include <limits.h>
69694 # include <assert.h>
69699 /* Override any GCC internal prototype to avoid an error.
69700 Use char because int might match the return type of a GCC
69701 builtin and then its argument prototype would still apply. */
69706 /* The GNU C library defines this for functions which it implements
69707 to always fail with ENOSYS. Some functions are actually named
69708 something starting with __ and the normal name is an alias. */
69709 #if defined __stub_$ac_func || defined __stub___$ac_func
69716 return $ac_func ();
69721 rm -f conftest.$ac_objext conftest$ac_exeext
69722 if { (ac_try="$ac_link"
69723 case "(($ac_try" in
69724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69725 *) ac_try_echo=$ac_try;;
69727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69728 $as_echo "$ac_try_echo") >&5
69729 (eval "$ac_link") 2>conftest.er1
69731 grep -v '^ *+' conftest.er1 >conftest.err
69733 cat conftest.err >&5
69734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69735 (exit $ac_status); } && {
69736 test -z "$ac_c_werror_flag" ||
69737 test ! -s conftest.err
69738 } && test -s conftest$ac_exeext && {
69739 test "$cross_compiling" = yes ||
69740 $as_test_x conftest$ac_exeext
69742 eval "$as_ac_var=yes"
69744 $as_echo "$as_me: failed program was:" >&5
69745 sed 's/^/| /' conftest.$ac_ext >&5
69747 eval "$as_ac_var=no"
69750 rm -rf conftest.dSYM
69751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69752 conftest$ac_exeext conftest.$ac_ext
69754 ac_res=`eval 'as_val=${'$as_ac_var'}
69755 $as_echo "$as_val"'`
69756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69757 $as_echo "$ac_res" >&6; }
69758 as_val=`eval 'as_val=${'$as_ac_var'}
69759 $as_echo "$as_val"'`
69760 if test "x$as_val" = x""yes; then
69761 cat >>confdefs.h <<_ACEOF
69762 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69764 ice_have_strftime=yes
69768 if test "${ice_have_strftime}" = yes; then
69769 { $as_echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
69770 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
69771 if test "${ice_cv_have_strftime_decl+set}" = set; then
69772 $as_echo_n "(cached) " >&6
69775 ice_cv_have_strftime_decl=no
69776 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69777 ice_re_word='(^|[^a-zA-Z0-9_])'
69778 for header in time.h sys/time.h; do
69779 # Check for ordinary declaration
69780 cat >conftest.$ac_ext <<_ACEOF
69783 cat confdefs.h >>conftest.$ac_ext
69784 cat >>conftest.$ac_ext <<_ACEOF
69785 /* end confdefs.h. */
69789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69790 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then
69791 ice_cv_have_strftime_decl=yes
69795 if test "$ice_cv_have_strftime_decl" = yes; then
69798 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69799 cat >conftest.$ac_ext <<_ACEOF
69802 cat confdefs.h >>conftest.$ac_ext
69803 cat >>conftest.$ac_ext <<_ACEOF
69804 /* end confdefs.h. */
69808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69809 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69810 ice_cv_have_strftime_decl=yes
69814 if test "$ice_cv_have_strftime_decl" = yes; then
69821 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
69822 $as_echo "$ice_cv_have_strftime_decl" >&6; }
69823 if test "$ice_cv_have_strftime_decl" = yes; then
69825 cat >>confdefs.h <<_ACEOF
69826 #define HAVE_STRFTIME_DECL 1
69833 ice_have_strncasecmp=no
69835 for ac_func in strncasecmp
69837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69838 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69839 $as_echo_n "checking for $ac_func... " >&6; }
69840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69841 $as_echo_n "(cached) " >&6
69843 cat >conftest.$ac_ext <<_ACEOF
69846 cat confdefs.h >>conftest.$ac_ext
69847 cat >>conftest.$ac_ext <<_ACEOF
69848 /* end confdefs.h. */
69849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69851 #define $ac_func innocuous_$ac_func
69853 /* System header to define __stub macros and hopefully few prototypes,
69854 which can conflict with char $ac_func (); below.
69855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69856 <limits.h> exists even on freestanding compilers. */
69859 # include <limits.h>
69861 # include <assert.h>
69866 /* Override any GCC internal prototype to avoid an error.
69867 Use char because int might match the return type of a GCC
69868 builtin and then its argument prototype would still apply. */
69873 /* The GNU C library defines this for functions which it implements
69874 to always fail with ENOSYS. Some functions are actually named
69875 something starting with __ and the normal name is an alias. */
69876 #if defined __stub_$ac_func || defined __stub___$ac_func
69883 return $ac_func ();
69888 rm -f conftest.$ac_objext conftest$ac_exeext
69889 if { (ac_try="$ac_link"
69890 case "(($ac_try" in
69891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69892 *) ac_try_echo=$ac_try;;
69894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69895 $as_echo "$ac_try_echo") >&5
69896 (eval "$ac_link") 2>conftest.er1
69898 grep -v '^ *+' conftest.er1 >conftest.err
69900 cat conftest.err >&5
69901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69902 (exit $ac_status); } && {
69903 test -z "$ac_c_werror_flag" ||
69904 test ! -s conftest.err
69905 } && test -s conftest$ac_exeext && {
69906 test "$cross_compiling" = yes ||
69907 $as_test_x conftest$ac_exeext
69909 eval "$as_ac_var=yes"
69911 $as_echo "$as_me: failed program was:" >&5
69912 sed 's/^/| /' conftest.$ac_ext >&5
69914 eval "$as_ac_var=no"
69917 rm -rf conftest.dSYM
69918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69919 conftest$ac_exeext conftest.$ac_ext
69921 ac_res=`eval 'as_val=${'$as_ac_var'}
69922 $as_echo "$as_val"'`
69923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69924 $as_echo "$ac_res" >&6; }
69925 as_val=`eval 'as_val=${'$as_ac_var'}
69926 $as_echo "$as_val"'`
69927 if test "x$as_val" = x""yes; then
69928 cat >>confdefs.h <<_ACEOF
69929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69931 ice_have_strncasecmp=yes
69935 if test "${ice_have_strncasecmp}" = yes; then
69936 { $as_echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
69937 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
69938 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
69939 $as_echo_n "(cached) " >&6
69942 ice_cv_have_strncasecmp_decl=no
69943 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69944 ice_re_word='(^|[^a-zA-Z0-9_])'
69945 for header in string.h strings.h; do
69946 # Check for ordinary declaration
69947 cat >conftest.$ac_ext <<_ACEOF
69950 cat confdefs.h >>conftest.$ac_ext
69951 cat >>conftest.$ac_ext <<_ACEOF
69952 /* end confdefs.h. */
69956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69957 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then
69958 ice_cv_have_strncasecmp_decl=yes
69962 if test "$ice_cv_have_strncasecmp_decl" = yes; then
69965 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69966 cat >conftest.$ac_ext <<_ACEOF
69969 cat confdefs.h >>conftest.$ac_ext
69970 cat >>conftest.$ac_ext <<_ACEOF
69971 /* end confdefs.h. */
69975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69976 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69977 ice_cv_have_strncasecmp_decl=yes
69981 if test "$ice_cv_have_strncasecmp_decl" = yes; then
69988 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
69989 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
69990 if test "$ice_cv_have_strncasecmp_decl" = yes; then
69992 cat >>confdefs.h <<_ACEOF
69993 #define HAVE_STRNCASECMP_DECL 1
70002 for ac_func in syslog
70004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70005 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70006 $as_echo_n "checking for $ac_func... " >&6; }
70007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70008 $as_echo_n "(cached) " >&6
70010 cat >conftest.$ac_ext <<_ACEOF
70013 cat confdefs.h >>conftest.$ac_ext
70014 cat >>conftest.$ac_ext <<_ACEOF
70015 /* end confdefs.h. */
70016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70018 #define $ac_func innocuous_$ac_func
70020 /* System header to define __stub macros and hopefully few prototypes,
70021 which can conflict with char $ac_func (); below.
70022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70023 <limits.h> exists even on freestanding compilers. */
70026 # include <limits.h>
70028 # include <assert.h>
70033 /* Override any GCC internal prototype to avoid an error.
70034 Use char because int might match the return type of a GCC
70035 builtin and then its argument prototype would still apply. */
70040 /* The GNU C library defines this for functions which it implements
70041 to always fail with ENOSYS. Some functions are actually named
70042 something starting with __ and the normal name is an alias. */
70043 #if defined __stub_$ac_func || defined __stub___$ac_func
70050 return $ac_func ();
70055 rm -f conftest.$ac_objext conftest$ac_exeext
70056 if { (ac_try="$ac_link"
70057 case "(($ac_try" in
70058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70059 *) ac_try_echo=$ac_try;;
70061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70062 $as_echo "$ac_try_echo") >&5
70063 (eval "$ac_link") 2>conftest.er1
70065 grep -v '^ *+' conftest.er1 >conftest.err
70067 cat conftest.err >&5
70068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70069 (exit $ac_status); } && {
70070 test -z "$ac_c_werror_flag" ||
70071 test ! -s conftest.err
70072 } && test -s conftest$ac_exeext && {
70073 test "$cross_compiling" = yes ||
70074 $as_test_x conftest$ac_exeext
70076 eval "$as_ac_var=yes"
70078 $as_echo "$as_me: failed program was:" >&5
70079 sed 's/^/| /' conftest.$ac_ext >&5
70081 eval "$as_ac_var=no"
70084 rm -rf conftest.dSYM
70085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70086 conftest$ac_exeext conftest.$ac_ext
70088 ac_res=`eval 'as_val=${'$as_ac_var'}
70089 $as_echo "$as_val"'`
70090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70091 $as_echo "$ac_res" >&6; }
70092 as_val=`eval 'as_val=${'$as_ac_var'}
70093 $as_echo "$as_val"'`
70094 if test "x$as_val" = x""yes; then
70095 cat >>confdefs.h <<_ACEOF
70096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70098 ice_have_syslog=yes
70102 if test "${ice_have_syslog}" = yes; then
70103 { $as_echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
70104 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
70105 if test "${ice_cv_have_syslog_decl+set}" = set; then
70106 $as_echo_n "(cached) " >&6
70109 ice_cv_have_syslog_decl=no
70110 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70111 ice_re_word='(^|[^a-zA-Z0-9_])'
70112 for header in syslog.h; do
70113 # Check for ordinary declaration
70114 cat >conftest.$ac_ext <<_ACEOF
70117 cat confdefs.h >>conftest.$ac_ext
70118 cat >>conftest.$ac_ext <<_ACEOF
70119 /* end confdefs.h. */
70123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70124 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then
70125 ice_cv_have_syslog_decl=yes
70129 if test "$ice_cv_have_syslog_decl" = yes; then
70132 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70133 cat >conftest.$ac_ext <<_ACEOF
70136 cat confdefs.h >>conftest.$ac_ext
70137 cat >>conftest.$ac_ext <<_ACEOF
70138 /* end confdefs.h. */
70142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70143 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70144 ice_cv_have_syslog_decl=yes
70148 if test "$ice_cv_have_syslog_decl" = yes; then
70155 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
70156 $as_echo "$ice_cv_have_syslog_decl" >&6; }
70157 if test "$ice_cv_have_syslog_decl" = yes; then
70159 cat >>confdefs.h <<_ACEOF
70160 #define HAVE_SYSLOG_DECL 1
70169 for ac_func in system
70171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70172 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70173 $as_echo_n "checking for $ac_func... " >&6; }
70174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70175 $as_echo_n "(cached) " >&6
70177 cat >conftest.$ac_ext <<_ACEOF
70180 cat confdefs.h >>conftest.$ac_ext
70181 cat >>conftest.$ac_ext <<_ACEOF
70182 /* end confdefs.h. */
70183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70185 #define $ac_func innocuous_$ac_func
70187 /* System header to define __stub macros and hopefully few prototypes,
70188 which can conflict with char $ac_func (); below.
70189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70190 <limits.h> exists even on freestanding compilers. */
70193 # include <limits.h>
70195 # include <assert.h>
70200 /* Override any GCC internal prototype to avoid an error.
70201 Use char because int might match the return type of a GCC
70202 builtin and then its argument prototype would still apply. */
70207 /* The GNU C library defines this for functions which it implements
70208 to always fail with ENOSYS. Some functions are actually named
70209 something starting with __ and the normal name is an alias. */
70210 #if defined __stub_$ac_func || defined __stub___$ac_func
70217 return $ac_func ();
70222 rm -f conftest.$ac_objext conftest$ac_exeext
70223 if { (ac_try="$ac_link"
70224 case "(($ac_try" in
70225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70226 *) ac_try_echo=$ac_try;;
70228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70229 $as_echo "$ac_try_echo") >&5
70230 (eval "$ac_link") 2>conftest.er1
70232 grep -v '^ *+' conftest.er1 >conftest.err
70234 cat conftest.err >&5
70235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70236 (exit $ac_status); } && {
70237 test -z "$ac_c_werror_flag" ||
70238 test ! -s conftest.err
70239 } && test -s conftest$ac_exeext && {
70240 test "$cross_compiling" = yes ||
70241 $as_test_x conftest$ac_exeext
70243 eval "$as_ac_var=yes"
70245 $as_echo "$as_me: failed program was:" >&5
70246 sed 's/^/| /' conftest.$ac_ext >&5
70248 eval "$as_ac_var=no"
70251 rm -rf conftest.dSYM
70252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70253 conftest$ac_exeext conftest.$ac_ext
70255 ac_res=`eval 'as_val=${'$as_ac_var'}
70256 $as_echo "$as_val"'`
70257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70258 $as_echo "$ac_res" >&6; }
70259 as_val=`eval 'as_val=${'$as_ac_var'}
70260 $as_echo "$as_val"'`
70261 if test "x$as_val" = x""yes; then
70262 cat >>confdefs.h <<_ACEOF
70263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70265 ice_have_system=yes
70269 if test "${ice_have_system}" = yes; then
70270 { $as_echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
70271 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
70272 if test "${ice_cv_have_system_decl+set}" = set; then
70273 $as_echo_n "(cached) " >&6
70276 ice_cv_have_system_decl=no
70277 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70278 ice_re_word='(^|[^a-zA-Z0-9_])'
70279 for header in stdlib.h; do
70280 # Check for ordinary declaration
70281 cat >conftest.$ac_ext <<_ACEOF
70284 cat confdefs.h >>conftest.$ac_ext
70285 cat >>conftest.$ac_ext <<_ACEOF
70286 /* end confdefs.h. */
70290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70291 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then
70292 ice_cv_have_system_decl=yes
70296 if test "$ice_cv_have_system_decl" = yes; then
70299 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70300 cat >conftest.$ac_ext <<_ACEOF
70303 cat confdefs.h >>conftest.$ac_ext
70304 cat >>conftest.$ac_ext <<_ACEOF
70305 /* end confdefs.h. */
70309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70310 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70311 ice_cv_have_system_decl=yes
70315 if test "$ice_cv_have_system_decl" = yes; then
70322 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
70323 $as_echo "$ice_cv_have_system_decl" >&6; }
70324 if test "$ice_cv_have_system_decl" = yes; then
70326 cat >>confdefs.h <<_ACEOF
70327 #define HAVE_SYSTEM_DECL 1
70336 for ac_func in time
70338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70340 $as_echo_n "checking for $ac_func... " >&6; }
70341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70342 $as_echo_n "(cached) " >&6
70344 cat >conftest.$ac_ext <<_ACEOF
70347 cat confdefs.h >>conftest.$ac_ext
70348 cat >>conftest.$ac_ext <<_ACEOF
70349 /* end confdefs.h. */
70350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70352 #define $ac_func innocuous_$ac_func
70354 /* System header to define __stub macros and hopefully few prototypes,
70355 which can conflict with char $ac_func (); below.
70356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70357 <limits.h> exists even on freestanding compilers. */
70360 # include <limits.h>
70362 # include <assert.h>
70367 /* Override any GCC internal prototype to avoid an error.
70368 Use char because int might match the return type of a GCC
70369 builtin and then its argument prototype would still apply. */
70374 /* The GNU C library defines this for functions which it implements
70375 to always fail with ENOSYS. Some functions are actually named
70376 something starting with __ and the normal name is an alias. */
70377 #if defined __stub_$ac_func || defined __stub___$ac_func
70384 return $ac_func ();
70389 rm -f conftest.$ac_objext conftest$ac_exeext
70390 if { (ac_try="$ac_link"
70391 case "(($ac_try" in
70392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70393 *) ac_try_echo=$ac_try;;
70395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70396 $as_echo "$ac_try_echo") >&5
70397 (eval "$ac_link") 2>conftest.er1
70399 grep -v '^ *+' conftest.er1 >conftest.err
70401 cat conftest.err >&5
70402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70403 (exit $ac_status); } && {
70404 test -z "$ac_c_werror_flag" ||
70405 test ! -s conftest.err
70406 } && test -s conftest$ac_exeext && {
70407 test "$cross_compiling" = yes ||
70408 $as_test_x conftest$ac_exeext
70410 eval "$as_ac_var=yes"
70412 $as_echo "$as_me: failed program was:" >&5
70413 sed 's/^/| /' conftest.$ac_ext >&5
70415 eval "$as_ac_var=no"
70418 rm -rf conftest.dSYM
70419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70420 conftest$ac_exeext conftest.$ac_ext
70422 ac_res=`eval 'as_val=${'$as_ac_var'}
70423 $as_echo "$as_val"'`
70424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70425 $as_echo "$ac_res" >&6; }
70426 as_val=`eval 'as_val=${'$as_ac_var'}
70427 $as_echo "$as_val"'`
70428 if test "x$as_val" = x""yes; then
70429 cat >>confdefs.h <<_ACEOF
70430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70436 if test "${ice_have_time}" = yes; then
70437 { $as_echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
70438 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
70439 if test "${ice_cv_have_time_decl+set}" = set; then
70440 $as_echo_n "(cached) " >&6
70443 ice_cv_have_time_decl=no
70444 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70445 ice_re_word='(^|[^a-zA-Z0-9_])'
70446 for header in time.h sys/time.h; do
70447 # Check for ordinary declaration
70448 cat >conftest.$ac_ext <<_ACEOF
70451 cat confdefs.h >>conftest.$ac_ext
70452 cat >>conftest.$ac_ext <<_ACEOF
70453 /* end confdefs.h. */
70457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70458 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then
70459 ice_cv_have_time_decl=yes
70463 if test "$ice_cv_have_time_decl" = yes; then
70466 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70467 cat >conftest.$ac_ext <<_ACEOF
70470 cat confdefs.h >>conftest.$ac_ext
70471 cat >>conftest.$ac_ext <<_ACEOF
70472 /* end confdefs.h. */
70476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70477 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70478 ice_cv_have_time_decl=yes
70482 if test "$ice_cv_have_time_decl" = yes; then
70489 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
70490 $as_echo "$ice_cv_have_time_decl" >&6; }
70491 if test "$ice_cv_have_time_decl" = yes; then
70493 cat >>confdefs.h <<_ACEOF
70494 #define HAVE_TIME_DECL 1
70501 ice_have_tolower=no
70503 for ac_func in tolower
70505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70506 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70507 $as_echo_n "checking for $ac_func... " >&6; }
70508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70509 $as_echo_n "(cached) " >&6
70511 cat >conftest.$ac_ext <<_ACEOF
70514 cat confdefs.h >>conftest.$ac_ext
70515 cat >>conftest.$ac_ext <<_ACEOF
70516 /* end confdefs.h. */
70517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70519 #define $ac_func innocuous_$ac_func
70521 /* System header to define __stub macros and hopefully few prototypes,
70522 which can conflict with char $ac_func (); below.
70523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70524 <limits.h> exists even on freestanding compilers. */
70527 # include <limits.h>
70529 # include <assert.h>
70534 /* Override any GCC internal prototype to avoid an error.
70535 Use char because int might match the return type of a GCC
70536 builtin and then its argument prototype would still apply. */
70541 /* The GNU C library defines this for functions which it implements
70542 to always fail with ENOSYS. Some functions are actually named
70543 something starting with __ and the normal name is an alias. */
70544 #if defined __stub_$ac_func || defined __stub___$ac_func
70551 return $ac_func ();
70556 rm -f conftest.$ac_objext conftest$ac_exeext
70557 if { (ac_try="$ac_link"
70558 case "(($ac_try" in
70559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70560 *) ac_try_echo=$ac_try;;
70562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70563 $as_echo "$ac_try_echo") >&5
70564 (eval "$ac_link") 2>conftest.er1
70566 grep -v '^ *+' conftest.er1 >conftest.err
70568 cat conftest.err >&5
70569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70570 (exit $ac_status); } && {
70571 test -z "$ac_c_werror_flag" ||
70572 test ! -s conftest.err
70573 } && test -s conftest$ac_exeext && {
70574 test "$cross_compiling" = yes ||
70575 $as_test_x conftest$ac_exeext
70577 eval "$as_ac_var=yes"
70579 $as_echo "$as_me: failed program was:" >&5
70580 sed 's/^/| /' conftest.$ac_ext >&5
70582 eval "$as_ac_var=no"
70585 rm -rf conftest.dSYM
70586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70587 conftest$ac_exeext conftest.$ac_ext
70589 ac_res=`eval 'as_val=${'$as_ac_var'}
70590 $as_echo "$as_val"'`
70591 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70592 $as_echo "$ac_res" >&6; }
70593 as_val=`eval 'as_val=${'$as_ac_var'}
70594 $as_echo "$as_val"'`
70595 if test "x$as_val" = x""yes; then
70596 cat >>confdefs.h <<_ACEOF
70597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70599 ice_have_tolower=yes
70603 if test "${ice_have_tolower}" = yes; then
70604 { $as_echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
70605 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
70606 if test "${ice_cv_have_tolower_decl+set}" = set; then
70607 $as_echo_n "(cached) " >&6
70610 ice_cv_have_tolower_decl=no
70611 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70612 ice_re_word='(^|[^a-zA-Z0-9_])'
70613 for header in ctype.h; do
70614 # Check for ordinary declaration
70615 cat >conftest.$ac_ext <<_ACEOF
70618 cat confdefs.h >>conftest.$ac_ext
70619 cat >>conftest.$ac_ext <<_ACEOF
70620 /* end confdefs.h. */
70624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70625 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then
70626 ice_cv_have_tolower_decl=yes
70630 if test "$ice_cv_have_tolower_decl" = yes; then
70633 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70634 cat >conftest.$ac_ext <<_ACEOF
70637 cat confdefs.h >>conftest.$ac_ext
70638 cat >>conftest.$ac_ext <<_ACEOF
70639 /* end confdefs.h. */
70643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70644 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70645 ice_cv_have_tolower_decl=yes
70649 if test "$ice_cv_have_tolower_decl" = yes; then
70656 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
70657 $as_echo "$ice_cv_have_tolower_decl" >&6; }
70658 if test "$ice_cv_have_tolower_decl" = yes; then
70660 cat >>confdefs.h <<_ACEOF
70661 #define HAVE_TOLOWER_DECL 1
70668 ice_have_toupper=no
70670 for ac_func in toupper
70672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70673 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70674 $as_echo_n "checking for $ac_func... " >&6; }
70675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70676 $as_echo_n "(cached) " >&6
70678 cat >conftest.$ac_ext <<_ACEOF
70681 cat confdefs.h >>conftest.$ac_ext
70682 cat >>conftest.$ac_ext <<_ACEOF
70683 /* end confdefs.h. */
70684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70686 #define $ac_func innocuous_$ac_func
70688 /* System header to define __stub macros and hopefully few prototypes,
70689 which can conflict with char $ac_func (); below.
70690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70691 <limits.h> exists even on freestanding compilers. */
70694 # include <limits.h>
70696 # include <assert.h>
70701 /* Override any GCC internal prototype to avoid an error.
70702 Use char because int might match the return type of a GCC
70703 builtin and then its argument prototype would still apply. */
70708 /* The GNU C library defines this for functions which it implements
70709 to always fail with ENOSYS. Some functions are actually named
70710 something starting with __ and the normal name is an alias. */
70711 #if defined __stub_$ac_func || defined __stub___$ac_func
70718 return $ac_func ();
70723 rm -f conftest.$ac_objext conftest$ac_exeext
70724 if { (ac_try="$ac_link"
70725 case "(($ac_try" in
70726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70727 *) ac_try_echo=$ac_try;;
70729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70730 $as_echo "$ac_try_echo") >&5
70731 (eval "$ac_link") 2>conftest.er1
70733 grep -v '^ *+' conftest.er1 >conftest.err
70735 cat conftest.err >&5
70736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70737 (exit $ac_status); } && {
70738 test -z "$ac_c_werror_flag" ||
70739 test ! -s conftest.err
70740 } && test -s conftest$ac_exeext && {
70741 test "$cross_compiling" = yes ||
70742 $as_test_x conftest$ac_exeext
70744 eval "$as_ac_var=yes"
70746 $as_echo "$as_me: failed program was:" >&5
70747 sed 's/^/| /' conftest.$ac_ext >&5
70749 eval "$as_ac_var=no"
70752 rm -rf conftest.dSYM
70753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70754 conftest$ac_exeext conftest.$ac_ext
70756 ac_res=`eval 'as_val=${'$as_ac_var'}
70757 $as_echo "$as_val"'`
70758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70759 $as_echo "$ac_res" >&6; }
70760 as_val=`eval 'as_val=${'$as_ac_var'}
70761 $as_echo "$as_val"'`
70762 if test "x$as_val" = x""yes; then
70763 cat >>confdefs.h <<_ACEOF
70764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70766 ice_have_toupper=yes
70770 if test "${ice_have_toupper}" = yes; then
70771 { $as_echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
70772 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
70773 if test "${ice_cv_have_toupper_decl+set}" = set; then
70774 $as_echo_n "(cached) " >&6
70777 ice_cv_have_toupper_decl=no
70778 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70779 ice_re_word='(^|[^a-zA-Z0-9_])'
70780 for header in ctype.h; do
70781 # Check for ordinary declaration
70782 cat >conftest.$ac_ext <<_ACEOF
70785 cat confdefs.h >>conftest.$ac_ext
70786 cat >>conftest.$ac_ext <<_ACEOF
70787 /* end confdefs.h. */
70791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70792 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then
70793 ice_cv_have_toupper_decl=yes
70797 if test "$ice_cv_have_toupper_decl" = yes; then
70800 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70801 cat >conftest.$ac_ext <<_ACEOF
70804 cat confdefs.h >>conftest.$ac_ext
70805 cat >>conftest.$ac_ext <<_ACEOF
70806 /* end confdefs.h. */
70810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70811 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70812 ice_cv_have_toupper_decl=yes
70816 if test "$ice_cv_have_toupper_decl" = yes; then
70823 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
70824 $as_echo "$ice_cv_have_toupper_decl" >&6; }
70825 if test "$ice_cv_have_toupper_decl" = yes; then
70827 cat >>confdefs.h <<_ACEOF
70828 #define HAVE_TOUPPER_DECL 1
70837 for ac_func in ungetc
70839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70841 $as_echo_n "checking for $ac_func... " >&6; }
70842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70843 $as_echo_n "(cached) " >&6
70845 cat >conftest.$ac_ext <<_ACEOF
70848 cat confdefs.h >>conftest.$ac_ext
70849 cat >>conftest.$ac_ext <<_ACEOF
70850 /* end confdefs.h. */
70851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70853 #define $ac_func innocuous_$ac_func
70855 /* System header to define __stub macros and hopefully few prototypes,
70856 which can conflict with char $ac_func (); below.
70857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70858 <limits.h> exists even on freestanding compilers. */
70861 # include <limits.h>
70863 # include <assert.h>
70868 /* Override any GCC internal prototype to avoid an error.
70869 Use char because int might match the return type of a GCC
70870 builtin and then its argument prototype would still apply. */
70875 /* The GNU C library defines this for functions which it implements
70876 to always fail with ENOSYS. Some functions are actually named
70877 something starting with __ and the normal name is an alias. */
70878 #if defined __stub_$ac_func || defined __stub___$ac_func
70885 return $ac_func ();
70890 rm -f conftest.$ac_objext conftest$ac_exeext
70891 if { (ac_try="$ac_link"
70892 case "(($ac_try" in
70893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70894 *) ac_try_echo=$ac_try;;
70896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70897 $as_echo "$ac_try_echo") >&5
70898 (eval "$ac_link") 2>conftest.er1
70900 grep -v '^ *+' conftest.er1 >conftest.err
70902 cat conftest.err >&5
70903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70904 (exit $ac_status); } && {
70905 test -z "$ac_c_werror_flag" ||
70906 test ! -s conftest.err
70907 } && test -s conftest$ac_exeext && {
70908 test "$cross_compiling" = yes ||
70909 $as_test_x conftest$ac_exeext
70911 eval "$as_ac_var=yes"
70913 $as_echo "$as_me: failed program was:" >&5
70914 sed 's/^/| /' conftest.$ac_ext >&5
70916 eval "$as_ac_var=no"
70919 rm -rf conftest.dSYM
70920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70921 conftest$ac_exeext conftest.$ac_ext
70923 ac_res=`eval 'as_val=${'$as_ac_var'}
70924 $as_echo "$as_val"'`
70925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70926 $as_echo "$ac_res" >&6; }
70927 as_val=`eval 'as_val=${'$as_ac_var'}
70928 $as_echo "$as_val"'`
70929 if test "x$as_val" = x""yes; then
70930 cat >>confdefs.h <<_ACEOF
70931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70933 ice_have_ungetc=yes
70937 if test "${ice_have_ungetc}" = yes; then
70938 { $as_echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
70939 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
70940 if test "${ice_cv_have_ungetc_decl+set}" = set; then
70941 $as_echo_n "(cached) " >&6
70944 ice_cv_have_ungetc_decl=no
70945 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70946 ice_re_word='(^|[^a-zA-Z0-9_])'
70947 for header in stdio.h; do
70948 # Check for ordinary declaration
70949 cat >conftest.$ac_ext <<_ACEOF
70952 cat confdefs.h >>conftest.$ac_ext
70953 cat >>conftest.$ac_ext <<_ACEOF
70954 /* end confdefs.h. */
70958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70959 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then
70960 ice_cv_have_ungetc_decl=yes
70964 if test "$ice_cv_have_ungetc_decl" = yes; then
70967 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70968 cat >conftest.$ac_ext <<_ACEOF
70971 cat confdefs.h >>conftest.$ac_ext
70972 cat >>conftest.$ac_ext <<_ACEOF
70973 /* end confdefs.h. */
70977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70978 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70979 ice_cv_have_ungetc_decl=yes
70983 if test "$ice_cv_have_ungetc_decl" = yes; then
70990 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
70991 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
70992 if test "$ice_cv_have_ungetc_decl" = yes; then
70994 cat >>confdefs.h <<_ACEOF
70995 #define HAVE_UNGETC_DECL 1
71002 ice_have_vfprintf=no
71004 for ac_func in vfprintf
71006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71007 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71008 $as_echo_n "checking for $ac_func... " >&6; }
71009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71010 $as_echo_n "(cached) " >&6
71012 cat >conftest.$ac_ext <<_ACEOF
71015 cat confdefs.h >>conftest.$ac_ext
71016 cat >>conftest.$ac_ext <<_ACEOF
71017 /* end confdefs.h. */
71018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71020 #define $ac_func innocuous_$ac_func
71022 /* System header to define __stub macros and hopefully few prototypes,
71023 which can conflict with char $ac_func (); below.
71024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71025 <limits.h> exists even on freestanding compilers. */
71028 # include <limits.h>
71030 # include <assert.h>
71035 /* Override any GCC internal prototype to avoid an error.
71036 Use char because int might match the return type of a GCC
71037 builtin and then its argument prototype would still apply. */
71042 /* The GNU C library defines this for functions which it implements
71043 to always fail with ENOSYS. Some functions are actually named
71044 something starting with __ and the normal name is an alias. */
71045 #if defined __stub_$ac_func || defined __stub___$ac_func
71052 return $ac_func ();
71057 rm -f conftest.$ac_objext conftest$ac_exeext
71058 if { (ac_try="$ac_link"
71059 case "(($ac_try" in
71060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71061 *) ac_try_echo=$ac_try;;
71063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71064 $as_echo "$ac_try_echo") >&5
71065 (eval "$ac_link") 2>conftest.er1
71067 grep -v '^ *+' conftest.er1 >conftest.err
71069 cat conftest.err >&5
71070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71071 (exit $ac_status); } && {
71072 test -z "$ac_c_werror_flag" ||
71073 test ! -s conftest.err
71074 } && test -s conftest$ac_exeext && {
71075 test "$cross_compiling" = yes ||
71076 $as_test_x conftest$ac_exeext
71078 eval "$as_ac_var=yes"
71080 $as_echo "$as_me: failed program was:" >&5
71081 sed 's/^/| /' conftest.$ac_ext >&5
71083 eval "$as_ac_var=no"
71086 rm -rf conftest.dSYM
71087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71088 conftest$ac_exeext conftest.$ac_ext
71090 ac_res=`eval 'as_val=${'$as_ac_var'}
71091 $as_echo "$as_val"'`
71092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71093 $as_echo "$ac_res" >&6; }
71094 as_val=`eval 'as_val=${'$as_ac_var'}
71095 $as_echo "$as_val"'`
71096 if test "x$as_val" = x""yes; then
71097 cat >>confdefs.h <<_ACEOF
71098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71100 ice_have_vfprintf=yes
71104 if test "${ice_have_vfprintf}" = yes; then
71105 { $as_echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
71106 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
71107 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
71108 $as_echo_n "(cached) " >&6
71111 ice_cv_have_vfprintf_decl=no
71112 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71113 ice_re_word='(^|[^a-zA-Z0-9_])'
71114 for header in stdio.h stdlib.h; do
71115 # Check for ordinary declaration
71116 cat >conftest.$ac_ext <<_ACEOF
71119 cat confdefs.h >>conftest.$ac_ext
71120 cat >>conftest.$ac_ext <<_ACEOF
71121 /* end confdefs.h. */
71125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71126 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then
71127 ice_cv_have_vfprintf_decl=yes
71131 if test "$ice_cv_have_vfprintf_decl" = yes; then
71134 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71135 cat >conftest.$ac_ext <<_ACEOF
71138 cat confdefs.h >>conftest.$ac_ext
71139 cat >>conftest.$ac_ext <<_ACEOF
71140 /* end confdefs.h. */
71144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71145 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71146 ice_cv_have_vfprintf_decl=yes
71150 if test "$ice_cv_have_vfprintf_decl" = yes; then
71157 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
71158 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
71159 if test "$ice_cv_have_vfprintf_decl" = yes; then
71161 cat >>confdefs.h <<_ACEOF
71162 #define HAVE_VFPRINTF_DECL 1
71169 ice_have_vprintf=no
71171 for ac_func in vprintf
71173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71174 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71175 $as_echo_n "checking for $ac_func... " >&6; }
71176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71177 $as_echo_n "(cached) " >&6
71179 cat >conftest.$ac_ext <<_ACEOF
71182 cat confdefs.h >>conftest.$ac_ext
71183 cat >>conftest.$ac_ext <<_ACEOF
71184 /* end confdefs.h. */
71185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71187 #define $ac_func innocuous_$ac_func
71189 /* System header to define __stub macros and hopefully few prototypes,
71190 which can conflict with char $ac_func (); below.
71191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71192 <limits.h> exists even on freestanding compilers. */
71195 # include <limits.h>
71197 # include <assert.h>
71202 /* Override any GCC internal prototype to avoid an error.
71203 Use char because int might match the return type of a GCC
71204 builtin and then its argument prototype would still apply. */
71209 /* The GNU C library defines this for functions which it implements
71210 to always fail with ENOSYS. Some functions are actually named
71211 something starting with __ and the normal name is an alias. */
71212 #if defined __stub_$ac_func || defined __stub___$ac_func
71219 return $ac_func ();
71224 rm -f conftest.$ac_objext conftest$ac_exeext
71225 if { (ac_try="$ac_link"
71226 case "(($ac_try" in
71227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71228 *) ac_try_echo=$ac_try;;
71230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71231 $as_echo "$ac_try_echo") >&5
71232 (eval "$ac_link") 2>conftest.er1
71234 grep -v '^ *+' conftest.er1 >conftest.err
71236 cat conftest.err >&5
71237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71238 (exit $ac_status); } && {
71239 test -z "$ac_c_werror_flag" ||
71240 test ! -s conftest.err
71241 } && test -s conftest$ac_exeext && {
71242 test "$cross_compiling" = yes ||
71243 $as_test_x conftest$ac_exeext
71245 eval "$as_ac_var=yes"
71247 $as_echo "$as_me: failed program was:" >&5
71248 sed 's/^/| /' conftest.$ac_ext >&5
71250 eval "$as_ac_var=no"
71253 rm -rf conftest.dSYM
71254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71255 conftest$ac_exeext conftest.$ac_ext
71257 ac_res=`eval 'as_val=${'$as_ac_var'}
71258 $as_echo "$as_val"'`
71259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71260 $as_echo "$ac_res" >&6; }
71261 as_val=`eval 'as_val=${'$as_ac_var'}
71262 $as_echo "$as_val"'`
71263 if test "x$as_val" = x""yes; then
71264 cat >>confdefs.h <<_ACEOF
71265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71267 ice_have_vprintf=yes
71271 if test "${ice_have_vprintf}" = yes; then
71272 { $as_echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
71273 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
71274 if test "${ice_cv_have_vprintf_decl+set}" = set; then
71275 $as_echo_n "(cached) " >&6
71278 ice_cv_have_vprintf_decl=no
71279 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71280 ice_re_word='(^|[^a-zA-Z0-9_])'
71281 for header in stdio.h stdlib.h; do
71282 # Check for ordinary declaration
71283 cat >conftest.$ac_ext <<_ACEOF
71286 cat confdefs.h >>conftest.$ac_ext
71287 cat >>conftest.$ac_ext <<_ACEOF
71288 /* end confdefs.h. */
71292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71293 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then
71294 ice_cv_have_vprintf_decl=yes
71298 if test "$ice_cv_have_vprintf_decl" = yes; then
71301 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71302 cat >conftest.$ac_ext <<_ACEOF
71305 cat confdefs.h >>conftest.$ac_ext
71306 cat >>conftest.$ac_ext <<_ACEOF
71307 /* end confdefs.h. */
71311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71312 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71313 ice_cv_have_vprintf_decl=yes
71317 if test "$ice_cv_have_vprintf_decl" = yes; then
71324 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
71325 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
71326 if test "$ice_cv_have_vprintf_decl" = yes; then
71328 cat >>confdefs.h <<_ACEOF
71329 #define HAVE_VPRINTF_DECL 1
71335 { $as_echo "$as_me:$LINENO: checking for wait4" >&5
71336 $as_echo_n "checking for wait4... " >&6; }
71337 if test "${ac_cv_func_wait4+set}" = set; then
71338 $as_echo_n "(cached) " >&6
71340 cat >conftest.$ac_ext <<_ACEOF
71343 cat confdefs.h >>conftest.$ac_ext
71344 cat >>conftest.$ac_ext <<_ACEOF
71345 /* end confdefs.h. */
71346 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
71347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71348 #define wait4 innocuous_wait4
71350 /* System header to define __stub macros and hopefully few prototypes,
71351 which can conflict with char wait4 (); below.
71352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71353 <limits.h> exists even on freestanding compilers. */
71356 # include <limits.h>
71358 # include <assert.h>
71363 /* Override any GCC internal prototype to avoid an error.
71364 Use char because int might match the return type of a GCC
71365 builtin and then its argument prototype would still apply. */
71370 /* The GNU C library defines this for functions which it implements
71371 to always fail with ENOSYS. Some functions are actually named
71372 something starting with __ and the normal name is an alias. */
71373 #if defined __stub_wait4 || defined __stub___wait4
71385 rm -f conftest.$ac_objext conftest$ac_exeext
71386 if { (ac_try="$ac_link"
71387 case "(($ac_try" in
71388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71389 *) ac_try_echo=$ac_try;;
71391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71392 $as_echo "$ac_try_echo") >&5
71393 (eval "$ac_link") 2>conftest.er1
71395 grep -v '^ *+' conftest.er1 >conftest.err
71397 cat conftest.err >&5
71398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71399 (exit $ac_status); } && {
71400 test -z "$ac_c_werror_flag" ||
71401 test ! -s conftest.err
71402 } && test -s conftest$ac_exeext && {
71403 test "$cross_compiling" = yes ||
71404 $as_test_x conftest$ac_exeext
71406 ac_cv_func_wait4=yes
71408 $as_echo "$as_me: failed program was:" >&5
71409 sed 's/^/| /' conftest.$ac_ext >&5
71411 ac_cv_func_wait4=no
71414 rm -rf conftest.dSYM
71415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71416 conftest$ac_exeext conftest.$ac_ext
71418 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
71419 $as_echo "$ac_cv_func_wait4" >&6; }
71424 for ac_func in writev
71426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71427 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71428 $as_echo_n "checking for $ac_func... " >&6; }
71429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71430 $as_echo_n "(cached) " >&6
71432 cat >conftest.$ac_ext <<_ACEOF
71435 cat confdefs.h >>conftest.$ac_ext
71436 cat >>conftest.$ac_ext <<_ACEOF
71437 /* end confdefs.h. */
71438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71440 #define $ac_func innocuous_$ac_func
71442 /* System header to define __stub macros and hopefully few prototypes,
71443 which can conflict with char $ac_func (); below.
71444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71445 <limits.h> exists even on freestanding compilers. */
71448 # include <limits.h>
71450 # include <assert.h>
71455 /* Override any GCC internal prototype to avoid an error.
71456 Use char because int might match the return type of a GCC
71457 builtin and then its argument prototype would still apply. */
71462 /* The GNU C library defines this for functions which it implements
71463 to always fail with ENOSYS. Some functions are actually named
71464 something starting with __ and the normal name is an alias. */
71465 #if defined __stub_$ac_func || defined __stub___$ac_func
71472 return $ac_func ();
71477 rm -f conftest.$ac_objext conftest$ac_exeext
71478 if { (ac_try="$ac_link"
71479 case "(($ac_try" in
71480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71481 *) ac_try_echo=$ac_try;;
71483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71484 $as_echo "$ac_try_echo") >&5
71485 (eval "$ac_link") 2>conftest.er1
71487 grep -v '^ *+' conftest.er1 >conftest.err
71489 cat conftest.err >&5
71490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71491 (exit $ac_status); } && {
71492 test -z "$ac_c_werror_flag" ||
71493 test ! -s conftest.err
71494 } && test -s conftest$ac_exeext && {
71495 test "$cross_compiling" = yes ||
71496 $as_test_x conftest$ac_exeext
71498 eval "$as_ac_var=yes"
71500 $as_echo "$as_me: failed program was:" >&5
71501 sed 's/^/| /' conftest.$ac_ext >&5
71503 eval "$as_ac_var=no"
71506 rm -rf conftest.dSYM
71507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71508 conftest$ac_exeext conftest.$ac_ext
71510 ac_res=`eval 'as_val=${'$as_ac_var'}
71511 $as_echo "$as_val"'`
71512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71513 $as_echo "$ac_res" >&6; }
71514 as_val=`eval 'as_val=${'$as_ac_var'}
71515 $as_echo "$as_val"'`
71516 if test "x$as_val" = x""yes; then
71517 cat >>confdefs.h <<_ACEOF
71518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71520 ice_have_writev=yes
71524 if test "${ice_have_writev}" = yes; then
71525 { $as_echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
71526 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
71527 if test "${ice_cv_have_writev_decl+set}" = set; then
71528 $as_echo_n "(cached) " >&6
71531 ice_cv_have_writev_decl=no
71532 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71533 ice_re_word='(^|[^a-zA-Z0-9_])'
71534 for header in unistd.h sys/uio.h; do
71535 # Check for ordinary declaration
71536 cat >conftest.$ac_ext <<_ACEOF
71539 cat confdefs.h >>conftest.$ac_ext
71540 cat >>conftest.$ac_ext <<_ACEOF
71541 /* end confdefs.h. */
71545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71546 $EGREP "${ice_re_word}writev[ ]*\(" >/dev/null 2>&1; then
71547 ice_cv_have_writev_decl=yes
71551 if test "$ice_cv_have_writev_decl" = yes; then
71554 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71555 cat >conftest.$ac_ext <<_ACEOF
71558 cat confdefs.h >>conftest.$ac_ext
71559 cat >>conftest.$ac_ext <<_ACEOF
71560 /* end confdefs.h. */
71564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71565 $EGREP "${ice_re_word}writev[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71566 ice_cv_have_writev_decl=yes
71570 if test "$ice_cv_have_writev_decl" = yes; then
71577 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
71578 $as_echo "$ice_cv_have_writev_decl" >&6; }
71579 if test "$ice_cv_have_writev_decl" = yes; then
71581 cat >>confdefs.h <<_ACEOF
71582 #define HAVE_WRITEV_DECL 1
71589 ice_have_strcasecmp=no
71591 for ac_func in strcasecmp
71593 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71594 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71595 $as_echo_n "checking for $ac_func... " >&6; }
71596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71597 $as_echo_n "(cached) " >&6
71599 cat >conftest.$ac_ext <<_ACEOF
71602 cat confdefs.h >>conftest.$ac_ext
71603 cat >>conftest.$ac_ext <<_ACEOF
71604 /* end confdefs.h. */
71605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71607 #define $ac_func innocuous_$ac_func
71609 /* System header to define __stub macros and hopefully few prototypes,
71610 which can conflict with char $ac_func (); below.
71611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71612 <limits.h> exists even on freestanding compilers. */
71615 # include <limits.h>
71617 # include <assert.h>
71622 /* Override any GCC internal prototype to avoid an error.
71623 Use char because int might match the return type of a GCC
71624 builtin and then its argument prototype would still apply. */
71629 /* The GNU C library defines this for functions which it implements
71630 to always fail with ENOSYS. Some functions are actually named
71631 something starting with __ and the normal name is an alias. */
71632 #if defined __stub_$ac_func || defined __stub___$ac_func
71639 return $ac_func ();
71644 rm -f conftest.$ac_objext conftest$ac_exeext
71645 if { (ac_try="$ac_link"
71646 case "(($ac_try" in
71647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71648 *) ac_try_echo=$ac_try;;
71650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71651 $as_echo "$ac_try_echo") >&5
71652 (eval "$ac_link") 2>conftest.er1
71654 grep -v '^ *+' conftest.er1 >conftest.err
71656 cat conftest.err >&5
71657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71658 (exit $ac_status); } && {
71659 test -z "$ac_c_werror_flag" ||
71660 test ! -s conftest.err
71661 } && test -s conftest$ac_exeext && {
71662 test "$cross_compiling" = yes ||
71663 $as_test_x conftest$ac_exeext
71665 eval "$as_ac_var=yes"
71667 $as_echo "$as_me: failed program was:" >&5
71668 sed 's/^/| /' conftest.$ac_ext >&5
71670 eval "$as_ac_var=no"
71673 rm -rf conftest.dSYM
71674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71675 conftest$ac_exeext conftest.$ac_ext
71677 ac_res=`eval 'as_val=${'$as_ac_var'}
71678 $as_echo "$as_val"'`
71679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71680 $as_echo "$ac_res" >&6; }
71681 as_val=`eval 'as_val=${'$as_ac_var'}
71682 $as_echo "$as_val"'`
71683 if test "x$as_val" = x""yes; then
71684 cat >>confdefs.h <<_ACEOF
71685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71687 ice_have_strcasecmp=yes
71691 if test "${ice_have_strcasecmp}" = yes; then
71692 { $as_echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
71693 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
71694 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
71695 $as_echo_n "(cached) " >&6
71698 ice_cv_have_strcasecmp_decl=no
71699 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71700 ice_re_word='(^|[^a-zA-Z0-9_])'
71701 for header in string.h strings.h; do
71702 # Check for ordinary declaration
71703 cat >conftest.$ac_ext <<_ACEOF
71706 cat confdefs.h >>conftest.$ac_ext
71707 cat >>conftest.$ac_ext <<_ACEOF
71708 /* end confdefs.h. */
71712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71713 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then
71714 ice_cv_have_strcasecmp_decl=yes
71718 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71721 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71722 cat >conftest.$ac_ext <<_ACEOF
71725 cat confdefs.h >>conftest.$ac_ext
71726 cat >>conftest.$ac_ext <<_ACEOF
71727 /* end confdefs.h. */
71731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71732 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71733 ice_cv_have_strcasecmp_decl=yes
71737 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71744 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
71745 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
71746 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71748 cat >>confdefs.h <<_ACEOF
71749 #define HAVE_STRCASECMP_DECL 1
71757 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amar-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile common-src/versuff.c config/Makefile device-src/Makefile application-src/Makefile example/Makefile example/amanda-client.conf example/amanda.conf example/xinetd.amandaclient example/xinetd.amandaserver example/inetd.conf.amandaclient example/inetd.conf.amandaserver example/chg-mcutil.conf example/template.d/advanced.conf example/template.d/amanda-S3.conf example/template.d/amanda-harddisk.conf example/template.d/amanda-single-tape.conf example/template.d/amanda-tape-changer.conf gnulib/Makefile installcheck/Makefile man/Makefile oldrecover-src/Makefile packaging/Makefile perl/Makefile po/Makefile recover-src/Makefile restore-src/Makefile server-src/Makefile xfer-src/Makefile"
71760 cat >confcache <<\_ACEOF
71761 # This file is a shell script that caches the results of configure
71762 # tests run on this system so they can be shared between configure
71763 # scripts and configure runs, see configure's option --config-cache.
71764 # It is not useful on other systems. If it contains results you don't
71765 # want to keep, you may remove or edit it.
71767 # config.status only pays attention to the cache file if you give it
71768 # the --recheck option to rerun configure.
71770 # `ac_cv_env_foo' variables (set or unset) will be overridden when
71771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
71772 # following values.
71776 # The following way of writing the cache mishandles newlines in values,
71777 # but we know of no workaround that is simple, portable, and efficient.
71778 # So, we kill variables containing newlines.
71779 # Ultrix sh set writes to stderr and can't be redirected directly,
71780 # and sets the high bit in the cache file unless we assign to the vars.
71782 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
71783 eval ac_val=\$$ac_var
71787 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
71788 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
71791 _ | IFS | as_nl) ;; #(
71792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
71793 *) $as_unset $ac_var ;;
71799 case $as_nl`(ac_space=' '; set) 2>&1` in #(
71800 *${as_nl}ac_space=\ *)
71801 # `set' does not quote correctly, so add quotes (double-quote
71802 # substitution turns \\\\ into \\, and sed turns \\ into \).
71805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
71808 # `set' quotes correctly as required by POSIX, so do not add quotes.
71809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
71818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
71820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
71822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
71823 if test -w "$cache_file"; then
71824 test "x$cache_file" != "x/dev/null" &&
71825 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
71826 $as_echo "$as_me: updating cache $cache_file" >&6;}
71827 cat confcache >$cache_file
71829 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
71830 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
71836 # Let make expand exec_prefix.
71837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
71839 DEFS=-DHAVE_CONFIG_H
71843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
71844 # 1. Remove the extension, and $U if already installed.
71845 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
71846 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
71847 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
71848 # will be set to the directory where LIBOBJS objects are built.
71849 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
71850 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
71852 LIBOBJS=$ac_libobjs
71854 LTLIBOBJS=$ac_ltlibobjs
71857 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
71858 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
71859 Usually this means the macro was only invoked conditionally." >&5
71860 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
71861 Usually this means the macro was only invoked conditionally." >&2;}
71862 { (exit 1); exit 1; }; }
71864 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
71865 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
71866 Usually this means the macro was only invoked conditionally." >&5
71867 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
71868 Usually this means the macro was only invoked conditionally." >&2;}
71869 { (exit 1); exit 1; }; }
71871 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
71872 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
71873 Usually this means the macro was only invoked conditionally." >&5
71874 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
71875 Usually this means the macro was only invoked conditionally." >&2;}
71876 { (exit 1); exit 1; }; }
71881 if test -n "$gl_LIBOBJS"; then
71882 # Remove the extension.
71883 sed_drop_objext='s/\.o$//;s/\.obj$//'
71884 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
71885 gl_libobjs="$gl_libobjs $i.$ac_objext"
71886 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
71889 gl_LIBOBJS=$gl_libobjs
71891 gl_LTLIBOBJS=$gl_ltlibobjs
71897 if test -n "$gltests_LIBOBJS"; then
71898 # Remove the extension.
71899 sed_drop_objext='s/\.o$//;s/\.obj$//'
71900 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
71901 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
71902 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
71905 gltests_LIBOBJS=$gltests_libobjs
71907 gltests_LTLIBOBJS=$gltests_ltlibobjs
71910 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
71911 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
71912 Usually this means the macro was only invoked conditionally." >&5
71913 $as_echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
71914 Usually this means the macro was only invoked conditionally." >&2;}
71915 { (exit 1); exit 1; }; }
71917 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
71918 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
71919 Usually this means the macro was only invoked conditionally." >&5
71920 $as_echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
71921 Usually this means the macro was only invoked conditionally." >&2;}
71922 { (exit 1); exit 1; }; }
71924 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
71925 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
71926 Usually this means the macro was only invoked conditionally." >&5
71927 $as_echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
71928 Usually this means the macro was only invoked conditionally." >&2;}
71929 { (exit 1); exit 1; }; }
71931 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
71932 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
71933 Usually this means the macro was only invoked conditionally." >&5
71934 $as_echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
71935 Usually this means the macro was only invoked conditionally." >&2;}
71936 { (exit 1); exit 1; }; }
71938 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
71939 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
71940 Usually this means the macro was only invoked conditionally." >&5
71941 $as_echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
71942 Usually this means the macro was only invoked conditionally." >&2;}
71943 { (exit 1); exit 1; }; }
71945 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
71946 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
71947 Usually this means the macro was only invoked conditionally." >&5
71948 $as_echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
71949 Usually this means the macro was only invoked conditionally." >&2;}
71950 { (exit 1); exit 1; }; }
71952 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
71953 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
71954 Usually this means the macro was only invoked conditionally." >&5
71955 $as_echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
71956 Usually this means the macro was only invoked conditionally." >&2;}
71957 { (exit 1); exit 1; }; }
71959 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
71960 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
71961 Usually this means the macro was only invoked conditionally." >&5
71962 $as_echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
71963 Usually this means the macro was only invoked conditionally." >&2;}
71964 { (exit 1); exit 1; }; }
71966 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
71967 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
71968 Usually this means the macro was only invoked conditionally." >&5
71969 $as_echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
71970 Usually this means the macro was only invoked conditionally." >&2;}
71971 { (exit 1); exit 1; }; }
71973 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
71974 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
71975 Usually this means the macro was only invoked conditionally." >&5
71976 $as_echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
71977 Usually this means the macro was only invoked conditionally." >&2;}
71978 { (exit 1); exit 1; }; }
71980 if test -z "${WANT_SCSI_LINUX_TRUE}" && test -z "${WANT_SCSI_LINUX_FALSE}"; then
71981 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_LINUX\" was never defined.
71982 Usually this means the macro was only invoked conditionally." >&5
71983 $as_echo "$as_me: error: conditional \"WANT_SCSI_LINUX\" was never defined.
71984 Usually this means the macro was only invoked conditionally." >&2;}
71985 { (exit 1); exit 1; }; }
71987 if test -z "${WANT_SCSI_HPUX_NEW_TRUE}" && test -z "${WANT_SCSI_HPUX_NEW_FALSE}"; then
71988 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
71989 Usually this means the macro was only invoked conditionally." >&5
71990 $as_echo "$as_me: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
71991 Usually this means the macro was only invoked conditionally." >&2;}
71992 { (exit 1); exit 1; }; }
71994 if test -z "${WANT_SCSI_IRIX_TRUE}" && test -z "${WANT_SCSI_IRIX_FALSE}"; then
71995 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_IRIX\" was never defined.
71996 Usually this means the macro was only invoked conditionally." >&5
71997 $as_echo "$as_me: error: conditional \"WANT_SCSI_IRIX\" was never defined.
71998 Usually this means the macro was only invoked conditionally." >&2;}
71999 { (exit 1); exit 1; }; }
72001 if test -z "${WANT_SCSI_SOLARIS_TRUE}" && test -z "${WANT_SCSI_SOLARIS_FALSE}"; then
72002 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
72003 Usually this means the macro was only invoked conditionally." >&5
72004 $as_echo "$as_me: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
72005 Usually this means the macro was only invoked conditionally." >&2;}
72006 { (exit 1); exit 1; }; }
72008 if test -z "${WANT_SCSI_AIX_TRUE}" && test -z "${WANT_SCSI_AIX_FALSE}"; then
72009 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_AIX\" was never defined.
72010 Usually this means the macro was only invoked conditionally." >&5
72011 $as_echo "$as_me: error: conditional \"WANT_SCSI_AIX\" was never defined.
72012 Usually this means the macro was only invoked conditionally." >&2;}
72013 { (exit 1); exit 1; }; }
72015 if test -z "${WANT_SCSI_CAM_TRUE}" && test -z "${WANT_SCSI_CAM_FALSE}"; then
72016 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CAM\" was never defined.
72017 Usually this means the macro was only invoked conditionally." >&5
72018 $as_echo "$as_me: error: conditional \"WANT_SCSI_CAM\" was never defined.
72019 Usually this means the macro was only invoked conditionally." >&2;}
72020 { (exit 1); exit 1; }; }
72022 if test -z "${WANT_SCSI_BSD_TRUE}" && test -z "${WANT_SCSI_BSD_FALSE}"; then
72023 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_BSD\" was never defined.
72024 Usually this means the macro was only invoked conditionally." >&5
72025 $as_echo "$as_me: error: conditional \"WANT_SCSI_BSD\" was never defined.
72026 Usually this means the macro was only invoked conditionally." >&2;}
72027 { (exit 1); exit 1; }; }
72029 if test -z "${WANT_CHG_SCSI_CHIO_TRUE}" && test -z "${WANT_CHG_SCSI_CHIO_FALSE}"; then
72030 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
72031 Usually this means the macro was only invoked conditionally." >&5
72032 $as_echo "$as_me: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
72033 Usually this means the macro was only invoked conditionally." >&2;}
72034 { (exit 1); exit 1; }; }
72036 if test -z "${WANT_SCSI_HPUX_TRUE}" && test -z "${WANT_SCSI_HPUX_FALSE}"; then
72037 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX\" was never defined.
72038 Usually this means the macro was only invoked conditionally." >&5
72039 $as_echo "$as_me: error: conditional \"WANT_SCSI_HPUX\" was never defined.
72040 Usually this means the macro was only invoked conditionally." >&2;}
72041 { (exit 1); exit 1; }; }
72043 if test -z "${WANT_SCSI_CHIO_TRUE}" && test -z "${WANT_SCSI_CHIO_FALSE}"; then
72044 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CHIO\" was never defined.
72045 Usually this means the macro was only invoked conditionally." >&5
72046 $as_echo "$as_me: error: conditional \"WANT_SCSI_CHIO\" was never defined.
72047 Usually this means the macro was only invoked conditionally." >&2;}
72048 { (exit 1); exit 1; }; }
72050 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
72051 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
72052 Usually this means the macro was only invoked conditionally." >&5
72053 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
72054 Usually this means the macro was only invoked conditionally." >&2;}
72055 { (exit 1); exit 1; }; }
72057 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
72058 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
72059 Usually this means the macro was only invoked conditionally." >&5
72060 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
72061 Usually this means the macro was only invoked conditionally." >&2;}
72062 { (exit 1); exit 1; }; }
72064 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
72065 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
72066 Usually this means the macro was only invoked conditionally." >&5
72067 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
72068 Usually this means the macro was only invoked conditionally." >&2;}
72069 { (exit 1); exit 1; }; }
72071 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
72072 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
72073 Usually this means the macro was only invoked conditionally." >&5
72074 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
72075 Usually this means the macro was only invoked conditionally." >&2;}
72076 { (exit 1); exit 1; }; }
72078 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
72079 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
72080 Usually this means the macro was only invoked conditionally." >&5
72081 $as_echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
72082 Usually this means the macro was only invoked conditionally." >&2;}
72083 { (exit 1); exit 1; }; }
72085 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
72086 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
72087 Usually this means the macro was only invoked conditionally." >&5
72088 $as_echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
72089 Usually this means the macro was only invoked conditionally." >&2;}
72090 { (exit 1); exit 1; }; }
72092 if test -z "${WANT_TAPE_XENIX_TRUE}" && test -z "${WANT_TAPE_XENIX_FALSE}"; then
72093 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_XENIX\" was never defined.
72094 Usually this means the macro was only invoked conditionally." >&5
72095 $as_echo "$as_me: error: conditional \"WANT_TAPE_XENIX\" was never defined.
72096 Usually this means the macro was only invoked conditionally." >&2;}
72097 { (exit 1); exit 1; }; }
72099 if test -z "${WANT_TAPE_AIX_TRUE}" && test -z "${WANT_TAPE_AIX_FALSE}"; then
72100 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_AIX\" was never defined.
72101 Usually this means the macro was only invoked conditionally." >&5
72102 $as_echo "$as_me: error: conditional \"WANT_TAPE_AIX\" was never defined.
72103 Usually this means the macro was only invoked conditionally." >&2;}
72104 { (exit 1); exit 1; }; }
72106 if test -z "${WANT_TAPE_UWARE_TRUE}" && test -z "${WANT_TAPE_UWARE_FALSE}"; then
72107 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_UWARE\" was never defined.
72108 Usually this means the macro was only invoked conditionally." >&5
72109 $as_echo "$as_me: error: conditional \"WANT_TAPE_UWARE\" was never defined.
72110 Usually this means the macro was only invoked conditionally." >&2;}
72111 { (exit 1); exit 1; }; }
72113 if test -z "${WANT_TAPE_POSIX_TRUE}" && test -z "${WANT_TAPE_POSIX_FALSE}"; then
72114 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_POSIX\" was never defined.
72115 Usually this means the macro was only invoked conditionally." >&5
72116 $as_echo "$as_me: error: conditional \"WANT_TAPE_POSIX\" was never defined.
72117 Usually this means the macro was only invoked conditionally." >&2;}
72118 { (exit 1); exit 1; }; }
72120 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
72121 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
72122 Usually this means the macro was only invoked conditionally." >&5
72123 $as_echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
72124 Usually this means the macro was only invoked conditionally." >&2;}
72125 { (exit 1); exit 1; }; }
72127 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
72128 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
72129 Usually this means the macro was only invoked conditionally." >&5
72130 $as_echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
72131 Usually this means the macro was only invoked conditionally." >&2;}
72132 { (exit 1); exit 1; }; }
72134 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
72135 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
72136 Usually this means the macro was only invoked conditionally." >&5
72137 $as_echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
72138 Usually this means the macro was only invoked conditionally." >&2;}
72139 { (exit 1); exit 1; }; }
72141 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
72142 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
72143 Usually this means the macro was only invoked conditionally." >&5
72144 $as_echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
72145 Usually this means the macro was only invoked conditionally." >&2;}
72146 { (exit 1); exit 1; }; }
72148 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
72149 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
72150 Usually this means the macro was only invoked conditionally." >&5
72151 $as_echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
72152 Usually this means the macro was only invoked conditionally." >&2;}
72153 { (exit 1); exit 1; }; }
72155 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
72156 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
72157 Usually this means the macro was only invoked conditionally." >&5
72158 $as_echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
72159 Usually this means the macro was only invoked conditionally." >&2;}
72160 { (exit 1); exit 1; }; }
72162 if test -z "${WANT_KRB4_SECURITY_TRUE}" && test -z "${WANT_KRB4_SECURITY_FALSE}"; then
72163 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
72164 Usually this means the macro was only invoked conditionally." >&5
72165 $as_echo "$as_me: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
72166 Usually this means the macro was only invoked conditionally." >&2;}
72167 { (exit 1); exit 1; }; }
72169 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
72170 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
72171 Usually this means the macro was only invoked conditionally." >&5
72172 $as_echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
72173 Usually this means the macro was only invoked conditionally." >&2;}
72174 { (exit 1); exit 1; }; }
72176 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
72177 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
72178 Usually this means the macro was only invoked conditionally." >&5
72179 $as_echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
72180 Usually this means the macro was only invoked conditionally." >&2;}
72181 { (exit 1); exit 1; }; }
72184 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
72185 { { $as_echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
72186 Usually this means the macro was only invoked conditionally." >&5
72187 $as_echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
72188 Usually this means the macro was only invoked conditionally." >&2;}
72189 { (exit 1); exit 1; }; }
72191 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
72192 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
72193 Usually this means the macro was only invoked conditionally." >&5
72194 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
72195 Usually this means the macro was only invoked conditionally." >&2;}
72196 { (exit 1); exit 1; }; }
72199 : ${CONFIG_STATUS=./config.status}
72201 ac_clean_files_save=$ac_clean_files
72202 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
72203 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
72204 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
72205 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72207 # Generated by $as_me.
72208 # Run this file to recreate the current configuration.
72209 # Compiler output produced by configure, useful for debugging
72210 # configure, is in config.log if it exists.
72213 ac_cs_recheck=false
72215 SHELL=\${CONFIG_SHELL-$SHELL}
72218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72219 ## --------------------- ##
72220 ## M4sh Initialization. ##
72221 ## --------------------- ##
72223 # Be more Bourne compatible
72224 DUALCASE=1; export DUALCASE # for MKS sh
72225 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
72228 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
72229 # is contrary to our usage. Disable this feature.
72230 alias -g '${1+"$@"}'='"$@"'
72231 setopt NO_GLOB_SUBST
72233 case `(set -o) 2>/dev/null` in
72234 *posix*) set -o posix ;;
72243 # Avoid depending upon Character Ranges.
72244 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
72245 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
72246 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
72247 as_cr_digits='0123456789'
72248 as_cr_alnum=$as_cr_Letters$as_cr_digits
72253 # Printing a long string crashes Solaris 7 /usr/bin/printf.
72254 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
72255 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
72256 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
72257 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
72258 as_echo='printf %s\n'
72259 as_echo_n='printf %s'
72261 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
72262 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
72263 as_echo_n='/usr/ucb/echo -n'
72265 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
72266 as_echo_n_body='eval
72270 expr "X$arg" : "X\\(.*\\)$as_nl";
72271 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
72273 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72275 export as_echo_n_body
72276 as_echo_n='sh -c $as_echo_n_body as_echo'
72278 export as_echo_body
72279 as_echo='sh -c $as_echo_body as_echo'
72282 # The user is always right.
72283 if test "${PATH_SEPARATOR+set}" != set; then
72285 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
72286 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
72291 # Support unset when possible.
72292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
72300 # We need space, tab and new line, in precisely that order. Quoting is
72301 # there to prevent editors from complaining about space-tab.
72302 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
72303 # splitting by setting IFS to empty value.)
72306 # Find who we are. Look in the path if we contain no directory separator.
72308 *[\\/]* ) as_myself=$0 ;;
72309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72310 for as_dir in $PATH
72313 test -z "$as_dir" && as_dir=.
72314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
72320 # We did not find ourselves, most probably we were run as `sh COMMAND'
72321 # in which case we are not to be found in the path.
72322 if test "x$as_myself" = x; then
72325 if test ! -f "$as_myself"; then
72326 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
72327 { (exit 1); exit 1; }
72330 # Work around bugs in pre-3.0 UWIN ksh.
72331 for as_var in ENV MAIL MAILPATH
72332 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
72344 # Required to use basename.
72345 if expr a : '\(a\)' >/dev/null 2>&1 &&
72346 test "X`expr 00001 : '.*\(...\)'`" = X001; then
72352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
72353 as_basename=basename
72359 # Name of the executable.
72360 as_me=`$as_basename -- "$0" ||
72361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72362 X"$0" : 'X\(//\)$' \| \
72363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
72365 sed '/^.*\/\([^/][^/]*\)\/*$/{
72384 as_lineno_1=$LINENO
72385 as_lineno_2=$LINENO
72386 test "x$as_lineno_1" != "x$as_lineno_2" &&
72387 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
72389 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
72390 # uniformly replaced by the line number. The first 'sed' inserts a
72391 # line-number line after each line using $LINENO; the second 'sed'
72392 # does the real work. The second script uses 'N' to pair each
72393 # line-number line with the line containing $LINENO, and appends
72394 # trailing '-' during substitution so that $LINENO is not a special
72395 # case at line end.
72396 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
72397 # scripts with optimization help from Paolo Bonzini. Blame Lee
72398 # E. McMahon (1931-1989) for sed's syntax. :-)
72410 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
72413 ' >$as_me.lineno &&
72414 chmod +x "$as_me.lineno" ||
72415 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
72416 { (exit 1); exit 1; }; }
72418 # Don't try to exec as it changes $[0], causing all sort of problems
72419 # (the dirname of $[0] is not the place where we might find the
72420 # original and so on. Autoconf is especially sensitive to this).
72421 . "./$as_me.lineno"
72422 # Exit status is that of the last command.
72427 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
72433 ECHO_C= ECHO_N= ECHO_T=
72434 case `echo -n x` in
72436 case `echo 'x\c'` in
72437 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
72443 if expr a : '\(a\)' >/dev/null 2>&1 &&
72444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
72450 rm -f conf$$ conf$$.exe conf$$.file
72451 if test -d conf$$.dir; then
72452 rm -f conf$$.dir/conf$$.file
72455 mkdir conf$$.dir 2>/dev/null
72457 if (echo >conf$$.file) 2>/dev/null; then
72458 if ln -s conf$$.file conf$$ 2>/dev/null; then
72460 # ... but there are two gotchas:
72461 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
72462 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
72463 # In both cases, we have to default to `cp -p'.
72464 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
72466 elif ln conf$$.file conf$$ 2>/dev/null; then
72474 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
72475 rmdir conf$$.dir 2>/dev/null
72477 if mkdir -p . 2>/dev/null; then
72480 test -d ./-p && rmdir ./-p
72484 if test -x / >/dev/null 2>&1; then
72485 as_test_x='test -x'
72487 if ls -dL / >/dev/null 2>&1; then
72494 if test -d "$1"; then
72500 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
72501 ???[sx]*):;;*)false;;esac;fi
72505 as_executable_p=$as_test_x
72507 # Sed expression to map a string onto a valid CPP name.
72508 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
72510 # Sed expression to map a string onto a valid variable name.
72511 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
72516 # Save the log message, to keep $[0] and so on meaningful, and to
72517 # report actual input values of CONFIG_FILES etc. instead of their
72518 # values after options handling.
72520 This file was extended by $as_me, which was
72521 generated by GNU Autoconf 2.63. Invocation command line was
72523 CONFIG_FILES = $CONFIG_FILES
72524 CONFIG_HEADERS = $CONFIG_HEADERS
72525 CONFIG_LINKS = $CONFIG_LINKS
72526 CONFIG_COMMANDS = $CONFIG_COMMANDS
72529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
72534 case $ac_config_files in *"
72535 "*) set x $ac_config_files; shift; ac_config_files=$*;;
72538 case $ac_config_headers in *"
72539 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
72543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72544 # Files that config.status was made for.
72545 config_files="$ac_config_files"
72546 config_headers="$ac_config_headers"
72547 config_commands="$ac_config_commands"
72551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72553 \`$as_me' instantiates files from templates according to the
72554 current configuration.
72556 Usage: $0 [OPTION]... [FILE]...
72558 -h, --help print this help, then exit
72559 -V, --version print version number and configuration settings, then exit
72560 -q, --quiet, --silent
72561 do not print progress messages
72562 -d, --debug don't remove temporary files
72563 --recheck update $as_me by reconfiguring in the same conditions
72564 --file=FILE[:TEMPLATE]
72565 instantiate the configuration file FILE
72566 --header=FILE[:TEMPLATE]
72567 instantiate the configuration header FILE
72569 Configuration files:
72572 Configuration headers:
72575 Configuration commands:
72578 Report bugs to <bug-autoconf@gnu.org>."
72581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72584 configured by $0, generated by GNU Autoconf 2.63,
72585 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
72587 Copyright (C) 2008 Free Software Foundation, Inc.
72588 This config.status script is free software; the Free Software Foundation
72589 gives unlimited permission to copy, distribute and modify it."
72596 test -n "\$AWK" || AWK=awk
72599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72600 # The default lists apply if the user does not specify any file.
72606 ac_option=`expr "X$1" : 'X\([^=]*\)='`
72607 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
72618 # Handling of the options.
72619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
72621 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
72622 $as_echo "$ac_cs_version"; exit ;;
72623 --debug | --debu | --deb | --de | --d | -d )
72625 --file | --fil | --fi | --f )
72628 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72630 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
72631 ac_need_defaults=false;;
72632 --header | --heade | --head | --hea )
72635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72637 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
72638 ac_need_defaults=false;;
72640 # Conflict between --help and --header
72641 { $as_echo "$as_me: error: ambiguous option: $1
72642 Try \`$0 --help' for more information." >&2
72643 { (exit 1); exit 1; }; };;
72644 --help | --hel | -h )
72645 $as_echo "$ac_cs_usage"; exit ;;
72646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
72647 | -silent | --silent | --silen | --sile | --sil | --si | --s)
72650 # This is an error.
72651 -*) { $as_echo "$as_me: error: unrecognized option: $1
72652 Try \`$0 --help' for more information." >&2
72653 { (exit 1); exit 1; }; } ;;
72655 *) ac_config_targets="$ac_config_targets $1"
72656 ac_need_defaults=false ;;
72662 ac_configure_extra_args=
72664 if $ac_cs_silent; then
72666 ac_configure_extra_args="$ac_configure_extra_args --silent"
72670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72671 if \$ac_cs_recheck; then
72672 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
72674 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
72675 CONFIG_SHELL='$SHELL'
72676 export CONFIG_SHELL
72681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
72686 ## Running $as_me. ##
72692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72696 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
72697 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
72698 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
72699 # from automake < 1.5.
72700 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
72701 # Capture the value of LINGUAS because we need it to compute CATALOGS.
72702 LINGUAS="${LINGUAS-%UNSET%}"
72707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72709 # Handling of arguments.
72710 for ac_config_target in $ac_config_targets
72712 case $ac_config_target in
72713 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
72714 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
72715 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
72716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
72717 "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
72718 "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
72719 "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
72720 "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
72721 "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
72722 "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
72723 "common-src/versuff.c") CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
72724 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
72725 "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
72726 "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
72727 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
72728 "example/amanda-client.conf") CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
72729 "example/amanda.conf") CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
72730 "example/xinetd.amandaclient") CONFIG_FILES="$CONFIG_FILES example/xinetd.amandaclient" ;;
72731 "example/xinetd.amandaserver") CONFIG_FILES="$CONFIG_FILES example/xinetd.amandaserver" ;;
72732 "example/inetd.conf.amandaclient") CONFIG_FILES="$CONFIG_FILES example/inetd.conf.amandaclient" ;;
72733 "example/inetd.conf.amandaserver") CONFIG_FILES="$CONFIG_FILES example/inetd.conf.amandaserver" ;;
72734 "example/chg-mcutil.conf") CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
72735 "example/template.d/advanced.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/advanced.conf" ;;
72736 "example/template.d/amanda-S3.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-S3.conf" ;;
72737 "example/template.d/amanda-harddisk.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-harddisk.conf" ;;
72738 "example/template.d/amanda-single-tape.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-single-tape.conf" ;;
72739 "example/template.d/amanda-tape-changer.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-tape-changer.conf" ;;
72740 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
72741 "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
72742 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
72743 "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
72744 "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
72745 "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
72746 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
72747 "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
72748 "restore-src/Makefile") CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
72749 "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
72750 "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
72752 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
72753 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
72754 { (exit 1); exit 1; }; };;
72759 # If the user did not use the arguments to specify the items to instantiate,
72760 # then the envvar interface is used. Set only those that are not.
72761 # We use the long form for the default assignment because of an extremely
72762 # bizarre bug on SunOS 4.1.3.
72763 if $ac_need_defaults; then
72764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
72766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
72769 # Have a temporary directory for convenience. Make it in the build tree
72770 # simply because there is no reason against having it here, and in addition,
72771 # creating and moving files from /tmp can sometimes cause problems.
72772 # Hook for its removal unless debugging.
72773 # Note that there is a small window in which the directory will not be cleaned:
72774 # after its creation but before its name has been assigned to `$tmp'.
72778 trap 'exit_status=$?
72779 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
72781 trap '{ (exit 1); exit 1; }' 1 2 13 15
72783 # Create a (secure) tmp directory for tmp files.
72786 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
72787 test -n "$tmp" && test -d "$tmp"
72790 tmp=./conf$$-$RANDOM
72791 (umask 077 && mkdir "$tmp")
72794 $as_echo "$as_me: cannot create a temporary directory in ." >&2
72795 { (exit 1); exit 1; }
72798 # Set up the scripts for CONFIG_FILES section.
72799 # No need to generate them if there are no CONFIG_FILES.
72800 # This happens for instance with `./config.status config.h'.
72801 if test -n "$CONFIG_FILES"; then
72805 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
72806 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
72809 ac_cs_awk_cr=$ac_cr
72812 echo 'BEGIN {' >"$tmp/subs1.awk" &&
72817 echo "cat >conf$$subs.awk <<_ACEOF" &&
72818 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
72820 } >conf$$subs.sh ||
72821 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72822 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72823 { (exit 1); exit 1; }; }
72824 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
72826 for ac_last_try in false false false false false :; do
72827 . ./conf$$subs.sh ||
72828 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72829 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72830 { (exit 1); exit 1; }; }
72832 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
72833 if test $ac_delim_n = $ac_delim_num; then
72835 elif $ac_last_try; then
72836 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72837 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72838 { (exit 1); exit 1; }; }
72840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72843 rm -f conf$$subs.sh
72845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72846 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
72850 s/^/S["/; s/!.*/"]=/
72860 s/\(.\{148\}\).*/\1/
72862 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
72867 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
72874 s/\(.\{148\}\).*/\1/
72876 s/["\\]/\\&/g; s/^/"/; s/$/"/
72880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
72885 ' <conf$$subs.awk | sed '
72890 ' >>$CONFIG_STATUS || ac_write_fail=1
72891 rm -f conf$$subs.awk
72892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72894 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
72895 for (key in S) S_is_set[key] = 1
72901 nfields = split(line, field, "@")
72903 len = length(field[1])
72904 for (i = 2; i < nfields; i++) {
72906 keylen = length(key)
72907 if (S_is_set[key]) {
72909 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
72910 len += length(value) + length(field[++i])
72921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72922 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
72923 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
72926 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
72927 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
72928 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
72929 { (exit 1); exit 1; }; }
72932 # VPATH may cause trouble with some makes, so we remove $(srcdir),
72933 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
72934 # trailing colons and then remove the whole line if VPATH becomes empty
72935 # (actually we leave an empty line to preserve line numbers).
72936 if test "x$srcdir" = x.; then
72937 ac_vpsub='/^[ ]*VPATH[ ]*=/{
72938 s/:*\$(srcdir):*/:/
72939 s/:*\${srcdir}:*/:/
72941 s/^\([^=]*=[ ]*\):*/\1/
72947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72948 fi # test -n "$CONFIG_FILES"
72950 # Set up the scripts for CONFIG_HEADERS section.
72951 # No need to generate them if there are no CONFIG_HEADERS.
72952 # This happens for instance with `./config.status Makefile'.
72953 if test -n "$CONFIG_HEADERS"; then
72954 cat >"$tmp/defines.awk" <<\_ACAWK ||
72958 # Transform confdefs.h into an awk script `defines.awk', embedded as
72959 # here-document in config.status, that substitutes the proper values into
72960 # config.h.in to produce config.h.
72962 # Create a delimiter string that does not exist in confdefs.h, to ease
72963 # handling of long lines.
72965 for ac_last_try in false false :; do
72966 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
72967 if test -z "$ac_t"; then
72969 elif $ac_last_try; then
72970 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
72971 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
72972 { (exit 1); exit 1; }; }
72974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72978 # For the awk script, D is an array of macro values keyed by name,
72979 # likewise P contains macro parameters if any. Preserve backslash
72980 # newline sequences.
72982 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
72984 s/.\{148\}/&'"$ac_delim"'/g
72987 s/^[ ]*#[ ]*define[ ][ ]*/ /
72994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
72996 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
73000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
73001 D["\1"]=" \3\\\\\\n"\\/p
73003 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
73008 s/.\{148\}/&'"$ac_delim"'/g
73013 s/["\\]/\\&/g; s/^/"/; s/$/"/p
73016 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
73018 ' <confdefs.h | sed '
73019 s/'"$ac_delim"'/"\\\
73020 "/g' >>$CONFIG_STATUS || ac_write_fail=1
73022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73023 for (key in D) D_is_set[key] = 1
73026 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
73028 split(line, arg, " ")
73029 if (arg[1] == "#") {
73033 defundef = substr(arg[1], 2)
73036 split(mac1, mac2, "(") #)
73038 prefix = substr(line, 1, index(line, defundef) - 1)
73039 if (D_is_set[macro]) {
73040 # Preserve the white space surrounding the "#".
73041 print prefix "define", macro P[macro] D[macro]
73044 # Replace #undef with comments. This is necessary, for example,
73045 # in the case of _POSIX_SOURCE, which is predefined and required
73046 # on some systems where configure will not decide to define it.
73047 if (defundef == "undef") {
73048 print "/*", prefix defundef, macro, "*/"
73056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73057 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
73058 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
73059 { (exit 1); exit 1; }; }
73060 fi # test -n "$CONFIG_HEADERS"
73063 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
73068 :[FHLC]) ac_mode=$ac_tag; continue;;
73070 case $ac_mode$ac_tag in
73072 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
73073 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
73074 { (exit 1); exit 1; }; };;
73075 :[FH]-) ac_tag=-:-;;
73076 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
73093 -) ac_f="$tmp/stdin";;
73094 *) # Look for the file first in the build tree, then in the source tree
73095 # (if the path is not absolute). The absolute path cannot be DOS-style,
73096 # because $ac_f cannot contain `:'.
73100 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
73102 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
73103 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
73104 { (exit 1); exit 1; }; };;
73106 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
73107 ac_file_inputs="$ac_file_inputs '$ac_f'"
73110 # Let's still pretend it is `configure' which instantiates (i.e., don't
73111 # use $as_me), people would be surprised to read:
73112 # /* config.h. Generated by config.status. */
73113 configure_input='Generated from '`
73114 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
73116 if test x"$ac_file" != x-; then
73117 configure_input="$ac_file. $configure_input"
73118 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
73119 $as_echo "$as_me: creating $ac_file" >&6;}
73121 # Neutralize special characters interpreted by sed in replacement strings.
73122 case $configure_input in #(
73123 *\&* | *\|* | *\\* )
73124 ac_sed_conf_input=`$as_echo "$configure_input" |
73125 sed 's/[\\\\&|]/\\\\&/g'`;; #(
73126 *) ac_sed_conf_input=$configure_input;;
73130 *:-:* | *:-) cat >"$tmp/stdin" \
73131 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73132 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73133 { (exit 1); exit 1; }; } ;;
73138 ac_dir=`$as_dirname -- "$ac_file" ||
73139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73140 X"$ac_file" : 'X\(//\)[^/]' \| \
73141 X"$ac_file" : 'X\(//\)$' \| \
73142 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
73143 $as_echo X"$ac_file" |
73144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73148 /^X\(\/\/\)[^/].*/{
73163 -*) as_dir=./$as_dir;;
73165 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
73169 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
73170 *) as_qdir=$as_dir;;
73172 as_dirs="'$as_qdir' $as_dirs"
73173 as_dir=`$as_dirname -- "$as_dir" ||
73174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73175 X"$as_dir" : 'X\(//\)[^/]' \| \
73176 X"$as_dir" : 'X\(//\)$' \| \
73177 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
73178 $as_echo X"$as_dir" |
73179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73183 /^X\(\/\/\)[^/].*/{
73196 test -d "$as_dir" && break
73198 test -z "$as_dirs" || eval "mkdir $as_dirs"
73199 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
73200 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
73201 { (exit 1); exit 1; }; }; }
73205 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
73207 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
73208 # A ".." for each directory in $ac_dir_suffix.
73209 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
73210 case $ac_top_builddir_sub in
73211 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
73212 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
73215 ac_abs_top_builddir=$ac_pwd
73216 ac_abs_builddir=$ac_pwd$ac_dir_suffix
73217 # for backward compatibility:
73218 ac_top_builddir=$ac_top_build_prefix
73221 .) # We are building in place.
73223 ac_top_srcdir=$ac_top_builddir_sub
73224 ac_abs_top_srcdir=$ac_pwd ;;
73225 [\\/]* | ?:[\\/]* ) # Absolute name.
73226 ac_srcdir=$srcdir$ac_dir_suffix;
73227 ac_top_srcdir=$srcdir
73228 ac_abs_top_srcdir=$srcdir ;;
73229 *) # Relative name.
73230 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
73231 ac_top_srcdir=$ac_top_build_prefix$srcdir
73232 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
73234 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
73244 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
73245 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
73247 ac_MKDIR_P=$MKDIR_P
73249 [\\/$]* | ?:[\\/]* ) ;;
73250 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
73254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73255 # If the template does not know about datarootdir, expand it.
73256 # FIXME: This hack should be removed a few years after 2.60.
73257 ac_datarootdir_hack=; ac_datarootdir_seen=
73270 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
73271 *datarootdir*) ac_datarootdir_seen=yes;;
73272 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
73273 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
73274 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
73276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73277 ac_datarootdir_hack='
73278 s&@datadir@&$datadir&g
73279 s&@docdir@&$docdir&g
73280 s&@infodir@&$infodir&g
73281 s&@localedir@&$localedir&g
73282 s&@mandir@&$mandir&g
73283 s&\\\${datarootdir}&$datarootdir&g' ;;
73287 # Neutralize VPATH when `$srcdir' = `.'.
73288 # Shell code in configure.ac might set extrasub.
73289 # FIXME: do we really want to maintain this feature?
73290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73291 ac_sed_extra="$ac_vpsub
73294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
73297 s|@configure_input@|$ac_sed_conf_input|;t t
73298 s&@top_builddir@&$ac_top_builddir_sub&;t t
73299 s&@top_build_prefix@&$ac_top_build_prefix&;t t
73300 s&@srcdir@&$ac_srcdir&;t t
73301 s&@abs_srcdir@&$ac_abs_srcdir&;t t
73302 s&@top_srcdir@&$ac_top_srcdir&;t t
73303 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
73304 s&@builddir@&$ac_builddir&;t t
73305 s&@abs_builddir@&$ac_abs_builddir&;t t
73306 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
73307 s&@INSTALL@&$ac_INSTALL&;t t
73308 s&@MKDIR_P@&$ac_MKDIR_P&;t t
73309 $ac_datarootdir_hack
73311 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
73312 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73313 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73314 { (exit 1); exit 1; }; }
73316 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
73317 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
73318 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
73319 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73320 which seems to be undefined. Please make sure it is defined." >&5
73321 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73322 which seems to be undefined. Please make sure it is defined." >&2;}
73326 -) cat "$tmp/out" && rm -f "$tmp/out";;
73327 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
73329 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73330 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73331 { (exit 1); exit 1; }; }
73337 if test x"$ac_file" != x-; then
73339 $as_echo "/* $configure_input */" \
73340 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
73341 } >"$tmp/config.h" \
73342 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73343 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73344 { (exit 1); exit 1; }; }
73345 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
73346 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
73347 $as_echo "$as_me: $ac_file is unchanged" >&6;}
73350 mv "$tmp/config.h" "$ac_file" \
73351 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73352 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73353 { (exit 1); exit 1; }; }
73356 $as_echo "/* $configure_input */" \
73357 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
73358 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
73359 $as_echo "$as_me: error: could not create -" >&2;}
73360 { (exit 1); exit 1; }; }
73362 # Compute "$ac_file"'s index in $config_headers.
73365 for _am_header in $config_headers :; do
73366 case $_am_header in
73367 $_am_arg | $_am_arg:* )
73370 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
73373 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
73374 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73375 X"$_am_arg" : 'X\(//\)[^/]' \| \
73376 X"$_am_arg" : 'X\(//\)$' \| \
73377 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
73378 $as_echo X"$_am_arg" |
73379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73383 /^X\(\/\/\)[^/].*/{
73395 s/.*/./; q'`/stamp-h$_am_stamp_count
73398 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
73399 $as_echo "$as_me: executing $ac_file commands" >&6;}
73404 case $ac_file$ac_mode in
73405 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
73406 # Strip MF so we end up with the name of the file.
73407 mf=`echo "$mf" | sed -e 's/:.*$//'`
73408 # Check whether this is an Automake generated Makefile or not.
73409 # We used to match only the files named `Makefile.in', but
73410 # some people rename them; so instead we look at the file content.
73411 # Grep'ing the first line is not enough: some people post-process
73412 # each Makefile.in and add a new line on top of each file to say so.
73413 # Grep'ing the whole file is not good either: AIX grep has a line
73414 # limit of 2048, but all sed's we know have understand at least 4000.
73415 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
73416 dirpart=`$as_dirname -- "$mf" ||
73417 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73418 X"$mf" : 'X\(//\)[^/]' \| \
73419 X"$mf" : 'X\(//\)$' \| \
73420 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
73422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73426 /^X\(\/\/\)[^/].*/{
73442 # Extract the definition of DEPDIR, am__include, and am__quote
73443 # from the Makefile without running `make'.
73444 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
73445 test -z "$DEPDIR" && continue
73446 am__include=`sed -n 's/^am__include = //p' < "$mf"`
73447 test -z "am__include" && continue
73448 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
73449 # When using ansi2knr, U may be empty or an underscore; expand it
73450 U=`sed -n 's/^U = //p' < "$mf"`
73451 # Find all dependency output files, they are included files with
73452 # $(DEPDIR) in their names. We invoke sed twice because it is the
73453 # simplest approach to changing $(DEPDIR) to its actual value in the
73455 for file in `sed -n "
73456 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
73457 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
73458 # Make sure the directory exists.
73459 test -f "$dirpart/$file" && continue
73460 fdir=`$as_dirname -- "$file" ||
73461 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73462 X"$file" : 'X\(//\)[^/]' \| \
73463 X"$file" : 'X\(//\)$' \| \
73464 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
73465 $as_echo X"$file" |
73466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73470 /^X\(\/\/\)[^/].*/{
73483 { as_dir=$dirpart/$fdir
73485 -*) as_dir=./$as_dir;;
73487 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
73491 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
73492 *) as_qdir=$as_dir;;
73494 as_dirs="'$as_qdir' $as_dirs"
73495 as_dir=`$as_dirname -- "$as_dir" ||
73496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73497 X"$as_dir" : 'X\(//\)[^/]' \| \
73498 X"$as_dir" : 'X\(//\)$' \| \
73499 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
73500 $as_echo X"$as_dir" |
73501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73505 /^X\(\/\/\)[^/].*/{
73518 test -d "$as_dir" && break
73520 test -z "$as_dirs" || eval "mkdir $as_dirs"
73521 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
73522 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
73523 { (exit 1); exit 1; }; }; }
73524 # echo "creating $dirpart/$file"
73525 echo '# dummy' > "$dirpart/$file"
73529 "po-directories":C)
73530 for ac_file in $CONFIG_FILES; do
73531 # Support "outfile[:infile[:infile...]]"
73533 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
73535 # PO directories have a Makefile.in generated from Makefile.in.in.
73536 case "$ac_file" in */Makefile.in)
73537 # Adjust a relative srcdir.
73538 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
73539 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
73540 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
73541 # In autoconf-2.13 it is called $ac_given_srcdir.
73542 # In autoconf-2.50 it is called $srcdir.
73543 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
73544 case "$ac_given_srcdir" in
73545 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
73546 /*) top_srcdir="$ac_given_srcdir" ;;
73547 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
73549 # Treat a directory as a PO directory if and only if it has a
73550 # POTFILES.in file. This allows packages to have multiple PO
73551 # directories under different names or in different locations.
73552 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
73553 rm -f "$ac_dir/POTFILES"
73554 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
73555 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
73556 POMAKEFILEDEPS="POTFILES.in"
73557 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
73558 # on $ac_dir but don't depend on user-specified configuration
73560 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
73561 # The LINGUAS file contains the set of available languages.
73562 if test -n "$OBSOLETE_ALL_LINGUAS"; then
73563 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
73565 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
73566 # Hide the ALL_LINGUAS assigment from automake < 1.5.
73567 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
73568 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
73570 # The set of available languages was given in configure.in.
73571 # Hide the ALL_LINGUAS assigment from automake < 1.5.
73572 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
73575 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
73576 # Compute UPDATEPOFILES
73577 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
73578 # Compute DUMMYPOFILES
73579 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
73581 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
73582 case "$ac_given_srcdir" in
73584 *) srcdirpre='$(srcdir)/' ;;
73590 for lang in $ALL_LINGUAS; do
73591 POFILES="$POFILES $srcdirpre$lang.po"
73592 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
73593 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
73594 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
73596 # CATALOGS depends on both $ac_dir and the user's LINGUAS
73597 # environment variable.
73599 if test -n "$ALL_LINGUAS"; then
73600 for presentlang in $ALL_LINGUAS; do
73602 if test "%UNSET%" != "$LINGUAS"; then
73603 desiredlanguages="$LINGUAS"
73605 desiredlanguages="$ALL_LINGUAS"
73607 for desiredlang in $desiredlanguages; do
73608 # Use the presentlang catalog if desiredlang is
73609 # a. equal to presentlang, or
73610 # b. a variant of presentlang (because in this case,
73611 # presentlang can be used as a fallback for messages
73612 # which are not translated in the desiredlang catalog).
73613 case "$desiredlang" in
73614 "$presentlang"*) useit=yes;;
73617 if test $useit = yes; then
73618 INST_LINGUAS="$INST_LINGUAS $presentlang"
73623 if test -n "$INST_LINGUAS"; then
73624 for lang in $INST_LINGUAS; do
73625 CATALOGS="$CATALOGS $lang.gmo"
73628 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
73629 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
73630 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
73631 if test -f "$f"; then
73633 *.orig | *.bak | *~) ;;
73634 *) cat "$f" >> "$ac_dir/Makefile" ;;
73647 { (exit 0); exit 0; }
73649 chmod +x $CONFIG_STATUS
73650 ac_clean_files=$ac_clean_files_save
73652 test $ac_write_fail = 0 ||
73653 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
73654 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
73655 { (exit 1); exit 1; }; }
73658 # configure is writing to config.log, and then calls config.status.
73659 # config.status does its own redirection, appending to config.log.
73660 # Unfortunately, on DOS this fails, as config.log is still kept open
73661 # by configure, so config.status won't be able to write to it; its
73662 # output is simply discarded. So we exec the FD to /dev/null,
73663 # effectively closing config.log, so it can be properly (re)opened and
73664 # appended to by config.status. When coming back to configure, we
73665 # need to make the FD available again.
73666 if test "$no_create" != yes; then
73668 ac_config_status_args=
73669 test "$silent" = yes &&
73670 ac_config_status_args="$ac_config_status_args --quiet"
73672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
73674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
73675 # would make configure fail if this is the last instruction.
73676 $ac_cs_success || { (exit 1); exit 1; }
73678 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
73679 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
73680 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
73687 # Extract the first word of "svn", so it can be a program name with args.
73688 set dummy svn; ac_word=$2
73689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
73690 $as_echo_n "checking for $ac_word... " >&6; }
73691 if test "${ac_cv_path_SVN+set}" = set; then
73692 $as_echo_n "(cached) " >&6
73696 ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
73699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73700 for as_dir in $LOCSYSPATH
73703 test -z "$as_dir" && as_dir=.
73704 for ac_exec_ext in '' $ac_executable_extensions; do
73705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
73706 ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
73707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
73717 SVN=$ac_cv_path_SVN
73718 if test -n "$SVN"; then
73719 { $as_echo "$as_me:$LINENO: result: $SVN" >&5
73720 $as_echo "$SVN" >&6; }
73722 { $as_echo "$as_me:$LINENO: result: no" >&5
73723 $as_echo "no" >&6; }
73727 { $as_echo "$as_me:$LINENO: checking Subversion revision information" >&5
73728 $as_echo_n "checking Subversion revision information... " >&6; }
73729 if test -d $srcdir/.svn && test -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
73730 rev=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
73731 url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
73732 ( echo '#define BUILT_REV "'$rev'"'
73733 echo '#define BUILT_BRANCH "'`basename "$url"`'"'
73734 ) > common-src/svn-info.h
73736 { $as_echo "$as_me:$LINENO: result: updated" >&5
73737 $as_echo "updated" >&6; }
73739 # Makefiles will be upset if the file doesn't exist, so double-check
73740 if test -f common-src/svn-info.h; then
73742 { $as_echo "$as_me:$LINENO: result: not changed" >&5
73743 $as_echo "not changed" >&6; }
73745 echo '/* no information available */' > common-src/svn-info.h
73746 { $as_echo "$as_me:$LINENO: result: not available" >&5
73747 $as_echo "not available" >&6; }
73755 echo "Compiler Flags:"
73756 echo " CFLAGS: ${CFLAGS-(none)}"
73757 echo " CPPFLAGS: ${CPPFLAGS-(none)}"
73758 echo " LDFLAGS: ${LDFLAGS-(none)}"
73759 echo " LIBS: ${LIBS-(none)}"
73763 if $WANT_SERVER; then
73764 components="$components server";
73766 components="$components (no server)";
73768 if $WANT_RESTORE; then
73769 components="$components restore";
73771 components="$components (no restore)";
73773 if $WANT_CLIENT; then
73774 components="$components client";
73776 components="$components (no client)";
73778 if $WANT_RECOVER; then
73779 components="$components amrecover";
73781 components="$components (no amrecover)";
73784 echo "Amanda Components: $components"
73787 echo "Working IPv6:" $WORKING_IPV6
73790 echo "Build documentation:" $ENABLE_MANPAGE_BUILD
73793 echo "Directories:"
73794 echo " Application: $APPLICATION_DIR"
73795 echo " Configuration: $CONFIG_DIR"
73796 echo " GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
73797 echo " Perl modules (amperldir): $amperldir"
73798 echo " Template and example data files (amdatadir): $amdatadir"
73799 echo " Temporary: $AMANDA_TMPDIR"
73801 if test -f config.warnings; then
73803 cat config.warnings | sed -e 's/^/ /g'