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 "$lt_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 "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix=/usr/local
735 ac_config_libobj_dir=.
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
750 ac_unique_file="common-src/amanda.h"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
764 # ifdef HAVE_STDLIB_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
787 gl_use_threads_default=
790 gl_getopt_required=POSIX
791 gl_getopt_required=POSIX
792 ac_subst_vars='gltests_LTLIBOBJS
807 AMANDA_STATIC_LDFLAGS
823 AMANDA_SWIG_PERL_CFLAGS
865 WANT_KRB5_SECURITY_FALSE
866 WANT_KRB5_SECURITY_TRUE
868 WANT_SSH_SECURITY_FALSE
869 WANT_SSH_SECURITY_TRUE
872 WANT_RSH_SECURITY_FALSE
873 WANT_RSH_SECURITY_TRUE
875 WANT_BSDUDP_SECURITY_FALSE
876 WANT_BSDUDP_SECURITY_TRUE
878 WANT_BSDTCP_SECURITY_FALSE
879 WANT_BSDTCP_SECURITY_TRUE
882 WANT_BSD_SECURITY_FALSE
883 WANT_BSD_SECURITY_TRUE
884 WANT_NDMP_DEVICE_FALSE
885 WANT_NDMP_DEVICE_TRUE
886 WANT_DVDRW_DEVICE_FALSE
887 WANT_DVDRW_DEVICE_TRUE
888 WANT_TAPE_DEVICE_FALSE
889 WANT_TAPE_DEVICE_TRUE
926 WANT_MANDATORY_THREAD_CHECK_FALSE
927 WANT_MANDATORY_THREAD_CHECK_TRUE
928 WANT_CYGWIN_COPY_PERL_DLL_FALSE
929 WANT_CYGWIN_COPY_PERL_DLL_TRUE
935 WANT_AMFLOCK_LNLOCK_FALSE
936 WANT_AMFLOCK_LNLOCK_TRUE
937 WANT_AMFLOCK_LOCKF_FALSE
938 WANT_AMFLOCK_LOCKF_TRUE
939 WANT_AMFLOCK_FLOCK_FALSE
940 WANT_AMFLOCK_FLOCK_TRUE
941 WANT_AMFLOCK_POSIX_FALSE
942 WANT_AMFLOCK_POSIX_TRUE
944 DEFAULT_AMANDATES_FILE
950 CONFIG_CLOBBER_MY_CONFIG
953 ENABLE_MANPAGE_BUILD_FALSE
954 ENABLE_MANPAGE_BUILD_TRUE
982 WANT_INSTALLPERMS_FALSE
983 WANT_INSTALLPERMS_TRUE
984 WANT_SETUID_CLIENT_FALSE
985 WANT_SETUID_CLIENT_TRUE
998 GNUTAR_LISTED_INCREMENTAL_DIR
1002 AMANDA_WARNING_CFLAGS
1006 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1013 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
1016 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
1018 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
1019 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
1020 TIME_H_DEFINES_STRUCT_TIMESPEC
1021 NEXT_AS_FIRST_DIRECTIVE_TIME_H
1036 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1038 NEXT_AS_FIRST_DIRECTIVE_STRING_H
1041 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
1043 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
1054 HAVE_SIGNED_SIG_ATOMIC_T
1057 BITSIZEOF_SIG_ATOMIC_T
1063 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1067 HAVE_UNSIGNED_LONG_LONG_INT
1069 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1078 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1080 APPLE_UNIVERSAL_BUILD
1157 REPLACE_CANONICALIZE_FILE_NAME
1162 HAVE_STRUCT_RANDOM_DATA
1178 HAVE_DECL_GETLOADAVG
1179 HAVE_CANONICALIZE_FILE_NAME
1190 GNULIB_REALLOC_POSIX
1203 GNULIB_CANONICALIZE_FILE_NAME
1245 LOCALCHARSET_TESTS_ENVIRONMENT
1248 HAVE_LANGINFO_CODESET
1250 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1256 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1258 REPLACE_GETTIMEOFDAY
1267 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1274 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1276 HAVE_DECL_GETNAMEINFO
1277 HAVE_DECL_GETADDRINFO
1278 HAVE_DECL_GAI_STRERROR
1279 HAVE_DECL_FREEADDRINFO
1280 HAVE_STRUCT_ADDRINFO
1285 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1289 HAVE_STRUCT_SOCKADDR_STORAGE
1312 REPLACE_STDIO_WRITE_FUNCS
1321 REPLACE_OBSTACK_PRINTF
1343 HAVE_DECL_OBSTACK_PRINTF
1347 GNULIB_VSPRINTF_POSIX
1349 GNULIB_VPRINTF_POSIX
1351 GNULIB_VFPRINTF_POSIX
1356 GNULIB_STDIO_H_SIGPIPE
1357 GNULIB_SPRINTF_POSIX
1369 GNULIB_OBSTACK_PRINTF_POSIX
1370 GNULIB_OBSTACK_PRINTF
1382 GNULIB_FPRINTF_POSIX
1389 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1398 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1400 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1401 UNISTD_H_HAVE_WINSOCK2_H
1427 HAVE_DECL_GETUSERSHELL
1428 HAVE_DECL_GETPAGESIZE
1429 HAVE_DECL_GETLOGIN_R
1464 GNULIB_UNISTD_H_SIGPIPE
1465 GNULIB_UNISTD_H_GETOPT
1486 GNULIB_GETDTABLESIZE
1487 GNULIB_GETDOMAINNAME
1535 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1537 PRAGMA_SYSTEM_HEADER
1538 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1547 GL_COND_LIBTOOL_FALSE
1548 GL_COND_LIBTOOL_TRUE
1581 INSTALL_STRIP_PROGRAM
1634 program_transform_name
1646 enable_option_checking
1647 enable_dependency_tracking
1666 with_gnutar_listed_incremental
1672 with_low_tcpportrange
1676 with_maxtapeblocksize
1683 enable_syntax_checks
1692 enable_manpage_build
1708 with_libiconv_prefix
1716 with_bsdtcp_security
1717 with_bsdudp_security
1722 with_dump_honor_nodump
1735 enable_static_binary
1739 ac_precious_vars='build_alias
1764 # Initialize some variables set by options.
1766 ac_init_version=false
1767 ac_unrecognized_opts=
1768 ac_unrecognized_sep=
1769 # The variables have the same names as the options, with
1770 # dashes changed to underlines.
1771 cache_file=/dev/null
1778 program_transform_name=s,x,x,
1786 # Installation directory options.
1787 # These are left unexpanded so users can "make install exec_prefix=/foo"
1788 # and all the variables that are supposed to be based on exec_prefix
1789 # by default will actually change.
1790 # Use braces instead of parens because sh, perl, etc. also accept them.
1791 # (The list follows the same order as the GNU Coding Standards.)
1792 bindir='${exec_prefix}/bin'
1793 sbindir='${exec_prefix}/sbin'
1794 libexecdir='${exec_prefix}/libexec'
1795 datarootdir='${prefix}/share'
1796 datadir='${datarootdir}'
1797 sysconfdir='${prefix}/etc'
1798 sharedstatedir='${prefix}/com'
1799 localstatedir='${prefix}/var'
1800 includedir='${prefix}/include'
1801 oldincludedir='/usr/include'
1802 docdir='${datarootdir}/doc/${PACKAGE}'
1803 infodir='${datarootdir}/info'
1808 libdir='${exec_prefix}/lib'
1809 localedir='${datarootdir}/locale'
1810 mandir='${datarootdir}/man'
1816 # If the previous option needs an argument, assign it.
1817 if test -n "$ac_prev"; then
1818 eval $ac_prev=\$ac_option
1824 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1828 # Accept the important Cygnus configure options, so we can diagnose typos.
1830 case $ac_dashdash$ac_option in
1834 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1836 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1837 bindir=$ac_optarg ;;
1839 -build | --build | --buil | --bui | --bu)
1840 ac_prev=build_alias ;;
1841 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1842 build_alias=$ac_optarg ;;
1844 -cache-file | --cache-file | --cache-fil | --cache-fi \
1845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1846 ac_prev=cache_file ;;
1847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1849 cache_file=$ac_optarg ;;
1851 --config-cache | -C)
1852 cache_file=config.cache ;;
1854 -datadir | --datadir | --datadi | --datad)
1856 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1857 datadir=$ac_optarg ;;
1859 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1860 | --dataroo | --dataro | --datar)
1861 ac_prev=datarootdir ;;
1862 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1863 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1864 datarootdir=$ac_optarg ;;
1866 -disable-* | --disable-*)
1867 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1868 # Reject names that are not valid shell variable names.
1869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1870 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1871 { (exit 1); exit 1; }; }
1872 ac_useropt_orig=$ac_useropt
1873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1874 case $ac_user_opts in
1876 "enable_$ac_useropt"
1878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1879 ac_unrecognized_sep=', ';;
1881 eval enable_$ac_useropt=no ;;
1883 -docdir | --docdir | --docdi | --doc | --do)
1885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1886 docdir=$ac_optarg ;;
1888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1891 dvidir=$ac_optarg ;;
1893 -enable-* | --enable-*)
1894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1895 # Reject names that are not valid shell variable names.
1896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1897 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1898 { (exit 1); exit 1; }; }
1899 ac_useropt_orig=$ac_useropt
1900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1901 case $ac_user_opts in
1903 "enable_$ac_useropt"
1905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1906 ac_unrecognized_sep=', ';;
1908 eval enable_$ac_useropt=\$ac_optarg ;;
1910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1912 | --exec | --exe | --ex)
1913 ac_prev=exec_prefix ;;
1914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1916 | --exec=* | --exe=* | --ex=*)
1917 exec_prefix=$ac_optarg ;;
1919 -gas | --gas | --ga | --g)
1920 # Obsolete; use --with-gas.
1923 -help | --help | --hel | --he | -h)
1924 ac_init_help=long ;;
1925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1926 ac_init_help=recursive ;;
1927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1928 ac_init_help=short ;;
1930 -host | --host | --hos | --ho)
1931 ac_prev=host_alias ;;
1932 -host=* | --host=* | --hos=* | --ho=*)
1933 host_alias=$ac_optarg ;;
1935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1939 htmldir=$ac_optarg ;;
1941 -includedir | --includedir | --includedi | --included | --include \
1942 | --includ | --inclu | --incl | --inc)
1943 ac_prev=includedir ;;
1944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1945 | --includ=* | --inclu=* | --incl=* | --inc=*)
1946 includedir=$ac_optarg ;;
1948 -infodir | --infodir | --infodi | --infod | --info | --inf)
1950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1951 infodir=$ac_optarg ;;
1953 -libdir | --libdir | --libdi | --libd)
1955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1956 libdir=$ac_optarg ;;
1958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1959 | --libexe | --libex | --libe)
1960 ac_prev=libexecdir ;;
1961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1962 | --libexe=* | --libex=* | --libe=*)
1963 libexecdir=$ac_optarg ;;
1965 -localedir | --localedir | --localedi | --localed | --locale)
1966 ac_prev=localedir ;;
1967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1968 localedir=$ac_optarg ;;
1970 -localstatedir | --localstatedir | --localstatedi | --localstated \
1971 | --localstate | --localstat | --localsta | --localst | --locals)
1972 ac_prev=localstatedir ;;
1973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1975 localstatedir=$ac_optarg ;;
1977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1980 mandir=$ac_optarg ;;
1982 -nfp | --nfp | --nf)
1983 # Obsolete; use --without-fp.
1986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1987 | --no-cr | --no-c | -n)
1990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1996 | --oldin | --oldi | --old | --ol | --o)
1997 ac_prev=oldincludedir ;;
1998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2001 oldincludedir=$ac_optarg ;;
2003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2006 prefix=$ac_optarg ;;
2008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
2009 | --program-pre | --program-pr | --program-p)
2010 ac_prev=program_prefix ;;
2011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
2012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2013 program_prefix=$ac_optarg ;;
2015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
2016 | --program-suf | --program-su | --program-s)
2017 ac_prev=program_suffix ;;
2018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
2019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2020 program_suffix=$ac_optarg ;;
2022 -program-transform-name | --program-transform-name \
2023 | --program-transform-nam | --program-transform-na \
2024 | --program-transform-n | --program-transform- \
2025 | --program-transform | --program-transfor \
2026 | --program-transfo | --program-transf \
2027 | --program-trans | --program-tran \
2028 | --progr-tra | --program-tr | --program-t)
2029 ac_prev=program_transform_name ;;
2030 -program-transform-name=* | --program-transform-name=* \
2031 | --program-transform-nam=* | --program-transform-na=* \
2032 | --program-transform-n=* | --program-transform-=* \
2033 | --program-transform=* | --program-transfor=* \
2034 | --program-transfo=* | --program-transf=* \
2035 | --program-trans=* | --program-tran=* \
2036 | --progr-tra=* | --program-tr=* | --program-t=*)
2037 program_transform_name=$ac_optarg ;;
2039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2042 pdfdir=$ac_optarg ;;
2044 -psdir | --psdir | --psdi | --psd | --ps)
2046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2050 | -silent | --silent | --silen | --sile | --sil)
2053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2057 sbindir=$ac_optarg ;;
2059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2061 | --sharedst | --shareds | --shared | --share | --shar \
2063 ac_prev=sharedstatedir ;;
2064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2068 sharedstatedir=$ac_optarg ;;
2070 -site | --site | --sit)
2072 -site=* | --site=* | --sit=*)
2075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2078 srcdir=$ac_optarg ;;
2080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2081 | --syscon | --sysco | --sysc | --sys | --sy)
2082 ac_prev=sysconfdir ;;
2083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2085 sysconfdir=$ac_optarg ;;
2087 -target | --target | --targe | --targ | --tar | --ta | --t)
2088 ac_prev=target_alias ;;
2089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2090 target_alias=$ac_optarg ;;
2092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2095 -version | --version | --versio | --versi | --vers | -V)
2096 ac_init_version=: ;;
2099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2100 # Reject names that are not valid shell variable names.
2101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2102 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2103 { (exit 1); exit 1; }; }
2104 ac_useropt_orig=$ac_useropt
2105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2106 case $ac_user_opts in
2110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2111 ac_unrecognized_sep=', ';;
2113 eval with_$ac_useropt=\$ac_optarg ;;
2115 -without-* | --without-*)
2116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2117 # Reject names that are not valid shell variable names.
2118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2119 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2120 { (exit 1); exit 1; }; }
2121 ac_useropt_orig=$ac_useropt
2122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2123 case $ac_user_opts in
2127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2128 ac_unrecognized_sep=', ';;
2130 eval with_$ac_useropt=no ;;
2133 # Obsolete; use --with-x.
2136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2137 | --x-incl | --x-inc | --x-in | --x-i)
2138 ac_prev=x_includes ;;
2139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2141 x_includes=$ac_optarg ;;
2143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2145 ac_prev=x_libraries ;;
2146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2148 x_libraries=$ac_optarg ;;
2150 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
2151 Try \`$0 --help' for more information." >&2
2152 { (exit 1); exit 1; }; }
2156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2157 # Reject names that are not valid shell variable names.
2158 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
2159 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
2160 { (exit 1); exit 1; }; }
2161 eval $ac_envvar=\$ac_optarg
2162 export $ac_envvar ;;
2165 # FIXME: should be removed in autoconf 3.0.
2166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2175 if test -n "$ac_prev"; then
2176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2177 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
2178 { (exit 1); exit 1; }; }
2181 if test -n "$ac_unrecognized_opts"; then
2182 case $enable_option_checking in
2184 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
2185 { (exit 1); exit 1; }; } ;;
2186 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2190 # Check all directory arguments for consistency.
2191 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2192 datadir sysconfdir sharedstatedir localstatedir includedir \
2193 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2194 libdir localedir mandir
2196 eval ac_val=\$$ac_var
2197 # Remove trailing slashes.
2200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2201 eval $ac_var=\$ac_val;;
2203 # Be sure to have absolute directory names.
2205 [\\/$]* | ?:[\\/]* ) continue;;
2206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2208 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
2209 { (exit 1); exit 1; }; }
2212 # There might be people who depend on the old broken behavior: `$host'
2213 # used to hold the argument of --host etc.
2214 # FIXME: To remove some day.
2217 target=$target_alias
2219 # FIXME: To remove some day.
2220 if test "x$host_alias" != x; then
2221 if test "x$build_alias" = x; then
2222 cross_compiling=maybe
2223 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2224 If a cross compiler is detected then cross compile mode will be used." >&2
2225 elif test "x$build_alias" != "x$host_alias"; then
2231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2233 test "$silent" = yes && exec 6>/dev/null
2236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2237 ac_ls_di=`ls -di .` &&
2238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2239 { $as_echo "$as_me: error: working directory cannot be determined" >&2
2240 { (exit 1); exit 1; }; }
2241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2242 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
2243 { (exit 1); exit 1; }; }
2246 # Find the source files, if location was not specified.
2247 if test -z "$srcdir"; then
2248 ac_srcdir_defaulted=yes
2249 # Try the directory containing this script, then the parent directory.
2250 ac_confdir=`$as_dirname -- "$as_myself" ||
2251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2252 X"$as_myself" : 'X\(//\)[^/]' \| \
2253 X"$as_myself" : 'X\(//\)$' \| \
2254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2255 $as_echo X"$as_myself" |
2256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2274 if test ! -r "$srcdir/$ac_unique_file"; then
2278 ac_srcdir_defaulted=no
2280 if test ! -r "$srcdir/$ac_unique_file"; then
2281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2282 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2283 { (exit 1); exit 1; }; }
2285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2287 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
2288 { (exit 1); exit 1; }; }
2290 # When building in place, set srcdir=.
2291 if test "$ac_abs_confdir" = "$ac_pwd"; then
2294 # Remove unnecessary trailing slashes from srcdir.
2295 # Double slashes in file names in object file debugging info
2296 # mess up M-x gdb in Emacs.
2298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2300 for ac_var in $ac_precious_vars; do
2301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2302 eval ac_env_${ac_var}_value=\$${ac_var}
2303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2308 # Report the --help message.
2310 if test "$ac_init_help" = "long"; then
2311 # Omit some internal or obsolete options to make the list less imposing.
2312 # This message is too long to be a string in the A/UX 3.1 sh.
2314 \`configure' configures this package to adapt to many kinds of systems.
2316 Usage: $0 [OPTION]... [VAR=VALUE]...
2318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2319 VAR=VALUE. See below for descriptions of some of the useful variables.
2321 Defaults for the options are specified in brackets.
2324 -h, --help display this help and exit
2325 --help=short display options specific to this package
2326 --help=recursive display the short help of all the included packages
2327 -V, --version display version information and exit
2328 -q, --quiet, --silent do not print \`checking...' messages
2329 --cache-file=FILE cache test results in FILE [disabled]
2330 -C, --config-cache alias for \`--cache-file=config.cache'
2331 -n, --no-create do not create output files
2332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2334 Installation directories:
2335 --prefix=PREFIX install architecture-independent files in PREFIX
2336 [$ac_default_prefix]
2337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2340 By default, \`make install' will install all the files in
2341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2343 for instance \`--prefix=\$HOME'.
2345 For better control, use the options below.
2347 Fine tuning of the installation directories:
2348 --bindir=DIR user executables [EPREFIX/bin]
2349 --sbindir=DIR system admin executables [EPREFIX/sbin]
2350 --libexecdir=DIR program executables [EPREFIX/libexec]
2351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2354 --libdir=DIR object code libraries [EPREFIX/lib]
2355 --includedir=DIR C header files [PREFIX/include]
2356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2359 --infodir=DIR info documentation [DATAROOTDIR/info]
2360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2361 --mandir=DIR man documentation [DATAROOTDIR/man]
2362 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2363 --htmldir=DIR html documentation [DOCDIR]
2364 --dvidir=DIR dvi documentation [DOCDIR]
2365 --pdfdir=DIR pdf documentation [DOCDIR]
2366 --psdir=DIR ps documentation [DOCDIR]
2372 --program-prefix=PREFIX prepend PREFIX to installed program names
2373 --program-suffix=SUFFIX append SUFFIX to installed program names
2374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2377 --build=BUILD configure for building on BUILD [guessed]
2378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2382 if test -n "$ac_init_help"; then
2387 --disable-option-checking ignore unrecognized --enable/--with options
2388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2390 --disable-dependency-tracking speeds up one-time build
2391 --enable-dependency-tracking do not reject slow dependency extractors
2392 --enable-threads={posix|solaris|pth|win32}
2393 specify multithreading API
2394 --disable-threads build without multithread safety
2395 --disable-rpath do not hardcode runtime library paths
2396 --disable-largefile omit support for large files
2397 --disable-installperms do not modify ownership and permissions on installed
2399 --enable-syntax-checks Perform syntax checks when installing - developers
2401 --enable-manpage-build Build the manpages from their XML source (shipped
2402 manpages are usually sufficient)
2403 --disable-nls do not use Native Language Support
2404 --disable-s3-device disable the S3 device
2405 --disable-dvdrw-device disable the DVD-RW device
2406 --disable-ndmp-device disable the NDMP device
2407 --enable-werror To compile with -Werror compiler flag
2408 --enable-swig-error To compile swiged C file with -Werror compiler flag
2409 --enable-shared[=PKGS] build shared libraries [default=yes]
2410 --enable-static[=PKGS] build static libraries [default=yes]
2411 --enable-fast-install[=PKGS]
2412 optimize for fast installation [default=yes]
2413 --disable-libtool-lock avoid locking (might break parallel builds)
2414 --enable-static-binary To build statically linked binaries
2415 --disable-glibtest do not try to compile and run a test GLIB program
2418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2420 --with-gnu-ld assume the C compiler uses GNU ld default=no
2421 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2422 --without-libpth-prefix don't search for libpth in includedir and libdir
2423 --without-included-regex
2424 don't compile regex; this is the default on systems
2425 with recent-enough versions of the GNU C Library
2426 (use with caution on other systems).
2427 --with-cflags=FLAGS deprecated; use ./configure CFLAGS=...
2428 --with-includes=INCLUDE-DIRS
2429 deprecated; use ./configure CPPFLAGS='-I.. -I..'
2430 --with-libraries=LIBRARY-DIRS
2431 deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2432 -R on Solaris, NetBSD)
2433 --with-user=USER force execution to USER on client systems (REQUIRED)
2434 --with-group=GROUP group allowed to execute setuid-root programs
2436 --with-dumperdir=DIR where we install the dumpers (deprecated)
2437 --with-configdir=DIR runtime config files in DIR [sysconfdir/amanda]
2438 --with-indexdir deprecated: use indexdir in amanda.conf
2439 --with-dbdir deprecated: use infofile in amanda.conf
2440 --with-logdir deprecated: use logfile in amanda.conf
2442 --with-gnutar-listdir=DIR
2443 put gnutar directory lists in DIR (default:
2444 localstatedir/amanda/gnutar-lists)
2445 --with-gnutar-listed-incremental
2446 deprecated; use --with-gnutar-listdir
2447 --with-tmpdir directory for temporary and debugging files
2448 (default: /tmp/amanda)
2449 --without-force-uid do not check userids when running programs
2451 force ownership of installed files to USER (default same as --with-user)
2453 --with-fqdn use FQDN's to backup multiple networks
2454 --without-reuseaddr Don't reuse network connections until full timeout
2456 --with-low-tcpportrange=low,high
2457 bind reserved TCP server sockets to ports within
2458 --with-tcpportrange=low,high
2459 bind unreserved TCP server sockets to ports within
2460 --with-udpportrange=low,high
2461 bind reserved UDP server sockets to ports within
2462 --with-buffered-dump buffer the dumping sockets on the server for speed
2464 --with-assertions compile assertions into code
2465 --with-debugging=DIR
2466 put debug logs in DIR (default same as --with-tmpdir)
2468 --with-debug-days=NN number of days to keep debugging files (default: 4)
2469 --with-testing[=SUFFIX] use alternate service names with suffix (default
2471 --with-single-userid
2472 force amanda to run as a single userid (for testing)
2474 --without-server do not build server stuff (set --without-restore)
2475 --without-client do not build client stuff
2476 --without-restore do not build amrestore nor amidxtaped
2477 --without-amrecover do not build amrecover
2478 --with-client-only deprecated: use --without-server
2479 --with-server-only deprecated: use --without-client
2480 --without-ndmp do not build ndmp
2481 --with-gnuplot=PATH use gnuplot executable at PATH in amplot
2482 --with-xsltproc[[[=PATH]]]
2483 Use the xsltproc binary in in PATH.
2484 --with-xsltproc-flags=FLAGS
2485 Flags to pass to xsltproc (default --nonet)
2486 --with-index-server=HOST
2487 default amanda index server (default: `uname -n`)
2488 --with-config=CONFIG default amanda configuration (default: DailySet1)
2489 --with-tape-server=HOST default tape server for restore (default: same as
2491 --with-tape-device=DEVICE
2492 default device on restore tape server
2493 --with-changer-device=DEV
2495 --with-amandates default location for 'amandates' (default:
2496 $localstatedir/amanda/amandates)
2497 --with-perlextlibs=libs extra LIBS for Perl extensions
2498 --with-ipv6 enable IPv6 support (default if IPv6 is found)
2499 --without-ipv6 disable IPv6
2500 --with-amlibdir[[[=PATH]]]
2501 Where library are installed, default: $libdir/amanda
2502 --without-amlibdir Library are installed in $libdir
2503 --with-amlibexecdir[[[=PATH]]]
2504 Where amanda own programs are installed, default:
2506 --without-amlibexecdir Amanda own programs are installed in $libexecdir
2507 --with-amperldir[[[=PATH]]]
2508 Where amanda's perl modules are installed; default:
2510 --without-amperldir Install amanda's perl modules in $amlibdir/perl
2511 --with-amdatadir[[[=PATH]]]
2512 Where amanda's templates and examples are installed;
2513 default: $datadir/amanda
2514 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2515 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2516 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2517 --without-libintl-prefix don't search for libintl in includedir and libdir
2518 --with-libcurl=DIR look for the curl library in DIR
2519 --without-bsd-security do not include BSD authentication
2520 --without-amandahosts use ".rhosts" instead of ".amandahosts"
2521 --with-bsdtcp-security include BSDTCP authentication
2522 --with-bsdudp-security include BSDUDP authentication
2523 --with-rsh-security include RSH authentication
2524 --with-ssh-security include SSH authentication
2525 --with-ssh-options=[OPTIONS]
2526 Use these ssh options for ssh security; the default
2528 --with-krb5-security=DIR
2529 Location of Kerberos V software [/usr/kerberos
2530 /usr/cygnus /usr /opt/kerberos]
2531 --with-dump-honor-nodump
2532 if dump supports -h, use it for level0s too
2533 --with-gnutar=PROG use PROG as GNU 'tar'
2534 --with-star=PROG use PROG as 'star'
2535 --with-smbclient=PROG use PROG as 'smbclient'
2536 --with-samba-user deprecated; place username in 'amandapass'
2537 --with-rundump use rundump, a setuid-root wrapper, to invoke dump
2538 --with-pic try to use only PIC/non-PIC objects [default=use
2540 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2541 --with-readline require readline support (for amrecover)
2542 --without-readline don't search for readline
2544 Some influential environment variables:
2545 CC C compiler command
2546 CFLAGS C compiler flags
2547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2548 nonstandard directory <lib dir>
2549 LIBS libraries to pass to the linker, e.g. -l<library>
2550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2551 you have headers in a nonstandard directory <include dir>
2553 GNUPLOT Location of the 'gnuplot' binary
2554 SWIG Path to the 'swig' binary (developers only)
2555 PERL Path to the 'perl' binary
2556 GNUTAR Location of the GNU 'tar' binary
2557 STAR Location of the 'star' binary
2558 YACC The `Yet Another C Compiler' implementation to use. Defaults to
2559 the first program found out of: `bison -y', `byacc', `yacc'.
2560 YFLAGS The list of arguments that will be passed by default to $YACC.
2561 This script will default YFLAGS to the empty string to avoid a
2562 default value of `-d' given by some make applications.
2563 MTX Path to the 'mtx' binary
2564 GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config
2565 GLIB_LIBS libraries to build with glib; disables use of pkg-config
2567 genmarshal binary to use with glib; disables use of pkg-config
2569 gobject_query binary to use with glib; disables use of
2572 mkenums binary to use with glib; disables use of pkg-config
2573 PKG_CONFIG path to pkg-config utility
2575 Use these variables to override the choices made by `configure' or to help
2576 it to find libraries and programs with nonstandard names/locations.
2582 if test "$ac_init_help" = "recursive"; then
2583 # If there are subdirs, report their specific --help.
2584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2585 test -d "$ac_dir" ||
2586 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2594 # A ".." for each directory in $ac_dir_suffix.
2595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2596 case $ac_top_builddir_sub in
2597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2601 ac_abs_top_builddir=$ac_pwd
2602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2603 # for backward compatibility:
2604 ac_top_builddir=$ac_top_build_prefix
2607 .) # We are building in place.
2609 ac_top_srcdir=$ac_top_builddir_sub
2610 ac_abs_top_srcdir=$ac_pwd ;;
2611 [\\/]* | ?:[\\/]* ) # Absolute name.
2612 ac_srcdir=$srcdir$ac_dir_suffix;
2613 ac_top_srcdir=$srcdir
2614 ac_abs_top_srcdir=$srcdir ;;
2616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2617 ac_top_srcdir=$ac_top_build_prefix$srcdir
2618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2622 cd "$ac_dir" || { ac_status=$?; continue; }
2623 # Check for guested configure.
2624 if test -f "$ac_srcdir/configure.gnu"; then
2626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2627 elif test -f "$ac_srcdir/configure"; then
2629 $SHELL "$ac_srcdir/configure" --help=recursive
2631 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2633 cd "$ac_pwd" || { ac_status=$?; break; }
2637 test -n "$ac_init_help" && exit $ac_status
2638 if $ac_init_version; then
2641 generated by GNU Autoconf 2.63
2643 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2644 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2645 This configure script is free software; the Free Software Foundation
2646 gives unlimited permission to copy, distribute and modify it.
2650 cat >config.log <<_ACEOF
2651 This file contains any messages produced by compilers while
2652 running configure, to aid debugging if configure makes a mistake.
2654 It was created by $as_me, which was
2655 generated by GNU Autoconf 2.63. Invocation command line was
2667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2674 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2676 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2677 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2679 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2680 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2681 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2682 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 $as_echo "PATH: $as_dir"
2707 # Keep a trace of the command line.
2708 # Strip out --no-create and --no-recursion so they do not pile up.
2709 # Strip out --silent because we don't want to record it for future runs.
2710 # Also quote any args containing shell meta-characters.
2711 # Make two passes to allow for proper duplicate-argument suppression.
2715 ac_must_keep_next=false
2721 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2723 | -silent | --silent | --silen | --sile | --sil)
2726 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2729 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2731 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2732 if test $ac_must_keep_next = true; then
2733 ac_must_keep_next=false # Got value, back to normal.
2736 *=* | --config-cache | -C | -disable-* | --disable-* \
2737 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2738 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2739 | -with-* | --with-* | -without-* | --without-* | --x)
2740 case "$ac_configure_args0 " in
2741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2744 -* ) ac_must_keep_next=true ;;
2747 ac_configure_args="$ac_configure_args '$ac_arg'"
2752 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2753 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2755 # When interrupted or exit'd, cleanup temporary files, and complete
2756 # config.log. We remove comments because anyway the quotes in there
2757 # would cause problems or look ugly.
2758 # WARNING: Use '\'' to represent an apostrophe within the trap.
2759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2760 trap 'exit_status=$?
2761 # Save into config.log some information that might help in debugging.
2766 ## ---------------- ##
2767 ## Cache variables. ##
2768 ## ---------------- ##
2771 # The following way of writing the cache mishandles newlines in values,
2773 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2774 eval ac_val=\$$ac_var
2778 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2779 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2782 _ | IFS | as_nl) ;; #(
2783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2784 *) $as_unset $ac_var ;;
2789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2790 *${as_nl}ac_space=\ *)
2792 "s/'\''/'\''\\\\'\'''\''/g;
2793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2804 ## ----------------- ##
2805 ## Output variables. ##
2806 ## ----------------- ##
2809 for ac_var in $ac_subst_vars
2811 eval ac_val=\$$ac_var
2813 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2815 $as_echo "$ac_var='\''$ac_val'\''"
2819 if test -n "$ac_subst_files"; then
2821 ## ------------------- ##
2822 ## File substitutions. ##
2823 ## ------------------- ##
2826 for ac_var in $ac_subst_files
2828 eval ac_val=\$$ac_var
2830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2832 $as_echo "$ac_var='\''$ac_val'\''"
2837 if test -s confdefs.h; then
2847 test "$ac_signal" != 0 &&
2848 $as_echo "$as_me: caught signal $ac_signal"
2849 $as_echo "$as_me: exit $exit_status"
2851 rm -f core *.core core.conftest.* &&
2852 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2855 for ac_signal in 1 2 13 15; do
2856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2861 rm -f -r conftest* confdefs.h
2863 # Predefined preprocessor variables.
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE_NAME "$PACKAGE_NAME"
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_STRING "$PACKAGE_STRING"
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 # Let the site file select an alternate cache file if it wants to.
2891 # Prefer an explicitly selected file to automatically selected ones.
2894 if test -n "$CONFIG_SITE"; then
2895 ac_site_file1=$CONFIG_SITE
2896 elif test "x$prefix" != xNONE; then
2897 ac_site_file1=$prefix/share/config.site
2898 ac_site_file2=$prefix/etc/config.site
2900 ac_site_file1=$ac_default_prefix/share/config.site
2901 ac_site_file2=$ac_default_prefix/etc/config.site
2903 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2905 test "x$ac_site_file" = xNONE && continue
2906 if test -r "$ac_site_file"; then
2907 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2908 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2909 sed 's/^/| /' "$ac_site_file" >&5
2914 if test -r "$cache_file"; then
2915 # Some versions of bash will fail to source /dev/null (special
2916 # files actually), so we avoid doing that.
2917 if test -f "$cache_file"; then
2918 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2919 $as_echo "$as_me: loading cache $cache_file" >&6;}
2921 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2922 *) . "./$cache_file";;
2926 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2927 $as_echo "$as_me: creating cache $cache_file" >&6;}
2931 gl_header_list="$gl_header_list arpa/inet.h"
2932 gl_func_list="$gl_func_list btowc"
2933 gl_header_list="$gl_header_list errno.h"
2934 gl_header_list="$gl_header_list float.h"
2935 gl_header_list="$gl_header_list sys/param.h"
2936 gl_header_list="$gl_header_list sys/vfs.h"
2937 gl_header_list="$gl_header_list sys/fs_types.h"
2938 gl_func_list="$gl_func_list ftruncate"
2939 gl_header_list="$gl_header_list sys/socket.h"
2940 gl_header_list="$gl_header_list netdb.h"
2941 gl_header_list="$gl_header_list netinet/in.h"
2942 gl_getopt_required=GNU
2943 gl_header_list="$gl_header_list getopt.h"
2944 gl_header_list="$gl_header_list sys/time.h"
2945 gl_func_list="$gl_func_list gettimeofday"
2946 gl_header_list="$gl_header_list langinfo.h"
2947 gl_func_list="$gl_func_list lstat"
2948 gl_func_list="$gl_func_list mbsinit"
2949 gl_func_list="$gl_func_list mbrtowc"
2950 gl_header_list="$gl_header_list sys/mman.h"
2951 gl_func_list="$gl_func_list mprotect"
2952 gl_func_list="$gl_func_list memchr"
2953 gl_func_list="$gl_func_list nl_langinfo"
2954 gl_header_list="$gl_header_list locale.h"
2955 gl_func_list="$gl_func_list isblank"
2956 gl_func_list="$gl_func_list iswctype"
2957 gl_func_list="$gl_func_list wcscoll"
2958 gl_header_list="$gl_header_list stddef.h"
2959 gl_header_list="$gl_header_list stdint.h"
2960 gl_header_list="$gl_header_list wchar.h"
2961 gl_header_list="$gl_header_list stdio.h"
2962 gl_header_list="$gl_header_list stdlib.h"
2963 gl_header_list="$gl_header_list string.h"
2964 gl_header_list="$gl_header_list sys/stat.h"
2965 gl_header_list="$gl_header_list time.h"
2966 gl_header_list="$gl_header_list unistd.h"
2967 gl_func_list="$gl_func_list vasnprintf"
2968 gl_func_list="$gl_func_list wcrtomb"
2969 gl_func_list="$gl_func_list iswcntrl"
2970 gl_func_list="$gl_func_list iswblank"
2971 gl_header_list="$gl_header_list wctype.h"
2972 # Check that the precious variables saved in the cache have kept the same
2974 ac_cache_corrupted=false
2975 for ac_var in $ac_precious_vars; do
2976 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2977 eval ac_new_set=\$ac_env_${ac_var}_set
2978 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2979 eval ac_new_val=\$ac_env_${ac_var}_value
2980 case $ac_old_set,$ac_new_set in
2982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2983 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2984 ac_cache_corrupted=: ;;
2986 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2987 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2988 ac_cache_corrupted=: ;;
2991 if test "x$ac_old_val" != "x$ac_new_val"; then
2992 # differences in whitespace do not lead to failure.
2993 ac_old_val_w=`echo x $ac_old_val`
2994 ac_new_val_w=`echo x $ac_new_val`
2995 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2996 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2997 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2998 ac_cache_corrupted=:
3000 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3001 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3002 eval $ac_var=\$ac_old_val
3004 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
3005 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3006 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
3007 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3010 # Pass precious variables to config.status.
3011 if test "$ac_new_set" = set; then
3013 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3014 *) ac_arg=$ac_var=$ac_new_val ;;
3016 case " $ac_configure_args " in
3017 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3018 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
3022 if $ac_cache_corrupted; then
3023 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
3026 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3027 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
3028 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
3029 { (exit 1); exit 1; }; }
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057 for ac_dir in config "$srcdir"/config; do
3058 if test -f "$ac_dir/install-sh"; then
3060 ac_install_sh="$ac_aux_dir/install-sh -c"
3062 elif test -f "$ac_dir/install.sh"; then
3064 ac_install_sh="$ac_aux_dir/install.sh -c"
3066 elif test -f "$ac_dir/shtool"; then
3068 ac_install_sh="$ac_aux_dir/shtool install -c"
3072 if test -z "$ac_aux_dir"; then
3073 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
3074 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
3075 { (exit 1); exit 1; }; }
3078 # These three variables are undocumented and unsupported,
3079 # and are intended to be withdrawn in a future Autoconf release.
3080 # They can cause serious problems if a builder's source tree is in a directory
3081 # whose full name contains unusual characters.
3082 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3083 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3084 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3088 # Make sure we can run config.sub.
3089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3090 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3091 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3092 { (exit 1); exit 1; }; }
3094 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3095 $as_echo_n "checking build system type... " >&6; }
3096 if test "${ac_cv_build+set}" = set; then
3097 $as_echo_n "(cached) " >&6
3099 ac_build_alias=$build_alias
3100 test "x$ac_build_alias" = x &&
3101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3102 test "x$ac_build_alias" = x &&
3103 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3104 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3105 { (exit 1); exit 1; }; }
3106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3107 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3108 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3109 { (exit 1); exit 1; }; }
3112 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3113 $as_echo "$ac_cv_build" >&6; }
3114 case $ac_cv_build in
3116 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3117 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3118 { (exit 1); exit 1; }; };;
3121 ac_save_IFS=$IFS; IFS='-'
3127 # Remember, the first character of IFS is used to create $*,
3128 # except with old shells:
3131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3134 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3135 $as_echo_n "checking host system type... " >&6; }
3136 if test "${ac_cv_host+set}" = set; then
3137 $as_echo_n "(cached) " >&6
3139 if test "x$host_alias" = x; then
3140 ac_cv_host=$ac_cv_build
3142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3143 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3144 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3145 { (exit 1); exit 1; }; }
3149 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3150 $as_echo "$ac_cv_host" >&6; }
3153 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3154 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3155 { (exit 1); exit 1; }; };;
3158 ac_save_IFS=$IFS; IFS='-'
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3176 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3177 # expand prefix or exec_prefix in LOCPATH
3179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3180 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3181 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3183 SYSLOCPATH="$SYSPATH:$LOCPATH"
3184 LOCSYSPATH="$LOCPATH:$SYSPATH"
3188 # Extract the first word of "grep", so it can be a program name with args.
3189 set dummy grep; ac_word=$2
3190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_path_GREP+set}" = set; then
3193 $as_echo_n "(cached) " >&6
3197 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $LOCSYSPATH
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3219 GREP=$ac_cv_path_GREP
3220 if test -n "$GREP"; then
3221 { $as_echo "$as_me:$LINENO: result: $GREP" >&5
3222 $as_echo "$GREP" >&6; }
3224 { $as_echo "$as_me:$LINENO: result: no" >&5
3225 $as_echo "no" >&6; }
3230 cat >>confdefs.h <<_ACEOF
3231 #define GREP "$GREP"
3240 # Extract the first word of "svn", so it can be a program name with args.
3241 set dummy svn; ac_word=$2
3242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_path_SVN+set}" = set; then
3245 $as_echo_n "(cached) " >&6
3249 ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $LOCSYSPATH
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$SVN"; then
3272 { $as_echo "$as_me:$LINENO: result: $SVN" >&5
3273 $as_echo "$SVN" >&6; }
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3280 { $as_echo "$as_me:$LINENO: checking Subversion revision information" >&5
3281 $as_echo_n "checking Subversion revision information... " >&6; }
3282 if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3283 SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3284 SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3285 SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3286 SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3287 SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3288 url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3289 ( echo '#define BUILT_REV "'$SVN_REV'"'
3290 echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3291 ) > common-src/svn-info.h
3293 { $as_echo "$as_me:$LINENO: result: updated" >&5
3294 $as_echo "updated" >&6; }
3296 # Makefiles will be upset if the file doesn't exist, so double-check
3297 if test -f common-src/svn-info.h; then
3299 { $as_echo "$as_me:$LINENO: result: not changed" >&5
3300 $as_echo "not changed" >&6; }
3302 echo '/* no information available */' > common-src/svn-info.h
3303 { $as_echo "$as_me:$LINENO: result: not available" >&5
3304 $as_echo "not available" >&6; }
3314 # Extract the first word of "git", so it can be a program name with args.
3315 set dummy git; ac_word=$2
3316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if test "${ac_cv_path_GIT+set}" = set; then
3319 $as_echo_n "(cached) " >&6
3323 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $LOCSYSPATH
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 if test -n "$GIT"; then
3346 { $as_echo "$as_me:$LINENO: result: $GIT" >&5
3347 $as_echo "$GIT" >&6; }
3349 { $as_echo "$as_me:$LINENO: result: no" >&5
3350 $as_echo "no" >&6; }
3354 { $as_echo "$as_me:$LINENO: checking git revision information" >&5
3355 $as_echo_n "checking git revision information... " >&6; }
3356 if test -d $srcdir/.git -a -n "$GIT"; then
3357 GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3358 if test -n "$GIT_SHA1"; then
3359 { $as_echo "$as_me:$LINENO: result: $GIT_SHA1" >&5
3360 $as_echo "$GIT_SHA1" >&6; }
3362 { $as_echo "$as_me:$LINENO: result: 'git rev-parse HEAD' failed" >&5
3363 $as_echo "'git rev-parse HEAD' failed" >&6; }
3366 { $as_echo "$as_me:$LINENO: result: not available" >&5
3367 $as_echo "not available" >&6; }
3373 if test -f FULL_VERSION; then
3374 VERSION=`cat FULL_VERSION`
3375 else if test -f $srcdir/FULL_VERSION; then
3376 VERSION=`cat $srcdir/FULL_VERSION`
3378 VERSION=`cat $srcdir/VERSION`
3381 { $as_echo "$as_me:$LINENO: \"version: $VERSION\"" >&5
3382 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3384 am__api_version='1.11'
3386 # Find a good install program. We prefer a C program (faster),
3387 # so one script is as good as another. But avoid the broken or
3388 # incompatible versions:
3389 # SysV /etc/install, /usr/sbin/install
3390 # SunOS /usr/etc/install
3391 # IRIX /sbin/install
3393 # AmigaOS /C/install, which installs bootblocks on floppy discs
3394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3397 # OS/2's system install, which has a completely different semantic
3398 # ./install, which can be erroneously created by make from ./install.sh.
3399 # Reject install programs that cannot install multiple files.
3400 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3401 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3402 if test -z "$INSTALL"; then
3403 if test "${ac_cv_path_install+set}" = set; then
3404 $as_echo_n "(cached) " >&6
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 # Account for people who put trailing slashes in PATH elements.
3413 ./ | .// | /cC/* | \
3414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3415 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3418 # OSF1 and SCO ODT 3.0 have their own names for install.
3419 # Don't use installbsd from OSF since it installs stuff as root
3421 for ac_prog in ginstall scoinst install; do
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3424 if test $ac_prog = install &&
3425 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3426 # AIX install. It has an incompatible calling convention.
3428 elif test $ac_prog = install &&
3429 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3430 # program-specific install script used by HP pwplus--don't use.
3433 rm -rf conftest.one conftest.two conftest.dir
3434 echo one > conftest.one
3435 echo two > conftest.two
3437 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3438 test -s conftest.one && test -s conftest.two &&
3439 test -s conftest.dir/conftest.one &&
3440 test -s conftest.dir/conftest.two
3442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3455 rm -rf conftest.one conftest.two conftest.dir
3458 if test "${ac_cv_path_install+set}" = set; then
3459 INSTALL=$ac_cv_path_install
3461 # As a last resort, use the slow shell script. Don't cache a
3462 # value for INSTALL within a source directory, because that will
3463 # break other packages using the cache if that directory is
3464 # removed, or if the value is a relative name.
3465 INSTALL=$ac_install_sh
3468 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3469 $as_echo "$INSTALL" >&6; }
3471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3472 # It thinks the first close brace ends the variable substitution.
3473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3479 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3480 $as_echo_n "checking whether build environment is sane... " >&6; }
3483 echo timestamp > conftest.file
3484 # Reject unsafe characters in $srcdir or the absolute working directory
3485 # name. Accept space and tab only in the latter.
3489 *[\\\"\#\$\&\'\`$am_lf]*)
3490 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3491 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3492 { (exit 1); exit 1; }; };;
3495 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3496 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3497 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3498 { (exit 1); exit 1; }; };;
3501 # Do `set' in a subshell so we don't clobber the current shell's
3502 # arguments. Must try -L first in case configure is actually a
3503 # symlink; some systems play weird games with the mod time of symlinks
3504 # (eg FreeBSD returns the mod time of the symlink's containing
3507 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3508 if test "$*" = "X"; then
3510 set X `ls -t "$srcdir/configure" conftest.file`
3513 if test "$*" != "X $srcdir/configure conftest.file" \
3514 && test "$*" != "X conftest.file $srcdir/configure"; then
3516 # If neither matched, then we have a broken ls. This can happen
3517 # if, for instance, CONFIG_SHELL is bash and it inherits a
3518 # broken ls alias from the environment. This has actually
3519 # happened. Such a system could not be considered "sane".
3520 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3521 alias in your environment" >&5
3522 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3523 alias in your environment" >&2;}
3524 { (exit 1); exit 1; }; }
3527 test "$2" = conftest.file
3533 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3534 Check your system clock" >&5
3535 $as_echo "$as_me: error: newly created file is older than distributed files!
3536 Check your system clock" >&2;}
3537 { (exit 1); exit 1; }; }
3539 { $as_echo "$as_me:$LINENO: result: yes" >&5
3540 $as_echo "yes" >&6; }
3541 test "$program_prefix" != NONE &&
3542 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3543 # Use a double $ so make ignores it.
3544 test "$program_suffix" != NONE &&
3545 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3546 # Double any \ or $.
3547 # By default was `s,x,x', remove it if useless.
3548 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3549 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3551 # expand $ac_aux_dir to an absolute path
3552 am_aux_dir=`cd $ac_aux_dir && pwd`
3554 if test x"${MISSING+set}" != xset; then
3557 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3559 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3562 # Use eval to expand $SHELL
3563 if eval "$MISSING --run true"; then
3564 am_missing_run="$MISSING --run "
3567 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3568 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3571 if test x"${install_sh}" != xset; then
3574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3576 install_sh="\${SHELL} $am_aux_dir/install-sh"
3580 # Installed binaries are usually stripped using `strip' when the user
3581 # run `make install-strip'. However `strip' might not be the right
3582 # tool to use in cross-compilation environments, therefore Automake
3583 # will honor the `STRIP' environment variable to overrule this program.
3584 if test "$cross_compiling" != no; then
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}strip; ac_word=$2
3588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_STRIP+set}" = set; then
3591 $as_echo_n "(cached) " >&6
3593 if test -n "$STRIP"; then
3594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 STRIP=$ac_cv_prog_STRIP
3614 if test -n "$STRIP"; then
3615 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3616 $as_echo "$STRIP" >&6; }
3618 { $as_echo "$as_me:$LINENO: result: no" >&5
3619 $as_echo "no" >&6; }
3624 if test -z "$ac_cv_prog_STRIP"; then
3626 # Extract the first word of "strip", so it can be a program name with args.
3627 set dummy strip; ac_word=$2
3628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$ac_ct_STRIP"; then
3634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_ac_ct_STRIP="strip"
3644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3654 if test -n "$ac_ct_STRIP"; then
3655 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3656 $as_echo "$ac_ct_STRIP" >&6; }
3658 { $as_echo "$as_me:$LINENO: result: no" >&5
3659 $as_echo "no" >&6; }
3662 if test "x$ac_ct_STRIP" = x; then
3665 case $cross_compiling:$ac_tool_warned in
3667 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3669 ac_tool_warned=yes ;;
3674 STRIP="$ac_cv_prog_STRIP"
3678 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3680 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3681 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3682 if test -z "$MKDIR_P"; then
3683 if test "${ac_cv_path_mkdir+set}" = set; then
3684 $as_echo_n "(cached) " >&6
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3690 test -z "$as_dir" && as_dir=.
3691 for ac_prog in mkdir gmkdir; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3694 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3695 'mkdir (GNU coreutils) '* | \
3696 'mkdir (coreutils) '* | \
3697 'mkdir (fileutils) '4.1*)
3698 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3708 if test "${ac_cv_path_mkdir+set}" = set; then
3709 MKDIR_P="$ac_cv_path_mkdir -p"
3711 # As a last resort, use the slow shell script. Don't cache a
3712 # value for MKDIR_P within a source directory, because that will
3713 # break other packages using the cache if that directory is
3714 # removed, or if the value is a relative name.
3715 test -d ./--version && rmdir ./--version
3716 MKDIR_P="$ac_install_sh -d"
3719 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3720 $as_echo "$MKDIR_P" >&6; }
3725 [\\/$]* | ?:[\\/]*) ;;
3726 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3729 for ac_prog in gawk mawk nawk awk
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_AWK+set}" = set; then
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$AWK"; then
3739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_AWK="$ac_prog"
3749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 if test -n "$AWK"; then
3760 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3761 $as_echo "$AWK" >&6; }
3763 { $as_echo "$as_me:$LINENO: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$AWK" && break
3771 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3772 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3774 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3775 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3776 $as_echo_n "(cached) " >&6
3778 cat >conftest.make <<\_ACEOF
3781 @echo '@@@%%%=$(MAKE)=@@@%%%'
3783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3784 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3786 eval ac_cv_prog_make_${ac_make}_set=yes;;
3788 eval ac_cv_prog_make_${ac_make}_set=no;;
3792 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3793 { $as_echo "$as_me:$LINENO: result: yes" >&5
3794 $as_echo "yes" >&6; }
3797 { $as_echo "$as_me:$LINENO: result: no" >&5
3798 $as_echo "no" >&6; }
3799 SET_MAKE="MAKE=${MAKE-make}"
3802 rm -rf .tst 2>/dev/null
3803 mkdir .tst 2>/dev/null
3804 if test -d .tst; then
3809 rmdir .tst 2>/dev/null
3811 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3812 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3813 # is not polluted with repeated "-I."
3814 am__isrc=' -I$(srcdir)'
3815 # test to see if srcdir already configured
3816 if test -f $srcdir/config.status; then
3817 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3818 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3819 { (exit 1); exit 1; }; }
3823 # test whether we have cygpath
3824 if test -z "$CYGPATH_W"; then
3825 if (cygpath --version) >/dev/null 2>/dev/null; then
3826 CYGPATH_W='cygpath -w'
3833 # Define the identity of the package.
3838 cat >>confdefs.h <<_ACEOF
3839 #define PACKAGE "$PACKAGE"
3843 cat >>confdefs.h <<_ACEOF
3844 #define VERSION "$VERSION"
3847 # Some tools Automake needs.
3849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3863 # We need awk for the "check" target. The system "awk" is bad on
3865 # Always define AMTAR for backward compatibility.
3867 AMTAR=${AMTAR-"${am_missing_run}tar"}
3869 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3875 ac_config_headers="$ac_config_headers config/config.h"
3881 # Take care of some early Amanda-specific setup
3884 # initialize warnings file
3885 rm -f config.warnings
3888 if test -f "$srcdir/SNAPSHOT"; then
3889 cat < "$srcdir/SNAPSHOT"
3891 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3893 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3894 SNAPSHOT_STAMP=SNAPSHOT
3902 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3903 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3904 if test -z "$VERSION_MINOR"; then
3907 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
3909 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3910 if test -z "$VERSION_PATCH"; then
3912 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
3914 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3925 cat >>confdefs.h <<_ACEOF
3926 #define VERSION_MAJOR $VERSION_MAJOR
3930 cat >>confdefs.h <<_ACEOF
3931 #define VERSION_MINOR $VERSION_MINOR
3935 cat >>confdefs.h <<_ACEOF
3936 #define VERSION_PATCH $VERSION_PATCH
3940 cat >>confdefs.h <<_ACEOF
3941 #define VERSION_COMMENT $VERSION_COMMENT
3946 if test -f config.local; then
3947 echo "running local script ./config.local"
3953 # Set up compiler location, basic flags, and include locations
3954 # and library locations before we start checking the system
3955 # configuration in more detail...
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3965 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if test "${ac_cv_prog_CC+set}" = set; then
3968 $as_echo_n "(cached) " >&6
3970 if test -n "$CC"; then
3971 ac_cv_prog_CC="$CC" # Let the user override the test.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 if test -n "$CC"; then
3992 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3995 { $as_echo "$as_me:$LINENO: result: no" >&5
3996 $as_echo "no" >&6; }
4001 if test -z "$ac_cv_prog_CC"; then
4003 # Extract the first word of "gcc", so it can be a program name with args.
4004 set dummy gcc; ac_word=$2
4005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4008 $as_echo_n "(cached) " >&6
4010 if test -n "$ac_ct_CC"; then
4011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4020 ac_cv_prog_ac_ct_CC="gcc"
4021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4031 if test -n "$ac_ct_CC"; then
4032 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4033 $as_echo "$ac_ct_CC" >&6; }
4035 { $as_echo "$as_me:$LINENO: result: no" >&5
4036 $as_echo "no" >&6; }
4039 if test "x$ac_ct_CC" = x; then
4042 case $cross_compiling:$ac_tool_warned in
4044 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4046 ac_tool_warned=yes ;;
4054 if test -z "$CC"; then
4055 if test -n "$ac_tool_prefix"; then
4056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4057 set dummy ${ac_tool_prefix}cc; ac_word=$2
4058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if test "${ac_cv_prog_CC+set}" = set; then
4061 $as_echo_n "(cached) " >&6
4063 if test -n "$CC"; then
4064 ac_cv_prog_CC="$CC" # Let the user override the test.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4073 ac_cv_prog_CC="${ac_tool_prefix}cc"
4074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 if test -n "$CC"; then
4085 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4086 $as_echo "$CC" >&6; }
4088 { $as_echo "$as_me:$LINENO: result: no" >&5
4089 $as_echo "no" >&6; }
4095 if test -z "$CC"; then
4096 # Extract the first word of "cc", so it can be a program name with args.
4097 set dummy cc; ac_word=$2
4098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if test "${ac_cv_prog_CC+set}" = set; then
4101 $as_echo_n "(cached) " >&6
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4115 ac_prog_rejected=yes
4119 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 if test $ac_prog_rejected = yes; then
4127 # We found a bogon in the path, so make sure we never use it.
4128 set dummy $ac_cv_prog_CC
4130 if test $# != 0; then
4131 # We chose a different compiler from the bogus one.
4132 # However, it has the same basename, so the bogon will be chosen
4133 # first if we set CC to just the basename; use the full file name.
4135 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4141 if test -n "$CC"; then
4142 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4143 $as_echo "$CC" >&6; }
4145 { $as_echo "$as_me:$LINENO: result: no" >&5
4146 $as_echo "no" >&6; }
4151 if test -z "$CC"; then
4152 if test -n "$ac_tool_prefix"; then
4153 for ac_prog in cl.exe
4155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if test "${ac_cv_prog_CC+set}" = set; then
4160 $as_echo_n "(cached) " >&6
4162 if test -n "$CC"; then
4163 ac_cv_prog_CC="$CC" # Let the user override the test.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 if test -n "$CC"; then
4184 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4185 $as_echo "$CC" >&6; }
4187 { $as_echo "$as_me:$LINENO: result: no" >&5
4188 $as_echo "no" >&6; }
4192 test -n "$CC" && break
4195 if test -z "$CC"; then
4197 for ac_prog in cl.exe
4199 # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4204 $as_echo_n "(cached) " >&6
4206 if test -n "$ac_ct_CC"; then
4207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_ac_ct_CC="$ac_prog"
4217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4227 if test -n "$ac_ct_CC"; then
4228 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4229 $as_echo "$ac_ct_CC" >&6; }
4231 { $as_echo "$as_me:$LINENO: result: no" >&5
4232 $as_echo "no" >&6; }
4236 test -n "$ac_ct_CC" && break
4239 if test "x$ac_ct_CC" = x; then
4242 case $cross_compiling:$ac_tool_warned in
4244 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246 ac_tool_warned=yes ;;
4255 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4257 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4258 See \`config.log' for more details." >&5
4259 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4260 See \`config.log' for more details." >&2;}
4261 { (exit 1); exit 1; }; }; }
4263 # Provide some information about the compiler.
4264 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4267 { (ac_try="$ac_compiler --version >&5"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4273 $as_echo "$ac_try_echo") >&5
4274 (eval "$ac_compiler --version >&5") 2>&5
4276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }
4278 { (ac_try="$ac_compiler -v >&5"
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4284 $as_echo "$ac_try_echo") >&5
4285 (eval "$ac_compiler -v >&5") 2>&5
4287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }
4289 { (ac_try="$ac_compiler -V >&5"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4295 $as_echo "$ac_try_echo") >&5
4296 (eval "$ac_compiler -V >&5") 2>&5
4298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4316 ac_clean_files_save=$ac_clean_files
4317 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4318 # Try to create an executable without -o first, disregard a.out.
4319 # It will help us diagnose broken compilers, and finding out an intuition
4321 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4322 $as_echo_n "checking for C compiler default output file name... " >&6; }
4323 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4325 # The possible output files:
4326 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4329 for ac_file in $ac_files
4332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4333 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4338 if { (ac_try="$ac_link_default"
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4344 $as_echo "$ac_try_echo") >&5
4345 (eval "$ac_link_default") 2>&5
4347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; then
4349 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4351 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4352 # so that the user can short-circuit this test for compilers unknown to
4354 for ac_file in $ac_files ''
4356 test -f "$ac_file" || continue
4358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4361 # We found the default executable, but exeext='' is most
4365 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4367 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4369 # We set ac_cv_exeext here because the later test for it is not
4370 # safe: cross compilers may not add the suffix if given an `-o'
4371 # argument, so we may need to know it at that point already.
4372 # Even if this section looks crufty: it has the advantage of
4379 test "$ac_cv_exeext" = no && ac_cv_exeext=
4385 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4386 $as_echo "$ac_file" >&6; }
4387 if test -z "$ac_file"; then
4388 $as_echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4393 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4394 See \`config.log' for more details." >&5
4395 $as_echo "$as_me: error: C compiler cannot create executables
4396 See \`config.log' for more details." >&2;}
4397 { (exit 77); exit 77; }; }; }
4400 ac_exeext=$ac_cv_exeext
4402 # Check that the compiler produces executables we can run. If not, either
4403 # the compiler is broken, or we cross compile.
4404 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4405 $as_echo_n "checking whether the C compiler works... " >&6; }
4406 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4407 # If not cross compiling, check that we can run a simple program.
4408 if test "$cross_compiling" != yes; then
4409 if { ac_try='./$ac_file'
4410 { (case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4415 $as_echo "$ac_try_echo") >&5
4416 (eval "$ac_try") 2>&5
4418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4422 if test "$cross_compiling" = maybe; then
4425 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4428 If you meant to cross compile, use \`--host'.
4429 See \`config.log' for more details." >&5
4430 $as_echo "$as_me: error: cannot run C compiled programs.
4431 If you meant to cross compile, use \`--host'.
4432 See \`config.log' for more details." >&2;}
4433 { (exit 1); exit 1; }; }; }
4437 { $as_echo "$as_me:$LINENO: result: yes" >&5
4438 $as_echo "yes" >&6; }
4440 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4441 ac_clean_files=$ac_clean_files_save
4442 # Check that the compiler produces executables we can run. If not, either
4443 # the compiler is broken, or we cross compile.
4444 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4445 $as_echo_n "checking whether we are cross compiling... " >&6; }
4446 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4447 $as_echo "$cross_compiling" >&6; }
4449 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4450 $as_echo_n "checking for suffix of executables... " >&6; }
4451 if { (ac_try="$ac_link"
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4457 $as_echo "$ac_try_echo") >&5
4458 (eval "$ac_link") 2>&5
4460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; then
4462 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4463 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4464 # work properly (i.e., refer to `conftest.exe'), while it won't with
4466 for ac_file in conftest.exe conftest conftest.*; do
4467 test -f "$ac_file" || continue
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4476 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4479 See \`config.log' for more details." >&5
4480 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4481 See \`config.log' for more details." >&2;}
4482 { (exit 1); exit 1; }; }; }
4485 rm -f conftest$ac_cv_exeext
4486 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4487 $as_echo "$ac_cv_exeext" >&6; }
4489 rm -f conftest.$ac_ext
4490 EXEEXT=$ac_cv_exeext
4492 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4493 $as_echo_n "checking for suffix of object files... " >&6; }
4494 if test "${ac_cv_objext+set}" = set; then
4495 $as_echo_n "(cached) " >&6
4497 cat >conftest.$ac_ext <<_ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4512 rm -f conftest.o conftest.obj
4513 if { (ac_try="$ac_compile"
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4519 $as_echo "$ac_try_echo") >&5
4520 (eval "$ac_compile") 2>&5
4522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; then
4524 for ac_file in conftest.o conftest.obj conftest.*; do
4525 test -f "$ac_file" || continue;
4527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4528 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4533 $as_echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4536 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4539 See \`config.log' for more details." >&5
4540 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4541 See \`config.log' for more details." >&2;}
4542 { (exit 1); exit 1; }; }; }
4545 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4547 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4548 $as_echo "$ac_cv_objext" >&6; }
4549 OBJEXT=$ac_cv_objext
4551 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4552 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4553 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4554 $as_echo_n "(cached) " >&6
4556 cat >conftest.$ac_ext <<_ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4574 rm -f conftest.$ac_objext
4575 if { (ac_try="$ac_compile"
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4581 $as_echo "$ac_try_echo") >&5
4582 (eval "$ac_compile") 2>conftest.er1
4584 grep -v '^ *+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } && {
4589 test -z "$ac_c_werror_flag" ||
4590 test ! -s conftest.err
4591 } && test -s conftest.$ac_objext; then
4594 $as_echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4604 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4605 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4606 if test $ac_compiler_gnu = yes; then
4611 ac_test_CFLAGS=${CFLAGS+set}
4612 ac_save_CFLAGS=$CFLAGS
4613 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4614 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4615 if test "${ac_cv_prog_cc_g+set}" = set; then
4616 $as_echo_n "(cached) " >&6
4618 ac_save_c_werror_flag=$ac_c_werror_flag
4619 ac_c_werror_flag=yes
4622 cat >conftest.$ac_ext <<_ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4637 rm -f conftest.$ac_objext
4638 if { (ac_try="$ac_compile"
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4644 $as_echo "$ac_try_echo") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
4657 $as_echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4661 cat >conftest.$ac_ext <<_ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4683 $as_echo "$ac_try_echo") >&5
4684 (eval "$ac_compile") 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && {
4691 test -z "$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4693 } && test -s conftest.$ac_objext; then
4696 $as_echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 ac_c_werror_flag=$ac_save_c_werror_flag
4701 cat >conftest.$ac_ext <<_ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4716 rm -f conftest.$ac_objext
4717 if { (ac_try="$ac_compile"
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4723 $as_echo "$ac_try_echo") >&5
4724 (eval "$ac_compile") 2>conftest.er1
4726 grep -v '^ *+' conftest.er1 >conftest.err
4728 cat conftest.err >&5
4729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } && {
4731 test -z "$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4733 } && test -s conftest.$ac_objext; then
4736 $as_echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 ac_c_werror_flag=$ac_save_c_werror_flag
4751 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4752 $as_echo "$ac_cv_prog_cc_g" >&6; }
4753 if test "$ac_test_CFLAGS" = set; then
4754 CFLAGS=$ac_save_CFLAGS
4755 elif test $ac_cv_prog_cc_g = yes; then
4756 if test "$GCC" = yes; then
4762 if test "$GCC" = yes; then
4768 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4769 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4770 if test "${ac_cv_prog_cc_c89+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4773 ac_cv_prog_cc_c89=no
4775 cat >conftest.$ac_ext <<_ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4783 #include <sys/types.h>
4784 #include <sys/stat.h>
4785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4786 struct buf { int x; };
4787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4788 static char *e (p, i)
4794 static char *f (char * (*g) (char **, int), char **p, ...)
4799 s = g (p, va_arg (v,int));
4804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4805 function prototypes and stuff, but not '\xHH' hex character constants.
4806 These don't provoke an error unfortunately, instead are silently treated
4807 as 'x'. The following induces an error, until -std is added to get
4808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4809 array size at least. It's necessary to write '\x00'==0 to get something
4810 that's true only with -std. */
4811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4813 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4814 inside strings and character constants. */
4816 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4818 int test (int i, double x);
4819 struct s1 {int (*f) (int a);};
4820 struct s2 {int (*f) (double a);};
4821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4835 CC="$ac_save_CC $ac_arg"
4836 rm -f conftest.$ac_objext
4837 if { (ac_try="$ac_compile"
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4843 $as_echo "$ac_try_echo") >&5
4844 (eval "$ac_compile") 2>conftest.er1
4846 grep -v '^ *+' conftest.er1 >conftest.err
4848 cat conftest.err >&5
4849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } && {
4851 test -z "$ac_c_werror_flag" ||
4852 test ! -s conftest.err
4853 } && test -s conftest.$ac_objext; then
4854 ac_cv_prog_cc_c89=$ac_arg
4856 $as_echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4862 rm -f core conftest.err conftest.$ac_objext
4863 test "x$ac_cv_prog_cc_c89" != "xno" && break
4865 rm -f conftest.$ac_ext
4870 case "x$ac_cv_prog_cc_c89" in
4872 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4873 $as_echo "none needed" >&6; } ;;
4875 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4876 $as_echo "unsupported" >&6; } ;;
4878 CC="$CC $ac_cv_prog_cc_c89"
4879 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4880 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4885 ac_cpp='$CPP $CPPFLAGS'
4886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4889 DEPDIR="${am__leading_dot}deps"
4891 ac_config_commands="$ac_config_commands depfiles"
4894 am_make=${MAKE-make}
4895 cat > confinc << 'END'
4897 @echo this is the am__doit target
4900 # If we don't find an include directive, just comment out the code.
4901 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4902 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4906 # First try GNU make style include.
4907 echo "include confinc" > confmf
4908 # Ignore all kinds of additional output from `make'.
4909 case `$am_make -s -f confmf 2> /dev/null` in #(
4910 *the\ am__doit\ target*)
4916 # Now try BSD make style include.
4917 if test "$am__include" = "#"; then
4918 echo '.include "confinc"' > confmf
4919 case `$am_make -s -f confmf 2> /dev/null` in #(
4920 *the\ am__doit\ target*)
4921 am__include=.include
4929 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4930 $as_echo "$_am_result" >&6; }
4931 rm -f confinc confmf
4933 # Check whether --enable-dependency-tracking was given.
4934 if test "${enable_dependency_tracking+set}" = set; then
4935 enableval=$enable_dependency_tracking;
4938 if test "x$enable_dependency_tracking" != xno; then
4939 am_depcomp="$ac_aux_dir/depcomp"
4942 if test "x$enable_dependency_tracking" != xno; then
4952 depcc="$CC" am_compiler_list=
4954 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4955 $as_echo_n "checking dependency style of $depcc... " >&6; }
4956 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4957 $as_echo_n "(cached) " >&6
4959 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4960 # We make a subdir and do the tests there. Otherwise we can end up
4961 # making bogus files that we don't know about and never remove. For
4962 # instance it was reported that on HP-UX the gcc test will end up
4963 # making a dummy file named `D' -- because `-MD' means `put the output
4966 # Copy depcomp to subdir because otherwise we won't find it if we're
4967 # using a relative directory.
4968 cp "$am_depcomp" conftest.dir
4970 # We will build objects and dependencies in a subdirectory because
4971 # it helps to detect inapplicable dependency modes. For instance
4972 # both Tru64's cc and ICC support -MD to output dependencies as a
4973 # side effect of compilation, but ICC will put the dependencies in
4974 # the current directory while Tru64 will put them in the object
4978 am_cv_CC_dependencies_compiler_type=none
4979 if test "$am_compiler_list" = ""; then
4980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4983 case " $depcc " in #(
4984 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4987 for depmode in $am_compiler_list; do
4988 # Setup a source with many dependencies, because some compilers
4989 # like to wrap large dependency lists on column 80 (with \), and
4990 # we should not choose a depcomp mode which is confused by this.
4992 # We need to recreate these files for each test, as the compiler may
4993 # overwrite some of them when testing with obscure command lines.
4994 # This happens at least with the AIX C compiler.
4996 for i in 1 2 3 4 5 6; do
4997 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4998 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4999 # Solaris 8's {/usr,}/bin/sh.
5000 touch sub/conftst$i.h
5002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5005 # mode. It turns out that the SunPro C++ compiler does not properly
5006 # handle `-M -o', and we need to detect this. Also, some Intel
5007 # versions had trouble with output in subdirs
5008 am__obj=sub/conftest.${OBJEXT-o}
5009 am__minus_obj="-o $am__obj"
5012 # This depmode causes a compiler race in universal mode.
5013 test "$am__universal" = false || continue
5016 # after this tag, mechanisms are not by side-effect, so they'll
5017 # only be used when explicitly requested
5018 if test "x$enable_dependency_tracking" = xyes; then
5024 msvisualcpp | msvcmsys)
5025 # This compiler won't grok `-c -o', but also, the minuso test has
5026 # not run yet. These depmodes are late enough in the game, and
5027 # so weak that their functioning should not be impacted.
5028 am__obj=conftest.${OBJEXT-o}
5033 if depmode=$depmode \
5034 source=sub/conftest.c object=$am__obj \
5035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5036 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5037 >/dev/null 2>conftest.err &&
5038 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5039 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5040 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5041 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5042 # icc doesn't choke on unknown options, it will just issue warnings
5043 # or remarks (even with -Werror). So we grep stderr for any message
5044 # that says an option was ignored or not supported.
5045 # When given -MP, icc 7.0 and 7.1 complain thusly:
5046 # icc: Command line warning: ignoring option '-M'; no argument required
5047 # The diagnosis changed in icc 8.0:
5048 # icc: Command line remark: option '-MP' not supported
5049 if (grep 'ignoring option' conftest.err ||
5050 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5051 am_cv_CC_dependencies_compiler_type=$depmode
5060 am_cv_CC_dependencies_compiler_type=none
5064 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5065 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5066 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5069 test "x$enable_dependency_tracking" != xno \
5070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5072 am__fastdepCC_FALSE='#'
5074 am__fastdepCC_TRUE='#'
5075 am__fastdepCC_FALSE=
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_RANLIB+set}" = set; then
5085 $as_echo_n "(cached) " >&6
5087 if test -n "$RANLIB"; then
5088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 RANLIB=$ac_cv_prog_RANLIB
5108 if test -n "$RANLIB"; then
5109 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5110 $as_echo "$RANLIB" >&6; }
5112 { $as_echo "$as_me:$LINENO: result: no" >&5
5113 $as_echo "no" >&6; }
5118 if test -z "$ac_cv_prog_RANLIB"; then
5119 ac_ct_RANLIB=$RANLIB
5120 # Extract the first word of "ranlib", so it can be a program name with args.
5121 set dummy ranlib; ac_word=$2
5122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5125 $as_echo_n "(cached) " >&6
5127 if test -n "$ac_ct_RANLIB"; then
5128 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_ac_ct_RANLIB="ranlib"
5138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5148 if test -n "$ac_ct_RANLIB"; then
5149 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5150 $as_echo "$ac_ct_RANLIB" >&6; }
5152 { $as_echo "$as_me:$LINENO: result: no" >&5
5153 $as_echo "no" >&6; }
5156 if test "x$ac_ct_RANLIB" = x; then
5159 case $cross_compiling:$ac_tool_warned in
5161 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163 ac_tool_warned=yes ;;
5165 RANLIB=$ac_ct_RANLIB
5168 RANLIB="$ac_cv_prog_RANLIB"
5171 if test "x$CC" != xcc; then
5172 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5173 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5175 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5176 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5178 set dummy $CC; ac_cc=`$as_echo "$2" |
5179 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5180 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5181 $as_echo_n "(cached) " >&6
5183 cat >conftest.$ac_ext <<_ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5198 # Make sure it works both with $CC and with simple cc.
5199 # We do the test twice because some compilers refuse to overwrite an
5200 # existing .o file with -o, though they will create one.
5201 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5203 if { (case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208 $as_echo "$ac_try_echo") >&5
5209 (eval "$ac_try") 2>&5
5211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5218 $as_echo "$ac_try_echo") >&5
5219 (eval "$ac_try") 2>&5
5221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); };
5224 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5225 if test "x$CC" != xcc; then
5226 # Test first that cc exists at all.
5227 if { ac_try='cc -c conftest.$ac_ext >&5'
5228 { (case "(($ac_try" in
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5233 $as_echo "$ac_try_echo") >&5
5234 (eval "$ac_try") 2>&5
5236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5240 if { (case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5245 $as_echo "$ac_try_echo") >&5
5246 (eval "$ac_try") 2>&5
5248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); } &&
5250 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5255 $as_echo "$ac_try_echo") >&5
5256 (eval "$ac_try") 2>&5
5258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); };
5264 # cc exists but doesn't like -o.
5265 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5270 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5272 rm -f core conftest*
5275 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5276 { $as_echo "$as_me:$LINENO: result: yes" >&5
5277 $as_echo "yes" >&6; }
5279 { $as_echo "$as_me:$LINENO: result: no" >&5
5280 $as_echo "no" >&6; }
5282 cat >>confdefs.h <<\_ACEOF
5283 #define NO_MINUS_C_MINUS_O 1
5288 # FIXME: we rely on the cache variable name because
5289 # there is no other way.
5291 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5292 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5293 if test "$am_t" != yes; then
5294 # Losing compiler, so override with the script.
5295 # FIXME: It is wrong to rewrite CC.
5296 # But if we don't then we get into trouble of one sort or another.
5297 # A longer-term fix would be to have automake use am__CC in this case,
5298 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5299 CC="$am_aux_dir/compile $CC"
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5315 if test -z "$CPP"; then
5316 if test "${ac_cv_prog_CPP+set}" = set; then
5317 $as_echo_n "(cached) " >&6
5319 # Double quotes because CPP needs to be expanded
5320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5323 for ac_c_preproc_warn_flag in '' yes
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5338 # include <limits.h>
5340 # include <assert.h>
5344 if { (ac_try="$ac_cpp conftest.$ac_ext"
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5350 $as_echo "$ac_try_echo") >&5
5351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5353 grep -v '^ *+' conftest.er1 >conftest.err
5355 cat conftest.err >&5
5356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null && {
5358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5359 test ! -s conftest.err
5363 $as_echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 # Broken: fails on valid input.
5370 rm -f conftest.err conftest.$ac_ext
5372 # OK, works on sane cases. Now check whether nonexistent headers
5373 # can be detected and how.
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 #include <ac_nonexistent.h>
5382 if { (ac_try="$ac_cpp conftest.$ac_ext"
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5388 $as_echo "$ac_try_echo") >&5
5389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } >/dev/null && {
5396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5399 # Broken: success on invalid input.
5402 $as_echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 # Passes both tests.
5410 rm -f conftest.err conftest.$ac_ext
5413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414 rm -f conftest.err conftest.$ac_ext
5415 if $ac_preproc_ok; then
5427 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5428 $as_echo "$CPP" >&6; }
5430 for ac_c_preproc_warn_flag in '' yes
5432 # Use a header file that comes with gcc, so configuring glibc
5433 # with a fresh cross-compiler works.
5434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5435 # <limits.h> exists even on freestanding compilers.
5436 # On the NeXT, cc -E runs the code through the compiler's parser,
5437 # not just through cpp. "Syntax error" is here to catch this case.
5438 cat >conftest.$ac_ext <<_ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5445 # include <limits.h>
5447 # include <assert.h>
5451 if { (ac_try="$ac_cpp conftest.$ac_ext"
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5457 $as_echo "$ac_try_echo") >&5
5458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5460 grep -v '^ *+' conftest.er1 >conftest.err
5462 cat conftest.err >&5
5463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } >/dev/null && {
5465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5466 test ! -s conftest.err
5470 $as_echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 # Broken: fails on valid input.
5477 rm -f conftest.err conftest.$ac_ext
5479 # OK, works on sane cases. Now check whether nonexistent headers
5480 # can be detected and how.
5481 cat >conftest.$ac_ext <<_ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 #include <ac_nonexistent.h>
5489 if { (ac_try="$ac_cpp conftest.$ac_ext"
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5495 $as_echo "$ac_try_echo") >&5
5496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5498 grep -v '^ *+' conftest.er1 >conftest.err
5500 cat conftest.err >&5
5501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } >/dev/null && {
5503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5506 # Broken: success on invalid input.
5509 $as_echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 # Passes both tests.
5517 rm -f conftest.err conftest.$ac_ext
5520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5521 rm -f conftest.err conftest.$ac_ext
5522 if $ac_preproc_ok; then
5525 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5527 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5528 See \`config.log' for more details." >&5
5529 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5530 See \`config.log' for more details." >&2;}
5531 { (exit 1); exit 1; }; }; }
5535 ac_cpp='$CPP $CPPFLAGS'
5536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5541 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5542 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5543 if test "${ac_cv_path_GREP+set}" = set; then
5544 $as_echo_n "(cached) " >&6
5546 if test -z "$GREP"; then
5547 ac_path_GREP_found=false
5548 # Loop through the user's path and test for each of PROGNAME-LIST
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5553 test -z "$as_dir" && as_dir=.
5554 for ac_prog in grep ggrep; do
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5557 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5558 # Check for GNU ac_path_GREP and select it if it is found.
5559 # Check for GNU $ac_path_GREP
5560 case `"$ac_path_GREP" --version 2>&1` in
5562 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5565 $as_echo_n 0123456789 >"conftest.in"
5568 cat "conftest.in" "conftest.in" >"conftest.tmp"
5569 mv "conftest.tmp" "conftest.in"
5570 cp "conftest.in" "conftest.nl"
5571 $as_echo 'GREP' >> "conftest.nl"
5572 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5574 ac_count=`expr $ac_count + 1`
5575 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5576 # Best one so far, save it but keep looking for a better one
5577 ac_cv_path_GREP="$ac_path_GREP"
5578 ac_path_GREP_max=$ac_count
5580 # 10*(2^10) chars as input seems more than enough
5581 test $ac_count -gt 10 && break
5583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5586 $ac_path_GREP_found && break 3
5591 if test -z "$ac_cv_path_GREP"; then
5592 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5593 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5594 { (exit 1); exit 1; }; }
5597 ac_cv_path_GREP=$GREP
5601 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5602 $as_echo "$ac_cv_path_GREP" >&6; }
5603 GREP="$ac_cv_path_GREP"
5606 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5607 $as_echo_n "checking for egrep... " >&6; }
5608 if test "${ac_cv_path_EGREP+set}" = set; then
5609 $as_echo_n "(cached) " >&6
5611 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5612 then ac_cv_path_EGREP="$GREP -E"
5614 if test -z "$EGREP"; then
5615 ac_path_EGREP_found=false
5616 # Loop through the user's path and test for each of PROGNAME-LIST
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621 test -z "$as_dir" && as_dir=.
5622 for ac_prog in egrep; do
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5625 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5626 # Check for GNU ac_path_EGREP and select it if it is found.
5627 # Check for GNU $ac_path_EGREP
5628 case `"$ac_path_EGREP" --version 2>&1` in
5630 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5633 $as_echo_n 0123456789 >"conftest.in"
5636 cat "conftest.in" "conftest.in" >"conftest.tmp"
5637 mv "conftest.tmp" "conftest.in"
5638 cp "conftest.in" "conftest.nl"
5639 $as_echo 'EGREP' >> "conftest.nl"
5640 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642 ac_count=`expr $ac_count + 1`
5643 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5644 # Best one so far, save it but keep looking for a better one
5645 ac_cv_path_EGREP="$ac_path_EGREP"
5646 ac_path_EGREP_max=$ac_count
5648 # 10*(2^10) chars as input seems more than enough
5649 test $ac_count -gt 10 && break
5651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654 $ac_path_EGREP_found && break 3
5659 if test -z "$ac_cv_path_EGREP"; then
5660 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5661 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5662 { (exit 1); exit 1; }; }
5665 ac_cv_path_EGREP=$EGREP
5670 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5671 $as_echo "$ac_cv_path_EGREP" >&6; }
5672 EGREP="$ac_cv_path_EGREP"
5675 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5676 $as_echo_n "checking for ANSI C header files... " >&6; }
5677 if test "${ac_cv_header_stdc+set}" = set; then
5678 $as_echo_n "(cached) " >&6
5680 cat >conftest.$ac_ext <<_ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5706 $as_echo "$ac_try_echo") >&5
5707 (eval "$ac_compile") 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } && {
5714 test -z "$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5716 } && test -s conftest.$ac_objext; then
5717 ac_cv_header_stdc=yes
5719 $as_echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 ac_cv_header_stdc=no
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 if test $ac_cv_header_stdc = yes; then
5728 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5739 $EGREP "memchr" >/dev/null 2>&1; then
5742 ac_cv_header_stdc=no
5748 if test $ac_cv_header_stdc = yes; then
5749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5750 cat >conftest.$ac_ext <<_ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5760 $EGREP "free" >/dev/null 2>&1; then
5763 ac_cv_header_stdc=no
5769 if test $ac_cv_header_stdc = yes; then
5770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5771 if test "$cross_compiling" = yes; then
5774 cat >conftest.$ac_ext <<_ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5782 #if ((' ' & 0x0FF) == 0x020)
5783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5786 # define ISLOWER(c) \
5787 (('a' <= (c) && (c) <= 'i') \
5788 || ('j' <= (c) && (c) <= 'r') \
5789 || ('s' <= (c) && (c) <= 'z'))
5790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5798 for (i = 0; i < 256; i++)
5799 if (XOR (islower (i), ISLOWER (i))
5800 || toupper (i) != TOUPPER (i))
5805 rm -f conftest$ac_exeext
5806 if { (ac_try="$ac_link"
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5812 $as_echo "$ac_try_echo") >&5
5813 (eval "$ac_link") 2>&5
5815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5817 { (case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5822 $as_echo "$ac_try_echo") >&5
5823 (eval "$ac_try") 2>&5
5825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5829 $as_echo "$as_me: program exited with status $ac_status" >&5
5830 $as_echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5834 ac_cv_header_stdc=no
5836 rm -rf conftest.dSYM
5837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5843 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5844 $as_echo "$ac_cv_header_stdc" >&6; }
5845 if test $ac_cv_header_stdc = yes; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define STDC_HEADERS 1
5853 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5863 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5864 inttypes.h stdint.h unistd.h
5866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5868 $as_echo_n "checking for $ac_header... " >&6; }
5869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5870 $as_echo_n "(cached) " >&6
5872 cat >conftest.$ac_ext <<_ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 $ac_includes_default
5880 #include <$ac_header>
5882 rm -f conftest.$ac_objext
5883 if { (ac_try="$ac_compile"
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5889 $as_echo "$ac_try_echo") >&5
5890 (eval "$ac_compile") 2>conftest.er1
5892 grep -v '^ *+' conftest.er1 >conftest.err
5894 cat conftest.err >&5
5895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } && {
5897 test -z "$ac_c_werror_flag" ||
5898 test ! -s conftest.err
5899 } && test -s conftest.$ac_objext; then
5900 eval "$as_ac_Header=yes"
5902 $as_echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5905 eval "$as_ac_Header=no"
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 ac_res=`eval 'as_val=${'$as_ac_Header'}
5911 $as_echo "$as_val"'`
5912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5913 $as_echo "$ac_res" >&6; }
5914 as_val=`eval 'as_val=${'$as_ac_Header'}
5915 $as_echo "$as_val"'`
5916 if test "x$as_val" = x""yes; then
5917 cat >>confdefs.h <<_ACEOF
5918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5929 if test "${ac_cv_header_minix_config_h+set}" = set; then
5930 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5931 $as_echo_n "checking for minix/config.h... " >&6; }
5932 if test "${ac_cv_header_minix_config_h+set}" = set; then
5933 $as_echo_n "(cached) " >&6
5935 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5936 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5938 # Is the header compilable?
5939 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5940 $as_echo_n "checking minix/config.h usability... " >&6; }
5941 cat >conftest.$ac_ext <<_ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 $ac_includes_default
5948 #include <minix/config.h>
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5957 $as_echo "$ac_try_echo") >&5
5958 (eval "$ac_compile") 2>conftest.er1
5960 grep -v '^ *+' conftest.er1 >conftest.err
5962 cat conftest.err >&5
5963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } && {
5965 test -z "$ac_c_werror_flag" ||
5966 test ! -s conftest.err
5967 } && test -s conftest.$ac_objext; then
5968 ac_header_compiler=yes
5970 $as_echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_header_compiler=no
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5978 $as_echo "$ac_header_compiler" >&6; }
5980 # Is the header present?
5981 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5982 $as_echo_n "checking minix/config.h presence... " >&6; }
5983 cat >conftest.$ac_ext <<_ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <minix/config.h>
5991 if { (ac_try="$ac_cpp conftest.$ac_ext"
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5997 $as_echo "$ac_try_echo") >&5
5998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } >/dev/null && {
6005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6008 ac_header_preproc=yes
6010 $as_echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 ac_header_preproc=no
6016 rm -f conftest.err conftest.$ac_ext
6017 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6018 $as_echo "$ac_header_preproc" >&6; }
6020 # So? What about this header?
6021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6023 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6024 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6025 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6026 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6027 ac_header_preproc=yes
6030 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6031 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6032 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
6033 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
6034 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6035 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6036 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
6037 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
6038 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6039 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6040 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6041 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6045 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6046 $as_echo_n "checking for minix/config.h... " >&6; }
6047 if test "${ac_cv_header_minix_config_h+set}" = set; then
6048 $as_echo_n "(cached) " >&6
6050 ac_cv_header_minix_config_h=$ac_header_preproc
6052 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6053 $as_echo "$ac_cv_header_minix_config_h" >&6; }
6056 if test "x$ac_cv_header_minix_config_h" = x""yes; then
6063 if test "$MINIX" = yes; then
6065 cat >>confdefs.h <<\_ACEOF
6066 #define _POSIX_SOURCE 1
6070 cat >>confdefs.h <<\_ACEOF
6071 #define _POSIX_1_SOURCE 2
6075 cat >>confdefs.h <<\_ACEOF
6084 cat >>confdefs.h <<\_ACEOF
6085 #define _XOPEN_SOURCE 500
6093 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6094 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6095 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6096 $as_echo_n "(cached) " >&6
6098 cat >conftest.$ac_ext <<_ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6105 # define __EXTENSIONS__ 1
6106 $ac_includes_default
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122 $as_echo "$ac_try_echo") >&5
6123 (eval "$ac_compile") 2>conftest.er1
6125 grep -v '^ *+' conftest.er1 >conftest.err
6127 cat conftest.err >&5
6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
6133 ac_cv_safe_to_define___extensions__=yes
6135 $as_echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_cv_safe_to_define___extensions__=no
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6144 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6145 test $ac_cv_safe_to_define___extensions__ = yes &&
6146 cat >>confdefs.h <<\_ACEOF
6147 #define __EXTENSIONS__ 1
6150 cat >>confdefs.h <<\_ACEOF
6151 #define _ALL_SOURCE 1
6154 cat >>confdefs.h <<\_ACEOF
6155 #define _GNU_SOURCE 1
6158 cat >>confdefs.h <<\_ACEOF
6159 #define _POSIX_PTHREAD_SEMANTICS 1
6162 cat >>confdefs.h <<\_ACEOF
6163 #define _TANDEM_SOURCE 1
6174 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6175 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6176 if test "${ac_cv_sys_largefile_source+set}" = set; then
6177 $as_echo_n "(cached) " >&6
6180 cat >conftest.$ac_ext <<_ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #include <sys/types.h> /* for off_t */
6191 int (*fp) (FILE *, off_t, int) = fseeko;
6192 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (ac_try="$ac_link"
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6204 $as_echo "$ac_try_echo") >&5
6205 (eval "$ac_link") 2>conftest.er1
6207 grep -v '^ *+' conftest.er1 >conftest.err
6209 cat conftest.err >&5
6210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } && {
6212 test -z "$ac_c_werror_flag" ||
6213 test ! -s conftest.err
6214 } && test -s conftest$ac_exeext && {
6215 test "$cross_compiling" = yes ||
6216 $as_test_x conftest$ac_exeext
6218 ac_cv_sys_largefile_source=no; break
6220 $as_echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6226 rm -rf conftest.dSYM
6227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6228 conftest$ac_exeext conftest.$ac_ext
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #define _LARGEFILE_SOURCE 1
6236 #include <sys/types.h> /* for off_t */
6241 int (*fp) (FILE *, off_t, int) = fseeko;
6242 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (ac_try="$ac_link"
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6254 $as_echo "$ac_try_echo") >&5
6255 (eval "$ac_link") 2>conftest.er1
6257 grep -v '^ *+' conftest.er1 >conftest.err
6259 cat conftest.err >&5
6260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && {
6262 test -z "$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 } && test -s conftest$ac_exeext && {
6265 test "$cross_compiling" = yes ||
6266 $as_test_x conftest$ac_exeext
6268 ac_cv_sys_largefile_source=1; break
6270 $as_echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6276 rm -rf conftest.dSYM
6277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6278 conftest$ac_exeext conftest.$ac_ext
6279 ac_cv_sys_largefile_source=unknown
6283 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
6284 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6285 case $ac_cv_sys_largefile_source in #(
6288 cat >>confdefs.h <<_ACEOF
6289 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6295 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6296 # in glibc 2.1.3, but that breaks too many other things.
6297 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6298 if test $ac_cv_sys_largefile_source != unknown; then
6300 cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_FSEEKO 1
6311 # Check whether --enable-threads was given.
6312 if test "${enable_threads+set}" = set; then
6313 enableval=$enable_threads; gl_use_threads=$enableval
6315 if test -n "$gl_use_threads_default"; then
6316 gl_use_threads="$gl_use_threads_default"
6319 osf*) gl_use_threads=no ;;
6322 1.[0-5].*) gl_use_threads=no ;;
6323 *) gl_use_threads=yes ;;
6326 *) gl_use_threads=yes ;;
6332 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6333 # For using <pthread.h>:
6336 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6337 # groks <pthread.h>. cc also understands the flag -pthread, but
6338 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6339 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6340 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6341 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6342 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6345 # Some systems optimize for single-threaded programs by default, and
6346 # need special flags to disable these optimizations. For example, the
6347 # definition of 'errno' in <errno.h>.
6349 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6350 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6357 # Code from module alignof:
6358 # Code from module alloca-opt:
6359 # Code from module arg-nonnull:
6360 # Code from module arpa_inet:
6361 # Code from module base64:
6362 # Code from module btowc:
6363 # Code from module c++defs:
6364 # Code from module c-ctype:
6365 # Code from module configmake:
6366 # Code from module environ:
6367 # Code from module errno:
6368 # Code from module extensions:
6370 # Code from module float:
6371 # Code from module fseeko:
6373 # Code from module fsusage:
6374 # Code from module ftello:
6376 # Code from module ftruncate:
6377 # Code from module full-read:
6378 # Code from module full-write:
6379 # Code from module getaddrinfo:
6380 # Code from module getopt-gnu:
6381 # Code from module getopt-posix:
6382 # Code from module gettext-h:
6383 # Code from module gettimeofday:
6384 # Code from module havelib:
6385 # Code from module hostent:
6386 # Code from module include_next:
6387 # Code from module inet_ntop:
6388 # Code from module inet_pton:
6389 # Code from module langinfo:
6390 # Code from module localcharset:
6391 # Code from module lock:
6392 # Code from module lseek:
6393 # Code from module lstat:
6394 # Code from module malloc-gnu:
6395 # Code from module malloc-posix:
6396 # Code from module mbrtowc:
6397 # Code from module mbsinit:
6398 # Code from module memchr:
6399 # Code from module mkdtemp:
6400 # Code from module multiarch:
6401 # Code from module netdb:
6402 # Code from module netinet_in:
6403 # Code from module nl_langinfo:
6404 # Code from module physmem:
6405 # Code from module regex:
6406 # Code from module safe-read:
6407 # Code from module safe-write:
6408 # Code from module servent:
6409 # Code from module size_max:
6410 # Code from module snprintf:
6411 # Code from module socklen:
6412 # Code from module ssize_t:
6413 # Code from module stat:
6414 # Code from module stdbool:
6415 # Code from module stddef:
6416 # Code from module stdint:
6417 # Code from module stdio:
6418 # Code from module stdlib:
6419 # Code from module streq:
6420 # Code from module string:
6421 # Code from module sys_socket:
6422 # Code from module sys_stat:
6423 # Code from module sys_time:
6424 # Code from module tempname:
6425 # Code from module threadlib:
6429 # Code from module time:
6430 # Code from module unistd:
6431 # Code from module vasnprintf:
6432 # Code from module verify:
6433 # Code from module warn-on-use:
6434 # Code from module wchar:
6435 # Code from module wcrtomb:
6436 # Code from module wctype:
6437 # Code from module write:
6438 # Code from module xsize:
6446 LIBC_FATAL_STDERR_=1
6447 export LIBC_FATAL_STDERR_
6449 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6450 # for constant arguments. Useless!
6451 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6452 $as_echo_n "checking for working alloca.h... " >&6; }
6453 if test "${ac_cv_working_alloca_h+set}" = set; then
6454 $as_echo_n "(cached) " >&6
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6466 char *p = (char *) alloca (2 * sizeof (int));
6472 rm -f conftest.$ac_objext conftest$ac_exeext
6473 if { (ac_try="$ac_link"
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6479 $as_echo "$ac_try_echo") >&5
6480 (eval "$ac_link") 2>conftest.er1
6482 grep -v '^ *+' conftest.er1 >conftest.err
6484 cat conftest.err >&5
6485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && {
6487 test -z "$ac_c_werror_flag" ||
6488 test ! -s conftest.err
6489 } && test -s conftest$ac_exeext && {
6490 test "$cross_compiling" = yes ||
6491 $as_test_x conftest$ac_exeext
6493 ac_cv_working_alloca_h=yes
6495 $as_echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 ac_cv_working_alloca_h=no
6501 rm -rf conftest.dSYM
6502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6503 conftest$ac_exeext conftest.$ac_ext
6505 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6506 $as_echo "$ac_cv_working_alloca_h" >&6; }
6507 if test $ac_cv_working_alloca_h = yes; then
6509 cat >>confdefs.h <<\_ACEOF
6510 #define HAVE_ALLOCA_H 1
6515 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6516 $as_echo_n "checking for alloca... " >&6; }
6517 if test "${ac_cv_func_alloca_works+set}" = set; then
6518 $as_echo_n "(cached) " >&6
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6527 # define alloca __builtin_alloca
6530 # include <malloc.h>
6531 # define alloca _alloca
6533 # ifdef HAVE_ALLOCA_H
6534 # include <alloca.h>
6539 # ifndef alloca /* predefined by HP cc +Olibcalls */
6550 char *p = (char *) alloca (1);
6556 rm -f conftest.$ac_objext conftest$ac_exeext
6557 if { (ac_try="$ac_link"
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6563 $as_echo "$ac_try_echo") >&5
6564 (eval "$ac_link") 2>conftest.er1
6566 grep -v '^ *+' conftest.er1 >conftest.err
6568 cat conftest.err >&5
6569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest$ac_exeext && {
6574 test "$cross_compiling" = yes ||
6575 $as_test_x conftest$ac_exeext
6577 ac_cv_func_alloca_works=yes
6579 $as_echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_cv_func_alloca_works=no
6585 rm -rf conftest.dSYM
6586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6587 conftest$ac_exeext conftest.$ac_ext
6589 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6590 $as_echo "$ac_cv_func_alloca_works" >&6; }
6592 if test $ac_cv_func_alloca_works = yes; then
6594 cat >>confdefs.h <<\_ACEOF
6595 #define HAVE_ALLOCA 1
6599 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6600 # that cause trouble. Some versions do not even contain alloca or
6601 # contain a buggy version. If you still want to use their alloca,
6602 # use ar to extract alloca.o from them instead of compiling alloca.c.
6608 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6610 cat >>confdefs.h <<\_ACEOF
6615 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6616 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6617 if test "${ac_cv_os_cray+set}" = set; then
6618 $as_echo_n "(cached) " >&6
6620 cat >conftest.$ac_ext <<_ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 #if defined CRAY && ! defined CRAY2
6633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634 $EGREP "webecray" >/dev/null 2>&1; then
6642 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6643 $as_echo "$ac_cv_os_cray" >&6; }
6644 if test $ac_cv_os_cray = yes; then
6645 for ac_func in _getb67 GETB67 getb67; do
6646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6648 $as_echo_n "checking for $ac_func... " >&6; }
6649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6650 $as_echo_n "(cached) " >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6660 #define $ac_func innocuous_$ac_func
6662 /* System header to define __stub macros and hopefully few prototypes,
6663 which can conflict with char $ac_func (); below.
6664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6665 <limits.h> exists even on freestanding compilers. */
6668 # include <limits.h>
6670 # include <assert.h>
6675 /* Override any GCC internal prototype to avoid an error.
6676 Use char because int might match the return type of a GCC
6677 builtin and then its argument prototype would still apply. */
6682 /* The GNU C library defines this for functions which it implements
6683 to always fail with ENOSYS. Some functions are actually named
6684 something starting with __ and the normal name is an alias. */
6685 #if defined __stub_$ac_func || defined __stub___$ac_func
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6704 $as_echo "$ac_try_echo") >&5
6705 (eval "$ac_link") 2>conftest.er1
6707 grep -v '^ *+' conftest.er1 >conftest.err
6709 cat conftest.err >&5
6710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest$ac_exeext && {
6715 test "$cross_compiling" = yes ||
6716 $as_test_x conftest$ac_exeext
6718 eval "$as_ac_var=yes"
6720 $as_echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 eval "$as_ac_var=no"
6726 rm -rf conftest.dSYM
6727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6728 conftest$ac_exeext conftest.$ac_ext
6730 ac_res=`eval 'as_val=${'$as_ac_var'}
6731 $as_echo "$as_val"'`
6732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6733 $as_echo "$ac_res" >&6; }
6734 as_val=`eval 'as_val=${'$as_ac_var'}
6735 $as_echo "$as_val"'`
6736 if test "x$as_val" = x""yes; then
6738 cat >>confdefs.h <<_ACEOF
6739 #define CRAY_STACKSEG_END $ac_func
6748 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6749 $as_echo_n "checking stack direction for C alloca... " >&6; }
6750 if test "${ac_cv_c_stack_direction+set}" = set; then
6751 $as_echo_n "(cached) " >&6
6753 if test "$cross_compiling" = yes; then
6754 ac_cv_c_stack_direction=0
6756 cat >conftest.$ac_ext <<_ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6764 find_stack_direction ()
6766 static char *addr = 0;
6771 return find_stack_direction ();
6774 return (&dummy > addr) ? 1 : -1;
6780 return find_stack_direction () < 0;
6783 rm -f conftest$ac_exeext
6784 if { (ac_try="$ac_link"
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6790 $as_echo "$ac_try_echo") >&5
6791 (eval "$ac_link") 2>&5
6793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6795 { (case "(($ac_try" in
6796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797 *) ac_try_echo=$ac_try;;
6799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6800 $as_echo "$ac_try_echo") >&5
6801 (eval "$ac_try") 2>&5
6803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_c_stack_direction=1
6807 $as_echo "$as_me: program exited with status $ac_status" >&5
6808 $as_echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6812 ac_cv_c_stack_direction=-1
6814 rm -rf conftest.dSYM
6815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6820 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6821 $as_echo "$ac_cv_c_stack_direction" >&6; }
6823 cat >>confdefs.h <<_ACEOF
6824 #define STACK_DIRECTION $ac_cv_c_stack_direction
6833 HAVE_DECL_INET_NTOP=1;
6834 HAVE_DECL_INET_PTON=1;
6841 for ac_header in $gl_header_list
6843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6846 $as_echo_n "checking for $ac_header... " >&6; }
6847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6848 $as_echo_n "(cached) " >&6
6850 ac_res=`eval 'as_val=${'$as_ac_Header'}
6851 $as_echo "$as_val"'`
6852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6853 $as_echo "$ac_res" >&6; }
6855 # Is the header compilable?
6856 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6857 $as_echo_n "checking $ac_header usability... " >&6; }
6858 cat >conftest.$ac_ext <<_ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 $ac_includes_default
6865 #include <$ac_header>
6867 rm -f conftest.$ac_objext
6868 if { (ac_try="$ac_compile"
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6874 $as_echo "$ac_try_echo") >&5
6875 (eval "$ac_compile") 2>conftest.er1
6877 grep -v '^ *+' conftest.er1 >conftest.err
6879 cat conftest.err >&5
6880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } && {
6882 test -z "$ac_c_werror_flag" ||
6883 test ! -s conftest.err
6884 } && test -s conftest.$ac_objext; then
6885 ac_header_compiler=yes
6887 $as_echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6890 ac_header_compiler=no
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6895 $as_echo "$ac_header_compiler" >&6; }
6897 # Is the header present?
6898 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6899 $as_echo_n "checking $ac_header presence... " >&6; }
6900 cat >conftest.$ac_ext <<_ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <$ac_header>
6908 if { (ac_try="$ac_cpp conftest.$ac_ext"
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6914 $as_echo "$ac_try_echo") >&5
6915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6917 grep -v '^ *+' conftest.er1 >conftest.err
6919 cat conftest.err >&5
6920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } >/dev/null && {
6922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6923 test ! -s conftest.err
6925 ac_header_preproc=yes
6927 $as_echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 ac_header_preproc=no
6933 rm -f conftest.err conftest.$ac_ext
6934 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6935 $as_echo "$ac_header_preproc" >&6; }
6937 # So? What about this header?
6938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6941 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6944 ac_header_preproc=yes
6947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6948 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6950 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6952 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6954 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6956 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6958 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 $as_echo_n "checking for $ac_header... " >&6; }
6964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6965 $as_echo_n "(cached) " >&6
6967 eval "$as_ac_Header=\$ac_header_preproc"
6969 ac_res=`eval 'as_val=${'$as_ac_Header'}
6970 $as_echo "$as_val"'`
6971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6972 $as_echo "$ac_res" >&6; }
6975 as_val=`eval 'as_val=${'$as_ac_Header'}
6976 $as_echo "$as_val"'`
6977 if test "x$as_val" = x""yes; then
6978 cat >>confdefs.h <<_ACEOF
6979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6993 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
6994 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6995 if test "${gl_cv_have_include_next+set}" = set; then
6996 $as_echo_n "(cached) " >&6
6998 rm -rf conftestd1a conftestd1b conftestd2
6999 mkdir conftestd1a conftestd1b conftestd2
7000 cat <<EOF > conftestd1a/conftest.h
7001 #define DEFINED_IN_CONFTESTD1
7002 #include_next <conftest.h>
7003 #ifdef DEFINED_IN_CONFTESTD2
7006 #error "include_next doesn't work"
7009 cat <<EOF > conftestd1b/conftest.h
7010 #define DEFINED_IN_CONFTESTD1
7012 #include_next <conftest.h>
7013 #ifdef DEFINED_IN_CONFTESTD2
7016 #error "include_next doesn't work"
7019 cat <<EOF > conftestd2/conftest.h
7020 #ifndef DEFINED_IN_CONFTESTD1
7021 #error "include_next test doesn't work"
7023 #define DEFINED_IN_CONFTESTD2
7025 gl_save_CPPFLAGS="$CPPFLAGS"
7026 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7027 cat >conftest.$ac_ext <<_ACEOF
7028 #include <conftest.h>
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034 *) ac_try_echo=$ac_try;;
7036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7037 $as_echo "$ac_try_echo") >&5
7038 (eval "$ac_compile") 2>conftest.er1
7040 grep -v '^ *+' conftest.er1 >conftest.err
7042 cat conftest.err >&5
7043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } && {
7045 test -z "$ac_c_werror_flag" ||
7046 test ! -s conftest.err
7047 } && test -s conftest.$ac_objext; then
7048 gl_cv_have_include_next=yes
7050 $as_echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7053 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7054 cat >conftest.$ac_ext <<_ACEOF
7055 #include <conftest.h>
7057 rm -f conftest.$ac_objext
7058 if { (ac_try="$ac_compile"
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7064 $as_echo "$ac_try_echo") >&5
7065 (eval "$ac_compile") 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && {
7072 test -z "$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7074 } && test -s conftest.$ac_objext; then
7075 gl_cv_have_include_next=buggy
7077 $as_echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 gl_cv_have_include_next=no
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 CPPFLAGS="$gl_save_CPPFLAGS"
7089 rm -rf conftestd1a conftestd1b conftestd2
7092 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
7093 $as_echo "$gl_cv_have_include_next" >&6; }
7094 PRAGMA_SYSTEM_HEADER=
7095 if test $gl_cv_have_include_next = yes; then
7096 INCLUDE_NEXT=include_next
7097 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7098 if test -n "$GCC"; then
7099 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7102 if test $gl_cv_have_include_next = buggy; then
7103 INCLUDE_NEXT=include
7104 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7106 INCLUDE_NEXT=include
7107 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7114 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7115 $as_echo_n "checking for inline... " >&6; }
7116 if test "${ac_cv_c_inline+set}" = set; then
7117 $as_echo_n "(cached) " >&6
7120 for ac_kw in inline __inline__ __inline; do
7121 cat >conftest.$ac_ext <<_ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7129 static $ac_kw foo_t static_foo () {return 0; }
7130 $ac_kw foo_t foo () {return 0; }
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7144 grep -v '^ *+' conftest.er1 >conftest.err
7146 cat conftest.err >&5
7147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
7152 ac_cv_c_inline=$ac_kw
7154 $as_echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161 test "$ac_cv_c_inline" != no && break
7165 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7166 $as_echo "$ac_cv_c_inline" >&6; }
7169 case $ac_cv_c_inline in
7172 case $ac_cv_c_inline in
7174 *) ac_val=$ac_cv_c_inline;;
7176 cat >>confdefs.h <<_ACEOF
7178 #define inline $ac_val
7184 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7185 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7186 if test "${ac_cv_c_restrict+set}" = set; then
7187 $as_echo_n "(cached) " >&6
7190 # The order here caters to the fact that C++ does not require restrict.
7191 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7192 cat >conftest.$ac_ext <<_ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 typedef int * int_ptr;
7199 int foo (int_ptr $ac_kw ip) {
7213 rm -f conftest.$ac_objext
7214 if { (ac_try="$ac_compile"
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7220 $as_echo "$ac_try_echo") >&5
7221 (eval "$ac_compile") 2>conftest.er1
7223 grep -v '^ *+' conftest.er1 >conftest.err
7225 cat conftest.err >&5
7226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && {
7228 test -z "$ac_c_werror_flag" ||
7229 test ! -s conftest.err
7230 } && test -s conftest.$ac_objext; then
7231 ac_cv_c_restrict=$ac_kw
7233 $as_echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 test "$ac_cv_c_restrict" != no && break
7244 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7245 $as_echo "$ac_cv_c_restrict" >&6; }
7248 case $ac_cv_c_restrict in
7250 no) cat >>confdefs.h <<\_ACEOF
7251 #define restrict /**/
7254 *) cat >>confdefs.h <<_ACEOF
7255 #define restrict $ac_cv_c_restrict
7267 GNULIB_MBSNRTOWCS=0;
7270 GNULIB_WCSNRTOMBS=0;
7282 HAVE_DECL_WCWIDTH=1;
7283 REPLACE_MBSTATE_T=0;
7289 REPLACE_MBSRTOWCS=0;
7290 REPLACE_MBSNRTOWCS=0;
7292 REPLACE_WCSRTOMBS=0;
7293 REPLACE_WCSNRTOMBS=0;
7297 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
7298 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7299 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
7300 $as_echo_n "(cached) " >&6
7302 gl_cv_header_wchar_h_correct_inline=yes
7303 cat >conftest.$ac_ext <<_ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 #define wcstod renamed_wcstod
7312 extern int zero (void);
7313 int main () { return zero(); }
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317 (eval $ac_compile) 2>&5
7319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; then
7321 mv conftest.$ac_objext conftest1.$ac_objext
7322 cat >conftest.$ac_ext <<_ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #define wcstod renamed_wcstod
7331 int zero (void) { return 0; }
7334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335 (eval $ac_compile) 2>&5
7337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; then
7339 mv conftest.$ac_objext conftest2.$ac_objext
7340 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
7343 gl_cv_header_wchar_h_correct_inline=no
7347 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
7350 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
7351 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7352 if test $gl_cv_header_wchar_h_correct_inline = no; then
7353 { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7354 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7355 C99 mode. You have four options:
7356 - Add the flag -fgnu89-inline to CC and reconfigure, or
7357 - Fix your include files, using parts of
7358 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7359 - Use a gcc version older than 4.3, or
7360 - Don't use the flags -std=c99 or -std=gnu99.
7361 Configuration aborted." >&5
7362 $as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7363 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7364 C99 mode. You have four options:
7365 - Add the flag -fgnu89-inline to CC and reconfigure, or
7366 - Fix your include files, using parts of
7367 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7368 - Use a gcc version older than 4.3, or
7369 - Don't use the flags -std=c99 or -std=gnu99.
7370 Configuration aborted." >&2;}
7371 { (exit 1); exit 1; }; }
7379 for ac_func in $gl_func_list
7381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7382 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7383 $as_echo_n "checking for $ac_func... " >&6; }
7384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7385 $as_echo_n "(cached) " >&6
7387 cat >conftest.$ac_ext <<_ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7395 #define $ac_func innocuous_$ac_func
7397 /* System header to define __stub macros and hopefully few prototypes,
7398 which can conflict with char $ac_func (); below.
7399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400 <limits.h> exists even on freestanding compilers. */
7403 # include <limits.h>
7405 # include <assert.h>
7410 /* Override any GCC internal prototype to avoid an error.
7411 Use char because int might match the return type of a GCC
7412 builtin and then its argument prototype would still apply. */
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined __stub_$ac_func || defined __stub___$ac_func
7432 rm -f conftest.$ac_objext conftest$ac_exeext
7433 if { (ac_try="$ac_link"
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7439 $as_echo "$ac_try_echo") >&5
7440 (eval "$ac_link") 2>conftest.er1
7442 grep -v '^ *+' conftest.er1 >conftest.err
7444 cat conftest.err >&5
7445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && {
7447 test -z "$ac_c_werror_flag" ||
7448 test ! -s conftest.err
7449 } && test -s conftest$ac_exeext && {
7450 test "$cross_compiling" = yes ||
7451 $as_test_x conftest$ac_exeext
7453 eval "$as_ac_var=yes"
7455 $as_echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7458 eval "$as_ac_var=no"
7461 rm -rf conftest.dSYM
7462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7463 conftest$ac_exeext conftest.$ac_ext
7465 ac_res=`eval 'as_val=${'$as_ac_var'}
7466 $as_echo "$as_val"'`
7467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7468 $as_echo "$ac_res" >&6; }
7469 as_val=`eval 'as_val=${'$as_ac_var'}
7470 $as_echo "$as_val"'`
7471 if test "x$as_val" = x""yes; then
7472 cat >>confdefs.h <<_ACEOF
7473 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7485 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7486 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7487 if test "${am_cv_langinfo_codeset+set}" = set; then
7488 $as_echo_n "(cached) " >&6
7490 cat >conftest.$ac_ext <<_ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 #include <langinfo.h>
7500 char* cs = nl_langinfo(CODESET);
7505 rm -f conftest.$ac_objext conftest$ac_exeext
7506 if { (ac_try="$ac_link"
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7512 $as_echo "$ac_try_echo") >&5
7513 (eval "$ac_link") 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest$ac_exeext && {
7523 test "$cross_compiling" = yes ||
7524 $as_test_x conftest$ac_exeext
7526 am_cv_langinfo_codeset=yes
7528 $as_echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 am_cv_langinfo_codeset=no
7534 rm -rf conftest.dSYM
7535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7536 conftest$ac_exeext conftest.$ac_ext
7539 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7540 $as_echo "$am_cv_langinfo_codeset" >&6; }
7541 if test $am_cv_langinfo_codeset = yes; then
7543 cat >>confdefs.h <<\_ACEOF
7544 #define HAVE_LANGINFO_CODESET 1
7552 { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
7553 $as_echo_n "checking for a traditional french locale... " >&6; }
7554 if test "${gt_cv_locale_fr+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7567 #if HAVE_LANGINFO_CODESET
7568 # include <langinfo.h>
7575 /* Check whether the given locale name is recognized by the system. */
7576 if (setlocale (LC_ALL, "") == NULL) return 1;
7577 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7578 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7579 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7580 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7581 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7582 some unit tests fail. */
7583 #if HAVE_LANGINFO_CODESET
7585 const char *cs = nl_langinfo (CODESET);
7586 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7591 /* On Cygwin, avoid locale names without encoding suffix, because the
7592 locale_charset() function relies on the encoding suffix. Note that
7593 LC_ALL is set on the command line. */
7594 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7596 /* Check whether in the abbreviation of the second month, the second
7597 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7598 one byte long. This excludes the UTF-8 encoding. */
7599 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7600 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7601 /* Check whether the decimal separator is a comma.
7602 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7603 are nl_langinfo(RADIXCHAR) are both ".". */
7604 if (localeconv () ->decimal_point[0] != ',') return 1;
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>&5
7612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && test -s conftest$ac_exeext; then
7614 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7615 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7616 # configure script would override the LC_ALL setting. Likewise for
7617 # LC_CTYPE, which is also set at the beginning of the configure script.
7618 # Test for the usual locale name.
7619 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7620 gt_cv_locale_fr=fr_FR
7622 # Test for the locale name with explicit encoding suffix.
7623 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7624 gt_cv_locale_fr=fr_FR.ISO-8859-1
7626 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7627 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7628 gt_cv_locale_fr=fr_FR.ISO8859-1
7630 # Test for the HP-UX locale name.
7631 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7632 gt_cv_locale_fr=fr_FR.iso88591
7634 # Test for the Solaris 7 locale name.
7635 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7639 gt_cv_locale_fr=none
7649 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
7650 $as_echo "$gt_cv_locale_fr" >&6; }
7651 LOCALE_FR=$gt_cv_locale_fr
7660 GNULIB_EUIDACCESS=0;
7667 GNULIB_GETDOMAINNAME=0;
7668 GNULIB_GETDTABLESIZE=0;
7670 GNULIB_GETHOSTNAME=0;
7672 GNULIB_GETLOGIN_R=0;
7673 GNULIB_GETPAGESIZE=0;
7674 GNULIB_GETUSERSHELL=0;
7683 GNULIB_READLINKAT=0;
7689 GNULIB_UNISTD_H_GETOPT=0;
7690 GNULIB_UNISTD_H_SIGPIPE=0;
7704 HAVE_GETDOMAINNAME=1;
7705 HAVE_GETDTABLESIZE=1;
7724 HAVE_DECL_ENVIRON=1;
7725 HAVE_DECL_GETLOGIN_R=1;
7726 HAVE_DECL_GETPAGESIZE=1;
7727 HAVE_DECL_GETUSERSHELL=1;
7736 REPLACE_GETGROUPS=0;
7737 REPLACE_GETPAGESIZE=0;
7748 REPLACE_TTYNAME_R=0;
7753 UNISTD_H_HAVE_WINSOCK2_H=0;
7754 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7762 { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
7763 $as_echo_n "checking if environ is properly declared... " >&6; }
7764 if test "${gt_cv_var_environ_declaration+set}" = set; then
7765 $as_echo_n "(cached) " >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7775 extern struct { int foo; } environ;
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7791 $as_echo "$ac_try_echo") >&5
7792 (eval "$ac_compile") 2>conftest.er1
7794 grep -v '^ *+' conftest.er1 >conftest.err
7796 cat conftest.err >&5
7797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } && {
7799 test -z "$ac_c_werror_flag" ||
7800 test ! -s conftest.err
7801 } && test -s conftest.$ac_objext; then
7802 gt_cv_var_environ_declaration=no
7804 $as_echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 gt_cv_var_environ_declaration=yes
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
7814 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7815 if test $gt_cv_var_environ_declaration = yes; then
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_ENVIRON_DECL 1
7824 if test $gt_cv_var_environ_declaration != yes; then
7836 { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
7837 $as_echo_n "checking for complete errno.h... " >&6; }
7838 if test "${gl_cv_header_errno_h_complete+set}" = set; then
7839 $as_echo_n "(cached) " >&6
7842 cat >conftest.$ac_ext <<_ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7856 #if !defined ENOLINK
7862 #if !defined EMULTIHOP
7865 #if !defined EBADMSG
7868 #if !defined EOVERFLOW
7871 #if !defined ENOTSUP
7877 #if !defined ECANCELED
7882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7883 $EGREP "booboo" >/dev/null 2>&1; then
7884 gl_cv_header_errno_h_complete=no
7886 gl_cv_header_errno_h_complete=yes
7892 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
7893 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7894 if test $gl_cv_header_errno_h_complete = yes; then
7909 if test $gl_cv_have_include_next = yes; then
7910 gl_cv_next_errno_h='<'errno.h'>'
7912 { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
7913 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7914 if test "${gl_cv_next_errno_h+set}" = set; then
7915 $as_echo_n "(cached) " >&6
7918 if test $ac_cv_header_errno_h = yes; then
7919 cat >conftest.$ac_ext <<_ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7929 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7930 *) gl_absname_cpp="$ac_cpp" ;;
7932 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7933 sed -n '\#/errno.h#{
7934 s#.*"\(.*/errno.h\)".*#\1#
7940 gl_cv_next_errno_h='<'errno.h'>'
7944 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
7945 $as_echo "$gl_cv_next_errno_h" >&6; }
7947 NEXT_ERRNO_H=$gl_cv_next_errno_h
7949 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7951 gl_next_as_first_directive='<'errno.h'>'
7953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7954 gl_next_as_first_directive=$gl_cv_next_errno_h
7956 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7964 if test -n "$ERRNO_H"; then
7965 { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
7966 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7967 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
7968 $as_echo_n "(cached) " >&6
7971 cat >conftest.$ac_ext <<_ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7985 $EGREP "yes" >/dev/null 2>&1; then
7986 gl_cv_header_errno_h_EMULTIHOP=yes
7988 gl_cv_header_errno_h_EMULTIHOP=no
7992 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8000 #define _XOPEN_SOURCE_EXTENDED 1
8007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8008 $EGREP "yes" >/dev/null 2>&1; then
8009 gl_cv_header_errno_h_EMULTIHOP=hidden
8013 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
8014 if test "$cross_compiling" = yes; then
8015 # Depending upon the size, compute the lo and hi bounds.
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8023 #define _XOPEN_SOURCE_EXTENDED 1
8025 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8032 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8046 $as_echo "$ac_try_echo") >&5
8047 (eval "$ac_compile") 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } && {
8054 test -z "$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8056 } && test -s conftest.$ac_objext; then
8059 cat >conftest.$ac_ext <<_ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8066 #define _XOPEN_SOURCE_EXTENDED 1
8068 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8075 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8089 $as_echo "$ac_try_echo") >&5
8090 (eval "$ac_compile") 2>conftest.er1
8092 grep -v '^ *+' conftest.er1 >conftest.err
8094 cat conftest.err >&5
8095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
8100 ac_hi=$ac_mid; break
8102 $as_echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_lo=`expr $ac_mid + 1`
8106 if test $ac_lo -le $ac_mid; then
8110 ac_mid=`expr 2 '*' $ac_mid + 1`
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 $as_echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8126 #define _XOPEN_SOURCE_EXTENDED 1
8128 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8135 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
8142 rm -f conftest.$ac_objext
8143 if { (ac_try="$ac_compile"
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8149 $as_echo "$ac_try_echo") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest.$ac_objext; then
8162 cat >conftest.$ac_ext <<_ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8169 #define _XOPEN_SOURCE_EXTENDED 1
8171 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8178 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8192 $as_echo "$ac_try_echo") >&5
8193 (eval "$ac_compile") 2>conftest.er1
8195 grep -v '^ *+' conftest.er1 >conftest.err
8197 cat conftest.err >&5
8198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest.$ac_objext; then
8203 ac_lo=$ac_mid; break
8205 $as_echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 ac_hi=`expr '(' $ac_mid ')' - 1`
8209 if test $ac_mid -le $ac_hi; then
8213 ac_mid=`expr 2 '*' $ac_mid`
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 $as_echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 # Binary search between lo and hi bounds.
8230 while test "x$ac_lo" != "x$ac_hi"; do
8231 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8239 #define _XOPEN_SOURCE_EXTENDED 1
8241 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8248 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8262 $as_echo "$ac_try_echo") >&5
8263 (eval "$ac_compile") 2>conftest.er1
8265 grep -v '^ *+' conftest.er1 >conftest.err
8267 cat conftest.err >&5
8268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } && {
8270 test -z "$ac_c_werror_flag" ||
8271 test ! -s conftest.err
8272 } && test -s conftest.$ac_objext; then
8275 $as_echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8278 ac_lo=`expr '(' $ac_mid ')' + 1`
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
8288 cat >conftest.$ac_ext <<_ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8295 #define _XOPEN_SOURCE_EXTENDED 1
8297 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8301 static long int longval () { return EMULTIHOP; }
8302 static unsigned long int ulongval () { return EMULTIHOP; }
8309 FILE *f = fopen ("conftest.val", "w");
8312 if ((EMULTIHOP) < 0)
8314 long int i = longval ();
8315 if (i != (EMULTIHOP))
8317 fprintf (f, "%ld", i);
8321 unsigned long int i = ulongval ();
8322 if (i != (EMULTIHOP))
8324 fprintf (f, "%lu", i);
8326 /* Do not output a trailing newline, as this causes \r\n confusion
8327 on some platforms. */
8328 return ferror (f) || fclose (f) != 0;
8334 rm -f conftest$ac_exeext
8335 if { (ac_try="$ac_link"
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8341 $as_echo "$ac_try_echo") >&5
8342 (eval "$ac_link") 2>&5
8344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8346 { (case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8351 $as_echo "$ac_try_echo") >&5
8352 (eval "$ac_try") 2>&5
8354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
8358 $as_echo "$as_me: program exited with status $ac_status" >&5
8359 $as_echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8363 rm -rf conftest.dSYM
8364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8371 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8372 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8373 case $gl_cv_header_errno_h_EMULTIHOP in
8375 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
8378 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
8386 if test -n "$ERRNO_H"; then
8387 { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
8388 $as_echo_n "checking for ENOLINK value... " >&6; }
8389 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
8390 $as_echo_n "(cached) " >&6
8393 cat >conftest.$ac_ext <<_ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8407 $EGREP "yes" >/dev/null 2>&1; then
8408 gl_cv_header_errno_h_ENOLINK=yes
8410 gl_cv_header_errno_h_ENOLINK=no
8414 if test $gl_cv_header_errno_h_ENOLINK = no; then
8415 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8422 #define _XOPEN_SOURCE_EXTENDED 1
8429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8430 $EGREP "yes" >/dev/null 2>&1; then
8431 gl_cv_header_errno_h_ENOLINK=hidden
8435 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
8436 if test "$cross_compiling" = yes; then
8437 # Depending upon the size, compute the lo and hi bounds.
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8445 #define _XOPEN_SOURCE_EXTENDED 1
8447 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8454 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
8461 rm -f conftest.$ac_objext
8462 if { (ac_try="$ac_compile"
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8468 $as_echo "$ac_try_echo") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8488 #define _XOPEN_SOURCE_EXTENDED 1
8490 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8497 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8511 $as_echo "$ac_try_echo") >&5
8512 (eval "$ac_compile") 2>conftest.er1
8514 grep -v '^ *+' conftest.er1 >conftest.err
8516 cat conftest.err >&5
8517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && {
8519 test -z "$ac_c_werror_flag" ||
8520 test ! -s conftest.err
8521 } && test -s conftest.$ac_objext; then
8522 ac_hi=$ac_mid; break
8524 $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 ac_lo=`expr $ac_mid + 1`
8528 if test $ac_lo -le $ac_mid; then
8532 ac_mid=`expr 2 '*' $ac_mid + 1`
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 $as_echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8548 #define _XOPEN_SOURCE_EXTENDED 1
8550 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8557 static int test_array [1 - 2 * !((ENOLINK) < 0)];
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1 >conftest.err
8576 cat conftest.err >&5
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8584 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8591 #define _XOPEN_SOURCE_EXTENDED 1
8593 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8600 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8614 $as_echo "$ac_try_echo") >&5
8615 (eval "$ac_compile") 2>conftest.er1
8617 grep -v '^ *+' conftest.er1 >conftest.err
8619 cat conftest.err >&5
8620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } && {
8622 test -z "$ac_c_werror_flag" ||
8623 test ! -s conftest.err
8624 } && test -s conftest.$ac_objext; then
8625 ac_lo=$ac_mid; break
8627 $as_echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 ac_hi=`expr '(' $ac_mid ')' - 1`
8631 if test $ac_mid -le $ac_hi; then
8635 ac_mid=`expr 2 '*' $ac_mid`
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 $as_echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 # Binary search between lo and hi bounds.
8652 while test "x$ac_lo" != "x$ac_hi"; do
8653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8654 cat >conftest.$ac_ext <<_ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8661 #define _XOPEN_SOURCE_EXTENDED 1
8663 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8670 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8684 $as_echo "$ac_try_echo") >&5
8685 (eval "$ac_compile") 2>conftest.er1
8687 grep -v '^ *+' conftest.er1 >conftest.err
8689 cat conftest.err >&5
8690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } && {
8692 test -z "$ac_c_werror_flag" ||
8693 test ! -s conftest.err
8694 } && test -s conftest.$ac_objext; then
8697 $as_echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 ac_lo=`expr '(' $ac_mid ')' + 1`
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8717 #define _XOPEN_SOURCE_EXTENDED 1
8719 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8723 static long int longval () { return ENOLINK; }
8724 static unsigned long int ulongval () { return ENOLINK; }
8731 FILE *f = fopen ("conftest.val", "w");
8736 long int i = longval ();
8739 fprintf (f, "%ld", i);
8743 unsigned long int i = ulongval ();
8746 fprintf (f, "%lu", i);
8748 /* Do not output a trailing newline, as this causes \r\n confusion
8749 on some platforms. */
8750 return ferror (f) || fclose (f) != 0;
8756 rm -f conftest$ac_exeext
8757 if { (ac_try="$ac_link"
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8763 $as_echo "$ac_try_echo") >&5
8764 (eval "$ac_link") 2>&5
8766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8768 { (case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773 $as_echo "$ac_try_echo") >&5
8774 (eval "$ac_try") 2>&5
8776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
8780 $as_echo "$as_me: program exited with status $ac_status" >&5
8781 $as_echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8785 rm -rf conftest.dSYM
8786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8793 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
8794 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8795 case $gl_cv_header_errno_h_ENOLINK in
8797 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
8800 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
8808 if test -n "$ERRNO_H"; then
8809 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
8810 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8811 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
8812 $as_echo_n "(cached) " >&6
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8829 $EGREP "yes" >/dev/null 2>&1; then
8830 gl_cv_header_errno_h_EOVERFLOW=yes
8832 gl_cv_header_errno_h_EOVERFLOW=no
8836 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
8837 cat >conftest.$ac_ext <<_ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8844 #define _XOPEN_SOURCE_EXTENDED 1
8851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8852 $EGREP "yes" >/dev/null 2>&1; then
8853 gl_cv_header_errno_h_EOVERFLOW=hidden
8857 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
8858 if test "$cross_compiling" = yes; then
8859 # Depending upon the size, compute the lo and hi bounds.
8860 cat >conftest.$ac_ext <<_ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8867 #define _XOPEN_SOURCE_EXTENDED 1
8869 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8876 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
8883 rm -f conftest.$ac_objext
8884 if { (ac_try="$ac_compile"
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 #define _XOPEN_SOURCE_EXTENDED 1
8912 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8919 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
8926 rm -f conftest.$ac_objext
8927 if { (ac_try="$ac_compile"
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8933 $as_echo "$ac_try_echo") >&5
8934 (eval "$ac_compile") 2>conftest.er1
8936 grep -v '^ *+' conftest.er1 >conftest.err
8938 cat conftest.err >&5
8939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } && {
8941 test -z "$ac_c_werror_flag" ||
8942 test ! -s conftest.err
8943 } && test -s conftest.$ac_objext; then
8944 ac_hi=$ac_mid; break
8946 $as_echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8949 ac_lo=`expr $ac_mid + 1`
8950 if test $ac_lo -le $ac_mid; then
8954 ac_mid=`expr 2 '*' $ac_mid + 1`
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 $as_echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 cat >conftest.$ac_ext <<_ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8970 #define _XOPEN_SOURCE_EXTENDED 1
8972 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8979 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
8986 rm -f conftest.$ac_objext
8987 if { (ac_try="$ac_compile"
8989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8990 *) ac_try_echo=$ac_try;;
8992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8993 $as_echo "$ac_try_echo") >&5
8994 (eval "$ac_compile") 2>conftest.er1
8996 grep -v '^ *+' conftest.er1 >conftest.err
8998 cat conftest.err >&5
8999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } && {
9001 test -z "$ac_c_werror_flag" ||
9002 test ! -s conftest.err
9003 } && test -s conftest.$ac_objext; then
9006 cat >conftest.$ac_ext <<_ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9013 #define _XOPEN_SOURCE_EXTENDED 1
9015 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9022 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
9029 rm -f conftest.$ac_objext
9030 if { (ac_try="$ac_compile"
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9036 $as_echo "$ac_try_echo") >&5
9037 (eval "$ac_compile") 2>conftest.er1
9039 grep -v '^ *+' conftest.er1 >conftest.err
9041 cat conftest.err >&5
9042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } && {
9044 test -z "$ac_c_werror_flag" ||
9045 test ! -s conftest.err
9046 } && test -s conftest.$ac_objext; then
9047 ac_lo=$ac_mid; break
9049 $as_echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 ac_hi=`expr '(' $ac_mid ')' - 1`
9053 if test $ac_mid -le $ac_hi; then
9057 ac_mid=`expr 2 '*' $ac_mid`
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 $as_echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 # Binary search between lo and hi bounds.
9074 while test "x$ac_lo" != "x$ac_hi"; do
9075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9076 cat >conftest.$ac_ext <<_ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9083 #define _XOPEN_SOURCE_EXTENDED 1
9085 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9092 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
9099 rm -f conftest.$ac_objext
9100 if { (ac_try="$ac_compile"
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9106 $as_echo "$ac_try_echo") >&5
9107 (eval "$ac_compile") 2>conftest.er1
9109 grep -v '^ *+' conftest.er1 >conftest.err
9111 cat conftest.err >&5
9112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } && {
9114 test -z "$ac_c_werror_flag" ||
9115 test ! -s conftest.err
9116 } && test -s conftest.$ac_objext; then
9119 $as_echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 ac_lo=`expr '(' $ac_mid ')' + 1`
9125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
9132 cat >conftest.$ac_ext <<_ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9139 #define _XOPEN_SOURCE_EXTENDED 1
9141 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9145 static long int longval () { return EOVERFLOW; }
9146 static unsigned long int ulongval () { return EOVERFLOW; }
9153 FILE *f = fopen ("conftest.val", "w");
9156 if ((EOVERFLOW) < 0)
9158 long int i = longval ();
9159 if (i != (EOVERFLOW))
9161 fprintf (f, "%ld", i);
9165 unsigned long int i = ulongval ();
9166 if (i != (EOVERFLOW))
9168 fprintf (f, "%lu", i);
9170 /* Do not output a trailing newline, as this causes \r\n confusion
9171 on some platforms. */
9172 return ferror (f) || fclose (f) != 0;
9178 rm -f conftest$ac_exeext
9179 if { (ac_try="$ac_link"
9181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182 *) ac_try_echo=$ac_try;;
9184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9185 $as_echo "$ac_try_echo") >&5
9186 (eval "$ac_link") 2>&5
9188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9190 { (case "(($ac_try" in
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9195 $as_echo "$ac_try_echo") >&5
9196 (eval "$ac_try") 2>&5
9198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
9202 $as_echo "$as_me: program exited with status $ac_status" >&5
9203 $as_echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9207 rm -rf conftest.dSYM
9208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9215 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
9216 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
9217 case $gl_cv_header_errno_h_EOVERFLOW in
9219 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
9222 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
9242 GNULIB_FPRINTF_POSIX=0;
9254 GNULIB_OBSTACK_PRINTF=0;
9255 GNULIB_OBSTACK_PRINTF_POSIX=0;
9259 GNULIB_PRINTF_POSIX=0;
9267 GNULIB_SPRINTF_POSIX=0;
9268 GNULIB_STDIO_H_SIGPIPE=0;
9273 GNULIB_VFPRINTF_POSIX=0;
9275 GNULIB_VPRINTF_POSIX=0;
9277 GNULIB_VSPRINTF_POSIX=0;
9279 HAVE_DECL_GETDELIM=1;
9280 HAVE_DECL_GETLINE=1;
9281 HAVE_DECL_OBSTACK_PRINTF=1;
9282 HAVE_DECL_SNPRINTF=1;
9283 HAVE_DECL_VSNPRINTF=1;
9303 REPLACE_OBSTACK_PRINTF=0;
9312 REPLACE_STDIO_WRITE_FUNCS=0;
9314 REPLACE_VASPRINTF=0;
9318 REPLACE_VSNPRINTF=0;
9326 { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
9327 $as_echo_n "checking for fseeko... " >&6; }
9328 if test "${gl_cv_func_fseeko+set}" = set; then
9329 $as_echo_n "(cached) " >&6
9332 cat >conftest.$ac_ext <<_ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9343 fseeko (stdin, 0, 0);
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (ac_try="$ac_link"
9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9355 $as_echo "$ac_try_echo") >&5
9356 (eval "$ac_link") 2>conftest.er1
9358 grep -v '^ *+' conftest.er1 >conftest.err
9360 cat conftest.err >&5
9361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest$ac_exeext && {
9366 test "$cross_compiling" = yes ||
9367 $as_test_x conftest$ac_exeext
9369 gl_cv_func_fseeko=yes
9371 $as_echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9374 gl_cv_func_fseeko=no
9377 rm -rf conftest.dSYM
9378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9379 conftest$ac_exeext conftest.$ac_ext
9382 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
9383 $as_echo "$gl_cv_func_fseeko" >&6; }
9386 { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
9387 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
9388 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
9389 $as_echo_n "(cached) " >&6
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9401 #if defined __SL64 && defined __SCLE /* cygwin */
9402 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
9403 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
9404 it is easier to do a version check than building a runtime test. */
9405 # include <cygwin/version.h>
9406 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (ac_try="$ac_link"
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9421 $as_echo "$ac_try_echo") >&5
9422 (eval "$ac_link") 2>conftest.er1
9424 grep -v '^ *+' conftest.er1 >conftest.err
9426 cat conftest.err >&5
9427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } && {
9429 test -z "$ac_c_werror_flag" ||
9430 test ! -s conftest.err
9431 } && test -s conftest$ac_exeext && {
9432 test "$cross_compiling" = yes ||
9433 $as_test_x conftest$ac_exeext
9435 gl_cv_var_stdin_large_offset=yes
9437 $as_echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 gl_cv_var_stdin_large_offset=no
9443 rm -rf conftest.dSYM
9444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9445 conftest$ac_exeext conftest.$ac_ext
9447 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
9448 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
9479 GNULIB_GETPEERNAME=0;
9480 GNULIB_GETSOCKNAME=0;
9481 GNULIB_GETSOCKOPT=0;
9487 GNULIB_SETSOCKOPT=0;
9490 HAVE_STRUCT_SOCKADDR_STORAGE=1;
9504 { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
9505 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
9506 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
9507 $as_echo_n "(cached) " >&6
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 #include <sys/socket.h>
9525 rm -f conftest.$ac_objext
9526 if { (ac_try="$ac_compile"
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9532 $as_echo "$ac_try_echo") >&5
9533 (eval "$ac_compile") 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && {
9540 test -z "$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 } && test -s conftest.$ac_objext; then
9543 gl_cv_header_sys_socket_h_selfcontained=yes
9545 $as_echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 gl_cv_header_sys_socket_h_selfcontained=no
9551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
9555 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
9556 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
9558 for ac_func in shutdown
9560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9561 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9562 $as_echo_n "checking for $ac_func... " >&6; }
9563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9564 $as_echo_n "(cached) " >&6
9566 cat >conftest.$ac_ext <<_ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9574 #define $ac_func innocuous_$ac_func
9576 /* System header to define __stub macros and hopefully few prototypes,
9577 which can conflict with char $ac_func (); below.
9578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9579 <limits.h> exists even on freestanding compilers. */
9582 # include <limits.h>
9584 # include <assert.h>
9589 /* Override any GCC internal prototype to avoid an error.
9590 Use char because int might match the return type of a GCC
9591 builtin and then its argument prototype would still apply. */
9596 /* The GNU C library defines this for functions which it implements
9597 to always fail with ENOSYS. Some functions are actually named
9598 something starting with __ and the normal name is an alias. */
9599 #if defined __stub_$ac_func || defined __stub___$ac_func
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9621 grep -v '^ *+' conftest.er1 >conftest.err
9623 cat conftest.err >&5
9624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && {
9626 test -z "$ac_c_werror_flag" ||
9627 test ! -s conftest.err
9628 } && test -s conftest$ac_exeext && {
9629 test "$cross_compiling" = yes ||
9630 $as_test_x conftest$ac_exeext
9632 eval "$as_ac_var=yes"
9634 $as_echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9637 eval "$as_ac_var=no"
9640 rm -rf conftest.dSYM
9641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9642 conftest$ac_exeext conftest.$ac_ext
9644 ac_res=`eval 'as_val=${'$as_ac_var'}
9645 $as_echo "$as_val"'`
9646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9647 $as_echo "$ac_res" >&6; }
9648 as_val=`eval 'as_val=${'$as_ac_var'}
9649 $as_echo "$as_val"'`
9650 if test "x$as_val" = x""yes; then
9651 cat >>confdefs.h <<_ACEOF
9652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9658 if test $ac_cv_func_shutdown = yes; then
9659 { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
9660 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
9661 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
9662 $as_echo_n "(cached) " >&6
9665 cat >conftest.$ac_ext <<_ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 #include <sys/socket.h>
9675 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
9680 rm -f conftest.$ac_objext
9681 if { (ac_try="$ac_compile"
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9687 $as_echo "$ac_try_echo") >&5
9688 (eval "$ac_compile") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest.$ac_objext; then
9698 gl_cv_header_sys_socket_h_shut=yes
9700 $as_echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 gl_cv_header_sys_socket_h_shut=no
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
9710 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
9711 if test $gl_cv_header_sys_socket_h_shut = no; then
9712 SYS_SOCKET_H='sys/socket.h'
9716 # We need to check for ws2tcpip.h now.
9730 if test $gl_cv_have_include_next = yes; then
9731 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9733 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
9734 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
9735 if test "${gl_cv_next_sys_socket_h+set}" = set; then
9736 $as_echo_n "(cached) " >&6
9739 if test $ac_cv_header_sys_socket_h = yes; then
9740 cat >conftest.$ac_ext <<_ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746 #include <sys/socket.h>
9750 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9751 *) gl_absname_cpp="$ac_cpp" ;;
9753 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9754 sed -n '\#/sys/socket.h#{
9755 s#.*"\(.*/sys/socket.h\)".*#\1#
9761 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9765 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
9766 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
9768 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
9770 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9772 gl_next_as_first_directive='<'sys/socket.h'>'
9774 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9775 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
9777 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
9781 if test $ac_cv_header_sys_socket_h = yes; then
9787 for ac_header in ws2tcpip.h
9789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9792 $as_echo_n "checking for $ac_header... " >&6; }
9793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9794 $as_echo_n "(cached) " >&6
9796 ac_res=`eval 'as_val=${'$as_ac_Header'}
9797 $as_echo "$as_val"'`
9798 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9799 $as_echo "$ac_res" >&6; }
9801 # Is the header compilable?
9802 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9803 $as_echo_n "checking $ac_header usability... " >&6; }
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9811 #include <$ac_header>
9813 rm -f conftest.$ac_objext
9814 if { (ac_try="$ac_compile"
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9820 $as_echo "$ac_try_echo") >&5
9821 (eval "$ac_compile") 2>conftest.er1
9823 grep -v '^ *+' conftest.er1 >conftest.err
9825 cat conftest.err >&5
9826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } && {
9828 test -z "$ac_c_werror_flag" ||
9829 test ! -s conftest.err
9830 } && test -s conftest.$ac_objext; then
9831 ac_header_compiler=yes
9833 $as_echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9836 ac_header_compiler=no
9839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9840 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9841 $as_echo "$ac_header_compiler" >&6; }
9843 # Is the header present?
9844 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9845 $as_echo_n "checking $ac_header presence... " >&6; }
9846 cat >conftest.$ac_ext <<_ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 #include <$ac_header>
9854 if { (ac_try="$ac_cpp conftest.$ac_ext"
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9860 $as_echo "$ac_try_echo") >&5
9861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } >/dev/null && {
9868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9869 test ! -s conftest.err
9871 ac_header_preproc=yes
9873 $as_echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 ac_header_preproc=no
9879 rm -f conftest.err conftest.$ac_ext
9880 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9881 $as_echo "$ac_header_preproc" >&6; }
9883 # So? What about this header?
9884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9887 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9889 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9890 ac_header_preproc=yes
9893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9894 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9896 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9898 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9900 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9902 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9904 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9909 $as_echo_n "checking for $ac_header... " >&6; }
9910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9911 $as_echo_n "(cached) " >&6
9913 eval "$as_ac_Header=\$ac_header_preproc"
9915 ac_res=`eval 'as_val=${'$as_ac_Header'}
9916 $as_echo "$as_val"'`
9917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9918 $as_echo "$ac_res" >&6; }
9921 as_val=`eval 'as_val=${'$as_ac_Header'}
9922 $as_echo "$as_val"'`
9923 if test "x$as_val" = x""yes; then
9924 cat >>confdefs.h <<_ACEOF
9925 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9932 if test $ac_cv_header_ws2tcpip_h = yes; then
9941 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9942 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
9943 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9944 $as_echo_n "(cached) " >&6
9946 ac_cv_type_struct_sockaddr_storage=no
9947 cat >conftest.$ac_ext <<_ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9954 /* sys/types.h is not needed according to POSIX, but the
9955 sys/socket.h in i386-unknown-freebsd4.10 and
9956 powerpc-apple-darwin5.5 required it. */
9957 #include <sys/types.h>
9958 #ifdef HAVE_SYS_SOCKET_H
9959 #include <sys/socket.h>
9961 #ifdef HAVE_WS2TCPIP_H
9962 #include <ws2tcpip.h>
9969 if (sizeof (struct sockaddr_storage))
9975 rm -f conftest.$ac_objext
9976 if { (ac_try="$ac_compile"
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9982 $as_echo "$ac_try_echo") >&5
9983 (eval "$ac_compile") 2>conftest.er1
9985 grep -v '^ *+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest.$ac_objext; then
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
10000 /* sys/types.h is not needed according to POSIX, but the
10001 sys/socket.h in i386-unknown-freebsd4.10 and
10002 powerpc-apple-darwin5.5 required it. */
10003 #include <sys/types.h>
10004 #ifdef HAVE_SYS_SOCKET_H
10005 #include <sys/socket.h>
10007 #ifdef HAVE_WS2TCPIP_H
10008 #include <ws2tcpip.h>
10015 if (sizeof ((struct sockaddr_storage)))
10021 rm -f conftest.$ac_objext
10022 if { (ac_try="$ac_compile"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10028 $as_echo "$ac_try_echo") >&5
10029 (eval "$ac_compile") 2>conftest.er1
10031 grep -v '^ *+' conftest.er1 >conftest.err
10033 cat conftest.err >&5
10034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && {
10036 test -z "$ac_c_werror_flag" ||
10037 test ! -s conftest.err
10038 } && test -s conftest.$ac_objext; then
10041 $as_echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10044 ac_cv_type_struct_sockaddr_storage=yes
10047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049 $as_echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10057 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10058 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
10059 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
10061 cat >>confdefs.h <<_ACEOF
10062 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10067 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
10068 $as_echo_n "checking for sa_family_t... " >&6; }
10069 if test "${ac_cv_type_sa_family_t+set}" = set; then
10070 $as_echo_n "(cached) " >&6
10072 ac_cv_type_sa_family_t=no
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10080 /* sys/types.h is not needed according to POSIX, but the
10081 sys/socket.h in i386-unknown-freebsd4.10 and
10082 powerpc-apple-darwin5.5 required it. */
10083 #include <sys/types.h>
10084 #ifdef HAVE_SYS_SOCKET_H
10085 #include <sys/socket.h>
10087 #ifdef HAVE_WS2TCPIP_H
10088 #include <ws2tcpip.h>
10095 if (sizeof (sa_family_t))
10101 rm -f conftest.$ac_objext
10102 if { (ac_try="$ac_compile"
10103 case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10108 $as_echo "$ac_try_echo") >&5
10109 (eval "$ac_compile") 2>conftest.er1
10111 grep -v '^ *+' conftest.er1 >conftest.err
10113 cat conftest.err >&5
10114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } && {
10116 test -z "$ac_c_werror_flag" ||
10117 test ! -s conftest.err
10118 } && test -s conftest.$ac_objext; then
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10126 /* sys/types.h is not needed according to POSIX, but the
10127 sys/socket.h in i386-unknown-freebsd4.10 and
10128 powerpc-apple-darwin5.5 required it. */
10129 #include <sys/types.h>
10130 #ifdef HAVE_SYS_SOCKET_H
10131 #include <sys/socket.h>
10133 #ifdef HAVE_WS2TCPIP_H
10134 #include <ws2tcpip.h>
10141 if (sizeof ((sa_family_t)))
10147 rm -f conftest.$ac_objext
10148 if { (ac_try="$ac_compile"
10149 case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10154 $as_echo "$ac_try_echo") >&5
10155 (eval "$ac_compile") 2>conftest.er1
10157 grep -v '^ *+' conftest.er1 >conftest.err
10159 cat conftest.err >&5
10160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } && {
10162 test -z "$ac_c_werror_flag" ||
10163 test ! -s conftest.err
10164 } && test -s conftest.$ac_objext; then
10167 $as_echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_cv_type_sa_family_t=yes
10173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10175 $as_echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10183 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
10184 $as_echo "$ac_cv_type_sa_family_t" >&6; }
10185 if test "x$ac_cv_type_sa_family_t" = x""yes; then
10187 cat >>confdefs.h <<_ACEOF
10188 #define HAVE_SA_FAMILY_T 1
10194 if test $ac_cv_type_struct_sockaddr_storage = no; then
10195 HAVE_STRUCT_SOCKADDR_STORAGE=0
10197 if test $ac_cv_type_sa_family_t = no; then
10210 if test $ac_cv_header_sys_socket_h != yes; then
10212 for ac_header in winsock2.h
10214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10217 $as_echo_n "checking for $ac_header... " >&6; }
10218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10219 $as_echo_n "(cached) " >&6
10221 ac_res=`eval 'as_val=${'$as_ac_Header'}
10222 $as_echo "$as_val"'`
10223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10224 $as_echo "$ac_res" >&6; }
10226 # Is the header compilable?
10227 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10228 $as_echo_n "checking $ac_header usability... " >&6; }
10229 cat >conftest.$ac_ext <<_ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h. */
10235 $ac_includes_default
10236 #include <$ac_header>
10238 rm -f conftest.$ac_objext
10239 if { (ac_try="$ac_compile"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10245 $as_echo "$ac_try_echo") >&5
10246 (eval "$ac_compile") 2>conftest.er1
10248 grep -v '^ *+' conftest.er1 >conftest.err
10250 cat conftest.err >&5
10251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } && {
10253 test -z "$ac_c_werror_flag" ||
10254 test ! -s conftest.err
10255 } && test -s conftest.$ac_objext; then
10256 ac_header_compiler=yes
10258 $as_echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 ac_header_compiler=no
10264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10266 $as_echo "$ac_header_compiler" >&6; }
10268 # Is the header present?
10269 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10270 $as_echo_n "checking $ac_header presence... " >&6; }
10271 cat >conftest.$ac_ext <<_ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 #include <$ac_header>
10279 if { (ac_try="$ac_cpp conftest.$ac_ext"
10280 case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10285 $as_echo "$ac_try_echo") >&5
10286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10288 grep -v '^ *+' conftest.er1 >conftest.err
10290 cat conftest.err >&5
10291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } >/dev/null && {
10293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10294 test ! -s conftest.err
10296 ac_header_preproc=yes
10298 $as_echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ac_header_preproc=no
10304 rm -f conftest.err conftest.$ac_ext
10305 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10306 $as_echo "$ac_header_preproc" >&6; }
10308 # So? What about this header?
10309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10312 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10314 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10315 ac_header_preproc=yes
10318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10319 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10321 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10323 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10325 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10333 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10334 $as_echo_n "checking for $ac_header... " >&6; }
10335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10336 $as_echo_n "(cached) " >&6
10338 eval "$as_ac_Header=\$ac_header_preproc"
10340 ac_res=`eval 'as_val=${'$as_ac_Header'}
10341 $as_echo "$as_val"'`
10342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10343 $as_echo "$ac_res" >&6; }
10346 as_val=`eval 'as_val=${'$as_ac_Header'}
10347 $as_echo "$as_val"'`
10348 if test "x$as_val" = x""yes; then
10349 cat >>confdefs.h <<_ACEOF
10350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10358 if test "$ac_cv_header_winsock2_h" = yes; then
10360 UNISTD_H_HAVE_WINSOCK2_H=1
10361 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10384 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
10385 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10386 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
10387 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10388 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
10389 $as_echo_n "(cached) " >&6
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10398 /* Some systems require prerequisite headers. */
10399 #include <sys/types.h>
10400 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
10401 # include <sys/time.h>
10403 #include <sys/select.h>
10414 rm -f conftest.$ac_objext
10415 if { (ac_try="$ac_compile"
10416 case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10421 $as_echo "$ac_try_echo") >&5
10422 (eval "$ac_compile") 2>conftest.er1
10424 grep -v '^ *+' conftest.er1 >conftest.err
10426 cat conftest.err >&5
10427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest.$ac_objext; then
10432 eval "$as_gl_Symbol=yes"
10434 $as_echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 eval "$as_gl_Symbol=no"
10440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10442 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
10443 $as_echo "$as_val"'`
10444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10445 $as_echo "$ac_res" >&6; }
10446 as_val=`eval 'as_val=${'$as_gl_Symbol'}
10447 $as_echo "$as_val"'`
10448 if test "x$as_val" = x""yes; then
10449 cat >>confdefs.h <<_ACEOF
10450 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10453 eval ac_cv_have_decl_$gl_func=yes
10460 GNULIB_GETADDRINFO=0;
10461 HAVE_STRUCT_ADDRINFO=1;
10462 HAVE_DECL_FREEADDRINFO=1;
10463 HAVE_DECL_GAI_STRERROR=1;
10464 HAVE_DECL_GETADDRINFO=1;
10465 HAVE_DECL_GETNAMEINFO=1;
10494 if test $gl_cv_have_include_next = yes; then
10495 gl_cv_next_netdb_h='<'netdb.h'>'
10497 { $as_echo "$as_me:$LINENO: checking absolute name of <netdb.h>" >&5
10498 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
10499 if test "${gl_cv_next_netdb_h+set}" = set; then
10500 $as_echo_n "(cached) " >&6
10503 if test $ac_cv_header_netdb_h = yes; then
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10514 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10515 *) gl_absname_cpp="$ac_cpp" ;;
10517 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10518 sed -n '\#/netdb.h#{
10519 s#.*"\(.*/netdb.h\)".*#\1#
10525 gl_cv_next_netdb_h='<'netdb.h'>'
10529 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netdb_h" >&5
10530 $as_echo "$gl_cv_next_netdb_h" >&6; }
10532 NEXT_NETDB_H=$gl_cv_next_netdb_h
10534 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10535 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10536 gl_next_as_first_directive='<'netdb.h'>'
10538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10539 gl_next_as_first_directive=$gl_cv_next_netdb_h
10541 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
10545 if test $ac_cv_header_netdb_h = yes; then
10557 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
10558 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10559 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
10560 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10561 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
10562 $as_echo_n "(cached) " >&6
10564 cat >conftest.$ac_ext <<_ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10580 rm -f conftest.$ac_objext
10581 if { (ac_try="$ac_compile"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10587 $as_echo "$ac_try_echo") >&5
10588 (eval "$ac_compile") 2>conftest.er1
10590 grep -v '^ *+' conftest.er1 >conftest.err
10592 cat conftest.err >&5
10593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest.$ac_objext; then
10598 eval "$as_gl_Symbol=yes"
10600 $as_echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 eval "$as_gl_Symbol=no"
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
10609 $as_echo "$as_val"'`
10610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10611 $as_echo "$ac_res" >&6; }
10612 as_val=`eval 'as_val=${'$as_gl_Symbol'}
10613 $as_echo "$as_val"'`
10614 if test "x$as_val" = x""yes; then
10615 cat >>confdefs.h <<_ACEOF
10616 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10619 eval ac_cv_have_decl_$gl_func=yes
10627 gl_saved_libs="$LIBS"
10628 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
10629 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10630 if test "${ac_cv_search_gethostbyname+set}" = set; then
10631 $as_echo_n "(cached) " >&6
10633 ac_func_search_save_LIBS=$LIBS
10634 cat >conftest.$ac_ext <<_ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10641 /* Override any GCC internal prototype to avoid an error.
10642 Use char because int might match the return type of a GCC
10643 builtin and then its argument prototype would still apply. */
10647 char gethostbyname ();
10651 return gethostbyname ();
10656 for ac_lib in '' nsl network net; do
10657 if test -z "$ac_lib"; then
10658 ac_res="none required"
10661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10670 $as_echo "$ac_try_echo") >&5
10671 (eval "$ac_link") 2>conftest.er1
10673 grep -v '^ *+' conftest.er1 >conftest.err
10675 cat conftest.err >&5
10676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && {
10678 test -z "$ac_c_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest$ac_exeext && {
10681 test "$cross_compiling" = yes ||
10682 $as_test_x conftest$ac_exeext
10684 ac_cv_search_gethostbyname=$ac_res
10686 $as_echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10692 rm -rf conftest.dSYM
10693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10695 if test "${ac_cv_search_gethostbyname+set}" = set; then
10699 if test "${ac_cv_search_gethostbyname+set}" = set; then
10702 ac_cv_search_gethostbyname=no
10704 rm conftest.$ac_ext
10705 LIBS=$ac_func_search_save_LIBS
10707 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
10708 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10709 ac_res=$ac_cv_search_gethostbyname
10710 if test "$ac_res" != no; then
10711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10712 if test "$ac_cv_search_gethostbyname" != "none required"; then
10713 HOSTENT_LIB="$ac_cv_search_gethostbyname"
10717 LIBS="$gl_saved_libs"
10718 if test -z "$HOSTENT_LIB"; then
10720 for ac_func in gethostbyname
10722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10724 $as_echo_n "checking for $ac_func... " >&6; }
10725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10726 $as_echo_n "(cached) " >&6
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10736 #define $ac_func innocuous_$ac_func
10738 /* System header to define __stub macros and hopefully few prototypes,
10739 which can conflict with char $ac_func (); below.
10740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10741 <limits.h> exists even on freestanding compilers. */
10744 # include <limits.h>
10746 # include <assert.h>
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10758 /* The GNU C library defines this for functions which it implements
10759 to always fail with ENOSYS. Some functions are actually named
10760 something starting with __ and the normal name is an alias. */
10761 #if defined __stub_$ac_func || defined __stub___$ac_func
10768 return $ac_func ();
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10780 $as_echo "$ac_try_echo") >&5
10781 (eval "$ac_link") 2>conftest.er1
10783 grep -v '^ *+' conftest.er1 >conftest.err
10785 cat conftest.err >&5
10786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } && {
10788 test -z "$ac_c_werror_flag" ||
10789 test ! -s conftest.err
10790 } && test -s conftest$ac_exeext && {
10791 test "$cross_compiling" = yes ||
10792 $as_test_x conftest$ac_exeext
10794 eval "$as_ac_var=yes"
10796 $as_echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 eval "$as_ac_var=no"
10802 rm -rf conftest.dSYM
10803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10804 conftest$ac_exeext conftest.$ac_ext
10806 ac_res=`eval 'as_val=${'$as_ac_var'}
10807 $as_echo "$as_val"'`
10808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10809 $as_echo "$ac_res" >&6; }
10810 as_val=`eval 'as_val=${'$as_ac_var'}
10811 $as_echo "$as_val"'`
10812 if test "x$as_val" = x""yes; then
10813 cat >>confdefs.h <<_ACEOF
10814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10819 { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
10820 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
10821 if test "${gl_cv_w32_gethostbyname+set}" = set; then
10822 $as_echo_n "(cached) " >&6
10824 gl_cv_w32_gethostbyname=no
10825 gl_save_LIBS="$LIBS"
10826 LIBS="$LIBS -lws2_32"
10827 cat >conftest.$ac_ext <<_ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10834 #ifdef HAVE_WINSOCK2_H
10835 #include <winsock2.h>
10837 #include <stddef.h>
10842 gethostbyname(NULL);
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (ac_try="$ac_link"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10854 $as_echo "$ac_try_echo") >&5
10855 (eval "$ac_link") 2>conftest.er1
10857 grep -v '^ *+' conftest.er1 >conftest.err
10859 cat conftest.err >&5
10860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && {
10862 test -z "$ac_c_werror_flag" ||
10863 test ! -s conftest.err
10864 } && test -s conftest$ac_exeext && {
10865 test "$cross_compiling" = yes ||
10866 $as_test_x conftest$ac_exeext
10868 gl_cv_w32_gethostbyname=yes
10870 $as_echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10876 rm -rf conftest.dSYM
10877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS="$gl_save_LIBS"
10882 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
10883 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
10884 if test "$gl_cv_w32_gethostbyname" = "yes"; then
10885 HOSTENT_LIB="-lws2_32"
10896 gl_saved_libs="$LIBS"
10897 { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
10898 $as_echo_n "checking for library containing getservbyname... " >&6; }
10899 if test "${ac_cv_search_getservbyname+set}" = set; then
10900 $as_echo_n "(cached) " >&6
10902 ac_func_search_save_LIBS=$LIBS
10903 cat >conftest.$ac_ext <<_ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10916 char getservbyname ();
10920 return getservbyname ();
10925 for ac_lib in '' socket network net; do
10926 if test -z "$ac_lib"; then
10927 ac_res="none required"
10930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (ac_try="$ac_link"
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_link") 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_exeext && {
10950 test "$cross_compiling" = yes ||
10951 $as_test_x conftest$ac_exeext
10953 ac_cv_search_getservbyname=$ac_res
10955 $as_echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10961 rm -rf conftest.dSYM
10962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10964 if test "${ac_cv_search_getservbyname+set}" = set; then
10968 if test "${ac_cv_search_getservbyname+set}" = set; then
10971 ac_cv_search_getservbyname=no
10973 rm conftest.$ac_ext
10974 LIBS=$ac_func_search_save_LIBS
10976 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
10977 $as_echo "$ac_cv_search_getservbyname" >&6; }
10978 ac_res=$ac_cv_search_getservbyname
10979 if test "$ac_res" != no; then
10980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10981 if test "$ac_cv_search_getservbyname" != "none required"; then
10982 SERVENT_LIB="$ac_cv_search_getservbyname"
10986 LIBS="$gl_saved_libs"
10987 if test -z "$SERVENT_LIB"; then
10989 for ac_func in getservbyname
10991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10993 $as_echo_n "checking for $ac_func... " >&6; }
10994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10995 $as_echo_n "(cached) " >&6
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11005 #define $ac_func innocuous_$ac_func
11007 /* System header to define __stub macros and hopefully few prototypes,
11008 which can conflict with char $ac_func (); below.
11009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010 <limits.h> exists even on freestanding compilers. */
11013 # include <limits.h>
11015 # include <assert.h>
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11027 /* The GNU C library defines this for functions which it implements
11028 to always fail with ENOSYS. Some functions are actually named
11029 something starting with __ and the normal name is an alias. */
11030 #if defined __stub_$ac_func || defined __stub___$ac_func
11037 return $ac_func ();
11042 rm -f conftest.$ac_objext conftest$ac_exeext
11043 if { (ac_try="$ac_link"
11044 case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11049 $as_echo "$ac_try_echo") >&5
11050 (eval "$ac_link") 2>conftest.er1
11052 grep -v '^ *+' conftest.er1 >conftest.err
11054 cat conftest.err >&5
11055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } && {
11057 test -z "$ac_c_werror_flag" ||
11058 test ! -s conftest.err
11059 } && test -s conftest$ac_exeext && {
11060 test "$cross_compiling" = yes ||
11061 $as_test_x conftest$ac_exeext
11063 eval "$as_ac_var=yes"
11065 $as_echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 eval "$as_ac_var=no"
11071 rm -rf conftest.dSYM
11072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11073 conftest$ac_exeext conftest.$ac_ext
11075 ac_res=`eval 'as_val=${'$as_ac_var'}
11076 $as_echo "$as_val"'`
11077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11078 $as_echo "$ac_res" >&6; }
11079 as_val=`eval 'as_val=${'$as_ac_var'}
11080 $as_echo "$as_val"'`
11081 if test "x$as_val" = x""yes; then
11082 cat >>confdefs.h <<_ACEOF
11083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11088 { $as_echo "$as_me:$LINENO: checking for getservbyname in winsock2.h and -lws2_32" >&5
11089 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
11090 if test "${gl_cv_w32_getservbyname+set}" = set; then
11091 $as_echo_n "(cached) " >&6
11093 gl_cv_w32_getservbyname=no
11094 gl_save_LIBS="$LIBS"
11095 LIBS="$LIBS -lws2_32"
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11103 #ifdef HAVE_WINSOCK2_H
11104 #include <winsock2.h>
11106 #include <stddef.h>
11111 getservbyname(NULL,NULL);
11116 rm -f conftest.$ac_objext conftest$ac_exeext
11117 if { (ac_try="$ac_link"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11123 $as_echo "$ac_try_echo") >&5
11124 (eval "$ac_link") 2>conftest.er1
11126 grep -v '^ *+' conftest.er1 >conftest.err
11128 cat conftest.err >&5
11129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } && {
11131 test -z "$ac_c_werror_flag" ||
11132 test ! -s conftest.err
11133 } && test -s conftest$ac_exeext && {
11134 test "$cross_compiling" = yes ||
11135 $as_test_x conftest$ac_exeext
11137 gl_cv_w32_getservbyname=yes
11139 $as_echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11145 rm -rf conftest.dSYM
11146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11147 conftest$ac_exeext conftest.$ac_ext
11148 LIBS="$gl_save_LIBS"
11151 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getservbyname" >&5
11152 $as_echo "$gl_cv_w32_getservbyname" >&6; }
11153 if test "$gl_cv_w32_getservbyname" = "yes"; then
11154 SERVENT_LIB="-lws2_32"
11179 { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
11180 $as_echo_n "checking for IPv4 sockets... " >&6; }
11181 if test "${gl_cv_socket_ipv4+set}" = set; then
11182 $as_echo_n "(cached) " >&6
11184 cat >conftest.$ac_ext <<_ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 #include <sys/types.h>
11191 #ifdef HAVE_SYS_SOCKET_H
11192 #include <sys/socket.h>
11194 #ifdef HAVE_NETINET_IN_H
11195 #include <netinet/in.h>
11197 #ifdef HAVE_WINSOCK2_H
11198 #include <winsock2.h>
11203 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11204 if (&x && &y && &z) return 0;
11209 rm -f conftest.$ac_objext
11210 if { (ac_try="$ac_compile"
11211 case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11216 $as_echo "$ac_try_echo") >&5
11217 (eval "$ac_compile") 2>conftest.er1
11219 grep -v '^ *+' conftest.er1 >conftest.err
11221 cat conftest.err >&5
11222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && {
11224 test -z "$ac_c_werror_flag" ||
11225 test ! -s conftest.err
11226 } && test -s conftest.$ac_objext; then
11227 gl_cv_socket_ipv4=yes
11229 $as_echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11232 gl_cv_socket_ipv4=no
11235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238 { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
11239 $as_echo "$gl_cv_socket_ipv4" >&6; }
11240 if test $gl_cv_socket_ipv4 = yes; then
11242 cat >>confdefs.h <<\_ACEOF
11243 #define HAVE_IPV4 1
11248 { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
11249 $as_echo_n "checking for IPv6 sockets... " >&6; }
11250 if test "${gl_cv_socket_ipv6+set}" = set; then
11251 $as_echo_n "(cached) " >&6
11253 cat >conftest.$ac_ext <<_ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <sys/types.h>
11260 #ifdef HAVE_SYS_SOCKET_H
11261 #include <sys/socket.h>
11263 #ifdef HAVE_NETINET_IN_H
11264 #include <netinet/in.h>
11266 #ifdef HAVE_WINSOCK2_H
11267 #include <winsock2.h>
11269 #ifdef HAVE_WS2TCPIP_H
11270 #include <ws2tcpip.h>
11275 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
11276 if (&x && &y && &z) return 0;
11281 rm -f conftest.$ac_objext
11282 if { (ac_try="$ac_compile"
11283 case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11288 $as_echo "$ac_try_echo") >&5
11289 (eval "$ac_compile") 2>conftest.er1
11291 grep -v '^ *+' conftest.er1 >conftest.err
11293 cat conftest.err >&5
11294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } && {
11296 test -z "$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11298 } && test -s conftest.$ac_objext; then
11299 gl_cv_socket_ipv6=yes
11301 $as_echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 gl_cv_socket_ipv6=no
11307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
11311 $as_echo "$gl_cv_socket_ipv6" >&6; }
11312 if test $gl_cv_socket_ipv6 = yes; then
11314 cat >>confdefs.h <<\_ACEOF
11315 #define HAVE_IPV6 1
11328 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
11329 $as_echo_n "checking for library containing inet_ntop... " >&6; }
11330 if test "${ac_cv_search_inet_ntop+set}" = set; then
11331 $as_echo_n "(cached) " >&6
11333 ac_func_search_save_LIBS=$LIBS
11334 cat >conftest.$ac_ext <<_ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11341 /* Override any GCC internal prototype to avoid an error.
11342 Use char because int might match the return type of a GCC
11343 builtin and then its argument prototype would still apply. */
11351 return inet_ntop ();
11356 for ac_lib in '' nsl; do
11357 if test -z "$ac_lib"; then
11358 ac_res="none required"
11361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11363 rm -f conftest.$ac_objext conftest$ac_exeext
11364 if { (ac_try="$ac_link"
11365 case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11370 $as_echo "$ac_try_echo") >&5
11371 (eval "$ac_link") 2>conftest.er1
11373 grep -v '^ *+' conftest.er1 >conftest.err
11375 cat conftest.err >&5
11376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } && {
11378 test -z "$ac_c_werror_flag" ||
11379 test ! -s conftest.err
11380 } && test -s conftest$ac_exeext && {
11381 test "$cross_compiling" = yes ||
11382 $as_test_x conftest$ac_exeext
11384 ac_cv_search_inet_ntop=$ac_res
11386 $as_echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11392 rm -rf conftest.dSYM
11393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11395 if test "${ac_cv_search_inet_ntop+set}" = set; then
11399 if test "${ac_cv_search_inet_ntop+set}" = set; then
11402 ac_cv_search_inet_ntop=no
11404 rm conftest.$ac_ext
11405 LIBS=$ac_func_search_save_LIBS
11407 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
11408 $as_echo "$ac_cv_search_inet_ntop" >&6; }
11409 ac_res=$ac_cv_search_inet_ntop
11410 if test "$ac_res" != no; then
11411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11423 for ac_func in inet_ntop
11425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11427 $as_echo_n "checking for $ac_func... " >&6; }
11428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11429 $as_echo_n "(cached) " >&6
11431 cat >conftest.$ac_ext <<_ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11439 #define $ac_func innocuous_$ac_func
11441 /* System header to define __stub macros and hopefully few prototypes,
11442 which can conflict with char $ac_func (); below.
11443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444 <limits.h> exists even on freestanding compilers. */
11447 # include <limits.h>
11449 # include <assert.h>
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11461 /* The GNU C library defines this for functions which it implements
11462 to always fail with ENOSYS. Some functions are actually named
11463 something starting with __ and the normal name is an alias. */
11464 #if defined __stub_$ac_func || defined __stub___$ac_func
11471 return $ac_func ();
11476 rm -f conftest.$ac_objext conftest$ac_exeext
11477 if { (ac_try="$ac_link"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11483 $as_echo "$ac_try_echo") >&5
11484 (eval "$ac_link") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && {
11491 test -z "$ac_c_werror_flag" ||
11492 test ! -s conftest.err
11493 } && test -s conftest$ac_exeext && {
11494 test "$cross_compiling" = yes ||
11495 $as_test_x conftest$ac_exeext
11497 eval "$as_ac_var=yes"
11499 $as_echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 eval "$as_ac_var=no"
11505 rm -rf conftest.dSYM
11506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11507 conftest$ac_exeext conftest.$ac_ext
11509 ac_res=`eval 'as_val=${'$as_ac_var'}
11510 $as_echo "$as_val"'`
11511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11512 $as_echo "$ac_res" >&6; }
11513 as_val=`eval 'as_val=${'$as_ac_var'}
11514 $as_echo "$as_val"'`
11515 if test "x$as_val" = x""yes; then
11516 cat >>confdefs.h <<_ACEOF
11517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11522 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
11532 if test "$ac_cv_search_inet_ntop" != "no" &&
11533 test "$ac_cv_search_inet_ntop" != "none required"; then
11534 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
11539 { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
11540 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
11541 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
11542 $as_echo_n "(cached) " >&6
11544 cat >conftest.$ac_ext <<_ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 #include <arpa/inet.h>
11563 rm -f conftest.$ac_objext
11564 if { (ac_try="$ac_compile"
11565 case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11570 $as_echo "$ac_try_echo") >&5
11571 (eval "$ac_compile") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest.$ac_objext; then
11581 ac_cv_have_decl_inet_ntop=yes
11583 $as_echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 ac_cv_have_decl_inet_ntop=no
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11591 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
11592 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
11593 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
11595 cat >>confdefs.h <<_ACEOF
11596 #define HAVE_DECL_INET_NTOP 1
11601 cat >>confdefs.h <<_ACEOF
11602 #define HAVE_DECL_INET_NTOP 0
11609 if test $ac_cv_have_decl_inet_ntop = no; then
11610 HAVE_DECL_INET_NTOP=0
11638 if test $gl_cv_have_include_next = yes; then
11639 gl_cv_next_getopt_h='<'getopt.h'>'
11641 { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
11642 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
11643 if test "${gl_cv_next_getopt_h+set}" = set; then
11644 $as_echo_n "(cached) " >&6
11647 if test $ac_cv_header_getopt_h = yes; then
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 #include <getopt.h>
11658 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11659 *) gl_absname_cpp="$ac_cpp" ;;
11661 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11662 sed -n '\#/getopt.h#{
11663 s#.*"\(.*/getopt.h\)".*#\1#
11669 gl_cv_next_getopt_h='<'getopt.h'>'
11673 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
11674 $as_echo "$gl_cv_next_getopt_h" >&6; }
11676 NEXT_GETOPT_H=$gl_cv_next_getopt_h
11678 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11679 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11680 gl_next_as_first_directive='<'getopt.h'>'
11682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11683 gl_next_as_first_directive=$gl_cv_next_getopt_h
11685 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
11696 if test $ac_cv_header_getopt_h = yes; then
11705 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11707 for ac_header in getopt.h
11709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11712 $as_echo_n "checking for $ac_header... " >&6; }
11713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11714 $as_echo_n "(cached) " >&6
11716 ac_res=`eval 'as_val=${'$as_ac_Header'}
11717 $as_echo "$as_val"'`
11718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11719 $as_echo "$ac_res" >&6; }
11721 # Is the header compilable?
11722 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11723 $as_echo_n "checking $ac_header usability... " >&6; }
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 $ac_includes_default
11731 #include <$ac_header>
11733 rm -f conftest.$ac_objext
11734 if { (ac_try="$ac_compile"
11735 case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11740 $as_echo "$ac_try_echo") >&5
11741 (eval "$ac_compile") 2>conftest.er1
11743 grep -v '^ *+' conftest.er1 >conftest.err
11745 cat conftest.err >&5
11746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } && {
11748 test -z "$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 } && test -s conftest.$ac_objext; then
11751 ac_header_compiler=yes
11753 $as_echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 ac_header_compiler=no
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11761 $as_echo "$ac_header_compiler" >&6; }
11763 # Is the header present?
11764 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11765 $as_echo_n "checking $ac_header presence... " >&6; }
11766 cat >conftest.$ac_ext <<_ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 #include <$ac_header>
11774 if { (ac_try="$ac_cpp conftest.$ac_ext"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11780 $as_echo "$ac_try_echo") >&5
11781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } >/dev/null && {
11788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11791 ac_header_preproc=yes
11793 $as_echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ac_header_preproc=no
11799 rm -f conftest.err conftest.$ac_ext
11800 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11801 $as_echo "$ac_header_preproc" >&6; }
11803 # So? What about this header?
11804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11807 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11809 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11810 ac_header_preproc=yes
11813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11814 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11816 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11818 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11820 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11824 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11829 $as_echo_n "checking for $ac_header... " >&6; }
11830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11831 $as_echo_n "(cached) " >&6
11833 eval "$as_ac_Header=\$ac_header_preproc"
11835 ac_res=`eval 'as_val=${'$as_ac_Header'}
11836 $as_echo "$as_val"'`
11837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11838 $as_echo "$ac_res" >&6; }
11841 as_val=`eval 'as_val=${'$as_ac_Header'}
11842 $as_echo "$as_val"'`
11843 if test "x$as_val" = x""yes; then
11844 cat >>confdefs.h <<_ACEOF
11845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11849 gl_replace_getopt=yes
11856 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11858 for ac_func in getopt_long_only
11860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11861 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11862 $as_echo_n "checking for $ac_func... " >&6; }
11863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11864 $as_echo_n "(cached) " >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11874 #define $ac_func innocuous_$ac_func
11876 /* System header to define __stub macros and hopefully few prototypes,
11877 which can conflict with char $ac_func (); below.
11878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11879 <limits.h> exists even on freestanding compilers. */
11882 # include <limits.h>
11884 # include <assert.h>
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11896 /* The GNU C library defines this for functions which it implements
11897 to always fail with ENOSYS. Some functions are actually named
11898 something starting with __ and the normal name is an alias. */
11899 #if defined __stub_$ac_func || defined __stub___$ac_func
11906 return $ac_func ();
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (ac_try="$ac_link"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11918 $as_echo "$ac_try_echo") >&5
11919 (eval "$ac_link") 2>conftest.er1
11921 grep -v '^ *+' conftest.er1 >conftest.err
11923 cat conftest.err >&5
11924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && {
11926 test -z "$ac_c_werror_flag" ||
11927 test ! -s conftest.err
11928 } && test -s conftest$ac_exeext && {
11929 test "$cross_compiling" = yes ||
11930 $as_test_x conftest$ac_exeext
11932 eval "$as_ac_var=yes"
11934 $as_echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 eval "$as_ac_var=no"
11940 rm -rf conftest.dSYM
11941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11942 conftest$ac_exeext conftest.$ac_ext
11944 ac_res=`eval 'as_val=${'$as_ac_var'}
11945 $as_echo "$as_val"'`
11946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11947 $as_echo "$ac_res" >&6; }
11948 as_val=`eval 'as_val=${'$as_ac_var'}
11949 $as_echo "$as_val"'`
11950 if test "x$as_val" = x""yes; then
11951 cat >>confdefs.h <<_ACEOF
11952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11956 gl_replace_getopt=yes
11962 if test -z "$gl_replace_getopt"; then
11963 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11964 $as_echo_n "checking whether optreset is declared... " >&6; }
11965 if test "${ac_cv_have_decl_optreset+set}" = set; then
11966 $as_echo_n "(cached) " >&6
11968 cat >conftest.$ac_ext <<_ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974 #include <getopt.h>
11987 rm -f conftest.$ac_objext
11988 if { (ac_try="$ac_compile"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11994 $as_echo "$ac_try_echo") >&5
11995 (eval "$ac_compile") 2>conftest.er1
11997 grep -v '^ *+' conftest.er1 >conftest.err
11999 cat conftest.err >&5
12000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && {
12002 test -z "$ac_c_werror_flag" ||
12003 test ! -s conftest.err
12004 } && test -s conftest.$ac_objext; then
12005 ac_cv_have_decl_optreset=yes
12007 $as_echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 ac_cv_have_decl_optreset=no
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
12016 $as_echo "$ac_cv_have_decl_optreset" >&6; }
12017 if test "x$ac_cv_have_decl_optreset" = x""yes; then
12019 cat >>confdefs.h <<_ACEOF
12020 #define HAVE_DECL_OPTRESET 1
12025 cat >>confdefs.h <<_ACEOF
12026 #define HAVE_DECL_OPTRESET 0
12029 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
12030 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
12031 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
12032 $as_echo_n "(cached) " >&6
12034 cat >conftest.$ac_ext <<_ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 #include <getopt.h>
12045 #ifndef getopt_clip
12046 (void) getopt_clip;
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12060 $as_echo "$ac_try_echo") >&5
12061 (eval "$ac_compile") 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest.$ac_objext; then
12071 ac_cv_have_decl_getopt_clip=yes
12073 $as_echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 ac_cv_have_decl_getopt_clip=no
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
12082 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
12083 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
12085 cat >>confdefs.h <<_ACEOF
12086 #define HAVE_DECL_GETOPT_CLIP 1
12091 cat >>confdefs.h <<_ACEOF
12092 #define HAVE_DECL_GETOPT_CLIP 0
12105 if test -z "$gl_replace_getopt"; then
12106 { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
12107 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
12108 if test "${gl_cv_func_getopt_posix+set}" = set; then
12109 $as_echo_n "(cached) " >&6
12112 if test "$cross_compiling" = yes; then
12114 mingw*) gl_cv_func_getopt_posix="guessing no";;
12115 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
12116 *) gl_cv_func_getopt_posix="guessing yes";;
12120 cat >conftest.$ac_ext <<_ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12127 #include <unistd.h>
12128 #include <stdlib.h>
12129 #include <string.h>
12131 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
12132 # define OPTIND_MIN 0
12134 # define OPTIND_MIN 1
12145 argv[argc++] = "program";
12146 argv[argc++] = "-a";
12147 argv[argc++] = "foo";
12148 argv[argc++] = "bar";
12150 optind = OPTIND_MIN;
12153 c = getopt (argc, argv, "ab");
12156 c = getopt (argc, argv, "ab");
12159 if (!(optind == 2))
12162 /* Some internal state exists at this point. */
12168 argv[argc++] = "program";
12169 argv[argc++] = "donald";
12170 argv[argc++] = "-p";
12171 argv[argc++] = "billy";
12172 argv[argc++] = "duck";
12173 argv[argc++] = "-a";
12174 argv[argc++] = "bar";
12176 optind = OPTIND_MIN;
12179 c = getopt (argc, argv, "+abp:q:");
12182 if (!(strcmp (argv[0], "program") == 0))
12184 if (!(strcmp (argv[1], "donald") == 0))
12186 if (!(strcmp (argv[2], "-p") == 0))
12188 if (!(strcmp (argv[3], "billy") == 0))
12190 if (!(strcmp (argv[4], "duck") == 0))
12192 if (!(strcmp (argv[5], "-a") == 0))
12194 if (!(strcmp (argv[6], "bar") == 0))
12196 if (!(optind == 1))
12199 /* Detect MacOS 10.5, AIX 7.1 bug. */
12201 char *argv[3] = { "program", "-ab", NULL };
12202 optind = OPTIND_MIN;
12204 if (getopt (2, argv, "ab:") != 'a')
12206 if (getopt (2, argv, "ab:") != '?')
12218 rm -f conftest$ac_exeext
12219 if { (ac_try="$ac_link"
12220 case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12225 $as_echo "$ac_try_echo") >&5
12226 (eval "$ac_link") 2>&5
12228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12230 { (case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12235 $as_echo "$ac_try_echo") >&5
12236 (eval "$ac_try") 2>&5
12238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 gl_cv_func_getopt_posix=yes
12242 $as_echo "$as_me: program exited with status $ac_status" >&5
12243 $as_echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ( exit $ac_status )
12247 gl_cv_func_getopt_posix=no
12249 rm -rf conftest.dSYM
12250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12256 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
12257 $as_echo "$gl_cv_func_getopt_posix" >&6; }
12258 case "$gl_cv_func_getopt_posix" in
12259 *no) gl_replace_getopt=yes ;;
12263 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12264 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
12265 $as_echo_n "checking for working GNU getopt function... " >&6; }
12266 if test "${gl_cv_func_getopt_gnu+set}" = set; then
12267 $as_echo_n "(cached) " >&6
12269 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
12270 # optstring is necessary for programs like m4 that have POSIX-mandated
12271 # semantics for supporting options interspersed with files.
12272 # Also, since getopt_long is a GNU extension, we require optind=0.
12273 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
12274 # so take care to revert to the correct (non-)export state.
12275 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
12276 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
12277 xx) gl_had_POSIXLY_CORRECT=exported ;;
12278 x) gl_had_POSIXLY_CORRECT=yes ;;
12279 *) gl_had_POSIXLY_CORRECT= ;;
12282 export POSIXLY_CORRECT
12283 if test "$cross_compiling" = yes; then
12284 case $host_os:$ac_cv_have_decl_optreset in
12285 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
12286 *:yes) gl_cv_func_getopt_gnu=no;;
12287 *) gl_cv_func_getopt_gnu=yes;;
12291 cat >conftest.$ac_ext <<_ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 #include <getopt.h>
12298 #include <stddef.h>
12299 #include <string.h>
12305 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
12306 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
12307 OSF/1 5.1, Solaris 10. */
12310 myargv[0] = "conftest";
12314 if (getopt (2, myargv, "+a") != '?')
12317 /* This code succeeds on glibc 2.8, mingw,
12318 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
12319 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
12321 char *argv[] = { "program", "-p", "foo", "bar", NULL };
12324 if (getopt (4, argv, "p::") != 'p')
12326 if (optarg != NULL)
12328 if (getopt (4, argv, "p::") != -1)
12333 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
12335 char *argv[] = { "program", "foo", "-p", NULL };
12337 if (getopt (3, argv, "-p") != 1)
12339 if (getopt (3, argv, "-p") != 'p')
12342 /* This code fails on glibc 2.11. */
12344 char *argv[] = { "program", "-b", "-a", NULL };
12345 optind = opterr = 0;
12346 if (getopt (3, argv, "+:a:b") != 'b')
12348 if (getopt (3, argv, "+:a:b") != ':')
12357 rm -f conftest$ac_exeext
12358 if { (ac_try="$ac_link"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12364 $as_echo "$ac_try_echo") >&5
12365 (eval "$ac_link") 2>&5
12367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12374 $as_echo "$ac_try_echo") >&5
12375 (eval "$ac_try") 2>&5
12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 gl_cv_func_getopt_gnu=yes
12381 $as_echo "$as_me: program exited with status $ac_status" >&5
12382 $as_echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 ( exit $ac_status )
12386 gl_cv_func_getopt_gnu=no
12388 rm -rf conftest.dSYM
12389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12393 case $gl_had_POSIXLY_CORRECT in
12395 yes) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }; POSIXLY_CORRECT=1 ;;
12396 *) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; } ;;
12400 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
12401 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
12402 if test "$gl_cv_func_getopt_gnu" = "no"; then
12403 gl_replace_getopt=yes
12408 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12409 $as_echo_n "checking whether getenv is declared... " >&6; }
12410 if test "${ac_cv_have_decl_getenv+set}" = set; then
12411 $as_echo_n "(cached) " >&6
12413 cat >conftest.$ac_ext <<_ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 $ac_includes_default
12431 rm -f conftest.$ac_objext
12432 if { (ac_try="$ac_compile"
12433 case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12438 $as_echo "$ac_try_echo") >&5
12439 (eval "$ac_compile") 2>conftest.er1
12441 grep -v '^ *+' conftest.er1 >conftest.err
12443 cat conftest.err >&5
12444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && {
12446 test -z "$ac_c_werror_flag" ||
12447 test ! -s conftest.err
12448 } && test -s conftest.$ac_objext; then
12449 ac_cv_have_decl_getenv=yes
12451 $as_echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_cv_have_decl_getenv=no
12457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12460 $as_echo "$ac_cv_have_decl_getenv" >&6; }
12461 if test "x$ac_cv_have_decl_getenv" = x""yes; then
12463 cat >>confdefs.h <<_ACEOF
12464 #define HAVE_DECL_GETENV 1
12469 cat >>confdefs.h <<_ACEOF
12470 #define HAVE_DECL_GETENV 0
12483 if test -n "$gl_replace_getopt"; then
12489 cat >>confdefs.h <<\_ACEOF
12490 #define __GETOPT_PREFIX rpl_
12495 GNULIB_UNISTD_H_GETOPT=1
12504 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
12514 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
12532 GNULIB_GETTIMEOFDAY=0;
12533 HAVE_GETTIMEOFDAY=1;
12534 HAVE_STRUCT_TIMEVAL=1;
12536 REPLACE_GETTIMEOFDAY=0;
12566 if test $gl_cv_have_include_next = yes; then
12567 gl_cv_next_sys_time_h='<'sys/time.h'>'
12569 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
12570 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
12571 if test "${gl_cv_next_sys_time_h+set}" = set; then
12572 $as_echo_n "(cached) " >&6
12575 if test $ac_cv_header_sys_time_h = yes; then
12576 cat >conftest.$ac_ext <<_ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #include <sys/time.h>
12586 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12587 *) gl_absname_cpp="$ac_cpp" ;;
12589 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12590 sed -n '\#/sys/time.h#{
12591 s#.*"\(.*/sys/time.h\)".*#\1#
12597 gl_cv_next_sys_time_h='<'sys/time.h'>'
12601 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
12602 $as_echo "$gl_cv_next_sys_time_h" >&6; }
12604 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
12606 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12608 gl_next_as_first_directive='<'sys/time.h'>'
12610 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12611 gl_next_as_first_directive=$gl_cv_next_sys_time_h
12613 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
12618 if test $ac_cv_header_sys_time_h != yes; then
12622 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
12623 $as_echo_n "checking for struct timeval... " >&6; }
12624 if test "${gl_cv_sys_struct_timeval+set}" = set; then
12625 $as_echo_n "(cached) " >&6
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 #if HAVE_SYS_TIME_H
12634 #include <sys/time.h>
12641 static struct timeval x; x.tv_sec = x.tv_usec;
12646 rm -f conftest.$ac_objext
12647 if { (ac_try="$ac_compile"
12648 case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12653 $as_echo "$ac_try_echo") >&5
12654 (eval "$ac_compile") 2>conftest.er1
12656 grep -v '^ *+' conftest.er1 >conftest.err
12658 cat conftest.err >&5
12659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } && {
12661 test -z "$ac_c_werror_flag" ||
12662 test ! -s conftest.err
12663 } && test -s conftest.$ac_objext; then
12664 gl_cv_sys_struct_timeval=yes
12666 $as_echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12669 gl_cv_sys_struct_timeval=no
12672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
12675 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
12676 if test $gl_cv_sys_struct_timeval != yes; then
12677 HAVE_STRUCT_TIMEVAL=0
12682 for gl_func in gettimeofday; do
12683 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12684 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
12685 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12686 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
12687 $as_echo_n "(cached) " >&6
12689 cat >conftest.$ac_ext <<_ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12696 #if HAVE_SYS_TIME_H
12697 # include <sys/time.h>
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12717 $as_echo "$ac_try_echo") >&5
12718 (eval "$ac_compile") 2>conftest.er1
12720 grep -v '^ *+' conftest.er1 >conftest.err
12722 cat conftest.err >&5
12723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest.$ac_objext; then
12728 eval "$as_gl_Symbol=yes"
12730 $as_echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 eval "$as_gl_Symbol=no"
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
12739 $as_echo "$as_val"'`
12740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12741 $as_echo "$ac_res" >&6; }
12742 as_val=`eval 'as_val=${'$as_gl_Symbol'}
12743 $as_echo "$as_val"'`
12744 if test "x$as_val" = x""yes; then
12745 cat >>confdefs.h <<_ACEOF
12746 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12749 eval ac_cv_have_decl_$gl_func=yes
12765 GNULIB_NL_LANGINFO=0;
12766 HAVE_NL_LANGINFO=1;
12767 REPLACE_NL_LANGINFO=0;
12777 { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
12778 $as_echo_n "checking for working fcntl.h... " >&6; }
12779 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
12780 $as_echo_n "(cached) " >&6
12782 if test "$cross_compiling" = yes; then
12783 gl_cv_header_working_fcntl_h=cross-compiling
12785 cat >conftest.$ac_ext <<_ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 #include <sys/types.h>
12792 #include <sys/stat.h>
12793 #include <unistd.h>
12796 #define O_NOATIME 0
12799 #define O_NOFOLLOW 0
12801 static int const constants[] =
12803 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
12804 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
12811 int status = !constants;
12813 static char const sym[] = "conftest.sym";
12814 if (symlink (".", sym) != 0
12815 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
12820 static char const file[] = "confdefs.h";
12821 int fd = open (file, O_RDONLY | O_NOATIME);
12823 struct stat st0, st1;
12825 || fstat (fd, &st0) != 0
12827 || read (fd, &c, 1) != 1
12829 || stat (file, &st1) != 0
12830 || st0.st_atime != st1.st_atime)
12838 rm -f conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12845 $as_echo "$ac_try_echo") >&5
12846 (eval "$ac_link") 2>&5
12848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12850 { (case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12855 $as_echo "$ac_try_echo") >&5
12856 (eval "$ac_try") 2>&5
12858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 gl_cv_header_working_fcntl_h=yes
12862 $as_echo "$as_me: program exited with status $ac_status" >&5
12863 $as_echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ( exit $ac_status )
12868 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
12869 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
12870 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
12871 *) gl_cv_header_working_fcntl_h='no';;
12874 rm -rf conftest.dSYM
12875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12880 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
12881 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
12883 case $gl_cv_header_working_fcntl_h in #(
12884 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
12888 cat >>confdefs.h <<_ACEOF
12889 #define HAVE_WORKING_O_NOATIME $ac_val
12893 case $gl_cv_header_working_fcntl_h in #(
12894 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
12898 cat >>confdefs.h <<_ACEOF
12899 #define HAVE_WORKING_O_NOFOLLOW $ac_val
12904 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12905 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
12906 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12907 $as_echo_n "(cached) " >&6
12909 cat >conftest.$ac_ext <<_ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915 $ac_includes_default
12919 #ifndef getc_unlocked
12920 (void) getc_unlocked;
12927 rm -f conftest.$ac_objext
12928 if { (ac_try="$ac_compile"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12934 $as_echo "$ac_try_echo") >&5
12935 (eval "$ac_compile") 2>conftest.er1
12937 grep -v '^ *+' conftest.er1 >conftest.err
12939 cat conftest.err >&5
12940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } && {
12942 test -z "$ac_c_werror_flag" ||
12943 test ! -s conftest.err
12944 } && test -s conftest.$ac_objext; then
12945 ac_cv_have_decl_getc_unlocked=yes
12947 $as_echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_have_decl_getc_unlocked=no
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12956 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
12957 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
12959 cat >>confdefs.h <<_ACEOF
12960 #define HAVE_DECL_GETC_UNLOCKED 1
12965 cat >>confdefs.h <<_ACEOF
12966 #define HAVE_DECL_GETC_UNLOCKED 0
12975 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12976 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12977 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12978 $as_echo_n "(cached) " >&6
12980 cat >conftest.$ac_ext <<_ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12987 #include <features.h>
12988 #ifdef __GNU_LIBRARY__
12989 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12996 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12997 ac_cv_gnu_library_2_1=yes
12999 ac_cv_gnu_library_2_1=no
13006 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13007 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13009 GLIBC21="$ac_cv_gnu_library_2_1"
13013 if test "X$prefix" = "XNONE"; then
13014 acl_final_prefix="$ac_default_prefix"
13016 acl_final_prefix="$prefix"
13018 if test "X$exec_prefix" = "XNONE"; then
13019 acl_final_exec_prefix='${prefix}'
13021 acl_final_exec_prefix="$exec_prefix"
13023 acl_save_prefix="$prefix"
13024 prefix="$acl_final_prefix"
13025 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13026 prefix="$acl_save_prefix"
13029 # Check whether --with-gnu-ld was given.
13030 if test "${with_gnu_ld+set}" = set; then
13031 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13036 # Prepare PATH_SEPARATOR.
13037 # The user is always right.
13038 if test "${PATH_SEPARATOR+set}" != set; then
13039 echo "#! /bin/sh" >conf$$.sh
13040 echo "exit 0" >>conf$$.sh
13042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13050 if test "$GCC" = yes; then
13051 # Check if gcc -print-prog-name=ld gives a path.
13052 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13053 $as_echo_n "checking for ld used by GCC... " >&6; }
13056 # gcc leaves a trailing carriage return which upsets mingw
13057 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13059 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13062 # Accept absolute paths.
13063 [\\/]* | [A-Za-z]:[\\/]*)
13064 re_direlt='/[^/][^/]*/\.\./'
13065 # Canonicalize the path of ld
13066 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13067 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13068 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13070 test -z "$LD" && LD="$ac_prog"
13073 # If it fails, then pretend we aren't using GCC.
13077 # If it is relative, then search for the first ld in PATH.
13078 with_gnu_ld=unknown
13081 elif test "$with_gnu_ld" = yes; then
13082 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13083 $as_echo_n "checking for GNU ld... " >&6; }
13085 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13086 $as_echo_n "checking for non-GNU ld... " >&6; }
13088 if test "${acl_cv_path_LD+set}" = set; then
13089 $as_echo_n "(cached) " >&6
13091 if test -z "$LD"; then
13092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13093 for ac_dir in $PATH; do
13094 test -z "$ac_dir" && ac_dir=.
13095 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13096 acl_cv_path_LD="$ac_dir/$ac_prog"
13097 # Check to see if the program is GNU ld. I'd rather use --version,
13098 # but apparently some GNU ld's only accept -v.
13099 # Break only if it was the GNU/non-GNU ld that we prefer.
13100 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13101 *GNU* | *'with BFD'*)
13102 test "$with_gnu_ld" != no && break ;;
13104 test "$with_gnu_ld" != yes && break ;;
13110 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13114 LD="$acl_cv_path_LD"
13115 if test -n "$LD"; then
13116 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13117 $as_echo "$LD" >&6; }
13119 { $as_echo "$as_me:$LINENO: result: no" >&5
13120 $as_echo "no" >&6; }
13122 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13123 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13124 { (exit 1); exit 1; }; }
13125 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13127 if test "${acl_cv_prog_gnu_ld+set}" = set; then
13128 $as_echo_n "(cached) " >&6
13130 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13131 case `$LD -v 2>&1 </dev/null` in
13132 *GNU* | *'with BFD'*)
13133 acl_cv_prog_gnu_ld=yes ;;
13135 acl_cv_prog_gnu_ld=no ;;
13138 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13139 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13140 with_gnu_ld=$acl_cv_prog_gnu_ld
13145 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13146 $as_echo_n "checking for shared library run path origin... " >&6; }
13147 if test "${acl_cv_rpath+set}" = set; then
13148 $as_echo_n "(cached) " >&6
13151 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13152 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13154 rm -f ./conftest.sh
13158 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13159 $as_echo "$acl_cv_rpath" >&6; }
13161 libext="$acl_cv_libext"
13162 shlibext="$acl_cv_shlibext"
13163 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13164 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13165 hardcode_direct="$acl_cv_hardcode_direct"
13166 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13167 # Check whether --enable-rpath was given.
13168 if test "${enable_rpath+set}" = set; then
13169 enableval=$enable_rpath; :
13177 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13178 if test -n "$searchpath"; then
13179 acl_save_IFS="${IFS= }"; IFS=":"
13180 for searchdir in $searchpath; do
13181 if test -d "$searchdir"; then
13182 case "$searchdir" in
13183 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13184 *) searchdir=`cd "$searchdir" && pwd`
13185 case "$searchdir" in
13186 */lib64 ) acl_libdirstem=lib64 ;;
13191 IFS="$acl_save_IFS"
13196 gl_threads_api=none
13201 if test "$gl_use_threads" != no; then
13202 { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
13203 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13204 if test "${gl_cv_have_weak+set}" = set; then
13205 $as_echo_n "(cached) " >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13214 extern void xyzzy ();
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13231 $as_echo "$ac_try_echo") >&5
13232 (eval "$ac_link") 2>conftest.er1
13234 grep -v '^ *+' conftest.er1 >conftest.err
13236 cat conftest.err >&5
13237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } && {
13239 test -z "$ac_c_werror_flag" ||
13240 test ! -s conftest.err
13241 } && test -s conftest$ac_exeext && {
13242 test "$cross_compiling" = yes ||
13243 $as_test_x conftest$ac_exeext
13245 gl_cv_have_weak=maybe
13247 $as_echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13253 rm -rf conftest.dSYM
13254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255 conftest$ac_exeext conftest.$ac_ext
13256 if test $gl_cv_have_weak = maybe; then
13257 if test "$cross_compiling" = yes; then
13258 cat >conftest.$ac_ext <<_ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13265 Extensible Linking Format
13269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13270 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then
13271 gl_cv_have_weak="guessing yes"
13273 gl_cv_have_weak="guessing no"
13279 cat >conftest.$ac_ext <<_ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13290 return (fputs == NULL);
13293 rm -f conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13300 $as_echo "$ac_try_echo") >&5
13301 (eval "$ac_link") 2>&5
13303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310 $as_echo "$ac_try_echo") >&5
13311 (eval "$ac_try") 2>&5
13313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 gl_cv_have_weak=yes
13317 $as_echo "$as_me: program exited with status $ac_status" >&5
13318 $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 ( exit $ac_status )
13324 rm -rf conftest.dSYM
13325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13332 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_weak" >&5
13333 $as_echo "$gl_cv_have_weak" >&6; }
13334 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
13335 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
13336 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
13337 if test "${ac_cv_header_pthread_h+set}" = set; then
13338 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13339 $as_echo_n "checking for pthread.h... " >&6; }
13340 if test "${ac_cv_header_pthread_h+set}" = set; then
13341 $as_echo_n "(cached) " >&6
13343 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13344 $as_echo "$ac_cv_header_pthread_h" >&6; }
13346 # Is the header compilable?
13347 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
13348 $as_echo_n "checking pthread.h usability... " >&6; }
13349 cat >conftest.$ac_ext <<_ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 $ac_includes_default
13356 #include <pthread.h>
13358 rm -f conftest.$ac_objext
13359 if { (ac_try="$ac_compile"
13360 case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13365 $as_echo "$ac_try_echo") >&5
13366 (eval "$ac_compile") 2>conftest.er1
13368 grep -v '^ *+' conftest.er1 >conftest.err
13370 cat conftest.err >&5
13371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } && {
13373 test -z "$ac_c_werror_flag" ||
13374 test ! -s conftest.err
13375 } && test -s conftest.$ac_objext; then
13376 ac_header_compiler=yes
13378 $as_echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13381 ac_header_compiler=no
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13386 $as_echo "$ac_header_compiler" >&6; }
13388 # Is the header present?
13389 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
13390 $as_echo_n "checking pthread.h presence... " >&6; }
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 #include <pthread.h>
13399 if { (ac_try="$ac_cpp conftest.$ac_ext"
13400 case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13405 $as_echo "$ac_try_echo") >&5
13406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13408 grep -v '^ *+' conftest.er1 >conftest.err
13410 cat conftest.err >&5
13411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } >/dev/null && {
13413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13414 test ! -s conftest.err
13416 ac_header_preproc=yes
13418 $as_echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13421 ac_header_preproc=no
13424 rm -f conftest.err conftest.$ac_ext
13425 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13426 $as_echo "$ac_header_preproc" >&6; }
13428 # So? What about this header?
13429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13431 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13432 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13433 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
13434 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
13435 ac_header_preproc=yes
13438 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13439 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13440 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13441 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13442 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
13443 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
13444 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
13445 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
13446 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13447 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
13448 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
13449 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
13453 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13454 $as_echo_n "checking for pthread.h... " >&6; }
13455 if test "${ac_cv_header_pthread_h+set}" = set; then
13456 $as_echo_n "(cached) " >&6
13458 ac_cv_header_pthread_h=$ac_header_preproc
13460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13461 $as_echo "$ac_cv_header_pthread_h" >&6; }
13464 if test "x$ac_cv_header_pthread_h" = x""yes; then
13465 gl_have_pthread_h=yes
13467 gl_have_pthread_h=no
13471 if test "$gl_have_pthread_h" = yes; then
13472 # Other possible tests:
13473 # -lpthreads (FSU threads, PCthreads)
13476 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
13477 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
13478 # the second one only in libpthread, and lock.c needs it.
13479 cat >conftest.$ac_ext <<_ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <pthread.h>
13489 pthread_mutex_lock((pthread_mutex_t*)0);
13490 pthread_mutexattr_init((pthread_mutexattr_t*)0);
13495 rm -f conftest.$ac_objext conftest$ac_exeext
13496 if { (ac_try="$ac_link"
13497 case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13502 $as_echo "$ac_try_echo") >&5
13503 (eval "$ac_link") 2>conftest.er1
13505 grep -v '^ *+' conftest.er1 >conftest.err
13507 cat conftest.err >&5
13508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } && {
13510 test -z "$ac_c_werror_flag" ||
13511 test ! -s conftest.err
13512 } && test -s conftest$ac_exeext && {
13513 test "$cross_compiling" = yes ||
13514 $as_test_x conftest$ac_exeext
13516 gl_have_pthread=yes
13518 $as_echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13524 rm -rf conftest.dSYM
13525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13526 conftest$ac_exeext conftest.$ac_ext
13527 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13528 # since it is defined as a macro on OSF/1.)
13529 if test -n "$gl_have_pthread"; then
13530 # The program links fine without libpthread. But it may actually
13531 # need to link with libpthread in order to create multiple threads.
13532 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
13533 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13534 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
13535 $as_echo_n "(cached) " >&6
13537 ac_check_lib_save_LIBS=$LIBS
13538 LIBS="-lpthread $LIBS"
13539 cat >conftest.$ac_ext <<_ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13546 /* Override any GCC internal prototype to avoid an error.
13547 Use char because int might match the return type of a GCC
13548 builtin and then its argument prototype would still apply. */
13552 char pthread_kill ();
13556 return pthread_kill ();
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568 $as_echo "$ac_try_echo") >&5
13569 (eval "$ac_link") 2>conftest.er1
13571 grep -v '^ *+' conftest.er1 >conftest.err
13573 cat conftest.err >&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } && {
13576 test -z "$ac_c_werror_flag" ||
13577 test ! -s conftest.err
13578 } && test -s conftest$ac_exeext && {
13579 test "$cross_compiling" = yes ||
13580 $as_test_x conftest$ac_exeext
13582 ac_cv_lib_pthread_pthread_kill=yes
13584 $as_echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_cv_lib_pthread_pthread_kill=no
13590 rm -rf conftest.dSYM
13591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13592 conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_check_lib_save_LIBS
13595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
13596 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13597 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
13598 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
13599 # On Solaris and HP-UX, most pthread functions exist also in libc.
13600 # Therefore pthread_in_use() needs to actually try to create a
13601 # thread: pthread_create from libc will fail, whereas
13602 # pthread_create will actually create a thread.
13606 cat >>confdefs.h <<\_ACEOF
13607 #define PTHREAD_IN_USE_DETECTION_HARD 1
13615 # Some library is needed. Try libpthread and libc_r.
13616 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
13617 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13618 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
13619 $as_echo_n "(cached) " >&6
13621 ac_check_lib_save_LIBS=$LIBS
13622 LIBS="-lpthread $LIBS"
13623 cat >conftest.$ac_ext <<_ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13630 /* Override any GCC internal prototype to avoid an error.
13631 Use char because int might match the return type of a GCC
13632 builtin and then its argument prototype would still apply. */
13636 char pthread_kill ();
13640 return pthread_kill ();
13645 rm -f conftest.$ac_objext conftest$ac_exeext
13646 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } && {
13660 test -z "$ac_c_werror_flag" ||
13661 test ! -s conftest.err
13662 } && test -s conftest$ac_exeext && {
13663 test "$cross_compiling" = yes ||
13664 $as_test_x conftest$ac_exeext
13666 ac_cv_lib_pthread_pthread_kill=yes
13668 $as_echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13671 ac_cv_lib_pthread_pthread_kill=no
13674 rm -rf conftest.dSYM
13675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13676 conftest$ac_exeext conftest.$ac_ext
13677 LIBS=$ac_check_lib_save_LIBS
13679 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
13680 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13681 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
13682 gl_have_pthread=yes
13683 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
13684 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
13687 if test -z "$gl_have_pthread"; then
13689 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
13690 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
13691 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
13692 $as_echo_n "(cached) " >&6
13694 ac_check_lib_save_LIBS=$LIBS
13696 cat >conftest.$ac_ext <<_ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13703 /* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13709 char pthread_kill ();
13713 return pthread_kill ();
13718 rm -f conftest.$ac_objext conftest$ac_exeext
13719 if { (ac_try="$ac_link"
13720 case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13725 $as_echo "$ac_try_echo") >&5
13726 (eval "$ac_link") 2>conftest.er1
13728 grep -v '^ *+' conftest.er1 >conftest.err
13730 cat conftest.err >&5
13731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } && {
13733 test -z "$ac_c_werror_flag" ||
13734 test ! -s conftest.err
13735 } && test -s conftest$ac_exeext && {
13736 test "$cross_compiling" = yes ||
13737 $as_test_x conftest$ac_exeext
13739 ac_cv_lib_c_r_pthread_kill=yes
13741 $as_echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13744 ac_cv_lib_c_r_pthread_kill=no
13747 rm -rf conftest.dSYM
13748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13749 conftest$ac_exeext conftest.$ac_ext
13750 LIBS=$ac_check_lib_save_LIBS
13752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
13753 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
13754 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
13755 gl_have_pthread=yes
13756 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
13757 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
13762 if test -n "$gl_have_pthread"; then
13763 gl_threads_api=posix
13765 cat >>confdefs.h <<\_ACEOF
13766 #define USE_POSIX_THREADS 1
13769 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
13770 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
13772 cat >>confdefs.h <<\_ACEOF
13773 #define USE_POSIX_THREADS_WEAK 1
13783 if test -z "$gl_have_pthread"; then
13784 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
13785 gl_have_solaristhread=
13786 gl_save_LIBS="$LIBS"
13787 LIBS="$LIBS -lthread"
13788 cat >conftest.$ac_ext <<_ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13795 #include <thread.h>
13806 rm -f conftest.$ac_objext conftest$ac_exeext
13807 if { (ac_try="$ac_link"
13808 case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13813 $as_echo "$ac_try_echo") >&5
13814 (eval "$ac_link") 2>conftest.er1
13816 grep -v '^ *+' conftest.er1 >conftest.err
13818 cat conftest.err >&5
13819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } && {
13821 test -z "$ac_c_werror_flag" ||
13822 test ! -s conftest.err
13823 } && test -s conftest$ac_exeext && {
13824 test "$cross_compiling" = yes ||
13825 $as_test_x conftest$ac_exeext
13827 gl_have_solaristhread=yes
13829 $as_echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13835 rm -rf conftest.dSYM
13836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13837 conftest$ac_exeext conftest.$ac_ext
13838 LIBS="$gl_save_LIBS"
13839 if test -n "$gl_have_solaristhread"; then
13840 gl_threads_api=solaris
13842 LTLIBTHREAD=-lthread
13843 LIBMULTITHREAD="$LIBTHREAD"
13844 LTLIBMULTITHREAD="$LTLIBTHREAD"
13846 cat >>confdefs.h <<\_ACEOF
13847 #define USE_SOLARIS_THREADS 1
13850 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
13852 cat >>confdefs.h <<\_ACEOF
13853 #define USE_SOLARIS_THREADS_WEAK 1
13862 if test "$gl_use_threads" = pth; then
13863 gl_save_CPPFLAGS="$CPPFLAGS"
13869 { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
13870 $as_echo_n "checking how to link with libpth... " >&6; }
13871 if test "${ac_cv_libpth_libs+set}" = set; then
13872 $as_echo_n "(cached) " >&6
13880 acl_save_prefix="$prefix"
13881 prefix="$acl_final_prefix"
13882 acl_save_exec_prefix="$exec_prefix"
13883 exec_prefix="$acl_final_exec_prefix"
13885 eval additional_includedir=\"$includedir\"
13886 eval additional_libdir=\"$libdir\"
13888 exec_prefix="$acl_save_exec_prefix"
13889 prefix="$acl_save_prefix"
13892 # Check whether --with-libpth-prefix was given.
13893 if test "${with_libpth_prefix+set}" = set; then
13894 withval=$with_libpth_prefix;
13895 if test "X$withval" = "Xno"; then
13898 if test "X$withval" = "X"; then
13900 acl_save_prefix="$prefix"
13901 prefix="$acl_final_prefix"
13902 acl_save_exec_prefix="$exec_prefix"
13903 exec_prefix="$acl_final_exec_prefix"
13905 eval additional_includedir=\"$includedir\"
13906 eval additional_libdir=\"$libdir\"
13908 exec_prefix="$acl_save_exec_prefix"
13909 prefix="$acl_save_prefix"
13912 additional_includedir="$withval/include"
13913 additional_libdir="$withval/$acl_libdirstem"
13924 names_already_handled=
13925 names_next_round='pth '
13926 while test -n "$names_next_round"; do
13927 names_this_round="$names_next_round"
13929 for name in $names_this_round; do
13931 for n in $names_already_handled; do
13932 if test "$n" = "$name"; then
13933 already_handled=yes
13937 if test -z "$already_handled"; then
13938 names_already_handled="$names_already_handled $name"
13939 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13940 eval value=\"\$HAVE_LIB$uppername\"
13941 if test -n "$value"; then
13942 if test "$value" = yes; then
13943 eval value=\"\$LIB$uppername\"
13944 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
13945 eval value=\"\$LTLIB$uppername\"
13946 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
13955 if test $use_additional = yes; then
13956 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13957 found_dir="$additional_libdir"
13958 found_so="$additional_libdir/lib$name.$shlibext"
13959 if test -f "$additional_libdir/lib$name.la"; then
13960 found_la="$additional_libdir/lib$name.la"
13963 if test -f "$additional_libdir/lib$name.$libext"; then
13964 found_dir="$additional_libdir"
13965 found_a="$additional_libdir/lib$name.$libext"
13966 if test -f "$additional_libdir/lib$name.la"; then
13967 found_la="$additional_libdir/lib$name.la"
13972 if test "X$found_dir" = "X"; then
13973 for x in $LDFLAGS $LTLIBPTH; do
13975 acl_save_prefix="$prefix"
13976 prefix="$acl_final_prefix"
13977 acl_save_exec_prefix="$exec_prefix"
13978 exec_prefix="$acl_final_exec_prefix"
13980 exec_prefix="$acl_save_exec_prefix"
13981 prefix="$acl_save_prefix"
13985 dir=`echo "X$x" | sed -e 's/^X-L//'`
13986 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13988 found_so="$dir/lib$name.$shlibext"
13989 if test -f "$dir/lib$name.la"; then
13990 found_la="$dir/lib$name.la"
13993 if test -f "$dir/lib$name.$libext"; then
13995 found_a="$dir/lib$name.$libext"
13996 if test -f "$dir/lib$name.la"; then
13997 found_la="$dir/lib$name.la"
14003 if test "X$found_dir" != "X"; then
14008 if test "X$found_dir" != "X"; then
14009 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
14010 if test "X$found_so" != "X"; then
14011 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14012 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14015 for x in $ltrpathdirs; do
14016 if test "X$x" = "X$found_dir"; then
14021 if test -z "$haveit"; then
14022 ltrpathdirs="$ltrpathdirs $found_dir"
14024 if test "$hardcode_direct" = yes; then
14025 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14027 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14028 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14030 for x in $rpathdirs; do
14031 if test "X$x" = "X$found_dir"; then
14036 if test -z "$haveit"; then
14037 rpathdirs="$rpathdirs $found_dir"
14041 for x in $LDFLAGS $LIBPTH; do
14043 acl_save_prefix="$prefix"
14044 prefix="$acl_final_prefix"
14045 acl_save_exec_prefix="$exec_prefix"
14046 exec_prefix="$acl_final_exec_prefix"
14048 exec_prefix="$acl_save_exec_prefix"
14049 prefix="$acl_save_prefix"
14051 if test "X$x" = "X-L$found_dir"; then
14056 if test -z "$haveit"; then
14057 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
14059 if test "$hardcode_minus_L" != no; then
14060 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14062 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14068 if test "X$found_a" != "X"; then
14069 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
14071 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
14074 additional_includedir=
14075 case "$found_dir" in
14076 */$acl_libdirstem | */$acl_libdirstem/)
14077 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14078 additional_includedir="$basedir/include"
14081 if test "X$additional_includedir" != "X"; then
14082 if test "X$additional_includedir" != "X/usr/include"; then
14084 if test "X$additional_includedir" = "X/usr/local/include"; then
14085 if test -n "$GCC"; then
14087 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14091 if test -z "$haveit"; then
14092 for x in $CPPFLAGS $INCPTH; do
14094 acl_save_prefix="$prefix"
14095 prefix="$acl_final_prefix"
14096 acl_save_exec_prefix="$exec_prefix"
14097 exec_prefix="$acl_final_exec_prefix"
14099 exec_prefix="$acl_save_exec_prefix"
14100 prefix="$acl_save_prefix"
14102 if test "X$x" = "X-I$additional_includedir"; then
14107 if test -z "$haveit"; then
14108 if test -d "$additional_includedir"; then
14109 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
14115 if test -n "$found_la"; then
14116 save_libdir="$libdir"
14117 case "$found_la" in
14118 */* | *\\*) . "$found_la" ;;
14119 *) . "./$found_la" ;;
14121 libdir="$save_libdir"
14122 for dep in $dependency_libs; do
14125 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14126 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14128 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14129 if test -n "$GCC"; then
14131 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14135 if test -z "$haveit"; then
14137 for x in $LDFLAGS $LIBPTH; do
14139 acl_save_prefix="$prefix"
14140 prefix="$acl_final_prefix"
14141 acl_save_exec_prefix="$exec_prefix"
14142 exec_prefix="$acl_final_exec_prefix"
14144 exec_prefix="$acl_save_exec_prefix"
14145 prefix="$acl_save_prefix"
14147 if test "X$x" = "X-L$additional_libdir"; then
14152 if test -z "$haveit"; then
14153 if test -d "$additional_libdir"; then
14154 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
14158 for x in $LDFLAGS $LTLIBPTH; do
14160 acl_save_prefix="$prefix"
14161 prefix="$acl_final_prefix"
14162 acl_save_exec_prefix="$exec_prefix"
14163 exec_prefix="$acl_final_exec_prefix"
14165 exec_prefix="$acl_save_exec_prefix"
14166 prefix="$acl_save_prefix"
14168 if test "X$x" = "X-L$additional_libdir"; then
14173 if test -z "$haveit"; then
14174 if test -d "$additional_libdir"; then
14175 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
14182 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14183 if test "$enable_rpath" != no; then
14185 for x in $rpathdirs; do
14186 if test "X$x" = "X$dir"; then
14191 if test -z "$haveit"; then
14192 rpathdirs="$rpathdirs $dir"
14195 for x in $ltrpathdirs; do
14196 if test "X$x" = "X$dir"; then
14201 if test -z "$haveit"; then
14202 ltrpathdirs="$ltrpathdirs $dir"
14207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14210 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14213 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
14214 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
14220 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14221 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
14227 if test "X$rpathdirs" != "X"; then
14228 if test -n "$hardcode_libdir_separator"; then
14230 for found_dir in $rpathdirs; do
14231 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14233 acl_save_libdir="$libdir"
14235 eval flag=\"$hardcode_libdir_flag_spec\"
14236 libdir="$acl_save_libdir"
14237 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14239 for found_dir in $rpathdirs; do
14240 acl_save_libdir="$libdir"
14241 libdir="$found_dir"
14242 eval flag=\"$hardcode_libdir_flag_spec\"
14243 libdir="$acl_save_libdir"
14244 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14248 if test "X$ltrpathdirs" != "X"; then
14249 for found_dir in $ltrpathdirs; do
14250 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
14254 ac_cv_libpth_libs="$LIBPTH"
14255 ac_cv_libpth_ltlibs="$LTLIBPTH"
14256 ac_cv_libpth_cppflags="$INCPTH"
14259 { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
14260 $as_echo "$ac_cv_libpth_libs" >&6; }
14261 LIBPTH="$ac_cv_libpth_libs"
14262 LTLIBPTH="$ac_cv_libpth_ltlibs"
14263 INCPTH="$ac_cv_libpth_cppflags"
14265 for element in $INCPTH; do
14267 for x in $CPPFLAGS; do
14269 acl_save_prefix="$prefix"
14270 prefix="$acl_final_prefix"
14271 acl_save_exec_prefix="$exec_prefix"
14272 exec_prefix="$acl_final_exec_prefix"
14274 exec_prefix="$acl_save_exec_prefix"
14275 prefix="$acl_save_prefix"
14277 if test "X$x" = "X$element"; then
14282 if test -z "$haveit"; then
14283 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14294 gl_save_LIBS="$LIBS"
14296 cat >conftest.$ac_ext <<_ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (ac_try="$ac_link"
14313 case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14318 $as_echo "$ac_try_echo") >&5
14319 (eval "$ac_link") 2>conftest.er1
14321 grep -v '^ *+' conftest.er1 >conftest.err
14323 cat conftest.err >&5
14324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } && {
14326 test -z "$ac_c_werror_flag" ||
14327 test ! -s conftest.err
14328 } && test -s conftest$ac_exeext && {
14329 test "$cross_compiling" = yes ||
14330 $as_test_x conftest$ac_exeext
14334 $as_echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14340 rm -rf conftest.dSYM
14341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14342 conftest$ac_exeext conftest.$ac_ext
14343 LIBS="$gl_save_LIBS"
14344 if test -n "$gl_have_pth"; then
14346 LIBTHREAD="$LIBPTH"
14347 LTLIBTHREAD="$LTLIBPTH"
14348 LIBMULTITHREAD="$LIBTHREAD"
14349 LTLIBMULTITHREAD="$LTLIBTHREAD"
14351 cat >>confdefs.h <<\_ACEOF
14352 #define USE_PTH_THREADS 1
14355 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
14356 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
14358 cat >>confdefs.h <<\_ACEOF
14359 #define USE_PTH_THREADS_WEAK 1
14367 CPPFLAGS="$gl_save_CPPFLAGS"
14370 if test -z "$gl_have_pthread"; then
14371 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
14372 if { case "$host_os" in
14377 gl_threads_api=win32
14379 cat >>confdefs.h <<\_ACEOF
14380 #define USE_WIN32_THREADS 1
14387 { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
14388 $as_echo_n "checking for multithread API to use... " >&6; }
14389 { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
14390 $as_echo "$gl_threads_api" >&6; }
14412 GNULIB_UTIMENSAT=0;
14426 REPLACE_FUTIMENS=0;
14432 REPLACE_UTIMENSAT=0;
14440 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14441 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
14442 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14443 $as_echo_n "(cached) " >&6
14445 rm -f conftest.sym conftest.file
14446 echo >conftest.file
14447 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14448 if test "$cross_compiling" = yes; then
14449 ac_cv_func_lstat_dereferences_slashed_symlink=no
14451 cat >conftest.$ac_ext <<_ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14457 $ac_includes_default
14462 /* Linux will dereference the symlink and fail.
14463 That is better in the sense that it means we will not
14464 have to compile and use the lstat wrapper. */
14465 return lstat ("conftest.sym/", &sbuf) == 0;
14470 rm -f conftest$ac_exeext
14471 if { (ac_try="$ac_link"
14472 case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14477 $as_echo "$ac_try_echo") >&5
14478 (eval "$ac_link") 2>&5
14480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14487 $as_echo "$ac_try_echo") >&5
14488 (eval "$ac_try") 2>&5
14490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14494 $as_echo "$as_me: program exited with status $ac_status" >&5
14495 $as_echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14498 ( exit $ac_status )
14499 ac_cv_func_lstat_dereferences_slashed_symlink=no
14501 rm -rf conftest.dSYM
14502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14507 # If the `ln -s' command failed, then we probably don't even
14508 # have an lstat function.
14509 ac_cv_func_lstat_dereferences_slashed_symlink=no
14511 rm -f conftest.sym conftest.file
14514 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14515 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14517 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14519 cat >>confdefs.h <<_ACEOF
14520 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14524 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14533 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14540 GNULIB_CALLOC_POSIX=0;
14541 GNULIB_CANONICALIZE_FILE_NAME=0;
14542 GNULIB_GETLOADAVG=0;
14543 GNULIB_GETSUBOPT=0;
14545 GNULIB_MALLOC_POSIX=0;
14548 GNULIB_MKOSTEMPS=0;
14554 GNULIB_REALLOC_POSIX=0;
14565 HAVE_CANONICALIZE_FILE_NAME=1;
14566 HAVE_DECL_GETLOADAVG=1;
14582 HAVE_STRUCT_RANDOM_DATA=1;
14583 HAVE_SYS_LOADAVG_H=0;
14587 REPLACE_CANONICALIZE_FILE_NAME=0;
14592 REPLACE_REALPATH=0;
14595 REPLACE_UNSETENV=0;
14598 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
14599 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
14600 if test "${gl_cv_func_malloc_posix+set}" = set; then
14601 $as_echo_n "(cached) " >&6
14604 cat >conftest.$ac_ext <<_ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14614 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14622 rm -f conftest.$ac_objext
14623 if { (ac_try="$ac_compile"
14624 case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14629 $as_echo "$ac_try_echo") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14632 grep -v '^ *+' conftest.er1 >conftest.err
14634 cat conftest.err >&5
14635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } && {
14637 test -z "$ac_c_werror_flag" ||
14638 test ! -s conftest.err
14639 } && test -s conftest.$ac_objext; then
14640 gl_cv_func_malloc_posix=yes
14642 $as_echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14645 gl_cv_func_malloc_posix=no
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
14652 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14656 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
14657 $as_echo_n "checking for mbstate_t... " >&6; }
14658 if test "${ac_cv_type_mbstate_t+set}" = set; then
14659 $as_echo_n "(cached) " >&6
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 $ac_includes_default
14668 # include <wchar.h>
14672 mbstate_t x; return sizeof x;
14677 rm -f conftest.$ac_objext
14678 if { (ac_try="$ac_compile"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14684 $as_echo "$ac_try_echo") >&5
14685 (eval "$ac_compile") 2>conftest.er1
14687 grep -v '^ *+' conftest.er1 >conftest.err
14689 cat conftest.err >&5
14690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } && {
14692 test -z "$ac_c_werror_flag" ||
14693 test ! -s conftest.err
14694 } && test -s conftest.$ac_objext; then
14695 ac_cv_type_mbstate_t=yes
14697 $as_echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14700 ac_cv_type_mbstate_t=no
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14706 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14707 if test $ac_cv_type_mbstate_t = yes; then
14709 cat >>confdefs.h <<\_ACEOF
14710 #define HAVE_MBSTATE_T 1
14715 cat >>confdefs.h <<\_ACEOF
14716 #define mbstate_t int
14736 { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
14737 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14738 if test "${gt_cv_locale_ja+set}" = set; then
14739 $as_echo_n "(cached) " >&6
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14749 #include <locale.h>
14751 #if HAVE_LANGINFO_CODESET
14752 # include <langinfo.h>
14754 #include <stdlib.h>
14755 #include <string.h>
14761 /* Check whether the given locale name is recognized by the system. */
14762 if (setlocale (LC_ALL, "") == NULL) return 1;
14763 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14764 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14765 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14766 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14767 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14768 some unit tests fail. */
14769 #if HAVE_LANGINFO_CODESET
14771 const char *cs = nl_langinfo (CODESET);
14772 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14777 /* On Cygwin, avoid locale names without encoding suffix, because the
14778 locale_charset() function relies on the encoding suffix. Note that
14779 LC_ALL is set on the command line. */
14780 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14782 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
14783 on Cygwin 1.5.x. */
14784 if (MB_CUR_MAX == 1)
14786 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14787 This excludes the UTF-8 encoding. */
14788 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14789 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14790 for (p = buf; *p != '\0'; p++)
14791 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14798 (eval $ac_link) 2>&5
14800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && test -s conftest$ac_exeext; then
14802 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14803 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
14804 # configure script would override the LC_ALL setting. Likewise for
14805 # LC_CTYPE, which is also set at the beginning of the configure script.
14806 # Test for the AIX locale name.
14807 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14808 gt_cv_locale_ja=ja_JP
14810 # Test for the locale name with explicit encoding suffix.
14811 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14812 gt_cv_locale_ja=ja_JP.EUC-JP
14814 # Test for the HP-UX, OSF/1, NetBSD locale name.
14815 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14816 gt_cv_locale_ja=ja_JP.eucJP
14818 # Test for the IRIX, FreeBSD locale name.
14819 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14820 gt_cv_locale_ja=ja_JP.EUC
14822 # Test for the Solaris 7 locale name.
14823 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14826 # Special test for NetBSD 1.6.
14827 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
14828 gt_cv_locale_ja=ja_JP.eucJP
14831 gt_cv_locale_ja=none
14842 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
14843 $as_echo "$gt_cv_locale_ja" >&6; }
14844 LOCALE_JA=$gt_cv_locale_ja
14850 { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
14851 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14852 if test "${gt_cv_locale_zh_CN+set}" = set; then
14853 $as_echo_n "(cached) " >&6
14856 cat >conftest.$ac_ext <<_ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14863 #include <locale.h>
14864 #include <stdlib.h>
14866 #if HAVE_LANGINFO_CODESET
14867 # include <langinfo.h>
14869 #include <stdlib.h>
14870 #include <string.h>
14876 /* Check whether the given locale name is recognized by the system. */
14877 if (setlocale (LC_ALL, "") == NULL) return 1;
14878 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14879 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14880 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14881 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14882 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14883 some unit tests fail. */
14884 #if HAVE_LANGINFO_CODESET
14886 const char *cs = nl_langinfo (CODESET);
14887 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14892 /* On Cygwin, avoid locale names without encoding suffix, because the
14893 locale_charset() function relies on the encoding suffix. Note that
14894 LC_ALL is set on the command line. */
14895 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14897 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14898 This excludes the UTF-8 encoding. */
14899 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14900 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14901 for (p = buf; *p != '\0'; p++)
14902 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14904 /* Check whether a typical GB18030 multibyte sequence is recognized as a
14905 single wide character. This excludes the GB2312 and GBK encodings. */
14906 if (mblen ("\203\062\332\066", 5) != 4)
14912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913 (eval $ac_link) 2>&5
14915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && test -s conftest$ac_exeext; then
14917 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14918 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
14919 # configure script would override the LC_ALL setting. Likewise for
14920 # LC_CTYPE, which is also set at the beginning of the configure script.
14921 # Test for the locale name without encoding suffix.
14922 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14923 gt_cv_locale_zh_CN=zh_CN
14925 # Test for the locale name with explicit encoding suffix.
14926 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14927 gt_cv_locale_zh_CN=zh_CN.GB18030
14930 gt_cv_locale_zh_CN=none
14934 # If there was a link error, due to mblen(), the system is so old that
14935 # it certainly doesn't have a chinese locale.
14936 gt_cv_locale_zh_CN=none
14941 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
14942 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14943 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
14948 { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
14949 $as_echo_n "checking for a french Unicode locale... " >&6; }
14950 if test "${gt_cv_locale_fr_utf8+set}" = set; then
14951 $as_echo_n "(cached) " >&6
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14961 #include <locale.h>
14963 #if HAVE_LANGINFO_CODESET
14964 # include <langinfo.h>
14966 #include <stdlib.h>
14967 #include <string.h>
14971 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14972 imitates locale dependent behaviour by looking at the environment
14973 variables, and all locales use the UTF-8 encoding. */
14974 #if !(defined __BEOS__ || defined __HAIKU__)
14975 /* Check whether the given locale name is recognized by the system. */
14976 if (setlocale (LC_ALL, "") == NULL) return 1;
14977 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14978 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14979 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14980 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14981 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14982 some unit tests fail. */
14983 # if HAVE_LANGINFO_CODESET
14985 const char *cs = nl_langinfo (CODESET);
14986 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14991 /* On Cygwin, avoid locale names without encoding suffix, because the
14992 locale_charset() function relies on the encoding suffix. Note that
14993 LC_ALL is set on the command line. */
14994 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14996 /* Check whether in the abbreviation of the second month, the second
14997 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14998 two bytes long, with UTF-8 encoding. */
14999 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15000 if (strftime (buf, sizeof (buf), "%b", &t) < 4
15001 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
15004 /* Check whether the decimal separator is a comma.
15005 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15006 are nl_langinfo(RADIXCHAR) are both ".". */
15007 if (localeconv () ->decimal_point[0] != ',') return 1;
15012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15013 (eval $ac_link) 2>&5
15015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } && test -s conftest$ac_exeext; then
15017 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15018 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
15019 # configure script would override the LC_ALL setting. Likewise for
15020 # LC_CTYPE, which is also set at the beginning of the configure script.
15021 # Test for the usual locale name.
15022 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15023 gt_cv_locale_fr_utf8=fr_FR
15025 # Test for the locale name with explicit encoding suffix.
15026 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15027 gt_cv_locale_fr_utf8=fr_FR.UTF-8
15029 # Test for the Solaris 7 locale name.
15030 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15031 gt_cv_locale_fr_utf8=fr.UTF-8
15034 gt_cv_locale_fr_utf8=none
15042 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
15043 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15044 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
15064 GNULIB_RAWMEMCHR=0;
15067 GNULIB_STRCHRNUL=0;
15075 GNULIB_STRCASESTR=0;
15082 GNULIB_MBSCASECMP=0;
15083 GNULIB_MBSNCASECMP=0;
15084 GNULIB_MBSPCASECMP=0;
15085 GNULIB_MBSCASESTR=0;
15092 GNULIB_STRSIGNAL=0;
15093 GNULIB_STRVERSCMP=0;
15096 HAVE_DECL_MEMMEM=1;
15098 HAVE_DECL_MEMRCHR=1;
15103 HAVE_DECL_STRDUP=1;
15104 HAVE_DECL_STRNDUP=1;
15105 HAVE_DECL_STRNLEN=1;
15109 HAVE_DECL_STRTOK_R=1;
15110 HAVE_DECL_STRSIGNAL=1;
15117 REPLACE_STRCASESTR=0;
15118 REPLACE_STRERROR=0;
15122 REPLACE_STRSIGNAL=0;
15123 REPLACE_STRTOK_R=0;
15124 UNDEFINE_STRTOK_R=0;
15139 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15140 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15141 # irrelevant for anonymous mappings.
15142 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
15143 $as_echo_n "checking for mmap... " >&6; }
15144 if test "${ac_cv_func_mmap+set}" = set; then
15145 $as_echo_n "(cached) " >&6
15147 cat >conftest.$ac_ext <<_ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15153 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
15154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15155 #define mmap innocuous_mmap
15157 /* System header to define __stub macros and hopefully few prototypes,
15158 which can conflict with char mmap (); below.
15159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15160 <limits.h> exists even on freestanding compilers. */
15163 # include <limits.h>
15165 # include <assert.h>
15170 /* Override any GCC internal prototype to avoid an error.
15171 Use char because int might match the return type of a GCC
15172 builtin and then its argument prototype would still apply. */
15177 /* The GNU C library defines this for functions which it implements
15178 to always fail with ENOSYS. Some functions are actually named
15179 something starting with __ and the normal name is an alias. */
15180 #if defined __stub_mmap || defined __stub___mmap
15192 rm -f conftest.$ac_objext conftest$ac_exeext
15193 if { (ac_try="$ac_link"
15194 case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15199 $as_echo "$ac_try_echo") >&5
15200 (eval "$ac_link") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1 >conftest.err
15204 cat conftest.err >&5
15205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest$ac_exeext && {
15210 test "$cross_compiling" = yes ||
15211 $as_test_x conftest$ac_exeext
15213 ac_cv_func_mmap=yes
15215 $as_echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15221 rm -rf conftest.dSYM
15222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15223 conftest$ac_exeext conftest.$ac_ext
15225 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
15226 $as_echo "$ac_cv_func_mmap" >&6; }
15227 if test "x$ac_cv_func_mmap" = x""yes; then
15234 # Try to allow MAP_ANONYMOUS.
15235 gl_have_mmap_anonymous=no
15236 if test $gl_have_mmap = yes; then
15237 { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
15238 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15239 cat >conftest.$ac_ext <<_ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15246 #include <sys/mman.h>
15247 #ifdef MAP_ANONYMOUS
15248 I cant identify this map.
15252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15253 $EGREP "I cant identify this map." >/dev/null 2>&1; then
15254 gl_have_mmap_anonymous=yes
15258 if test $gl_have_mmap_anonymous != yes; then
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15266 #include <sys/mman.h>
15268 I cant identify this map.
15272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15273 $EGREP "I cant identify this map." >/dev/null 2>&1; then
15275 cat >>confdefs.h <<\_ACEOF
15276 #define MAP_ANONYMOUS MAP_ANON
15279 gl_have_mmap_anonymous=yes
15284 { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
15285 $as_echo "$gl_have_mmap_anonymous" >&6; }
15286 if test $gl_have_mmap_anonymous = yes; then
15288 cat >>confdefs.h <<\_ACEOF
15289 #define HAVE_MAP_ANONYMOUS 1
15318 if test $ac_cv_func_memchr = yes; then
15319 # Detect platform-specific bugs in some versions of glibc:
15320 # memchr should not dereference anything with length 0
15321 # http://bugzilla.redhat.com/499689
15322 # memchr should not dereference overestimated length after a match
15323 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15324 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
15325 # Assume that memchr works on platforms that lack mprotect.
15326 { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
15327 $as_echo_n "checking whether memchr works... " >&6; }
15328 if test "${gl_cv_func_memchr_works+set}" = set; then
15329 $as_echo_n "(cached) " >&6
15331 if test "$cross_compiling" = yes; then
15332 gl_cv_func_memchr_works="guessing no"
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15341 #include <string.h>
15342 #if HAVE_SYS_MMAN_H
15343 # include <fcntl.h>
15344 # include <unistd.h>
15345 # include <sys/types.h>
15346 # include <sys/mman.h>
15348 # define MAP_FILE 0
15356 char *fence = NULL;
15357 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15358 # if HAVE_MAP_ANONYMOUS
15359 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15361 # else /* !HAVE_MAP_ANONYMOUS */
15362 const int flags = MAP_FILE | MAP_PRIVATE;
15363 int fd = open ("/dev/zero", O_RDONLY, 0666);
15367 int pagesize = getpagesize ();
15369 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15371 if (two_pages != (char *)(-1)
15372 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15373 fence = two_pages + pagesize;
15378 if (memchr (fence, 0, 0))
15380 strcpy (fence - 9, "12345678");
15381 if (memchr (fence - 9, 0, 79) != fence - 1)
15390 rm -f conftest$ac_exeext
15391 if { (ac_try="$ac_link"
15392 case "(($ac_try" in
15393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394 *) ac_try_echo=$ac_try;;
15396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15397 $as_echo "$ac_try_echo") >&5
15398 (eval "$ac_link") 2>&5
15400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15402 { (case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15407 $as_echo "$ac_try_echo") >&5
15408 (eval "$ac_try") 2>&5
15410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 gl_cv_func_memchr_works=yes
15414 $as_echo "$as_me: program exited with status $ac_status" >&5
15415 $as_echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ( exit $ac_status )
15419 gl_cv_func_memchr_works=no
15421 rm -rf conftest.dSYM
15422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15427 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
15428 $as_echo "$gl_cv_func_memchr_works" >&6; }
15429 if test "$gl_cv_func_memchr_works" != yes; then
15435 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15444 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15448 for ac_header in bp-sym.h
15450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15452 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15453 $as_echo_n "checking for $ac_header... " >&6; }
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455 $as_echo_n "(cached) " >&6
15457 ac_res=`eval 'as_val=${'$as_ac_Header'}
15458 $as_echo "$as_val"'`
15459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15460 $as_echo "$ac_res" >&6; }
15462 # Is the header compilable?
15463 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15464 $as_echo_n "checking $ac_header usability... " >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 $ac_includes_default
15472 #include <$ac_header>
15474 rm -f conftest.$ac_objext
15475 if { (ac_try="$ac_compile"
15476 case "(($ac_try" in
15477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478 *) ac_try_echo=$ac_try;;
15480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15481 $as_echo "$ac_try_echo") >&5
15482 (eval "$ac_compile") 2>conftest.er1
15484 grep -v '^ *+' conftest.er1 >conftest.err
15486 cat conftest.err >&5
15487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } && {
15489 test -z "$ac_c_werror_flag" ||
15490 test ! -s conftest.err
15491 } && test -s conftest.$ac_objext; then
15492 ac_header_compiler=yes
15494 $as_echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15497 ac_header_compiler=no
15500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15502 $as_echo "$ac_header_compiler" >&6; }
15504 # Is the header present?
15505 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15506 $as_echo_n "checking $ac_header presence... " >&6; }
15507 cat >conftest.$ac_ext <<_ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 #include <$ac_header>
15515 if { (ac_try="$ac_cpp conftest.$ac_ext"
15516 case "(($ac_try" in
15517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15521 $as_echo "$ac_try_echo") >&5
15522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15524 grep -v '^ *+' conftest.er1 >conftest.err
15526 cat conftest.err >&5
15527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } >/dev/null && {
15529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15530 test ! -s conftest.err
15532 ac_header_preproc=yes
15534 $as_echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 ac_header_preproc=no
15540 rm -f conftest.err conftest.$ac_ext
15541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15542 $as_echo "$ac_header_preproc" >&6; }
15544 # So? What about this header?
15545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15548 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15551 ac_header_preproc=yes
15554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15555 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15557 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15559 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15561 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15563 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15565 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15569 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 $as_echo_n "checking for $ac_header... " >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572 $as_echo_n "(cached) " >&6
15574 eval "$as_ac_Header=\$ac_header_preproc"
15576 ac_res=`eval 'as_val=${'$as_ac_Header'}
15577 $as_echo "$as_val"'`
15578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15579 $as_echo "$ac_res" >&6; }
15582 as_val=`eval 'as_val=${'$as_ac_Header'}
15583 $as_echo "$as_val"'`
15584 if test "x$as_val" = x""yes; then
15585 cat >>confdefs.h <<_ACEOF
15586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15597 gl_cv_c_multiarch=no
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 #ifndef __APPLE_CC__
15605 not a universal capable compiler
15610 rm -f conftest.$ac_objext
15611 if { (ac_try="$ac_compile"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15617 $as_echo "$ac_try_echo") >&5
15618 (eval "$ac_compile") 2>conftest.er1
15620 grep -v '^ *+' conftest.er1 >conftest.err
15622 cat conftest.err >&5
15623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } && {
15625 test -z "$ac_c_werror_flag" ||
15626 test ! -s conftest.err
15627 } && test -s conftest.$ac_objext; then
15631 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15632 if test -n "$prev"; then
15634 i?86 | x86_64 | ppc | ppc64)
15635 if test -z "$arch" || test "$arch" = "$word"; then
15638 gl_cv_c_multiarch=yes
15644 if test "x$word" = "x-arch"; then
15651 $as_echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658 if test $gl_cv_c_multiarch = yes; then
15660 cat >>confdefs.h <<\_ACEOF
15661 #define AA_APPLE_UNIVERSAL_BUILD 1
15664 APPLE_UNIVERSAL_BUILD=1
15666 APPLE_UNIVERSAL_BUILD=0
15676 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
15677 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
15678 if test "${gl_cv_var__system_configuration+set}" = set; then
15679 $as_echo_n "(cached) " >&6
15681 cat >conftest.$ac_ext <<_ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 #include <sys/systemcfg.h>
15692 double x = _system_configuration.physmem;
15693 if (x > 0.0) return 0;
15698 rm -f conftest.$ac_objext conftest$ac_exeext
15699 if { (ac_try="$ac_link"
15700 case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15705 $as_echo "$ac_try_echo") >&5
15706 (eval "$ac_link") 2>conftest.er1
15708 grep -v '^ *+' conftest.er1 >conftest.err
15710 cat conftest.err >&5
15711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest$ac_exeext && {
15716 test "$cross_compiling" = yes ||
15717 $as_test_x conftest$ac_exeext
15719 gl_cv_var__system_configuration=yes
15721 $as_echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15724 gl_cv_var__system_configuration=no
15727 rm -rf conftest.dSYM
15728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15729 conftest$ac_exeext conftest.$ac_ext
15731 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
15732 $as_echo "$gl_cv_var__system_configuration" >&6; }
15734 if test $gl_cv_var__system_configuration = yes; then
15736 cat >>confdefs.h <<\_ACEOF
15737 #define HAVE__SYSTEM_CONFIGURATION 1
15768 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
15769 $as_echo_n "checking for ssize_t... " >&6; }
15770 if test "${gt_cv_ssize_t+set}" = set; then
15771 $as_echo_n "(cached) " >&6
15773 cat >conftest.$ac_ext <<_ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 #include <sys/types.h>
15783 int x = sizeof (ssize_t *) + sizeof (ssize_t);
15789 rm -f conftest.$ac_objext
15790 if { (ac_try="$ac_compile"
15791 case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15796 $as_echo "$ac_try_echo") >&5
15797 (eval "$ac_compile") 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } && {
15804 test -z "$ac_c_werror_flag" ||
15805 test ! -s conftest.err
15806 } && test -s conftest.$ac_objext; then
15809 $as_echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
15818 $as_echo "$gt_cv_ssize_t" >&6; }
15819 if test $gt_cv_ssize_t = no; then
15821 cat >>confdefs.h <<\_ACEOF
15822 #define ssize_t int
15828 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15829 $as_echo_n "checking whether snprintf is declared... " >&6; }
15830 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15831 $as_echo_n "(cached) " >&6
15833 cat >conftest.$ac_ext <<_ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839 $ac_includes_default
15851 rm -f conftest.$ac_objext
15852 if { (ac_try="$ac_compile"
15853 case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15858 $as_echo "$ac_try_echo") >&5
15859 (eval "$ac_compile") 2>conftest.er1
15861 grep -v '^ *+' conftest.er1 >conftest.err
15863 cat conftest.err >&5
15864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } && {
15866 test -z "$ac_c_werror_flag" ||
15867 test ! -s conftest.err
15868 } && test -s conftest.$ac_objext; then
15869 ac_cv_have_decl_snprintf=yes
15871 $as_echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_cv_have_decl_snprintf=no
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15880 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
15881 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
15883 cat >>confdefs.h <<_ACEOF
15884 #define HAVE_DECL_SNPRINTF 1
15889 cat >>confdefs.h <<_ACEOF
15890 #define HAVE_DECL_SNPRINTF 0
15899 { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
15900 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
15901 if test "${ac_cv_win_or_dos+set}" = set; then
15902 $as_echo_n "(cached) " >&6
15905 cat >conftest.$ac_ext <<_ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15916 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
15917 neither MSDOS nor Windows
15923 rm -f conftest.$ac_objext
15924 if { (ac_try="$ac_compile"
15925 case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15930 $as_echo "$ac_try_echo") >&5
15931 (eval "$ac_compile") 2>conftest.er1
15933 grep -v '^ *+' conftest.er1 >conftest.err
15935 cat conftest.err >&5
15936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest.$ac_objext; then
15941 ac_cv_win_or_dos=yes
15943 $as_echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 ac_cv_win_or_dos=no
15949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
15953 $as_echo "$ac_cv_win_or_dos" >&6; }
15955 if test x"$ac_cv_win_or_dos" = xyes; then
15956 ac_fs_accepts_drive_letter_prefix=1
15957 ac_fs_backslash_is_file_name_separator=1
15958 { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
15959 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
15960 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
15961 $as_echo_n "(cached) " >&6
15964 cat >conftest.$ac_ext <<_ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15975 #if defined __CYGWIN__
15976 drive letters are always absolute
15982 rm -f conftest.$ac_objext
15983 if { (ac_try="$ac_compile"
15984 case "(($ac_try" in
15985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986 *) ac_try_echo=$ac_try;;
15988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15989 $as_echo "$ac_try_echo") >&5
15990 (eval "$ac_compile") 2>conftest.er1
15992 grep -v '^ *+' conftest.er1 >conftest.err
15994 cat conftest.err >&5
15995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } && {
15997 test -z "$ac_c_werror_flag" ||
15998 test ! -s conftest.err
15999 } && test -s conftest.$ac_objext; then
16000 ac_cv_drive_letter_can_be_relative=yes
16002 $as_echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16005 ac_cv_drive_letter_can_be_relative=no
16008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
16012 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
16013 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
16014 ac_fs_drive_letter_can_be_relative=1
16016 ac_fs_drive_letter_can_be_relative=0
16019 ac_fs_accepts_drive_letter_prefix=0
16020 ac_fs_backslash_is_file_name_separator=0
16021 ac_fs_drive_letter_can_be_relative=0
16025 cat >>confdefs.h <<_ACEOF
16026 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
16034 cat >>confdefs.h <<_ACEOF
16035 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
16040 cat >>confdefs.h <<_ACEOF
16041 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
16045 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
16046 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16047 if test "${ac_cv_header_stdbool_h+set}" = set; then
16048 $as_echo_n "(cached) " >&6
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16057 #include <stdbool.h>
16059 "error: bool is not defined"
16062 "error: false is not defined"
16065 "error: false is not 0"
16068 "error: true is not defined"
16071 "error: true is not 1"
16073 #ifndef __bool_true_false_are_defined
16074 "error: __bool_true_false_are_defined is not defined"
16077 struct s { _Bool s: 1; _Bool t; } s;
16079 char a[true == 1 ? 1 : -1];
16080 char b[false == 0 ? 1 : -1];
16081 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16082 char d[(bool) 0.5 == true ? 1 : -1];
16083 /* See body of main program for 'e'. */
16084 char f[(_Bool) 0.0 == false ? 1 : -1];
16086 char h[sizeof (_Bool)];
16087 char i[sizeof s.t];
16088 enum { j = false, k = true, l = false * true, m = true * 256 };
16089 /* The following fails for
16090 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16092 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16093 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16094 /* Catch a bug in an HP-UX C compiler. See
16095 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16096 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16108 /* Refer to every declared value, to avoid compiler optimizations. */
16109 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16110 + !m + !n + !o + !p + !q + !pq);
16116 rm -f conftest.$ac_objext
16117 if { (ac_try="$ac_compile"
16118 case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16123 $as_echo "$ac_try_echo") >&5
16124 (eval "$ac_compile") 2>conftest.er1
16126 grep -v '^ *+' conftest.er1 >conftest.err
16128 cat conftest.err >&5
16129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } && {
16131 test -z "$ac_c_werror_flag" ||
16132 test ! -s conftest.err
16133 } && test -s conftest.$ac_objext; then
16134 ac_cv_header_stdbool_h=yes
16136 $as_echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 ac_cv_header_stdbool_h=no
16142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16145 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16146 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
16147 $as_echo_n "checking for _Bool... " >&6; }
16148 if test "${ac_cv_type__Bool+set}" = set; then
16149 $as_echo_n "(cached) " >&6
16151 ac_cv_type__Bool=no
16152 cat >conftest.$ac_ext <<_ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 $ac_includes_default
16162 if (sizeof (_Bool))
16168 rm -f conftest.$ac_objext
16169 if { (ac_try="$ac_compile"
16170 case "(($ac_try" in
16171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172 *) ac_try_echo=$ac_try;;
16174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16175 $as_echo "$ac_try_echo") >&5
16176 (eval "$ac_compile") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } && {
16183 test -z "$ac_c_werror_flag" ||
16184 test ! -s conftest.err
16185 } && test -s conftest.$ac_objext; then
16186 cat >conftest.$ac_ext <<_ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 $ac_includes_default
16196 if (sizeof ((_Bool)))
16202 rm -f conftest.$ac_objext
16203 if { (ac_try="$ac_compile"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16209 $as_echo "$ac_try_echo") >&5
16210 (eval "$ac_compile") 2>conftest.er1
16212 grep -v '^ *+' conftest.er1 >conftest.err
16214 cat conftest.err >&5
16215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } && {
16217 test -z "$ac_c_werror_flag" ||
16218 test ! -s conftest.err
16219 } && test -s conftest.$ac_objext; then
16222 $as_echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 ac_cv_type__Bool=yes
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230 $as_echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16239 $as_echo "$ac_cv_type__Bool" >&6; }
16240 if test "x$ac_cv_type__Bool" = x""yes; then
16242 cat >>confdefs.h <<_ACEOF
16243 #define HAVE__BOOL 1
16249 if test $ac_cv_header_stdbool_h = yes; then
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_STDBOOL_H 1
16262 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
16263 $as_echo_n "checking for wchar_t... " >&6; }
16264 if test "${gt_cv_c_wchar_t+set}" = set; then
16265 $as_echo_n "(cached) " >&6
16267 cat >conftest.$ac_ext <<_ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 #include <stddef.h>
16274 wchar_t foo = (wchar_t)'\0';
16283 rm -f conftest.$ac_objext
16284 if { (ac_try="$ac_compile"
16285 case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16290 $as_echo "$ac_try_echo") >&5
16291 (eval "$ac_compile") 2>conftest.er1
16293 grep -v '^ *+' conftest.er1 >conftest.err
16295 cat conftest.err >&5
16296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } && {
16298 test -z "$ac_c_werror_flag" ||
16299 test ! -s conftest.err
16300 } && test -s conftest.$ac_objext; then
16301 gt_cv_c_wchar_t=yes
16303 $as_echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16312 $as_echo "$gt_cv_c_wchar_t" >&6; }
16313 if test $gt_cv_c_wchar_t = yes; then
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE_WCHAR_T 1
16328 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16329 $as_echo_n "checking for long long int... " >&6; }
16330 if test "${ac_cv_type_long_long_int+set}" = set; then
16331 $as_echo_n "(cached) " >&6
16333 cat >conftest.$ac_ext <<_ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 /* For now, do not test the preprocessor; as of 2007 there are too many
16341 implementations with broken preprocessors. Perhaps this can
16342 be revisited in 2012. In the meantime, code should not expect
16343 #if to work with literals wider than 32 bits. */
16344 /* Test literals. */
16345 long long int ll = 9223372036854775807ll;
16346 long long int nll = -9223372036854775807LL;
16347 unsigned long long int ull = 18446744073709551615ULL;
16348 /* Test constant expressions. */
16349 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16351 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16357 /* Test availability of runtime routines for shift and division. */
16358 long long int llmax = 9223372036854775807ll;
16359 unsigned long long int ullmax = 18446744073709551615ull;
16360 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16361 | (llmax / ll) | (llmax % ll)
16362 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16363 | (ullmax / ull) | (ullmax % ull));
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (ac_try="$ac_link"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16376 $as_echo "$ac_try_echo") >&5
16377 (eval "$ac_link") 2>conftest.er1
16379 grep -v '^ *+' conftest.er1 >conftest.err
16381 cat conftest.err >&5
16382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext && {
16387 test "$cross_compiling" = yes ||
16388 $as_test_x conftest$ac_exeext
16390 if test "$cross_compiling" = yes; then
16391 ac_cv_type_long_long_int=yes
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 #include <limits.h>
16402 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16403 # define LLONG_MAX (HALF - 1 + HALF)
16408 long long int n = 1;
16412 long long int m = n << i;
16415 if (LLONG_MAX / 2 < m)
16423 rm -f conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431 (eval "$ac_link") 2>&5
16433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16435 { (case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16440 $as_echo "$ac_try_echo") >&5
16441 (eval "$ac_try") 2>&5
16443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; }; then
16445 ac_cv_type_long_long_int=yes
16447 $as_echo "$as_me: program exited with status $ac_status" >&5
16448 $as_echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ( exit $ac_status )
16452 ac_cv_type_long_long_int=no
16454 rm -rf conftest.dSYM
16455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16460 $as_echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16463 ac_cv_type_long_long_int=no
16466 rm -rf conftest.dSYM
16467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16468 conftest$ac_exeext conftest.$ac_ext
16470 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16471 $as_echo "$ac_cv_type_long_long_int" >&6; }
16472 if test $ac_cv_type_long_long_int = yes; then
16474 cat >>confdefs.h <<\_ACEOF
16475 #define HAVE_LONG_LONG_INT 1
16481 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
16482 $as_echo_n "checking for unsigned long long int... " >&6; }
16483 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
16484 $as_echo_n "(cached) " >&6
16486 cat >conftest.$ac_ext <<_ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493 /* For now, do not test the preprocessor; as of 2007 there are too many
16494 implementations with broken preprocessors. Perhaps this can
16495 be revisited in 2012. In the meantime, code should not expect
16496 #if to work with literals wider than 32 bits. */
16497 /* Test literals. */
16498 long long int ll = 9223372036854775807ll;
16499 long long int nll = -9223372036854775807LL;
16500 unsigned long long int ull = 18446744073709551615ULL;
16501 /* Test constant expressions. */
16502 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16504 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16510 /* Test availability of runtime routines for shift and division. */
16511 long long int llmax = 9223372036854775807ll;
16512 unsigned long long int ullmax = 18446744073709551615ull;
16513 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16514 | (llmax / ll) | (llmax % ll)
16515 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16516 | (ullmax / ull) | (ullmax % ull));
16522 rm -f conftest.$ac_objext conftest$ac_exeext
16523 if { (ac_try="$ac_link"
16524 case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16529 $as_echo "$ac_try_echo") >&5
16530 (eval "$ac_link") 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } && {
16537 test -z "$ac_c_werror_flag" ||
16538 test ! -s conftest.err
16539 } && test -s conftest$ac_exeext && {
16540 test "$cross_compiling" = yes ||
16541 $as_test_x conftest$ac_exeext
16543 ac_cv_type_unsigned_long_long_int=yes
16545 $as_echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 ac_cv_type_unsigned_long_long_int=no
16551 rm -rf conftest.dSYM
16552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16553 conftest$ac_exeext conftest.$ac_ext
16555 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
16556 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16557 if test $ac_cv_type_unsigned_long_long_int = yes; then
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_UNSIGNED_LONG_LONG_INT 1
16578 { $as_echo "$as_me:$LINENO: checking whether C symbols are prefixed with underscore at the linker level" >&5
16579 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
16580 if test "${gl_cv_prog_as_underscore+set}" = set; then
16581 $as_echo_n "(cached) " >&6
16583 cat > conftest.c <<EOF
16585 extern "C" int foo (void);
16587 int foo(void) { return 0; }
16589 # Look for the assembly language name in the .s file.
16590 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; } >/dev/null 2>&1
16596 if grep _foo conftest.s >/dev/null ; then
16597 gl_cv_prog_as_underscore=yes
16599 gl_cv_prog_as_underscore=no
16604 { $as_echo "$as_me:$LINENO: result: $gl_cv_prog_as_underscore" >&5
16605 $as_echo "$gl_cv_prog_as_underscore" >&6; }
16606 if test $gl_cv_prog_as_underscore = yes; then
16607 USER_LABEL_PREFIX=_
16612 cat >>confdefs.h <<_ACEOF
16613 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
16616 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
16652 if test $gl_cv_have_include_next = yes; then
16653 gl_cv_next_string_h='<'string.h'>'
16655 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
16656 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16657 if test "${gl_cv_next_string_h+set}" = set; then
16658 $as_echo_n "(cached) " >&6
16661 if test $ac_cv_header_string_h = yes; then
16662 cat >conftest.$ac_ext <<_ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h. */
16668 #include <string.h>
16672 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16673 *) gl_absname_cpp="$ac_cpp" ;;
16675 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16676 sed -n '\#/string.h#{
16677 s#.*"\(.*/string.h\)".*#\1#
16683 gl_cv_next_string_h='<'string.h'>'
16687 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
16688 $as_echo "$gl_cv_next_string_h" >&6; }
16690 NEXT_STRING_H=$gl_cv_next_string_h
16692 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16693 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16694 gl_next_as_first_directive='<'string.h'>'
16696 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16697 gl_next_as_first_directive=$gl_cv_next_string_h
16699 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
16722 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
16723 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16724 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
16725 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16726 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
16727 $as_echo_n "(cached) " >&6
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 #include <string.h>
16746 rm -f conftest.$ac_objext
16747 if { (ac_try="$ac_compile"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16753 $as_echo "$ac_try_echo") >&5
16754 (eval "$ac_compile") 2>conftest.er1
16756 grep -v '^ *+' conftest.er1 >conftest.err
16758 cat conftest.err >&5
16759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } && {
16761 test -z "$ac_c_werror_flag" ||
16762 test ! -s conftest.err
16763 } && test -s conftest.$ac_objext; then
16764 eval "$as_gl_Symbol=yes"
16766 $as_echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 eval "$as_gl_Symbol=no"
16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16774 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
16775 $as_echo "$as_val"'`
16776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16777 $as_echo "$ac_res" >&6; }
16778 as_val=`eval 'as_val=${'$as_gl_Symbol'}
16779 $as_echo "$as_val"'`
16780 if test "x$as_val" = x""yes; then
16781 cat >>confdefs.h <<_ACEOF
16782 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16785 eval ac_cv_have_decl_$gl_func=yes
16791 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16792 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16793 if test "${ac_cv_header_stat_broken+set}" = set; then
16794 $as_echo_n "(cached) " >&6
16796 cat >conftest.$ac_ext <<_ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16802 #include <sys/types.h>
16803 #include <sys/stat.h>
16805 #if defined S_ISBLK && defined S_IFDIR
16806 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16809 #if defined S_ISBLK && defined S_IFCHR
16810 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16813 #if defined S_ISLNK && defined S_IFREG
16814 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16817 #if defined S_ISSOCK && defined S_IFREG
16818 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16822 rm -f conftest.$ac_objext
16823 if { (ac_try="$ac_compile"
16824 case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16829 $as_echo "$ac_try_echo") >&5
16830 (eval "$ac_compile") 2>conftest.er1
16832 grep -v '^ *+' conftest.er1 >conftest.err
16834 cat conftest.err >&5
16835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } && {
16837 test -z "$ac_c_werror_flag" ||
16838 test ! -s conftest.err
16839 } && test -s conftest.$ac_objext; then
16840 ac_cv_header_stat_broken=no
16842 $as_echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16845 ac_cv_header_stat_broken=yes
16848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16851 $as_echo "$ac_cv_header_stat_broken" >&6; }
16852 if test $ac_cv_header_stat_broken = yes; then
16854 cat >>confdefs.h <<\_ACEOF
16855 #define STAT_MACROS_BROKEN 1
16866 # Check whether --enable-largefile was given.
16867 if test "${enable_largefile+set}" = set; then
16868 enableval=$enable_largefile;
16871 if test "$enable_largefile" != no; then
16873 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16874 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16875 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16876 $as_echo_n "(cached) " >&6
16878 ac_cv_sys_largefile_CC=no
16879 if test "$GCC" != yes; then
16882 # IRIX 6.2 and later do not support large files by default,
16883 # so use the C compiler's -n32 option if that helps.
16884 cat >conftest.$ac_ext <<_ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 #include <sys/types.h>
16891 /* Check that off_t can represent 2**63 - 1 correctly.
16892 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16893 since some C++ compilers masquerading as C compilers
16894 incorrectly reject 9223372036854775807. */
16895 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16896 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16897 && LARGE_OFF_T % 2147483647 == 1)
16907 rm -f conftest.$ac_objext
16908 if { (ac_try="$ac_compile"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16914 $as_echo "$ac_try_echo") >&5
16915 (eval "$ac_compile") 2>conftest.er1
16917 grep -v '^ *+' conftest.er1 >conftest.err
16919 cat conftest.err >&5
16920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } && {
16922 test -z "$ac_c_werror_flag" ||
16923 test ! -s conftest.err
16924 } && test -s conftest.$ac_objext; then
16927 $as_echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16933 rm -f core conftest.err conftest.$ac_objext
16935 rm -f conftest.$ac_objext
16936 if { (ac_try="$ac_compile"
16937 case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16942 $as_echo "$ac_try_echo") >&5
16943 (eval "$ac_compile") 2>conftest.er1
16945 grep -v '^ *+' conftest.er1 >conftest.err
16947 cat conftest.err >&5
16948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } && {
16950 test -z "$ac_c_werror_flag" ||
16951 test ! -s conftest.err
16952 } && test -s conftest.$ac_objext; then
16953 ac_cv_sys_largefile_CC=' -n32'; break
16955 $as_echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16961 rm -f core conftest.err conftest.$ac_objext
16965 rm -f conftest.$ac_ext
16968 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16969 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16970 if test "$ac_cv_sys_largefile_CC" != no; then
16971 CC=$CC$ac_cv_sys_largefile_CC
16974 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16975 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16976 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16977 $as_echo_n "(cached) " >&6
16980 cat >conftest.$ac_ext <<_ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 #include <sys/types.h>
16987 /* Check that off_t can represent 2**63 - 1 correctly.
16988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16989 since some C++ compilers masquerading as C compilers
16990 incorrectly reject 9223372036854775807. */
16991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16993 && LARGE_OFF_T % 2147483647 == 1)
17003 rm -f conftest.$ac_objext
17004 if { (ac_try="$ac_compile"
17005 case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17010 $as_echo "$ac_try_echo") >&5
17011 (eval "$ac_compile") 2>conftest.er1
17013 grep -v '^ *+' conftest.er1 >conftest.err
17015 cat conftest.err >&5
17016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest.$ac_objext; then
17021 ac_cv_sys_file_offset_bits=no; break
17023 $as_echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 cat >conftest.$ac_ext <<_ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17036 #define _FILE_OFFSET_BITS 64
17037 #include <sys/types.h>
17038 /* Check that off_t can represent 2**63 - 1 correctly.
17039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17040 since some C++ compilers masquerading as C compilers
17041 incorrectly reject 9223372036854775807. */
17042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17044 && LARGE_OFF_T % 2147483647 == 1)
17054 rm -f conftest.$ac_objext
17055 if { (ac_try="$ac_compile"
17056 case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17061 $as_echo "$ac_try_echo") >&5
17062 (eval "$ac_compile") 2>conftest.er1
17064 grep -v '^ *+' conftest.er1 >conftest.err
17066 cat conftest.err >&5
17067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } && {
17069 test -z "$ac_c_werror_flag" ||
17070 test ! -s conftest.err
17071 } && test -s conftest.$ac_objext; then
17072 ac_cv_sys_file_offset_bits=64; break
17074 $as_echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081 ac_cv_sys_file_offset_bits=unknown
17085 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17086 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17087 case $ac_cv_sys_file_offset_bits in #(
17090 cat >>confdefs.h <<_ACEOF
17091 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17096 if test $ac_cv_sys_file_offset_bits = unknown; then
17097 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17098 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17099 if test "${ac_cv_sys_large_files+set}" = set; then
17100 $as_echo_n "(cached) " >&6
17103 cat >conftest.$ac_ext <<_ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109 #include <sys/types.h>
17110 /* Check that off_t can represent 2**63 - 1 correctly.
17111 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17112 since some C++ compilers masquerading as C compilers
17113 incorrectly reject 9223372036854775807. */
17114 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17115 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17116 && LARGE_OFF_T % 2147483647 == 1)
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17133 $as_echo "$ac_try_echo") >&5
17134 (eval "$ac_compile") 2>conftest.er1
17136 grep -v '^ *+' conftest.er1 >conftest.err
17138 cat conftest.err >&5
17139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } && {
17141 test -z "$ac_c_werror_flag" ||
17142 test ! -s conftest.err
17143 } && test -s conftest.$ac_objext; then
17144 ac_cv_sys_large_files=no; break
17146 $as_echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17159 #define _LARGE_FILES 1
17160 #include <sys/types.h>
17161 /* Check that off_t can represent 2**63 - 1 correctly.
17162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17163 since some C++ compilers masquerading as C compilers
17164 incorrectly reject 9223372036854775807. */
17165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17167 && LARGE_OFF_T % 2147483647 == 1)
17177 rm -f conftest.$ac_objext
17178 if { (ac_try="$ac_compile"
17179 case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17184 $as_echo "$ac_try_echo") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest.$ac_objext; then
17195 ac_cv_sys_large_files=1; break
17197 $as_echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204 ac_cv_sys_large_files=unknown
17208 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17209 $as_echo "$ac_cv_sys_large_files" >&6; }
17210 case $ac_cv_sys_large_files in #(
17213 cat >>confdefs.h <<_ACEOF
17214 #define _LARGE_FILES $ac_cv_sys_large_files
17224 GNULIB_NANOSLEEP=0;
17228 HAVE_LOCALTIME_R=1;
17232 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17233 REPLACE_MKTIME=GNULIB_PORTCHECK;
17234 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17235 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17251 { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
17252 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
17253 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
17254 $as_echo_n "(cached) " >&6
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17267 static struct timespec x; x.tv_sec = x.tv_nsec;
17272 rm -f conftest.$ac_objext
17273 if { (ac_try="$ac_compile"
17274 case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17279 $as_echo "$ac_try_echo") >&5
17280 (eval "$ac_compile") 2>conftest.er1
17282 grep -v '^ *+' conftest.er1 >conftest.err
17284 cat conftest.err >&5
17285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } && {
17287 test -z "$ac_c_werror_flag" ||
17288 test ! -s conftest.err
17289 } && test -s conftest.$ac_objext; then
17290 gl_cv_sys_struct_timespec_in_time_h=yes
17292 $as_echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 gl_cv_sys_struct_timespec_in_time_h=no
17298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17300 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
17301 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
17303 TIME_H_DEFINES_STRUCT_TIMESPEC=0
17304 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
17305 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
17306 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
17307 TIME_H_DEFINES_STRUCT_TIMESPEC=1
17309 { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
17310 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
17311 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
17312 $as_echo_n "(cached) " >&6
17314 cat >conftest.$ac_ext <<_ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17320 #include <sys/time.h>
17325 static struct timespec x; x.tv_sec = x.tv_nsec;
17330 rm -f conftest.$ac_objext
17331 if { (ac_try="$ac_compile"
17332 case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17337 $as_echo "$ac_try_echo") >&5
17338 (eval "$ac_compile") 2>conftest.er1
17340 grep -v '^ *+' conftest.er1 >conftest.err
17342 cat conftest.err >&5
17343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } && {
17345 test -z "$ac_c_werror_flag" ||
17346 test ! -s conftest.err
17347 } && test -s conftest.$ac_objext; then
17348 gl_cv_sys_struct_timespec_in_sys_time_h=yes
17350 $as_echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17353 gl_cv_sys_struct_timespec_in_sys_time_h=no
17356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
17359 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
17360 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
17361 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
17363 { $as_echo "$as_me:$LINENO: checking for struct timespec in <pthread.h>" >&5
17364 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
17365 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then
17366 $as_echo_n "(cached) " >&6
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 #include <pthread.h>
17379 static struct timespec x; x.tv_sec = x.tv_nsec;
17384 rm -f conftest.$ac_objext
17385 if { (ac_try="$ac_compile"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17391 $as_echo "$ac_try_echo") >&5
17392 (eval "$ac_compile") 2>conftest.er1
17394 grep -v '^ *+' conftest.er1 >conftest.err
17396 cat conftest.err >&5
17397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && {
17399 test -z "$ac_c_werror_flag" ||
17400 test ! -s conftest.err
17401 } && test -s conftest.$ac_objext; then
17402 gl_cv_sys_struct_timespec_in_pthread_h=yes
17404 $as_echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 gl_cv_sys_struct_timespec_in_pthread_h=no
17410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
17413 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
17414 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
17415 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
17438 if test $gl_cv_have_include_next = yes; then
17439 gl_cv_next_time_h='<'time.h'>'
17441 { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
17442 $as_echo_n "checking absolute name of <time.h>... " >&6; }
17443 if test "${gl_cv_next_time_h+set}" = set; then
17444 $as_echo_n "(cached) " >&6
17447 if test $ac_cv_header_time_h = yes; then
17448 cat >conftest.$ac_ext <<_ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17458 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17459 *) gl_absname_cpp="$ac_cpp" ;;
17461 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17462 sed -n '\#/time.h#{
17463 s#.*"\(.*/time.h\)".*#\1#
17469 gl_cv_next_time_h='<'time.h'>'
17473 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
17474 $as_echo "$gl_cv_next_time_h" >&6; }
17476 NEXT_TIME_H=$gl_cv_next_time_h
17478 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17480 gl_next_as_first_directive='<'time.h'>'
17482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17483 gl_next_as_first_directive=$gl_cv_next_time_h
17485 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
17504 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
17505 $as_echo_n "checking for wint_t... " >&6; }
17506 if test "${gt_cv_c_wint_t+set}" = set; then
17507 $as_echo_n "(cached) " >&6
17509 cat >conftest.$ac_ext <<_ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17516 wint_t foo = (wchar_t)'\0';
17525 rm -f conftest.$ac_objext
17526 if { (ac_try="$ac_compile"
17527 case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17532 $as_echo "$ac_try_echo") >&5
17533 (eval "$ac_compile") 2>conftest.er1
17535 grep -v '^ *+' conftest.er1 >conftest.err
17537 cat conftest.err >&5
17538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } && {
17540 test -z "$ac_c_werror_flag" ||
17541 test ! -s conftest.err
17542 } && test -s conftest.$ac_objext; then
17545 $as_echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17553 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
17554 $as_echo "$gt_cv_c_wint_t" >&6; }
17555 if test $gt_cv_c_wint_t = yes; then
17557 cat >>confdefs.h <<\_ACEOF
17558 #define HAVE_WINT_T 1
17563 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
17564 $as_echo_n "checking for size_t... " >&6; }
17565 if test "${ac_cv_type_size_t+set}" = set; then
17566 $as_echo_n "(cached) " >&6
17568 ac_cv_type_size_t=no
17569 cat >conftest.$ac_ext <<_ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575 $ac_includes_default
17579 if (sizeof (size_t))
17585 rm -f conftest.$ac_objext
17586 if { (ac_try="$ac_compile"
17587 case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17592 $as_echo "$ac_try_echo") >&5
17593 (eval "$ac_compile") 2>conftest.er1
17595 grep -v '^ *+' conftest.er1 >conftest.err
17597 cat conftest.err >&5
17598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } && {
17600 test -z "$ac_c_werror_flag" ||
17601 test ! -s conftest.err
17602 } && test -s conftest.$ac_objext; then
17603 cat >conftest.$ac_ext <<_ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17609 $ac_includes_default
17613 if (sizeof ((size_t)))
17619 rm -f conftest.$ac_objext
17620 if { (ac_try="$ac_compile"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17626 $as_echo "$ac_try_echo") >&5
17627 (eval "$ac_compile") 2>conftest.er1
17629 grep -v '^ *+' conftest.er1 >conftest.err
17631 cat conftest.err >&5
17632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } && {
17634 test -z "$ac_c_werror_flag" ||
17635 test ! -s conftest.err
17636 } && test -s conftest.$ac_objext; then
17639 $as_echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ac_cv_type_size_t=yes
17645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17647 $as_echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17656 $as_echo "$ac_cv_type_size_t" >&6; }
17657 if test "x$ac_cv_type_size_t" = x""yes; then
17661 cat >>confdefs.h <<_ACEOF
17662 #define size_t unsigned int
17668 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
17669 $as_echo_n "checking for inttypes.h... " >&6; }
17670 if test "${gl_cv_header_inttypes_h+set}" = set; then
17671 $as_echo_n "(cached) " >&6
17673 cat >conftest.$ac_ext <<_ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 #include <sys/types.h>
17680 #include <inttypes.h>
17684 uintmax_t i = (uintmax_t) -1;
17689 rm -f conftest.$ac_objext
17690 if { (ac_try="$ac_compile"
17691 case "(($ac_try" in
17692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693 *) ac_try_echo=$ac_try;;
17695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17696 $as_echo "$ac_try_echo") >&5
17697 (eval "$ac_compile") 2>conftest.er1
17699 grep -v '^ *+' conftest.er1 >conftest.err
17701 cat conftest.err >&5
17702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } && {
17704 test -z "$ac_c_werror_flag" ||
17705 test ! -s conftest.err
17706 } && test -s conftest.$ac_objext; then
17707 gl_cv_header_inttypes_h=yes
17709 $as_echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 gl_cv_header_inttypes_h=no
17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
17718 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17719 if test $gl_cv_header_inttypes_h = yes; then
17721 cat >>confdefs.h <<_ACEOF
17722 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17728 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
17729 $as_echo_n "checking for stdint.h... " >&6; }
17730 if test "${gl_cv_header_stdint_h+set}" = set; then
17731 $as_echo_n "(cached) " >&6
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 #include <sys/types.h>
17740 #include <stdint.h>
17744 uintmax_t i = (uintmax_t) -1;
17749 rm -f conftest.$ac_objext
17750 if { (ac_try="$ac_compile"
17751 case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17756 $as_echo "$ac_try_echo") >&5
17757 (eval "$ac_compile") 2>conftest.er1
17759 grep -v '^ *+' conftest.er1 >conftest.err
17761 cat conftest.err >&5
17762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } && {
17764 test -z "$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17766 } && test -s conftest.$ac_objext; then
17767 gl_cv_header_stdint_h=yes
17769 $as_echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 gl_cv_header_stdint_h=no
17775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
17778 $as_echo "$gl_cv_header_stdint_h" >&6; }
17779 if test $gl_cv_header_stdint_h = yes; then
17781 cat >>confdefs.h <<_ACEOF
17782 #define HAVE_STDINT_H_WITH_UINTMAX 1
17790 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
17791 $as_echo_n "checking for intmax_t... " >&6; }
17792 if test "${gt_cv_c_intmax_t+set}" = set; then
17793 $as_echo_n "(cached) " >&6
17795 cat >conftest.$ac_ext <<_ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h. */
17802 #include <stddef.h>
17803 #include <stdlib.h>
17804 #if HAVE_STDINT_H_WITH_UINTMAX
17805 #include <stdint.h>
17807 #if HAVE_INTTYPES_H_WITH_UINTMAX
17808 #include <inttypes.h>
17814 intmax_t x = -1; return !x;
17819 rm -f conftest.$ac_objext
17820 if { (ac_try="$ac_compile"
17821 case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17826 $as_echo "$ac_try_echo") >&5
17827 (eval "$ac_compile") 2>conftest.er1
17829 grep -v '^ *+' conftest.er1 >conftest.err
17831 cat conftest.err >&5
17832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } && {
17834 test -z "$ac_c_werror_flag" ||
17835 test ! -s conftest.err
17836 } && test -s conftest.$ac_objext; then
17837 gt_cv_c_intmax_t=yes
17839 $as_echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17842 gt_cv_c_intmax_t=no
17845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17847 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
17848 $as_echo "$gt_cv_c_intmax_t" >&6; }
17849 if test $gt_cv_c_intmax_t = yes; then
17851 cat >>confdefs.h <<\_ACEOF
17852 #define HAVE_INTMAX_T 1
17857 test $ac_cv_type_long_long_int = yes \
17858 && ac_type='long long' \
17861 cat >>confdefs.h <<_ACEOF
17862 #define intmax_t $ac_type
17869 { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
17870 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17871 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
17872 $as_echo_n "(cached) " >&6
17875 if test "$cross_compiling" = yes; then
17878 # Guess yes on glibc systems.
17879 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17880 # Guess yes on FreeBSD >= 5.
17881 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17882 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17883 # Guess yes on MacOS X >= 10.3.
17884 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
17885 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17886 # Guess yes on OpenBSD >= 3.9.
17887 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17888 gl_cv_func_snprintf_retval_c99="guessing no";;
17889 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17890 # Guess yes on Solaris >= 2.6.
17891 solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17892 solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17893 # Guess yes on AIX >= 4.
17894 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17895 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17896 # Guess yes on NetBSD >= 3.
17897 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17898 gl_cv_func_snprintf_retval_c99="guessing no";;
17899 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17900 # Guess yes on BeOS.
17901 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17902 # If we don't know, assume the worst.
17903 *) gl_cv_func_snprintf_retval_c99="guessing no";;
17907 cat >conftest.$ac_ext <<_ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h. */
17915 #include <string.h>
17916 static char buf[100];
17919 strcpy (buf, "ABCDEF");
17920 if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
17925 rm -f conftest$ac_exeext
17926 if { (ac_try="$ac_link"
17927 case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17932 $as_echo "$ac_try_echo") >&5
17933 (eval "$ac_link") 2>&5
17935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17937 { (case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17942 $as_echo "$ac_try_echo") >&5
17943 (eval "$ac_try") 2>&5
17945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 gl_cv_func_snprintf_retval_c99=yes
17949 $as_echo "$as_me: program exited with status $ac_status" >&5
17950 $as_echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17953 ( exit $ac_status )
17954 gl_cv_func_snprintf_retval_c99=no
17956 rm -rf conftest.dSYM
17957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17963 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
17964 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
17979 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
17981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17982 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17983 $as_echo_n "checking for $ac_func... " >&6; }
17984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17985 $as_echo_n "(cached) " >&6
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17995 #define $ac_func innocuous_$ac_func
17997 /* System header to define __stub macros and hopefully few prototypes,
17998 which can conflict with char $ac_func (); below.
17999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18000 <limits.h> exists even on freestanding compilers. */
18003 # include <limits.h>
18005 # include <assert.h>
18010 /* Override any GCC internal prototype to avoid an error.
18011 Use char because int might match the return type of a GCC
18012 builtin and then its argument prototype would still apply. */
18017 /* The GNU C library defines this for functions which it implements
18018 to always fail with ENOSYS. Some functions are actually named
18019 something starting with __ and the normal name is an alias. */
18020 #if defined __stub_$ac_func || defined __stub___$ac_func
18027 return $ac_func ();
18032 rm -f conftest.$ac_objext conftest$ac_exeext
18033 if { (ac_try="$ac_link"
18034 case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18039 $as_echo "$ac_try_echo") >&5
18040 (eval "$ac_link") 2>conftest.er1
18042 grep -v '^ *+' conftest.er1 >conftest.err
18044 cat conftest.err >&5
18045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } && {
18047 test -z "$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18049 } && test -s conftest$ac_exeext && {
18050 test "$cross_compiling" = yes ||
18051 $as_test_x conftest$ac_exeext
18053 eval "$as_ac_var=yes"
18055 $as_echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 eval "$as_ac_var=no"
18061 rm -rf conftest.dSYM
18062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18063 conftest$ac_exeext conftest.$ac_ext
18065 ac_res=`eval 'as_val=${'$as_ac_var'}
18066 $as_echo "$as_val"'`
18067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18068 $as_echo "$ac_res" >&6; }
18069 as_val=`eval 'as_val=${'$as_ac_var'}
18070 $as_echo "$as_val"'`
18071 if test "x$as_val" = x""yes; then
18072 cat >>confdefs.h <<_ACEOF
18073 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18079 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
18080 $as_echo_n "checking whether _snprintf is declared... " >&6; }
18081 if test "${ac_cv_have_decl__snprintf+set}" = set; then
18082 $as_echo_n "(cached) " >&6
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18103 rm -f conftest.$ac_objext
18104 if { (ac_try="$ac_compile"
18105 case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18110 $as_echo "$ac_try_echo") >&5
18111 (eval "$ac_compile") 2>conftest.er1
18113 grep -v '^ *+' conftest.er1 >conftest.err
18115 cat conftest.err >&5
18116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } && {
18118 test -z "$ac_c_werror_flag" ||
18119 test ! -s conftest.err
18120 } && test -s conftest.$ac_objext; then
18121 ac_cv_have_decl__snprintf=yes
18123 $as_echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18126 ac_cv_have_decl__snprintf=no
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18131 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
18132 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
18133 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
18135 cat >>confdefs.h <<_ACEOF
18136 #define HAVE_DECL__SNPRINTF 1
18141 cat >>confdefs.h <<_ACEOF
18142 #define HAVE_DECL__SNPRINTF 0
18150 case "$gl_cv_func_snprintf_retval_c99" in
18153 cat >>confdefs.h <<\_ACEOF
18154 #define HAVE_SNPRINTF_RETVAL_C99 1
18179 { $as_echo "$as_me:$LINENO: checking whether iswblank is declared" >&5
18180 $as_echo_n "checking whether iswblank is declared... " >&6; }
18181 if test "${ac_cv_have_decl_iswblank+set}" = set; then
18182 $as_echo_n "(cached) " >&6
18184 cat >conftest.$ac_ext <<_ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 $ac_includes_default
18202 rm -f conftest.$ac_objext
18203 if { (ac_try="$ac_compile"
18204 case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18209 $as_echo "$ac_try_echo") >&5
18210 (eval "$ac_compile") 2>conftest.er1
18212 grep -v '^ *+' conftest.er1 >conftest.err
18214 cat conftest.err >&5
18215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } && {
18217 test -z "$ac_c_werror_flag" ||
18218 test ! -s conftest.err
18219 } && test -s conftest.$ac_objext; then
18220 ac_cv_have_decl_iswblank=yes
18222 $as_echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 ac_cv_have_decl_iswblank=no
18228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18230 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_iswblank" >&5
18231 $as_echo "$ac_cv_have_decl_iswblank" >&6; }
18232 if test "x$ac_cv_have_decl_iswblank" = x""yes; then
18234 cat >>confdefs.h <<_ACEOF
18235 #define HAVE_DECL_ISWBLANK 1
18240 cat >>confdefs.h <<_ACEOF
18241 #define HAVE_DECL_ISWBLANK 0
18257 GL_COND_LIBTOOL_TRUE=
18258 GL_COND_LIBTOOL_FALSE='#'
18260 GL_COND_LIBTOOL_TRUE='#'
18261 GL_COND_LIBTOOL_FALSE=
18264 gl_cond_libtool=true
18265 gl_m4_base='config/gnulib'
18275 gl_source_base='gnulib'
18276 # Code from module alignof:
18277 # Code from module alloca-opt:
18283 if test $ac_cv_func_alloca_works = no; then
18287 # Define an additional variable used in the Makefile substitution.
18288 if test $ac_cv_working_alloca_h = yes; then
18289 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18290 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18291 if test "${gl_cv_rpl_alloca+set}" = set; then
18292 $as_echo_n "(cached) " >&6
18295 cat >conftest.$ac_ext <<_ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18302 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18308 $EGREP "Need own alloca" >/dev/null 2>&1; then
18309 gl_cv_rpl_alloca=yes
18311 gl_cv_rpl_alloca=no
18317 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18318 $as_echo "$gl_cv_rpl_alloca" >&6; }
18319 if test $gl_cv_rpl_alloca = yes; then
18321 cat >>confdefs.h <<\_ACEOF
18322 #define HAVE_ALLOCA 1
18334 # Code from module arg-nonnull:
18335 # Code from module arpa_inet:
18346 if test $ac_cv_header_arpa_inet_h = yes; then
18364 if test $gl_cv_have_include_next = yes; then
18365 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
18367 { $as_echo "$as_me:$LINENO: checking absolute name of <arpa/inet.h>" >&5
18368 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
18369 if test "${gl_cv_next_arpa_inet_h+set}" = set; then
18370 $as_echo_n "(cached) " >&6
18373 if test $ac_cv_header_arpa_inet_h = yes; then
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 #include <arpa/inet.h>
18384 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18385 *) gl_absname_cpp="$ac_cpp" ;;
18387 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18388 sed -n '\#/arpa/inet.h#{
18389 s#.*"\(.*/arpa/inet.h\)".*#\1#
18395 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
18399 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_arpa_inet_h" >&5
18400 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
18402 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
18404 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18406 gl_next_as_first_directive='<'arpa/inet.h'>'
18408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18409 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
18411 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
18419 for gl_func in inet_ntop inet_pton; do
18420 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18421 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
18422 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18423 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
18424 $as_echo_n "(cached) " >&6
18426 cat >conftest.$ac_ext <<_ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18433 /* On some systems, this header is not self-consistent. */
18435 # include <sys/socket.h>
18437 #include <arpa/inet.h>
18448 rm -f conftest.$ac_objext
18449 if { (ac_try="$ac_compile"
18450 case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18455 $as_echo "$ac_try_echo") >&5
18456 (eval "$ac_compile") 2>conftest.er1
18458 grep -v '^ *+' conftest.er1 >conftest.err
18460 cat conftest.err >&5
18461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } && {
18463 test -z "$ac_c_werror_flag" ||
18464 test ! -s conftest.err
18465 } && test -s conftest.$ac_objext; then
18466 eval "$as_gl_Symbol=yes"
18468 $as_echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 eval "$as_gl_Symbol=no"
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
18477 $as_echo "$as_val"'`
18478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18479 $as_echo "$ac_res" >&6; }
18480 as_val=`eval 'as_val=${'$as_gl_Symbol'}
18481 $as_echo "$as_val"'`
18482 if test "x$as_val" = x""yes; then
18483 cat >>confdefs.h <<_ACEOF
18484 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18487 eval ac_cv_have_decl_$gl_func=yes
18493 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18494 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18495 if test -z "$MKDIR_P"; then
18496 if test "${ac_cv_path_mkdir+set}" = set; then
18497 $as_echo_n "(cached) " >&6
18499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18500 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18503 test -z "$as_dir" && as_dir=.
18504 for ac_prog in mkdir gmkdir; do
18505 for ac_exec_ext in '' $ac_executable_extensions; do
18506 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18507 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18508 'mkdir (GNU coreutils) '* | \
18509 'mkdir (coreutils) '* | \
18510 'mkdir (fileutils) '4.1*)
18511 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18521 if test "${ac_cv_path_mkdir+set}" = set; then
18522 MKDIR_P="$ac_cv_path_mkdir -p"
18524 # As a last resort, use the slow shell script. Don't cache a
18525 # value for MKDIR_P within a source directory, because that will
18526 # break other packages using the cache if that directory is
18527 # removed, or if the value is a relative name.
18528 test -d ./--version && rmdir ./--version
18529 MKDIR_P="$ac_install_sh -d"
18532 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18533 $as_echo "$MKDIR_P" >&6; }
18536 # Code from module base64:
18543 # Code from module btowc:
18556 if test $ac_cv_func_btowc = no; then
18563 { $as_echo "$as_me:$LINENO: checking whether btowc(0) is correct" >&5
18564 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
18565 if test "${gl_cv_func_btowc_nul+set}" = set; then
18566 $as_echo_n "(cached) " >&6
18569 if test "$cross_compiling" = yes; then
18572 # Guess no on Cygwin.
18573 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
18574 # Guess yes otherwise.
18575 *) gl_cv_func_btowc_nul="guessing yes" ;;
18579 cat >conftest.$ac_ext <<_ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18587 #include <string.h>
18591 if (btowc ('\0') != 0)
18596 rm -f conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18603 $as_echo "$ac_try_echo") >&5
18604 (eval "$ac_link") 2>&5
18606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18608 { (case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18613 $as_echo "$ac_try_echo") >&5
18614 (eval "$ac_try") 2>&5
18616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 gl_cv_func_btowc_nul=yes
18620 $as_echo "$as_me: program exited with status $ac_status" >&5
18621 $as_echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18624 ( exit $ac_status )
18625 gl_cv_func_btowc_nul=no
18627 rm -rf conftest.dSYM
18628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18634 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_nul" >&5
18635 $as_echo "$gl_cv_func_btowc_nul" >&6; }
18637 { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
18638 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
18639 if test "${gl_cv_func_btowc_eof+set}" = set; then
18640 $as_echo_n "(cached) " >&6
18644 # Guess no on IRIX.
18645 irix*) gl_cv_func_btowc_eof="guessing no" ;;
18646 # Guess yes otherwise.
18647 *) gl_cv_func_btowc_eof="guessing yes" ;;
18649 if test $LOCALE_FR != none; then
18650 if test "$cross_compiling" = yes; then
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18660 #include <locale.h>
18662 #include <string.h>
18666 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
18668 if (btowc (EOF) != WEOF)
18674 rm -f conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18681 $as_echo "$ac_try_echo") >&5
18682 (eval "$ac_link") 2>&5
18684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18686 { (case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18691 $as_echo "$ac_try_echo") >&5
18692 (eval "$ac_try") 2>&5
18694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; }; then
18696 gl_cv_func_btowc_eof=yes
18698 $as_echo "$as_me: program exited with status $ac_status" >&5
18699 $as_echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 ( exit $ac_status )
18703 gl_cv_func_btowc_eof=no
18705 rm -rf conftest.dSYM
18706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18713 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
18714 $as_echo "$gl_cv_func_btowc_eof" >&6; }
18716 case "$gl_cv_func_btowc_nul" in
18718 *) REPLACE_BTOWC=1 ;;
18720 case "$gl_cv_func_btowc_eof" in
18722 *) REPLACE_BTOWC=1 ;;
18725 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
18737 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
18751 cat >>confdefs.h <<\_ACEOF
18752 #define GNULIB_TEST_BTOWC 1
18757 # Code from module c++defs:
18758 # Code from module c-ctype:
18759 # Code from module configmake:
18760 # Code from module environ:
18769 cat >>confdefs.h <<\_ACEOF
18770 #define GNULIB_TEST_ENVIRON 1
18775 # Code from module errno:
18777 # Code from module extensions:
18778 # Code from module float:
18798 if test $gl_cv_have_include_next = yes; then
18799 gl_cv_next_float_h='<'float.h'>'
18801 { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
18802 $as_echo_n "checking absolute name of <float.h>... " >&6; }
18803 if test "${gl_cv_next_float_h+set}" = set; then
18804 $as_echo_n "(cached) " >&6
18807 if test $ac_cv_header_float_h = yes; then
18808 cat >conftest.$ac_ext <<_ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18818 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18819 *) gl_absname_cpp="$ac_cpp" ;;
18821 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18822 sed -n '\#/float.h#{
18823 s#.*"\(.*/float.h\)".*#\1#
18829 gl_cv_next_float_h='<'float.h'>'
18833 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
18834 $as_echo "$gl_cv_next_float_h" >&6; }
18836 NEXT_FLOAT_H=$gl_cv_next_float_h
18838 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18839 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18840 gl_next_as_first_directive='<'float.h'>'
18842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18843 gl_next_as_first_directive=$gl_cv_next_float_h
18845 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
18853 # Code from module fseeko:
18859 if test $gl_cv_func_fseeko = no; then
18864 if test $gl_cv_func_fseeko = yes; then
18875 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18880 if test $gl_cv_var_stdin_large_offset = no; then
18884 if test $gl_cv_func_fseeko = yes; then
18895 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18909 cat >>confdefs.h <<\_ACEOF
18910 #define GNULIB_TEST_FSEEKO 1
18915 # Code from module fsusage:
18935 for ac_header in sys/mount.h
18937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18938 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18939 $as_echo_n "checking for $ac_header... " >&6; }
18940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18941 $as_echo_n "(cached) " >&6
18943 cat >conftest.$ac_ext <<_ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 $ac_includes_default
18950 #if HAVE_SYS_PARAM_H
18951 #include <sys/param.h>
18954 #include <$ac_header>
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18963 $as_echo "$ac_try_echo") >&5
18964 (eval "$ac_compile") 2>conftest.er1
18966 grep -v '^ *+' conftest.er1 >conftest.err
18968 cat conftest.err >&5
18969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } && {
18971 test -z "$ac_c_werror_flag" ||
18972 test ! -s conftest.err
18973 } && test -s conftest.$ac_objext; then
18974 eval "$as_ac_Header=yes"
18976 $as_echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18979 eval "$as_ac_Header=no"
18982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18984 ac_res=`eval 'as_val=${'$as_ac_Header'}
18985 $as_echo "$as_val"'`
18986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18987 $as_echo "$ac_res" >&6; }
18988 as_val=`eval 'as_val=${'$as_ac_Header'}
18989 $as_echo "$as_val"'`
18990 if test "x$as_val" = x""yes; then
18991 cat >>confdefs.h <<_ACEOF
18992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19001 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
19002 $as_echo "$as_me: checking how to get file system space usage" >&6;}
19003 ac_fsusage_space=no
19005 # Perform only the link test since it seems there are no variants of the
19006 # statvfs function. This check is more than just AC_CHECK_FUNCS([statvfs])
19007 # because that got a false positive on SCO OSR5. Adding the declaration
19008 # of a `struct statvfs' causes this test to fail (as it should) on such
19009 # systems. That system is reported to work fine with STAT_STATFS4 which
19010 # is what it gets when this test fails.
19011 if test $ac_fsusage_space = no; then
19012 # glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
19013 # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
19014 { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
19015 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
19016 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
19017 $as_echo_n "(cached) " >&6
19019 cat >conftest.$ac_ext <<_ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19025 #include <sys/types.h>
19026 #if defined __GLIBC__ && defined __linux__
19027 Do not use statvfs on systems with GNU libc on Linux, because that function
19028 stats all preceding entries in /proc/mounts, and that makes df hang if even
19029 one of the corresponding file systems is hard-mounted, but not available.
19030 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
19035 "Do not use Tru64's statvfs implementation"
19038 #include <sys/statvfs.h>
19042 struct statvfs fsd; statvfs (0, &fsd);
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (ac_try="$ac_link"
19049 case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19054 $as_echo "$ac_try_echo") >&5
19055 (eval "$ac_link") 2>conftest.er1
19057 grep -v '^ *+' conftest.er1 >conftest.err
19059 cat conftest.err >&5
19060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } && {
19062 test -z "$ac_c_werror_flag" ||
19063 test ! -s conftest.err
19064 } && test -s conftest$ac_exeext && {
19065 test "$cross_compiling" = yes ||
19066 $as_test_x conftest$ac_exeext
19068 fu_cv_sys_stat_statvfs=yes
19070 $as_echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 fu_cv_sys_stat_statvfs=no
19076 rm -rf conftest.dSYM
19077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19078 conftest$ac_exeext conftest.$ac_ext
19080 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
19081 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
19082 if test $fu_cv_sys_stat_statvfs = yes; then
19083 ac_fsusage_space=yes
19085 cat >>confdefs.h <<\_ACEOF
19086 #define STAT_STATVFS 1
19092 if test $ac_fsusage_space = no; then
19093 # DEC Alpha running OSF/1
19094 { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
19095 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
19096 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
19097 $as_echo_n "(cached) " >&6
19099 if test "$cross_compiling" = yes; then
19100 fu_cv_sys_stat_statfs3_osf1=no
19102 cat >conftest.$ac_ext <<_ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19109 #include <sys/param.h>
19110 #include <sys/types.h>
19111 #include <sys/mount.h>
19117 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
19120 rm -f conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19127 $as_echo "$ac_try_echo") >&5
19128 (eval "$ac_link") 2>&5
19130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19132 { (case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19137 $as_echo "$ac_try_echo") >&5
19138 (eval "$ac_try") 2>&5
19140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 fu_cv_sys_stat_statfs3_osf1=yes
19144 $as_echo "$as_me: program exited with status $ac_status" >&5
19145 $as_echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ( exit $ac_status )
19149 fu_cv_sys_stat_statfs3_osf1=no
19151 rm -rf conftest.dSYM
19152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19158 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
19159 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
19160 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
19161 ac_fsusage_space=yes
19163 cat >>confdefs.h <<\_ACEOF
19164 #define STAT_STATFS3_OSF1 1
19170 if test $ac_fsusage_space = no; then
19171 # glibc/Linux, MacOS X < 10.4, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
19172 # (glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
19173 # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
19174 # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
19176 # (On Solaris, statfs has 4 arguments.)
19177 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
19178 $as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
19179 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
19180 $as_echo_n "(cached) " >&6
19182 if test "$cross_compiling" = yes; then
19183 fu_cv_sys_stat_statfs2_bsize=no
19185 cat >conftest.$ac_ext <<_ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19192 #ifdef HAVE_SYS_PARAM_H
19193 #include <sys/param.h>
19195 #ifdef HAVE_SYS_MOUNT_H
19196 #include <sys/mount.h>
19198 #ifdef HAVE_SYS_VFS_H
19199 #include <sys/vfs.h>
19206 return statfs (".", &fsd) != 0;
19209 rm -f conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19216 $as_echo "$ac_try_echo") >&5
19217 (eval "$ac_link") 2>&5
19219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19221 { (case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19226 $as_echo "$ac_try_echo") >&5
19227 (eval "$ac_try") 2>&5
19229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; }; then
19231 fu_cv_sys_stat_statfs2_bsize=yes
19233 $as_echo "$as_me: program exited with status $ac_status" >&5
19234 $as_echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19237 ( exit $ac_status )
19238 fu_cv_sys_stat_statfs2_bsize=no
19240 rm -rf conftest.dSYM
19241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19247 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
19248 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
19249 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
19250 ac_fsusage_space=yes
19252 cat >>confdefs.h <<\_ACEOF
19253 #define STAT_STATFS2_BSIZE 1
19259 if test $ac_fsusage_space = no; then
19261 # (Solaris already handled above.)
19262 { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
19263 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
19264 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
19265 $as_echo_n "(cached) " >&6
19267 if test "$cross_compiling" = yes; then
19268 fu_cv_sys_stat_statfs4=no
19270 cat >conftest.$ac_ext <<_ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19277 #include <sys/types.h>
19278 #include <sys/statfs.h>
19283 return statfs (".", &fsd, sizeof fsd, 0) != 0;
19286 rm -f conftest$ac_exeext
19287 if { (ac_try="$ac_link"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19293 $as_echo "$ac_try_echo") >&5
19294 (eval "$ac_link") 2>&5
19296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19298 { (case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19303 $as_echo "$ac_try_echo") >&5
19304 (eval "$ac_try") 2>&5
19306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 fu_cv_sys_stat_statfs4=yes
19310 $as_echo "$as_me: program exited with status $ac_status" >&5
19311 $as_echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ( exit $ac_status )
19315 fu_cv_sys_stat_statfs4=no
19317 rm -rf conftest.dSYM
19318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19324 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
19325 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
19326 if test $fu_cv_sys_stat_statfs4 = yes; then
19327 ac_fsusage_space=yes
19329 cat >>confdefs.h <<\_ACEOF
19330 #define STAT_STATFS4 1
19336 if test $ac_fsusage_space = no; then
19337 # 4.4BSD and older NetBSD
19338 # (OSF/1 already handled above.)
19339 # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
19340 # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
19342 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
19343 $as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
19344 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
19345 $as_echo_n "(cached) " >&6
19347 if test "$cross_compiling" = yes; then
19348 fu_cv_sys_stat_statfs2_fsize=no
19350 cat >conftest.$ac_ext <<_ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19357 #include <sys/types.h>
19358 #ifdef HAVE_SYS_PARAM_H
19359 #include <sys/param.h>
19361 #ifdef HAVE_SYS_MOUNT_H
19362 #include <sys/mount.h>
19369 return statfs (".", &fsd) != 0;
19372 rm -f conftest$ac_exeext
19373 if { (ac_try="$ac_link"
19374 case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19379 $as_echo "$ac_try_echo") >&5
19380 (eval "$ac_link") 2>&5
19382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19384 { (case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19389 $as_echo "$ac_try_echo") >&5
19390 (eval "$ac_try") 2>&5
19392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; }; then
19394 fu_cv_sys_stat_statfs2_fsize=yes
19396 $as_echo "$as_me: program exited with status $ac_status" >&5
19397 $as_echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ( exit $ac_status )
19401 fu_cv_sys_stat_statfs2_fsize=no
19403 rm -rf conftest.dSYM
19404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19410 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
19411 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
19412 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
19413 ac_fsusage_space=yes
19415 cat >>confdefs.h <<\_ACEOF
19416 #define STAT_STATFS2_FSIZE 1
19422 if test $ac_fsusage_space = no; then
19424 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
19425 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
19426 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
19427 $as_echo_n "(cached) " >&6
19429 if test "$cross_compiling" = yes; then
19430 fu_cv_sys_stat_fs_data=no
19432 cat >conftest.$ac_ext <<_ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h. */
19439 #include <sys/types.h>
19440 #ifdef HAVE_SYS_PARAM_H
19441 #include <sys/param.h>
19443 #ifdef HAVE_SYS_MOUNT_H
19444 #include <sys/mount.h>
19446 #ifdef HAVE_SYS_FS_TYPES_H
19447 #include <sys/fs_types.h>
19452 struct fs_data fsd;
19453 /* Ultrix's statfs returns 1 for success,
19454 0 for not mounted, -1 for failure. */
19455 return statfs (".", &fsd) != 1;
19458 rm -f conftest$ac_exeext
19459 if { (ac_try="$ac_link"
19460 case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19465 $as_echo "$ac_try_echo") >&5
19466 (eval "$ac_link") 2>&5
19468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19470 { (case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19475 $as_echo "$ac_try_echo") >&5
19476 (eval "$ac_try") 2>&5
19478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; }; then
19480 fu_cv_sys_stat_fs_data=yes
19482 $as_echo "$as_me: program exited with status $ac_status" >&5
19483 $as_echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ( exit $ac_status )
19487 fu_cv_sys_stat_fs_data=no
19489 rm -rf conftest.dSYM
19490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19496 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
19497 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
19498 if test $fu_cv_sys_stat_fs_data = yes; then
19499 ac_fsusage_space=yes
19501 cat >>confdefs.h <<\_ACEOF
19502 #define STAT_STATFS2_FS_DATA 1
19508 if test $ac_fsusage_space = no; then
19510 # (AIX, HP-UX, OSF/1 already handled above.)
19511 cat >conftest.$ac_ext <<_ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19517 #include <sys/filsys.h>
19520 if { (ac_try="$ac_cpp conftest.$ac_ext"
19521 case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19526 $as_echo "$ac_try_echo") >&5
19527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19529 grep -v '^ *+' conftest.er1 >conftest.err
19531 cat conftest.err >&5
19532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } >/dev/null && {
19534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19535 test ! -s conftest.err
19538 cat >>confdefs.h <<\_ACEOF
19539 #define STAT_READ_FILSYS 1
19542 ac_fsusage_space=yes
19544 $as_echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19550 rm -f conftest.err conftest.$ac_ext
19553 if test $ac_fsusage_space = yes; then
19561 if test $gl_cv_fs_space = yes; then
19570 gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
19577 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
19579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19581 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19582 $as_echo_n "checking for $ac_header... " >&6; }
19583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19584 $as_echo_n "(cached) " >&6
19586 ac_res=`eval 'as_val=${'$as_ac_Header'}
19587 $as_echo "$as_val"'`
19588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19589 $as_echo "$ac_res" >&6; }
19591 # Is the header compilable?
19592 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19593 $as_echo_n "checking $ac_header usability... " >&6; }
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 $ac_includes_default
19601 #include <$ac_header>
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19610 $as_echo "$ac_try_echo") >&5
19611 (eval "$ac_compile") 2>conftest.er1
19613 grep -v '^ *+' conftest.er1 >conftest.err
19615 cat conftest.err >&5
19616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } && {
19618 test -z "$ac_c_werror_flag" ||
19619 test ! -s conftest.err
19620 } && test -s conftest.$ac_objext; then
19621 ac_header_compiler=yes
19623 $as_echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 ac_header_compiler=no
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19631 $as_echo "$ac_header_compiler" >&6; }
19633 # Is the header present?
19634 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19635 $as_echo_n "checking $ac_header presence... " >&6; }
19636 cat >conftest.$ac_ext <<_ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 #include <$ac_header>
19644 if { (ac_try="$ac_cpp conftest.$ac_ext"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19650 $as_echo "$ac_try_echo") >&5
19651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19653 grep -v '^ *+' conftest.er1 >conftest.err
19655 cat conftest.err >&5
19656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } >/dev/null && {
19658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19659 test ! -s conftest.err
19661 ac_header_preproc=yes
19663 $as_echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_header_preproc=no
19669 rm -f conftest.err conftest.$ac_ext
19670 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19671 $as_echo "$ac_header_preproc" >&6; }
19673 # So? What about this header?
19674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19677 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19679 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19680 ac_header_preproc=yes
19683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19684 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19686 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19688 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19690 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19692 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19694 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19698 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19699 $as_echo_n "checking for $ac_header... " >&6; }
19700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19701 $as_echo_n "(cached) " >&6
19703 eval "$as_ac_Header=\$ac_header_preproc"
19705 ac_res=`eval 'as_val=${'$as_ac_Header'}
19706 $as_echo "$as_val"'`
19707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19708 $as_echo "$ac_res" >&6; }
19711 as_val=`eval 'as_val=${'$as_ac_Header'}
19712 $as_echo "$as_val"'`
19713 if test "x$as_val" = x""yes; then
19714 cat >>confdefs.h <<_ACEOF
19715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19723 { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
19724 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
19725 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
19726 $as_echo_n "(cached) " >&6
19728 cat >conftest.$ac_ext <<_ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19735 #if !defined(sun) && !defined(__sun)
19736 choke -- this is a workaround for a Sun-specific problem
19738 #include <sys/types.h>
19739 #include <sys/vfs.h>
19743 struct statfs t; long c = *(t.f_spare);
19749 rm -f conftest.$ac_objext
19750 if { (ac_try="$ac_compile"
19751 case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19756 $as_echo "$ac_try_echo") >&5
19757 (eval "$ac_compile") 2>conftest.er1
19759 grep -v '^ *+' conftest.er1 >conftest.err
19761 cat conftest.err >&5
19762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } && {
19764 test -z "$ac_c_werror_flag" ||
19765 test ! -s conftest.err
19766 } && test -s conftest.$ac_objext; then
19767 fu_cv_sys_truncating_statfs=yes
19769 $as_echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 fu_cv_sys_truncating_statfs=no
19775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19778 if test $fu_cv_sys_truncating_statfs = yes; then
19780 cat >>confdefs.h <<\_ACEOF
19781 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
19785 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
19786 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
19791 # Code from module ftello:
19799 { $as_echo "$as_me:$LINENO: checking for ftello" >&5
19800 $as_echo_n "checking for ftello... " >&6; }
19801 if test "${gl_cv_func_ftello+set}" = set; then
19802 $as_echo_n "(cached) " >&6
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (ac_try="$ac_link"
19822 case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19827 $as_echo "$ac_try_echo") >&5
19828 (eval "$ac_link") 2>conftest.er1
19830 grep -v '^ *+' conftest.er1 >conftest.err
19832 cat conftest.err >&5
19833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } && {
19835 test -z "$ac_c_werror_flag" ||
19836 test ! -s conftest.err
19837 } && test -s conftest$ac_exeext && {
19838 test "$cross_compiling" = yes ||
19839 $as_test_x conftest$ac_exeext
19841 gl_cv_func_ftello=yes
19843 $as_echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 gl_cv_func_ftello=no
19849 rm -rf conftest.dSYM
19850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19851 conftest$ac_exeext conftest.$ac_ext
19854 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_ftello" >&5
19855 $as_echo "$gl_cv_func_ftello" >&6; }
19856 if test $gl_cv_func_ftello = no; then
19859 if test $gl_cv_var_stdin_large_offset = no; then
19863 { $as_echo "$as_me:$LINENO: checking whether ftello works" >&5
19864 $as_echo_n "checking whether ftello works... " >&6; }
19865 if test "${gl_cv_func_ftello_works+set}" = set; then
19866 $as_echo_n "(cached) " >&6
19870 # Guess no on Solaris.
19871 solaris*) gl_cv_func_ftello_works="guessing no" ;;
19872 # Guess yes otherwise.
19873 *) gl_cv_func_ftello_works="guessing yes" ;;
19875 if test "$cross_compiling" = yes; then
19878 cat >conftest.$ac_ext <<_ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19886 #include <stdlib.h>
19887 #include <string.h>
19888 #define TESTFILE "conftest.tmp"
19894 /* Create a file with some contents. */
19895 fp = fopen (TESTFILE, "w");
19898 if (fwrite ("foogarsh", 1, 8, fp) < 8)
19903 /* The file's contents is now "foogarsh". */
19905 /* Try writing after reading to EOF. */
19906 fp = fopen (TESTFILE, "r+");
19909 if (fseek (fp, -1, SEEK_END))
19911 if (!(getc (fp) == 'h'))
19913 if (!(getc (fp) == EOF))
19915 if (!(ftell (fp) == 8))
19917 if (!(ftell (fp) == 8))
19919 if (!(putc ('!', fp) == '!'))
19921 if (!(ftell (fp) == 9))
19923 if (!(fclose (fp) == 0))
19925 fp = fopen (TESTFILE, "r");
19930 if (!(fread (buf, 1, 10, fp) == 9))
19932 if (!(memcmp (buf, "foogarsh!", 9) == 0))
19935 if (!(fclose (fp) == 0))
19938 /* The file's contents is now "foogarsh!". */
19943 rm -f conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_link") 2>&5
19953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19955 { (case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19960 $as_echo "$ac_try_echo") >&5
19961 (eval "$ac_try") 2>&5
19963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; }; then
19965 gl_cv_func_ftello_works=yes
19967 $as_echo "$as_me: program exited with status $ac_status" >&5
19968 $as_echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19971 ( exit $ac_status )
19972 gl_cv_func_ftello_works=no
19974 rm -rf conftest.dSYM
19975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19981 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_ftello_works" >&5
19982 $as_echo "$gl_cv_func_ftello_works" >&6; }
19983 case "$gl_cv_func_ftello_works" in
19988 cat >>confdefs.h <<\_ACEOF
19989 #define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1
19996 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
20006 gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
20018 cat >>confdefs.h <<\_ACEOF
20019 #define GNULIB_TEST_FTELLO 1
20024 # Code from module ftruncate:
20035 if test $ac_cv_func_ftruncate = no; then
20045 gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
20049 for ac_func in chsize
20051 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20052 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20053 $as_echo_n "checking for $ac_func... " >&6; }
20054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20055 $as_echo_n "(cached) " >&6
20057 cat >conftest.$ac_ext <<_ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20065 #define $ac_func innocuous_$ac_func
20067 /* System header to define __stub macros and hopefully few prototypes,
20068 which can conflict with char $ac_func (); below.
20069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20070 <limits.h> exists even on freestanding compilers. */
20073 # include <limits.h>
20075 # include <assert.h>
20080 /* Override any GCC internal prototype to avoid an error.
20081 Use char because int might match the return type of a GCC
20082 builtin and then its argument prototype would still apply. */
20087 /* The GNU C library defines this for functions which it implements
20088 to always fail with ENOSYS. Some functions are actually named
20089 something starting with __ and the normal name is an alias. */
20090 #if defined __stub_$ac_func || defined __stub___$ac_func
20097 return $ac_func ();
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20109 $as_echo "$ac_try_echo") >&5
20110 (eval "$ac_link") 2>conftest.er1
20112 grep -v '^ *+' conftest.er1 >conftest.err
20114 cat conftest.err >&5
20115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } && {
20117 test -z "$ac_c_werror_flag" ||
20118 test ! -s conftest.err
20119 } && test -s conftest$ac_exeext && {
20120 test "$cross_compiling" = yes ||
20121 $as_test_x conftest$ac_exeext
20123 eval "$as_ac_var=yes"
20125 $as_echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20128 eval "$as_ac_var=no"
20131 rm -rf conftest.dSYM
20132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20133 conftest$ac_exeext conftest.$ac_ext
20135 ac_res=`eval 'as_val=${'$as_ac_var'}
20136 $as_echo "$as_val"'`
20137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20138 $as_echo "$ac_res" >&6; }
20139 as_val=`eval 'as_val=${'$as_ac_var'}
20140 $as_echo "$as_val"'`
20141 if test "x$as_val" = x""yes; then
20142 cat >>confdefs.h <<_ACEOF
20143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20152 # Yes, we know mingw lacks ftruncate.
20155 # If someone lacks ftruncate, make configure fail, and request
20156 # a bug report to inform us about it.
20157 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
20158 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20160 { { $as_echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
20161 Please report this, along with the output of \"uname -a\", to the
20162 bug-coreutils@gnu.org mailing list. To continue past this point,
20163 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
20164 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
20165 See \`config.log' for more details." >&5
20166 $as_echo "$as_me: error: Your system lacks the ftruncate function.
20167 Please report this, along with the output of \"uname -a\", to the
20168 bug-coreutils@gnu.org mailing list. To continue past this point,
20169 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
20170 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
20171 See \`config.log' for more details." >&2;}
20172 { (exit 1); exit 1; }; }; }
20184 cat >>confdefs.h <<\_ACEOF
20185 #define GNULIB_TEST_FTRUNCATE 1
20190 # Code from module full-read:
20191 # Code from module full-write:
20192 # Code from module getaddrinfo:
20194 { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
20195 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
20197 gai_saved_LIBS="$LIBS"
20199 { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
20200 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
20201 if test "${ac_cv_search_getaddrinfo+set}" = set; then
20202 $as_echo_n "(cached) " >&6
20204 ac_func_search_save_LIBS=$LIBS
20205 cat >conftest.$ac_ext <<_ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20212 /* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
20218 char getaddrinfo ();
20222 return getaddrinfo ();
20227 for ac_lib in '' socket network net; do
20228 if test -z "$ac_lib"; then
20229 ac_res="none required"
20232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20241 $as_echo "$ac_try_echo") >&5
20242 (eval "$ac_link") 2>conftest.er1
20244 grep -v '^ *+' conftest.er1 >conftest.err
20246 cat conftest.err >&5
20247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && {
20249 test -z "$ac_c_werror_flag" ||
20250 test ! -s conftest.err
20251 } && test -s conftest$ac_exeext && {
20252 test "$cross_compiling" = yes ||
20253 $as_test_x conftest$ac_exeext
20255 ac_cv_search_getaddrinfo=$ac_res
20257 $as_echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20263 rm -rf conftest.dSYM
20264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20266 if test "${ac_cv_search_getaddrinfo+set}" = set; then
20270 if test "${ac_cv_search_getaddrinfo+set}" = set; then
20273 ac_cv_search_getaddrinfo=no
20275 rm conftest.$ac_ext
20276 LIBS=$ac_func_search_save_LIBS
20278 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
20279 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
20280 ac_res=$ac_cv_search_getaddrinfo
20281 if test "$ac_res" != no; then
20282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20283 if test "$ac_cv_search_getaddrinfo" != "none required"; then
20284 GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
20288 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
20290 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20291 $as_echo_n "checking for getaddrinfo... " >&6; }
20292 if test "${gl_cv_func_getaddrinfo+set}" = set; then
20293 $as_echo_n "(cached) " >&6
20296 cat >conftest.$ac_ext <<_ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20303 #include <sys/types.h>
20304 #ifdef HAVE_SYS_SOCKET_H
20305 #include <sys/socket.h>
20307 #ifdef HAVE_NETDB_H
20310 #include <stddef.h>
20315 getaddrinfo("", "", NULL, NULL);
20320 rm -f conftest.$ac_objext conftest$ac_exeext
20321 if { (ac_try="$ac_link"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20327 $as_echo "$ac_try_echo") >&5
20328 (eval "$ac_link") 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && {
20335 test -z "$ac_c_werror_flag" ||
20336 test ! -s conftest.err
20337 } && test -s conftest$ac_exeext && {
20338 test "$cross_compiling" = yes ||
20339 $as_test_x conftest$ac_exeext
20341 gl_cv_func_getaddrinfo=yes
20343 $as_echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 gl_cv_func_getaddrinfo=no
20349 rm -rf conftest.dSYM
20350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20351 conftest$ac_exeext conftest.$ac_ext
20353 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
20354 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
20355 if test $gl_cv_func_getaddrinfo = no; then
20356 { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
20357 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
20358 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
20359 $as_echo_n "(cached) " >&6
20362 gl_cv_w32_getaddrinfo=no
20363 am_save_LIBS="$LIBS"
20364 LIBS="$LIBS -lws2_32"
20365 cat >conftest.$ac_ext <<_ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20372 #ifdef HAVE_WS2TCPIP_H
20373 #include <ws2tcpip.h>
20375 #include <stddef.h>
20380 getaddrinfo(NULL, NULL, NULL, NULL);
20385 rm -f conftest.$ac_objext conftest$ac_exeext
20386 if { (ac_try="$ac_link"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20392 $as_echo "$ac_try_echo") >&5
20393 (eval "$ac_link") 2>conftest.er1
20395 grep -v '^ *+' conftest.er1 >conftest.err
20397 cat conftest.err >&5
20398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } && {
20400 test -z "$ac_c_werror_flag" ||
20401 test ! -s conftest.err
20402 } && test -s conftest$ac_exeext && {
20403 test "$cross_compiling" = yes ||
20404 $as_test_x conftest$ac_exeext
20406 gl_cv_w32_getaddrinfo=yes
20408 $as_echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20414 rm -rf conftest.dSYM
20415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20416 conftest$ac_exeext conftest.$ac_ext
20417 LIBS="$am_save_LIBS"
20420 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
20421 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
20422 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
20423 GETADDRINFO_LIB="-lws2_32"
20424 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
20434 gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
20439 # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
20440 # inline function declared in ws2tcpip.h, so we need to get that
20441 # header included somehow.
20442 { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
20443 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
20444 if test "${gl_cv_func_gai_strerror+set}" = set; then
20445 $as_echo_n "(cached) " >&6
20448 cat >conftest.$ac_ext <<_ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20455 #include <sys/types.h>
20456 #ifdef HAVE_SYS_SOCKET_H
20457 #include <sys/socket.h>
20459 #ifdef HAVE_NETDB_H
20462 #ifdef HAVE_WS2TCPIP_H
20463 #include <ws2tcpip.h>
20465 #include <stddef.h>
20470 gai_strerror (NULL);
20475 rm -f conftest.$ac_objext conftest$ac_exeext
20476 if { (ac_try="$ac_link"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20482 $as_echo "$ac_try_echo") >&5
20483 (eval "$ac_link") 2>conftest.er1
20485 grep -v '^ *+' conftest.er1 >conftest.err
20487 cat conftest.err >&5
20488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } && {
20490 test -z "$ac_c_werror_flag" ||
20491 test ! -s conftest.err
20492 } && test -s conftest$ac_exeext && {
20493 test "$cross_compiling" = yes ||
20494 $as_test_x conftest$ac_exeext
20496 gl_cv_func_gai_strerror=yes
20498 $as_echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20501 gl_cv_func_gai_strerror=no
20504 rm -rf conftest.dSYM
20505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20506 conftest$ac_exeext conftest.$ac_ext
20508 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
20509 $as_echo "$gl_cv_func_gai_strerror" >&6; }
20510 if test $gl_cv_func_gai_strerror = no; then
20519 gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
20523 LIBS="$gai_saved_LIBS"
20533 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
20534 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
20535 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
20536 $as_echo_n "(cached) " >&6
20538 cat >conftest.$ac_ext <<_ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544 #include <sys/socket.h>
20549 static struct sockaddr ac_aggr;
20550 if (ac_aggr.sa_len)
20556 rm -f conftest.$ac_objext
20557 if { (ac_try="$ac_compile"
20558 case "(($ac_try" in
20559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560 *) ac_try_echo=$ac_try;;
20562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20563 $as_echo "$ac_try_echo") >&5
20564 (eval "$ac_compile") 2>conftest.er1
20566 grep -v '^ *+' conftest.er1 >conftest.err
20568 cat conftest.err >&5
20569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest.$ac_objext; then
20574 ac_cv_member_struct_sockaddr_sa_len=yes
20576 $as_echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 #include <sys/socket.h>
20590 static struct sockaddr ac_aggr;
20591 if (sizeof ac_aggr.sa_len)
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20604 $as_echo "$ac_try_echo") >&5
20605 (eval "$ac_compile") 2>conftest.er1
20607 grep -v '^ *+' conftest.er1 >conftest.err
20609 cat conftest.err >&5
20610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } && {
20612 test -z "$ac_c_werror_flag" ||
20613 test ! -s conftest.err
20614 } && test -s conftest.$ac_objext; then
20615 ac_cv_member_struct_sockaddr_sa_len=yes
20617 $as_echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 ac_cv_member_struct_sockaddr_sa_len=no
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
20629 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
20630 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
20632 cat >>confdefs.h <<_ACEOF
20633 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
20648 { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
20649 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
20650 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
20651 $as_echo_n "(cached) " >&6
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 /* sys/types.h is not needed according to POSIX, but the
20661 sys/socket.h in i386-unknown-freebsd4.10 and
20662 powerpc-apple-darwin5.5 required it. */
20663 #include <sys/types.h>
20664 #ifdef HAVE_SYS_SOCKET_H
20665 #include <sys/socket.h>
20667 #ifdef HAVE_NETDB_H
20670 #ifdef HAVE_WS2TCPIP_H
20671 #include <ws2tcpip.h>
20678 #ifndef getaddrinfo
20679 (void) getaddrinfo;
20686 rm -f conftest.$ac_objext
20687 if { (ac_try="$ac_compile"
20688 case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20693 $as_echo "$ac_try_echo") >&5
20694 (eval "$ac_compile") 2>conftest.er1
20696 grep -v '^ *+' conftest.er1 >conftest.err
20698 cat conftest.err >&5
20699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } && {
20701 test -z "$ac_c_werror_flag" ||
20702 test ! -s conftest.err
20703 } && test -s conftest.$ac_objext; then
20704 ac_cv_have_decl_getaddrinfo=yes
20706 $as_echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20709 ac_cv_have_decl_getaddrinfo=no
20712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20714 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
20715 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
20716 if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
20718 cat >>confdefs.h <<_ACEOF
20719 #define HAVE_DECL_GETADDRINFO 1
20724 cat >>confdefs.h <<_ACEOF
20725 #define HAVE_DECL_GETADDRINFO 0
20730 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
20731 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
20732 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
20733 $as_echo_n "(cached) " >&6
20735 cat >conftest.$ac_ext <<_ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20742 /* sys/types.h is not needed according to POSIX, but the
20743 sys/socket.h in i386-unknown-freebsd4.10 and
20744 powerpc-apple-darwin5.5 required it. */
20745 #include <sys/types.h>
20746 #ifdef HAVE_SYS_SOCKET_H
20747 #include <sys/socket.h>
20749 #ifdef HAVE_NETDB_H
20752 #ifdef HAVE_WS2TCPIP_H
20753 #include <ws2tcpip.h>
20760 #ifndef freeaddrinfo
20761 (void) freeaddrinfo;
20768 rm -f conftest.$ac_objext
20769 if { (ac_try="$ac_compile"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20775 $as_echo "$ac_try_echo") >&5
20776 (eval "$ac_compile") 2>conftest.er1
20778 grep -v '^ *+' conftest.er1 >conftest.err
20780 cat conftest.err >&5
20781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } && {
20783 test -z "$ac_c_werror_flag" ||
20784 test ! -s conftest.err
20785 } && test -s conftest.$ac_objext; then
20786 ac_cv_have_decl_freeaddrinfo=yes
20788 $as_echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 ac_cv_have_decl_freeaddrinfo=no
20794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20796 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
20797 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
20798 if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
20800 cat >>confdefs.h <<_ACEOF
20801 #define HAVE_DECL_FREEADDRINFO 1
20806 cat >>confdefs.h <<_ACEOF
20807 #define HAVE_DECL_FREEADDRINFO 0
20812 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
20813 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
20814 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
20815 $as_echo_n "(cached) " >&6
20817 cat >conftest.$ac_ext <<_ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20824 /* sys/types.h is not needed according to POSIX, but the
20825 sys/socket.h in i386-unknown-freebsd4.10 and
20826 powerpc-apple-darwin5.5 required it. */
20827 #include <sys/types.h>
20828 #ifdef HAVE_SYS_SOCKET_H
20829 #include <sys/socket.h>
20831 #ifdef HAVE_NETDB_H
20834 #ifdef HAVE_WS2TCPIP_H
20835 #include <ws2tcpip.h>
20842 #ifndef gai_strerror
20843 (void) gai_strerror;
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20857 $as_echo "$ac_try_echo") >&5
20858 (eval "$ac_compile") 2>conftest.er1
20860 grep -v '^ *+' conftest.er1 >conftest.err
20862 cat conftest.err >&5
20863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } && {
20865 test -z "$ac_c_werror_flag" ||
20866 test ! -s conftest.err
20867 } && test -s conftest.$ac_objext; then
20868 ac_cv_have_decl_gai_strerror=yes
20870 $as_echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ac_cv_have_decl_gai_strerror=no
20876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20878 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
20879 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
20880 if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
20882 cat >>confdefs.h <<_ACEOF
20883 #define HAVE_DECL_GAI_STRERROR 1
20888 cat >>confdefs.h <<_ACEOF
20889 #define HAVE_DECL_GAI_STRERROR 0
20894 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
20895 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
20896 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
20897 $as_echo_n "(cached) " >&6
20899 cat >conftest.$ac_ext <<_ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20906 /* sys/types.h is not needed according to POSIX, but the
20907 sys/socket.h in i386-unknown-freebsd4.10 and
20908 powerpc-apple-darwin5.5 required it. */
20909 #include <sys/types.h>
20910 #ifdef HAVE_SYS_SOCKET_H
20911 #include <sys/socket.h>
20913 #ifdef HAVE_NETDB_H
20916 #ifdef HAVE_WS2TCPIP_H
20917 #include <ws2tcpip.h>
20924 #ifndef getnameinfo
20925 (void) getnameinfo;
20932 rm -f conftest.$ac_objext
20933 if { (ac_try="$ac_compile"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20939 $as_echo "$ac_try_echo") >&5
20940 (eval "$ac_compile") 2>conftest.er1
20942 grep -v '^ *+' conftest.er1 >conftest.err
20944 cat conftest.err >&5
20945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } && {
20947 test -z "$ac_c_werror_flag" ||
20948 test ! -s conftest.err
20949 } && test -s conftest.$ac_objext; then
20950 ac_cv_have_decl_getnameinfo=yes
20952 $as_echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 ac_cv_have_decl_getnameinfo=no
20958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
20961 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
20962 if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
20964 cat >>confdefs.h <<_ACEOF
20965 #define HAVE_DECL_GETNAMEINFO 1
20970 cat >>confdefs.h <<_ACEOF
20971 #define HAVE_DECL_GETNAMEINFO 0
20978 if test $ac_cv_have_decl_getaddrinfo = no; then
20979 HAVE_DECL_GETADDRINFO=0
20981 if test $ac_cv_have_decl_freeaddrinfo = no; then
20982 HAVE_DECL_FREEADDRINFO=0
20984 if test $ac_cv_have_decl_gai_strerror = no; then
20985 HAVE_DECL_GAI_STRERROR=0
20987 if test $ac_cv_have_decl_getnameinfo = no; then
20988 HAVE_DECL_GETNAMEINFO=0
20991 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
20992 $as_echo_n "checking for struct addrinfo... " >&6; }
20993 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
20994 $as_echo_n "(cached) " >&6
20996 ac_cv_type_struct_addrinfo=no
20997 cat >conftest.$ac_ext <<_ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21004 #include <sys/types.h>
21005 #ifdef HAVE_SYS_SOCKET_H
21006 #include <sys/socket.h>
21008 #ifdef HAVE_NETDB_H
21011 #ifdef HAVE_WS2TCPIP_H
21012 #include <ws2tcpip.h>
21019 if (sizeof (struct addrinfo))
21025 rm -f conftest.$ac_objext
21026 if { (ac_try="$ac_compile"
21027 case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21032 $as_echo "$ac_try_echo") >&5
21033 (eval "$ac_compile") 2>conftest.er1
21035 grep -v '^ *+' conftest.er1 >conftest.err
21037 cat conftest.err >&5
21038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } && {
21040 test -z "$ac_c_werror_flag" ||
21041 test ! -s conftest.err
21042 } && test -s conftest.$ac_objext; then
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21050 #include <sys/types.h>
21051 #ifdef HAVE_SYS_SOCKET_H
21052 #include <sys/socket.h>
21054 #ifdef HAVE_NETDB_H
21057 #ifdef HAVE_WS2TCPIP_H
21058 #include <ws2tcpip.h>
21065 if (sizeof ((struct addrinfo)))
21071 rm -f conftest.$ac_objext
21072 if { (ac_try="$ac_compile"
21073 case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21078 $as_echo "$ac_try_echo") >&5
21079 (eval "$ac_compile") 2>conftest.er1
21081 grep -v '^ *+' conftest.er1 >conftest.err
21083 cat conftest.err >&5
21084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } && {
21086 test -z "$ac_c_werror_flag" ||
21087 test ! -s conftest.err
21088 } && test -s conftest.$ac_objext; then
21091 $as_echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ac_cv_type_struct_addrinfo=yes
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21099 $as_echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
21108 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
21109 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
21111 cat >>confdefs.h <<_ACEOF
21112 #define HAVE_STRUCT_ADDRINFO 1
21118 if test $ac_cv_type_struct_addrinfo = no; then
21119 HAVE_STRUCT_ADDRINFO=0
21122 case " $GETADDRINFO_LIB " in
21123 *" $HOSTENT_LIB "*) ;;
21124 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
21127 case " $GETADDRINFO_LIB " in
21128 *" $SERVENT_LIB "*) ;;
21129 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
21132 case " $GETADDRINFO_LIB " in
21133 *" $INET_NTOP_LIB "*) ;;
21134 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
21143 GNULIB_GETADDRINFO=1
21146 # Code from module getopt-gnu:
21154 cat >>confdefs.h <<\_ACEOF
21155 #define GNULIB_TEST_GETOPT_GNU 1
21159 # Code from module getopt-posix:
21165 if test -n "$gl_replace_getopt"; then
21171 cat >>confdefs.h <<\_ACEOF
21172 #define __GETOPT_PREFIX rpl_
21177 GNULIB_UNISTD_H_GETOPT=1
21186 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21196 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21213 # Code from module gettext-h:
21216 # Code from module gettimeofday:
21229 gl_gettimeofday_timezone=void
21230 if test $ac_cv_func_gettimeofday != yes; then
21231 HAVE_GETTIMEOFDAY=0
21240 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21244 for ac_header in sys/timeb.h
21246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21248 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21249 $as_echo_n "checking for $ac_header... " >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21251 $as_echo_n "(cached) " >&6
21253 ac_res=`eval 'as_val=${'$as_ac_Header'}
21254 $as_echo "$as_val"'`
21255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21256 $as_echo "$ac_res" >&6; }
21258 # Is the header compilable?
21259 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21260 $as_echo_n "checking $ac_header usability... " >&6; }
21261 cat >conftest.$ac_ext <<_ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 $ac_includes_default
21268 #include <$ac_header>
21270 rm -f conftest.$ac_objext
21271 if { (ac_try="$ac_compile"
21272 case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21277 $as_echo "$ac_try_echo") >&5
21278 (eval "$ac_compile") 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && {
21285 test -z "$ac_c_werror_flag" ||
21286 test ! -s conftest.err
21287 } && test -s conftest.$ac_objext; then
21288 ac_header_compiler=yes
21290 $as_echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ac_header_compiler=no
21296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21297 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21298 $as_echo "$ac_header_compiler" >&6; }
21300 # Is the header present?
21301 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21302 $as_echo_n "checking $ac_header presence... " >&6; }
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 #include <$ac_header>
21311 if { (ac_try="$ac_cpp conftest.$ac_ext"
21312 case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21317 $as_echo "$ac_try_echo") >&5
21318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21320 grep -v '^ *+' conftest.er1 >conftest.err
21322 cat conftest.err >&5
21323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } >/dev/null && {
21325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21328 ac_header_preproc=yes
21330 $as_echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 ac_header_preproc=no
21336 rm -f conftest.err conftest.$ac_ext
21337 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338 $as_echo "$ac_header_preproc" >&6; }
21340 # So? What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21344 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21347 ac_header_preproc=yes
21350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21351 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21353 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21355 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21357 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21361 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21366 $as_echo_n "checking for $ac_header... " >&6; }
21367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21368 $as_echo_n "(cached) " >&6
21370 eval "$as_ac_Header=\$ac_header_preproc"
21372 ac_res=`eval 'as_val=${'$as_ac_Header'}
21373 $as_echo "$as_val"'`
21374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21375 $as_echo "$ac_res" >&6; }
21378 as_val=`eval 'as_val=${'$as_ac_Header'}
21379 $as_echo "$as_val"'`
21380 if test "x$as_val" = x""yes; then
21381 cat >>confdefs.h <<_ACEOF
21382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21390 for ac_func in _ftime
21392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21393 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21394 $as_echo_n "checking for $ac_func... " >&6; }
21395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21396 $as_echo_n "(cached) " >&6
21398 cat >conftest.$ac_ext <<_ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21406 #define $ac_func innocuous_$ac_func
21408 /* System header to define __stub macros and hopefully few prototypes,
21409 which can conflict with char $ac_func (); below.
21410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21411 <limits.h> exists even on freestanding compilers. */
21414 # include <limits.h>
21416 # include <assert.h>
21421 /* Override any GCC internal prototype to avoid an error.
21422 Use char because int might match the return type of a GCC
21423 builtin and then its argument prototype would still apply. */
21428 /* The GNU C library defines this for functions which it implements
21429 to always fail with ENOSYS. Some functions are actually named
21430 something starting with __ and the normal name is an alias. */
21431 #if defined __stub_$ac_func || defined __stub___$ac_func
21438 return $ac_func ();
21443 rm -f conftest.$ac_objext conftest$ac_exeext
21444 if { (ac_try="$ac_link"
21445 case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21450 $as_echo "$ac_try_echo") >&5
21451 (eval "$ac_link") 2>conftest.er1
21453 grep -v '^ *+' conftest.er1 >conftest.err
21455 cat conftest.err >&5
21456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } && {
21458 test -z "$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21460 } && test -s conftest$ac_exeext && {
21461 test "$cross_compiling" = yes ||
21462 $as_test_x conftest$ac_exeext
21464 eval "$as_ac_var=yes"
21466 $as_echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21469 eval "$as_ac_var=no"
21472 rm -rf conftest.dSYM
21473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21474 conftest$ac_exeext conftest.$ac_ext
21476 ac_res=`eval 'as_val=${'$as_ac_var'}
21477 $as_echo "$as_val"'`
21478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21479 $as_echo "$ac_res" >&6; }
21480 as_val=`eval 'as_val=${'$as_ac_var'}
21481 $as_echo "$as_val"'`
21482 if test "x$as_val" = x""yes; then
21483 cat >>confdefs.h <<_ACEOF
21484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21495 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
21496 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21497 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
21498 $as_echo_n "(cached) " >&6
21500 if test "$cross_compiling" = yes; then
21501 gl_cv_func_gettimeofday_clobber=yes
21503 cat >conftest.$ac_ext <<_ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21509 #include <string.h>
21510 #include <sys/time.h>
21512 #include <stdlib.h>
21520 struct tm saved_lt;
21522 lt = localtime (&t);
21524 gettimeofday (&tv, NULL);
21525 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21531 rm -f conftest$ac_exeext
21532 if { (ac_try="$ac_link"
21533 case "(($ac_try" in
21534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535 *) ac_try_echo=$ac_try;;
21537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21538 $as_echo "$ac_try_echo") >&5
21539 (eval "$ac_link") 2>&5
21541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21543 { (case "(($ac_try" in
21544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545 *) ac_try_echo=$ac_try;;
21547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21548 $as_echo "$ac_try_echo") >&5
21549 (eval "$ac_try") 2>&5
21551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
21553 gl_cv_func_gettimeofday_clobber=no
21555 $as_echo "$as_me: program exited with status $ac_status" >&5
21556 $as_echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 ( exit $ac_status )
21560 gl_cv_func_gettimeofday_clobber=yes
21562 rm -rf conftest.dSYM
21563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21568 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
21569 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21571 if test $gl_cv_func_gettimeofday_clobber = yes; then
21572 REPLACE_GETTIMEOFDAY=1
21582 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21586 for ac_header in sys/timeb.h
21588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21591 $as_echo_n "checking for $ac_header... " >&6; }
21592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21593 $as_echo_n "(cached) " >&6
21595 ac_res=`eval 'as_val=${'$as_ac_Header'}
21596 $as_echo "$as_val"'`
21597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21598 $as_echo "$ac_res" >&6; }
21600 # Is the header compilable?
21601 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21602 $as_echo_n "checking $ac_header usability... " >&6; }
21603 cat >conftest.$ac_ext <<_ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 $ac_includes_default
21610 #include <$ac_header>
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21619 $as_echo "$ac_try_echo") >&5
21620 (eval "$ac_compile") 2>conftest.er1
21622 grep -v '^ *+' conftest.er1 >conftest.err
21624 cat conftest.err >&5
21625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && {
21627 test -z "$ac_c_werror_flag" ||
21628 test ! -s conftest.err
21629 } && test -s conftest.$ac_objext; then
21630 ac_header_compiler=yes
21632 $as_echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21635 ac_header_compiler=no
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21640 $as_echo "$ac_header_compiler" >&6; }
21642 # Is the header present?
21643 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21644 $as_echo_n "checking $ac_header presence... " >&6; }
21645 cat >conftest.$ac_ext <<_ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 #include <$ac_header>
21653 if { (ac_try="$ac_cpp conftest.$ac_ext"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21659 $as_echo "$ac_try_echo") >&5
21660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21662 grep -v '^ *+' conftest.er1 >conftest.err
21664 cat conftest.err >&5
21665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } >/dev/null && {
21667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21668 test ! -s conftest.err
21670 ac_header_preproc=yes
21672 $as_echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21675 ac_header_preproc=no
21678 rm -f conftest.err conftest.$ac_ext
21679 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21680 $as_echo "$ac_header_preproc" >&6; }
21682 # So? What about this header?
21683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21686 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21688 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21689 ac_header_preproc=yes
21692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21693 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21695 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21697 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21699 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21703 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21707 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21708 $as_echo_n "checking for $ac_header... " >&6; }
21709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21710 $as_echo_n "(cached) " >&6
21712 eval "$as_ac_Header=\$ac_header_preproc"
21714 ac_res=`eval 'as_val=${'$as_ac_Header'}
21715 $as_echo "$as_val"'`
21716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21717 $as_echo "$ac_res" >&6; }
21720 as_val=`eval 'as_val=${'$as_ac_Header'}
21721 $as_echo "$as_val"'`
21722 if test "x$as_val" = x""yes; then
21723 cat >>confdefs.h <<_ACEOF
21724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21732 for ac_func in _ftime
21734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21736 $as_echo_n "checking for $ac_func... " >&6; }
21737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21738 $as_echo_n "(cached) " >&6
21740 cat >conftest.$ac_ext <<_ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21748 #define $ac_func innocuous_$ac_func
21750 /* System header to define __stub macros and hopefully few prototypes,
21751 which can conflict with char $ac_func (); below.
21752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21753 <limits.h> exists even on freestanding compilers. */
21756 # include <limits.h>
21758 # include <assert.h>
21763 /* Override any GCC internal prototype to avoid an error.
21764 Use char because int might match the return type of a GCC
21765 builtin and then its argument prototype would still apply. */
21770 /* The GNU C library defines this for functions which it implements
21771 to always fail with ENOSYS. Some functions are actually named
21772 something starting with __ and the normal name is an alias. */
21773 #if defined __stub_$ac_func || defined __stub___$ac_func
21780 return $ac_func ();
21785 rm -f conftest.$ac_objext conftest$ac_exeext
21786 if { (ac_try="$ac_link"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21792 $as_echo "$ac_try_echo") >&5
21793 (eval "$ac_link") 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && {
21800 test -z "$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 } && test -s conftest$ac_exeext && {
21803 test "$cross_compiling" = yes ||
21804 $as_test_x conftest$ac_exeext
21806 eval "$as_ac_var=yes"
21808 $as_echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21811 eval "$as_ac_var=no"
21814 rm -rf conftest.dSYM
21815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21816 conftest$ac_exeext conftest.$ac_ext
21818 ac_res=`eval 'as_val=${'$as_ac_var'}
21819 $as_echo "$as_val"'`
21820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21821 $as_echo "$ac_res" >&6; }
21822 as_val=`eval 'as_val=${'$as_ac_var'}
21823 $as_echo "$as_val"'`
21824 if test "x$as_val" = x""yes; then
21825 cat >>confdefs.h <<_ACEOF
21826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21834 cat >>confdefs.h <<\_ACEOF
21835 #define gmtime rpl_gmtime
21839 cat >>confdefs.h <<\_ACEOF
21840 #define localtime rpl_localtime
21845 cat >>confdefs.h <<\_ACEOF
21846 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
21851 { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
21852 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21853 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
21854 $as_echo_n "(cached) " >&6
21856 cat >conftest.$ac_ext <<_ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862 #include <sys/time.h>
21864 int gettimeofday (struct timeval *restrict, void *restrict);
21869 /* glibc uses struct timezone * rather than the POSIX void *
21870 if _GNU_SOURCE is defined. However, since the only portable
21871 use of gettimeofday uses NULL as the second parameter, and
21872 since the glibc definition is actually more typesafe, it is
21873 not worth wrapping this to get a compliant signature. */
21874 int (*f) (struct timeval *restrict, void *restrict)
21877 return !(x | c.tv_sec | c.tv_usec);
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 gl_cv_func_gettimeofday_posix_signature=yes
21903 $as_echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 #include <sys/time.h>
21913 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21923 rm -f conftest.$ac_objext
21924 if { (ac_try="$ac_compile"
21925 case "(($ac_try" in
21926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927 *) ac_try_echo=$ac_try;;
21929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21930 $as_echo "$ac_try_echo") >&5
21931 (eval "$ac_compile") 2>conftest.er1
21933 grep -v '^ *+' conftest.er1 >conftest.err
21935 cat conftest.err >&5
21936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } && {
21938 test -z "$ac_c_werror_flag" ||
21939 test ! -s conftest.err
21940 } && test -s conftest.$ac_objext; then
21941 gl_cv_func_gettimeofday_posix_signature=almost
21943 $as_echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 gl_cv_func_gettimeofday_posix_signature=no
21949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21954 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21955 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21956 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21957 gl_gettimeofday_timezone='struct timezone'
21958 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21959 REPLACE_GETTIMEOFDAY=1
21968 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21972 for ac_header in sys/timeb.h
21974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21976 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21977 $as_echo_n "checking for $ac_header... " >&6; }
21978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21979 $as_echo_n "(cached) " >&6
21981 ac_res=`eval 'as_val=${'$as_ac_Header'}
21982 $as_echo "$as_val"'`
21983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21984 $as_echo "$ac_res" >&6; }
21986 # Is the header compilable?
21987 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21988 $as_echo_n "checking $ac_header usability... " >&6; }
21989 cat >conftest.$ac_ext <<_ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h. */
21995 $ac_includes_default
21996 #include <$ac_header>
21998 rm -f conftest.$ac_objext
21999 if { (ac_try="$ac_compile"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22005 $as_echo "$ac_try_echo") >&5
22006 (eval "$ac_compile") 2>conftest.er1
22008 grep -v '^ *+' conftest.er1 >conftest.err
22010 cat conftest.err >&5
22011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && {
22013 test -z "$ac_c_werror_flag" ||
22014 test ! -s conftest.err
22015 } && test -s conftest.$ac_objext; then
22016 ac_header_compiler=yes
22018 $as_echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22021 ac_header_compiler=no
22024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22025 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22026 $as_echo "$ac_header_compiler" >&6; }
22028 # Is the header present?
22029 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22030 $as_echo_n "checking $ac_header presence... " >&6; }
22031 cat >conftest.$ac_ext <<_ACEOF
22034 cat confdefs.h >>conftest.$ac_ext
22035 cat >>conftest.$ac_ext <<_ACEOF
22036 /* end confdefs.h. */
22037 #include <$ac_header>
22039 if { (ac_try="$ac_cpp conftest.$ac_ext"
22040 case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22045 $as_echo "$ac_try_echo") >&5
22046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22048 grep -v '^ *+' conftest.er1 >conftest.err
22050 cat conftest.err >&5
22051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } >/dev/null && {
22053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22056 ac_header_preproc=yes
22058 $as_echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 ac_header_preproc=no
22064 rm -f conftest.err conftest.$ac_ext
22065 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22066 $as_echo "$ac_header_preproc" >&6; }
22068 # So? What about this header?
22069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22072 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22075 ac_header_preproc=yes
22078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22079 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22081 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22083 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22085 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22087 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22089 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22093 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22094 $as_echo_n "checking for $ac_header... " >&6; }
22095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22096 $as_echo_n "(cached) " >&6
22098 eval "$as_ac_Header=\$ac_header_preproc"
22100 ac_res=`eval 'as_val=${'$as_ac_Header'}
22101 $as_echo "$as_val"'`
22102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22103 $as_echo "$ac_res" >&6; }
22106 as_val=`eval 'as_val=${'$as_ac_Header'}
22107 $as_echo "$as_val"'`
22108 if test "x$as_val" = x""yes; then
22109 cat >>confdefs.h <<_ACEOF
22110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22118 for ac_func in _ftime
22120 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22121 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22122 $as_echo_n "checking for $ac_func... " >&6; }
22123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22124 $as_echo_n "(cached) " >&6
22126 cat >conftest.$ac_ext <<_ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22134 #define $ac_func innocuous_$ac_func
22136 /* System header to define __stub macros and hopefully few prototypes,
22137 which can conflict with char $ac_func (); below.
22138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22139 <limits.h> exists even on freestanding compilers. */
22142 # include <limits.h>
22144 # include <assert.h>
22149 /* Override any GCC internal prototype to avoid an error.
22150 Use char because int might match the return type of a GCC
22151 builtin and then its argument prototype would still apply. */
22156 /* The GNU C library defines this for functions which it implements
22157 to always fail with ENOSYS. Some functions are actually named
22158 something starting with __ and the normal name is an alias. */
22159 #if defined __stub_$ac_func || defined __stub___$ac_func
22166 return $ac_func ();
22171 rm -f conftest.$ac_objext conftest$ac_exeext
22172 if { (ac_try="$ac_link"
22173 case "(($ac_try" in
22174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175 *) ac_try_echo=$ac_try;;
22177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22178 $as_echo "$ac_try_echo") >&5
22179 (eval "$ac_link") 2>conftest.er1
22181 grep -v '^ *+' conftest.er1 >conftest.err
22183 cat conftest.err >&5
22184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); } && {
22186 test -z "$ac_c_werror_flag" ||
22187 test ! -s conftest.err
22188 } && test -s conftest$ac_exeext && {
22189 test "$cross_compiling" = yes ||
22190 $as_test_x conftest$ac_exeext
22192 eval "$as_ac_var=yes"
22194 $as_echo "$as_me: failed program was:" >&5
22195 sed 's/^/| /' conftest.$ac_ext >&5
22197 eval "$as_ac_var=no"
22200 rm -rf conftest.dSYM
22201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22202 conftest$ac_exeext conftest.$ac_ext
22204 ac_res=`eval 'as_val=${'$as_ac_var'}
22205 $as_echo "$as_val"'`
22206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22207 $as_echo "$ac_res" >&6; }
22208 as_val=`eval 'as_val=${'$as_ac_var'}
22209 $as_echo "$as_val"'`
22210 if test "x$as_val" = x""yes; then
22211 cat >>confdefs.h <<_ACEOF
22212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22222 cat >>confdefs.h <<_ACEOF
22223 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22230 GNULIB_GETTIMEOFDAY=1
22234 cat >>confdefs.h <<\_ACEOF
22235 #define GNULIB_TEST_GETTIMEOFDAY 1
22240 # Code from module havelib:
22241 # Code from module hostent:
22244 gl_saved_libs="$LIBS"
22245 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22246 $as_echo_n "checking for library containing gethostbyname... " >&6; }
22247 if test "${ac_cv_search_gethostbyname+set}" = set; then
22248 $as_echo_n "(cached) " >&6
22250 ac_func_search_save_LIBS=$LIBS
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22258 /* Override any GCC internal prototype to avoid an error.
22259 Use char because int might match the return type of a GCC
22260 builtin and then its argument prototype would still apply. */
22264 char gethostbyname ();
22268 return gethostbyname ();
22273 for ac_lib in '' nsl network net; do
22274 if test -z "$ac_lib"; then
22275 ac_res="none required"
22278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22280 rm -f conftest.$ac_objext conftest$ac_exeext
22281 if { (ac_try="$ac_link"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22287 $as_echo "$ac_try_echo") >&5
22288 (eval "$ac_link") 2>conftest.er1
22290 grep -v '^ *+' conftest.er1 >conftest.err
22292 cat conftest.err >&5
22293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } && {
22295 test -z "$ac_c_werror_flag" ||
22296 test ! -s conftest.err
22297 } && test -s conftest$ac_exeext && {
22298 test "$cross_compiling" = yes ||
22299 $as_test_x conftest$ac_exeext
22301 ac_cv_search_gethostbyname=$ac_res
22303 $as_echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22309 rm -rf conftest.dSYM
22310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22312 if test "${ac_cv_search_gethostbyname+set}" = set; then
22316 if test "${ac_cv_search_gethostbyname+set}" = set; then
22319 ac_cv_search_gethostbyname=no
22321 rm conftest.$ac_ext
22322 LIBS=$ac_func_search_save_LIBS
22324 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
22325 $as_echo "$ac_cv_search_gethostbyname" >&6; }
22326 ac_res=$ac_cv_search_gethostbyname
22327 if test "$ac_res" != no; then
22328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22329 if test "$ac_cv_search_gethostbyname" != "none required"; then
22330 HOSTENT_LIB="$ac_cv_search_gethostbyname"
22334 LIBS="$gl_saved_libs"
22335 if test -z "$HOSTENT_LIB"; then
22337 for ac_func in gethostbyname
22339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22340 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22341 $as_echo_n "checking for $ac_func... " >&6; }
22342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22343 $as_echo_n "(cached) " >&6
22345 cat >conftest.$ac_ext <<_ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h. */
22351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22353 #define $ac_func innocuous_$ac_func
22355 /* System header to define __stub macros and hopefully few prototypes,
22356 which can conflict with char $ac_func (); below.
22357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22358 <limits.h> exists even on freestanding compilers. */
22361 # include <limits.h>
22363 # include <assert.h>
22368 /* Override any GCC internal prototype to avoid an error.
22369 Use char because int might match the return type of a GCC
22370 builtin and then its argument prototype would still apply. */
22375 /* The GNU C library defines this for functions which it implements
22376 to always fail with ENOSYS. Some functions are actually named
22377 something starting with __ and the normal name is an alias. */
22378 #if defined __stub_$ac_func || defined __stub___$ac_func
22385 return $ac_func ();
22390 rm -f conftest.$ac_objext conftest$ac_exeext
22391 if { (ac_try="$ac_link"
22392 case "(($ac_try" in
22393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22397 $as_echo "$ac_try_echo") >&5
22398 (eval "$ac_link") 2>conftest.er1
22400 grep -v '^ *+' conftest.er1 >conftest.err
22402 cat conftest.err >&5
22403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } && {
22405 test -z "$ac_c_werror_flag" ||
22406 test ! -s conftest.err
22407 } && test -s conftest$ac_exeext && {
22408 test "$cross_compiling" = yes ||
22409 $as_test_x conftest$ac_exeext
22411 eval "$as_ac_var=yes"
22413 $as_echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 eval "$as_ac_var=no"
22419 rm -rf conftest.dSYM
22420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22421 conftest$ac_exeext conftest.$ac_ext
22423 ac_res=`eval 'as_val=${'$as_ac_var'}
22424 $as_echo "$as_val"'`
22425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22426 $as_echo "$ac_res" >&6; }
22427 as_val=`eval 'as_val=${'$as_ac_var'}
22428 $as_echo "$as_val"'`
22429 if test "x$as_val" = x""yes; then
22430 cat >>confdefs.h <<_ACEOF
22431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22436 { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
22437 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
22438 if test "${gl_cv_w32_gethostbyname+set}" = set; then
22439 $as_echo_n "(cached) " >&6
22441 gl_cv_w32_gethostbyname=no
22442 gl_save_LIBS="$LIBS"
22443 LIBS="$LIBS -lws2_32"
22444 cat >conftest.$ac_ext <<_ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22451 #ifdef HAVE_WINSOCK2_H
22452 #include <winsock2.h>
22454 #include <stddef.h>
22459 gethostbyname(NULL);
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (ac_try="$ac_link"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22471 $as_echo "$ac_try_echo") >&5
22472 (eval "$ac_link") 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && {
22479 test -z "$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 } && test -s conftest$ac_exeext && {
22482 test "$cross_compiling" = yes ||
22483 $as_test_x conftest$ac_exeext
22485 gl_cv_w32_gethostbyname=yes
22487 $as_echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22493 rm -rf conftest.dSYM
22494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22495 conftest$ac_exeext conftest.$ac_ext
22496 LIBS="$gl_save_LIBS"
22499 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
22500 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
22501 if test "$gl_cv_w32_gethostbyname" = "yes"; then
22502 HOSTENT_LIB="-lws2_32"
22511 # Code from module include_next:
22512 # Code from module inet_ntop:
22521 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
22522 $as_echo_n "checking for library containing inet_ntop... " >&6; }
22523 if test "${ac_cv_search_inet_ntop+set}" = set; then
22524 $as_echo_n "(cached) " >&6
22526 ac_func_search_save_LIBS=$LIBS
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22534 /* Override any GCC internal prototype to avoid an error.
22535 Use char because int might match the return type of a GCC
22536 builtin and then its argument prototype would still apply. */
22544 return inet_ntop ();
22549 for ac_lib in '' nsl; do
22550 if test -z "$ac_lib"; then
22551 ac_res="none required"
22554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22556 rm -f conftest.$ac_objext conftest$ac_exeext
22557 if { (ac_try="$ac_link"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22563 $as_echo "$ac_try_echo") >&5
22564 (eval "$ac_link") 2>conftest.er1
22566 grep -v '^ *+' conftest.er1 >conftest.err
22568 cat conftest.err >&5
22569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && {
22571 test -z "$ac_c_werror_flag" ||
22572 test ! -s conftest.err
22573 } && test -s conftest$ac_exeext && {
22574 test "$cross_compiling" = yes ||
22575 $as_test_x conftest$ac_exeext
22577 ac_cv_search_inet_ntop=$ac_res
22579 $as_echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22585 rm -rf conftest.dSYM
22586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22588 if test "${ac_cv_search_inet_ntop+set}" = set; then
22592 if test "${ac_cv_search_inet_ntop+set}" = set; then
22595 ac_cv_search_inet_ntop=no
22597 rm conftest.$ac_ext
22598 LIBS=$ac_func_search_save_LIBS
22600 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
22601 $as_echo "$ac_cv_search_inet_ntop" >&6; }
22602 ac_res=$ac_cv_search_inet_ntop
22603 if test "$ac_res" != no; then
22604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22616 for ac_func in inet_ntop
22618 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22619 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22620 $as_echo_n "checking for $ac_func... " >&6; }
22621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22622 $as_echo_n "(cached) " >&6
22624 cat >conftest.$ac_ext <<_ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22632 #define $ac_func innocuous_$ac_func
22634 /* System header to define __stub macros and hopefully few prototypes,
22635 which can conflict with char $ac_func (); below.
22636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22637 <limits.h> exists even on freestanding compilers. */
22640 # include <limits.h>
22642 # include <assert.h>
22647 /* Override any GCC internal prototype to avoid an error.
22648 Use char because int might match the return type of a GCC
22649 builtin and then its argument prototype would still apply. */
22654 /* The GNU C library defines this for functions which it implements
22655 to always fail with ENOSYS. Some functions are actually named
22656 something starting with __ and the normal name is an alias. */
22657 #if defined __stub_$ac_func || defined __stub___$ac_func
22664 return $ac_func ();
22669 rm -f conftest.$ac_objext conftest$ac_exeext
22670 if { (ac_try="$ac_link"
22671 case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22676 $as_echo "$ac_try_echo") >&5
22677 (eval "$ac_link") 2>conftest.er1
22679 grep -v '^ *+' conftest.er1 >conftest.err
22681 cat conftest.err >&5
22682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest$ac_exeext && {
22687 test "$cross_compiling" = yes ||
22688 $as_test_x conftest$ac_exeext
22690 eval "$as_ac_var=yes"
22692 $as_echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22695 eval "$as_ac_var=no"
22698 rm -rf conftest.dSYM
22699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22700 conftest$ac_exeext conftest.$ac_ext
22702 ac_res=`eval 'as_val=${'$as_ac_var'}
22703 $as_echo "$as_val"'`
22704 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22705 $as_echo "$ac_res" >&6; }
22706 as_val=`eval 'as_val=${'$as_ac_var'}
22707 $as_echo "$as_val"'`
22708 if test "x$as_val" = x""yes; then
22709 cat >>confdefs.h <<_ACEOF
22710 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22715 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22725 if test "$ac_cv_search_inet_ntop" != "no" &&
22726 test "$ac_cv_search_inet_ntop" != "none required"; then
22727 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
22732 { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
22733 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
22734 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
22735 $as_echo_n "(cached) " >&6
22737 cat >conftest.$ac_ext <<_ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22743 #include <arpa/inet.h>
22756 rm -f conftest.$ac_objext
22757 if { (ac_try="$ac_compile"
22758 case "(($ac_try" in
22759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760 *) ac_try_echo=$ac_try;;
22762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22763 $as_echo "$ac_try_echo") >&5
22764 (eval "$ac_compile") 2>conftest.er1
22766 grep -v '^ *+' conftest.er1 >conftest.err
22768 cat conftest.err >&5
22769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } && {
22771 test -z "$ac_c_werror_flag" ||
22772 test ! -s conftest.err
22773 } && test -s conftest.$ac_objext; then
22774 ac_cv_have_decl_inet_ntop=yes
22776 $as_echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22779 ac_cv_have_decl_inet_ntop=no
22782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22784 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
22785 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
22786 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
22788 cat >>confdefs.h <<_ACEOF
22789 #define HAVE_DECL_INET_NTOP 1
22794 cat >>confdefs.h <<_ACEOF
22795 #define HAVE_DECL_INET_NTOP 0
22802 if test $ac_cv_have_decl_inet_ntop = no; then
22803 HAVE_DECL_INET_NTOP=0
22815 # Code from module inet_pton:
22824 { $as_echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
22825 $as_echo_n "checking for library containing inet_pton... " >&6; }
22826 if test "${ac_cv_search_inet_pton+set}" = set; then
22827 $as_echo_n "(cached) " >&6
22829 ac_func_search_save_LIBS=$LIBS
22830 cat >conftest.$ac_ext <<_ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22837 /* Override any GCC internal prototype to avoid an error.
22838 Use char because int might match the return type of a GCC
22839 builtin and then its argument prototype would still apply. */
22847 return inet_pton ();
22852 for ac_lib in '' nsl; do
22853 if test -z "$ac_lib"; then
22854 ac_res="none required"
22857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22859 rm -f conftest.$ac_objext conftest$ac_exeext
22860 if { (ac_try="$ac_link"
22861 case "(($ac_try" in
22862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863 *) ac_try_echo=$ac_try;;
22865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22866 $as_echo "$ac_try_echo") >&5
22867 (eval "$ac_link") 2>conftest.er1
22869 grep -v '^ *+' conftest.er1 >conftest.err
22871 cat conftest.err >&5
22872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } && {
22874 test -z "$ac_c_werror_flag" ||
22875 test ! -s conftest.err
22876 } && test -s conftest$ac_exeext && {
22877 test "$cross_compiling" = yes ||
22878 $as_test_x conftest$ac_exeext
22880 ac_cv_search_inet_pton=$ac_res
22882 $as_echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22888 rm -rf conftest.dSYM
22889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22891 if test "${ac_cv_search_inet_pton+set}" = set; then
22895 if test "${ac_cv_search_inet_pton+set}" = set; then
22898 ac_cv_search_inet_pton=no
22900 rm conftest.$ac_ext
22901 LIBS=$ac_func_search_save_LIBS
22903 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
22904 $as_echo "$ac_cv_search_inet_pton" >&6; }
22905 ac_res=$ac_cv_search_inet_pton
22906 if test "$ac_res" != no; then
22907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22919 for ac_func in inet_pton
22921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22922 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22923 $as_echo_n "checking for $ac_func... " >&6; }
22924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22925 $as_echo_n "(cached) " >&6
22927 cat >conftest.$ac_ext <<_ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22935 #define $ac_func innocuous_$ac_func
22937 /* System header to define __stub macros and hopefully few prototypes,
22938 which can conflict with char $ac_func (); below.
22939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22940 <limits.h> exists even on freestanding compilers. */
22943 # include <limits.h>
22945 # include <assert.h>
22950 /* Override any GCC internal prototype to avoid an error.
22951 Use char because int might match the return type of a GCC
22952 builtin and then its argument prototype would still apply. */
22957 /* The GNU C library defines this for functions which it implements
22958 to always fail with ENOSYS. Some functions are actually named
22959 something starting with __ and the normal name is an alias. */
22960 #if defined __stub_$ac_func || defined __stub___$ac_func
22967 return $ac_func ();
22972 rm -f conftest.$ac_objext conftest$ac_exeext
22973 if { (ac_try="$ac_link"
22974 case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22979 $as_echo "$ac_try_echo") >&5
22980 (eval "$ac_link") 2>conftest.er1
22982 grep -v '^ *+' conftest.er1 >conftest.err
22984 cat conftest.err >&5
22985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } && {
22987 test -z "$ac_c_werror_flag" ||
22988 test ! -s conftest.err
22989 } && test -s conftest$ac_exeext && {
22990 test "$cross_compiling" = yes ||
22991 $as_test_x conftest$ac_exeext
22993 eval "$as_ac_var=yes"
22995 $as_echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 eval "$as_ac_var=no"
23001 rm -rf conftest.dSYM
23002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23003 conftest$ac_exeext conftest.$ac_ext
23005 ac_res=`eval 'as_val=${'$as_ac_var'}
23006 $as_echo "$as_val"'`
23007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23008 $as_echo "$ac_res" >&6; }
23009 as_val=`eval 'as_val=${'$as_ac_var'}
23010 $as_echo "$as_val"'`
23011 if test "x$as_val" = x""yes; then
23012 cat >>confdefs.h <<_ACEOF
23013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23018 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23028 if test "$ac_cv_search_inet_pton" != "no" &&
23029 test "$ac_cv_search_inet_pton" != "none required"; then
23030 INET_PTON_LIB="$ac_cv_search_inet_pton"
23035 { $as_echo "$as_me:$LINENO: checking whether inet_pton is declared" >&5
23036 $as_echo_n "checking whether inet_pton is declared... " >&6; }
23037 if test "${ac_cv_have_decl_inet_pton+set}" = set; then
23038 $as_echo_n "(cached) " >&6
23040 cat >conftest.$ac_ext <<_ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 #include <arpa/inet.h>
23059 rm -f conftest.$ac_objext
23060 if { (ac_try="$ac_compile"
23061 case "(($ac_try" in
23062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063 *) ac_try_echo=$ac_try;;
23065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23066 $as_echo "$ac_try_echo") >&5
23067 (eval "$ac_compile") 2>conftest.er1
23069 grep -v '^ *+' conftest.er1 >conftest.err
23071 cat conftest.err >&5
23072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } && {
23074 test -z "$ac_c_werror_flag" ||
23075 test ! -s conftest.err
23076 } && test -s conftest.$ac_objext; then
23077 ac_cv_have_decl_inet_pton=yes
23079 $as_echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23082 ac_cv_have_decl_inet_pton=no
23085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_pton" >&5
23088 $as_echo "$ac_cv_have_decl_inet_pton" >&6; }
23089 if test "x$ac_cv_have_decl_inet_pton" = x""yes; then
23091 cat >>confdefs.h <<_ACEOF
23092 #define HAVE_DECL_INET_PTON 1
23097 cat >>confdefs.h <<_ACEOF
23098 #define HAVE_DECL_INET_PTON 0
23105 if test $ac_cv_have_decl_inet_pton = no; then
23106 HAVE_DECL_INET_PTON=0
23118 # Code from module langinfo:
23136 if test $gl_cv_have_include_next = yes; then
23137 gl_cv_next_langinfo_h='<'langinfo.h'>'
23139 { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
23140 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
23141 if test "${gl_cv_next_langinfo_h+set}" = set; then
23142 $as_echo_n "(cached) " >&6
23145 if test $ac_cv_header_langinfo_h = yes; then
23146 cat >conftest.$ac_ext <<_ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h. */
23152 #include <langinfo.h>
23156 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23157 *) gl_absname_cpp="$ac_cpp" ;;
23159 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23160 sed -n '\#/langinfo.h#{
23161 s#.*"\(.*/langinfo.h\)".*#\1#
23167 gl_cv_next_langinfo_h='<'langinfo.h'>'
23171 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
23172 $as_echo "$gl_cv_next_langinfo_h" >&6; }
23174 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
23176 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23177 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23178 gl_next_as_first_directive='<'langinfo.h'>'
23180 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23181 gl_next_as_first_directive=$gl_cv_next_langinfo_h
23183 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
23188 HAVE_LANGINFO_CODESET=0
23189 HAVE_LANGINFO_ERA=0
23197 if test $ac_cv_header_langinfo_h = yes; then
23199 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
23200 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
23201 if test "${gl_cv_header_langinfo_codeset+set}" = set; then
23202 $as_echo_n "(cached) " >&6
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 #include <langinfo.h>
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23228 $as_echo "$ac_try_echo") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23231 grep -v '^ *+' conftest.er1 >conftest.err
23233 cat conftest.err >&5
23234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 gl_cv_header_langinfo_codeset=yes
23241 $as_echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23244 gl_cv_header_langinfo_codeset=no
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
23251 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
23252 if test $gl_cv_header_langinfo_codeset = yes; then
23253 HAVE_LANGINFO_CODESET=1
23255 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
23256 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
23257 if test "${gl_cv_header_langinfo_era+set}" = set; then
23258 $as_echo_n "(cached) " >&6
23260 cat >conftest.$ac_ext <<_ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23266 #include <langinfo.h>
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23284 $as_echo "$ac_try_echo") >&5
23285 (eval "$ac_compile") 2>conftest.er1
23287 grep -v '^ *+' conftest.er1 >conftest.err
23289 cat conftest.err >&5
23290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } && {
23292 test -z "$ac_c_werror_flag" ||
23293 test ! -s conftest.err
23294 } && test -s conftest.$ac_objext; then
23295 gl_cv_header_langinfo_era=yes
23297 $as_echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23300 gl_cv_header_langinfo_era=no
23303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23306 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
23307 $as_echo "$gl_cv_header_langinfo_era" >&6; }
23308 if test $gl_cv_header_langinfo_era = yes; then
23309 HAVE_LANGINFO_ERA=1
23320 for gl_func in nl_langinfo; do
23321 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23322 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
23323 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23324 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
23325 $as_echo_n "(cached) " >&6
23327 cat >conftest.$ac_ext <<_ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 #include <langinfo.h>
23344 rm -f conftest.$ac_objext
23345 if { (ac_try="$ac_compile"
23346 case "(($ac_try" in
23347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23348 *) ac_try_echo=$ac_try;;
23350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23351 $as_echo "$ac_try_echo") >&5
23352 (eval "$ac_compile") 2>conftest.er1
23354 grep -v '^ *+' conftest.er1 >conftest.err
23356 cat conftest.err >&5
23357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); } && {
23359 test -z "$ac_c_werror_flag" ||
23360 test ! -s conftest.err
23361 } && test -s conftest.$ac_objext; then
23362 eval "$as_gl_Symbol=yes"
23364 $as_echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23367 eval "$as_gl_Symbol=no"
23370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23372 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
23373 $as_echo "$as_val"'`
23374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23375 $as_echo "$ac_res" >&6; }
23376 as_val=`eval 'as_val=${'$as_gl_Symbol'}
23377 $as_echo "$as_val"'`
23378 if test "x$as_val" = x""yes; then
23379 cat >>confdefs.h <<_ACEOF
23380 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23383 eval ac_cv_have_decl_$gl_func=yes
23389 # Code from module localcharset:
23404 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
23406 # Code from module lock:
23409 if test "$gl_threads_api" = posix; then
23410 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
23411 # pthread_rwlock_* functions.
23412 { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
23413 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
23414 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
23415 $as_echo_n "(cached) " >&6
23417 ac_cv_type_pthread_rwlock_t=no
23418 cat >conftest.$ac_ext <<_ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424 #include <pthread.h>
23429 if (sizeof (pthread_rwlock_t))
23435 rm -f conftest.$ac_objext
23436 if { (ac_try="$ac_compile"
23437 case "(($ac_try" in
23438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439 *) ac_try_echo=$ac_try;;
23441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23442 $as_echo "$ac_try_echo") >&5
23443 (eval "$ac_compile") 2>conftest.er1
23445 grep -v '^ *+' conftest.er1 >conftest.err
23447 cat conftest.err >&5
23448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); } && {
23450 test -z "$ac_c_werror_flag" ||
23451 test ! -s conftest.err
23452 } && test -s conftest.$ac_objext; then
23453 cat >conftest.$ac_ext <<_ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23459 #include <pthread.h>
23464 if (sizeof ((pthread_rwlock_t)))
23470 rm -f conftest.$ac_objext
23471 if { (ac_try="$ac_compile"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23477 $as_echo "$ac_try_echo") >&5
23478 (eval "$ac_compile") 2>conftest.er1
23480 grep -v '^ *+' conftest.er1 >conftest.err
23482 cat conftest.err >&5
23483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } && {
23485 test -z "$ac_c_werror_flag" ||
23486 test ! -s conftest.err
23487 } && test -s conftest.$ac_objext; then
23490 $as_echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23493 ac_cv_type_pthread_rwlock_t=yes
23496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23498 $as_echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23506 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
23507 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
23508 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
23510 cat >>confdefs.h <<\_ACEOF
23511 #define HAVE_PTHREAD_RWLOCK 1
23516 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
23517 cat >conftest.$ac_ext <<_ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 #include <pthread.h>
23529 #if __FreeBSD__ == 4
23530 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
23532 int x = (int)PTHREAD_MUTEX_RECURSIVE;
23540 rm -f conftest.$ac_objext
23541 if { (ac_try="$ac_compile"
23542 case "(($ac_try" in
23543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544 *) ac_try_echo=$ac_try;;
23546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23547 $as_echo "$ac_try_echo") >&5
23548 (eval "$ac_compile") 2>conftest.er1
23550 grep -v '^ *+' conftest.er1 >conftest.err
23552 cat conftest.err >&5
23553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); } && {
23555 test -z "$ac_c_werror_flag" ||
23556 test ! -s conftest.err
23557 } && test -s conftest.$ac_objext; then
23559 cat >>confdefs.h <<\_ACEOF
23560 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
23564 $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23576 # Code from module lseek:
23580 { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
23581 $as_echo_n "checking whether lseek detects pipes... " >&6; }
23582 if test "${gl_cv_func_lseek_pipe+set}" = set; then
23583 $as_echo_n "(cached) " >&6
23585 if test $cross_compiling = no; then
23586 cat >conftest.$ac_ext <<_ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23593 #include <sys/types.h> /* for off_t */
23594 #include <stdio.h> /* for SEEK_CUR */
23595 #include <unistd.h>
23600 /* Exit with success only if stdin is seekable. */
23601 return lseek (0, (off_t)0, SEEK_CUR) < 0;
23607 rm -f conftest.$ac_objext conftest$ac_exeext
23608 if { (ac_try="$ac_link"
23609 case "(($ac_try" in
23610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23611 *) ac_try_echo=$ac_try;;
23613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23614 $as_echo "$ac_try_echo") >&5
23615 (eval "$ac_link") 2>conftest.er1
23617 grep -v '^ *+' conftest.er1 >conftest.err
23619 cat conftest.err >&5
23620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); } && {
23622 test -z "$ac_c_werror_flag" ||
23623 test ! -s conftest.err
23624 } && test -s conftest$ac_exeext && {
23625 test "$cross_compiling" = yes ||
23626 $as_test_x conftest$ac_exeext
23628 if test -s conftest$ac_exeext \
23629 && ./conftest$ac_exeext < conftest.$ac_ext \
23630 && test 1 = "`echo hi \
23631 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
23632 gl_cv_func_lseek_pipe=yes
23634 gl_cv_func_lseek_pipe=no
23637 $as_echo "$as_me: failed program was:" >&5
23638 sed 's/^/| /' conftest.$ac_ext >&5
23640 gl_cv_func_lseek_pipe=no
23643 rm -rf conftest.dSYM
23644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23645 conftest$ac_exeext conftest.$ac_ext
23647 cat >conftest.$ac_ext <<_ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23654 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
23655 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663 *) ac_try_echo=$ac_try;;
23665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23666 $as_echo "$ac_try_echo") >&5
23667 (eval "$ac_compile") 2>conftest.er1
23669 grep -v '^ *+' conftest.er1 >conftest.err
23671 cat conftest.err >&5
23672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } && {
23674 test -z "$ac_c_werror_flag" ||
23675 test ! -s conftest.err
23676 } && test -s conftest.$ac_objext; then
23677 gl_cv_func_lseek_pipe=yes
23679 $as_echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23682 gl_cv_func_lseek_pipe=no
23685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23688 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
23689 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
23690 if test $gl_cv_func_lseek_pipe = no; then
23700 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
23705 cat >>confdefs.h <<\_ACEOF
23706 #define LSEEK_PIPE_BROKEN 1
23719 cat >>confdefs.h <<\_ACEOF
23720 #define GNULIB_TEST_LSEEK 1
23725 # Code from module lstat:
23735 if test $ac_cv_func_lstat = yes; then
23737 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23740 # Prerequisites of lib/lstat.c.
23753 cat >>confdefs.h <<\_ACEOF
23754 #define GNULIB_TEST_LSTAT 1
23759 # Code from module malloc-gnu:
23763 for ac_header in stdlib.h
23765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23768 $as_echo_n "checking for $ac_header... " >&6; }
23769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23770 $as_echo_n "(cached) " >&6
23772 ac_res=`eval 'as_val=${'$as_ac_Header'}
23773 $as_echo "$as_val"'`
23774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23775 $as_echo "$ac_res" >&6; }
23777 # Is the header compilable?
23778 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23779 $as_echo_n "checking $ac_header usability... " >&6; }
23780 cat >conftest.$ac_ext <<_ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h. */
23786 $ac_includes_default
23787 #include <$ac_header>
23789 rm -f conftest.$ac_objext
23790 if { (ac_try="$ac_compile"
23791 case "(($ac_try" in
23792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23793 *) ac_try_echo=$ac_try;;
23795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23796 $as_echo "$ac_try_echo") >&5
23797 (eval "$ac_compile") 2>conftest.er1
23799 grep -v '^ *+' conftest.er1 >conftest.err
23801 cat conftest.err >&5
23802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); } && {
23804 test -z "$ac_c_werror_flag" ||
23805 test ! -s conftest.err
23806 } && test -s conftest.$ac_objext; then
23807 ac_header_compiler=yes
23809 $as_echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23812 ac_header_compiler=no
23815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23816 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23817 $as_echo "$ac_header_compiler" >&6; }
23819 # Is the header present?
23820 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23821 $as_echo_n "checking $ac_header presence... " >&6; }
23822 cat >conftest.$ac_ext <<_ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h. */
23828 #include <$ac_header>
23830 if { (ac_try="$ac_cpp conftest.$ac_ext"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23836 $as_echo "$ac_try_echo") >&5
23837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23839 grep -v '^ *+' conftest.er1 >conftest.err
23841 cat conftest.err >&5
23842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } >/dev/null && {
23844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23845 test ! -s conftest.err
23847 ac_header_preproc=yes
23849 $as_echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23852 ac_header_preproc=no
23855 rm -f conftest.err conftest.$ac_ext
23856 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23857 $as_echo "$ac_header_preproc" >&6; }
23859 # So? What about this header?
23860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23863 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23866 ac_header_preproc=yes
23869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23870 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23872 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23874 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23876 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23880 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23885 $as_echo_n "checking for $ac_header... " >&6; }
23886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23887 $as_echo_n "(cached) " >&6
23889 eval "$as_ac_Header=\$ac_header_preproc"
23891 ac_res=`eval 'as_val=${'$as_ac_Header'}
23892 $as_echo "$as_val"'`
23893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23894 $as_echo "$ac_res" >&6; }
23897 as_val=`eval 'as_val=${'$as_ac_Header'}
23898 $as_echo "$as_val"'`
23899 if test "x$as_val" = x""yes; then
23900 cat >>confdefs.h <<_ACEOF
23901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23908 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23909 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
23910 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23911 $as_echo_n "(cached) " >&6
23913 if test "$cross_compiling" = yes; then
23914 ac_cv_func_malloc_0_nonnull=no
23916 cat >conftest.$ac_ext <<_ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h. */
23922 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
23923 # include <stdlib.h>
23931 return ! malloc (0);
23936 rm -f conftest$ac_exeext
23937 if { (ac_try="$ac_link"
23938 case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23943 $as_echo "$ac_try_echo") >&5
23944 (eval "$ac_link") 2>&5
23946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23948 { (case "(($ac_try" in
23949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23950 *) ac_try_echo=$ac_try;;
23952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23953 $as_echo "$ac_try_echo") >&5
23954 (eval "$ac_try") 2>&5
23956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); }; }; then
23958 ac_cv_func_malloc_0_nonnull=yes
23960 $as_echo "$as_me: program exited with status $ac_status" >&5
23961 $as_echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23964 ( exit $ac_status )
23965 ac_cv_func_malloc_0_nonnull=no
23967 rm -rf conftest.dSYM
23968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23973 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23974 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
23975 if test $ac_cv_func_malloc_0_nonnull = yes; then
23977 cat >>confdefs.h <<\_ACEOF
23978 #define HAVE_MALLOC_GNU 1
23982 cat >>confdefs.h <<\_ACEOF
23983 #define HAVE_MALLOC_GNU 0
23995 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24006 cat >>confdefs.h <<_ACEOF
24007 #define GNULIB_MALLOC_GNU 1
24011 # Code from module malloc-posix:
24015 if test $gl_cv_func_malloc_posix = yes; then
24017 cat >>confdefs.h <<\_ACEOF
24018 #define HAVE_MALLOC_POSIX 1
24031 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24040 GNULIB_MALLOC_POSIX=1
24044 cat >>confdefs.h <<\_ACEOF
24045 #define GNULIB_TEST_MALLOC_POSIX 1
24050 # Code from module mbrtowc:
24073 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24077 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
24078 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24079 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
24080 $as_echo_n "(cached) " >&6
24084 # Guess no on AIX and OSF/1.
24085 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24086 # Guess yes otherwise.
24087 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24089 if test $LOCALE_JA != none; then
24090 if test "$cross_compiling" = yes; then
24093 cat >conftest.$ac_ext <<_ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h. */
24100 #include <locale.h>
24101 #include <string.h>
24105 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24107 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24111 memset (&state, '\0', sizeof (mbstate_t));
24112 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24113 if (mbsinit (&state))
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 gl_cv_func_mbrtowc_incomplete_state=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 gl_cv_func_mbrtowc_incomplete_state=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: $gl_cv_func_mbrtowc_incomplete_state" >&5
24159 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24164 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
24165 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24166 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
24167 $as_echo_n "(cached) " >&6
24171 # Guess no on Solaris 8.
24172 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24173 # Guess yes otherwise.
24174 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24176 if test $LOCALE_ZH_CN != none; then
24177 if test "$cross_compiling" = yes; then
24180 cat >conftest.$ac_ext <<_ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h. */
24187 #include <locale.h>
24188 #include <stdlib.h>
24189 #include <string.h>
24193 /* This fails on Solaris 8:
24194 mbrtowc returns 2, and sets wc to 0x00F0.
24195 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24196 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24198 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24202 memset (&state, '\0', sizeof (mbstate_t));
24203 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24204 && mbtowc (&wc, input + 3, 6) == 4)
24210 rm -f conftest$ac_exeext
24211 if { (ac_try="$ac_link"
24212 case "(($ac_try" in
24213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214 *) ac_try_echo=$ac_try;;
24216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24217 $as_echo "$ac_try_echo") >&5
24218 (eval "$ac_link") 2>&5
24220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24222 { (case "(($ac_try" in
24223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24224 *) ac_try_echo=$ac_try;;
24226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24227 $as_echo "$ac_try_echo") >&5
24228 (eval "$ac_try") 2>&5
24230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); }; }; then
24232 gl_cv_func_mbrtowc_sanitycheck=yes
24234 $as_echo "$as_me: program exited with status $ac_status" >&5
24235 $as_echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24238 ( exit $ac_status )
24239 gl_cv_func_mbrtowc_sanitycheck=no
24241 rm -rf conftest.dSYM
24242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24249 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24250 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24252 REPLACE_MBSTATE_T=0
24253 case "$gl_cv_func_mbrtowc_incomplete_state" in
24255 *) REPLACE_MBSTATE_T=1 ;;
24257 case "$gl_cv_func_mbrtowc_sanitycheck" in
24259 *) REPLACE_MBSTATE_T=1 ;;
24262 REPLACE_MBSTATE_T=1
24264 if test $REPLACE_MBSTATE_T = 1; then
24278 if test $ac_cv_func_mbrtowc = no; then
24281 if test $REPLACE_MBSTATE_T = 1; then
24287 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
24288 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
24289 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
24290 $as_echo_n "(cached) " >&6
24294 # Guess no on OSF/1.
24295 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
24296 # Guess yes otherwise.
24297 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
24299 if test $LOCALE_FR_UTF8 != none; then
24300 if test "$cross_compiling" = yes; then
24303 cat >conftest.$ac_ext <<_ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h. */
24310 #include <locale.h>
24311 #include <string.h>
24315 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24321 memset (&state, '\0', sizeof (mbstate_t));
24322 wc = (wchar_t) 0xBADFACE;
24323 mbrtowc (&wc, NULL, 5, &state);
24324 /* Check that wc was not modified. */
24325 if (wc != (wchar_t) 0xBADFACE)
24331 rm -f conftest$ac_exeext
24332 if { (ac_try="$ac_link"
24333 case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24338 $as_echo "$ac_try_echo") >&5
24339 (eval "$ac_link") 2>&5
24341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24343 { (case "(($ac_try" in
24344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345 *) ac_try_echo=$ac_try;;
24347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24348 $as_echo "$ac_try_echo") >&5
24349 (eval "$ac_try") 2>&5
24351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); }; }; then
24353 gl_cv_func_mbrtowc_null_arg=yes
24355 $as_echo "$as_me: program exited with status $ac_status" >&5
24356 $as_echo "$as_me: failed program was:" >&5
24357 sed 's/^/| /' conftest.$ac_ext >&5
24359 ( exit $ac_status )
24360 gl_cv_func_mbrtowc_null_arg=no
24362 rm -rf conftest.dSYM
24363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24370 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
24371 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
24377 { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
24378 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
24379 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
24380 $as_echo_n "(cached) " >&6
24384 # Guess no on HP-UX and Solaris.
24385 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
24386 # Guess yes otherwise.
24387 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
24389 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
24390 if test "$cross_compiling" = yes; then
24393 cat >conftest.$ac_ext <<_ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h. */
24400 #include <locale.h>
24401 #include <string.h>
24405 /* This fails on Solaris. */
24406 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24408 char input[] = "B\303\274\303\237er"; /* "Büßer" */
24412 memset (&state, '\0', sizeof (mbstate_t));
24413 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24416 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
24420 /* This fails on HP-UX 11.11. */
24421 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24423 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24427 memset (&state, '\0', sizeof (mbstate_t));
24428 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24431 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
24438 rm -f conftest$ac_exeext
24439 if { (ac_try="$ac_link"
24440 case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24445 $as_echo "$ac_try_echo") >&5
24446 (eval "$ac_link") 2>&5
24448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24450 { (case "(($ac_try" in
24451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452 *) ac_try_echo=$ac_try;;
24454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24455 $as_echo "$ac_try_echo") >&5
24456 (eval "$ac_try") 2>&5
24458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); }; }; then
24460 gl_cv_func_mbrtowc_retval=yes
24462 $as_echo "$as_me: program exited with status $ac_status" >&5
24463 $as_echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24466 ( exit $ac_status )
24467 gl_cv_func_mbrtowc_retval=no
24469 rm -rf conftest.dSYM
24470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24477 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
24478 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
24483 { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
24484 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
24485 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
24486 $as_echo_n "(cached) " >&6
24490 # Guess no on Solaris 8 and 9.
24491 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
24492 # Guess yes otherwise.
24493 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
24495 if test $LOCALE_ZH_CN != none; then
24496 if test "$cross_compiling" = yes; then
24499 cat >conftest.$ac_ext <<_ACEOF
24502 cat confdefs.h >>conftest.$ac_ext
24503 cat >>conftest.$ac_ext <<_ACEOF
24504 /* end confdefs.h. */
24506 #include <locale.h>
24507 #include <string.h>
24511 /* This fails on Solaris 8 and 9. */
24512 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24517 memset (&state, '\0', sizeof (mbstate_t));
24518 if (mbrtowc (&wc, "", 1, &state) != 0)
24524 rm -f conftest$ac_exeext
24525 if { (ac_try="$ac_link"
24526 case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24531 $as_echo "$ac_try_echo") >&5
24532 (eval "$ac_link") 2>&5
24534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24536 { (case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24541 $as_echo "$ac_try_echo") >&5
24542 (eval "$ac_try") 2>&5
24544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); }; }; then
24546 gl_cv_func_mbrtowc_nul_retval=yes
24548 $as_echo "$as_me: program exited with status $ac_status" >&5
24549 $as_echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24552 ( exit $ac_status )
24553 gl_cv_func_mbrtowc_nul_retval=no
24555 rm -rf conftest.dSYM
24556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24563 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
24564 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
24566 case "$gl_cv_func_mbrtowc_null_arg" in
24569 cat >>confdefs.h <<\_ACEOF
24570 #define MBRTOWC_NULL_ARG_BUG 1
24576 case "$gl_cv_func_mbrtowc_retval" in
24579 cat >>confdefs.h <<\_ACEOF
24580 #define MBRTOWC_RETVAL_BUG 1
24586 case "$gl_cv_func_mbrtowc_nul_retval" in
24589 cat >>confdefs.h <<\_ACEOF
24590 #define MBRTOWC_NUL_RETVAL_BUG 1
24598 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
24610 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
24624 cat >>confdefs.h <<\_ACEOF
24625 #define GNULIB_TEST_MBRTOWC 1
24630 # Code from module mbsinit:
24653 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24657 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
24658 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24659 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
24660 $as_echo_n "(cached) " >&6
24664 # Guess no on AIX and OSF/1.
24665 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24666 # Guess yes otherwise.
24667 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24669 if test $LOCALE_JA != none; then
24670 if test "$cross_compiling" = yes; then
24673 cat >conftest.$ac_ext <<_ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h. */
24680 #include <locale.h>
24681 #include <string.h>
24685 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24687 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24691 memset (&state, '\0', sizeof (mbstate_t));
24692 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24693 if (mbsinit (&state))
24699 rm -f conftest$ac_exeext
24700 if { (ac_try="$ac_link"
24701 case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24706 $as_echo "$ac_try_echo") >&5
24707 (eval "$ac_link") 2>&5
24709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24711 { (case "(($ac_try" in
24712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713 *) ac_try_echo=$ac_try;;
24715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24716 $as_echo "$ac_try_echo") >&5
24717 (eval "$ac_try") 2>&5
24719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); }; }; then
24721 gl_cv_func_mbrtowc_incomplete_state=yes
24723 $as_echo "$as_me: program exited with status $ac_status" >&5
24724 $as_echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24727 ( exit $ac_status )
24728 gl_cv_func_mbrtowc_incomplete_state=no
24730 rm -rf conftest.dSYM
24731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24738 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24739 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24744 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
24745 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24746 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
24747 $as_echo_n "(cached) " >&6
24751 # Guess no on Solaris 8.
24752 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24753 # Guess yes otherwise.
24754 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24756 if test $LOCALE_ZH_CN != none; then
24757 if test "$cross_compiling" = yes; then
24760 cat >conftest.$ac_ext <<_ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h. */
24767 #include <locale.h>
24768 #include <stdlib.h>
24769 #include <string.h>
24773 /* This fails on Solaris 8:
24774 mbrtowc returns 2, and sets wc to 0x00F0.
24775 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24776 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24778 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24782 memset (&state, '\0', sizeof (mbstate_t));
24783 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24784 && mbtowc (&wc, input + 3, 6) == 4)
24790 rm -f conftest$ac_exeext
24791 if { (ac_try="$ac_link"
24792 case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24797 $as_echo "$ac_try_echo") >&5
24798 (eval "$ac_link") 2>&5
24800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24802 { (case "(($ac_try" in
24803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804 *) ac_try_echo=$ac_try;;
24806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24807 $as_echo "$ac_try_echo") >&5
24808 (eval "$ac_try") 2>&5
24810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); }; }; then
24812 gl_cv_func_mbrtowc_sanitycheck=yes
24814 $as_echo "$as_me: program exited with status $ac_status" >&5
24815 $as_echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24818 ( exit $ac_status )
24819 gl_cv_func_mbrtowc_sanitycheck=no
24821 rm -rf conftest.dSYM
24822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24829 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24830 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24832 REPLACE_MBSTATE_T=0
24833 case "$gl_cv_func_mbrtowc_incomplete_state" in
24835 *) REPLACE_MBSTATE_T=1 ;;
24837 case "$gl_cv_func_mbrtowc_sanitycheck" in
24839 *) REPLACE_MBSTATE_T=1 ;;
24842 REPLACE_MBSTATE_T=1
24844 if test $REPLACE_MBSTATE_T = 1; then
24858 if test $ac_cv_func_mbsinit = no; then
24861 if test $REPLACE_MBSTATE_T = 1; then
24865 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
24877 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
24891 cat >>confdefs.h <<\_ACEOF
24892 #define GNULIB_TEST_MBSINIT 1
24897 # Code from module memchr:
24906 cat >>confdefs.h <<\_ACEOF
24907 #define GNULIB_TEST_MEMCHR 1
24912 # Code from module mkdtemp:
24924 for ac_func in mkdtemp
24926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24927 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24928 $as_echo_n "checking for $ac_func... " >&6; }
24929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24930 $as_echo_n "(cached) " >&6
24932 cat >conftest.$ac_ext <<_ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h. */
24938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24940 #define $ac_func innocuous_$ac_func
24942 /* System header to define __stub macros and hopefully few prototypes,
24943 which can conflict with char $ac_func (); below.
24944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24945 <limits.h> exists even on freestanding compilers. */
24948 # include <limits.h>
24950 # include <assert.h>
24955 /* Override any GCC internal prototype to avoid an error.
24956 Use char because int might match the return type of a GCC
24957 builtin and then its argument prototype would still apply. */
24962 /* The GNU C library defines this for functions which it implements
24963 to always fail with ENOSYS. Some functions are actually named
24964 something starting with __ and the normal name is an alias. */
24965 #if defined __stub_$ac_func || defined __stub___$ac_func
24972 return $ac_func ();
24977 rm -f conftest.$ac_objext conftest$ac_exeext
24978 if { (ac_try="$ac_link"
24979 case "(($ac_try" in
24980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981 *) ac_try_echo=$ac_try;;
24983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24984 $as_echo "$ac_try_echo") >&5
24985 (eval "$ac_link") 2>conftest.er1
24987 grep -v '^ *+' conftest.er1 >conftest.err
24989 cat conftest.err >&5
24990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest$ac_exeext && {
24995 test "$cross_compiling" = yes ||
24996 $as_test_x conftest$ac_exeext
24998 eval "$as_ac_var=yes"
25000 $as_echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 eval "$as_ac_var=no"
25006 rm -rf conftest.dSYM
25007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25008 conftest$ac_exeext conftest.$ac_ext
25010 ac_res=`eval 'as_val=${'$as_ac_var'}
25011 $as_echo "$as_val"'`
25012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25013 $as_echo "$ac_res" >&6; }
25014 as_val=`eval 'as_val=${'$as_ac_var'}
25015 $as_echo "$as_val"'`
25016 if test "x$as_val" = x""yes; then
25017 cat >>confdefs.h <<_ACEOF
25018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25023 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25029 if test $ac_cv_func_mkdtemp = no; then
25042 cat >>confdefs.h <<\_ACEOF
25043 #define GNULIB_TEST_MKDTEMP 1
25048 # Code from module multiarch:
25050 # Code from module netdb:
25072 if test $gl_cv_have_include_next = yes; then
25073 gl_cv_next_netdb_h='<'netdb.h'>'
25075 { $as_echo "$as_me:$LINENO: checking absolute name of <netdb.h>" >&5
25076 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
25077 if test "${gl_cv_next_netdb_h+set}" = set; then
25078 $as_echo_n "(cached) " >&6
25081 if test $ac_cv_header_netdb_h = yes; then
25082 cat >conftest.$ac_ext <<_ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25092 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25093 *) gl_absname_cpp="$ac_cpp" ;;
25095 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25096 sed -n '\#/netdb.h#{
25097 s#.*"\(.*/netdb.h\)".*#\1#
25103 gl_cv_next_netdb_h='<'netdb.h'>'
25107 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netdb_h" >&5
25108 $as_echo "$gl_cv_next_netdb_h" >&6; }
25110 NEXT_NETDB_H=$gl_cv_next_netdb_h
25112 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25114 gl_next_as_first_directive='<'netdb.h'>'
25116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25117 gl_next_as_first_directive=$gl_cv_next_netdb_h
25119 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
25123 if test $ac_cv_header_netdb_h = yes; then
25135 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
25136 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25137 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
25138 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25139 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
25140 $as_echo_n "(cached) " >&6
25142 cat >conftest.$ac_ext <<_ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h. */
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162 *) ac_try_echo=$ac_try;;
25164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25165 $as_echo "$ac_try_echo") >&5
25166 (eval "$ac_compile") 2>conftest.er1
25168 grep -v '^ *+' conftest.er1 >conftest.err
25170 cat conftest.err >&5
25171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); } && {
25173 test -z "$ac_c_werror_flag" ||
25174 test ! -s conftest.err
25175 } && test -s conftest.$ac_objext; then
25176 eval "$as_gl_Symbol=yes"
25178 $as_echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25181 eval "$as_gl_Symbol=no"
25184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
25187 $as_echo "$as_val"'`
25188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25189 $as_echo "$ac_res" >&6; }
25190 as_val=`eval 'as_val=${'$as_gl_Symbol'}
25191 $as_echo "$as_val"'`
25192 if test "x$as_val" = x""yes; then
25193 cat >>confdefs.h <<_ACEOF
25194 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25197 eval ac_cv_have_decl_$gl_func=yes
25203 # Code from module netinet_in:
25205 { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
25206 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
25207 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
25208 $as_echo_n "(cached) " >&6
25211 cat >conftest.$ac_ext <<_ACEOF
25214 cat confdefs.h >>conftest.$ac_ext
25215 cat >>conftest.$ac_ext <<_ACEOF
25216 /* end confdefs.h. */
25217 #include <netinet/in.h>
25226 rm -f conftest.$ac_objext
25227 if { (ac_try="$ac_compile"
25228 case "(($ac_try" in
25229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230 *) ac_try_echo=$ac_try;;
25232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25233 $as_echo "$ac_try_echo") >&5
25234 (eval "$ac_compile") 2>conftest.er1
25236 grep -v '^ *+' conftest.er1 >conftest.err
25238 cat conftest.err >&5
25239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } && {
25241 test -z "$ac_c_werror_flag" ||
25242 test ! -s conftest.err
25243 } && test -s conftest.$ac_objext; then
25244 gl_cv_header_netinet_in_h_selfcontained=yes
25246 $as_echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25249 gl_cv_header_netinet_in_h_selfcontained=no
25252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25255 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
25256 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
25257 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
25260 NETINET_IN_H='netinet/in.h'
25262 for ac_header in netinet/in.h
25264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25267 $as_echo_n "checking for $ac_header... " >&6; }
25268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25269 $as_echo_n "(cached) " >&6
25271 ac_res=`eval 'as_val=${'$as_ac_Header'}
25272 $as_echo "$as_val"'`
25273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25274 $as_echo "$ac_res" >&6; }
25276 # Is the header compilable?
25277 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25278 $as_echo_n "checking $ac_header usability... " >&6; }
25279 cat >conftest.$ac_ext <<_ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h. */
25285 $ac_includes_default
25286 #include <$ac_header>
25288 rm -f conftest.$ac_objext
25289 if { (ac_try="$ac_compile"
25290 case "(($ac_try" in
25291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25292 *) ac_try_echo=$ac_try;;
25294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25295 $as_echo "$ac_try_echo") >&5
25296 (eval "$ac_compile") 2>conftest.er1
25298 grep -v '^ *+' conftest.er1 >conftest.err
25300 cat conftest.err >&5
25301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } && {
25303 test -z "$ac_c_werror_flag" ||
25304 test ! -s conftest.err
25305 } && test -s conftest.$ac_objext; then
25306 ac_header_compiler=yes
25308 $as_echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25311 ac_header_compiler=no
25314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25315 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25316 $as_echo "$ac_header_compiler" >&6; }
25318 # Is the header present?
25319 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25320 $as_echo_n "checking $ac_header presence... " >&6; }
25321 cat >conftest.$ac_ext <<_ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h. */
25327 #include <$ac_header>
25329 if { (ac_try="$ac_cpp conftest.$ac_ext"
25330 case "(($ac_try" in
25331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25332 *) ac_try_echo=$ac_try;;
25334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25335 $as_echo "$ac_try_echo") >&5
25336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25338 grep -v '^ *+' conftest.er1 >conftest.err
25340 cat conftest.err >&5
25341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } >/dev/null && {
25343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25344 test ! -s conftest.err
25346 ac_header_preproc=yes
25348 $as_echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25351 ac_header_preproc=no
25354 rm -f conftest.err conftest.$ac_ext
25355 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25356 $as_echo "$ac_header_preproc" >&6; }
25358 # So? What about this header?
25359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25362 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25365 ac_header_preproc=yes
25368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25369 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25371 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25373 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25375 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25377 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25379 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25384 $as_echo_n "checking for $ac_header... " >&6; }
25385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25386 $as_echo_n "(cached) " >&6
25388 eval "$as_ac_Header=\$ac_header_preproc"
25390 ac_res=`eval 'as_val=${'$as_ac_Header'}
25391 $as_echo "$as_val"'`
25392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25393 $as_echo "$ac_res" >&6; }
25396 as_val=`eval 'as_val=${'$as_ac_Header'}
25397 $as_echo "$as_val"'`
25398 if test "x$as_val" = x""yes; then
25399 cat >>confdefs.h <<_ACEOF
25400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25419 if test $gl_cv_have_include_next = yes; then
25420 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
25422 { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
25423 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
25424 if test "${gl_cv_next_netinet_in_h+set}" = set; then
25425 $as_echo_n "(cached) " >&6
25428 if test $ac_cv_header_netinet_in_h = yes; then
25429 cat >conftest.$ac_ext <<_ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h. */
25435 #include <netinet/in.h>
25439 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25440 *) gl_absname_cpp="$ac_cpp" ;;
25442 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25443 sed -n '\#/netinet/in.h#{
25444 s#.*"\(.*/netinet/in.h\)".*#\1#
25450 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
25454 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
25455 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
25457 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
25459 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25461 gl_next_as_first_directive='<'netinet/in.h'>'
25463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25464 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
25466 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
25470 if test $ac_cv_header_netinet_in_h = yes; then
25471 HAVE_NETINET_IN_H=1
25473 HAVE_NETINET_IN_H=0
25479 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
25480 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25481 if test -z "$MKDIR_P"; then
25482 if test "${ac_cv_path_mkdir+set}" = set; then
25483 $as_echo_n "(cached) " >&6
25485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25486 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
25489 test -z "$as_dir" && as_dir=.
25490 for ac_prog in mkdir gmkdir; do
25491 for ac_exec_ext in '' $ac_executable_extensions; do
25492 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
25493 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
25494 'mkdir (GNU coreutils) '* | \
25495 'mkdir (coreutils) '* | \
25496 'mkdir (fileutils) '4.1*)
25497 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
25507 if test "${ac_cv_path_mkdir+set}" = set; then
25508 MKDIR_P="$ac_cv_path_mkdir -p"
25510 # As a last resort, use the slow shell script. Don't cache a
25511 # value for MKDIR_P within a source directory, because that will
25512 # break other packages using the cache if that directory is
25513 # removed, or if the value is a relative name.
25514 test -d ./--version && rmdir ./--version
25515 MKDIR_P="$ac_install_sh -d"
25518 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
25519 $as_echo "$MKDIR_P" >&6; }
25522 # Code from module nl_langinfo:
25533 if test $ac_cv_func_nl_langinfo = yes; then
25534 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
25537 REPLACE_NL_LANGINFO=1
25539 cat >>confdefs.h <<\_ACEOF
25540 #define REPLACE_NL_LANGINFO 1
25551 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
25564 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
25571 GNULIB_NL_LANGINFO=1
25575 cat >>confdefs.h <<\_ACEOF
25576 #define GNULIB_TEST_NL_LANGINFO 1
25581 # Code from module physmem:
25591 gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
25594 # Prerequisites of lib/physmem.c.
25602 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
25603 machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
25605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25607 $as_echo_n "checking for $ac_header... " >&6; }
25608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25609 $as_echo_n "(cached) " >&6
25611 cat >conftest.$ac_ext <<_ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h. */
25617 $ac_includes_default
25619 #include <$ac_header>
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25628 $as_echo "$ac_try_echo") >&5
25629 (eval "$ac_compile") 2>conftest.er1
25631 grep -v '^ *+' conftest.er1 >conftest.err
25633 cat conftest.err >&5
25634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); } && {
25636 test -z "$ac_c_werror_flag" ||
25637 test ! -s conftest.err
25638 } && test -s conftest.$ac_objext; then
25639 eval "$as_ac_Header=yes"
25641 $as_echo "$as_me: failed program was:" >&5
25642 sed 's/^/| /' conftest.$ac_ext >&5
25644 eval "$as_ac_Header=no"
25647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25649 ac_res=`eval 'as_val=${'$as_ac_Header'}
25650 $as_echo "$as_val"'`
25651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25652 $as_echo "$ac_res" >&6; }
25653 as_val=`eval 'as_val=${'$as_ac_Header'}
25654 $as_echo "$as_val"'`
25655 if test "x$as_val" = x""yes; then
25656 cat >>confdefs.h <<_ACEOF
25657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25665 for ac_header in sys/sysctl.h
25667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25669 $as_echo_n "checking for $ac_header... " >&6; }
25670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25671 $as_echo_n "(cached) " >&6
25673 cat >conftest.$ac_ext <<_ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h. */
25679 $ac_includes_default
25680 #if HAVE_SYS_PARAM_H
25681 # include <sys/param.h>
25685 #include <$ac_header>
25687 rm -f conftest.$ac_objext
25688 if { (ac_try="$ac_compile"
25689 case "(($ac_try" in
25690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691 *) ac_try_echo=$ac_try;;
25693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25694 $as_echo "$ac_try_echo") >&5
25695 (eval "$ac_compile") 2>conftest.er1
25697 grep -v '^ *+' conftest.er1 >conftest.err
25699 cat conftest.err >&5
25700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); } && {
25702 test -z "$ac_c_werror_flag" ||
25703 test ! -s conftest.err
25704 } && test -s conftest.$ac_objext; then
25705 eval "$as_ac_Header=yes"
25707 $as_echo "$as_me: failed program was:" >&5
25708 sed 's/^/| /' conftest.$ac_ext >&5
25710 eval "$as_ac_Header=no"
25713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715 ac_res=`eval 'as_val=${'$as_ac_Header'}
25716 $as_echo "$as_val"'`
25717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25718 $as_echo "$ac_res" >&6; }
25719 as_val=`eval 'as_val=${'$as_ac_Header'}
25720 $as_echo "$as_val"'`
25721 if test "x$as_val" = x""yes; then
25722 cat >>confdefs.h <<_ACEOF
25723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25737 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
25739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25740 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25741 $as_echo_n "checking for $ac_func... " >&6; }
25742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25743 $as_echo_n "(cached) " >&6
25745 cat >conftest.$ac_ext <<_ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h. */
25751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25753 #define $ac_func innocuous_$ac_func
25755 /* System header to define __stub macros and hopefully few prototypes,
25756 which can conflict with char $ac_func (); below.
25757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25758 <limits.h> exists even on freestanding compilers. */
25761 # include <limits.h>
25763 # include <assert.h>
25768 /* Override any GCC internal prototype to avoid an error.
25769 Use char because int might match the return type of a GCC
25770 builtin and then its argument prototype would still apply. */
25775 /* The GNU C library defines this for functions which it implements
25776 to always fail with ENOSYS. Some functions are actually named
25777 something starting with __ and the normal name is an alias. */
25778 #if defined __stub_$ac_func || defined __stub___$ac_func
25785 return $ac_func ();
25790 rm -f conftest.$ac_objext conftest$ac_exeext
25791 if { (ac_try="$ac_link"
25792 case "(($ac_try" in
25793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794 *) ac_try_echo=$ac_try;;
25796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25797 $as_echo "$ac_try_echo") >&5
25798 (eval "$ac_link") 2>conftest.er1
25800 grep -v '^ *+' conftest.er1 >conftest.err
25802 cat conftest.err >&5
25803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); } && {
25805 test -z "$ac_c_werror_flag" ||
25806 test ! -s conftest.err
25807 } && test -s conftest$ac_exeext && {
25808 test "$cross_compiling" = yes ||
25809 $as_test_x conftest$ac_exeext
25811 eval "$as_ac_var=yes"
25813 $as_echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25816 eval "$as_ac_var=no"
25819 rm -rf conftest.dSYM
25820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25821 conftest$ac_exeext conftest.$ac_ext
25823 ac_res=`eval 'as_val=${'$as_ac_var'}
25824 $as_echo "$as_val"'`
25825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25826 $as_echo "$ac_res" >&6; }
25827 as_val=`eval 'as_val=${'$as_ac_var'}
25828 $as_echo "$as_val"'`
25829 if test "x$as_val" = x""yes; then
25830 cat >>confdefs.h <<_ACEOF
25831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25839 # Code from module regex:
25850 # Check whether --with-included-regex was given.
25851 if test "${with_included_regex+set}" = set; then
25852 withval=$with_included_regex;
25856 case $with_included_regex in #(
25857 yes|no) ac_use_included_regex=$with_included_regex
25860 # If the system regex support is good enough that it passes the
25861 # following run test, then default to *not* using the included regex.c.
25862 # If cross compiling, assume the test would fail and use the included
25864 { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
25865 $as_echo_n "checking for working re_compile_pattern... " >&6; }
25866 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
25867 $as_echo_n "(cached) " >&6
25869 if test "$cross_compiling" = yes; then
25870 gl_cv_func_re_compile_pattern_working=no
25872 cat >conftest.$ac_ext <<_ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h. */
25878 $ac_includes_default
25880 #include <locale.h>
25882 #include <limits.h>
25888 static struct re_pattern_buffer regex;
25889 unsigned char folded_chars[UCHAR_MAX + 1];
25892 struct re_registers regs;
25895 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
25896 This test needs valgrind to catch the bug on Debian
25897 GNU/Linux 3.1 x86, but it might catch the bug better
25898 on other platforms and it shouldn't hurt to try the
25900 if (setlocale (LC_ALL, "en_US.UTF-8"))
25902 static char const pat[] = "insert into";
25903 static char const data[] =
25904 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
25905 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
25907 memset (®ex, 0, sizeof regex);
25908 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
25911 if (re_search (®ex, data, sizeof data - 1,
25912 0, sizeof data - 1, ®s)
25915 if (! setlocale (LC_ALL, "C"))
25920 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
25921 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
25922 memset (®ex, 0, sizeof regex);
25923 s = re_compile_pattern ("a[^x]b", 6, ®ex);
25927 /* This should fail, but succeeds for glibc-2.5. */
25928 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
25931 /* This regular expression is from Spencer ere test number 75
25933 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
25934 memset (®ex, 0, sizeof regex);
25935 for (i = 0; i <= UCHAR_MAX; i++)
25936 folded_chars[i] = i;
25937 regex.translate = folded_chars;
25938 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
25939 /* This should fail with _Invalid character class name_ error. */
25943 /* Ensure that [b-a] is diagnosed as invalid, when
25944 using RE_NO_EMPTY_RANGES. */
25945 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
25946 memset (®ex, 0, sizeof regex);
25947 s = re_compile_pattern ("a[b-a]", 6, ®ex);
25951 /* This should succeed, but does not for glibc-2.1.3. */
25952 memset (®ex, 0, sizeof regex);
25953 s = re_compile_pattern ("{1", 2, ®ex);
25958 /* The following example is derived from a problem report
25959 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
25960 memset (®ex, 0, sizeof regex);
25961 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
25965 /* This should match, but does not for glibc-2.2.1. */
25966 if (re_match (®ex, "an", 2, 0, ®s) != 2)
25969 memset (®ex, 0, sizeof regex);
25970 s = re_compile_pattern ("x", 1, ®ex);
25974 /* glibc-2.2.93 does not work with a negative RANGE argument. */
25975 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
25978 /* The version of regex.c in older versions of gnulib
25979 ignored RE_ICASE. Detect that problem too. */
25980 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
25981 memset (®ex, 0, sizeof regex);
25982 s = re_compile_pattern ("x", 1, ®ex);
25986 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
25989 /* Catch a bug reported by Vin Shelton in
25990 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
25992 re_set_syntax (RE_SYNTAX_POSIX_BASIC
25993 & ~RE_CONTEXT_INVALID_DUP
25994 & ~RE_NO_EMPTY_RANGES);
25995 memset (®ex, 0, sizeof regex);
25996 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
26000 /* REG_STARTEND was added to glibc on 2004-01-15.
26001 Reject older versions. */
26002 if (! REG_STARTEND)
26005 /* Reject hosts whose regoff_t values are too narrow.
26006 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
26008 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
26009 || sizeof (regoff_t) < sizeof (ssize_t))
26017 rm -f conftest$ac_exeext
26018 if { (ac_try="$ac_link"
26019 case "(($ac_try" in
26020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021 *) ac_try_echo=$ac_try;;
26023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26024 $as_echo "$ac_try_echo") >&5
26025 (eval "$ac_link") 2>&5
26027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26029 { (case "(($ac_try" in
26030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031 *) ac_try_echo=$ac_try;;
26033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26034 $as_echo "$ac_try_echo") >&5
26035 (eval "$ac_try") 2>&5
26037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; }; then
26039 gl_cv_func_re_compile_pattern_working=yes
26041 $as_echo "$as_me: program exited with status $ac_status" >&5
26042 $as_echo "$as_me: failed program was:" >&5
26043 sed 's/^/| /' conftest.$ac_ext >&5
26045 ( exit $ac_status )
26046 gl_cv_func_re_compile_pattern_working=no
26048 rm -rf conftest.dSYM
26049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26054 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
26055 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
26056 case $gl_cv_func_re_compile_pattern_working in #(
26057 yes) ac_use_included_regex=no;; #(
26058 no) ac_use_included_regex=yes;;
26061 *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
26062 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
26063 { (exit 1); exit 1; }; }
26067 if test $ac_use_included_regex = yes; then
26069 cat >>confdefs.h <<\_ACEOF
26070 #define _REGEX_LARGE_OFFSETS 1
26074 cat >>confdefs.h <<\_ACEOF
26075 #define re_syntax_options rpl_re_syntax_options
26079 cat >>confdefs.h <<\_ACEOF
26080 #define re_set_syntax rpl_re_set_syntax
26084 cat >>confdefs.h <<\_ACEOF
26085 #define re_compile_pattern rpl_re_compile_pattern
26089 cat >>confdefs.h <<\_ACEOF
26090 #define re_compile_fastmap rpl_re_compile_fastmap
26094 cat >>confdefs.h <<\_ACEOF
26095 #define re_search rpl_re_search
26099 cat >>confdefs.h <<\_ACEOF
26100 #define re_search_2 rpl_re_search_2
26104 cat >>confdefs.h <<\_ACEOF
26105 #define re_match rpl_re_match
26109 cat >>confdefs.h <<\_ACEOF
26110 #define re_match_2 rpl_re_match_2
26114 cat >>confdefs.h <<\_ACEOF
26115 #define re_set_registers rpl_re_set_registers
26119 cat >>confdefs.h <<\_ACEOF
26120 #define re_comp rpl_re_comp
26124 cat >>confdefs.h <<\_ACEOF
26125 #define re_exec rpl_re_exec
26129 cat >>confdefs.h <<\_ACEOF
26130 #define regcomp rpl_regcomp
26134 cat >>confdefs.h <<\_ACEOF
26135 #define regexec rpl_regexec
26139 cat >>confdefs.h <<\_ACEOF
26140 #define regerror rpl_regerror
26144 cat >>confdefs.h <<\_ACEOF
26145 #define regfree rpl_regfree
26156 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
26164 for ac_header in libintl.h
26166 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26168 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26169 $as_echo_n "checking for $ac_header... " >&6; }
26170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26171 $as_echo_n "(cached) " >&6
26173 ac_res=`eval 'as_val=${'$as_ac_Header'}
26174 $as_echo "$as_val"'`
26175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26176 $as_echo "$ac_res" >&6; }
26178 # Is the header compilable?
26179 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26180 $as_echo_n "checking $ac_header usability... " >&6; }
26181 cat >conftest.$ac_ext <<_ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26187 $ac_includes_default
26188 #include <$ac_header>
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_header_compiler=yes
26210 $as_echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26213 ac_header_compiler=no
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26218 $as_echo "$ac_header_compiler" >&6; }
26220 # Is the header present?
26221 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26222 $as_echo_n "checking $ac_header presence... " >&6; }
26223 cat >conftest.$ac_ext <<_ACEOF
26226 cat confdefs.h >>conftest.$ac_ext
26227 cat >>conftest.$ac_ext <<_ACEOF
26228 /* end confdefs.h. */
26229 #include <$ac_header>
26231 if { (ac_try="$ac_cpp conftest.$ac_ext"
26232 case "(($ac_try" in
26233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26234 *) ac_try_echo=$ac_try;;
26236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26237 $as_echo "$ac_try_echo") >&5
26238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26240 grep -v '^ *+' conftest.er1 >conftest.err
26242 cat conftest.err >&5
26243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); } >/dev/null && {
26245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26246 test ! -s conftest.err
26248 ac_header_preproc=yes
26250 $as_echo "$as_me: failed program was:" >&5
26251 sed 's/^/| /' conftest.$ac_ext >&5
26253 ac_header_preproc=no
26256 rm -f conftest.err conftest.$ac_ext
26257 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26258 $as_echo "$ac_header_preproc" >&6; }
26260 # So? What about this header?
26261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26264 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26266 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26267 ac_header_preproc=yes
26270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26271 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26273 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26275 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26277 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26279 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26281 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26285 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26286 $as_echo_n "checking for $ac_header... " >&6; }
26287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26288 $as_echo_n "(cached) " >&6
26290 eval "$as_ac_Header=\$ac_header_preproc"
26292 ac_res=`eval 'as_val=${'$as_ac_Header'}
26293 $as_echo "$as_val"'`
26294 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26295 $as_echo "$ac_res" >&6; }
26298 as_val=`eval 'as_val=${'$as_ac_Header'}
26299 $as_echo "$as_val"'`
26300 if test "x$as_val" = x""yes; then
26301 cat >>confdefs.h <<_ACEOF
26302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26322 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
26323 $as_echo_n "checking whether isblank is declared... " >&6; }
26324 if test "${ac_cv_have_decl_isblank+set}" = set; then
26325 $as_echo_n "(cached) " >&6
26327 cat >conftest.$ac_ext <<_ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h. */
26346 rm -f conftest.$ac_objext
26347 if { (ac_try="$ac_compile"
26348 case "(($ac_try" in
26349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26350 *) ac_try_echo=$ac_try;;
26352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26353 $as_echo "$ac_try_echo") >&5
26354 (eval "$ac_compile") 2>conftest.er1
26356 grep -v '^ *+' conftest.er1 >conftest.err
26358 cat conftest.err >&5
26359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); } && {
26361 test -z "$ac_c_werror_flag" ||
26362 test ! -s conftest.err
26363 } && test -s conftest.$ac_objext; then
26364 ac_cv_have_decl_isblank=yes
26366 $as_echo "$as_me: failed program was:" >&5
26367 sed 's/^/| /' conftest.$ac_ext >&5
26369 ac_cv_have_decl_isblank=no
26372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26374 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
26375 $as_echo "$ac_cv_have_decl_isblank" >&6; }
26376 if test "x$ac_cv_have_decl_isblank" = x""yes; then
26378 cat >>confdefs.h <<_ACEOF
26379 #define HAVE_DECL_ISBLANK 1
26384 cat >>confdefs.h <<_ACEOF
26385 #define HAVE_DECL_ISBLANK 0
26395 # Code from module safe-read:
26405 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
26412 # Code from module safe-write:
26422 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
26431 # Code from module servent:
26434 gl_saved_libs="$LIBS"
26435 { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
26436 $as_echo_n "checking for library containing getservbyname... " >&6; }
26437 if test "${ac_cv_search_getservbyname+set}" = set; then
26438 $as_echo_n "(cached) " >&6
26440 ac_func_search_save_LIBS=$LIBS
26441 cat >conftest.$ac_ext <<_ACEOF
26444 cat confdefs.h >>conftest.$ac_ext
26445 cat >>conftest.$ac_ext <<_ACEOF
26446 /* end confdefs.h. */
26448 /* Override any GCC internal prototype to avoid an error.
26449 Use char because int might match the return type of a GCC
26450 builtin and then its argument prototype would still apply. */
26454 char getservbyname ();
26458 return getservbyname ();
26463 for ac_lib in '' socket network net; do
26464 if test -z "$ac_lib"; then
26465 ac_res="none required"
26468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26470 rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (ac_try="$ac_link"
26472 case "(($ac_try" in
26473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474 *) ac_try_echo=$ac_try;;
26476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26477 $as_echo "$ac_try_echo") >&5
26478 (eval "$ac_link") 2>conftest.er1
26480 grep -v '^ *+' conftest.er1 >conftest.err
26482 cat conftest.err >&5
26483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } && {
26485 test -z "$ac_c_werror_flag" ||
26486 test ! -s conftest.err
26487 } && test -s conftest$ac_exeext && {
26488 test "$cross_compiling" = yes ||
26489 $as_test_x conftest$ac_exeext
26491 ac_cv_search_getservbyname=$ac_res
26493 $as_echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26499 rm -rf conftest.dSYM
26500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26502 if test "${ac_cv_search_getservbyname+set}" = set; then
26506 if test "${ac_cv_search_getservbyname+set}" = set; then
26509 ac_cv_search_getservbyname=no
26511 rm conftest.$ac_ext
26512 LIBS=$ac_func_search_save_LIBS
26514 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
26515 $as_echo "$ac_cv_search_getservbyname" >&6; }
26516 ac_res=$ac_cv_search_getservbyname
26517 if test "$ac_res" != no; then
26518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26519 if test "$ac_cv_search_getservbyname" != "none required"; then
26520 SERVENT_LIB="$ac_cv_search_getservbyname"
26524 LIBS="$gl_saved_libs"
26525 if test -z "$SERVENT_LIB"; then
26527 for ac_func in getservbyname
26529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26530 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26531 $as_echo_n "checking for $ac_func... " >&6; }
26532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26533 $as_echo_n "(cached) " >&6
26535 cat >conftest.$ac_ext <<_ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h. */
26541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26543 #define $ac_func innocuous_$ac_func
26545 /* System header to define __stub macros and hopefully few prototypes,
26546 which can conflict with char $ac_func (); below.
26547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26548 <limits.h> exists even on freestanding compilers. */
26551 # include <limits.h>
26553 # include <assert.h>
26558 /* Override any GCC internal prototype to avoid an error.
26559 Use char because int might match the return type of a GCC
26560 builtin and then its argument prototype would still apply. */
26565 /* The GNU C library defines this for functions which it implements
26566 to always fail with ENOSYS. Some functions are actually named
26567 something starting with __ and the normal name is an alias. */
26568 #if defined __stub_$ac_func || defined __stub___$ac_func
26575 return $ac_func ();
26580 rm -f conftest.$ac_objext conftest$ac_exeext
26581 if { (ac_try="$ac_link"
26582 case "(($ac_try" in
26583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584 *) ac_try_echo=$ac_try;;
26586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26587 $as_echo "$ac_try_echo") >&5
26588 (eval "$ac_link") 2>conftest.er1
26590 grep -v '^ *+' conftest.er1 >conftest.err
26592 cat conftest.err >&5
26593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); } && {
26595 test -z "$ac_c_werror_flag" ||
26596 test ! -s conftest.err
26597 } && test -s conftest$ac_exeext && {
26598 test "$cross_compiling" = yes ||
26599 $as_test_x conftest$ac_exeext
26601 eval "$as_ac_var=yes"
26603 $as_echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26606 eval "$as_ac_var=no"
26609 rm -rf conftest.dSYM
26610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26611 conftest$ac_exeext conftest.$ac_ext
26613 ac_res=`eval 'as_val=${'$as_ac_var'}
26614 $as_echo "$as_val"'`
26615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26616 $as_echo "$ac_res" >&6; }
26617 as_val=`eval 'as_val=${'$as_ac_var'}
26618 $as_echo "$as_val"'`
26619 if test "x$as_val" = x""yes; then
26620 cat >>confdefs.h <<_ACEOF
26621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26626 { $as_echo "$as_me:$LINENO: checking for getservbyname in winsock2.h and -lws2_32" >&5
26627 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
26628 if test "${gl_cv_w32_getservbyname+set}" = set; then
26629 $as_echo_n "(cached) " >&6
26631 gl_cv_w32_getservbyname=no
26632 gl_save_LIBS="$LIBS"
26633 LIBS="$LIBS -lws2_32"
26634 cat >conftest.$ac_ext <<_ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26641 #ifdef HAVE_WINSOCK2_H
26642 #include <winsock2.h>
26644 #include <stddef.h>
26649 getservbyname(NULL,NULL);
26654 rm -f conftest.$ac_objext conftest$ac_exeext
26655 if { (ac_try="$ac_link"
26656 case "(($ac_try" in
26657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658 *) ac_try_echo=$ac_try;;
26660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26661 $as_echo "$ac_try_echo") >&5
26662 (eval "$ac_link") 2>conftest.er1
26664 grep -v '^ *+' conftest.er1 >conftest.err
26666 cat conftest.err >&5
26667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); } && {
26669 test -z "$ac_c_werror_flag" ||
26670 test ! -s conftest.err
26671 } && test -s conftest$ac_exeext && {
26672 test "$cross_compiling" = yes ||
26673 $as_test_x conftest$ac_exeext
26675 gl_cv_w32_getservbyname=yes
26677 $as_echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26683 rm -rf conftest.dSYM
26684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26685 conftest$ac_exeext conftest.$ac_ext
26686 LIBS="$gl_save_LIBS"
26689 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getservbyname" >&5
26690 $as_echo "$gl_cv_w32_getservbyname" >&6; }
26691 if test "$gl_cv_w32_getservbyname" = "yes"; then
26692 SERVENT_LIB="-lws2_32"
26701 # Code from module size_max:
26704 for ac_header in stdint.h
26706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26709 $as_echo_n "checking for $ac_header... " >&6; }
26710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26711 $as_echo_n "(cached) " >&6
26713 ac_res=`eval 'as_val=${'$as_ac_Header'}
26714 $as_echo "$as_val"'`
26715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26716 $as_echo "$ac_res" >&6; }
26718 # Is the header compilable?
26719 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26720 $as_echo_n "checking $ac_header usability... " >&6; }
26721 cat >conftest.$ac_ext <<_ACEOF
26724 cat confdefs.h >>conftest.$ac_ext
26725 cat >>conftest.$ac_ext <<_ACEOF
26726 /* end confdefs.h. */
26727 $ac_includes_default
26728 #include <$ac_header>
26730 rm -f conftest.$ac_objext
26731 if { (ac_try="$ac_compile"
26732 case "(($ac_try" in
26733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734 *) ac_try_echo=$ac_try;;
26736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26737 $as_echo "$ac_try_echo") >&5
26738 (eval "$ac_compile") 2>conftest.er1
26740 grep -v '^ *+' conftest.er1 >conftest.err
26742 cat conftest.err >&5
26743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } && {
26745 test -z "$ac_c_werror_flag" ||
26746 test ! -s conftest.err
26747 } && test -s conftest.$ac_objext; then
26748 ac_header_compiler=yes
26750 $as_echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.$ac_ext >&5
26753 ac_header_compiler=no
26756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26757 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26758 $as_echo "$ac_header_compiler" >&6; }
26760 # Is the header present?
26761 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26762 $as_echo_n "checking $ac_header presence... " >&6; }
26763 cat >conftest.$ac_ext <<_ACEOF
26766 cat confdefs.h >>conftest.$ac_ext
26767 cat >>conftest.$ac_ext <<_ACEOF
26768 /* end confdefs.h. */
26769 #include <$ac_header>
26771 if { (ac_try="$ac_cpp conftest.$ac_ext"
26772 case "(($ac_try" in
26773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774 *) ac_try_echo=$ac_try;;
26776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26777 $as_echo "$ac_try_echo") >&5
26778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26780 grep -v '^ *+' conftest.er1 >conftest.err
26782 cat conftest.err >&5
26783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); } >/dev/null && {
26785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26786 test ! -s conftest.err
26788 ac_header_preproc=yes
26790 $as_echo "$as_me: failed program was:" >&5
26791 sed 's/^/| /' conftest.$ac_ext >&5
26793 ac_header_preproc=no
26796 rm -f conftest.err conftest.$ac_ext
26797 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26798 $as_echo "$ac_header_preproc" >&6; }
26800 # So? What about this header?
26801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26804 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26806 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26807 ac_header_preproc=yes
26810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26811 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26813 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26815 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26817 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26819 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26821 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26826 $as_echo_n "checking for $ac_header... " >&6; }
26827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26828 $as_echo_n "(cached) " >&6
26830 eval "$as_ac_Header=\$ac_header_preproc"
26832 ac_res=`eval 'as_val=${'$as_ac_Header'}
26833 $as_echo "$as_val"'`
26834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26835 $as_echo "$ac_res" >&6; }
26838 as_val=`eval 'as_val=${'$as_ac_Header'}
26839 $as_echo "$as_val"'`
26840 if test "x$as_val" = x""yes; then
26841 cat >>confdefs.h <<_ACEOF
26842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26849 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
26850 $as_echo_n "checking for SIZE_MAX... " >&6; }
26852 cat >conftest.$ac_ext <<_ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26859 #include <limits.h>
26861 #include <stdint.h>
26868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26869 $EGREP "Found it" >/dev/null 2>&1; then
26874 if test -z "$result"; then
26875 if test "$cross_compiling" = yes; then
26876 # Depending upon the size, compute the lo and hi bounds.
26877 cat >conftest.$ac_ext <<_ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h. */
26883 #include <stddef.h>
26884 #include <limits.h>
26888 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
26895 rm -f conftest.$ac_objext
26896 if { (ac_try="$ac_compile"
26897 case "(($ac_try" in
26898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899 *) ac_try_echo=$ac_try;;
26901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26902 $as_echo "$ac_try_echo") >&5
26903 (eval "$ac_compile") 2>conftest.er1
26905 grep -v '^ *+' conftest.er1 >conftest.err
26907 cat conftest.err >&5
26908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); } && {
26910 test -z "$ac_c_werror_flag" ||
26911 test ! -s conftest.err
26912 } && test -s conftest.$ac_objext; then
26915 cat >conftest.$ac_ext <<_ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h. */
26921 #include <stddef.h>
26922 #include <limits.h>
26926 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
26933 rm -f conftest.$ac_objext
26934 if { (ac_try="$ac_compile"
26935 case "(($ac_try" in
26936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937 *) ac_try_echo=$ac_try;;
26939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26940 $as_echo "$ac_try_echo") >&5
26941 (eval "$ac_compile") 2>conftest.er1
26943 grep -v '^ *+' conftest.er1 >conftest.err
26945 cat conftest.err >&5
26946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); } && {
26948 test -z "$ac_c_werror_flag" ||
26949 test ! -s conftest.err
26950 } && test -s conftest.$ac_objext; then
26951 ac_hi=$ac_mid; break
26953 $as_echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26956 ac_lo=`expr $ac_mid + 1`
26957 if test $ac_lo -le $ac_mid; then
26961 ac_mid=`expr 2 '*' $ac_mid + 1`
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26967 $as_echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26970 cat >conftest.$ac_ext <<_ACEOF
26973 cat confdefs.h >>conftest.$ac_ext
26974 cat >>conftest.$ac_ext <<_ACEOF
26975 /* end confdefs.h. */
26976 #include <stddef.h>
26977 #include <limits.h>
26981 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
26988 rm -f conftest.$ac_objext
26989 if { (ac_try="$ac_compile"
26990 case "(($ac_try" in
26991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992 *) ac_try_echo=$ac_try;;
26994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26995 $as_echo "$ac_try_echo") >&5
26996 (eval "$ac_compile") 2>conftest.er1
26998 grep -v '^ *+' conftest.er1 >conftest.err
27000 cat conftest.err >&5
27001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); } && {
27003 test -z "$ac_c_werror_flag" ||
27004 test ! -s conftest.err
27005 } && test -s conftest.$ac_objext; then
27008 cat >conftest.$ac_ext <<_ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h. */
27014 #include <stddef.h>
27015 #include <limits.h>
27019 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
27026 rm -f conftest.$ac_objext
27027 if { (ac_try="$ac_compile"
27028 case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27033 $as_echo "$ac_try_echo") >&5
27034 (eval "$ac_compile") 2>conftest.er1
27036 grep -v '^ *+' conftest.er1 >conftest.err
27038 cat conftest.err >&5
27039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); } && {
27041 test -z "$ac_c_werror_flag" ||
27042 test ! -s conftest.err
27043 } && test -s conftest.$ac_objext; then
27044 ac_lo=$ac_mid; break
27046 $as_echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27049 ac_hi=`expr '(' $ac_mid ')' - 1`
27050 if test $ac_mid -le $ac_hi; then
27054 ac_mid=`expr 2 '*' $ac_mid`
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27060 $as_echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27070 # Binary search between lo and hi bounds.
27071 while test "x$ac_lo" != "x$ac_hi"; do
27072 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27073 cat >conftest.$ac_ext <<_ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h. */
27079 #include <stddef.h>
27080 #include <limits.h>
27084 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
27091 rm -f conftest.$ac_objext
27092 if { (ac_try="$ac_compile"
27093 case "(($ac_try" in
27094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095 *) ac_try_echo=$ac_try;;
27097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27098 $as_echo "$ac_try_echo") >&5
27099 (eval "$ac_compile") 2>conftest.er1
27101 grep -v '^ *+' conftest.er1 >conftest.err
27103 cat conftest.err >&5
27104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); } && {
27106 test -z "$ac_c_werror_flag" ||
27107 test ! -s conftest.err
27108 } && test -s conftest.$ac_objext; then
27111 $as_echo "$as_me: failed program was:" >&5
27112 sed 's/^/| /' conftest.$ac_ext >&5
27114 ac_lo=`expr '(' $ac_mid ')' + 1`
27117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27120 ?*) size_t_bits_minus_1=$ac_lo;;
27121 '') size_t_bits_minus_1= ;;
27124 cat >conftest.$ac_ext <<_ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h. */
27130 #include <stddef.h>
27131 #include <limits.h>
27132 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
27133 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
27135 #include <stdlib.h>
27140 FILE *f = fopen ("conftest.val", "w");
27143 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
27145 long int i = longval ();
27146 if (i != (sizeof (size_t) * CHAR_BIT - 1))
27148 fprintf (f, "%ld", i);
27152 unsigned long int i = ulongval ();
27153 if (i != (sizeof (size_t) * CHAR_BIT - 1))
27155 fprintf (f, "%lu", i);
27157 /* Do not output a trailing newline, as this causes \r\n confusion
27158 on some platforms. */
27159 return ferror (f) || fclose (f) != 0;
27165 rm -f conftest$ac_exeext
27166 if { (ac_try="$ac_link"
27167 case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27172 $as_echo "$ac_try_echo") >&5
27173 (eval "$ac_link") 2>&5
27175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27177 { (case "(($ac_try" in
27178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27182 $as_echo "$ac_try_echo") >&5
27183 (eval "$ac_try") 2>&5
27185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; }; then
27187 size_t_bits_minus_1=`cat conftest.val`
27189 $as_echo "$as_me: program exited with status $ac_status" >&5
27190 $as_echo "$as_me: failed program was:" >&5
27191 sed 's/^/| /' conftest.$ac_ext >&5
27193 ( exit $ac_status )
27194 size_t_bits_minus_1=
27196 rm -rf conftest.dSYM
27197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27201 if test "$cross_compiling" = yes; then
27202 # Depending upon the size, compute the lo and hi bounds.
27203 cat >conftest.$ac_ext <<_ACEOF
27206 cat confdefs.h >>conftest.$ac_ext
27207 cat >>conftest.$ac_ext <<_ACEOF
27208 /* end confdefs.h. */
27209 #include <stddef.h>
27213 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
27220 rm -f conftest.$ac_objext
27221 if { (ac_try="$ac_compile"
27222 case "(($ac_try" in
27223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27224 *) ac_try_echo=$ac_try;;
27226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27227 $as_echo "$ac_try_echo") >&5
27228 (eval "$ac_compile") 2>conftest.er1
27230 grep -v '^ *+' conftest.er1 >conftest.err
27232 cat conftest.err >&5
27233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); } && {
27235 test -z "$ac_c_werror_flag" ||
27236 test ! -s conftest.err
27237 } && test -s conftest.$ac_objext; then
27240 cat >conftest.$ac_ext <<_ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27246 #include <stddef.h>
27250 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27257 rm -f conftest.$ac_objext
27258 if { (ac_try="$ac_compile"
27259 case "(($ac_try" in
27260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261 *) ac_try_echo=$ac_try;;
27263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27264 $as_echo "$ac_try_echo") >&5
27265 (eval "$ac_compile") 2>conftest.er1
27267 grep -v '^ *+' conftest.er1 >conftest.err
27269 cat conftest.err >&5
27270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); } && {
27272 test -z "$ac_c_werror_flag" ||
27273 test ! -s conftest.err
27274 } && test -s conftest.$ac_objext; then
27275 ac_hi=$ac_mid; break
27277 $as_echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27280 ac_lo=`expr $ac_mid + 1`
27281 if test $ac_lo -le $ac_mid; then
27285 ac_mid=`expr 2 '*' $ac_mid + 1`
27288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27291 $as_echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27294 cat >conftest.$ac_ext <<_ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27300 #include <stddef.h>
27304 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
27311 rm -f conftest.$ac_objext
27312 if { (ac_try="$ac_compile"
27313 case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27318 $as_echo "$ac_try_echo") >&5
27319 (eval "$ac_compile") 2>conftest.er1
27321 grep -v '^ *+' conftest.er1 >conftest.err
27323 cat conftest.err >&5
27324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); } && {
27326 test -z "$ac_c_werror_flag" ||
27327 test ! -s conftest.err
27328 } && test -s conftest.$ac_objext; then
27331 cat >conftest.$ac_ext <<_ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h. */
27337 #include <stddef.h>
27341 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
27348 rm -f conftest.$ac_objext
27349 if { (ac_try="$ac_compile"
27350 case "(($ac_try" in
27351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352 *) ac_try_echo=$ac_try;;
27354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27355 $as_echo "$ac_try_echo") >&5
27356 (eval "$ac_compile") 2>conftest.er1
27358 grep -v '^ *+' conftest.er1 >conftest.err
27360 cat conftest.err >&5
27361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); } && {
27363 test -z "$ac_c_werror_flag" ||
27364 test ! -s conftest.err
27365 } && test -s conftest.$ac_objext; then
27366 ac_lo=$ac_mid; break
27368 $as_echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27371 ac_hi=`expr '(' $ac_mid ')' - 1`
27372 if test $ac_mid -le $ac_hi; then
27376 ac_mid=`expr 2 '*' $ac_mid`
27379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27382 $as_echo "$as_me: failed program was:" >&5
27383 sed 's/^/| /' conftest.$ac_ext >&5
27388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27392 # Binary search between lo and hi bounds.
27393 while test "x$ac_lo" != "x$ac_hi"; do
27394 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27395 cat >conftest.$ac_ext <<_ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h. */
27401 #include <stddef.h>
27405 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27412 rm -f conftest.$ac_objext
27413 if { (ac_try="$ac_compile"
27414 case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27419 $as_echo "$ac_try_echo") >&5
27420 (eval "$ac_compile") 2>conftest.er1
27422 grep -v '^ *+' conftest.er1 >conftest.err
27424 cat conftest.err >&5
27425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); } && {
27427 test -z "$ac_c_werror_flag" ||
27428 test ! -s conftest.err
27429 } && test -s conftest.$ac_objext; then
27432 $as_echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27435 ac_lo=`expr '(' $ac_mid ')' + 1`
27438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27441 ?*) fits_in_uint=$ac_lo;;
27442 '') fits_in_uint= ;;
27445 cat >conftest.$ac_ext <<_ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h. */
27451 #include <stddef.h>
27452 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
27453 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
27455 #include <stdlib.h>
27460 FILE *f = fopen ("conftest.val", "w");
27463 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
27465 long int i = longval ();
27466 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
27468 fprintf (f, "%ld", i);
27472 unsigned long int i = ulongval ();
27473 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
27475 fprintf (f, "%lu", i);
27477 /* Do not output a trailing newline, as this causes \r\n confusion
27478 on some platforms. */
27479 return ferror (f) || fclose (f) != 0;
27485 rm -f conftest$ac_exeext
27486 if { (ac_try="$ac_link"
27487 case "(($ac_try" in
27488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489 *) ac_try_echo=$ac_try;;
27491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27492 $as_echo "$ac_try_echo") >&5
27493 (eval "$ac_link") 2>&5
27495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27497 { (case "(($ac_try" in
27498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499 *) ac_try_echo=$ac_try;;
27501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27502 $as_echo "$ac_try_echo") >&5
27503 (eval "$ac_try") 2>&5
27505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); }; }; then
27507 fits_in_uint=`cat conftest.val`
27509 $as_echo "$as_me: program exited with status $ac_status" >&5
27510 $as_echo "$as_me: failed program was:" >&5
27511 sed 's/^/| /' conftest.$ac_ext >&5
27513 ( exit $ac_status )
27516 rm -rf conftest.dSYM
27517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27521 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
27522 if test $fits_in_uint = 1; then
27523 cat >conftest.$ac_ext <<_ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h. */
27529 #include <stddef.h>
27531 extern unsigned long foo;
27541 rm -f conftest.$ac_objext
27542 if { (ac_try="$ac_compile"
27543 case "(($ac_try" in
27544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27545 *) ac_try_echo=$ac_try;;
27547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27548 $as_echo "$ac_try_echo") >&5
27549 (eval "$ac_compile") 2>conftest.er1
27551 grep -v '^ *+' conftest.er1 >conftest.err
27553 cat conftest.err >&5
27554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555 (exit $ac_status); } && {
27556 test -z "$ac_c_werror_flag" ||
27557 test ! -s conftest.err
27558 } && test -s conftest.$ac_objext; then
27561 $as_echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27569 if test $fits_in_uint = 1; then
27570 result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
27572 result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
27575 result='((size_t)~(size_t)0)'
27578 { $as_echo "$as_me:$LINENO: result: $result" >&5
27579 $as_echo "$result" >&6; }
27580 if test "$result" != yes; then
27582 cat >>confdefs.h <<_ACEOF
27583 #define SIZE_MAX $result
27588 # Code from module snprintf:
27591 gl_cv_func_snprintf_usable=no
27593 for ac_func in snprintf
27595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27596 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27597 $as_echo_n "checking for $ac_func... " >&6; }
27598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27599 $as_echo_n "(cached) " >&6
27601 cat >conftest.$ac_ext <<_ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h. */
27607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27609 #define $ac_func innocuous_$ac_func
27611 /* System header to define __stub macros and hopefully few prototypes,
27612 which can conflict with char $ac_func (); below.
27613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27614 <limits.h> exists even on freestanding compilers. */
27617 # include <limits.h>
27619 # include <assert.h>
27624 /* Override any GCC internal prototype to avoid an error.
27625 Use char because int might match the return type of a GCC
27626 builtin and then its argument prototype would still apply. */
27631 /* The GNU C library defines this for functions which it implements
27632 to always fail with ENOSYS. Some functions are actually named
27633 something starting with __ and the normal name is an alias. */
27634 #if defined __stub_$ac_func || defined __stub___$ac_func
27641 return $ac_func ();
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27653 $as_echo "$ac_try_echo") >&5
27654 (eval "$ac_link") 2>conftest.er1
27656 grep -v '^ *+' conftest.er1 >conftest.err
27658 cat conftest.err >&5
27659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } && {
27661 test -z "$ac_c_werror_flag" ||
27662 test ! -s conftest.err
27663 } && test -s conftest$ac_exeext && {
27664 test "$cross_compiling" = yes ||
27665 $as_test_x conftest$ac_exeext
27667 eval "$as_ac_var=yes"
27669 $as_echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27672 eval "$as_ac_var=no"
27675 rm -rf conftest.dSYM
27676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27677 conftest$ac_exeext conftest.$ac_ext
27679 ac_res=`eval 'as_val=${'$as_ac_var'}
27680 $as_echo "$as_val"'`
27681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27682 $as_echo "$ac_res" >&6; }
27683 as_val=`eval 'as_val=${'$as_ac_var'}
27684 $as_echo "$as_val"'`
27685 if test "x$as_val" = x""yes; then
27686 cat >>confdefs.h <<_ACEOF
27687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27693 if test $ac_cv_func_snprintf = yes; then
27696 { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
27697 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
27698 if test "${gl_cv_func_snprintf_size1+set}" = set; then
27699 $as_echo_n "(cached) " >&6
27702 if test "$cross_compiling" = yes; then
27703 gl_cv_func_snprintf_size1="guessing yes"
27705 cat >conftest.$ac_ext <<_ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h. */
27715 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
27716 snprintf (buf, 1, "%d", 12345);
27717 return buf[1] != 'E';
27720 rm -f conftest$ac_exeext
27721 if { (ac_try="$ac_link"
27722 case "(($ac_try" in
27723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724 *) ac_try_echo=$ac_try;;
27726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27727 $as_echo "$ac_try_echo") >&5
27728 (eval "$ac_link") 2>&5
27730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27732 { (case "(($ac_try" in
27733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734 *) ac_try_echo=$ac_try;;
27736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27737 $as_echo "$ac_try_echo") >&5
27738 (eval "$ac_try") 2>&5
27740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; }; then
27742 gl_cv_func_snprintf_size1=yes
27744 $as_echo "$as_me: program exited with status $ac_status" >&5
27745 $as_echo "$as_me: failed program was:" >&5
27746 sed 's/^/| /' conftest.$ac_ext >&5
27748 ( exit $ac_status )
27749 gl_cv_func_snprintf_size1=no
27751 rm -rf conftest.dSYM
27752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27758 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
27759 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
27761 case "$gl_cv_func_snprintf_size1" in
27763 gl_cv_func_snprintf_usable=yes
27767 if test $gl_cv_func_snprintf_usable = no; then
27778 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
27780 if test $ac_cv_func_snprintf = yes; then
27793 if test $ac_cv_have_decl_snprintf = no; then
27794 HAVE_DECL_SNPRINTF=0
27804 cat >>confdefs.h <<\_ACEOF
27805 #define GNULIB_TEST_SNPRINTF 1
27810 # Code from module socklen:
27811 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
27812 $as_echo_n "checking for socklen_t... " >&6; }
27813 if test "${ac_cv_type_socklen_t+set}" = set; then
27814 $as_echo_n "(cached) " >&6
27816 ac_cv_type_socklen_t=no
27817 cat >conftest.$ac_ext <<_ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h. */
27823 #include <sys/types.h>
27824 #if HAVE_SYS_SOCKET_H
27825 # include <sys/socket.h>
27826 #elif HAVE_WS2TCPIP_H
27827 # include <ws2tcpip.h>
27833 if (sizeof (socklen_t))
27839 rm -f conftest.$ac_objext
27840 if { (ac_try="$ac_compile"
27841 case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27846 $as_echo "$ac_try_echo") >&5
27847 (eval "$ac_compile") 2>conftest.er1
27849 grep -v '^ *+' conftest.er1 >conftest.err
27851 cat conftest.err >&5
27852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } && {
27854 test -z "$ac_c_werror_flag" ||
27855 test ! -s conftest.err
27856 } && test -s conftest.$ac_objext; then
27857 cat >conftest.$ac_ext <<_ACEOF
27860 cat confdefs.h >>conftest.$ac_ext
27861 cat >>conftest.$ac_ext <<_ACEOF
27862 /* end confdefs.h. */
27863 #include <sys/types.h>
27864 #if HAVE_SYS_SOCKET_H
27865 # include <sys/socket.h>
27866 #elif HAVE_WS2TCPIP_H
27867 # include <ws2tcpip.h>
27873 if (sizeof ((socklen_t)))
27879 rm -f conftest.$ac_objext
27880 if { (ac_try="$ac_compile"
27881 case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27886 $as_echo "$ac_try_echo") >&5
27887 (eval "$ac_compile") 2>conftest.er1
27889 grep -v '^ *+' conftest.er1 >conftest.err
27891 cat conftest.err >&5
27892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); } && {
27894 test -z "$ac_c_werror_flag" ||
27895 test ! -s conftest.err
27896 } && test -s conftest.$ac_objext; then
27899 $as_echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27902 ac_cv_type_socklen_t=yes
27905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27907 $as_echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27915 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27916 $as_echo "$ac_cv_type_socklen_t" >&6; }
27917 if test "x$ac_cv_type_socklen_t" = x""yes; then
27920 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
27921 $as_echo_n "checking for socklen_t equivalent... " >&6; }
27922 if test "${gl_cv_socklen_t_equiv+set}" = set; then
27923 $as_echo_n "(cached) " >&6
27925 # Systems have either "struct sockaddr *" or
27926 # "void *" as the second argument to getpeername
27927 gl_cv_socklen_t_equiv=
27928 for arg2 in "struct sockaddr" void; do
27929 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
27930 cat >conftest.$ac_ext <<_ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h. */
27936 #include <sys/types.h>
27937 #include <sys/socket.h>
27939 int getpeername (int, $arg2 *, $t *);
27944 getpeername (0, 0, &len);
27949 rm -f conftest.$ac_objext
27950 if { (ac_try="$ac_compile"
27951 case "(($ac_try" in
27952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953 *) ac_try_echo=$ac_try;;
27955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27956 $as_echo "$ac_try_echo") >&5
27957 (eval "$ac_compile") 2>conftest.er1
27959 grep -v '^ *+' conftest.er1 >conftest.err
27961 cat conftest.err >&5
27962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); } && {
27964 test -z "$ac_c_werror_flag" ||
27965 test ! -s conftest.err
27966 } && test -s conftest.$ac_objext; then
27967 gl_cv_socklen_t_equiv="$t"
27969 $as_echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27976 test "$gl_cv_socklen_t_equiv" != "" && break
27978 test "$gl_cv_socklen_t_equiv" != "" && break
27983 if test "$gl_cv_socklen_t_equiv" = ""; then
27984 { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
27985 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
27986 { (exit 1); exit 1; }; }
27988 { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
27989 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
27991 cat >>confdefs.h <<_ACEOF
27992 #define socklen_t $gl_cv_socklen_t_equiv
27997 # Code from module ssize_t:
27999 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
28000 $as_echo_n "checking for ssize_t... " >&6; }
28001 if test "${gt_cv_ssize_t+set}" = set; then
28002 $as_echo_n "(cached) " >&6
28004 cat >conftest.$ac_ext <<_ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h. */
28010 #include <sys/types.h>
28014 int x = sizeof (ssize_t *) + sizeof (ssize_t);
28020 rm -f conftest.$ac_objext
28021 if { (ac_try="$ac_compile"
28022 case "(($ac_try" in
28023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024 *) ac_try_echo=$ac_try;;
28026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28027 $as_echo "$ac_try_echo") >&5
28028 (eval "$ac_compile") 2>conftest.er1
28030 grep -v '^ *+' conftest.er1 >conftest.err
28032 cat conftest.err >&5
28033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); } && {
28035 test -z "$ac_c_werror_flag" ||
28036 test ! -s conftest.err
28037 } && test -s conftest.$ac_objext; then
28040 $as_echo "$as_me: failed program was:" >&5
28041 sed 's/^/| /' conftest.$ac_ext >&5
28046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28048 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
28049 $as_echo "$gt_cv_ssize_t" >&6; }
28050 if test $gt_cv_ssize_t = no; then
28052 cat >>confdefs.h <<\_ACEOF
28053 #define ssize_t int
28058 # Code from module stat:
28069 { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on directories" >&5
28070 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28071 if test "${gl_cv_func_stat_dir_slash+set}" = set; then
28072 $as_echo_n "(cached) " >&6
28074 if test "$cross_compiling" = yes; then
28076 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28077 *) gl_cv_func_stat_dir_slash="guessing yes";;
28080 cat >conftest.$ac_ext <<_ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h. */
28086 #include <sys/stat.h>
28091 struct stat st; return stat (".", &st) != stat ("./", &st);
28096 rm -f conftest$ac_exeext
28097 if { (ac_try="$ac_link"
28098 case "(($ac_try" in
28099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28100 *) ac_try_echo=$ac_try;;
28102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28103 $as_echo "$ac_try_echo") >&5
28104 (eval "$ac_link") 2>&5
28106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28108 { (case "(($ac_try" in
28109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110 *) ac_try_echo=$ac_try;;
28112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28113 $as_echo "$ac_try_echo") >&5
28114 (eval "$ac_try") 2>&5
28116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); }; }; then
28118 gl_cv_func_stat_dir_slash=yes
28120 $as_echo "$as_me: program exited with status $ac_status" >&5
28121 $as_echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28124 ( exit $ac_status )
28125 gl_cv_func_stat_dir_slash=no
28127 rm -rf conftest.dSYM
28128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28133 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_dir_slash" >&5
28134 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28135 { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on files" >&5
28136 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28137 if test "${gl_cv_func_stat_file_slash+set}" = set; then
28138 $as_echo_n "(cached) " >&6
28141 # Assume that if we have lstat, we can also check symlinks.
28142 if test $ac_cv_func_lstat = yes; then
28143 ln -s conftest.tmp conftest.lnk
28145 if test "$cross_compiling" = yes; then
28146 gl_cv_func_stat_file_slash="guessing no"
28148 cat >conftest.$ac_ext <<_ACEOF
28151 cat confdefs.h >>conftest.$ac_ext
28152 cat >>conftest.$ac_ext <<_ACEOF
28153 /* end confdefs.h. */
28154 #include <sys/stat.h>
28160 if (!stat ("conftest.tmp/", &st)) return 1;
28162 if (!stat ("conftest.lnk/", &st)) return 2;
28169 rm -f conftest$ac_exeext
28170 if { (ac_try="$ac_link"
28171 case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28176 $as_echo "$ac_try_echo") >&5
28177 (eval "$ac_link") 2>&5
28179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28181 { (case "(($ac_try" in
28182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183 *) ac_try_echo=$ac_try;;
28185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28186 $as_echo "$ac_try_echo") >&5
28187 (eval "$ac_try") 2>&5
28189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; }; then
28191 gl_cv_func_stat_file_slash=yes
28193 $as_echo "$as_me: program exited with status $ac_status" >&5
28194 $as_echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.$ac_ext >&5
28197 ( exit $ac_status )
28198 gl_cv_func_stat_file_slash=no
28200 rm -rf conftest.dSYM
28201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28205 rm -f conftest.tmp conftest.lnk
28207 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_file_slash" >&5
28208 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28209 case $gl_cv_func_stat_dir_slash in
28210 *no) REPLACE_STAT=1
28212 cat >>confdefs.h <<\_ACEOF
28213 #define REPLACE_FUNC_STAT_DIR 1
28217 case $gl_cv_func_stat_file_slash in
28218 *no) REPLACE_STAT=1
28220 cat >>confdefs.h <<\_ACEOF
28221 #define REPLACE_FUNC_STAT_FILE 1
28225 if test $REPLACE_STAT = 1; then
28234 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28246 cat >>confdefs.h <<\_ACEOF
28247 #define GNULIB_TEST_STAT 1
28252 # Code from module stdbool:
28256 # Define two additional variables used in the Makefile substitution.
28258 if test "$ac_cv_header_stdbool_h" = yes; then
28261 STDBOOL_H='stdbool.h'
28265 if test "$ac_cv_type__Bool" = yes; then
28272 # Code from module stddef:
28276 if test $gt_cv_c_wchar_t = no; then
28280 { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
28281 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
28282 if test "${gl_cv_decl_null_works+set}" = set; then
28283 $as_echo_n "(cached) " >&6
28285 cat >conftest.$ac_ext <<_ACEOF
28288 cat confdefs.h >>conftest.$ac_ext
28289 cat >>conftest.$ac_ext <<_ACEOF
28290 /* end confdefs.h. */
28291 #include <stddef.h>
28292 int test[2 * (sizeof NULL == sizeof (void *)) -1];
28302 rm -f conftest.$ac_objext
28303 if { (ac_try="$ac_compile"
28304 case "(($ac_try" in
28305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306 *) ac_try_echo=$ac_try;;
28308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28309 $as_echo "$ac_try_echo") >&5
28310 (eval "$ac_compile") 2>conftest.er1
28312 grep -v '^ *+' conftest.er1 >conftest.err
28314 cat conftest.err >&5
28315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); } && {
28317 test -z "$ac_c_werror_flag" ||
28318 test ! -s conftest.err
28319 } && test -s conftest.$ac_objext; then
28320 gl_cv_decl_null_works=yes
28322 $as_echo "$as_me: failed program was:" >&5
28323 sed 's/^/| /' conftest.$ac_ext >&5
28325 gl_cv_decl_null_works=no
28328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28330 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
28331 $as_echo "$gl_cv_decl_null_works" >&6; }
28332 if test $gl_cv_decl_null_works = no; then
28336 if test -n "$STDDEF_H"; then
28349 if test $gl_cv_have_include_next = yes; then
28350 gl_cv_next_stddef_h='<'stddef.h'>'
28352 { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
28353 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
28354 if test "${gl_cv_next_stddef_h+set}" = set; then
28355 $as_echo_n "(cached) " >&6
28358 if test $ac_cv_header_stddef_h = yes; then
28359 cat >conftest.$ac_ext <<_ACEOF
28362 cat confdefs.h >>conftest.$ac_ext
28363 cat >>conftest.$ac_ext <<_ACEOF
28364 /* end confdefs.h. */
28365 #include <stddef.h>
28369 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28370 *) gl_absname_cpp="$ac_cpp" ;;
28372 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28373 sed -n '\#/stddef.h#{
28374 s#.*"\(.*/stddef.h\)".*#\1#
28380 gl_cv_next_stddef_h='<'stddef.h'>'
28384 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
28385 $as_echo "$gl_cv_next_stddef_h" >&6; }
28387 NEXT_STDDEF_H=$gl_cv_next_stddef_h
28389 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28390 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28391 gl_next_as_first_directive='<'stddef.h'>'
28393 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28394 gl_next_as_first_directive=$gl_cv_next_stddef_h
28396 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
28402 # Code from module stdint:
28406 if test $ac_cv_type_long_long_int = yes; then
28407 HAVE_LONG_LONG_INT=1
28409 HAVE_LONG_LONG_INT=0
28413 if test $ac_cv_type_unsigned_long_long_int = yes; then
28414 HAVE_UNSIGNED_LONG_LONG_INT=1
28416 HAVE_UNSIGNED_LONG_LONG_INT=0
28420 if test $ac_cv_header_inttypes_h = yes; then
28427 if test $ac_cv_header_sys_types_h = yes; then
28446 if test $gl_cv_have_include_next = yes; then
28447 gl_cv_next_stdint_h='<'stdint.h'>'
28449 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
28450 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
28451 if test "${gl_cv_next_stdint_h+set}" = set; then
28452 $as_echo_n "(cached) " >&6
28455 if test $ac_cv_header_stdint_h = yes; then
28456 cat >conftest.$ac_ext <<_ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h. */
28462 #include <stdint.h>
28466 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28467 *) gl_absname_cpp="$ac_cpp" ;;
28469 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28470 sed -n '\#/stdint.h#{
28471 s#.*"\(.*/stdint.h\)".*#\1#
28477 gl_cv_next_stdint_h='<'stdint.h'>'
28481 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
28482 $as_echo "$gl_cv_next_stdint_h" >&6; }
28484 NEXT_STDINT_H=$gl_cv_next_stdint_h
28486 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28487 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28488 gl_next_as_first_directive='<'stdint.h'>'
28490 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28491 gl_next_as_first_directive=$gl_cv_next_stdint_h
28493 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
28497 if test $ac_cv_header_stdint_h = yes; then
28504 if test $ac_cv_header_stdint_h = yes; then
28505 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
28506 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
28507 if test "${gl_cv_header_working_stdint_h+set}" = set; then
28508 $as_echo_n "(cached) " >&6
28510 gl_cv_header_working_stdint_h=no
28511 cat >conftest.$ac_ext <<_ACEOF
28515 cat confdefs.h >>conftest.$ac_ext
28516 cat >>conftest.$ac_ext <<_ACEOF
28517 /* end confdefs.h. */
28519 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28520 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28521 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
28522 #include <stdint.h>
28523 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
28524 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
28525 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
28529 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28530 included before <wchar.h>. */
28531 #include <stddef.h>
28532 #include <signal.h>
28534 # include <stdio.h>
28536 # include <wchar.h>
28541 int8_t a1 = INT8_MAX;
28542 int8_t a1min = INT8_MIN;
28545 int16_t a2 = INT16_MAX;
28546 int16_t a2min = INT16_MIN;
28549 int32_t a3 = INT32_MAX;
28550 int32_t a3min = INT32_MIN;
28553 int64_t a4 = INT64_MAX;
28554 int64_t a4min = INT64_MIN;
28557 uint8_t b1 = UINT8_MAX;
28559 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
28562 uint16_t b2 = UINT16_MAX;
28565 uint32_t b3 = UINT32_MAX;
28568 uint64_t b4 = UINT64_MAX;
28570 int_least8_t c1 = INT8_C (0x7f);
28571 int_least8_t c1max = INT_LEAST8_MAX;
28572 int_least8_t c1min = INT_LEAST8_MIN;
28573 int_least16_t c2 = INT16_C (0x7fff);
28574 int_least16_t c2max = INT_LEAST16_MAX;
28575 int_least16_t c2min = INT_LEAST16_MIN;
28576 int_least32_t c3 = INT32_C (0x7fffffff);
28577 int_least32_t c3max = INT_LEAST32_MAX;
28578 int_least32_t c3min = INT_LEAST32_MIN;
28579 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
28580 int_least64_t c4max = INT_LEAST64_MAX;
28581 int_least64_t c4min = INT_LEAST64_MIN;
28582 uint_least8_t d1 = UINT8_C (0xff);
28583 uint_least8_t d1max = UINT_LEAST8_MAX;
28584 uint_least16_t d2 = UINT16_C (0xffff);
28585 uint_least16_t d2max = UINT_LEAST16_MAX;
28586 uint_least32_t d3 = UINT32_C (0xffffffff);
28587 uint_least32_t d3max = UINT_LEAST32_MAX;
28588 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
28589 uint_least64_t d4max = UINT_LEAST64_MAX;
28590 int_fast8_t e1 = INT_FAST8_MAX;
28591 int_fast8_t e1min = INT_FAST8_MIN;
28592 int_fast16_t e2 = INT_FAST16_MAX;
28593 int_fast16_t e2min = INT_FAST16_MIN;
28594 int_fast32_t e3 = INT_FAST32_MAX;
28595 int_fast32_t e3min = INT_FAST32_MIN;
28596 int_fast64_t e4 = INT_FAST64_MAX;
28597 int_fast64_t e4min = INT_FAST64_MIN;
28598 uint_fast8_t f1 = UINT_FAST8_MAX;
28599 uint_fast16_t f2 = UINT_FAST16_MAX;
28600 uint_fast32_t f3 = UINT_FAST32_MAX;
28601 uint_fast64_t f4 = UINT_FAST64_MAX;
28603 intptr_t g = INTPTR_MAX;
28604 intptr_t gmin = INTPTR_MIN;
28607 uintptr_t h = UINTPTR_MAX;
28609 intmax_t i = INTMAX_MAX;
28610 uintmax_t j = UINTMAX_MAX;
28612 #include <limits.h> /* for CHAR_BIT */
28613 #define TYPE_MINIMUM(t) \
28614 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
28615 #define TYPE_MAXIMUM(t) \
28616 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
28619 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
28620 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
28622 /* Detect bug in FreeBSD 6.0 / ia64. */
28623 int check_SIG_ATOMIC:
28624 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
28625 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
28627 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
28629 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
28630 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
28632 /* Detect bug in mingw. */
28634 WINT_MIN == TYPE_MINIMUM (wint_t)
28635 && WINT_MAX == TYPE_MAXIMUM (wint_t)
28638 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
28640 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
28641 int check_UINT16_C:
28642 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
28644 /* Detect bugs in OpenBSD 3.9 stdint.h. */
28646 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
28649 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
28652 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
28655 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
28657 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
28658 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
28659 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
28660 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
28661 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
28662 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
28663 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
28664 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
28665 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
28666 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
28667 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
28678 rm -f conftest.$ac_objext
28679 if { (ac_try="$ac_compile"
28680 case "(($ac_try" in
28681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682 *) ac_try_echo=$ac_try;;
28684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28685 $as_echo "$ac_try_echo") >&5
28686 (eval "$ac_compile") 2>conftest.er1
28688 grep -v '^ *+' conftest.er1 >conftest.err
28690 cat conftest.err >&5
28691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692 (exit $ac_status); } && {
28693 test -z "$ac_c_werror_flag" ||
28694 test ! -s conftest.err
28695 } && test -s conftest.$ac_objext; then
28696 if test "$cross_compiling" = yes; then
28697 gl_cv_header_working_stdint_h=yes
28700 cat >conftest.$ac_ext <<_ACEOF
28704 cat confdefs.h >>conftest.$ac_ext
28705 cat >>conftest.$ac_ext <<_ACEOF
28706 /* end confdefs.h. */
28708 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28709 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28710 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
28711 #include <stdint.h>
28714 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28715 included before <wchar.h>. */
28716 #include <stddef.h>
28717 #include <signal.h>
28719 # include <stdio.h>
28721 # include <wchar.h>
28726 #include <string.h>
28727 #define MVAL(macro) MVAL1(macro)
28728 #define MVAL1(expression) #expression
28729 static const char *macro_values[] =
28763 for (mv = macro_values; *mv != NULL; mv++)
28765 const char *value = *mv;
28766 /* Test whether it looks like a cast expression. */
28767 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
28768 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
28769 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
28770 || strncmp (value, "((int)"/*)*/, 6) == 0
28771 || strncmp (value, "((signed short)"/*)*/, 15) == 0
28772 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
28781 rm -f conftest$ac_exeext
28782 if { (ac_try="$ac_link"
28783 case "(($ac_try" in
28784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785 *) ac_try_echo=$ac_try;;
28787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28788 $as_echo "$ac_try_echo") >&5
28789 (eval "$ac_link") 2>&5
28791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28793 { (case "(($ac_try" in
28794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28795 *) ac_try_echo=$ac_try;;
28797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28798 $as_echo "$ac_try_echo") >&5
28799 (eval "$ac_try") 2>&5
28801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); }; }; then
28803 gl_cv_header_working_stdint_h=yes
28805 $as_echo "$as_me: program exited with status $ac_status" >&5
28806 $as_echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.$ac_ext >&5
28810 rm -rf conftest.dSYM
28811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28817 $as_echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28826 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
28827 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
28829 if test "$gl_cv_header_working_stdint_h" = yes; then
28834 for ac_header in sys/inttypes.h sys/bitypes.h
28836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28838 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28839 $as_echo_n "checking for $ac_header... " >&6; }
28840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28841 $as_echo_n "(cached) " >&6
28843 ac_res=`eval 'as_val=${'$as_ac_Header'}
28844 $as_echo "$as_val"'`
28845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28846 $as_echo "$ac_res" >&6; }
28848 # Is the header compilable?
28849 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28850 $as_echo_n "checking $ac_header usability... " >&6; }
28851 cat >conftest.$ac_ext <<_ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h. */
28857 $ac_includes_default
28858 #include <$ac_header>
28860 rm -f conftest.$ac_objext
28861 if { (ac_try="$ac_compile"
28862 case "(($ac_try" in
28863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28864 *) ac_try_echo=$ac_try;;
28866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28867 $as_echo "$ac_try_echo") >&5
28868 (eval "$ac_compile") 2>conftest.er1
28870 grep -v '^ *+' conftest.er1 >conftest.err
28872 cat conftest.err >&5
28873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } && {
28875 test -z "$ac_c_werror_flag" ||
28876 test ! -s conftest.err
28877 } && test -s conftest.$ac_objext; then
28878 ac_header_compiler=yes
28880 $as_echo "$as_me: failed program was:" >&5
28881 sed 's/^/| /' conftest.$ac_ext >&5
28883 ac_header_compiler=no
28886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28888 $as_echo "$ac_header_compiler" >&6; }
28890 # Is the header present?
28891 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28892 $as_echo_n "checking $ac_header presence... " >&6; }
28893 cat >conftest.$ac_ext <<_ACEOF
28896 cat confdefs.h >>conftest.$ac_ext
28897 cat >>conftest.$ac_ext <<_ACEOF
28898 /* end confdefs.h. */
28899 #include <$ac_header>
28901 if { (ac_try="$ac_cpp conftest.$ac_ext"
28902 case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28907 $as_echo "$ac_try_echo") >&5
28908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28910 grep -v '^ *+' conftest.er1 >conftest.err
28912 cat conftest.err >&5
28913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); } >/dev/null && {
28915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28916 test ! -s conftest.err
28918 ac_header_preproc=yes
28920 $as_echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28923 ac_header_preproc=no
28926 rm -f conftest.err conftest.$ac_ext
28927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28928 $as_echo "$ac_header_preproc" >&6; }
28930 # So? What about this header?
28931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28934 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28937 ac_header_preproc=yes
28940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28941 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28943 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28945 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28947 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28949 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28951 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28956 $as_echo_n "checking for $ac_header... " >&6; }
28957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28958 $as_echo_n "(cached) " >&6
28960 eval "$as_ac_Header=\$ac_header_preproc"
28962 ac_res=`eval 'as_val=${'$as_ac_Header'}
28963 $as_echo "$as_val"'`
28964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28965 $as_echo "$ac_res" >&6; }
28968 as_val=`eval 'as_val=${'$as_ac_Header'}
28969 $as_echo "$as_val"'`
28970 if test "x$as_val" = x""yes; then
28971 cat >>confdefs.h <<_ACEOF
28972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28979 if test $ac_cv_header_sys_inttypes_h = yes; then
28980 HAVE_SYS_INTTYPES_H=1
28982 HAVE_SYS_INTTYPES_H=0
28985 if test $ac_cv_header_sys_bitypes_h = yes; then
28986 HAVE_SYS_BITYPES_H=1
28988 HAVE_SYS_BITYPES_H=0
29002 if test $APPLE_UNIVERSAL_BUILD = 0; then
29007 for gltype in ptrdiff_t size_t ; do
29008 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29009 $as_echo_n "checking for bit size of $gltype... " >&6; }
29010 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29011 $as_echo_n "(cached) " >&6
29013 if test "$cross_compiling" = yes; then
29014 # Depending upon the size, compute the lo and hi bounds.
29015 cat >conftest.$ac_ext <<_ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h. */
29022 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29023 included before <wchar.h>. */
29024 #include <stddef.h>
29025 #include <signal.h>
29027 # include <stdio.h>
29029 # include <wchar.h>
29032 #include <limits.h>
29036 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29043 rm -f conftest.$ac_objext
29044 if { (ac_try="$ac_compile"
29045 case "(($ac_try" in
29046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047 *) ac_try_echo=$ac_try;;
29049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29050 $as_echo "$ac_try_echo") >&5
29051 (eval "$ac_compile") 2>conftest.er1
29053 grep -v '^ *+' conftest.er1 >conftest.err
29055 cat conftest.err >&5
29056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } && {
29058 test -z "$ac_c_werror_flag" ||
29059 test ! -s conftest.err
29060 } && test -s conftest.$ac_objext; then
29063 cat >conftest.$ac_ext <<_ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h. */
29070 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29071 included before <wchar.h>. */
29072 #include <stddef.h>
29073 #include <signal.h>
29075 # include <stdio.h>
29077 # include <wchar.h>
29080 #include <limits.h>
29084 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29091 rm -f conftest.$ac_objext
29092 if { (ac_try="$ac_compile"
29093 case "(($ac_try" in
29094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095 *) ac_try_echo=$ac_try;;
29097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29098 $as_echo "$ac_try_echo") >&5
29099 (eval "$ac_compile") 2>conftest.er1
29101 grep -v '^ *+' conftest.er1 >conftest.err
29103 cat conftest.err >&5
29104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); } && {
29106 test -z "$ac_c_werror_flag" ||
29107 test ! -s conftest.err
29108 } && test -s conftest.$ac_objext; then
29109 ac_hi=$ac_mid; break
29111 $as_echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29114 ac_lo=`expr $ac_mid + 1`
29115 if test $ac_lo -le $ac_mid; then
29119 ac_mid=`expr 2 '*' $ac_mid + 1`
29122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29125 $as_echo "$as_me: failed program was:" >&5
29126 sed 's/^/| /' conftest.$ac_ext >&5
29128 cat >conftest.$ac_ext <<_ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h. */
29135 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29136 included before <wchar.h>. */
29137 #include <stddef.h>
29138 #include <signal.h>
29140 # include <stdio.h>
29142 # include <wchar.h>
29145 #include <limits.h>
29149 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29156 rm -f conftest.$ac_objext
29157 if { (ac_try="$ac_compile"
29158 case "(($ac_try" in
29159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160 *) ac_try_echo=$ac_try;;
29162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29163 $as_echo "$ac_try_echo") >&5
29164 (eval "$ac_compile") 2>conftest.er1
29166 grep -v '^ *+' conftest.er1 >conftest.err
29168 cat conftest.err >&5
29169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } && {
29171 test -z "$ac_c_werror_flag" ||
29172 test ! -s conftest.err
29173 } && test -s conftest.$ac_objext; then
29176 cat >conftest.$ac_ext <<_ACEOF
29179 cat confdefs.h >>conftest.$ac_ext
29180 cat >>conftest.$ac_ext <<_ACEOF
29181 /* end confdefs.h. */
29183 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29184 included before <wchar.h>. */
29185 #include <stddef.h>
29186 #include <signal.h>
29188 # include <stdio.h>
29190 # include <wchar.h>
29193 #include <limits.h>
29197 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29204 rm -f conftest.$ac_objext
29205 if { (ac_try="$ac_compile"
29206 case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29211 $as_echo "$ac_try_echo") >&5
29212 (eval "$ac_compile") 2>conftest.er1
29214 grep -v '^ *+' conftest.er1 >conftest.err
29216 cat conftest.err >&5
29217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); } && {
29219 test -z "$ac_c_werror_flag" ||
29220 test ! -s conftest.err
29221 } && test -s conftest.$ac_objext; then
29222 ac_lo=$ac_mid; break
29224 $as_echo "$as_me: failed program was:" >&5
29225 sed 's/^/| /' conftest.$ac_ext >&5
29227 ac_hi=`expr '(' $ac_mid ')' - 1`
29228 if test $ac_mid -le $ac_hi; then
29232 ac_mid=`expr 2 '*' $ac_mid`
29235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29238 $as_echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29248 # Binary search between lo and hi bounds.
29249 while test "x$ac_lo" != "x$ac_hi"; do
29250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29251 cat >conftest.$ac_ext <<_ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h. */
29258 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29259 included before <wchar.h>. */
29260 #include <stddef.h>
29261 #include <signal.h>
29263 # include <stdio.h>
29265 # include <wchar.h>
29268 #include <limits.h>
29272 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29279 rm -f conftest.$ac_objext
29280 if { (ac_try="$ac_compile"
29281 case "(($ac_try" in
29282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29283 *) ac_try_echo=$ac_try;;
29285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29286 $as_echo "$ac_try_echo") >&5
29287 (eval "$ac_compile") 2>conftest.er1
29289 grep -v '^ *+' conftest.er1 >conftest.err
29291 cat conftest.err >&5
29292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); } && {
29294 test -z "$ac_c_werror_flag" ||
29295 test ! -s conftest.err
29296 } && test -s conftest.$ac_objext; then
29299 $as_echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29302 ac_lo=`expr '(' $ac_mid ')' + 1`
29305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29308 ?*) result=$ac_lo;;
29309 '') result=unknown ;;
29312 cat >conftest.$ac_ext <<_ACEOF
29315 cat confdefs.h >>conftest.$ac_ext
29316 cat >>conftest.$ac_ext <<_ACEOF
29317 /* end confdefs.h. */
29319 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29320 included before <wchar.h>. */
29321 #include <stddef.h>
29322 #include <signal.h>
29324 # include <stdio.h>
29326 # include <wchar.h>
29329 #include <limits.h>
29330 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29331 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29333 #include <stdlib.h>
29338 FILE *f = fopen ("conftest.val", "w");
29341 if ((sizeof ($gltype) * CHAR_BIT) < 0)
29343 long int i = longval ();
29344 if (i != (sizeof ($gltype) * CHAR_BIT))
29346 fprintf (f, "%ld", i);
29350 unsigned long int i = ulongval ();
29351 if (i != (sizeof ($gltype) * CHAR_BIT))
29353 fprintf (f, "%lu", i);
29355 /* Do not output a trailing newline, as this causes \r\n confusion
29356 on some platforms. */
29357 return ferror (f) || fclose (f) != 0;
29363 rm -f conftest$ac_exeext
29364 if { (ac_try="$ac_link"
29365 case "(($ac_try" in
29366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29367 *) ac_try_echo=$ac_try;;
29369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29370 $as_echo "$ac_try_echo") >&5
29371 (eval "$ac_link") 2>&5
29373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29375 { (case "(($ac_try" in
29376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377 *) ac_try_echo=$ac_try;;
29379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29380 $as_echo "$ac_try_echo") >&5
29381 (eval "$ac_try") 2>&5
29383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; }; then
29385 result=`cat conftest.val`
29387 $as_echo "$as_me: program exited with status $ac_status" >&5
29388 $as_echo "$as_me: failed program was:" >&5
29389 sed 's/^/| /' conftest.$ac_ext >&5
29391 ( exit $ac_status )
29394 rm -rf conftest.dSYM
29395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29398 eval gl_cv_bitsizeof_${gltype}=\$result
29401 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
29402 $as_echo "$as_val"'`
29403 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29404 $as_echo "$ac_res" >&6; }
29405 eval result=\$gl_cv_bitsizeof_${gltype}
29406 if test $result = unknown; then
29409 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29410 cat >>confdefs.h <<_ACEOF
29411 #define BITSIZEOF_${GLTYPE} $result
29414 eval BITSIZEOF_${GLTYPE}=\$result
29424 for gltype in sig_atomic_t wchar_t wint_t ; do
29425 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29426 $as_echo_n "checking for bit size of $gltype... " >&6; }
29427 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29428 $as_echo_n "(cached) " >&6
29430 if test "$cross_compiling" = yes; then
29431 # Depending upon the size, compute the lo and hi bounds.
29432 cat >conftest.$ac_ext <<_ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h. */
29439 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29440 included before <wchar.h>. */
29441 #include <stddef.h>
29442 #include <signal.h>
29444 # include <stdio.h>
29446 # include <wchar.h>
29449 #include <limits.h>
29453 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29460 rm -f conftest.$ac_objext
29461 if { (ac_try="$ac_compile"
29462 case "(($ac_try" in
29463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464 *) ac_try_echo=$ac_try;;
29466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29467 $as_echo "$ac_try_echo") >&5
29468 (eval "$ac_compile") 2>conftest.er1
29470 grep -v '^ *+' conftest.er1 >conftest.err
29472 cat conftest.err >&5
29473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } && {
29475 test -z "$ac_c_werror_flag" ||
29476 test ! -s conftest.err
29477 } && test -s conftest.$ac_objext; then
29480 cat >conftest.$ac_ext <<_ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h. */
29487 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29488 included before <wchar.h>. */
29489 #include <stddef.h>
29490 #include <signal.h>
29492 # include <stdio.h>
29494 # include <wchar.h>
29497 #include <limits.h>
29501 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29508 rm -f conftest.$ac_objext
29509 if { (ac_try="$ac_compile"
29510 case "(($ac_try" in
29511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29512 *) ac_try_echo=$ac_try;;
29514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29515 $as_echo "$ac_try_echo") >&5
29516 (eval "$ac_compile") 2>conftest.er1
29518 grep -v '^ *+' conftest.er1 >conftest.err
29520 cat conftest.err >&5
29521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); } && {
29523 test -z "$ac_c_werror_flag" ||
29524 test ! -s conftest.err
29525 } && test -s conftest.$ac_objext; then
29526 ac_hi=$ac_mid; break
29528 $as_echo "$as_me: failed program was:" >&5
29529 sed 's/^/| /' conftest.$ac_ext >&5
29531 ac_lo=`expr $ac_mid + 1`
29532 if test $ac_lo -le $ac_mid; then
29536 ac_mid=`expr 2 '*' $ac_mid + 1`
29539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29542 $as_echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29545 cat >conftest.$ac_ext <<_ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h. */
29552 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29553 included before <wchar.h>. */
29554 #include <stddef.h>
29555 #include <signal.h>
29557 # include <stdio.h>
29559 # include <wchar.h>
29562 #include <limits.h>
29566 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29573 rm -f conftest.$ac_objext
29574 if { (ac_try="$ac_compile"
29575 case "(($ac_try" in
29576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577 *) ac_try_echo=$ac_try;;
29579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29580 $as_echo "$ac_try_echo") >&5
29581 (eval "$ac_compile") 2>conftest.er1
29583 grep -v '^ *+' conftest.er1 >conftest.err
29585 cat conftest.err >&5
29586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); } && {
29588 test -z "$ac_c_werror_flag" ||
29589 test ! -s conftest.err
29590 } && test -s conftest.$ac_objext; then
29593 cat >conftest.$ac_ext <<_ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h. */
29600 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29601 included before <wchar.h>. */
29602 #include <stddef.h>
29603 #include <signal.h>
29605 # include <stdio.h>
29607 # include <wchar.h>
29610 #include <limits.h>
29614 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29621 rm -f conftest.$ac_objext
29622 if { (ac_try="$ac_compile"
29623 case "(($ac_try" in
29624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625 *) ac_try_echo=$ac_try;;
29627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29628 $as_echo "$ac_try_echo") >&5
29629 (eval "$ac_compile") 2>conftest.er1
29631 grep -v '^ *+' conftest.er1 >conftest.err
29633 cat conftest.err >&5
29634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); } && {
29636 test -z "$ac_c_werror_flag" ||
29637 test ! -s conftest.err
29638 } && test -s conftest.$ac_objext; then
29639 ac_lo=$ac_mid; break
29641 $as_echo "$as_me: failed program was:" >&5
29642 sed 's/^/| /' conftest.$ac_ext >&5
29644 ac_hi=`expr '(' $ac_mid ')' - 1`
29645 if test $ac_mid -le $ac_hi; then
29649 ac_mid=`expr 2 '*' $ac_mid`
29652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29655 $as_echo "$as_me: failed program was:" >&5
29656 sed 's/^/| /' conftest.$ac_ext >&5
29661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29665 # Binary search between lo and hi bounds.
29666 while test "x$ac_lo" != "x$ac_hi"; do
29667 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29668 cat >conftest.$ac_ext <<_ACEOF
29671 cat confdefs.h >>conftest.$ac_ext
29672 cat >>conftest.$ac_ext <<_ACEOF
29673 /* end confdefs.h. */
29675 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29676 included before <wchar.h>. */
29677 #include <stddef.h>
29678 #include <signal.h>
29680 # include <stdio.h>
29682 # include <wchar.h>
29685 #include <limits.h>
29689 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29696 rm -f conftest.$ac_objext
29697 if { (ac_try="$ac_compile"
29698 case "(($ac_try" in
29699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29700 *) ac_try_echo=$ac_try;;
29702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29703 $as_echo "$ac_try_echo") >&5
29704 (eval "$ac_compile") 2>conftest.er1
29706 grep -v '^ *+' conftest.er1 >conftest.err
29708 cat conftest.err >&5
29709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); } && {
29711 test -z "$ac_c_werror_flag" ||
29712 test ! -s conftest.err
29713 } && test -s conftest.$ac_objext; then
29716 $as_echo "$as_me: failed program was:" >&5
29717 sed 's/^/| /' conftest.$ac_ext >&5
29719 ac_lo=`expr '(' $ac_mid ')' + 1`
29722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29725 ?*) result=$ac_lo;;
29726 '') result=unknown ;;
29729 cat >conftest.$ac_ext <<_ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29736 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29737 included before <wchar.h>. */
29738 #include <stddef.h>
29739 #include <signal.h>
29741 # include <stdio.h>
29743 # include <wchar.h>
29746 #include <limits.h>
29747 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29748 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29750 #include <stdlib.h>
29755 FILE *f = fopen ("conftest.val", "w");
29758 if ((sizeof ($gltype) * CHAR_BIT) < 0)
29760 long int i = longval ();
29761 if (i != (sizeof ($gltype) * CHAR_BIT))
29763 fprintf (f, "%ld", i);
29767 unsigned long int i = ulongval ();
29768 if (i != (sizeof ($gltype) * CHAR_BIT))
29770 fprintf (f, "%lu", i);
29772 /* Do not output a trailing newline, as this causes \r\n confusion
29773 on some platforms. */
29774 return ferror (f) || fclose (f) != 0;
29780 rm -f conftest$ac_exeext
29781 if { (ac_try="$ac_link"
29782 case "(($ac_try" in
29783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784 *) ac_try_echo=$ac_try;;
29786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29787 $as_echo "$ac_try_echo") >&5
29788 (eval "$ac_link") 2>&5
29790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29792 { (case "(($ac_try" in
29793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29794 *) ac_try_echo=$ac_try;;
29796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29797 $as_echo "$ac_try_echo") >&5
29798 (eval "$ac_try") 2>&5
29800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; }; then
29802 result=`cat conftest.val`
29804 $as_echo "$as_me: program exited with status $ac_status" >&5
29805 $as_echo "$as_me: failed program was:" >&5
29806 sed 's/^/| /' conftest.$ac_ext >&5
29808 ( exit $ac_status )
29811 rm -rf conftest.dSYM
29812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29815 eval gl_cv_bitsizeof_${gltype}=\$result
29818 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
29819 $as_echo "$as_val"'`
29820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29821 $as_echo "$ac_res" >&6; }
29822 eval result=\$gl_cv_bitsizeof_${gltype}
29823 if test $result = unknown; then
29826 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29827 cat >>confdefs.h <<_ACEOF
29828 #define BITSIZEOF_${GLTYPE} $result
29831 eval BITSIZEOF_${GLTYPE}=\$result
29840 for gltype in sig_atomic_t wchar_t wint_t ; do
29841 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
29842 $as_echo_n "checking whether $gltype is signed... " >&6; }
29843 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
29844 $as_echo_n "(cached) " >&6
29846 cat >conftest.$ac_ext <<_ACEOF
29849 cat confdefs.h >>conftest.$ac_ext
29850 cat >>conftest.$ac_ext <<_ACEOF
29851 /* end confdefs.h. */
29853 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29854 included before <wchar.h>. */
29855 #include <stddef.h>
29856 #include <signal.h>
29858 # include <stdio.h>
29860 # include <wchar.h>
29863 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
29872 rm -f conftest.$ac_objext
29873 if { (ac_try="$ac_compile"
29874 case "(($ac_try" in
29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876 *) ac_try_echo=$ac_try;;
29878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29879 $as_echo "$ac_try_echo") >&5
29880 (eval "$ac_compile") 2>conftest.er1
29882 grep -v '^ *+' conftest.er1 >conftest.err
29884 cat conftest.err >&5
29885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); } && {
29887 test -z "$ac_c_werror_flag" ||
29888 test ! -s conftest.err
29889 } && test -s conftest.$ac_objext; then
29892 $as_echo "$as_me: failed program was:" >&5
29893 sed 's/^/| /' conftest.$ac_ext >&5
29898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29899 eval gl_cv_type_${gltype}_signed=\$result
29902 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
29903 $as_echo "$as_val"'`
29904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29905 $as_echo "$ac_res" >&6; }
29906 eval result=\$gl_cv_type_${gltype}_signed
29907 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29908 if test "$result" = yes; then
29909 cat >>confdefs.h <<_ACEOF
29910 #define HAVE_SIGNED_${GLTYPE} 1
29913 eval HAVE_SIGNED_${GLTYPE}=1
29915 eval HAVE_SIGNED_${GLTYPE}=0
29920 gl_cv_type_ptrdiff_t_signed=yes
29921 gl_cv_type_size_t_signed=no
29922 if test $APPLE_UNIVERSAL_BUILD = 0; then
29927 for gltype in ptrdiff_t size_t ; do
29928 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
29929 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
29930 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
29931 $as_echo_n "(cached) " >&6
29933 eval gl_cv_type_${gltype}_suffix=no
29934 eval result=\$gl_cv_type_${gltype}_signed
29935 if test "$result" = yes; then
29940 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
29942 '') gltype1='int';;
29943 l) gltype1='long int';;
29944 ll) gltype1='long long int';;
29945 i64) gltype1='__int64';;
29946 u) gltype1='unsigned int';;
29947 ul) gltype1='unsigned long int';;
29948 ull) gltype1='unsigned long long int';;
29949 ui64)gltype1='unsigned __int64';;
29951 cat >conftest.$ac_ext <<_ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h. */
29958 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29959 included before <wchar.h>. */
29960 #include <stddef.h>
29961 #include <signal.h>
29963 # include <stdio.h>
29965 # include <wchar.h>
29968 extern $gltype foo;
29969 extern $gltype1 foo;
29978 rm -f conftest.$ac_objext
29979 if { (ac_try="$ac_compile"
29980 case "(($ac_try" in
29981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29982 *) ac_try_echo=$ac_try;;
29984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29985 $as_echo "$ac_try_echo") >&5
29986 (eval "$ac_compile") 2>conftest.er1
29988 grep -v '^ *+' conftest.er1 >conftest.err
29990 cat conftest.err >&5
29991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } && {
29993 test -z "$ac_c_werror_flag" ||
29994 test ! -s conftest.err
29995 } && test -s conftest.$ac_objext; then
29996 eval gl_cv_type_${gltype}_suffix=\$glsuf
29998 $as_echo "$as_me: failed program was:" >&5
29999 sed 's/^/| /' conftest.$ac_ext >&5
30004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30005 eval result=\$gl_cv_type_${gltype}_suffix
30006 test "$result" != no && break
30009 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30010 $as_echo "$as_val"'`
30011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30012 $as_echo "$ac_res" >&6; }
30013 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30014 eval result=\$gl_cv_type_${gltype}_suffix
30015 test "$result" = no && result=
30016 eval ${GLTYPE}_SUFFIX=\$result
30017 cat >>confdefs.h <<_ACEOF
30018 #define ${GLTYPE}_SUFFIX $result
30030 for gltype in sig_atomic_t wchar_t wint_t ; do
30031 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30032 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30033 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30034 $as_echo_n "(cached) " >&6
30036 eval gl_cv_type_${gltype}_suffix=no
30037 eval result=\$gl_cv_type_${gltype}_signed
30038 if test "$result" = yes; then
30043 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30045 '') gltype1='int';;
30046 l) gltype1='long int';;
30047 ll) gltype1='long long int';;
30048 i64) gltype1='__int64';;
30049 u) gltype1='unsigned int';;
30050 ul) gltype1='unsigned long int';;
30051 ull) gltype1='unsigned long long int';;
30052 ui64)gltype1='unsigned __int64';;
30054 cat >conftest.$ac_ext <<_ACEOF
30057 cat confdefs.h >>conftest.$ac_ext
30058 cat >>conftest.$ac_ext <<_ACEOF
30059 /* end confdefs.h. */
30061 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30062 included before <wchar.h>. */
30063 #include <stddef.h>
30064 #include <signal.h>
30066 # include <stdio.h>
30068 # include <wchar.h>
30071 extern $gltype foo;
30072 extern $gltype1 foo;
30081 rm -f conftest.$ac_objext
30082 if { (ac_try="$ac_compile"
30083 case "(($ac_try" in
30084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085 *) ac_try_echo=$ac_try;;
30087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30088 $as_echo "$ac_try_echo") >&5
30089 (eval "$ac_compile") 2>conftest.er1
30091 grep -v '^ *+' conftest.er1 >conftest.err
30093 cat conftest.err >&5
30094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); } && {
30096 test -z "$ac_c_werror_flag" ||
30097 test ! -s conftest.err
30098 } && test -s conftest.$ac_objext; then
30099 eval gl_cv_type_${gltype}_suffix=\$glsuf
30101 $as_echo "$as_me: failed program was:" >&5
30102 sed 's/^/| /' conftest.$ac_ext >&5
30107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30108 eval result=\$gl_cv_type_${gltype}_suffix
30109 test "$result" != no && break
30112 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30113 $as_echo "$as_val"'`
30114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30115 $as_echo "$ac_res" >&6; }
30116 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30117 eval result=\$gl_cv_type_${gltype}_suffix
30118 test "$result" = no && result=
30119 eval ${GLTYPE}_SUFFIX=\$result
30120 cat >>confdefs.h <<_ACEOF
30121 #define ${GLTYPE}_SUFFIX $result
30132 # Code from module stdio:
30149 if test $gl_cv_have_include_next = yes; then
30150 gl_cv_next_stdio_h='<'stdio.h'>'
30152 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
30153 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
30154 if test "${gl_cv_next_stdio_h+set}" = set; then
30155 $as_echo_n "(cached) " >&6
30158 if test $ac_cv_header_stdio_h = yes; then
30159 cat >conftest.$ac_ext <<_ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h. */
30169 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30170 *) gl_absname_cpp="$ac_cpp" ;;
30172 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30173 sed -n '\#/stdio.h#{
30174 s#.*"\(.*/stdio.h\)".*#\1#
30180 gl_cv_next_stdio_h='<'stdio.h'>'
30184 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
30185 $as_echo "$gl_cv_next_stdio_h" >&6; }
30187 NEXT_STDIO_H=$gl_cv_next_stdio_h
30189 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30190 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30191 gl_next_as_first_directive='<'stdio.h'>'
30193 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30194 gl_next_as_first_directive=$gl_cv_next_stdio_h
30196 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
30225 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
30226 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30227 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30228 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30229 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30230 $as_echo_n "(cached) " >&6
30232 cat >conftest.$ac_ext <<_ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h. */
30249 rm -f conftest.$ac_objext
30250 if { (ac_try="$ac_compile"
30251 case "(($ac_try" in
30252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30253 *) ac_try_echo=$ac_try;;
30255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30256 $as_echo "$ac_try_echo") >&5
30257 (eval "$ac_compile") 2>conftest.er1
30259 grep -v '^ *+' conftest.er1 >conftest.err
30261 cat conftest.err >&5
30262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); } && {
30264 test -z "$ac_c_werror_flag" ||
30265 test ! -s conftest.err
30266 } && test -s conftest.$ac_objext; then
30267 eval "$as_gl_Symbol=yes"
30269 $as_echo "$as_me: failed program was:" >&5
30270 sed 's/^/| /' conftest.$ac_ext >&5
30272 eval "$as_gl_Symbol=no"
30275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30277 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30278 $as_echo "$as_val"'`
30279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30280 $as_echo "$ac_res" >&6; }
30281 as_val=`eval 'as_val=${'$as_gl_Symbol'}
30282 $as_echo "$as_val"'`
30283 if test "x$as_val" = x""yes; then
30284 cat >>confdefs.h <<_ACEOF
30285 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30288 eval ac_cv_have_decl_$gl_func=yes
30294 # Code from module stdlib:
30309 if test $gl_cv_have_include_next = yes; then
30310 gl_cv_next_stdlib_h='<'stdlib.h'>'
30312 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
30313 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
30314 if test "${gl_cv_next_stdlib_h+set}" = set; then
30315 $as_echo_n "(cached) " >&6
30318 if test $ac_cv_header_stdlib_h = yes; then
30319 cat >conftest.$ac_ext <<_ACEOF
30322 cat confdefs.h >>conftest.$ac_ext
30323 cat >>conftest.$ac_ext <<_ACEOF
30324 /* end confdefs.h. */
30325 #include <stdlib.h>
30329 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30330 *) gl_absname_cpp="$ac_cpp" ;;
30332 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30333 sed -n '\#/stdlib.h#{
30334 s#.*"\(.*/stdlib.h\)".*#\1#
30340 gl_cv_next_stdlib_h='<'stdlib.h'>'
30344 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
30345 $as_echo "$gl_cv_next_stdlib_h" >&6; }
30347 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
30349 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30350 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30351 gl_next_as_first_directive='<'stdlib.h'>'
30353 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30354 gl_next_as_first_directive=$gl_cv_next_stdlib_h
30356 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
30361 for ac_header in random.h
30363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30365 $as_echo_n "checking for $ac_header... " >&6; }
30366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30367 $as_echo_n "(cached) " >&6
30369 cat >conftest.$ac_ext <<_ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h. */
30375 $ac_includes_default
30377 #include <$ac_header>
30379 rm -f conftest.$ac_objext
30380 if { (ac_try="$ac_compile"
30381 case "(($ac_try" in
30382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30383 *) ac_try_echo=$ac_try;;
30385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30386 $as_echo "$ac_try_echo") >&5
30387 (eval "$ac_compile") 2>conftest.er1
30389 grep -v '^ *+' conftest.er1 >conftest.err
30391 cat conftest.err >&5
30392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393 (exit $ac_status); } && {
30394 test -z "$ac_c_werror_flag" ||
30395 test ! -s conftest.err
30396 } && test -s conftest.$ac_objext; then
30397 eval "$as_ac_Header=yes"
30399 $as_echo "$as_me: failed program was:" >&5
30400 sed 's/^/| /' conftest.$ac_ext >&5
30402 eval "$as_ac_Header=no"
30405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30407 ac_res=`eval 'as_val=${'$as_ac_Header'}
30408 $as_echo "$as_val"'`
30409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30410 $as_echo "$ac_res" >&6; }
30411 as_val=`eval 'as_val=${'$as_ac_Header'}
30412 $as_echo "$as_val"'`
30413 if test "x$as_val" = x""yes; then
30414 cat >>confdefs.h <<_ACEOF
30415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30422 if test $ac_cv_header_random_h = yes; then
30428 { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
30429 $as_echo_n "checking for struct random_data... " >&6; }
30430 if test "${ac_cv_type_struct_random_data+set}" = set; then
30431 $as_echo_n "(cached) " >&6
30433 ac_cv_type_struct_random_data=no
30434 cat >conftest.$ac_ext <<_ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h. */
30440 #include <stdlib.h>
30442 # include <random.h>
30449 if (sizeof (struct random_data))
30455 rm -f conftest.$ac_objext
30456 if { (ac_try="$ac_compile"
30457 case "(($ac_try" in
30458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459 *) ac_try_echo=$ac_try;;
30461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30462 $as_echo "$ac_try_echo") >&5
30463 (eval "$ac_compile") 2>conftest.er1
30465 grep -v '^ *+' conftest.er1 >conftest.err
30467 cat conftest.err >&5
30468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } && {
30470 test -z "$ac_c_werror_flag" ||
30471 test ! -s conftest.err
30472 } && test -s conftest.$ac_objext; then
30473 cat >conftest.$ac_ext <<_ACEOF
30476 cat confdefs.h >>conftest.$ac_ext
30477 cat >>conftest.$ac_ext <<_ACEOF
30478 /* end confdefs.h. */
30479 #include <stdlib.h>
30481 # include <random.h>
30488 if (sizeof ((struct random_data)))
30494 rm -f conftest.$ac_objext
30495 if { (ac_try="$ac_compile"
30496 case "(($ac_try" in
30497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498 *) ac_try_echo=$ac_try;;
30500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30501 $as_echo "$ac_try_echo") >&5
30502 (eval "$ac_compile") 2>conftest.er1
30504 grep -v '^ *+' conftest.er1 >conftest.err
30506 cat conftest.err >&5
30507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); } && {
30509 test -z "$ac_c_werror_flag" ||
30510 test ! -s conftest.err
30511 } && test -s conftest.$ac_objext; then
30514 $as_echo "$as_me: failed program was:" >&5
30515 sed 's/^/| /' conftest.$ac_ext >&5
30517 ac_cv_type_struct_random_data=yes
30520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30522 $as_echo "$as_me: failed program was:" >&5
30523 sed 's/^/| /' conftest.$ac_ext >&5
30528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30530 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
30531 $as_echo "$ac_cv_type_struct_random_data" >&6; }
30532 if test "x$ac_cv_type_struct_random_data" = x""yes; then
30534 cat >>confdefs.h <<_ACEOF
30535 #define HAVE_STRUCT_RANDOM_DATA 1
30540 HAVE_STRUCT_RANDOM_DATA=0
30569 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do
30570 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30571 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30572 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30573 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30574 $as_echo_n "(cached) " >&6
30576 cat >conftest.$ac_ext <<_ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h. */
30582 #include <stdlib.h>
30583 #if HAVE_SYS_LOADAVG_H
30584 # include <sys/loadavg.h>
30587 # include <random.h>
30599 rm -f conftest.$ac_objext
30600 if { (ac_try="$ac_compile"
30601 case "(($ac_try" in
30602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603 *) ac_try_echo=$ac_try;;
30605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30606 $as_echo "$ac_try_echo") >&5
30607 (eval "$ac_compile") 2>conftest.er1
30609 grep -v '^ *+' conftest.er1 >conftest.err
30611 cat conftest.err >&5
30612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); } && {
30614 test -z "$ac_c_werror_flag" ||
30615 test ! -s conftest.err
30616 } && test -s conftest.$ac_objext; then
30617 eval "$as_gl_Symbol=yes"
30619 $as_echo "$as_me: failed program was:" >&5
30620 sed 's/^/| /' conftest.$ac_ext >&5
30622 eval "$as_gl_Symbol=no"
30625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30627 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30628 $as_echo "$as_val"'`
30629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30630 $as_echo "$ac_res" >&6; }
30631 as_val=`eval 'as_val=${'$as_gl_Symbol'}
30632 $as_echo "$as_val"'`
30633 if test "x$as_val" = x""yes; then
30634 cat >>confdefs.h <<_ACEOF
30635 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30638 eval ac_cv_have_decl_$gl_func=yes
30644 # Code from module streq:
30645 # Code from module string:
30649 # Code from module sys_socket:
30654 { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
30655 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
30656 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
30657 $as_echo_n "(cached) " >&6
30660 cat >conftest.$ac_ext <<_ACEOF
30663 cat confdefs.h >>conftest.$ac_ext
30664 cat >>conftest.$ac_ext <<_ACEOF
30665 /* end confdefs.h. */
30666 #include <sys/socket.h>
30675 rm -f conftest.$ac_objext
30676 if { (ac_try="$ac_compile"
30677 case "(($ac_try" in
30678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679 *) ac_try_echo=$ac_try;;
30681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30682 $as_echo "$ac_try_echo") >&5
30683 (eval "$ac_compile") 2>conftest.er1
30685 grep -v '^ *+' conftest.er1 >conftest.err
30687 cat conftest.err >&5
30688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689 (exit $ac_status); } && {
30690 test -z "$ac_c_werror_flag" ||
30691 test ! -s conftest.err
30692 } && test -s conftest.$ac_objext; then
30693 gl_cv_header_sys_socket_h_selfcontained=yes
30695 $as_echo "$as_me: failed program was:" >&5
30696 sed 's/^/| /' conftest.$ac_ext >&5
30698 gl_cv_header_sys_socket_h_selfcontained=no
30701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30704 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
30705 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
30706 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
30708 for ac_func in shutdown
30710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30711 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30712 $as_echo_n "checking for $ac_func... " >&6; }
30713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30714 $as_echo_n "(cached) " >&6
30716 cat >conftest.$ac_ext <<_ACEOF
30719 cat confdefs.h >>conftest.$ac_ext
30720 cat >>conftest.$ac_ext <<_ACEOF
30721 /* end confdefs.h. */
30722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30724 #define $ac_func innocuous_$ac_func
30726 /* System header to define __stub macros and hopefully few prototypes,
30727 which can conflict with char $ac_func (); below.
30728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30729 <limits.h> exists even on freestanding compilers. */
30732 # include <limits.h>
30734 # include <assert.h>
30739 /* Override any GCC internal prototype to avoid an error.
30740 Use char because int might match the return type of a GCC
30741 builtin and then its argument prototype would still apply. */
30746 /* The GNU C library defines this for functions which it implements
30747 to always fail with ENOSYS. Some functions are actually named
30748 something starting with __ and the normal name is an alias. */
30749 #if defined __stub_$ac_func || defined __stub___$ac_func
30756 return $ac_func ();
30761 rm -f conftest.$ac_objext conftest$ac_exeext
30762 if { (ac_try="$ac_link"
30763 case "(($ac_try" in
30764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765 *) ac_try_echo=$ac_try;;
30767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30768 $as_echo "$ac_try_echo") >&5
30769 (eval "$ac_link") 2>conftest.er1
30771 grep -v '^ *+' conftest.er1 >conftest.err
30773 cat conftest.err >&5
30774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); } && {
30776 test -z "$ac_c_werror_flag" ||
30777 test ! -s conftest.err
30778 } && test -s conftest$ac_exeext && {
30779 test "$cross_compiling" = yes ||
30780 $as_test_x conftest$ac_exeext
30782 eval "$as_ac_var=yes"
30784 $as_echo "$as_me: failed program was:" >&5
30785 sed 's/^/| /' conftest.$ac_ext >&5
30787 eval "$as_ac_var=no"
30790 rm -rf conftest.dSYM
30791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30792 conftest$ac_exeext conftest.$ac_ext
30794 ac_res=`eval 'as_val=${'$as_ac_var'}
30795 $as_echo "$as_val"'`
30796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30797 $as_echo "$ac_res" >&6; }
30798 as_val=`eval 'as_val=${'$as_ac_var'}
30799 $as_echo "$as_val"'`
30800 if test "x$as_val" = x""yes; then
30801 cat >>confdefs.h <<_ACEOF
30802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30808 if test $ac_cv_func_shutdown = yes; then
30809 { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
30810 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
30811 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
30812 $as_echo_n "(cached) " >&6
30815 cat >conftest.$ac_ext <<_ACEOF
30818 cat confdefs.h >>conftest.$ac_ext
30819 cat >>conftest.$ac_ext <<_ACEOF
30820 /* end confdefs.h. */
30821 #include <sys/socket.h>
30825 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
30830 rm -f conftest.$ac_objext
30831 if { (ac_try="$ac_compile"
30832 case "(($ac_try" in
30833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30834 *) ac_try_echo=$ac_try;;
30836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30837 $as_echo "$ac_try_echo") >&5
30838 (eval "$ac_compile") 2>conftest.er1
30840 grep -v '^ *+' conftest.er1 >conftest.err
30842 cat conftest.err >&5
30843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); } && {
30845 test -z "$ac_c_werror_flag" ||
30846 test ! -s conftest.err
30847 } && test -s conftest.$ac_objext; then
30848 gl_cv_header_sys_socket_h_shut=yes
30850 $as_echo "$as_me: failed program was:" >&5
30851 sed 's/^/| /' conftest.$ac_ext >&5
30853 gl_cv_header_sys_socket_h_shut=no
30856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30859 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
30860 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
30861 if test $gl_cv_header_sys_socket_h_shut = no; then
30862 SYS_SOCKET_H='sys/socket.h'
30866 # We need to check for ws2tcpip.h now.
30880 if test $gl_cv_have_include_next = yes; then
30881 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
30883 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
30884 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
30885 if test "${gl_cv_next_sys_socket_h+set}" = set; then
30886 $as_echo_n "(cached) " >&6
30889 if test $ac_cv_header_sys_socket_h = yes; then
30890 cat >conftest.$ac_ext <<_ACEOF
30893 cat confdefs.h >>conftest.$ac_ext
30894 cat >>conftest.$ac_ext <<_ACEOF
30895 /* end confdefs.h. */
30896 #include <sys/socket.h>
30900 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30901 *) gl_absname_cpp="$ac_cpp" ;;
30903 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30904 sed -n '\#/sys/socket.h#{
30905 s#.*"\(.*/sys/socket.h\)".*#\1#
30911 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
30915 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
30916 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
30918 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
30920 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30921 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30922 gl_next_as_first_directive='<'sys/socket.h'>'
30924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30925 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
30927 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
30931 if test $ac_cv_header_sys_socket_h = yes; then
30932 HAVE_SYS_SOCKET_H=1
30935 HAVE_SYS_SOCKET_H=0
30937 for ac_header in ws2tcpip.h
30939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30942 $as_echo_n "checking for $ac_header... " >&6; }
30943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30944 $as_echo_n "(cached) " >&6
30946 ac_res=`eval 'as_val=${'$as_ac_Header'}
30947 $as_echo "$as_val"'`
30948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30949 $as_echo "$ac_res" >&6; }
30951 # Is the header compilable?
30952 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30953 $as_echo_n "checking $ac_header usability... " >&6; }
30954 cat >conftest.$ac_ext <<_ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h. */
30960 $ac_includes_default
30961 #include <$ac_header>
30963 rm -f conftest.$ac_objext
30964 if { (ac_try="$ac_compile"
30965 case "(($ac_try" in
30966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967 *) ac_try_echo=$ac_try;;
30969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30970 $as_echo "$ac_try_echo") >&5
30971 (eval "$ac_compile") 2>conftest.er1
30973 grep -v '^ *+' conftest.er1 >conftest.err
30975 cat conftest.err >&5
30976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); } && {
30978 test -z "$ac_c_werror_flag" ||
30979 test ! -s conftest.err
30980 } && test -s conftest.$ac_objext; then
30981 ac_header_compiler=yes
30983 $as_echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30986 ac_header_compiler=no
30989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30990 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30991 $as_echo "$ac_header_compiler" >&6; }
30993 # Is the header present?
30994 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30995 $as_echo_n "checking $ac_header presence... " >&6; }
30996 cat >conftest.$ac_ext <<_ACEOF
30999 cat confdefs.h >>conftest.$ac_ext
31000 cat >>conftest.$ac_ext <<_ACEOF
31001 /* end confdefs.h. */
31002 #include <$ac_header>
31004 if { (ac_try="$ac_cpp conftest.$ac_ext"
31005 case "(($ac_try" in
31006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007 *) ac_try_echo=$ac_try;;
31009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31010 $as_echo "$ac_try_echo") >&5
31011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31013 grep -v '^ *+' conftest.er1 >conftest.err
31015 cat conftest.err >&5
31016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); } >/dev/null && {
31018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31019 test ! -s conftest.err
31021 ac_header_preproc=yes
31023 $as_echo "$as_me: failed program was:" >&5
31024 sed 's/^/| /' conftest.$ac_ext >&5
31026 ac_header_preproc=no
31029 rm -f conftest.err conftest.$ac_ext
31030 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31031 $as_echo "$ac_header_preproc" >&6; }
31033 # So? What about this header?
31034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31037 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31040 ac_header_preproc=yes
31043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31044 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31046 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31048 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31050 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31054 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31058 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31059 $as_echo_n "checking for $ac_header... " >&6; }
31060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31061 $as_echo_n "(cached) " >&6
31063 eval "$as_ac_Header=\$ac_header_preproc"
31065 ac_res=`eval 'as_val=${'$as_ac_Header'}
31066 $as_echo "$as_val"'`
31067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31068 $as_echo "$ac_res" >&6; }
31071 as_val=`eval 'as_val=${'$as_ac_Header'}
31072 $as_echo "$as_val"'`
31073 if test "x$as_val" = x""yes; then
31074 cat >>confdefs.h <<_ACEOF
31075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31082 if test $ac_cv_header_ws2tcpip_h = yes; then
31091 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
31092 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
31093 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
31094 $as_echo_n "(cached) " >&6
31096 ac_cv_type_struct_sockaddr_storage=no
31097 cat >conftest.$ac_ext <<_ACEOF
31100 cat confdefs.h >>conftest.$ac_ext
31101 cat >>conftest.$ac_ext <<_ACEOF
31102 /* end confdefs.h. */
31104 /* sys/types.h is not needed according to POSIX, but the
31105 sys/socket.h in i386-unknown-freebsd4.10 and
31106 powerpc-apple-darwin5.5 required it. */
31107 #include <sys/types.h>
31108 #ifdef HAVE_SYS_SOCKET_H
31109 #include <sys/socket.h>
31111 #ifdef HAVE_WS2TCPIP_H
31112 #include <ws2tcpip.h>
31119 if (sizeof (struct sockaddr_storage))
31125 rm -f conftest.$ac_objext
31126 if { (ac_try="$ac_compile"
31127 case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31132 $as_echo "$ac_try_echo") >&5
31133 (eval "$ac_compile") 2>conftest.er1
31135 grep -v '^ *+' conftest.er1 >conftest.err
31137 cat conftest.err >&5
31138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } && {
31140 test -z "$ac_c_werror_flag" ||
31141 test ! -s conftest.err
31142 } && test -s conftest.$ac_objext; then
31143 cat >conftest.$ac_ext <<_ACEOF
31146 cat confdefs.h >>conftest.$ac_ext
31147 cat >>conftest.$ac_ext <<_ACEOF
31148 /* end confdefs.h. */
31150 /* sys/types.h is not needed according to POSIX, but the
31151 sys/socket.h in i386-unknown-freebsd4.10 and
31152 powerpc-apple-darwin5.5 required it. */
31153 #include <sys/types.h>
31154 #ifdef HAVE_SYS_SOCKET_H
31155 #include <sys/socket.h>
31157 #ifdef HAVE_WS2TCPIP_H
31158 #include <ws2tcpip.h>
31165 if (sizeof ((struct sockaddr_storage)))
31171 rm -f conftest.$ac_objext
31172 if { (ac_try="$ac_compile"
31173 case "(($ac_try" in
31174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31175 *) ac_try_echo=$ac_try;;
31177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31178 $as_echo "$ac_try_echo") >&5
31179 (eval "$ac_compile") 2>conftest.er1
31181 grep -v '^ *+' conftest.er1 >conftest.err
31183 cat conftest.err >&5
31184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); } && {
31186 test -z "$ac_c_werror_flag" ||
31187 test ! -s conftest.err
31188 } && test -s conftest.$ac_objext; then
31191 $as_echo "$as_me: failed program was:" >&5
31192 sed 's/^/| /' conftest.$ac_ext >&5
31194 ac_cv_type_struct_sockaddr_storage=yes
31197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31199 $as_echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.$ac_ext >&5
31205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31207 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
31208 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
31209 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
31211 cat >>confdefs.h <<_ACEOF
31212 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
31217 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
31218 $as_echo_n "checking for sa_family_t... " >&6; }
31219 if test "${ac_cv_type_sa_family_t+set}" = set; then
31220 $as_echo_n "(cached) " >&6
31222 ac_cv_type_sa_family_t=no
31223 cat >conftest.$ac_ext <<_ACEOF
31226 cat confdefs.h >>conftest.$ac_ext
31227 cat >>conftest.$ac_ext <<_ACEOF
31228 /* end confdefs.h. */
31230 /* sys/types.h is not needed according to POSIX, but the
31231 sys/socket.h in i386-unknown-freebsd4.10 and
31232 powerpc-apple-darwin5.5 required it. */
31233 #include <sys/types.h>
31234 #ifdef HAVE_SYS_SOCKET_H
31235 #include <sys/socket.h>
31237 #ifdef HAVE_WS2TCPIP_H
31238 #include <ws2tcpip.h>
31245 if (sizeof (sa_family_t))
31251 rm -f conftest.$ac_objext
31252 if { (ac_try="$ac_compile"
31253 case "(($ac_try" in
31254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255 *) ac_try_echo=$ac_try;;
31257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31258 $as_echo "$ac_try_echo") >&5
31259 (eval "$ac_compile") 2>conftest.er1
31261 grep -v '^ *+' conftest.er1 >conftest.err
31263 cat conftest.err >&5
31264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265 (exit $ac_status); } && {
31266 test -z "$ac_c_werror_flag" ||
31267 test ! -s conftest.err
31268 } && test -s conftest.$ac_objext; then
31269 cat >conftest.$ac_ext <<_ACEOF
31272 cat confdefs.h >>conftest.$ac_ext
31273 cat >>conftest.$ac_ext <<_ACEOF
31274 /* end confdefs.h. */
31276 /* sys/types.h is not needed according to POSIX, but the
31277 sys/socket.h in i386-unknown-freebsd4.10 and
31278 powerpc-apple-darwin5.5 required it. */
31279 #include <sys/types.h>
31280 #ifdef HAVE_SYS_SOCKET_H
31281 #include <sys/socket.h>
31283 #ifdef HAVE_WS2TCPIP_H
31284 #include <ws2tcpip.h>
31291 if (sizeof ((sa_family_t)))
31297 rm -f conftest.$ac_objext
31298 if { (ac_try="$ac_compile"
31299 case "(($ac_try" in
31300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31301 *) ac_try_echo=$ac_try;;
31303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31304 $as_echo "$ac_try_echo") >&5
31305 (eval "$ac_compile") 2>conftest.er1
31307 grep -v '^ *+' conftest.er1 >conftest.err
31309 cat conftest.err >&5
31310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); } && {
31312 test -z "$ac_c_werror_flag" ||
31313 test ! -s conftest.err
31314 } && test -s conftest.$ac_objext; then
31317 $as_echo "$as_me: failed program was:" >&5
31318 sed 's/^/| /' conftest.$ac_ext >&5
31320 ac_cv_type_sa_family_t=yes
31323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31325 $as_echo "$as_me: failed program was:" >&5
31326 sed 's/^/| /' conftest.$ac_ext >&5
31331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31333 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
31334 $as_echo "$ac_cv_type_sa_family_t" >&6; }
31335 if test "x$ac_cv_type_sa_family_t" = x""yes; then
31337 cat >>confdefs.h <<_ACEOF
31338 #define HAVE_SA_FAMILY_T 1
31344 if test $ac_cv_type_struct_sockaddr_storage = no; then
31345 HAVE_STRUCT_SOCKADDR_STORAGE=0
31347 if test $ac_cv_type_sa_family_t = no; then
31360 if test $ac_cv_header_sys_socket_h != yes; then
31362 for ac_header in winsock2.h
31364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31367 $as_echo_n "checking for $ac_header... " >&6; }
31368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31369 $as_echo_n "(cached) " >&6
31371 ac_res=`eval 'as_val=${'$as_ac_Header'}
31372 $as_echo "$as_val"'`
31373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31374 $as_echo "$ac_res" >&6; }
31376 # Is the header compilable?
31377 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31378 $as_echo_n "checking $ac_header usability... " >&6; }
31379 cat >conftest.$ac_ext <<_ACEOF
31382 cat confdefs.h >>conftest.$ac_ext
31383 cat >>conftest.$ac_ext <<_ACEOF
31384 /* end confdefs.h. */
31385 $ac_includes_default
31386 #include <$ac_header>
31388 rm -f conftest.$ac_objext
31389 if { (ac_try="$ac_compile"
31390 case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31395 $as_echo "$ac_try_echo") >&5
31396 (eval "$ac_compile") 2>conftest.er1
31398 grep -v '^ *+' conftest.er1 >conftest.err
31400 cat conftest.err >&5
31401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); } && {
31403 test -z "$ac_c_werror_flag" ||
31404 test ! -s conftest.err
31405 } && test -s conftest.$ac_objext; then
31406 ac_header_compiler=yes
31408 $as_echo "$as_me: failed program was:" >&5
31409 sed 's/^/| /' conftest.$ac_ext >&5
31411 ac_header_compiler=no
31414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31415 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31416 $as_echo "$ac_header_compiler" >&6; }
31418 # Is the header present?
31419 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31420 $as_echo_n "checking $ac_header presence... " >&6; }
31421 cat >conftest.$ac_ext <<_ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h. */
31427 #include <$ac_header>
31429 if { (ac_try="$ac_cpp conftest.$ac_ext"
31430 case "(($ac_try" in
31431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432 *) ac_try_echo=$ac_try;;
31434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31435 $as_echo "$ac_try_echo") >&5
31436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31438 grep -v '^ *+' conftest.er1 >conftest.err
31440 cat conftest.err >&5
31441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); } >/dev/null && {
31443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31444 test ! -s conftest.err
31446 ac_header_preproc=yes
31448 $as_echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31451 ac_header_preproc=no
31454 rm -f conftest.err conftest.$ac_ext
31455 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31456 $as_echo "$ac_header_preproc" >&6; }
31458 # So? What about this header?
31459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31462 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31465 ac_header_preproc=yes
31468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31469 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31471 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31473 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31475 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31479 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31483 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31484 $as_echo_n "checking for $ac_header... " >&6; }
31485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31486 $as_echo_n "(cached) " >&6
31488 eval "$as_ac_Header=\$ac_header_preproc"
31490 ac_res=`eval 'as_val=${'$as_ac_Header'}
31491 $as_echo "$as_val"'`
31492 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31493 $as_echo "$ac_res" >&6; }
31496 as_val=`eval 'as_val=${'$as_ac_Header'}
31497 $as_echo "$as_val"'`
31498 if test "x$as_val" = x""yes; then
31499 cat >>confdefs.h <<_ACEOF
31500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31508 if test "$ac_cv_header_winsock2_h" = yes; then
31510 UNISTD_H_HAVE_WINSOCK2_H=1
31511 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
31534 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
31535 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31536 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31537 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31538 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31539 $as_echo_n "(cached) " >&6
31541 cat >conftest.$ac_ext <<_ACEOF
31544 cat confdefs.h >>conftest.$ac_ext
31545 cat >>conftest.$ac_ext <<_ACEOF
31546 /* end confdefs.h. */
31548 /* Some systems require prerequisite headers. */
31549 #include <sys/types.h>
31550 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
31551 # include <sys/time.h>
31553 #include <sys/select.h>
31564 rm -f conftest.$ac_objext
31565 if { (ac_try="$ac_compile"
31566 case "(($ac_try" in
31567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31568 *) ac_try_echo=$ac_try;;
31570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31571 $as_echo "$ac_try_echo") >&5
31572 (eval "$ac_compile") 2>conftest.er1
31574 grep -v '^ *+' conftest.er1 >conftest.err
31576 cat conftest.err >&5
31577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); } && {
31579 test -z "$ac_c_werror_flag" ||
31580 test ! -s conftest.err
31581 } && test -s conftest.$ac_objext; then
31582 eval "$as_gl_Symbol=yes"
31584 $as_echo "$as_me: failed program was:" >&5
31585 sed 's/^/| /' conftest.$ac_ext >&5
31587 eval "$as_gl_Symbol=no"
31590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31592 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31593 $as_echo "$as_val"'`
31594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31595 $as_echo "$ac_res" >&6; }
31596 as_val=`eval 'as_val=${'$as_gl_Symbol'}
31597 $as_echo "$as_val"'`
31598 if test "x$as_val" = x""yes; then
31599 cat >>confdefs.h <<_ACEOF
31600 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31603 eval ac_cv_have_decl_$gl_func=yes
31609 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31610 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31611 if test -z "$MKDIR_P"; then
31612 if test "${ac_cv_path_mkdir+set}" = set; then
31613 $as_echo_n "(cached) " >&6
31615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31616 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31619 test -z "$as_dir" && as_dir=.
31620 for ac_prog in mkdir gmkdir; do
31621 for ac_exec_ext in '' $ac_executable_extensions; do
31622 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31623 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31624 'mkdir (GNU coreutils) '* | \
31625 'mkdir (coreutils) '* | \
31626 'mkdir (fileutils) '4.1*)
31627 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31637 if test "${ac_cv_path_mkdir+set}" = set; then
31638 MKDIR_P="$ac_cv_path_mkdir -p"
31640 # As a last resort, use the slow shell script. Don't cache a
31641 # value for MKDIR_P within a source directory, because that will
31642 # break other packages using the cache if that directory is
31643 # removed, or if the value is a relative name.
31644 test -d ./--version && rmdir ./--version
31645 MKDIR_P="$ac_install_sh -d"
31648 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31649 $as_echo "$MKDIR_P" >&6; }
31652 # Code from module sys_stat:
31672 if test $gl_cv_have_include_next = yes; then
31673 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31675 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
31676 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
31677 if test "${gl_cv_next_sys_stat_h+set}" = set; then
31678 $as_echo_n "(cached) " >&6
31681 if test $ac_cv_header_sys_stat_h = yes; then
31682 cat >conftest.$ac_ext <<_ACEOF
31685 cat confdefs.h >>conftest.$ac_ext
31686 cat >>conftest.$ac_ext <<_ACEOF
31687 /* end confdefs.h. */
31688 #include <sys/stat.h>
31692 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31693 *) gl_absname_cpp="$ac_cpp" ;;
31695 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31696 sed -n '\#/sys/stat.h#{
31697 s#.*"\(.*/sys/stat.h\)".*#\1#
31703 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31707 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
31708 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
31710 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
31712 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31713 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31714 gl_next_as_first_directive='<'sys/stat.h'>'
31716 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31717 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
31719 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
31724 { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
31725 $as_echo_n "checking for nlink_t... " >&6; }
31726 if test "${ac_cv_type_nlink_t+set}" = set; then
31727 $as_echo_n "(cached) " >&6
31729 ac_cv_type_nlink_t=no
31730 cat >conftest.$ac_ext <<_ACEOF
31733 cat confdefs.h >>conftest.$ac_ext
31734 cat >>conftest.$ac_ext <<_ACEOF
31735 /* end confdefs.h. */
31736 #include <sys/types.h>
31737 #include <sys/stat.h>
31742 if (sizeof (nlink_t))
31748 rm -f conftest.$ac_objext
31749 if { (ac_try="$ac_compile"
31750 case "(($ac_try" in
31751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752 *) ac_try_echo=$ac_try;;
31754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31755 $as_echo "$ac_try_echo") >&5
31756 (eval "$ac_compile") 2>conftest.er1
31758 grep -v '^ *+' conftest.er1 >conftest.err
31760 cat conftest.err >&5
31761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); } && {
31763 test -z "$ac_c_werror_flag" ||
31764 test ! -s conftest.err
31765 } && test -s conftest.$ac_objext; then
31766 cat >conftest.$ac_ext <<_ACEOF
31769 cat confdefs.h >>conftest.$ac_ext
31770 cat >>conftest.$ac_ext <<_ACEOF
31771 /* end confdefs.h. */
31772 #include <sys/types.h>
31773 #include <sys/stat.h>
31778 if (sizeof ((nlink_t)))
31784 rm -f conftest.$ac_objext
31785 if { (ac_try="$ac_compile"
31786 case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31791 $as_echo "$ac_try_echo") >&5
31792 (eval "$ac_compile") 2>conftest.er1
31794 grep -v '^ *+' conftest.er1 >conftest.err
31796 cat conftest.err >&5
31797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); } && {
31799 test -z "$ac_c_werror_flag" ||
31800 test ! -s conftest.err
31801 } && test -s conftest.$ac_objext; then
31804 $as_echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31807 ac_cv_type_nlink_t=yes
31810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31812 $as_echo "$as_me: failed program was:" >&5
31813 sed 's/^/| /' conftest.$ac_ext >&5
31818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31820 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
31821 $as_echo "$ac_cv_type_nlink_t" >&6; }
31822 if test "x$ac_cv_type_nlink_t" = x""yes; then
31826 cat >>confdefs.h <<\_ACEOF
31827 #define nlink_t int
31846 for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
31847 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31848 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31849 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31850 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31851 $as_echo_n "(cached) " >&6
31853 cat >conftest.$ac_ext <<_ACEOF
31856 cat confdefs.h >>conftest.$ac_ext
31857 cat >>conftest.$ac_ext <<_ACEOF
31858 /* end confdefs.h. */
31859 #include <sys/stat.h>
31870 rm -f conftest.$ac_objext
31871 if { (ac_try="$ac_compile"
31872 case "(($ac_try" in
31873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31874 *) ac_try_echo=$ac_try;;
31876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31877 $as_echo "$ac_try_echo") >&5
31878 (eval "$ac_compile") 2>conftest.er1
31880 grep -v '^ *+' conftest.er1 >conftest.err
31882 cat conftest.err >&5
31883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); } && {
31885 test -z "$ac_c_werror_flag" ||
31886 test ! -s conftest.err
31887 } && test -s conftest.$ac_objext; then
31888 eval "$as_gl_Symbol=yes"
31890 $as_echo "$as_me: failed program was:" >&5
31891 sed 's/^/| /' conftest.$ac_ext >&5
31893 eval "$as_gl_Symbol=no"
31896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31898 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31899 $as_echo "$as_val"'`
31900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31901 $as_echo "$ac_res" >&6; }
31902 as_val=`eval 'as_val=${'$as_gl_Symbol'}
31903 $as_echo "$as_val"'`
31904 if test "x$as_val" = x""yes; then
31905 cat >>confdefs.h <<_ACEOF
31906 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31909 eval ac_cv_have_decl_$gl_func=yes
31915 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31916 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31917 if test -z "$MKDIR_P"; then
31918 if test "${ac_cv_path_mkdir+set}" = set; then
31919 $as_echo_n "(cached) " >&6
31921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31922 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31925 test -z "$as_dir" && as_dir=.
31926 for ac_prog in mkdir gmkdir; do
31927 for ac_exec_ext in '' $ac_executable_extensions; do
31928 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31929 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31930 'mkdir (GNU coreutils) '* | \
31931 'mkdir (coreutils) '* | \
31932 'mkdir (fileutils) '4.1*)
31933 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31943 if test "${ac_cv_path_mkdir+set}" = set; then
31944 MKDIR_P="$ac_cv_path_mkdir -p"
31946 # As a last resort, use the slow shell script. Don't cache a
31947 # value for MKDIR_P within a source directory, because that will
31948 # break other packages using the cache if that directory is
31949 # removed, or if the value is a relative name.
31950 test -d ./--version && rmdir ./--version
31951 MKDIR_P="$ac_install_sh -d"
31954 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31955 $as_echo "$MKDIR_P" >&6; }
31958 # Code from module sys_time:
31962 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31963 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31964 if test -z "$MKDIR_P"; then
31965 if test "${ac_cv_path_mkdir+set}" = set; then
31966 $as_echo_n "(cached) " >&6
31968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31969 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31972 test -z "$as_dir" && as_dir=.
31973 for ac_prog in mkdir gmkdir; do
31974 for ac_exec_ext in '' $ac_executable_extensions; do
31975 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31976 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31977 'mkdir (GNU coreutils) '* | \
31978 'mkdir (coreutils) '* | \
31979 'mkdir (fileutils) '4.1*)
31980 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31990 if test "${ac_cv_path_mkdir+set}" = set; then
31991 MKDIR_P="$ac_cv_path_mkdir -p"
31993 # As a last resort, use the slow shell script. Don't cache a
31994 # value for MKDIR_P within a source directory, because that will
31995 # break other packages using the cache if that directory is
31996 # removed, or if the value is a relative name.
31997 test -d ./--version && rmdir ./--version
31998 MKDIR_P="$ac_install_sh -d"
32001 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
32002 $as_echo "$MKDIR_P" >&6; }
32005 # Code from module tempname:
32017 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
32023 # Code from module threadlib:
32028 # Code from module time:
32032 # Code from module unistd:
32049 if test $gl_cv_have_include_next = yes; then
32050 gl_cv_next_unistd_h='<'unistd.h'>'
32052 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
32053 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
32054 if test "${gl_cv_next_unistd_h+set}" = set; then
32055 $as_echo_n "(cached) " >&6
32058 if test $ac_cv_header_unistd_h = yes; then
32059 cat >conftest.$ac_ext <<_ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h. */
32065 #include <unistd.h>
32069 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32070 *) gl_absname_cpp="$ac_cpp" ;;
32072 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32073 sed -n '\#/unistd.h#{
32074 s#.*"\(.*/unistd.h\)".*#\1#
32080 gl_cv_next_unistd_h='<'unistd.h'>'
32084 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
32085 $as_echo "$gl_cv_next_unistd_h" >&6; }
32087 NEXT_UNISTD_H=$gl_cv_next_unistd_h
32089 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32091 gl_next_as_first_directive='<'unistd.h'>'
32093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32094 gl_next_as_first_directive=$gl_cv_next_unistd_h
32096 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
32108 if test $ac_cv_header_unistd_h = yes; then
32154 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
32155 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32156 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32157 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32158 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32159 $as_echo_n "(cached) " >&6
32161 cat >conftest.$ac_ext <<_ACEOF
32164 cat confdefs.h >>conftest.$ac_ext
32165 cat >>conftest.$ac_ext <<_ACEOF
32166 /* end confdefs.h. */
32167 #include <unistd.h>
32168 /* Some systems declare various items in the wrong headers. */
32170 # include <fcntl.h>
32171 # include <stdio.h>
32172 # include <stdlib.h>
32173 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
32187 rm -f conftest.$ac_objext
32188 if { (ac_try="$ac_compile"
32189 case "(($ac_try" in
32190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191 *) ac_try_echo=$ac_try;;
32193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32194 $as_echo "$ac_try_echo") >&5
32195 (eval "$ac_compile") 2>conftest.er1
32197 grep -v '^ *+' conftest.er1 >conftest.err
32199 cat conftest.err >&5
32200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); } && {
32202 test -z "$ac_c_werror_flag" ||
32203 test ! -s conftest.err
32204 } && test -s conftest.$ac_objext; then
32205 eval "$as_gl_Symbol=yes"
32207 $as_echo "$as_me: failed program was:" >&5
32208 sed 's/^/| /' conftest.$ac_ext >&5
32210 eval "$as_gl_Symbol=no"
32213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32215 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
32216 $as_echo "$as_val"'`
32217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32218 $as_echo "$ac_res" >&6; }
32219 as_val=`eval 'as_val=${'$as_gl_Symbol'}
32220 $as_echo "$as_val"'`
32221 if test "x$as_val" = x""yes; then
32222 cat >>confdefs.h <<_ACEOF
32223 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32226 eval ac_cv_have_decl_$gl_func=yes
32232 # Code from module vasnprintf:
32241 if test $ac_cv_func_vasnprintf = no; then
32258 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
32268 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
32278 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
32288 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
32290 if test $ac_cv_func_vasnprintf = yes; then
32292 cat >>confdefs.h <<\_ACEOF
32293 #define REPLACE_VASNPRINTF 1
32307 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32308 $as_echo_n "checking for ptrdiff_t... " >&6; }
32309 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32310 $as_echo_n "(cached) " >&6
32312 ac_cv_type_ptrdiff_t=no
32313 cat >conftest.$ac_ext <<_ACEOF
32316 cat confdefs.h >>conftest.$ac_ext
32317 cat >>conftest.$ac_ext <<_ACEOF
32318 /* end confdefs.h. */
32319 $ac_includes_default
32323 if (sizeof (ptrdiff_t))
32329 rm -f conftest.$ac_objext
32330 if { (ac_try="$ac_compile"
32331 case "(($ac_try" in
32332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32333 *) ac_try_echo=$ac_try;;
32335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32336 $as_echo "$ac_try_echo") >&5
32337 (eval "$ac_compile") 2>conftest.er1
32339 grep -v '^ *+' conftest.er1 >conftest.err
32341 cat conftest.err >&5
32342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); } && {
32344 test -z "$ac_c_werror_flag" ||
32345 test ! -s conftest.err
32346 } && test -s conftest.$ac_objext; then
32347 cat >conftest.$ac_ext <<_ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h. */
32353 $ac_includes_default
32357 if (sizeof ((ptrdiff_t)))
32363 rm -f conftest.$ac_objext
32364 if { (ac_try="$ac_compile"
32365 case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32370 $as_echo "$ac_try_echo") >&5
32371 (eval "$ac_compile") 2>conftest.er1
32373 grep -v '^ *+' conftest.er1 >conftest.err
32375 cat conftest.err >&5
32376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); } && {
32378 test -z "$ac_c_werror_flag" ||
32379 test ! -s conftest.err
32380 } && test -s conftest.$ac_objext; then
32383 $as_echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.$ac_ext >&5
32386 ac_cv_type_ptrdiff_t=yes
32389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32391 $as_echo "$as_me: failed program was:" >&5
32392 sed 's/^/| /' conftest.$ac_ext >&5
32397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32399 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32400 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
32401 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
32405 cat >>confdefs.h <<\_ACEOF
32406 #define ptrdiff_t long
32420 # Code from module verify:
32421 # Code from module warn-on-use:
32422 # Code from module wchar:
32445 if test $gl_cv_have_include_next = yes; then
32446 gl_cv_next_wchar_h='<'wchar.h'>'
32448 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
32449 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
32450 if test "${gl_cv_next_wchar_h+set}" = set; then
32451 $as_echo_n "(cached) " >&6
32454 if test $ac_cv_header_wchar_h = yes; then
32455 cat >conftest.$ac_ext <<_ACEOF
32458 cat confdefs.h >>conftest.$ac_ext
32459 cat >>conftest.$ac_ext <<_ACEOF
32460 /* end confdefs.h. */
32465 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32466 *) gl_absname_cpp="$ac_cpp" ;;
32468 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32469 sed -n '\#/wchar.h#{
32470 s#.*"\(.*/wchar.h\)".*#\1#
32476 gl_cv_next_wchar_h='<'wchar.h'>'
32480 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
32481 $as_echo "$gl_cv_next_wchar_h" >&6; }
32483 NEXT_WCHAR_H=$gl_cv_next_wchar_h
32485 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32486 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32487 gl_next_as_first_directive='<'wchar.h'>'
32489 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32490 gl_next_as_first_directive=$gl_cv_next_wchar_h
32492 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
32496 if test $ac_cv_header_wchar_h = yes; then
32504 if test $gt_cv_c_wint_t = yes; then
32523 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
32524 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32525 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32526 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32527 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32528 $as_echo_n "(cached) " >&6
32530 cat >conftest.$ac_ext <<_ACEOF
32533 cat confdefs.h >>conftest.$ac_ext
32534 cat >>conftest.$ac_ext <<_ACEOF
32535 /* end confdefs.h. */
32537 /* Some systems require additional headers. */
32539 # include <stddef.h>
32540 # include <stdio.h>
32554 rm -f conftest.$ac_objext
32555 if { (ac_try="$ac_compile"
32556 case "(($ac_try" in
32557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558 *) ac_try_echo=$ac_try;;
32560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32561 $as_echo "$ac_try_echo") >&5
32562 (eval "$ac_compile") 2>conftest.er1
32564 grep -v '^ *+' conftest.er1 >conftest.err
32566 cat conftest.err >&5
32567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); } && {
32569 test -z "$ac_c_werror_flag" ||
32570 test ! -s conftest.err
32571 } && test -s conftest.$ac_objext; then
32572 eval "$as_gl_Symbol=yes"
32574 $as_echo "$as_me: failed program was:" >&5
32575 sed 's/^/| /' conftest.$ac_ext >&5
32577 eval "$as_gl_Symbol=no"
32580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32582 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
32583 $as_echo "$as_val"'`
32584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32585 $as_echo "$ac_res" >&6; }
32586 as_val=`eval 'as_val=${'$as_gl_Symbol'}
32587 $as_echo "$as_val"'`
32588 if test "x$as_val" = x""yes; then
32589 cat >>confdefs.h <<_ACEOF
32590 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32593 eval ac_cv_have_decl_$gl_func=yes
32599 # Code from module wcrtomb:
32622 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
32626 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
32627 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
32628 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
32629 $as_echo_n "(cached) " >&6
32633 # Guess no on AIX and OSF/1.
32634 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
32635 # Guess yes otherwise.
32636 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
32638 if test $LOCALE_JA != none; then
32639 if test "$cross_compiling" = yes; then
32642 cat >conftest.$ac_ext <<_ACEOF
32645 cat confdefs.h >>conftest.$ac_ext
32646 cat >>conftest.$ac_ext <<_ACEOF
32647 /* end confdefs.h. */
32649 #include <locale.h>
32650 #include <string.h>
32654 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32656 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
32660 memset (&state, '\0', sizeof (mbstate_t));
32661 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
32662 if (mbsinit (&state))
32668 rm -f conftest$ac_exeext
32669 if { (ac_try="$ac_link"
32670 case "(($ac_try" in
32671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672 *) ac_try_echo=$ac_try;;
32674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32675 $as_echo "$ac_try_echo") >&5
32676 (eval "$ac_link") 2>&5
32678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32680 { (case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32685 $as_echo "$ac_try_echo") >&5
32686 (eval "$ac_try") 2>&5
32688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689 (exit $ac_status); }; }; then
32690 gl_cv_func_mbrtowc_incomplete_state=yes
32692 $as_echo "$as_me: program exited with status $ac_status" >&5
32693 $as_echo "$as_me: failed program was:" >&5
32694 sed 's/^/| /' conftest.$ac_ext >&5
32696 ( exit $ac_status )
32697 gl_cv_func_mbrtowc_incomplete_state=no
32699 rm -rf conftest.dSYM
32700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32707 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
32708 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
32713 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
32714 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
32715 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
32716 $as_echo_n "(cached) " >&6
32720 # Guess no on Solaris 8.
32721 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
32722 # Guess yes otherwise.
32723 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
32725 if test $LOCALE_ZH_CN != none; then
32726 if test "$cross_compiling" = yes; then
32729 cat >conftest.$ac_ext <<_ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h. */
32736 #include <locale.h>
32737 #include <stdlib.h>
32738 #include <string.h>
32742 /* This fails on Solaris 8:
32743 mbrtowc returns 2, and sets wc to 0x00F0.
32744 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
32745 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32747 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
32751 memset (&state, '\0', sizeof (mbstate_t));
32752 if (mbrtowc (&wc, input + 3, 6, &state) != 4
32753 && mbtowc (&wc, input + 3, 6) == 4)
32759 rm -f conftest$ac_exeext
32760 if { (ac_try="$ac_link"
32761 case "(($ac_try" in
32762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763 *) ac_try_echo=$ac_try;;
32765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32766 $as_echo "$ac_try_echo") >&5
32767 (eval "$ac_link") 2>&5
32769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32771 { (case "(($ac_try" in
32772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773 *) ac_try_echo=$ac_try;;
32775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32776 $as_echo "$ac_try_echo") >&5
32777 (eval "$ac_try") 2>&5
32779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32781 gl_cv_func_mbrtowc_sanitycheck=yes
32783 $as_echo "$as_me: program exited with status $ac_status" >&5
32784 $as_echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32787 ( exit $ac_status )
32788 gl_cv_func_mbrtowc_sanitycheck=no
32790 rm -rf conftest.dSYM
32791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32798 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
32799 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
32801 REPLACE_MBSTATE_T=0
32802 case "$gl_cv_func_mbrtowc_incomplete_state" in
32804 *) REPLACE_MBSTATE_T=1 ;;
32806 case "$gl_cv_func_mbrtowc_sanitycheck" in
32808 *) REPLACE_MBSTATE_T=1 ;;
32811 REPLACE_MBSTATE_T=1
32813 if test $REPLACE_MBSTATE_T = 1; then
32827 if test $ac_cv_func_wcrtomb = no; then
32830 if test $REPLACE_MBSTATE_T = 1; then
32838 { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
32839 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
32840 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
32841 $as_echo_n "(cached) " >&6
32845 # Guess no on AIX 4, OSF/1 and Solaris.
32846 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
32847 # Guess yes otherwise.
32848 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
32850 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
32851 if test "$cross_compiling" = yes; then
32854 cat >conftest.$ac_ext <<_ACEOF
32857 cat confdefs.h >>conftest.$ac_ext
32858 cat >>conftest.$ac_ext <<_ACEOF
32859 /* end confdefs.h. */
32861 #include <locale.h>
32863 #include <string.h>
32867 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
32869 if (wcrtomb (NULL, 0, NULL) != 1)
32872 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
32874 if (wcrtomb (NULL, 0, NULL) != 1)
32877 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32879 if (wcrtomb (NULL, 0, NULL) != 1)
32882 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32884 if (wcrtomb (NULL, 0, NULL) != 1)
32890 rm -f conftest$ac_exeext
32891 if { (ac_try="$ac_link"
32892 case "(($ac_try" in
32893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32894 *) ac_try_echo=$ac_try;;
32896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32897 $as_echo "$ac_try_echo") >&5
32898 (eval "$ac_link") 2>&5
32900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32902 { (case "(($ac_try" in
32903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904 *) ac_try_echo=$ac_try;;
32906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32907 $as_echo "$ac_try_echo") >&5
32908 (eval "$ac_try") 2>&5
32910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911 (exit $ac_status); }; }; then
32912 gl_cv_func_wcrtomb_retval=yes
32914 $as_echo "$as_me: program exited with status $ac_status" >&5
32915 $as_echo "$as_me: failed program was:" >&5
32916 sed 's/^/| /' conftest.$ac_ext >&5
32918 ( exit $ac_status )
32919 gl_cv_func_wcrtomb_retval=no
32921 rm -rf conftest.dSYM
32922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32929 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
32930 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
32931 case "$gl_cv_func_wcrtomb_retval" in
32933 *) REPLACE_WCRTOMB=1 ;;
32937 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
32949 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
32963 cat >>confdefs.h <<\_ACEOF
32964 #define GNULIB_TEST_WCRTOMB 1
32969 # Code from module wctype:
32980 if test $ac_cv_func_iswcntrl = yes; then
33000 if test $ac_cv_func_iswblank = yes; then
33005 if test $ac_cv_have_decl_iswblank = yes; then
33024 if test $gt_cv_c_wint_t = yes; then
33031 if test $ac_cv_header_wctype_h = yes; then
33032 if test $ac_cv_func_iswcntrl = yes; then
33033 { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
33034 $as_echo_n "checking whether iswcntrl works... " >&6; }
33035 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
33036 $as_echo_n "(cached) " >&6
33039 if test "$cross_compiling" = yes; then
33040 cat >conftest.$ac_ext <<_ACEOF
33043 cat confdefs.h >>conftest.$ac_ext
33044 cat >>conftest.$ac_ext <<_ACEOF
33045 /* end confdefs.h. */
33046 #include <stdlib.h>
33047 #if __GNU_LIBRARY__ == 1
33048 Linux libc5 i18n is broken.
33058 rm -f conftest.$ac_objext
33059 if { (ac_try="$ac_compile"
33060 case "(($ac_try" in
33061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33062 *) ac_try_echo=$ac_try;;
33064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33065 $as_echo "$ac_try_echo") >&5
33066 (eval "$ac_compile") 2>conftest.er1
33068 grep -v '^ *+' conftest.er1 >conftest.err
33070 cat conftest.err >&5
33071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); } && {
33073 test -z "$ac_c_werror_flag" ||
33074 test ! -s conftest.err
33075 } && test -s conftest.$ac_objext; then
33076 gl_cv_func_iswcntrl_works=yes
33078 $as_echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33081 gl_cv_func_iswcntrl_works=no
33084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33087 cat >conftest.$ac_ext <<_ACEOF
33090 cat confdefs.h >>conftest.$ac_ext
33091 cat >>conftest.$ac_ext <<_ACEOF
33092 /* end confdefs.h. */
33094 #include <stddef.h>
33098 #include <wctype.h>
33099 int main () { return iswprint ('x') == 0; }
33101 rm -f conftest$ac_exeext
33102 if { (ac_try="$ac_link"
33103 case "(($ac_try" in
33104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105 *) ac_try_echo=$ac_try;;
33107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33108 $as_echo "$ac_try_echo") >&5
33109 (eval "$ac_link") 2>&5
33111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33113 { (case "(($ac_try" in
33114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33115 *) ac_try_echo=$ac_try;;
33117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33118 $as_echo "$ac_try_echo") >&5
33119 (eval "$ac_try") 2>&5
33121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; }; then
33123 gl_cv_func_iswcntrl_works=yes
33125 $as_echo "$as_me: program exited with status $ac_status" >&5
33126 $as_echo "$as_me: failed program was:" >&5
33127 sed 's/^/| /' conftest.$ac_ext >&5
33129 ( exit $ac_status )
33130 gl_cv_func_iswcntrl_works=no
33132 rm -rf conftest.dSYM
33133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33139 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
33140 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
33154 if test $gl_cv_have_include_next = yes; then
33155 gl_cv_next_wctype_h='<'wctype.h'>'
33157 { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
33158 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
33159 if test "${gl_cv_next_wctype_h+set}" = set; then
33160 $as_echo_n "(cached) " >&6
33163 if test $ac_cv_header_wctype_h = yes; then
33164 cat >conftest.$ac_ext <<_ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h. */
33170 #include <wctype.h>
33174 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33175 *) gl_absname_cpp="$ac_cpp" ;;
33177 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33178 sed -n '\#/wctype.h#{
33179 s#.*"\(.*/wctype.h\)".*#\1#
33185 gl_cv_next_wctype_h='<'wctype.h'>'
33189 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
33190 $as_echo "$gl_cv_next_wctype_h" >&6; }
33192 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
33194 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33196 gl_next_as_first_directive='<'wctype.h'>'
33198 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33199 gl_next_as_first_directive=$gl_cv_next_wctype_h
33201 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
33211 if test "$gl_cv_func_iswcntrl_works" = no; then
33218 # Code from module write:
33230 cat >>confdefs.h <<\_ACEOF
33231 #define GNULIB_TEST_WRITE 1
33236 # Code from module xsize:
33241 for ac_header in stdint.h
33243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33246 $as_echo_n "checking for $ac_header... " >&6; }
33247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33248 $as_echo_n "(cached) " >&6
33250 ac_res=`eval 'as_val=${'$as_ac_Header'}
33251 $as_echo "$as_val"'`
33252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33253 $as_echo "$ac_res" >&6; }
33255 # Is the header compilable?
33256 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33257 $as_echo_n "checking $ac_header usability... " >&6; }
33258 cat >conftest.$ac_ext <<_ACEOF
33261 cat confdefs.h >>conftest.$ac_ext
33262 cat >>conftest.$ac_ext <<_ACEOF
33263 /* end confdefs.h. */
33264 $ac_includes_default
33265 #include <$ac_header>
33267 rm -f conftest.$ac_objext
33268 if { (ac_try="$ac_compile"
33269 case "(($ac_try" in
33270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271 *) ac_try_echo=$ac_try;;
33273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33274 $as_echo "$ac_try_echo") >&5
33275 (eval "$ac_compile") 2>conftest.er1
33277 grep -v '^ *+' conftest.er1 >conftest.err
33279 cat conftest.err >&5
33280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281 (exit $ac_status); } && {
33282 test -z "$ac_c_werror_flag" ||
33283 test ! -s conftest.err
33284 } && test -s conftest.$ac_objext; then
33285 ac_header_compiler=yes
33287 $as_echo "$as_me: failed program was:" >&5
33288 sed 's/^/| /' conftest.$ac_ext >&5
33290 ac_header_compiler=no
33293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33294 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33295 $as_echo "$ac_header_compiler" >&6; }
33297 # Is the header present?
33298 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33299 $as_echo_n "checking $ac_header presence... " >&6; }
33300 cat >conftest.$ac_ext <<_ACEOF
33303 cat confdefs.h >>conftest.$ac_ext
33304 cat >>conftest.$ac_ext <<_ACEOF
33305 /* end confdefs.h. */
33306 #include <$ac_header>
33308 if { (ac_try="$ac_cpp conftest.$ac_ext"
33309 case "(($ac_try" in
33310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33311 *) ac_try_echo=$ac_try;;
33313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33314 $as_echo "$ac_try_echo") >&5
33315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33317 grep -v '^ *+' conftest.er1 >conftest.err
33319 cat conftest.err >&5
33320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); } >/dev/null && {
33322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33323 test ! -s conftest.err
33325 ac_header_preproc=yes
33327 $as_echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33330 ac_header_preproc=no
33333 rm -f conftest.err conftest.$ac_ext
33334 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33335 $as_echo "$ac_header_preproc" >&6; }
33337 # So? What about this header?
33338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33341 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33343 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33344 ac_header_preproc=yes
33347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33348 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33350 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33352 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33354 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33358 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33363 $as_echo_n "checking for $ac_header... " >&6; }
33364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33365 $as_echo_n "(cached) " >&6
33367 eval "$as_ac_Header=\$ac_header_preproc"
33369 ac_res=`eval 'as_val=${'$as_ac_Header'}
33370 $as_echo "$as_val"'`
33371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33372 $as_echo "$ac_res" >&6; }
33375 as_val=`eval 'as_val=${'$as_ac_Header'}
33376 $as_echo "$as_val"'`
33377 if test "x$as_val" = x""yes; then
33378 cat >>confdefs.h <<_ACEOF
33379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33387 # End of code from modules
33408 gl_source_base='tests'
33409 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
33411 gl_module_indicator_condition=$gltests_WITNESS
33425 # support deprecated ./configure flags to set various compiler flags
33428 # Check whether --with-cflags was given.
33429 if test "${with_cflags+set}" = set; then
33430 withval=$with_cflags;
33432 "" | y | ye | yes | n | no)
33433 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
33434 $as_echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
33435 { (exit 1); exit 1; }; }
33445 # Check whether --with-includes was given.
33446 if test "${with_includes+set}" = set; then
33447 withval=$with_includes;
33449 "" | y | ye | yes | n | no)
33450 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
33451 $as_echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
33452 { (exit 1); exit 1; }; }
33456 for dir in $withval; do
33457 if test -d "$dir"; then
33458 CPPFLAGS="$CPPFLAGS -I$dir"
33461 { $as_echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
33462 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
33465 cat <<AAW_EOF >>config.warnings
33466 Include directory $dir does not exist.
33477 # Check whether --with-libraries was given.
33478 if test "${with_libraries+set}" = set; then
33479 withval=$with_libraries;
33481 "" | y | ye | yes | n | no)
33482 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
33483 $as_echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
33484 { (exit 1); exit 1; }; }
33488 for dir in $withval; do
33489 if test -d "$dir"; then
33491 *-solaris2*,*-netbsd*)
33492 LDFLAGS="$LDFLAGS -R$dir"
33495 LDFLAGS="$LDFLAGS -L$dir"
33498 { $as_echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
33499 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
33502 cat <<AAW_EOF >>config.warnings
33503 Library directory $dir does not exist.
33513 # Disable strict-aliasing optimizations
33515 # test for -W'feature', then add the 'no-' version.
33519 { $as_echo "$as_me:$LINENO: checking for gcc flag -fstrict-aliasing" >&5
33520 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
33521 if test "x$GCC" = "xyes"; then
33522 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33523 $CC -v --help 2>&1) |
33524 $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
33525 if test $? -eq 0; then
33527 { $as_echo "$as_me:$LINENO: result: yes" >&5
33528 $as_echo "yes" >&6; }
33531 { $as_echo "$as_me:$LINENO: result: no" >&5
33532 $as_echo "no" >&6; }
33536 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33537 $as_echo "no (not using gcc)" >&6; }
33540 if test x"$found_warning" = x"yes"; then
33541 CFLAGS="$CFLAGS -fno-strict-aliasing"
33543 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
33552 # Warn for just about everything
33557 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
33558 $as_echo_n "checking for gcc flag -Wall... " >&6; }
33559 if test "x$GCC" = "xyes"; then
33560 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33561 $CC -v --help 2>&1) |
33562 $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
33563 if test $? -eq 0; then
33565 { $as_echo "$as_me:$LINENO: result: yes" >&5
33566 $as_echo "yes" >&6; }
33569 { $as_echo "$as_me:$LINENO: result: no" >&5
33570 $as_echo "no" >&6; }
33574 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33575 $as_echo "no (not using gcc)" >&6; }
33578 if test x"$found_warning" = x"yes"; then
33579 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
33588 # And add any extra warnings too
33592 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
33593 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
33594 if test "x$GCC" = "xyes"; then
33595 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33596 $CC -v --help 2>&1) |
33597 $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
33598 if test $? -eq 0; then
33600 { $as_echo "$as_me:$LINENO: result: yes" >&5
33601 $as_echo "yes" >&6; }
33604 { $as_echo "$as_me:$LINENO: result: no" >&5
33605 $as_echo "no" >&6; }
33609 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33610 $as_echo "no (not using gcc)" >&6; }
33613 if test x"$found_warning" = x"yes"; then
33614 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
33621 { $as_echo "$as_me:$LINENO: checking for gcc flag -W" >&5
33622 $as_echo_n "checking for gcc flag -W... " >&6; }
33623 if test "x$GCC" = "xyes"; then
33624 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33625 $CC -v --help 2>&1) |
33626 $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
33627 if test $? -eq 0; then
33629 { $as_echo "$as_me:$LINENO: result: yes" >&5
33630 $as_echo "yes" >&6; }
33633 { $as_echo "$as_me:$LINENO: result: no" >&5
33634 $as_echo "no" >&6; }
33638 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33639 $as_echo "no (not using gcc)" >&6; }
33642 if test x"$found_warning" = x"yes"; then
33643 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
33655 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
33660 # Configuration flags (--with-xxx and --enable-xxx)
33665 # Check whether --with-user was given.
33666 if test "${with_user+set}" = set; then
33667 withval=$with_user;
33669 "" | y | ye | yes | n | no)
33670 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
33671 $as_echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
33672 { (exit 1); exit 1; }; }
33675 CLIENT_LOGIN="$withval"
33682 { $as_echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
33683 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
33686 cat <<AAW_EOF >>config.warnings
33687 no user specified (--with-user) -- using 'amanda'
33691 CLIENT_LOGIN=amanda
33698 cat >>confdefs.h <<_ACEOF
33699 #define CLIENT_LOGIN "$CLIENT_LOGIN"
33706 # Check whether --with-group was given.
33707 if test "${with_group+set}" = set; then
33708 withval=$with_group;
33710 "" | y | ye | yes | n | no)
33711 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
33712 $as_echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
33713 { (exit 1); exit 1; }; }
33715 *) SETUID_GROUP="$withval"
33722 { $as_echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
33723 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
33726 cat <<AAW_EOF >>config.warnings
33727 no group specified (--with-group) -- using 'backup'
33731 SETUID_GROUP=backup
33740 # Check whether --with-dumperdir was given.
33741 if test "${with_dumperdir+set}" = set; then
33742 withval=$with_dumperdir;
33744 { $as_echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
33745 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
33748 cat <<AAW_EOF >>config.warnings
33749 --with-dumperdir is no longer used.
33760 # Check whether --with-configdir was given.
33761 if test "${with_configdir+set}" = set; then
33762 withval=$with_configdir;
33764 "" | y | ye | yes | n | no)
33765 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
33766 $as_echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
33767 { (exit 1); exit 1; }; }
33769 *) CONFIG_DIR="$withval"
33775 : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
33783 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33784 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33785 eval ac_define_dir="\"$CONFIG_DIR\""
33786 eval ac_define_dir="\"$ac_define_dir\""
33787 CONFIG_DIR="$ac_define_dir"
33790 cat >>confdefs.h <<_ACEOF
33791 #define CONFIG_DIR "$ac_define_dir"
33794 test "$prefix_NONE" && prefix=NONE
33795 test "$exec_prefix_NONE" && exec_prefix=NONE
33800 # Check whether --with-indexdir was given.
33801 if test "${with_indexdir+set}" = set; then
33802 withval=$with_indexdir; { { $as_echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
33803 $as_echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
33804 { (exit 1); exit 1; }; }
33811 # Check whether --with-dbdir was given.
33812 if test "${with_dbdir+set}" = set; then
33813 withval=$with_dbdir; { { $as_echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
33814 $as_echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
33815 { (exit 1); exit 1; }; }
33822 # Check whether --with-logdir was given.
33823 if test "${with_logdir+set}" = set; then
33824 withval=$with_logdir; { { $as_echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
33825 $as_echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
33826 { (exit 1); exit 1; }; }
33833 # Check whether --with-suffixes was given.
33834 if test "${with_suffixes+set}" = set; then
33835 withval=$with_suffixes;
33837 { $as_echo "$as_me:$LINENO: WARNING: ** --with-suffixes is deprecated" >&5
33838 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
33841 cat <<AAW_EOF >>config.warnings
33842 ** --with-suffixes is deprecated
33852 # Check whether --with-gnutar-listdir was given.
33853 if test "${with_gnutar_listdir+set}" = set; then
33854 withval=$with_gnutar_listdir;
33856 n | no) GNUTAR_LISTDIR= ;;
33857 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
33858 *) GNUTAR_LISTDIR="$withval" ;;
33863 GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
33869 # substitute $prefix, etc. if necessary
33873 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33874 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33875 eval ac_define_dir="\"$GNUTAR_LISTDIR\""
33876 eval ac_define_dir="\"$ac_define_dir\""
33877 GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
33880 cat >>confdefs.h <<_ACEOF
33881 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
33884 test "$prefix_NONE" && prefix=NONE
33885 test "$exec_prefix_NONE" && exec_prefix=NONE
33888 # handle deprecated option
33890 # Check whether --with-gnutar-listed-incremental was given.
33891 if test "${with_gnutar_listed_incremental+set}" = set; then
33892 withval=$with_gnutar_listed_incremental;
33893 { { $as_echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
33894 $as_echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
33895 { (exit 1); exit 1; }; }
33903 # Check whether --with-tmpdir was given.
33904 if test "${with_tmpdir+set}" = set; then
33905 withval=$with_tmpdir;
33917 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
33918 $as_echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
33919 { (exit 1); exit 1; }; };;
33920 y | ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
33921 *) AMANDA_TMPDIR="$tmpdir";;
33927 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33928 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33929 eval ac_define_dir="\"$AMANDA_TMPDIR\""
33930 eval ac_define_dir="\"$ac_define_dir\""
33931 AMANDA_TMPDIR="$ac_define_dir"
33934 cat >>confdefs.h <<_ACEOF
33935 #define AMANDA_TMPDIR "$ac_define_dir"
33938 test "$prefix_NONE" && prefix=NONE
33939 test "$exec_prefix_NONE" && exec_prefix=NONE
33944 # Check whether --with-force-uid was given.
33945 if test "${with_force_uid+set}" = set; then
33946 withval=$with_force_uid; CHECK_USERID="$withval"
33948 : ${CHECK_USERID=yes}
33952 case "$CHECK_USERID" in
33956 cat >>confdefs.h <<\_ACEOF
33957 #define CHECK_USERID 1
33965 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
33966 $as_echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
33967 { (exit 1); exit 1; }; }
33970 if test x"$CHECK_USERID" = x"1"; then
33972 CHECK_USERID_FALSE='#'
33974 CHECK_USERID_TRUE='#'
33975 CHECK_USERID_FALSE=
33982 # Check whether --with-owner was given.
33983 if test "${with_owner+set}" = set; then
33984 withval=$with_owner;
33986 "" | y | ye | yes | n | no)
33987 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
33988 $as_echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
33989 { (exit 1); exit 1; }; }
33991 *) BINARY_OWNER="$withval"
33997 BINARY_OWNER="$CLIENT_LOGIN"
34003 cat >>confdefs.h <<_ACEOF
34004 #define BINARY_OWNER "$BINARY_OWNER"
34011 # Check whether --with-fqdn was given.
34012 if test "${with_fqdn+set}" = set; then
34013 withval=$with_fqdn; USE_FQDN=$withval
34019 case "$USE_FQDN" in
34023 cat >>confdefs.h <<\_ACEOF
34028 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
34029 $as_echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
34030 { (exit 1); exit 1; }; }
34036 # Check whether --with-reuseports was given.
34037 if test "${with_reuseports+set}" = set; then
34038 withval=$with_reuseports; case "$withval" in
34039 y | ye | yes) USE_REUSEADDR=no;;
34040 n | no) USE_REUSEADDR=yes;;
34041 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
34042 $as_echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
34043 { (exit 1); exit 1; }; };;
34050 if test x"$USE_REUSEADDR" = x"yes"; then
34052 cat >>confdefs.h <<\_ACEOF
34053 #define USE_REUSEADDR 1
34060 # Check whether --with-low-tcpportrange was given.
34061 if test "${with_low_tcpportrange+set}" = set; then
34062 withval=$with_low_tcpportrange; LOW_TCPPORTRANGE="$withval"
34064 LOW_TCPPORTRANGE=unlimited
34068 if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
34069 if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34070 { { $as_echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
34071 $as_echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
34072 { (exit 1); exit 1; }; }
34074 min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
34075 max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
34076 if test $min_low_tcp_port -gt $max_low_tcp_port; then
34077 { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
34078 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
34079 { (exit 1); exit 1; }; }
34081 if test $min_low_tcp_port -lt 512; then
34083 { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
34084 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
34087 cat <<AAW_EOF >>config.warnings
34088 the low TCP port range should be 512 or greater in --with-low-tcpportrange
34093 if test $max_low_tcp_port -ge 1024; then
34095 { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
34096 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
34099 cat <<AAW_EOF >>config.warnings
34100 the low TCP port range should be less than 1024 in --with-low-tcpportrange
34106 cat >>confdefs.h <<_ACEOF
34107 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
34113 # Check whether --with-tcpportrange was given.
34114 if test "${with_tcpportrange+set}" = set; then
34115 withval=$with_tcpportrange; TCPPORTRANGE="$withval"
34117 TCPPORTRANGE="unlimited"
34121 if test x"$TCPPORTRANGE" != x"unlimited"; then
34122 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34123 { { $as_echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
34124 $as_echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
34125 { (exit 1); exit 1; }; }
34127 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
34128 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
34129 if test $min_tcp_port -gt $max_tcp_port; then
34130 { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
34131 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
34132 { (exit 1); exit 1; }; }
34134 if test $min_tcp_port -lt 1024; then
34136 { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
34137 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
34140 cat <<AAW_EOF >>config.warnings
34141 the TCP port range should be 1024 or greater in --with-tcpportrange
34146 if test $max_tcp_port -ge 65536; then
34148 { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
34149 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
34152 cat <<AAW_EOF >>config.warnings
34153 the TCP port range should be less than 65536 in --with-tcpportrange
34159 cat >>confdefs.h <<_ACEOF
34160 #define TCPPORTRANGE $TCPPORTRANGE
34166 # Check whether --with-udpportrange was given.
34167 if test "${with_udpportrange+set}" = set; then
34168 withval=$with_udpportrange; UDPPORTRANGE="$withval"
34170 UDPPORTRANGE="unlimited"
34173 if test x"$UDPPORTRANGE" != x"unlimited"; then
34174 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34175 { { $as_echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
34176 $as_echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
34177 { (exit 1); exit 1; }; }
34179 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
34180 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
34181 if test $min_udp_port -gt $max_udp_port; then
34182 { { $as_echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
34183 $as_echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
34184 { (exit 1); exit 1; }; }
34186 if test $max_udp_port -ge 1024; then
34188 { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
34189 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
34192 cat <<AAW_EOF >>config.warnings
34193 the UDP port range should be less than 1025 in --with-udpportrange
34198 if test $min_udp_port -le 0; then
34200 { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
34201 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
34204 cat <<AAW_EOF >>config.warnings
34205 the UDP port range should be greater than 0 in --with-udpportrange
34211 cat >>confdefs.h <<_ACEOF
34212 #define UDPPORTRANGE $UDPPORTRANGE
34222 # Check whether --with-buffered-dump was given.
34223 if test "${with_buffered_dump+set}" = set; then
34224 withval=$with_buffered_dump; DUMPER_SOCKET_BUFFERING=$withval
34226 DUMPER_SOCKET_BUFFERING=no
34229 case "$DUMPER_SOCKET_BUFFERING" in
34233 cat >>confdefs.h <<\_ACEOF
34234 #define DUMPER_SOCKET_BUFFERING 1
34238 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
34239 $as_echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
34240 { (exit 1); exit 1; }; } ;;
34245 # Check whether --with-maxtapeblocksize was given.
34246 if test "${with_maxtapeblocksize+set}" = set; then
34247 withval=$with_maxtapeblocksize;
34248 { $as_echo "$as_me:$LINENO: WARNING: --with-maxtapeblocksize is no longer needed" >&5
34249 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
34252 cat <<AAW_EOF >>config.warnings
34253 --with-maxtapeblocksize is no longer needed
34264 # Check whether --with-assertions was given.
34265 if test "${with_assertions+set}" = set; then
34266 withval=$with_assertions;
34272 cat >>confdefs.h <<\_ACEOF
34273 #define ASSERTIONS 1
34277 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
34278 $as_echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
34279 { (exit 1); exit 1; }; }
34291 # Check whether --with-debugging was given.
34292 if test "${with_debugging+set}" = set; then
34293 withval=$with_debugging; debugging="$withval"
34300 case "$debugging" in
34301 n | no) { { $as_echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
34302 $as_echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
34303 { (exit 1); exit 1; }; };;
34304 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
34305 *) AMANDA_DBGDIR="$debugging";;
34308 # evaluate any extra variables in the directory
34312 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34313 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34314 eval ac_define_dir="\"$AMANDA_DBGDIR\""
34315 eval ac_define_dir="\"$ac_define_dir\""
34316 AMANDA_DBGDIR="$ac_define_dir"
34319 cat >>confdefs.h <<_ACEOF
34320 #define AMANDA_DBGDIR "$ac_define_dir"
34323 test "$prefix_NONE" && prefix=NONE
34324 test "$exec_prefix_NONE" && exec_prefix=NONE
34329 # Check whether --with-debug_days was given.
34330 if test "${with_debug_days+set}" = set; then
34331 withval=$with_debug_days;
34332 debug_days="$withval"
34341 case "$debug_days" in
34343 AMANDA_DEBUG_DAYS=0 ;;
34345 AMANDA_DEBUG_DAYS=4 ;;
34346 [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
34347 AMANDA_DEBUG_DAYS="$debug_days" ;;
34348 *) { { $as_echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
34349 $as_echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
34350 { (exit 1); exit 1; }; }
34354 cat >>confdefs.h <<_ACEOF
34355 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
34362 # Check whether --with-testing was given.
34363 if test "${with_testing+set}" = set; then
34364 withval=$with_testing;
34375 n | no) SERVICE_SUFFIX="";;
34376 y | ye | yes) SERVICE_SUFFIX="-test";;
34377 *) SERVICE_SUFFIX="-$TESTING";;
34380 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
34381 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
34385 cat >>confdefs.h <<_ACEOF
34386 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
34390 cat >>confdefs.h <<_ACEOF
34391 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
34395 cat >>confdefs.h <<_ACEOF
34396 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
34401 SINGLE_USERID=${SINGLE_USERID:-no}
34402 WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
34405 # Check whether --with-single-userid was given.
34406 if test "${with_single_userid+set}" = set; then
34407 withval=$with_single_userid; SINGLE_USERID=$withval
34413 WANT_SETUID_CLIENT=false
34418 if test x"$WANT_SETUID_CLIENT" = x"true"; then
34420 cat >>confdefs.h <<\_ACEOF
34421 #define WANT_SETUID_CLIENT 1
34425 if test x"$WANT_SETUID_CLIENT" = x"true"; then
34426 WANT_SETUID_CLIENT_TRUE=
34427 WANT_SETUID_CLIENT_FALSE='#'
34429 WANT_SETUID_CLIENT_TRUE='#'
34430 WANT_SETUID_CLIENT_FALSE=
34434 if test x"$SINGLE_USERID" = x"yes"; then
34436 cat >>confdefs.h <<\_ACEOF
34437 #define SINGLE_USERID 1
34443 WANT_INSTALLPERMS=yes
34444 # Check whether --enable-installperms was given.
34445 if test "${enable_installperms+set}" = set; then
34446 enableval=$enable_installperms; WANT_INSTALLPERMS="$enableval"
34448 WANT_INSTALLPERMS="yes"
34452 if test x"$WANT_INSTALLPERMS" = x"yes"; then
34453 WANT_INSTALLPERMS_TRUE=
34454 WANT_INSTALLPERMS_FALSE='#'
34456 WANT_INSTALLPERMS_TRUE='#'
34457 WANT_INSTALLPERMS_FALSE=
34462 # Check whether --enable-syntax-checks was given.
34463 if test "${enable_syntax_checks+set}" = set; then
34464 enableval=$enable_syntax_checks;
34465 case "$enableval" in
34466 no) SYNTAX_CHECKS=false;;
34470 { $as_echo "$as_me:$LINENO: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
34471 $as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
34474 cat <<AAW_EOF >>config.warnings
34475 --enable-syntax-checks can cause build failures and should only be used by developers
34484 SYNTAX_CHECKS=false
34489 if $SYNTAX_CHECKS; then
34490 SYNTAX_CHECKS_TRUE=
34491 SYNTAX_CHECKS_FALSE='#'
34493 SYNTAX_CHECKS_TRUE='#'
34494 SYNTAX_CHECKS_FALSE=
34501 # Set up for Amanda components and modules
34506 # Check whether --with-server was given.
34507 if test "${with_server+set}" = set; then
34508 withval=$with_server;
34510 y | ye | yes) WANT_SERVER=true;;
34511 n | no) WANT_SERVER=false;;
34512 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
34513 $as_echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
34514 { (exit 1); exit 1; }; } ;;
34523 # Check whether --with-client was given.
34524 if test "${with_client+set}" = set; then
34525 withval=$with_client;
34527 y | ye | yes) WANT_CLIENT=true;;
34528 n | no) WANT_CLIENT=false;;
34529 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
34530 $as_echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
34531 { (exit 1); exit 1; }; } ;;
34539 WANT_RESTORE=${WANT_SERVER-true}
34541 # Check whether --with-restore was given.
34542 if test "${with_restore+set}" = set; then
34543 withval=$with_restore;
34545 y | ye | yes) WANT_RESTORE=true;;
34546 n | no) WANT_RESTORE=false;;
34547 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
34548 $as_echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
34549 { (exit 1); exit 1; }; } ;;
34557 WANT_RECOVER=${WANT_CLIENT-true}
34559 # Check whether --with-amrecover was given.
34560 if test "${with_amrecover+set}" = set; then
34561 withval=$with_amrecover;
34563 y | ye | yes) WANT_RECOVER=true;;
34564 n | no) WANT_RECOVER=false;;
34565 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
34566 $as_echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
34567 { (exit 1); exit 1; }; } ;;
34575 # Check whether --with-client-only was given.
34576 if test "${with_client_only+set}" = set; then
34577 withval=$with_client_only; { { $as_echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
34578 $as_echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
34579 { (exit 1); exit 1; }; }
34586 # Check whether --with-server-only was given.
34587 if test "${with_server_only+set}" = set; then
34588 withval=$with_server_only; { { $as_echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
34589 $as_echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
34590 { (exit 1); exit 1; }; }
34596 WANT_NDMP=${WANT_NDMP-true}
34598 # Check whether --with-ndmp was given.
34599 if test "${with_ndmp+set}" = set; then
34600 withval=$with_ndmp;
34602 y | ye | yes) WANT_NDMP=true;;
34603 n | no) WANT_NDMP=false;;
34604 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-ndmp option." >&5
34605 $as_echo "$as_me: error: You must not supply an argument to --with-ndmp option." >&2;}
34606 { (exit 1); exit 1; }; } ;;
34619 # detect invalid combinations of components
34620 if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
34621 { { $as_echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
34622 $as_echo "$as_me: error: --without-server requires --without-restore" >&2;}
34623 { (exit 1); exit 1; }; }
34625 if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
34626 { { $as_echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
34627 $as_echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
34628 { (exit 1); exit 1; }; }
34631 if $WANT_CLIENT; then
34633 WANT_CLIENT_FALSE='#'
34635 WANT_CLIENT_TRUE='#'
34639 if $WANT_RESTORE; then
34641 WANT_RESTORE_FALSE='#'
34643 WANT_RESTORE_TRUE='#'
34644 WANT_RESTORE_FALSE=
34647 if $WANT_SERVER; then
34649 WANT_SERVER_FALSE='#'
34651 WANT_SERVER_TRUE='#'
34655 if $WANT_RECOVER; then
34657 WANT_RECOVER_FALSE='#'
34659 WANT_RECOVER_TRUE='#'
34660 WANT_RECOVER_FALSE=
34663 if $WANT_NDMP; then
34665 WANT_NDMP_FALSE='#'
34672 if $WANT_SERVER || $WANT_RESTORE; then
34674 WANT_TAPE_FALSE='#'
34681 # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
34683 AMANDA_COMPONENTS=''
34684 missing_components=''
34686 if $WANT_SERVER; then
34687 AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
34689 missing_components="$missing_components (no server)";
34691 if $WANT_RESTORE; then
34692 AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
34694 missing_components="$missing_components (no restore)";
34696 if $WANT_CLIENT; then
34697 AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
34699 missing_components="$missing_components (no client)";
34701 if $WANT_RECOVER; then
34702 AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
34704 missing_components="$missing_components (no amrecover)";
34706 if $WANT_NDMP; then
34707 AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
34709 missing_components="$missing_components (no ndmp)";
34718 # Check whether --with-gnuplot was given.
34719 if test "${with_gnuplot+set}" = set; then
34720 withval=$with_gnuplot;
34723 n | no) GNUPLOT=no ;;
34724 *) GNUPLOT="$withval" ;;
34729 if test "x$GNUPLOT" = "xno"; then
34732 # Extract the first word of "gnuplot", so it can be a program name with args.
34733 set dummy gnuplot; ac_word=$2
34734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34735 $as_echo_n "checking for $ac_word... " >&6; }
34736 if test "${ac_cv_path_GNUPLOT+set}" = set; then
34737 $as_echo_n "(cached) " >&6
34741 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
34744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34745 for as_dir in $LOCSYSPATH
34748 test -z "$as_dir" && as_dir=.
34749 for ac_exec_ext in '' $ac_executable_extensions; do
34750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34751 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
34752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34762 GNUPLOT=$ac_cv_path_GNUPLOT
34763 if test -n "$GNUPLOT"; then
34764 { $as_echo "$as_me:$LINENO: result: $GNUPLOT" >&5
34765 $as_echo "$GNUPLOT" >&6; }
34767 { $as_echo "$as_me:$LINENO: result: no" >&5
34768 $as_echo "no" >&6; }
34779 # Extract the first word of "pcat", so it can be a program name with args.
34780 set dummy pcat; ac_word=$2
34781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34782 $as_echo_n "checking for $ac_word... " >&6; }
34783 if test "${ac_cv_path_PCAT+set}" = set; then
34784 $as_echo_n "(cached) " >&6
34788 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
34791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34792 for as_dir in $LOCSYSPATH
34795 test -z "$as_dir" && as_dir=.
34796 for ac_exec_ext in '' $ac_executable_extensions; do
34797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34798 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
34799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34809 PCAT=$ac_cv_path_PCAT
34810 if test -n "$PCAT"; then
34811 { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
34812 $as_echo "$PCAT" >&6; }
34814 { $as_echo "$as_me:$LINENO: result: no" >&5
34815 $as_echo "no" >&6; }
34822 # Extract the first word of "compress", so it can be a program name with args.
34823 set dummy compress; ac_word=$2
34824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34825 $as_echo_n "checking for $ac_word... " >&6; }
34826 if test "${ac_cv_path_COMPRESS+set}" = set; then
34827 $as_echo_n "(cached) " >&6
34831 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
34834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34835 for as_dir in $LOCSYSPATH
34838 test -z "$as_dir" && as_dir=.
34839 for ac_exec_ext in '' $ac_executable_extensions; do
34840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34841 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
34842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34852 COMPRESS=$ac_cv_path_COMPRESS
34853 if test -n "$COMPRESS"; then
34854 { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
34855 $as_echo "$COMPRESS" >&6; }
34857 { $as_echo "$as_me:$LINENO: result: no" >&5
34858 $as_echo "no" >&6; }
34865 # Extract the first word of "gzip", so it can be a program name with args.
34866 set dummy gzip; ac_word=$2
34867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34868 $as_echo_n "checking for $ac_word... " >&6; }
34869 if test "${ac_cv_path_GZIP+set}" = set; then
34870 $as_echo_n "(cached) " >&6
34874 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
34877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34878 for as_dir in $LOCSYSPATH
34881 test -z "$as_dir" && as_dir=.
34882 for ac_exec_ext in '' $ac_executable_extensions; do
34883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34884 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
34885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34895 GZIP=$ac_cv_path_GZIP
34896 if test -n "$GZIP"; then
34897 { $as_echo "$as_me:$LINENO: result: $GZIP" >&5
34898 $as_echo "$GZIP" >&6; }
34900 { $as_echo "$as_me:$LINENO: result: no" >&5
34901 $as_echo "no" >&6; }
34913 if test "x$GNUPLOT" != "x"; then
34916 # variable substitutions for amcat.awk
34917 if test "$PCAT"; then
34918 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
34922 if test "$COMPRESS"; then
34923 AMPLOT_COMPRESS=$COMPRESS
34924 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
34926 AMPLOT_CAT_COMPRESS=
34928 if test "$GZIP"; then
34929 AMPLOT_COMPRESS=$GZIP
34930 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
34942 { $as_echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
34943 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
34946 cat <<AAW_EOF >>config.warnings
34947 Not building 'amplot', because gnuplot was not found
34953 if test x"$WANT_AMPLOT" = x"true"; then
34955 WANT_AMPLOT_FALSE='#'
34957 WANT_AMPLOT_TRUE='#'
34963 # Check whether --enable-manpage-build was given.
34964 if test "${enable_manpage_build+set}" = set; then
34965 enableval=$enable_manpage_build; ENABLE_MANPAGE_BUILD=$enableval
34967 ENABLE_MANPAGE_BUILD=no
34971 # and ensure that everything docbook-related is OK if we'll be using it
34972 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
34973 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
34976 XSLTPROC_FLAGS="--nonet"
34979 # The (lack of) whitespace and overquoting here are all necessary for
34980 # proper formatting.
34982 # Check whether --with-xsltproc was given.
34983 if test "${with_xsltproc+set}" = set; then
34984 withval=$with_xsltproc; ac_with_xsltproc=$withval;
34986 ac_with_xsltproc=maybe;
34991 # Check whether --with-xsltproc-flags was given.
34992 if test "${with_xsltproc_flags+set}" = set; then
34993 withval=$with_xsltproc_flags; if test "x$withval" == "xno"; then
34996 if test "x$withval" != "xyes"; then
34997 XSLTPROC_FLAGS="$withval"
35004 # search for xsltproc if it wasn't specified
35005 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
35006 for ac_prog in xsltproc
35008 # Extract the first word of "$ac_prog", so it can be a program name with args.
35009 set dummy $ac_prog; ac_word=$2
35010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35011 $as_echo_n "checking for $ac_word... " >&6; }
35012 if test "${ac_cv_path_XSLTPROC+set}" = set; then
35013 $as_echo_n "(cached) " >&6
35017 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
35020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35021 for as_dir in $LOCSYSPATH
35024 test -z "$as_dir" && as_dir=.
35025 for ac_exec_ext in '' $ac_executable_extensions; do
35026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35027 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
35028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35038 XSLTPROC=$ac_cv_path_XSLTPROC
35039 if test -n "$XSLTPROC"; then
35040 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
35041 $as_echo "$XSLTPROC" >&6; }
35043 { $as_echo "$as_me:$LINENO: result: no" >&5
35044 $as_echo "no" >&6; }
35048 test -n "$XSLTPROC" && break
35052 if test "$ac_with_xsltproc" != "no"; then
35053 if test -x "$ac_with_xsltproc"; then
35054 XSLTPROC="$ac_with_xsltproc";
35057 { $as_echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
35058 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
35061 cat <<AAW_EOF >>config.warnings
35062 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
35066 for ac_prog in xsltproc
35068 # Extract the first word of "$ac_prog", so it can be a program name with args.
35069 set dummy $ac_prog; ac_word=$2
35070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35071 $as_echo_n "checking for $ac_word... " >&6; }
35072 if test "${ac_cv_path_XSLTPROC+set}" = set; then
35073 $as_echo_n "(cached) " >&6
35077 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
35080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35081 for as_dir in $LOCSYSPATH
35084 test -z "$as_dir" && as_dir=.
35085 for ac_exec_ext in '' $ac_executable_extensions; do
35086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35087 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
35088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35098 XSLTPROC=$ac_cv_path_XSLTPROC
35099 if test -n "$XSLTPROC"; then
35100 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
35101 $as_echo "$XSLTPROC" >&6; }
35103 { $as_echo "$as_me:$LINENO: result: no" >&5
35104 $as_echo "no" >&6; }
35108 test -n "$XSLTPROC" && break
35124 { $as_echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
35125 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
35126 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
35127 $as_echo_n "(cached) " >&6
35130 ac_cv_docbook_xslt_1_72_0=no
35131 if test -n "$XSLTPROC"; then
35132 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
35133 $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
35135 if test "$?" = 0; then
35136 ac_cv_docbook_xslt_1_72_0=yes
35141 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
35142 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
35144 HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
35145 HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
35154 { $as_echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
35155 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
35156 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
35157 $as_echo_n "(cached) " >&6
35160 ac_cv_docbook_xslt_current_version=no
35162 if test -n "$XSLTPROC"; then
35163 cat >conftest.xsl <<EOF
35165 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
35166 xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
35168 <xsl:output method="text"/>
35169 <xsl:template match="fm:project/fm:Version">
35170 <xsl:value-of select="." />
35172 <!-- do nothing with any other text -->
35173 <xsl:template match="text()"/>
35176 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
35178 cat conftest.xsl >&5
35181 ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
35183 if test "$?" != 0; then
35184 ac_cv_docbook_xslt_current_version='no'
35191 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
35192 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
35194 DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
35195 { $as_echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
35196 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
35198 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
35199 { $as_echo "$as_me:$LINENO: result: no" >&5
35200 $as_echo "no" >&6; }
35203 # Used to indicate true or false condition
35204 ax_compare_version=false
35206 # Convert the two version strings to be compared into a format that
35207 # allows a simple string comparison. The end result is that a version
35208 # string of the form 1.12.5-r617 will be converted to the form
35209 # 0001001200050617. In other words, each number is zero padded to four
35210 # digits, and non digits are removed.
35212 ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35213 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35214 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35215 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35219 ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35220 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35221 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35222 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35226 ax_compare_version=`echo "x$ax_compare_version_A
35227 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"`
35231 if test "$ax_compare_version" = "true" ; then
35233 # version is less than required, so mark it as "no"
35234 DOCBOOK_XSLT_CURRENT_VERSION=no
35239 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
35240 { $as_echo "$as_me:$LINENO: result: no" >&5
35241 $as_echo "no" >&6; }
35243 { $as_echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
35244 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
35257 { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
35258 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
35259 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
35260 $as_echo_n "(cached) " >&6
35263 ac_cv_docbook_dtd_4_1_2=no
35264 if test -n "$XSLTPROC"; then
35265 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
35266 cat <<EOF >conftest.xml
35267 <?xml version="1.0" encoding='ISO-8859-1'?>
35268 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
35272 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
35273 echo "conftest.xml:" >&5
35275 cat conftest.xml >&5
35278 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
35279 if test "$?" = 0 -o "$?" = 5; then
35280 # failing to load the DTD is just a warning, so check for it in the output.
35281 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
35284 ac_cv_docbook_dtd_4_1_2=yes
35287 cat conftest.out >&5
35289 rm -f conftest.xml conftest.out
35293 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
35294 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
35296 HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
35297 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
35312 { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
35313 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
35314 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
35315 $as_echo_n "(cached) " >&6
35318 ac_cv_docbook_dtd_4_2=no
35319 if test -n "$XSLTPROC"; then
35320 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
35321 cat <<EOF >conftest.xml
35322 <?xml version="1.0" encoding='ISO-8859-1'?>
35323 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
35327 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
35328 echo "conftest.xml:" >&5
35330 cat conftest.xml >&5
35333 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
35334 if test "$?" = 0 -o "$?" = 5; then
35335 # failing to load the DTD is just a warning, so check for it in the output.
35336 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
35339 ac_cv_docbook_dtd_4_2=yes
35342 cat conftest.out >&5
35344 rm -f conftest.xml conftest.out
35348 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
35349 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
35351 HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
35352 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
35359 if test -z "$XSLTPROC"; then
35360 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
35361 $as_echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
35362 { (exit 1); exit 1; }; }
35365 # if the 'current' Docbook revision is good enough, use that; otherwise,
35366 # if 1.72.0 is available, use that.
35368 if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
35369 if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
35370 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
35371 $as_echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
35372 { (exit 1); exit 1; }; }
35378 # disable validation if the correct DTDs are not available
35379 if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
35381 { $as_echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
35382 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
35385 cat <<AAW_EOF >>config.warnings
35386 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
35390 XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
35394 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
35395 ENABLE_MANPAGE_BUILD_TRUE=
35396 ENABLE_MANPAGE_BUILD_FALSE='#'
35398 ENABLE_MANPAGE_BUILD_TRUE='#'
35399 ENABLE_MANPAGE_BUILD_FALSE=
35406 #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
35407 CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
35411 # Check whether --with-index-server was given.
35412 if test "${with_index_server+set}" = set; then
35413 withval=$with_index_server;
35415 "" | y | ye | yes | n | no)
35416 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
35417 $as_echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
35418 { (exit 1); exit 1; }; }
35420 *) DEFAULT_SERVER="$withval"
35425 : ${DEFAULT_SERVER=`uname -n`}
35430 cat >>confdefs.h <<_ACEOF
35431 #define DEFAULT_SERVER "$DEFAULT_SERVER"
35437 # Check whether --with-config was given.
35438 if test "${with_config+set}" = set; then
35439 withval=$with_config;
35441 "" | y | ye | yes | n | no)
35442 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
35443 $as_echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
35444 { (exit 1); exit 1; }; }
35446 *) DEFAULT_CONFIG="$withval"
35451 : ${DEFAULT_CONFIG=DailySet1}
35456 cat >>confdefs.h <<_ACEOF
35457 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
35463 # Check whether --with-tape-server was given.
35464 if test "${with_tape_server+set}" = set; then
35465 withval=$with_tape_server;
35467 "" | y | ye | yes | n | no)
35468 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
35469 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
35470 { (exit 1); exit 1; }; }
35472 *) DEFAULT_TAPE_SERVER="$withval"
35477 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
35482 cat >>confdefs.h <<_ACEOF
35483 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
35489 # Check whether --with-tape-device was given.
35490 if test "${with_tape_device+set}" = set; then
35491 withval=$with_tape_device;
35493 "" | y | ye | yes | n | no)
35494 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
35495 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
35496 { (exit 1); exit 1; }; }
35498 *) DEFAULT_TAPE_DEVICE="$withval"
35507 cat >>confdefs.h <<_ACEOF
35508 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
35513 if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
35514 EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
35516 EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
35521 # Check whether --with-changer-device was given.
35522 if test "${with_changer_device+set}" = set; then
35523 withval=$with_changer_device;
35525 { $as_echo "$as_me:$LINENO: WARNING: --with-changer-device is no longer used." >&5
35526 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
35529 cat <<AAW_EOF >>config.warnings
35530 --with-changer-device is no longer used.
35540 # Check whether --with-amandates was given.
35541 if test "${with_amandates+set}" = set; then
35542 withval=$with_amandates;
35544 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
35545 $as_echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
35546 { (exit 1); exit 1; }; };;
35547 y | ye | yes) amandates='$localstatedir/amanda/amandates' ;;
35548 *) amandates="$withval";;
35552 amandates='$localstatedir/amanda/amandates'
35560 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
35561 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
35562 eval ac_define_dir="\"$amandates\""
35563 eval ac_define_dir="\"$ac_define_dir\""
35564 DEFAULT_AMANDATES_FILE="$ac_define_dir"
35567 cat >>confdefs.h <<_ACEOF
35568 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
35571 test "$prefix_NONE" && prefix=NONE
35572 test "$exec_prefix_NONE" && exec_prefix=NONE
35575 DEFAULT_FSF_AFTER_FILEMARK="FALSE"
35577 *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
35581 cat >>confdefs.h <<_ACEOF
35582 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
35588 # Extract the first word of "getconf", so it can be a program name with args.
35589 set dummy getconf; ac_word=$2
35590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35591 $as_echo_n "checking for $ac_word... " >&6; }
35592 if test "${ac_cv_path_GETCONF+set}" = set; then
35593 $as_echo_n "(cached) " >&6
35597 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
35600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35601 for as_dir in $SYSPATH
35604 test -z "$as_dir" && as_dir=.
35605 for ac_exec_ext in '' $ac_executable_extensions; do
35606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35607 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
35608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35618 GETCONF=$ac_cv_path_GETCONF
35619 if test -n "$GETCONF"; then
35620 { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
35621 $as_echo "$GETCONF" >&6; }
35623 { $as_echo "$as_me:$LINENO: result: no" >&5
35624 $as_echo "no" >&6; }
35633 # we use 'getconf', if it exists, to get the relevant
35637 *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
35638 *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
35641 # Checks for compilers, typedefs, structures, and compiler characteristics.
35642 # Check for large file compilation environment.
35644 { $as_echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
35645 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
35646 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
35647 $as_echo_n "(cached) " >&6
35650 amanda_cv_LFS_CFLAGS=
35651 if test "$GETCONF"; then
35652 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
35653 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
35660 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
35661 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
35662 CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
35665 { $as_echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
35666 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
35667 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
35668 $as_echo_n "(cached) " >&6
35671 amanda_cv_LFS_LDFLAGS=
35672 if test "$GETCONF"; then
35673 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
35674 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
35681 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
35682 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
35683 LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
35686 { $as_echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
35687 $as_echo_n "checking for large file compilation LIBS... " >&6; }
35688 if test "${amanda_cv_LFS_LIBS+set}" = set; then
35689 $as_echo_n "(cached) " >&6
35692 amanda_cv_LFS_LIBS=
35693 if test "$GETCONF"; then
35694 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
35695 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
35702 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
35703 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
35704 LIBS="$amanda_cv_LFS_LIBS $LIBS"
35707 if test x"$NEED_RESETOFS" = x"yes"; then
35709 cat >>confdefs.h <<\_ACEOF
35710 #define NEED_RESETOFS 1
35720 for ac_header in fstab.h \
35726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35729 $as_echo_n "checking for $ac_header... " >&6; }
35730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35731 $as_echo_n "(cached) " >&6
35733 ac_res=`eval 'as_val=${'$as_ac_Header'}
35734 $as_echo "$as_val"'`
35735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35736 $as_echo "$ac_res" >&6; }
35738 # Is the header compilable?
35739 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35740 $as_echo_n "checking $ac_header usability... " >&6; }
35741 cat >conftest.$ac_ext <<_ACEOF
35744 cat confdefs.h >>conftest.$ac_ext
35745 cat >>conftest.$ac_ext <<_ACEOF
35746 /* end confdefs.h. */
35747 $ac_includes_default
35748 #include <$ac_header>
35750 rm -f conftest.$ac_objext
35751 if { (ac_try="$ac_compile"
35752 case "(($ac_try" in
35753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35754 *) ac_try_echo=$ac_try;;
35756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35757 $as_echo "$ac_try_echo") >&5
35758 (eval "$ac_compile") 2>conftest.er1
35760 grep -v '^ *+' conftest.er1 >conftest.err
35762 cat conftest.err >&5
35763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); } && {
35765 test -z "$ac_c_werror_flag" ||
35766 test ! -s conftest.err
35767 } && test -s conftest.$ac_objext; then
35768 ac_header_compiler=yes
35770 $as_echo "$as_me: failed program was:" >&5
35771 sed 's/^/| /' conftest.$ac_ext >&5
35773 ac_header_compiler=no
35776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35778 $as_echo "$ac_header_compiler" >&6; }
35780 # Is the header present?
35781 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35782 $as_echo_n "checking $ac_header presence... " >&6; }
35783 cat >conftest.$ac_ext <<_ACEOF
35786 cat confdefs.h >>conftest.$ac_ext
35787 cat >>conftest.$ac_ext <<_ACEOF
35788 /* end confdefs.h. */
35789 #include <$ac_header>
35791 if { (ac_try="$ac_cpp conftest.$ac_ext"
35792 case "(($ac_try" in
35793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35794 *) ac_try_echo=$ac_try;;
35796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35797 $as_echo "$ac_try_echo") >&5
35798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35800 grep -v '^ *+' conftest.er1 >conftest.err
35802 cat conftest.err >&5
35803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 (exit $ac_status); } >/dev/null && {
35805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35806 test ! -s conftest.err
35808 ac_header_preproc=yes
35810 $as_echo "$as_me: failed program was:" >&5
35811 sed 's/^/| /' conftest.$ac_ext >&5
35813 ac_header_preproc=no
35816 rm -f conftest.err conftest.$ac_ext
35817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35818 $as_echo "$ac_header_preproc" >&6; }
35820 # So? What about this header?
35821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35824 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35826 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35827 ac_header_preproc=yes
35830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35831 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35833 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35835 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35837 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35839 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35841 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35846 $as_echo_n "checking for $ac_header... " >&6; }
35847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35848 $as_echo_n "(cached) " >&6
35850 eval "$as_ac_Header=\$ac_header_preproc"
35852 ac_res=`eval 'as_val=${'$as_ac_Header'}
35853 $as_echo "$as_val"'`
35854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35855 $as_echo "$ac_res" >&6; }
35858 as_val=`eval 'as_val=${'$as_ac_Header'}
35859 $as_echo "$as_val"'`
35860 if test "x$as_val" = x""yes; then
35861 cat >>confdefs.h <<_ACEOF
35862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35871 for ac_func in endmntent
35873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35875 $as_echo_n "checking for $ac_func... " >&6; }
35876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35877 $as_echo_n "(cached) " >&6
35879 cat >conftest.$ac_ext <<_ACEOF
35882 cat confdefs.h >>conftest.$ac_ext
35883 cat >>conftest.$ac_ext <<_ACEOF
35884 /* end confdefs.h. */
35885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35887 #define $ac_func innocuous_$ac_func
35889 /* System header to define __stub macros and hopefully few prototypes,
35890 which can conflict with char $ac_func (); below.
35891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35892 <limits.h> exists even on freestanding compilers. */
35895 # include <limits.h>
35897 # include <assert.h>
35902 /* Override any GCC internal prototype to avoid an error.
35903 Use char because int might match the return type of a GCC
35904 builtin and then its argument prototype would still apply. */
35909 /* The GNU C library defines this for functions which it implements
35910 to always fail with ENOSYS. Some functions are actually named
35911 something starting with __ and the normal name is an alias. */
35912 #if defined __stub_$ac_func || defined __stub___$ac_func
35919 return $ac_func ();
35924 rm -f conftest.$ac_objext conftest$ac_exeext
35925 if { (ac_try="$ac_link"
35926 case "(($ac_try" in
35927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35928 *) ac_try_echo=$ac_try;;
35930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35931 $as_echo "$ac_try_echo") >&5
35932 (eval "$ac_link") 2>conftest.er1
35934 grep -v '^ *+' conftest.er1 >conftest.err
35936 cat conftest.err >&5
35937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); } && {
35939 test -z "$ac_c_werror_flag" ||
35940 test ! -s conftest.err
35941 } && test -s conftest$ac_exeext && {
35942 test "$cross_compiling" = yes ||
35943 $as_test_x conftest$ac_exeext
35945 eval "$as_ac_var=yes"
35947 $as_echo "$as_me: failed program was:" >&5
35948 sed 's/^/| /' conftest.$ac_ext >&5
35950 eval "$as_ac_var=no"
35953 rm -rf conftest.dSYM
35954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35955 conftest$ac_exeext conftest.$ac_ext
35957 ac_res=`eval 'as_val=${'$as_ac_var'}
35958 $as_echo "$as_val"'`
35959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35960 $as_echo "$ac_res" >&6; }
35961 as_val=`eval 'as_val=${'$as_ac_var'}
35962 $as_echo "$as_val"'`
35963 if test "x$as_val" = x""yes; then
35964 cat >>confdefs.h <<_ACEOF
35965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35972 for ac_func in setmntent
35974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35975 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35976 $as_echo_n "checking for $ac_func... " >&6; }
35977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35978 $as_echo_n "(cached) " >&6
35980 cat >conftest.$ac_ext <<_ACEOF
35983 cat confdefs.h >>conftest.$ac_ext
35984 cat >>conftest.$ac_ext <<_ACEOF
35985 /* end confdefs.h. */
35986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35988 #define $ac_func innocuous_$ac_func
35990 /* System header to define __stub macros and hopefully few prototypes,
35991 which can conflict with char $ac_func (); below.
35992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35993 <limits.h> exists even on freestanding compilers. */
35996 # include <limits.h>
35998 # include <assert.h>
36003 /* Override any GCC internal prototype to avoid an error.
36004 Use char because int might match the return type of a GCC
36005 builtin and then its argument prototype would still apply. */
36010 /* The GNU C library defines this for functions which it implements
36011 to always fail with ENOSYS. Some functions are actually named
36012 something starting with __ and the normal name is an alias. */
36013 #if defined __stub_$ac_func || defined __stub___$ac_func
36020 return $ac_func ();
36025 rm -f conftest.$ac_objext conftest$ac_exeext
36026 if { (ac_try="$ac_link"
36027 case "(($ac_try" in
36028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36029 *) ac_try_echo=$ac_try;;
36031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36032 $as_echo "$ac_try_echo") >&5
36033 (eval "$ac_link") 2>conftest.er1
36035 grep -v '^ *+' conftest.er1 >conftest.err
36037 cat conftest.err >&5
36038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039 (exit $ac_status); } && {
36040 test -z "$ac_c_werror_flag" ||
36041 test ! -s conftest.err
36042 } && test -s conftest$ac_exeext && {
36043 test "$cross_compiling" = yes ||
36044 $as_test_x conftest$ac_exeext
36046 eval "$as_ac_var=yes"
36048 $as_echo "$as_me: failed program was:" >&5
36049 sed 's/^/| /' conftest.$ac_ext >&5
36051 eval "$as_ac_var=no"
36054 rm -rf conftest.dSYM
36055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36056 conftest$ac_exeext conftest.$ac_ext
36058 ac_res=`eval 'as_val=${'$as_ac_var'}
36059 $as_echo "$as_val"'`
36060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36061 $as_echo "$ac_res" >&6; }
36062 as_val=`eval 'as_val=${'$as_ac_var'}
36063 $as_echo "$as_val"'`
36064 if test "x$as_val" = x""yes; then
36065 cat >>confdefs.h <<_ACEOF
36066 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36079 for ac_header in fcntl.h \
36086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36089 $as_echo_n "checking for $ac_header... " >&6; }
36090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36091 $as_echo_n "(cached) " >&6
36093 ac_res=`eval 'as_val=${'$as_ac_Header'}
36094 $as_echo "$as_val"'`
36095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36096 $as_echo "$ac_res" >&6; }
36098 # Is the header compilable?
36099 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36100 $as_echo_n "checking $ac_header usability... " >&6; }
36101 cat >conftest.$ac_ext <<_ACEOF
36104 cat confdefs.h >>conftest.$ac_ext
36105 cat >>conftest.$ac_ext <<_ACEOF
36106 /* end confdefs.h. */
36107 $ac_includes_default
36108 #include <$ac_header>
36110 rm -f conftest.$ac_objext
36111 if { (ac_try="$ac_compile"
36112 case "(($ac_try" in
36113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36114 *) ac_try_echo=$ac_try;;
36116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36117 $as_echo "$ac_try_echo") >&5
36118 (eval "$ac_compile") 2>conftest.er1
36120 grep -v '^ *+' conftest.er1 >conftest.err
36122 cat conftest.err >&5
36123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124 (exit $ac_status); } && {
36125 test -z "$ac_c_werror_flag" ||
36126 test ! -s conftest.err
36127 } && test -s conftest.$ac_objext; then
36128 ac_header_compiler=yes
36130 $as_echo "$as_me: failed program was:" >&5
36131 sed 's/^/| /' conftest.$ac_ext >&5
36133 ac_header_compiler=no
36136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36137 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36138 $as_echo "$ac_header_compiler" >&6; }
36140 # Is the header present?
36141 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36142 $as_echo_n "checking $ac_header presence... " >&6; }
36143 cat >conftest.$ac_ext <<_ACEOF
36146 cat confdefs.h >>conftest.$ac_ext
36147 cat >>conftest.$ac_ext <<_ACEOF
36148 /* end confdefs.h. */
36149 #include <$ac_header>
36151 if { (ac_try="$ac_cpp conftest.$ac_ext"
36152 case "(($ac_try" in
36153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36154 *) ac_try_echo=$ac_try;;
36156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36157 $as_echo "$ac_try_echo") >&5
36158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36160 grep -v '^ *+' conftest.er1 >conftest.err
36162 cat conftest.err >&5
36163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164 (exit $ac_status); } >/dev/null && {
36165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36166 test ! -s conftest.err
36168 ac_header_preproc=yes
36170 $as_echo "$as_me: failed program was:" >&5
36171 sed 's/^/| /' conftest.$ac_ext >&5
36173 ac_header_preproc=no
36176 rm -f conftest.err conftest.$ac_ext
36177 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36178 $as_echo "$ac_header_preproc" >&6; }
36180 # So? What about this header?
36181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36184 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36187 ac_header_preproc=yes
36190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36191 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36193 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36195 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36197 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36201 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36205 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36206 $as_echo_n "checking for $ac_header... " >&6; }
36207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36208 $as_echo_n "(cached) " >&6
36210 eval "$as_ac_Header=\$ac_header_preproc"
36212 ac_res=`eval 'as_val=${'$as_ac_Header'}
36213 $as_echo "$as_val"'`
36214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36215 $as_echo "$ac_res" >&6; }
36218 as_val=`eval 'as_val=${'$as_ac_Header'}
36219 $as_echo "$as_val"'`
36220 if test "x$as_val" = x""yes; then
36221 cat >>confdefs.h <<_ACEOF
36222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36230 # find a working file-locking mechanism.
36231 # Note: these all use AC_TRY_LINK to make sure that we can compile
36232 # and link each variant. They do not try to test the variants --
36233 # that is left to runtime.
36236 # check POSIX locking
36237 { $as_echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
36238 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
36239 if test "${amanda_cv_posix_filelocking+set}" = set; then
36240 $as_echo_n "(cached) " >&6
36243 cat >conftest.$ac_ext <<_ACEOF
36246 cat confdefs.h >>conftest.$ac_ext
36247 cat >>conftest.$ac_ext <<_ACEOF
36248 /* end confdefs.h. */
36250 #if HAVE_SYS_TYPES_H
36251 # include <sys/types.h>
36254 # include <unistd.h>
36257 # include <fcntl.h>
36266 lock.l_type = F_RDLCK;
36268 lock.l_whence = SEEK_CUR;
36270 return fcntl(1, F_SETLK, &lock);
36276 rm -f conftest.$ac_objext conftest$ac_exeext
36277 if { (ac_try="$ac_link"
36278 case "(($ac_try" in
36279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36280 *) ac_try_echo=$ac_try;;
36282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36283 $as_echo "$ac_try_echo") >&5
36284 (eval "$ac_link") 2>conftest.er1
36286 grep -v '^ *+' conftest.er1 >conftest.err
36288 cat conftest.err >&5
36289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290 (exit $ac_status); } && {
36291 test -z "$ac_c_werror_flag" ||
36292 test ! -s conftest.err
36293 } && test -s conftest$ac_exeext && {
36294 test "$cross_compiling" = yes ||
36295 $as_test_x conftest$ac_exeext
36298 amanda_cv_posix_filelocking="yes"
36301 $as_echo "$as_me: failed program was:" >&5
36302 sed 's/^/| /' conftest.$ac_ext >&5
36305 amanda_cv_posix_filelocking="no"
36309 rm -rf conftest.dSYM
36310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36311 conftest$ac_exeext conftest.$ac_ext
36314 { $as_echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
36315 $as_echo "$amanda_cv_posix_filelocking" >&6; }
36316 if test "x$amanda_cv_posix_filelocking" = xyes; then
36318 cat >>confdefs.h <<\_ACEOF
36319 #define WANT_AMFLOCK_POSIX 1
36322 WANT_AMFLOCK_POSIX="yes"
36323 LOCKING="POSIX_FCNTL"
36325 if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
36326 WANT_AMFLOCK_POSIX_TRUE=
36327 WANT_AMFLOCK_POSIX_FALSE='#'
36329 WANT_AMFLOCK_POSIX_TRUE='#'
36330 WANT_AMFLOCK_POSIX_FALSE=
36334 # check flock-based (BSD) locking
36335 { $as_echo "$as_me:$LINENO: checking whether flock locking is available" >&5
36336 $as_echo_n "checking whether flock locking is available... " >&6; }
36337 if test "${amanda_cv_flock_filelocking+set}" = set; then
36338 $as_echo_n "(cached) " >&6
36341 cat >conftest.$ac_ext <<_ACEOF
36344 cat confdefs.h >>conftest.$ac_ext
36345 cat >>conftest.$ac_ext <<_ACEOF
36346 /* end confdefs.h. */
36348 #if HAVE_SYS_FILE_H
36349 # include <sys/file.h>
36356 return flock(1, LOCK_SH);
36362 rm -f conftest.$ac_objext conftest$ac_exeext
36363 if { (ac_try="$ac_link"
36364 case "(($ac_try" in
36365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36366 *) ac_try_echo=$ac_try;;
36368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36369 $as_echo "$ac_try_echo") >&5
36370 (eval "$ac_link") 2>conftest.er1
36372 grep -v '^ *+' conftest.er1 >conftest.err
36374 cat conftest.err >&5
36375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); } && {
36377 test -z "$ac_c_werror_flag" ||
36378 test ! -s conftest.err
36379 } && test -s conftest$ac_exeext && {
36380 test "$cross_compiling" = yes ||
36381 $as_test_x conftest$ac_exeext
36384 amanda_cv_flock_filelocking="yes"
36387 $as_echo "$as_me: failed program was:" >&5
36388 sed 's/^/| /' conftest.$ac_ext >&5
36391 amanda_cv_flock_filelocking="no"
36395 rm -rf conftest.dSYM
36396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36397 conftest$ac_exeext conftest.$ac_ext
36400 { $as_echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
36401 $as_echo "$amanda_cv_flock_filelocking" >&6; }
36402 if test "x$amanda_cv_flock_filelocking" = xyes; then
36404 cat >>confdefs.h <<\_ACEOF
36405 #define WANT_AMFLOCK_FLOCK 1
36408 WANT_AMFLOCK_FLOCK="yes"
36411 if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
36412 WANT_AMFLOCK_FLOCK_TRUE=
36413 WANT_AMFLOCK_FLOCK_FALSE='#'
36415 WANT_AMFLOCK_FLOCK_TRUE='#'
36416 WANT_AMFLOCK_FLOCK_FALSE=
36420 # check lockf-based (SVR2, SVR3, SVR4) locking
36421 { $as_echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
36422 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
36423 if test "${amanda_cv_lockf_filelocking+set}" = set; then
36424 $as_echo_n "(cached) " >&6
36427 cat >conftest.$ac_ext <<_ACEOF
36430 cat confdefs.h >>conftest.$ac_ext
36431 cat >>conftest.$ac_ext <<_ACEOF
36432 /* end confdefs.h. */
36435 # include <unistd.h>
36442 return lockf(1, F_LOCK, 0);
36448 rm -f conftest.$ac_objext conftest$ac_exeext
36449 if { (ac_try="$ac_link"
36450 case "(($ac_try" in
36451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36452 *) ac_try_echo=$ac_try;;
36454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36455 $as_echo "$ac_try_echo") >&5
36456 (eval "$ac_link") 2>conftest.er1
36458 grep -v '^ *+' conftest.er1 >conftest.err
36460 cat conftest.err >&5
36461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); } && {
36463 test -z "$ac_c_werror_flag" ||
36464 test ! -s conftest.err
36465 } && test -s conftest$ac_exeext && {
36466 test "$cross_compiling" = yes ||
36467 $as_test_x conftest$ac_exeext
36470 amanda_cv_lockf_filelocking="yes"
36473 $as_echo "$as_me: failed program was:" >&5
36474 sed 's/^/| /' conftest.$ac_ext >&5
36477 amanda_cv_lockf_filelocking="no"
36481 rm -rf conftest.dSYM
36482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36483 conftest$ac_exeext conftest.$ac_ext
36486 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
36487 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
36488 if test "x$amanda_cv_lockf_filelocking" = xyes; then
36490 cat >>confdefs.h <<\_ACEOF
36491 #define WANT_AMFLOCK_LOCKF 1
36494 WANT_AMFLOCK_LOCKF="yes"
36497 if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
36498 WANT_AMFLOCK_LOCKF_TRUE=
36499 WANT_AMFLOCK_LOCKF_FALSE='#'
36501 WANT_AMFLOCK_LOCKF_TRUE='#'
36502 WANT_AMFLOCK_LOCKF_FALSE=
36506 # check our homebrew hardlink-based locking (requires hardlinks)
36507 { $as_echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
36508 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
36509 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
36510 $as_echo_n "(cached) " >&6
36513 cat >conftest.$ac_ext <<_ACEOF
36516 cat confdefs.h >>conftest.$ac_ext
36517 cat >>conftest.$ac_ext <<_ACEOF
36518 /* end confdefs.h. */
36521 # include <unistd.h>
36528 return link("/tmp/foo", "/tmp/bar");
36534 rm -f conftest.$ac_objext conftest$ac_exeext
36535 if { (ac_try="$ac_link"
36536 case "(($ac_try" in
36537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36538 *) ac_try_echo=$ac_try;;
36540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36541 $as_echo "$ac_try_echo") >&5
36542 (eval "$ac_link") 2>conftest.er1
36544 grep -v '^ *+' conftest.er1 >conftest.err
36546 cat conftest.err >&5
36547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548 (exit $ac_status); } && {
36549 test -z "$ac_c_werror_flag" ||
36550 test ! -s conftest.err
36551 } && test -s conftest$ac_exeext && {
36552 test "$cross_compiling" = yes ||
36553 $as_test_x conftest$ac_exeext
36556 amanda_cv_lnlock_filelocking="yes"
36559 $as_echo "$as_me: failed program was:" >&5
36560 sed 's/^/| /' conftest.$ac_ext >&5
36563 amanda_cv_lnlock_filelocking="no"
36567 rm -rf conftest.dSYM
36568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36569 conftest$ac_exeext conftest.$ac_ext
36572 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
36573 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
36574 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
36576 cat >>confdefs.h <<\_ACEOF
36577 #define WANT_AMFLOCK_LNLOCK 1
36580 WANT_AMFLOCK_LNLOCK="yes"
36583 if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
36584 WANT_AMFLOCK_LNLOCK_TRUE=
36585 WANT_AMFLOCK_LNLOCK_FALSE='#'
36587 WANT_AMFLOCK_LNLOCK_TRUE='#'
36588 WANT_AMFLOCK_LNLOCK_FALSE=
36592 if test x"$LOCKING" = "no"; then
36593 # this shouldn't happen, and is *bad* if it does
36594 { { $as_echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
36595 $as_echo "$as_me: error: *** No working file locking capability found!" >&2;}
36596 { (exit 1); exit 1; }; }
36603 for ac_prog in swig
36605 # Extract the first word of "$ac_prog", so it can be a program name with args.
36606 set dummy $ac_prog; ac_word=$2
36607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36608 $as_echo_n "checking for $ac_word... " >&6; }
36609 if test "${ac_cv_path_SWIG+set}" = set; then
36610 $as_echo_n "(cached) " >&6
36614 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
36617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36618 for as_dir in $LOCSYSPATH
36621 test -z "$as_dir" && as_dir=.
36622 for ac_exec_ext in '' $ac_executable_extensions; do
36623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36624 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
36625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36635 SWIG=$ac_cv_path_SWIG
36636 if test -n "$SWIG"; then
36637 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
36638 $as_echo "$SWIG" >&6; }
36640 { $as_echo "$as_me:$LINENO: result: no" >&5
36641 $as_echo "no" >&6; }
36645 test -n "$SWIG" && break
36649 # 1.3.32 introduces a change in the way empty strings are handled (old versions
36650 # returned undef in Perl, while new versions return an empty Perl string)
36651 # 1.3.39 is required for the %begin block
36653 # Extract the first word of "swig", so it can be a program name with args.
36654 set dummy swig; ac_word=$2
36655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36656 $as_echo_n "checking for $ac_word... " >&6; }
36657 if test "${ac_cv_path_SWIG+set}" = set; then
36658 $as_echo_n "(cached) " >&6
36662 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
36665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36666 for as_dir in $PATH
36669 test -z "$as_dir" && as_dir=.
36670 for ac_exec_ext in '' $ac_executable_extensions; do
36671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36672 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
36673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36683 SWIG=$ac_cv_path_SWIG
36684 if test -n "$SWIG"; then
36685 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
36686 $as_echo "$SWIG" >&6; }
36688 { $as_echo "$as_me:$LINENO: result: no" >&5
36689 $as_echo "no" >&6; }
36693 if test -z "$SWIG" ; then
36694 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
36695 elif test -n "1.3.39" ; then
36696 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
36697 $as_echo_n "checking for SWIG version... " >&6; }
36698 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'`
36699 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
36700 $as_echo "$swig_version" >&6; }
36701 if test -n "$swig_version" ; then
36703 # Used to indicate true or false condition
36704 ax_compare_version=false
36706 # Convert the two version strings to be compared into a format that
36707 # allows a simple string comparison. The end result is that a version
36708 # string of the form 1.12.5-r617 will be converted to the form
36709 # 0001001200050617. In other words, each number is zero padded to four
36710 # digits, and non digits are removed.
36712 ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36713 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36714 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36715 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36719 ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36720 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36721 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36722 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36726 ax_compare_version=`echo "x$ax_compare_version_A
36727 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36731 if test "$ax_compare_version" = "true" ; then
36733 SWIG_LIB=`$SWIG -swiglib`
36736 SWIG='echo "Error: SWIG version >= 1.3.39 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
36741 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
36749 for ac_prog in perl5 perl
36751 # Extract the first word of "$ac_prog", so it can be a program name with args.
36752 set dummy $ac_prog; ac_word=$2
36753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36754 $as_echo_n "checking for $ac_word... " >&6; }
36755 if test "${ac_cv_path_PERL+set}" = set; then
36756 $as_echo_n "(cached) " >&6
36760 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36764 for as_dir in $LOCSYSPATH
36767 test -z "$as_dir" && as_dir=.
36768 for ac_exec_ext in '' $ac_executable_extensions; do
36769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36770 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
36771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36781 PERL=$ac_cv_path_PERL
36782 if test -n "$PERL"; then
36783 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36784 $as_echo "$PERL" >&6; }
36786 { $as_echo "$as_me:$LINENO: result: no" >&5
36787 $as_echo "no" >&6; }
36791 test -n "$PERL" && break
36795 # Make sure we have perl
36796 if test -z "$PERL"; then
36797 # Extract the first word of "perl", so it can be a program name with args.
36798 set dummy perl; ac_word=$2
36799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36800 $as_echo_n "checking for $ac_word... " >&6; }
36801 if test "${ac_cv_prog_PERL+set}" = set; then
36802 $as_echo_n "(cached) " >&6
36804 if test -n "$PERL"; then
36805 ac_cv_prog_PERL="$PERL" # Let the user override the test.
36807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36808 for as_dir in $PATH
36811 test -z "$as_dir" && as_dir=.
36812 for ac_exec_ext in '' $ac_executable_extensions; do
36813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36814 ac_cv_prog_PERL="perl"
36815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36824 PERL=$ac_cv_prog_PERL
36825 if test -n "$PERL"; then
36826 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36827 $as_echo "$PERL" >&6; }
36829 { $as_echo "$as_me:$LINENO: result: no" >&5
36830 $as_echo "no" >&6; }
36836 # Check if version of Perl is sufficient
36837 ac_perl_version="5.6.0"
36839 if test "x$PERL" != "x"; then
36840 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
36841 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
36842 # NB: It would be nice to log the error if there is one, but we cannot rely
36843 # on autoconf internals
36844 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
36845 if test $? -ne 0; then
36846 { $as_echo "$as_me:$LINENO: result: no" >&5
36847 $as_echo "no" >&6; };
36849 { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
36850 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
36851 { (exit 1); exit 1; }; }
36854 { $as_echo "$as_me:$LINENO: result: ok" >&5
36855 $as_echo "ok" >&6; };
36859 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
36860 $as_echo "$as_me: WARNING: could not find perl" >&2;}
36868 WANT_CYGWIN_COPY_PERL_DLL=false
36869 WANT_MANDATORY_THREAD_CHECK=false
36871 # test for ExtUtils::Embed
36872 ac_perl_list_modules="ExtUtils::Embed 0.0"
36873 # Make sure we have perl
36874 if test -z "$PERL"; then
36875 # Extract the first word of "perl", so it can be a program name with args.
36876 set dummy perl; ac_word=$2
36877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36878 $as_echo_n "checking for $ac_word... " >&6; }
36879 if test "${ac_cv_prog_PERL+set}" = set; then
36880 $as_echo_n "(cached) " >&6
36882 if test -n "$PERL"; then
36883 ac_cv_prog_PERL="$PERL" # Let the user override the test.
36885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36886 for as_dir in $PATH
36889 test -z "$as_dir" && as_dir=.
36890 for ac_exec_ext in '' $ac_executable_extensions; do
36891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36892 ac_cv_prog_PERL="perl"
36893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36902 PERL=$ac_cv_prog_PERL
36903 if test -n "$PERL"; then
36904 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36905 $as_echo "$PERL" >&6; }
36907 { $as_echo "$as_me:$LINENO: result: no" >&5
36908 $as_echo "no" >&6; }
36914 # Check the number of arguments
36915 args_num=`echo $ac_perl_list_modules | wc -w`
36916 let "ckeck_args = $args_num % 2"
36917 if test "$check_args" = "1" ; then
36918 { { $as_echo "$as_me:$LINENO: error: syntax error" >&5
36919 $as_echo "$as_me: error: syntax error" >&2;}
36920 { (exit 1); exit 1; }; }
36925 if test "x$PERL" != x; then
36927 while test ${#ac_perl_list_modules} -gt 2 ; do
36928 module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
36929 module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
36930 ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
36931 { $as_echo "$as_me:$LINENO: checking for perl module $module_name version $module_version" >&5
36932 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
36934 $PERL "-M$module_name" -e exit > /dev/null 2>&1
36935 if test $? -ne 0; then
36936 { $as_echo "$as_me:$LINENO: result: no" >&5
36937 $as_echo "no" >&6; };
36939 ac_perl_list_modules=""
36941 version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
36942 $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
36943 if test $? -eq 0 -o $? -eq 1 ; then
36944 { $as_echo "$as_me:$LINENO: result: ok" >&5
36945 $as_echo "ok" >&6; };
36947 { $as_echo "$as_me:$LINENO: result: no" >&5
36948 $as_echo "no" >&6; }
36950 ac_perl_list_modules=""
36955 if test "$ac_failed" = 0; then
36961 { { $as_echo "$as_me:$LINENO: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&5
36962 $as_echo "$as_me: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&2;}
36963 { (exit 1); exit 1; }; }
36967 { { $as_echo "$as_me:$LINENO: error: could not find perl" >&5
36968 $as_echo "$as_me: error: could not find perl" >&2;}
36969 { (exit 1); exit 1; }; }
36972 # get the include path for building perl extensions
36973 PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
36976 if test x"$enable_shared" = x"no"; then
36977 { { $as_echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
36978 $as_echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
36979 { (exit 1); exit 1; }; }
36983 *freebsd[123456].*) # up to and including FreeBSD 6.*
36984 # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
36985 # libgthread to automatically pull in the desired threading library.
36986 # Instead, they assume that any application linking against
36987 # libgthread will pull in the threading library. This is fine for
36988 # Amanda C applications, but for Perl applications this assumption
36989 # means that the perl binary would pull in the threading library.
36990 # But perl is compiled without threading by default.
36992 # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
36993 # decision is made in gcc's spec files, which were changed in
36994 # gcc-4.0. For a more in-depth discussion, see
36995 # http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
36997 # The easiest solution for the "default" case is to link all perl
36998 # extension libraries against the threading library, so it is loaded
36999 # when perl loads the extension library. The default threading
37000 # library in FreeBSD is libpthread. The below default will work on
37001 # such a FreeBSD system, but ports maintainers and those with
37002 # different configurations may need to override this value with
37003 # --with-perlextlibs.
37005 # We can't use -pthread because gcc on FreeBSD ignores -pthread in
37006 # combination with -shared. See
37007 # http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
37009 PERLEXTLIBS="-lpthread"
37010 WANT_MANDATORY_THREAD_CHECK=true
37013 *freebsd*) # all FreeBSD not matched above
37014 # for all FreeBSD (including 1.0-6.0, above), we want to run the
37015 # thread-check rule in perl/Makefile.am to double-check that a Perl
37016 # script can call a C extension that uses threads.
37017 WANT_MANDATORY_THREAD_CHECK=true
37021 # When need -lperl and the '-L' where it is located,
37022 # we don't want the DynaLoader.a
37023 PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
37024 # we want cygwin to copy ddl to modules directory.
37025 WANT_CYGWIN_COPY_PERL_DLL="true";
37028 if $WANT_CYGWIN_COPY_PERL_DLL; then
37029 WANT_CYGWIN_COPY_PERL_DLL_TRUE=
37030 WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
37032 WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
37033 WANT_CYGWIN_COPY_PERL_DLL_FALSE=
37036 if $WANT_MANDATORY_THREAD_CHECK; then
37037 WANT_MANDATORY_THREAD_CHECK_TRUE=
37038 WANT_MANDATORY_THREAD_CHECK_FALSE='#'
37040 WANT_MANDATORY_THREAD_CHECK_TRUE='#'
37041 WANT_MANDATORY_THREAD_CHECK_FALSE=
37046 # Check whether --with-perlextlibs was given.
37047 if test "${with_perlextlibs+set}" = set; then
37048 withval=$with_perlextlibs;
37050 y|ye|yes) { { $as_echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
37051 $as_echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
37052 { (exit 1); exit 1; }; };;
37053 n|no) PERLEXTLIBS='';;
37054 *) PERLEXTLIBS="$withval" ;;
37063 # Extract the first word of "cat", so it can be a program name with args.
37064 set dummy cat; ac_word=$2
37065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37066 $as_echo_n "checking for $ac_word... " >&6; }
37067 if test "${ac_cv_path_CAT+set}" = set; then
37068 $as_echo_n "(cached) " >&6
37072 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
37075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37076 for as_dir in $LOCSYSPATH
37079 test -z "$as_dir" && as_dir=.
37080 for ac_exec_ext in '' $ac_executable_extensions; do
37081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37082 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
37083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37090 test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
37094 CAT=$ac_cv_path_CAT
37095 if test -n "$CAT"; then
37096 { $as_echo "$as_me:$LINENO: result: $CAT" >&5
37097 $as_echo "$CAT" >&6; }
37099 { $as_echo "$as_me:$LINENO: result: no" >&5
37100 $as_echo "no" >&6; }
37111 if test "$GZIP"; then
37113 cat >>confdefs.h <<\_ACEOF
37114 #define HAVE_GZIP 1
37118 COMPRESS_PATH="$GZIP"
37119 COMPRESS_SUFFIX=".gz"
37120 COMPRESS_FAST_OPT="--fast"
37121 COMPRESS_BEST_OPT="--best"
37122 UNCOMPRESS_PATH="$GZIP"
37123 UNCOMPRESS_OPT="-dc"
37125 if test "$COMPRESS"; then
37126 COMPRESS_PATH="$COMPRESS"
37127 COMPRESS_SUFFIX=".Z"
37128 COMPRESS_FAST_OPT="-f"
37129 COMPRESS_BEST_OPT="-f"
37130 UNCOMPRESS_PATH="$COMPRESS"
37131 UNCOMPRESS_OPT="-dc"
37133 # If we have to use cat, we don't define COMPRESS_FAST_OPT,
37134 # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
37135 # look for a file by the name of "".
37136 # XXX is the above true? --dustin
37139 { $as_echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress. Using cat." >&5
37140 $as_echo "$as_me: WARNING: Cannot find either gzip or compress. Using cat." >&2;}
37143 cat <<AAW_EOF >>config.warnings
37144 Cannot find either gzip or compress. Using cat.
37148 COMPRESS_PATH="$CAT"
37150 COMPRESS_FAST_OPT=""
37151 COMPRESS_BEST_OPT=""
37152 UNCOMPRESS_PATH="$CAT"
37158 cat >>confdefs.h <<_ACEOF
37159 #define COMPRESS_PATH "$COMPRESS_PATH"
37163 cat >>confdefs.h <<_ACEOF
37164 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
37168 cat >>confdefs.h <<_ACEOF
37169 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
37173 cat >>confdefs.h <<_ACEOF
37174 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
37178 cat >>confdefs.h <<_ACEOF
37179 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
37183 cat >>confdefs.h <<_ACEOF
37184 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
37196 # Empty GZIP so that make dist works.
37200 { $as_echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
37201 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
37202 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
37203 $as_echo_n "(cached) " >&6
37206 cat >conftest.$ac_ext <<_ACEOF
37209 cat confdefs.h >>conftest.$ac_ext
37210 cat >>conftest.$ac_ext <<_ACEOF
37211 /* end confdefs.h. */
37213 # include <sys/types.h>
37214 # include <sys/socket.h>
37218 u_int i = sizeof (struct sockaddr_storage)
37223 rm -f conftest.$ac_objext
37224 if { (ac_try="$ac_compile"
37225 case "(($ac_try" in
37226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37227 *) ac_try_echo=$ac_try;;
37229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37230 $as_echo "$ac_try_echo") >&5
37231 (eval "$ac_compile") 2>conftest.er1
37233 grep -v '^ *+' conftest.er1 >conftest.err
37235 cat conftest.err >&5
37236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237 (exit $ac_status); } && {
37238 test -z "$ac_c_werror_flag" ||
37239 test ! -s conftest.err
37240 } && test -s conftest.$ac_objext; then
37241 ac_cv_has_sockaddr_storage=yes
37243 $as_echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.$ac_ext >&5
37246 ac_cv_has_sockaddr_storage=no
37249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37252 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
37253 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
37255 if test $ac_cv_has_sockaddr_storage = yes ; then
37257 cat >>confdefs.h <<\_ACEOF
37258 #define HAVE_SOCKADDR_STORAGE 1
37268 # Check whether --with-ipv6 was given.
37269 if test "${with_ipv6+set}" = set; then
37270 withval=$with_ipv6;
37272 y | ye | yes) amanda_with_ipv6=yes;;
37273 n | no) amanda_with_ipv6=no;;
37275 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
37276 $as_echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
37277 { (exit 1); exit 1; }; }
37283 amanda_with_ipv6=maybe
37289 if test x"$amanda_with_ipv6" = x"yes" ||
37290 test x"$amanda_with_ipv6" = x"maybe" ; then
37291 { $as_echo "$as_me:$LINENO: checking for working IPv6" >&5
37292 $as_echo_n "checking for working IPv6... " >&6; }
37293 if test "${amanda_cv_working_ipv6+set}" = set; then
37294 $as_echo_n "(cached) " >&6
37298 *-pc-cygwin) amanda_cv_working_ipv6=no;;
37300 if test "$cross_compiling" = yes; then
37301 amanda_cv_working_ipv6=yes
37304 cat >conftest.$ac_ext <<_ACEOF
37307 cat confdefs.h >>conftest.$ac_ext
37308 cat >>conftest.$ac_ext <<_ACEOF
37309 /* end confdefs.h. */
37311 #include <sys/types.h>
37312 #ifdef HAVE_SYS_SOCKET_H
37313 #include <sys/socket.h>
37315 #ifdef HAVE_NETINET_IN_H
37316 #include <netinet/in.h>
37318 #ifdef HAVE_WINSOCK2_H
37319 #include <winsock2.h>
37321 #include <sys/socket.h>
37327 aa = socket(AF_INET6, SOCK_STREAM, 0);
37328 if (aa > 0) return 0;
37332 rm -f conftest$ac_exeext
37333 if { (ac_try="$ac_link"
37334 case "(($ac_try" in
37335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37336 *) ac_try_echo=$ac_try;;
37338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37339 $as_echo "$ac_try_echo") >&5
37340 (eval "$ac_link") 2>&5
37342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37344 { (case "(($ac_try" in
37345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37346 *) ac_try_echo=$ac_try;;
37348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37349 $as_echo "$ac_try_echo") >&5
37350 (eval "$ac_try") 2>&5
37352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); }; }; then
37354 amanda_cv_working_ipv6=yes
37356 $as_echo "$as_me: program exited with status $ac_status" >&5
37357 $as_echo "$as_me: failed program was:" >&5
37358 sed 's/^/| /' conftest.$ac_ext >&5
37360 ( exit $ac_status )
37361 amanda_cv_working_ipv6=no
37363 rm -rf conftest.dSYM
37364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37371 { $as_echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
37372 $as_echo "$amanda_cv_working_ipv6" >&6; }
37374 if test "$amanda_cv_working_ipv6" = yes; then
37377 cat >>confdefs.h <<\_ACEOF
37378 #define WORKING_IPV6 1
37382 # error out only if the user specifically requested support
37383 if test x"$amanda_with_ipv6" = x"yes"; then
37384 { { $as_echo "$as_me:$LINENO: error: IPv6 support was requested, but opening an IPv6 socket failed" >&5
37385 $as_echo "$as_me: error: IPv6 support was requested, but opening an IPv6 socket failed" >&2;}
37386 { (exit 1); exit 1; }; }
37397 ac_header_dirent=no
37398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
37399 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
37400 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
37401 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
37402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37403 $as_echo_n "(cached) " >&6
37405 cat >conftest.$ac_ext <<_ACEOF
37408 cat confdefs.h >>conftest.$ac_ext
37409 cat >>conftest.$ac_ext <<_ACEOF
37410 /* end confdefs.h. */
37411 #include <sys/types.h>
37423 rm -f conftest.$ac_objext
37424 if { (ac_try="$ac_compile"
37425 case "(($ac_try" in
37426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37427 *) ac_try_echo=$ac_try;;
37429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37430 $as_echo "$ac_try_echo") >&5
37431 (eval "$ac_compile") 2>conftest.er1
37433 grep -v '^ *+' conftest.er1 >conftest.err
37435 cat conftest.err >&5
37436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437 (exit $ac_status); } && {
37438 test -z "$ac_c_werror_flag" ||
37439 test ! -s conftest.err
37440 } && test -s conftest.$ac_objext; then
37441 eval "$as_ac_Header=yes"
37443 $as_echo "$as_me: failed program was:" >&5
37444 sed 's/^/| /' conftest.$ac_ext >&5
37446 eval "$as_ac_Header=no"
37449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37451 ac_res=`eval 'as_val=${'$as_ac_Header'}
37452 $as_echo "$as_val"'`
37453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37454 $as_echo "$ac_res" >&6; }
37455 as_val=`eval 'as_val=${'$as_ac_Header'}
37456 $as_echo "$as_val"'`
37457 if test "x$as_val" = x""yes; then
37458 cat >>confdefs.h <<_ACEOF
37459 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
37462 ac_header_dirent=$ac_hdr; break
37466 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
37467 if test $ac_header_dirent = dirent.h; then
37468 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
37469 $as_echo_n "checking for library containing opendir... " >&6; }
37470 if test "${ac_cv_search_opendir+set}" = set; then
37471 $as_echo_n "(cached) " >&6
37473 ac_func_search_save_LIBS=$LIBS
37474 cat >conftest.$ac_ext <<_ACEOF
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h. */
37481 /* Override any GCC internal prototype to avoid an error.
37482 Use char because int might match the return type of a GCC
37483 builtin and then its argument prototype would still apply. */
37496 for ac_lib in '' dir; do
37497 if test -z "$ac_lib"; then
37498 ac_res="none required"
37501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37503 rm -f conftest.$ac_objext conftest$ac_exeext
37504 if { (ac_try="$ac_link"
37505 case "(($ac_try" in
37506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37507 *) ac_try_echo=$ac_try;;
37509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37510 $as_echo "$ac_try_echo") >&5
37511 (eval "$ac_link") 2>conftest.er1
37513 grep -v '^ *+' conftest.er1 >conftest.err
37515 cat conftest.err >&5
37516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); } && {
37518 test -z "$ac_c_werror_flag" ||
37519 test ! -s conftest.err
37520 } && test -s conftest$ac_exeext && {
37521 test "$cross_compiling" = yes ||
37522 $as_test_x conftest$ac_exeext
37524 ac_cv_search_opendir=$ac_res
37526 $as_echo "$as_me: failed program was:" >&5
37527 sed 's/^/| /' conftest.$ac_ext >&5
37532 rm -rf conftest.dSYM
37533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37535 if test "${ac_cv_search_opendir+set}" = set; then
37539 if test "${ac_cv_search_opendir+set}" = set; then
37542 ac_cv_search_opendir=no
37544 rm conftest.$ac_ext
37545 LIBS=$ac_func_search_save_LIBS
37547 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37548 $as_echo "$ac_cv_search_opendir" >&6; }
37549 ac_res=$ac_cv_search_opendir
37550 if test "$ac_res" != no; then
37551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37556 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
37557 $as_echo_n "checking for library containing opendir... " >&6; }
37558 if test "${ac_cv_search_opendir+set}" = set; then
37559 $as_echo_n "(cached) " >&6
37561 ac_func_search_save_LIBS=$LIBS
37562 cat >conftest.$ac_ext <<_ACEOF
37565 cat confdefs.h >>conftest.$ac_ext
37566 cat >>conftest.$ac_ext <<_ACEOF
37567 /* end confdefs.h. */
37569 /* Override any GCC internal prototype to avoid an error.
37570 Use char because int might match the return type of a GCC
37571 builtin and then its argument prototype would still apply. */
37584 for ac_lib in '' x; do
37585 if test -z "$ac_lib"; then
37586 ac_res="none required"
37589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37591 rm -f conftest.$ac_objext conftest$ac_exeext
37592 if { (ac_try="$ac_link"
37593 case "(($ac_try" in
37594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37595 *) ac_try_echo=$ac_try;;
37597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37598 $as_echo "$ac_try_echo") >&5
37599 (eval "$ac_link") 2>conftest.er1
37601 grep -v '^ *+' conftest.er1 >conftest.err
37603 cat conftest.err >&5
37604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605 (exit $ac_status); } && {
37606 test -z "$ac_c_werror_flag" ||
37607 test ! -s conftest.err
37608 } && test -s conftest$ac_exeext && {
37609 test "$cross_compiling" = yes ||
37610 $as_test_x conftest$ac_exeext
37612 ac_cv_search_opendir=$ac_res
37614 $as_echo "$as_me: failed program was:" >&5
37615 sed 's/^/| /' conftest.$ac_ext >&5
37620 rm -rf conftest.dSYM
37621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37623 if test "${ac_cv_search_opendir+set}" = set; then
37627 if test "${ac_cv_search_opendir+set}" = set; then
37630 ac_cv_search_opendir=no
37632 rm conftest.$ac_ext
37633 LIBS=$ac_func_search_save_LIBS
37635 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37636 $as_echo "$ac_cv_search_opendir" >&6; }
37637 ac_res=$ac_cv_search_opendir
37638 if test "$ac_res" != no; then
37639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37646 # include the dirent headers as described in the autoconf documentation.
37647 { $as_echo "$as_me:$LINENO: checking whether readdir is declared" >&5
37648 $as_echo_n "checking whether readdir is declared... " >&6; }
37649 if test "${ac_cv_have_decl_readdir+set}" = set; then
37650 $as_echo_n "(cached) " >&6
37652 cat >conftest.$ac_ext <<_ACEOF
37655 cat confdefs.h >>conftest.$ac_ext
37656 cat >>conftest.$ac_ext <<_ACEOF
37657 /* end confdefs.h. */
37660 # include <dirent.h>
37661 # define NAMLEN(dirent) strlen((dirent)->d_name)
37663 # define dirent direct
37664 # define NAMLEN(dirent) (dirent)->d_namlen
37665 # if HAVE_SYS_NDIR_H
37666 # include <sys/ndir.h>
37668 # if HAVE_SYS_DIR_H
37669 # include <sys/dir.h>
37688 rm -f conftest.$ac_objext
37689 if { (ac_try="$ac_compile"
37690 case "(($ac_try" in
37691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37692 *) ac_try_echo=$ac_try;;
37694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37695 $as_echo "$ac_try_echo") >&5
37696 (eval "$ac_compile") 2>conftest.er1
37698 grep -v '^ *+' conftest.er1 >conftest.err
37700 cat conftest.err >&5
37701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702 (exit $ac_status); } && {
37703 test -z "$ac_c_werror_flag" ||
37704 test ! -s conftest.err
37705 } && test -s conftest.$ac_objext; then
37706 ac_cv_have_decl_readdir=yes
37708 $as_echo "$as_me: failed program was:" >&5
37709 sed 's/^/| /' conftest.$ac_ext >&5
37711 ac_cv_have_decl_readdir=no
37714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37716 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
37717 $as_echo "$ac_cv_have_decl_readdir" >&6; }
37718 if test "x$ac_cv_have_decl_readdir" = x""yes; then
37720 cat >>confdefs.h <<_ACEOF
37721 #define HAVE_DECL_READDIR 1
37726 cat >>confdefs.h <<_ACEOF
37727 #define HAVE_DECL_READDIR 0
37732 { $as_echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
37733 $as_echo_n "checking whether readdir_r is declared... " >&6; }
37734 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
37735 $as_echo_n "(cached) " >&6
37737 cat >conftest.$ac_ext <<_ACEOF
37740 cat confdefs.h >>conftest.$ac_ext
37741 cat >>conftest.$ac_ext <<_ACEOF
37742 /* end confdefs.h. */
37745 # include <dirent.h>
37746 # define NAMLEN(dirent) strlen((dirent)->d_name)
37748 # define dirent direct
37749 # define NAMLEN(dirent) (dirent)->d_namlen
37750 # if HAVE_SYS_NDIR_H
37751 # include <sys/ndir.h>
37753 # if HAVE_SYS_DIR_H
37754 # include <sys/dir.h>
37773 rm -f conftest.$ac_objext
37774 if { (ac_try="$ac_compile"
37775 case "(($ac_try" in
37776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37777 *) ac_try_echo=$ac_try;;
37779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37780 $as_echo "$ac_try_echo") >&5
37781 (eval "$ac_compile") 2>conftest.er1
37783 grep -v '^ *+' conftest.er1 >conftest.err
37785 cat conftest.err >&5
37786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787 (exit $ac_status); } && {
37788 test -z "$ac_c_werror_flag" ||
37789 test ! -s conftest.err
37790 } && test -s conftest.$ac_objext; then
37791 ac_cv_have_decl_readdir_r=yes
37793 $as_echo "$as_me: failed program was:" >&5
37794 sed 's/^/| /' conftest.$ac_ext >&5
37796 ac_cv_have_decl_readdir_r=no
37799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37801 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
37802 $as_echo "$ac_cv_have_decl_readdir_r" >&6; }
37803 if test "x$ac_cv_have_decl_readdir_r" = x""yes; then
37805 cat >>confdefs.h <<_ACEOF
37806 #define HAVE_DECL_READDIR_R 1
37811 cat >>confdefs.h <<_ACEOF
37812 #define HAVE_DECL_READDIR_R 0
37817 { $as_echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
37818 $as_echo_n "checking whether readdir64 is declared... " >&6; }
37819 if test "${ac_cv_have_decl_readdir64+set}" = set; then
37820 $as_echo_n "(cached) " >&6
37822 cat >conftest.$ac_ext <<_ACEOF
37825 cat confdefs.h >>conftest.$ac_ext
37826 cat >>conftest.$ac_ext <<_ACEOF
37827 /* end confdefs.h. */
37830 # include <dirent.h>
37831 # define NAMLEN(dirent) strlen((dirent)->d_name)
37833 # define dirent direct
37834 # define NAMLEN(dirent) (dirent)->d_namlen
37835 # if HAVE_SYS_NDIR_H
37836 # include <sys/ndir.h>
37838 # if HAVE_SYS_DIR_H
37839 # include <sys/dir.h>
37858 rm -f conftest.$ac_objext
37859 if { (ac_try="$ac_compile"
37860 case "(($ac_try" in
37861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37862 *) ac_try_echo=$ac_try;;
37864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37865 $as_echo "$ac_try_echo") >&5
37866 (eval "$ac_compile") 2>conftest.er1
37868 grep -v '^ *+' conftest.er1 >conftest.err
37870 cat conftest.err >&5
37871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37872 (exit $ac_status); } && {
37873 test -z "$ac_c_werror_flag" ||
37874 test ! -s conftest.err
37875 } && test -s conftest.$ac_objext; then
37876 ac_cv_have_decl_readdir64=yes
37878 $as_echo "$as_me: failed program was:" >&5
37879 sed 's/^/| /' conftest.$ac_ext >&5
37881 ac_cv_have_decl_readdir64=no
37884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37886 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
37887 $as_echo "$ac_cv_have_decl_readdir64" >&6; }
37888 if test "x$ac_cv_have_decl_readdir64" = x""yes; then
37890 cat >>confdefs.h <<_ACEOF
37891 #define HAVE_DECL_READDIR64 1
37896 cat >>confdefs.h <<_ACEOF
37897 #define HAVE_DECL_READDIR64 0
37902 { $as_echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
37903 $as_echo_n "checking whether readdir64_r is declared... " >&6; }
37904 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
37905 $as_echo_n "(cached) " >&6
37907 cat >conftest.$ac_ext <<_ACEOF
37910 cat confdefs.h >>conftest.$ac_ext
37911 cat >>conftest.$ac_ext <<_ACEOF
37912 /* end confdefs.h. */
37915 # include <dirent.h>
37916 # define NAMLEN(dirent) strlen((dirent)->d_name)
37918 # define dirent direct
37919 # define NAMLEN(dirent) (dirent)->d_namlen
37920 # if HAVE_SYS_NDIR_H
37921 # include <sys/ndir.h>
37923 # if HAVE_SYS_DIR_H
37924 # include <sys/dir.h>
37935 #ifndef readdir64_r
37936 (void) readdir64_r;
37943 rm -f conftest.$ac_objext
37944 if { (ac_try="$ac_compile"
37945 case "(($ac_try" in
37946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37947 *) ac_try_echo=$ac_try;;
37949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37950 $as_echo "$ac_try_echo") >&5
37951 (eval "$ac_compile") 2>conftest.er1
37953 grep -v '^ *+' conftest.er1 >conftest.err
37955 cat conftest.err >&5
37956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37957 (exit $ac_status); } && {
37958 test -z "$ac_c_werror_flag" ||
37959 test ! -s conftest.err
37960 } && test -s conftest.$ac_objext; then
37961 ac_cv_have_decl_readdir64_r=yes
37963 $as_echo "$as_me: failed program was:" >&5
37964 sed 's/^/| /' conftest.$ac_ext >&5
37966 ac_cv_have_decl_readdir64_r=no
37969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37971 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
37972 $as_echo "$ac_cv_have_decl_readdir64_r" >&6; }
37973 if test "x$ac_cv_have_decl_readdir64_r" = x""yes; then
37975 cat >>confdefs.h <<_ACEOF
37976 #define HAVE_DECL_READDIR64_R 1
37981 cat >>confdefs.h <<_ACEOF
37982 #define HAVE_DECL_READDIR64_R 0
37991 # disk device prefixes
37992 { $as_echo "$as_me:$LINENO: checking disk device prefixes" >&5
37993 $as_echo_n "checking disk device prefixes... " >&6; }
37995 # Use df to find the mount point for the root filesystem. Use
37996 # the positional parameters to find the particular line from df
37997 # that contains the root paritition. We put it in a subshell so
37998 # that the original positional parameters are not messed with.
38000 df / | while read line; do
38002 while test $# -gt 0; do
38003 if test "x$1" = "x/"; then
38010 ) | sed 's/(//' | sed 's/)//' `
38012 # Search for the mount point by using expr to find the parameter
38016 while test $# -gt 0; do
38017 if expr "$1" : '.*dev' >/dev/null 2>&1; then
38025 # get any system-specific configuration information
38028 CLIENT_SCRIPTS_OPT=amhpfixdevs
38032 { $as_echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
38033 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
38036 cat <<AAW_EOF >>config.warnings
38037 Run amhpfixdevs on HP-UX systems using /dev/vg??.
38045 DEV_PREFIX=/dev/dsk/
38046 RDEV_PREFIX=/dev/rdsk/
38047 CLIENT_SCRIPTS_OPT=amsinixfixdevs
38048 if ! test -d /dev/dsk; then
38050 { $as_echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
38051 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
38054 cat <<AAW_EOF >>config.warnings
38055 Run amsinixfixdevs on Sinix systems using VxFS.
38066 CLIENT_SCRIPTS_OPT=
38070 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
38071 { $as_echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
38072 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
38074 if test -d /dev/dsk; then
38075 DEV_PREFIX=/dev/dsk/
38076 if test -d /dev/rdsk; then
38077 RDEV_PREFIX=/dev/rdsk/
38079 RDEV_PREFIX=/dev/dsk/
38081 elif test -d /dev; then
38084 # Some systems, notably Linux, do not have raw disk devices
38085 # names. Check this by trying to see if a raw disk device name
38086 # exists using the normal raw device path prepended to the
38087 # mount point of the root filesystem.
38088 if test "$mount"; then
38089 dev_name="/dev/r`basename $mount`"
38090 if test -b $dev_name -o -c $dev_name; then
38103 { $as_echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
38104 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
38108 cat >>confdefs.h <<_ACEOF
38109 #define DEV_PREFIX "${DEV_PREFIX}"
38113 cat >>confdefs.h <<_ACEOF
38114 #define RDEV_PREFIX "${RDEV_PREFIX}"
38134 CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
38138 CFLAGS="$CFLAGS -Ae"
38145 m88k-motorola-sysv4)
38166 # The old cc won't work!
38167 if test "x$GCC" != "xyes"; then
38168 { { $as_echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
38169 $as_echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
38170 { (exit 1); exit 1; }; }
38195 cat >>confdefs.h <<\_ACEOF
38196 #define IGNORE_TAR_ERRORS 1
38199 # Cygwin needs PATH to find cygwin1.dll
38201 cat >>confdefs.h <<\_ACEOF
38202 #define NEED_PATH_ENV 1
38206 cat >>confdefs.h <<\_ACEOF
38207 #define IGNORE_FSTAB 1
38210 LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
38213 *-apple-darwin7*) # MacOS X 10.3.* (Panther)
38215 *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
38217 *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
38219 *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
38224 cat <<AAW_EOF >>config.warnings
38226 This machine, target type $host, is not known to be fully supported
38227 by this configure script. If the installation of Amanda on this system
38228 succeeds or needed any patches, please email amanda-hackers@amanda.org
38229 with the patches or an indication of the sucess or failure of the
38230 Amanda installation on your system.
38243 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38244 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38245 eval ac_define_dir="\"$bindir\""
38246 eval ac_define_dir="\"$ac_define_dir\""
38247 bindir="$ac_define_dir"
38250 cat >>confdefs.h <<_ACEOF
38251 #define bindir "$ac_define_dir"
38254 test "$prefix_NONE" && prefix=NONE
38255 test "$exec_prefix_NONE" && exec_prefix=NONE
38261 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38262 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38263 eval ac_define_dir="\"$sbindir\""
38264 eval ac_define_dir="\"$ac_define_dir\""
38265 sbindir="$ac_define_dir"
38268 cat >>confdefs.h <<_ACEOF
38269 #define sbindir "$ac_define_dir"
38272 test "$prefix_NONE" && prefix=NONE
38273 test "$exec_prefix_NONE" && exec_prefix=NONE
38279 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38280 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38281 eval ac_define_dir="\"$libexecdir\""
38282 eval ac_define_dir="\"$ac_define_dir\""
38283 libexecdir="$ac_define_dir"
38286 cat >>confdefs.h <<_ACEOF
38287 #define libexecdir "$ac_define_dir"
38290 test "$prefix_NONE" && prefix=NONE
38291 test "$exec_prefix_NONE" && exec_prefix=NONE
38297 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38298 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38299 eval ac_define_dir="\"$mandir\""
38300 eval ac_define_dir="\"$ac_define_dir\""
38301 mandir="$ac_define_dir"
38304 cat >>confdefs.h <<_ACEOF
38305 #define mandir "$ac_define_dir"
38308 test "$prefix_NONE" && prefix=NONE
38309 test "$exec_prefix_NONE" && exec_prefix=NONE
38313 # amanda-specific directories
38314 AMLIBDIR=$libdir/amanda
38316 # Check whether --with-amlibdir was given.
38317 if test "${with_amlibdir+set}" = set; then
38318 withval=$with_amlibdir;
38320 n | no) AMLIBDIR=$libdir ;;
38321 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
38322 *) AMLIBDIR=$withval ;;
38331 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38332 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38333 eval ac_define_dir="\"$AMLIBDIR\""
38334 eval ac_define_dir="\"$ac_define_dir\""
38335 amlibdir="$ac_define_dir"
38338 cat >>confdefs.h <<_ACEOF
38339 #define amlibdir "$ac_define_dir"
38342 test "$prefix_NONE" && prefix=NONE
38343 test "$exec_prefix_NONE" && exec_prefix=NONE
38346 AMLIBEXECDIR=$libexecdir/amanda
38348 # Check whether --with-amlibexecdir was given.
38349 if test "${with_amlibexecdir+set}" = set; then
38350 withval=$with_amlibexecdir;
38352 n | no) AMLIBEXECDIR=$libexecdir ;;
38353 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
38354 *) AMLIBEXECDIR=$withval ;;
38363 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38364 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38365 eval ac_define_dir="\"$AMLIBEXECDIR\""
38366 eval ac_define_dir="\"$ac_define_dir\""
38367 amlibexecdir="$ac_define_dir"
38370 cat >>confdefs.h <<_ACEOF
38371 #define amlibexecdir "$ac_define_dir"
38374 test "$prefix_NONE" && prefix=NONE
38375 test "$exec_prefix_NONE" && exec_prefix=NONE
38378 amincludedir="${includedir}/amanda"
38382 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38383 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38384 eval ac_define_dir="\"$amincludedir\""
38385 eval ac_define_dir="\"$ac_define_dir\""
38386 amincludedir="$ac_define_dir"
38389 cat >>confdefs.h <<_ACEOF
38390 #define amincludedir "$ac_define_dir"
38393 test "$prefix_NONE" && prefix=NONE
38394 test "$exec_prefix_NONE" && exec_prefix=NONE
38398 # Check whether --with-amperldir was given.
38399 if test "${with_amperldir+set}" = set; then
38400 withval=$with_amperldir;
38402 y | ye | yes) AMPERLLIB=DEFAULT ;;
38403 n | no) AMPERLLIB=$amlibdir/perl ;;
38404 *) AMPERLLIB=$withval ;;
38414 # apply the default if no value was given.
38415 if test x"$AMPERLLIB" = x"DEFAULT"; then
38416 eval `$PERL -V:installsitelib`
38417 AMPERLLIB=$installsitelib
38422 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38423 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38424 eval ac_define_dir="\"$AMPERLLIB\""
38425 eval ac_define_dir="\"$ac_define_dir\""
38426 amperldir="$ac_define_dir"
38429 cat >>confdefs.h <<_ACEOF
38430 #define amperldir "$ac_define_dir"
38433 test "$prefix_NONE" && prefix=NONE
38434 test "$exec_prefix_NONE" && exec_prefix=NONE
38437 APPLICATION_DIR='${amlibexecdir}/application'
38441 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38442 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38443 eval ac_define_dir="\"$APPLICATION_DIR\""
38444 eval ac_define_dir="\"$ac_define_dir\""
38445 APPLICATION_DIR="$ac_define_dir"
38448 cat >>confdefs.h <<_ACEOF
38449 #define APPLICATION_DIR "$ac_define_dir"
38452 test "$prefix_NONE" && prefix=NONE
38453 test "$exec_prefix_NONE" && exec_prefix=NONE
38457 # Check whether --with-amdatadir was given.
38458 if test "${with_amdatadir+set}" = set; then
38459 withval=$with_amdatadir;
38464 AMDATADIR=$datadir/amanda
38472 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38473 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38474 eval ac_define_dir="\"$AMDATADIR\""
38475 eval ac_define_dir="\"$ac_define_dir\""
38476 amdatadir="$ac_define_dir"
38479 cat >>confdefs.h <<_ACEOF
38480 #define amdatadir "$ac_define_dir"
38483 test "$prefix_NONE" && prefix=NONE
38484 test "$exec_prefix_NONE" && exec_prefix=NONE
38489 # Internationalization
38492 # FreeBSD needs to link libxpg4
38494 { $as_echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
38495 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
38496 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
38497 $as_echo_n "(cached) " >&6
38499 ac_check_lib_save_LIBS=$LIBS
38500 LIBS="-lxpg4 $LIBS"
38501 cat >conftest.$ac_ext <<_ACEOF
38504 cat confdefs.h >>conftest.$ac_ext
38505 cat >>conftest.$ac_ext <<_ACEOF
38506 /* end confdefs.h. */
38508 /* Override any GCC internal prototype to avoid an error.
38509 Use char because int might match the return type of a GCC
38510 builtin and then its argument prototype would still apply. */
38518 return setlocale ();
38523 rm -f conftest.$ac_objext conftest$ac_exeext
38524 if { (ac_try="$ac_link"
38525 case "(($ac_try" in
38526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38527 *) ac_try_echo=$ac_try;;
38529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38530 $as_echo "$ac_try_echo") >&5
38531 (eval "$ac_link") 2>conftest.er1
38533 grep -v '^ *+' conftest.er1 >conftest.err
38535 cat conftest.err >&5
38536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38537 (exit $ac_status); } && {
38538 test -z "$ac_c_werror_flag" ||
38539 test ! -s conftest.err
38540 } && test -s conftest$ac_exeext && {
38541 test "$cross_compiling" = yes ||
38542 $as_test_x conftest$ac_exeext
38544 ac_cv_lib_xpg4_setlocale=yes
38546 $as_echo "$as_me: failed program was:" >&5
38547 sed 's/^/| /' conftest.$ac_ext >&5
38549 ac_cv_lib_xpg4_setlocale=no
38552 rm -rf conftest.dSYM
38553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38554 conftest$ac_exeext conftest.$ac_ext
38555 LIBS=$ac_check_lib_save_LIBS
38557 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
38558 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
38559 if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then
38560 cat >>confdefs.h <<_ACEOF
38561 #define HAVE_LIBXPG4 1
38564 LIBS="-lxpg4 $LIBS"
38569 # ------------------------------------------------------------------
38570 # All list of languages for which a translation exist. Each
38571 # language is separated by a space.
38572 # ------------------------------------------------------------------
38576 # Extract the first word of "msgfmt", so it can be a program name with args.
38577 set dummy msgfmt; ac_word=$2
38578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38579 $as_echo_n "checking for $ac_word... " >&6; }
38580 if test "${ac_cv_path_MSGFMT+set}" = set; then
38581 $as_echo_n "(cached) " >&6
38585 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38589 for as_dir in $LOCSYSPATH
38592 test -z "$as_dir" && as_dir=.
38593 for ac_exec_ext in '' $ac_executable_extensions; do
38594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38595 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
38596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38606 MSGFMT=$ac_cv_path_MSGFMT
38607 if test -n "$MSGFMT"; then
38608 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
38609 $as_echo "$MSGFMT" >&6; }
38611 { $as_echo "$as_me:$LINENO: result: no" >&5
38612 $as_echo "no" >&6; }
38616 # Extract the first word of "gettext", so it can be a program name with args.
38617 set dummy gettext; ac_word=$2
38618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38619 $as_echo_n "checking for $ac_word... " >&6; }
38620 if test "${ac_cv_path_GETTEXT+set}" = set; then
38621 $as_echo_n "(cached) " >&6
38625 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
38628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38629 for as_dir in $LOCSYSPATH
38632 test -z "$as_dir" && as_dir=.
38633 for ac_exec_ext in '' $ac_executable_extensions; do
38634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38635 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
38636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38646 GETTEXT=$ac_cv_path_GETTEXT
38647 if test -n "$GETTEXT"; then
38648 { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
38649 $as_echo "$GETTEXT" >&6; }
38651 { $as_echo "$as_me:$LINENO: result: no" >&5
38652 $as_echo "no" >&6; }
38659 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
38660 $as_echo_n "checking whether NLS is requested... " >&6; }
38661 # Check whether --enable-nls was given.
38662 if test "${enable_nls+set}" = set; then
38663 enableval=$enable_nls; USE_NLS=$enableval
38668 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
38669 $as_echo "$USE_NLS" >&6; }
38676 # Prepare PATH_SEPARATOR.
38677 # The user is always right.
38678 if test "${PATH_SEPARATOR+set}" != set; then
38679 echo "#! /bin/sh" >conf$$.sh
38680 echo "exit 0" >>conf$$.sh
38682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38690 # Find out how to test for executable files. Don't use a zero-byte file,
38691 # as systems may use methods other than mode bits to determine executability.
38692 cat >conf$$.file <<_ASEOF
38696 chmod +x conf$$.file
38697 if test -x conf$$.file >/dev/null 2>&1; then
38698 ac_executable_p="test -x"
38700 ac_executable_p="test -f"
38704 # Extract the first word of "msgfmt", so it can be a program name with args.
38705 set dummy msgfmt; ac_word=$2
38706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38707 $as_echo_n "checking for $ac_word... " >&6; }
38708 if test "${ac_cv_path_MSGFMT+set}" = set; then
38709 $as_echo_n "(cached) " >&6
38713 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38717 for ac_dir in $PATH; do
38719 test -z "$ac_dir" && ac_dir=.
38720 for ac_exec_ext in '' $ac_executable_extensions; do
38721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38722 echo "$as_me: trying $ac_dir/$ac_word..." >&5
38723 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
38724 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
38725 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
38732 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
38736 MSGFMT="$ac_cv_path_MSGFMT"
38737 if test "$MSGFMT" != ":"; then
38738 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
38739 $as_echo "$MSGFMT" >&6; }
38741 { $as_echo "$as_me:$LINENO: result: no" >&5
38742 $as_echo "no" >&6; }
38745 # Extract the first word of "gmsgfmt", so it can be a program name with args.
38746 set dummy gmsgfmt; ac_word=$2
38747 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38748 $as_echo_n "checking for $ac_word... " >&6; }
38749 if test "${ac_cv_path_GMSGFMT+set}" = set; then
38750 $as_echo_n "(cached) " >&6
38754 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
38757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38758 for as_dir in $PATH
38761 test -z "$as_dir" && as_dir=.
38762 for ac_exec_ext in '' $ac_executable_extensions; do
38763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38764 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
38765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38772 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
38776 GMSGFMT=$ac_cv_path_GMSGFMT
38777 if test -n "$GMSGFMT"; then
38778 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
38779 $as_echo "$GMSGFMT" >&6; }
38781 { $as_echo "$as_me:$LINENO: result: no" >&5
38782 $as_echo "no" >&6; }
38787 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38788 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
38789 *) MSGFMT_015=$MSGFMT ;;
38792 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38793 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
38794 *) GMSGFMT_015=$GMSGFMT ;;
38799 # Prepare PATH_SEPARATOR.
38800 # The user is always right.
38801 if test "${PATH_SEPARATOR+set}" != set; then
38802 echo "#! /bin/sh" >conf$$.sh
38803 echo "exit 0" >>conf$$.sh
38805 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38813 # Find out how to test for executable files. Don't use a zero-byte file,
38814 # as systems may use methods other than mode bits to determine executability.
38815 cat >conf$$.file <<_ASEOF
38819 chmod +x conf$$.file
38820 if test -x conf$$.file >/dev/null 2>&1; then
38821 ac_executable_p="test -x"
38823 ac_executable_p="test -f"
38827 # Extract the first word of "xgettext", so it can be a program name with args.
38828 set dummy xgettext; ac_word=$2
38829 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38830 $as_echo_n "checking for $ac_word... " >&6; }
38831 if test "${ac_cv_path_XGETTEXT+set}" = set; then
38832 $as_echo_n "(cached) " >&6
38834 case "$XGETTEXT" in
38836 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
38839 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38840 for ac_dir in $PATH; do
38842 test -z "$ac_dir" && ac_dir=.
38843 for ac_exec_ext in '' $ac_executable_extensions; do
38844 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38845 echo "$as_me: trying $ac_dir/$ac_word..." >&5
38846 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
38847 (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
38848 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
38855 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
38859 XGETTEXT="$ac_cv_path_XGETTEXT"
38860 if test "$XGETTEXT" != ":"; then
38861 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
38862 $as_echo "$XGETTEXT" >&6; }
38864 { $as_echo "$as_me:$LINENO: result: no" >&5
38865 $as_echo "no" >&6; }
38870 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38871 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
38872 *) XGETTEXT_015=$XGETTEXT ;;
38877 # Prepare PATH_SEPARATOR.
38878 # The user is always right.
38879 if test "${PATH_SEPARATOR+set}" != set; then
38880 echo "#! /bin/sh" >conf$$.sh
38881 echo "exit 0" >>conf$$.sh
38883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38891 # Find out how to test for executable files. Don't use a zero-byte file,
38892 # as systems may use methods other than mode bits to determine executability.
38893 cat >conf$$.file <<_ASEOF
38897 chmod +x conf$$.file
38898 if test -x conf$$.file >/dev/null 2>&1; then
38899 ac_executable_p="test -x"
38901 ac_executable_p="test -f"
38905 # Extract the first word of "msgmerge", so it can be a program name with args.
38906 set dummy msgmerge; ac_word=$2
38907 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38908 $as_echo_n "checking for $ac_word... " >&6; }
38909 if test "${ac_cv_path_MSGMERGE+set}" = set; then
38910 $as_echo_n "(cached) " >&6
38912 case "$MSGMERGE" in
38914 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
38917 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38918 for ac_dir in $PATH; do
38920 test -z "$ac_dir" && ac_dir=.
38921 for ac_exec_ext in '' $ac_executable_extensions; do
38922 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38923 echo "$as_me: trying $ac_dir/$ac_word..." >&5
38924 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
38925 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
38932 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
38936 MSGMERGE="$ac_cv_path_MSGMERGE"
38937 if test "$MSGMERGE" != ":"; then
38938 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
38939 $as_echo "$MSGMERGE" >&6; }
38941 { $as_echo "$as_me:$LINENO: result: no" >&5
38942 $as_echo "no" >&6; }
38946 test -n "$localedir" || localedir='${datadir}/locale'
38949 ac_config_commands="$ac_config_commands po-directories"
38961 acl_save_prefix="$prefix"
38962 prefix="$acl_final_prefix"
38963 acl_save_exec_prefix="$exec_prefix"
38964 exec_prefix="$acl_final_exec_prefix"
38966 eval additional_includedir=\"$includedir\"
38967 eval additional_libdir=\"$libdir\"
38969 exec_prefix="$acl_save_exec_prefix"
38970 prefix="$acl_save_prefix"
38973 # Check whether --with-libiconv-prefix was given.
38974 if test "${with_libiconv_prefix+set}" = set; then
38975 withval=$with_libiconv_prefix;
38976 if test "X$withval" = "Xno"; then
38979 if test "X$withval" = "X"; then
38981 acl_save_prefix="$prefix"
38982 prefix="$acl_final_prefix"
38983 acl_save_exec_prefix="$exec_prefix"
38984 exec_prefix="$acl_final_exec_prefix"
38986 eval additional_includedir=\"$includedir\"
38987 eval additional_libdir=\"$libdir\"
38989 exec_prefix="$acl_save_exec_prefix"
38990 prefix="$acl_save_prefix"
38993 additional_includedir="$withval/include"
38994 additional_libdir="$withval/$acl_libdirstem"
39005 names_already_handled=
39006 names_next_round='iconv '
39007 while test -n "$names_next_round"; do
39008 names_this_round="$names_next_round"
39010 for name in $names_this_round; do
39012 for n in $names_already_handled; do
39013 if test "$n" = "$name"; then
39014 already_handled=yes
39018 if test -z "$already_handled"; then
39019 names_already_handled="$names_already_handled $name"
39020 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39021 eval value=\"\$HAVE_LIB$uppername\"
39022 if test -n "$value"; then
39023 if test "$value" = yes; then
39024 eval value=\"\$LIB$uppername\"
39025 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
39026 eval value=\"\$LTLIB$uppername\"
39027 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
39036 if test $use_additional = yes; then
39037 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
39038 found_dir="$additional_libdir"
39039 found_so="$additional_libdir/lib$name.$shlibext"
39040 if test -f "$additional_libdir/lib$name.la"; then
39041 found_la="$additional_libdir/lib$name.la"
39044 if test -f "$additional_libdir/lib$name.$libext"; then
39045 found_dir="$additional_libdir"
39046 found_a="$additional_libdir/lib$name.$libext"
39047 if test -f "$additional_libdir/lib$name.la"; then
39048 found_la="$additional_libdir/lib$name.la"
39053 if test "X$found_dir" = "X"; then
39054 for x in $LDFLAGS $LTLIBICONV; do
39056 acl_save_prefix="$prefix"
39057 prefix="$acl_final_prefix"
39058 acl_save_exec_prefix="$exec_prefix"
39059 exec_prefix="$acl_final_exec_prefix"
39061 exec_prefix="$acl_save_exec_prefix"
39062 prefix="$acl_save_prefix"
39066 dir=`echo "X$x" | sed -e 's/^X-L//'`
39067 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
39069 found_so="$dir/lib$name.$shlibext"
39070 if test -f "$dir/lib$name.la"; then
39071 found_la="$dir/lib$name.la"
39074 if test -f "$dir/lib$name.$libext"; then
39076 found_a="$dir/lib$name.$libext"
39077 if test -f "$dir/lib$name.la"; then
39078 found_la="$dir/lib$name.la"
39084 if test "X$found_dir" != "X"; then
39089 if test "X$found_dir" != "X"; then
39090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
39091 if test "X$found_so" != "X"; then
39092 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
39093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39096 for x in $ltrpathdirs; do
39097 if test "X$x" = "X$found_dir"; then
39102 if test -z "$haveit"; then
39103 ltrpathdirs="$ltrpathdirs $found_dir"
39105 if test "$hardcode_direct" = yes; then
39106 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39108 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
39109 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39111 for x in $rpathdirs; do
39112 if test "X$x" = "X$found_dir"; then
39117 if test -z "$haveit"; then
39118 rpathdirs="$rpathdirs $found_dir"
39122 for x in $LDFLAGS $LIBICONV; do
39124 acl_save_prefix="$prefix"
39125 prefix="$acl_final_prefix"
39126 acl_save_exec_prefix="$exec_prefix"
39127 exec_prefix="$acl_final_exec_prefix"
39129 exec_prefix="$acl_save_exec_prefix"
39130 prefix="$acl_save_prefix"
39132 if test "X$x" = "X-L$found_dir"; then
39137 if test -z "$haveit"; then
39138 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
39140 if test "$hardcode_minus_L" != no; then
39141 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39143 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
39149 if test "X$found_a" != "X"; then
39150 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
39152 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
39155 additional_includedir=
39156 case "$found_dir" in
39157 */$acl_libdirstem | */$acl_libdirstem/)
39158 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39159 additional_includedir="$basedir/include"
39162 if test "X$additional_includedir" != "X"; then
39163 if test "X$additional_includedir" != "X/usr/include"; then
39165 if test "X$additional_includedir" = "X/usr/local/include"; then
39166 if test -n "$GCC"; then
39168 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39172 if test -z "$haveit"; then
39173 for x in $CPPFLAGS $INCICONV; do
39175 acl_save_prefix="$prefix"
39176 prefix="$acl_final_prefix"
39177 acl_save_exec_prefix="$exec_prefix"
39178 exec_prefix="$acl_final_exec_prefix"
39180 exec_prefix="$acl_save_exec_prefix"
39181 prefix="$acl_save_prefix"
39183 if test "X$x" = "X-I$additional_includedir"; then
39188 if test -z "$haveit"; then
39189 if test -d "$additional_includedir"; then
39190 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
39196 if test -n "$found_la"; then
39197 save_libdir="$libdir"
39198 case "$found_la" in
39199 */* | *\\*) . "$found_la" ;;
39200 *) . "./$found_la" ;;
39202 libdir="$save_libdir"
39203 for dep in $dependency_libs; do
39206 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39207 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
39209 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
39210 if test -n "$GCC"; then
39212 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39216 if test -z "$haveit"; then
39218 for x in $LDFLAGS $LIBICONV; do
39220 acl_save_prefix="$prefix"
39221 prefix="$acl_final_prefix"
39222 acl_save_exec_prefix="$exec_prefix"
39223 exec_prefix="$acl_final_exec_prefix"
39225 exec_prefix="$acl_save_exec_prefix"
39226 prefix="$acl_save_prefix"
39228 if test "X$x" = "X-L$additional_libdir"; then
39233 if test -z "$haveit"; then
39234 if test -d "$additional_libdir"; then
39235 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
39239 for x in $LDFLAGS $LTLIBICONV; do
39241 acl_save_prefix="$prefix"
39242 prefix="$acl_final_prefix"
39243 acl_save_exec_prefix="$exec_prefix"
39244 exec_prefix="$acl_final_exec_prefix"
39246 exec_prefix="$acl_save_exec_prefix"
39247 prefix="$acl_save_prefix"
39249 if test "X$x" = "X-L$additional_libdir"; then
39254 if test -z "$haveit"; then
39255 if test -d "$additional_libdir"; then
39256 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
39263 dir=`echo "X$dep" | sed -e 's/^X-R//'`
39264 if test "$enable_rpath" != no; then
39266 for x in $rpathdirs; do
39267 if test "X$x" = "X$dir"; then
39272 if test -z "$haveit"; then
39273 rpathdirs="$rpathdirs $dir"
39276 for x in $ltrpathdirs; do
39277 if test "X$x" = "X$dir"; then
39282 if test -z "$haveit"; then
39283 ltrpathdirs="$ltrpathdirs $dir"
39288 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39291 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39294 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
39295 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
39301 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
39302 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
39308 if test "X$rpathdirs" != "X"; then
39309 if test -n "$hardcode_libdir_separator"; then
39311 for found_dir in $rpathdirs; do
39312 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
39314 acl_save_libdir="$libdir"
39316 eval flag=\"$hardcode_libdir_flag_spec\"
39317 libdir="$acl_save_libdir"
39318 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
39320 for found_dir in $rpathdirs; do
39321 acl_save_libdir="$libdir"
39322 libdir="$found_dir"
39323 eval flag=\"$hardcode_libdir_flag_spec\"
39324 libdir="$acl_save_libdir"
39325 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
39329 if test "X$ltrpathdirs" != "X"; then
39330 for found_dir in $ltrpathdirs; do
39331 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
39352 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
39353 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
39354 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
39355 $as_echo_n "(cached) " >&6
39357 gt_save_LIBS="$LIBS"
39358 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
39359 cat >conftest.$ac_ext <<_ACEOF
39362 cat confdefs.h >>conftest.$ac_ext
39363 cat >>conftest.$ac_ext <<_ACEOF
39364 /* end confdefs.h. */
39365 #include <CoreFoundation/CFPreferences.h>
39369 CFPreferencesCopyAppValue(NULL, NULL)
39374 rm -f conftest.$ac_objext conftest$ac_exeext
39375 if { (ac_try="$ac_link"
39376 case "(($ac_try" in
39377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39378 *) ac_try_echo=$ac_try;;
39380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39381 $as_echo "$ac_try_echo") >&5
39382 (eval "$ac_link") 2>conftest.er1
39384 grep -v '^ *+' conftest.er1 >conftest.err
39386 cat conftest.err >&5
39387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39388 (exit $ac_status); } && {
39389 test -z "$ac_c_werror_flag" ||
39390 test ! -s conftest.err
39391 } && test -s conftest$ac_exeext && {
39392 test "$cross_compiling" = yes ||
39393 $as_test_x conftest$ac_exeext
39395 gt_cv_func_CFPreferencesCopyAppValue=yes
39397 $as_echo "$as_me: failed program was:" >&5
39398 sed 's/^/| /' conftest.$ac_ext >&5
39400 gt_cv_func_CFPreferencesCopyAppValue=no
39403 rm -rf conftest.dSYM
39404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39405 conftest$ac_exeext conftest.$ac_ext
39406 LIBS="$gt_save_LIBS"
39408 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
39409 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
39410 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
39412 cat >>confdefs.h <<\_ACEOF
39413 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
39417 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
39418 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
39419 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
39420 $as_echo_n "(cached) " >&6
39422 gt_save_LIBS="$LIBS"
39423 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
39424 cat >conftest.$ac_ext <<_ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h. */
39430 #include <CoreFoundation/CFLocale.h>
39434 CFLocaleCopyCurrent();
39439 rm -f conftest.$ac_objext conftest$ac_exeext
39440 if { (ac_try="$ac_link"
39441 case "(($ac_try" in
39442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39443 *) ac_try_echo=$ac_try;;
39445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39446 $as_echo "$ac_try_echo") >&5
39447 (eval "$ac_link") 2>conftest.er1
39449 grep -v '^ *+' conftest.er1 >conftest.err
39451 cat conftest.err >&5
39452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453 (exit $ac_status); } && {
39454 test -z "$ac_c_werror_flag" ||
39455 test ! -s conftest.err
39456 } && test -s conftest$ac_exeext && {
39457 test "$cross_compiling" = yes ||
39458 $as_test_x conftest$ac_exeext
39460 gt_cv_func_CFLocaleCopyCurrent=yes
39462 $as_echo "$as_me: failed program was:" >&5
39463 sed 's/^/| /' conftest.$ac_ext >&5
39465 gt_cv_func_CFLocaleCopyCurrent=no
39468 rm -rf conftest.dSYM
39469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39470 conftest$ac_exeext conftest.$ac_ext
39471 LIBS="$gt_save_LIBS"
39473 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
39474 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
39475 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
39477 cat >>confdefs.h <<\_ACEOF
39478 #define HAVE_CFLOCALECOPYCURRENT 1
39483 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
39484 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
39496 if test "$USE_NLS" = "yes"; then
39497 gt_use_preinstalled_gnugettext=no
39504 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
39505 $as_echo_n "checking for GNU gettext in libc... " >&6; }
39506 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
39507 $as_echo_n "(cached) " >&6
39509 cat >conftest.$ac_ext <<_ACEOF
39512 cat confdefs.h >>conftest.$ac_ext
39513 cat >>conftest.$ac_ext <<_ACEOF
39514 /* end confdefs.h. */
39515 #include <libintl.h>
39516 extern int _nl_msg_cat_cntr;
39517 extern int *_nl_domain_bindings;
39521 bindtextdomain ("", "");
39522 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
39527 rm -f conftest.$ac_objext conftest$ac_exeext
39528 if { (ac_try="$ac_link"
39529 case "(($ac_try" in
39530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39531 *) ac_try_echo=$ac_try;;
39533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39534 $as_echo "$ac_try_echo") >&5
39535 (eval "$ac_link") 2>conftest.er1
39537 grep -v '^ *+' conftest.er1 >conftest.err
39539 cat conftest.err >&5
39540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541 (exit $ac_status); } && {
39542 test -z "$ac_c_werror_flag" ||
39543 test ! -s conftest.err
39544 } && test -s conftest$ac_exeext && {
39545 test "$cross_compiling" = yes ||
39546 $as_test_x conftest$ac_exeext
39548 gt_cv_func_gnugettext1_libc=yes
39550 $as_echo "$as_me: failed program was:" >&5
39551 sed 's/^/| /' conftest.$ac_ext >&5
39553 gt_cv_func_gnugettext1_libc=no
39556 rm -rf conftest.dSYM
39557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39558 conftest$ac_exeext conftest.$ac_ext
39560 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
39561 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
39563 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
39569 am_save_CPPFLAGS="$CPPFLAGS"
39571 for element in $INCICONV; do
39573 for x in $CPPFLAGS; do
39575 acl_save_prefix="$prefix"
39576 prefix="$acl_final_prefix"
39577 acl_save_exec_prefix="$exec_prefix"
39578 exec_prefix="$acl_final_exec_prefix"
39580 exec_prefix="$acl_save_exec_prefix"
39581 prefix="$acl_save_prefix"
39583 if test "X$x" = "X$element"; then
39588 if test -z "$haveit"; then
39589 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39594 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
39595 $as_echo_n "checking for iconv... " >&6; }
39596 if test "${am_cv_func_iconv+set}" = set; then
39597 $as_echo_n "(cached) " >&6
39600 am_cv_func_iconv="no, consider installing GNU libiconv"
39602 cat >conftest.$ac_ext <<_ACEOF
39605 cat confdefs.h >>conftest.$ac_ext
39606 cat >>conftest.$ac_ext <<_ACEOF
39607 /* end confdefs.h. */
39608 #include <stdlib.h>
39613 iconv_t cd = iconv_open("","");
39614 iconv(cd,NULL,NULL,NULL,NULL);
39620 rm -f conftest.$ac_objext conftest$ac_exeext
39621 if { (ac_try="$ac_link"
39622 case "(($ac_try" in
39623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39624 *) ac_try_echo=$ac_try;;
39626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39627 $as_echo "$ac_try_echo") >&5
39628 (eval "$ac_link") 2>conftest.er1
39630 grep -v '^ *+' conftest.er1 >conftest.err
39632 cat conftest.err >&5
39633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634 (exit $ac_status); } && {
39635 test -z "$ac_c_werror_flag" ||
39636 test ! -s conftest.err
39637 } && test -s conftest$ac_exeext && {
39638 test "$cross_compiling" = yes ||
39639 $as_test_x conftest$ac_exeext
39641 am_cv_func_iconv=yes
39643 $as_echo "$as_me: failed program was:" >&5
39644 sed 's/^/| /' conftest.$ac_ext >&5
39649 rm -rf conftest.dSYM
39650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39651 conftest$ac_exeext conftest.$ac_ext
39652 if test "$am_cv_func_iconv" != yes; then
39653 am_save_LIBS="$LIBS"
39654 LIBS="$LIBS $LIBICONV"
39655 cat >conftest.$ac_ext <<_ACEOF
39658 cat confdefs.h >>conftest.$ac_ext
39659 cat >>conftest.$ac_ext <<_ACEOF
39660 /* end confdefs.h. */
39661 #include <stdlib.h>
39666 iconv_t cd = iconv_open("","");
39667 iconv(cd,NULL,NULL,NULL,NULL);
39673 rm -f conftest.$ac_objext conftest$ac_exeext
39674 if { (ac_try="$ac_link"
39675 case "(($ac_try" in
39676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39677 *) ac_try_echo=$ac_try;;
39679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39680 $as_echo "$ac_try_echo") >&5
39681 (eval "$ac_link") 2>conftest.er1
39683 grep -v '^ *+' conftest.er1 >conftest.err
39685 cat conftest.err >&5
39686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 (exit $ac_status); } && {
39688 test -z "$ac_c_werror_flag" ||
39689 test ! -s conftest.err
39690 } && test -s conftest$ac_exeext && {
39691 test "$cross_compiling" = yes ||
39692 $as_test_x conftest$ac_exeext
39694 am_cv_lib_iconv=yes
39695 am_cv_func_iconv=yes
39697 $as_echo "$as_me: failed program was:" >&5
39698 sed 's/^/| /' conftest.$ac_ext >&5
39703 rm -rf conftest.dSYM
39704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39705 conftest$ac_exeext conftest.$ac_ext
39706 LIBS="$am_save_LIBS"
39710 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
39711 $as_echo "$am_cv_func_iconv" >&6; }
39712 if test "$am_cv_func_iconv" = yes; then
39714 cat >>confdefs.h <<\_ACEOF
39715 #define HAVE_ICONV 1
39719 if test "$am_cv_lib_iconv" = yes; then
39720 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
39721 $as_echo_n "checking how to link with libiconv... " >&6; }
39722 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
39723 $as_echo "$LIBICONV" >&6; }
39725 CPPFLAGS="$am_save_CPPFLAGS"
39738 acl_save_prefix="$prefix"
39739 prefix="$acl_final_prefix"
39740 acl_save_exec_prefix="$exec_prefix"
39741 exec_prefix="$acl_final_exec_prefix"
39743 eval additional_includedir=\"$includedir\"
39744 eval additional_libdir=\"$libdir\"
39746 exec_prefix="$acl_save_exec_prefix"
39747 prefix="$acl_save_prefix"
39750 # Check whether --with-libintl-prefix was given.
39751 if test "${with_libintl_prefix+set}" = set; then
39752 withval=$with_libintl_prefix;
39753 if test "X$withval" = "Xno"; then
39756 if test "X$withval" = "X"; then
39758 acl_save_prefix="$prefix"
39759 prefix="$acl_final_prefix"
39760 acl_save_exec_prefix="$exec_prefix"
39761 exec_prefix="$acl_final_exec_prefix"
39763 eval additional_includedir=\"$includedir\"
39764 eval additional_libdir=\"$libdir\"
39766 exec_prefix="$acl_save_exec_prefix"
39767 prefix="$acl_save_prefix"
39770 additional_includedir="$withval/include"
39771 additional_libdir="$withval/$acl_libdirstem"
39782 names_already_handled=
39783 names_next_round='intl '
39784 while test -n "$names_next_round"; do
39785 names_this_round="$names_next_round"
39787 for name in $names_this_round; do
39789 for n in $names_already_handled; do
39790 if test "$n" = "$name"; then
39791 already_handled=yes
39795 if test -z "$already_handled"; then
39796 names_already_handled="$names_already_handled $name"
39797 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39798 eval value=\"\$HAVE_LIB$uppername\"
39799 if test -n "$value"; then
39800 if test "$value" = yes; then
39801 eval value=\"\$LIB$uppername\"
39802 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
39803 eval value=\"\$LTLIB$uppername\"
39804 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
39813 if test $use_additional = yes; then
39814 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
39815 found_dir="$additional_libdir"
39816 found_so="$additional_libdir/lib$name.$shlibext"
39817 if test -f "$additional_libdir/lib$name.la"; then
39818 found_la="$additional_libdir/lib$name.la"
39821 if test -f "$additional_libdir/lib$name.$libext"; then
39822 found_dir="$additional_libdir"
39823 found_a="$additional_libdir/lib$name.$libext"
39824 if test -f "$additional_libdir/lib$name.la"; then
39825 found_la="$additional_libdir/lib$name.la"
39830 if test "X$found_dir" = "X"; then
39831 for x in $LDFLAGS $LTLIBINTL; do
39833 acl_save_prefix="$prefix"
39834 prefix="$acl_final_prefix"
39835 acl_save_exec_prefix="$exec_prefix"
39836 exec_prefix="$acl_final_exec_prefix"
39838 exec_prefix="$acl_save_exec_prefix"
39839 prefix="$acl_save_prefix"
39843 dir=`echo "X$x" | sed -e 's/^X-L//'`
39844 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
39846 found_so="$dir/lib$name.$shlibext"
39847 if test -f "$dir/lib$name.la"; then
39848 found_la="$dir/lib$name.la"
39851 if test -f "$dir/lib$name.$libext"; then
39853 found_a="$dir/lib$name.$libext"
39854 if test -f "$dir/lib$name.la"; then
39855 found_la="$dir/lib$name.la"
39861 if test "X$found_dir" != "X"; then
39866 if test "X$found_dir" != "X"; then
39867 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
39868 if test "X$found_so" != "X"; then
39869 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
39870 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39873 for x in $ltrpathdirs; do
39874 if test "X$x" = "X$found_dir"; then
39879 if test -z "$haveit"; then
39880 ltrpathdirs="$ltrpathdirs $found_dir"
39882 if test "$hardcode_direct" = yes; then
39883 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39885 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
39886 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39888 for x in $rpathdirs; do
39889 if test "X$x" = "X$found_dir"; then
39894 if test -z "$haveit"; then
39895 rpathdirs="$rpathdirs $found_dir"
39899 for x in $LDFLAGS $LIBINTL; do
39901 acl_save_prefix="$prefix"
39902 prefix="$acl_final_prefix"
39903 acl_save_exec_prefix="$exec_prefix"
39904 exec_prefix="$acl_final_exec_prefix"
39906 exec_prefix="$acl_save_exec_prefix"
39907 prefix="$acl_save_prefix"
39909 if test "X$x" = "X-L$found_dir"; then
39914 if test -z "$haveit"; then
39915 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
39917 if test "$hardcode_minus_L" != no; then
39918 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39920 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
39926 if test "X$found_a" != "X"; then
39927 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
39929 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
39932 additional_includedir=
39933 case "$found_dir" in
39934 */$acl_libdirstem | */$acl_libdirstem/)
39935 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39936 additional_includedir="$basedir/include"
39939 if test "X$additional_includedir" != "X"; then
39940 if test "X$additional_includedir" != "X/usr/include"; then
39942 if test "X$additional_includedir" = "X/usr/local/include"; then
39943 if test -n "$GCC"; then
39945 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39949 if test -z "$haveit"; then
39950 for x in $CPPFLAGS $INCINTL; do
39952 acl_save_prefix="$prefix"
39953 prefix="$acl_final_prefix"
39954 acl_save_exec_prefix="$exec_prefix"
39955 exec_prefix="$acl_final_exec_prefix"
39957 exec_prefix="$acl_save_exec_prefix"
39958 prefix="$acl_save_prefix"
39960 if test "X$x" = "X-I$additional_includedir"; then
39965 if test -z "$haveit"; then
39966 if test -d "$additional_includedir"; then
39967 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
39973 if test -n "$found_la"; then
39974 save_libdir="$libdir"
39975 case "$found_la" in
39976 */* | *\\*) . "$found_la" ;;
39977 *) . "./$found_la" ;;
39979 libdir="$save_libdir"
39980 for dep in $dependency_libs; do
39983 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39984 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
39986 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
39987 if test -n "$GCC"; then
39989 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39993 if test -z "$haveit"; then
39995 for x in $LDFLAGS $LIBINTL; do
39997 acl_save_prefix="$prefix"
39998 prefix="$acl_final_prefix"
39999 acl_save_exec_prefix="$exec_prefix"
40000 exec_prefix="$acl_final_exec_prefix"
40002 exec_prefix="$acl_save_exec_prefix"
40003 prefix="$acl_save_prefix"
40005 if test "X$x" = "X-L$additional_libdir"; then
40010 if test -z "$haveit"; then
40011 if test -d "$additional_libdir"; then
40012 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40016 for x in $LDFLAGS $LTLIBINTL; do
40018 acl_save_prefix="$prefix"
40019 prefix="$acl_final_prefix"
40020 acl_save_exec_prefix="$exec_prefix"
40021 exec_prefix="$acl_final_exec_prefix"
40023 exec_prefix="$acl_save_exec_prefix"
40024 prefix="$acl_save_prefix"
40026 if test "X$x" = "X-L$additional_libdir"; then
40031 if test -z "$haveit"; then
40032 if test -d "$additional_libdir"; then
40033 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40040 dir=`echo "X$dep" | sed -e 's/^X-R//'`
40041 if test "$enable_rpath" != no; then
40043 for x in $rpathdirs; do
40044 if test "X$x" = "X$dir"; then
40049 if test -z "$haveit"; then
40050 rpathdirs="$rpathdirs $dir"
40053 for x in $ltrpathdirs; do
40054 if test "X$x" = "X$dir"; then
40059 if test -z "$haveit"; then
40060 ltrpathdirs="$ltrpathdirs $dir"
40065 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40068 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40071 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
40072 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40078 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40079 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40085 if test "X$rpathdirs" != "X"; then
40086 if test -n "$hardcode_libdir_separator"; then
40088 for found_dir in $rpathdirs; do
40089 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40091 acl_save_libdir="$libdir"
40093 eval flag=\"$hardcode_libdir_flag_spec\"
40094 libdir="$acl_save_libdir"
40095 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40097 for found_dir in $rpathdirs; do
40098 acl_save_libdir="$libdir"
40099 libdir="$found_dir"
40100 eval flag=\"$hardcode_libdir_flag_spec\"
40101 libdir="$acl_save_libdir"
40102 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40106 if test "X$ltrpathdirs" != "X"; then
40107 for found_dir in $ltrpathdirs; do
40108 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40112 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40113 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
40114 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
40115 $as_echo_n "(cached) " >&6
40117 gt_save_CPPFLAGS="$CPPFLAGS"
40118 CPPFLAGS="$CPPFLAGS $INCINTL"
40119 gt_save_LIBS="$LIBS"
40120 LIBS="$LIBS $LIBINTL"
40121 cat >conftest.$ac_ext <<_ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h. */
40127 #include <libintl.h>
40128 extern int _nl_msg_cat_cntr;
40133 const char *_nl_expand_alias (const char *);
40137 bindtextdomain ("", "");
40138 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
40143 rm -f conftest.$ac_objext conftest$ac_exeext
40144 if { (ac_try="$ac_link"
40145 case "(($ac_try" in
40146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40147 *) ac_try_echo=$ac_try;;
40149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40150 $as_echo "$ac_try_echo") >&5
40151 (eval "$ac_link") 2>conftest.er1
40153 grep -v '^ *+' conftest.er1 >conftest.err
40155 cat conftest.err >&5
40156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157 (exit $ac_status); } && {
40158 test -z "$ac_c_werror_flag" ||
40159 test ! -s conftest.err
40160 } && test -s conftest$ac_exeext && {
40161 test "$cross_compiling" = yes ||
40162 $as_test_x conftest$ac_exeext
40164 gt_cv_func_gnugettext1_libintl=yes
40166 $as_echo "$as_me: failed program was:" >&5
40167 sed 's/^/| /' conftest.$ac_ext >&5
40169 gt_cv_func_gnugettext1_libintl=no
40172 rm -rf conftest.dSYM
40173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40174 conftest$ac_exeext conftest.$ac_ext
40175 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
40176 LIBS="$LIBS $LIBICONV"
40177 cat >conftest.$ac_ext <<_ACEOF
40180 cat confdefs.h >>conftest.$ac_ext
40181 cat >>conftest.$ac_ext <<_ACEOF
40182 /* end confdefs.h. */
40183 #include <libintl.h>
40184 extern int _nl_msg_cat_cntr;
40189 const char *_nl_expand_alias (const char *);
40193 bindtextdomain ("", "");
40194 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
40199 rm -f conftest.$ac_objext conftest$ac_exeext
40200 if { (ac_try="$ac_link"
40201 case "(($ac_try" in
40202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40203 *) ac_try_echo=$ac_try;;
40205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40206 $as_echo "$ac_try_echo") >&5
40207 (eval "$ac_link") 2>conftest.er1
40209 grep -v '^ *+' conftest.er1 >conftest.err
40211 cat conftest.err >&5
40212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213 (exit $ac_status); } && {
40214 test -z "$ac_c_werror_flag" ||
40215 test ! -s conftest.err
40216 } && test -s conftest$ac_exeext && {
40217 test "$cross_compiling" = yes ||
40218 $as_test_x conftest$ac_exeext
40220 LIBINTL="$LIBINTL $LIBICONV"
40221 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
40222 gt_cv_func_gnugettext1_libintl=yes
40225 $as_echo "$as_me: failed program was:" >&5
40226 sed 's/^/| /' conftest.$ac_ext >&5
40231 rm -rf conftest.dSYM
40232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40233 conftest$ac_exeext conftest.$ac_ext
40235 CPPFLAGS="$gt_save_CPPFLAGS"
40236 LIBS="$gt_save_LIBS"
40238 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
40239 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
40242 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
40243 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
40244 && test "$PACKAGE" != gettext-runtime \
40245 && test "$PACKAGE" != gettext-tools; }; then
40246 gt_use_preinstalled_gnugettext=yes
40255 if test -n "$INTL_MACOSX_LIBS"; then
40256 if test "$gt_use_preinstalled_gnugettext" = "yes" \
40257 || test "$nls_cv_use_gnu_gettext" = "yes"; then
40258 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
40259 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
40263 if test "$gt_use_preinstalled_gnugettext" = "yes" \
40264 || test "$nls_cv_use_gnu_gettext" = "yes"; then
40266 cat >>confdefs.h <<\_ACEOF
40267 #define ENABLE_NLS 1
40275 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
40276 $as_echo_n "checking whether to use NLS... " >&6; }
40277 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
40278 $as_echo "$USE_NLS" >&6; }
40279 if test "$USE_NLS" = "yes"; then
40280 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
40281 $as_echo_n "checking where the gettext function comes from... " >&6; }
40282 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40283 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
40284 gt_source="external libintl"
40289 gt_source="included intl directory"
40291 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
40292 $as_echo "$gt_source" >&6; }
40295 if test "$USE_NLS" = "yes"; then
40297 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40298 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
40299 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
40300 $as_echo_n "checking how to link with libintl... " >&6; }
40301 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
40302 $as_echo "$LIBINTL" >&6; }
40304 for element in $INCINTL; do
40306 for x in $CPPFLAGS; do
40308 acl_save_prefix="$prefix"
40309 prefix="$acl_final_prefix"
40310 acl_save_exec_prefix="$exec_prefix"
40311 exec_prefix="$acl_final_exec_prefix"
40313 exec_prefix="$acl_save_exec_prefix"
40314 prefix="$acl_save_prefix"
40316 if test "X$x" = "X$element"; then
40321 if test -z "$haveit"; then
40322 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40329 cat >>confdefs.h <<\_ACEOF
40330 #define HAVE_GETTEXT 1
40334 cat >>confdefs.h <<\_ACEOF
40335 #define HAVE_DCGETTEXT 1
40345 INTLLIBS="$LIBINTL"
40358 sparc-sun-solaris2.10) # Solaris 10
40359 # curl is not in the LD_LIBRARY_PATH on Solaris 10, so we search
40360 # for it in a few common paths; we then extract the -L flags and
40361 # translate them to -R flags, as required by the runtime linker.
40362 # Extract the first word of "curl-config", so it can be a program name with args.
40363 set dummy curl-config; ac_word=$2
40364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40365 $as_echo_n "checking for $ac_word... " >&6; }
40366 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
40367 $as_echo_n "(cached) " >&6
40369 case $CURL_CONFIG in
40371 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
40374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40375 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
40376 for as_dir in $as_dummy
40379 test -z "$as_dir" && as_dir=.
40380 for ac_exec_ext in '' $ac_executable_extensions; do
40381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40382 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40393 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
40394 if test -n "$CURL_CONFIG"; then
40395 { $as_echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
40396 $as_echo "$CURL_CONFIG" >&6; }
40398 { $as_echo "$as_me:$LINENO: result: no" >&5
40399 $as_echo "no" >&6; }
40403 if test -n "$CURL_CONFIG"; then
40404 curlflags=`$CURL_CONFIG --libs 2>/dev/null`
40405 for flag in curlflags; do
40407 -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
40452 # Check whether --with-libcurl was given.
40453 if test "${with_libcurl+set}" = set; then
40454 withval=$with_libcurl; _libcurl_with=$withval
40460 if test "$_libcurl_with" != "no" ; then
40462 for ac_prog in gawk mawk nawk awk
40464 # Extract the first word of "$ac_prog", so it can be a program name with args.
40465 set dummy $ac_prog; ac_word=$2
40466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40467 $as_echo_n "checking for $ac_word... " >&6; }
40468 if test "${ac_cv_prog_AWK+set}" = set; then
40469 $as_echo_n "(cached) " >&6
40471 if test -n "$AWK"; then
40472 ac_cv_prog_AWK="$AWK" # Let the user override the test.
40474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40475 for as_dir in $PATH
40478 test -z "$as_dir" && as_dir=.
40479 for ac_exec_ext in '' $ac_executable_extensions; do
40480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40481 ac_cv_prog_AWK="$ac_prog"
40482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40491 AWK=$ac_cv_prog_AWK
40492 if test -n "$AWK"; then
40493 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
40494 $as_echo "$AWK" >&6; }
40496 { $as_echo "$as_me:$LINENO: result: no" >&5
40497 $as_echo "no" >&6; }
40501 test -n "$AWK" && break
40505 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
40507 _libcurl_try_link=yes
40509 if test -d "$_libcurl_with" ; then
40510 LIBCURL_CPPFLAGS="-I$withval/include"
40511 _libcurl_ldflags="-L$withval/lib"
40512 # Extract the first word of "curl-config", so it can be a program name with args.
40513 set dummy curl-config; ac_word=$2
40514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40515 $as_echo_n "checking for $ac_word... " >&6; }
40516 if test "${ac_cv_path__libcurl_config+set}" = set; then
40517 $as_echo_n "(cached) " >&6
40519 case $_libcurl_config in
40521 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
40524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40525 for as_dir in "$withval/bin"
40528 test -z "$as_dir" && as_dir=.
40529 for ac_exec_ext in '' $ac_executable_extensions; do
40530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40531 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
40532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40539 test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
40543 _libcurl_config=$ac_cv_path__libcurl_config
40544 if test -n "$_libcurl_config"; then
40545 { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
40546 $as_echo "$_libcurl_config" >&6; }
40548 { $as_echo "$as_me:$LINENO: result: no" >&5
40549 $as_echo "no" >&6; }
40554 # Extract the first word of "curl-config", so it can be a program name with args.
40555 set dummy curl-config; ac_word=$2
40556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40557 $as_echo_n "checking for $ac_word... " >&6; }
40558 if test "${ac_cv_path__libcurl_config+set}" = set; then
40559 $as_echo_n "(cached) " >&6
40561 case $_libcurl_config in
40563 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
40566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40567 for as_dir in $PATH
40570 test -z "$as_dir" && as_dir=.
40571 for ac_exec_ext in '' $ac_executable_extensions; do
40572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40573 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
40574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40584 _libcurl_config=$ac_cv_path__libcurl_config
40585 if test -n "$_libcurl_config"; then
40586 { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
40587 $as_echo "$_libcurl_config" >&6; }
40589 { $as_echo "$as_me:$LINENO: result: no" >&5
40590 $as_echo "no" >&6; }
40596 if test x$_libcurl_config != "x" ; then
40597 { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
40598 $as_echo_n "checking for the version of libcurl... " >&6; }
40599 if test "${libcurl_cv_lib_curl_version+set}" = set; then
40600 $as_echo_n "(cached) " >&6
40602 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
40604 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
40605 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
40607 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
40608 _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
40610 if test $_libcurl_wanted -gt 0 ; then
40611 { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
40612 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
40613 if test "${libcurl_cv_lib_version_ok+set}" = set; then
40614 $as_echo_n "(cached) " >&6
40617 if test $_libcurl_version -ge $_libcurl_wanted ; then
40618 libcurl_cv_lib_version_ok=yes
40620 libcurl_cv_lib_version_ok=no
40624 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
40625 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
40628 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
40629 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
40630 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
40632 if test x"$LIBCURL" = "x" ; then
40633 LIBCURL=`$_libcurl_config --libs`
40635 # This is so silly, but Apple actually has a bug in their
40636 # curl-config script. Fixed in Tiger, but there are still
40637 # lots of Panther installs around.
40639 powerpc-apple-darwin7*)
40640 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
40645 # All curl-config scripts support --feature
40646 _libcurl_features=`$_libcurl_config --feature`
40648 # Is it modern enough to have --protocols? (7.12.4)
40649 if test $_libcurl_version -ge 461828 ; then
40650 _libcurl_protocols=`$_libcurl_config --protocols`
40653 _libcurl_try_link=no
40656 unset _libcurl_wanted
40659 if test $_libcurl_try_link = yes ; then
40661 # we didn't find curl-config, so let's see if the user-supplied
40662 # link line (or failing that, "-lcurl") is enough.
40663 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
40665 { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
40666 $as_echo_n "checking whether libcurl is usable... " >&6; }
40667 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
40668 $as_echo_n "(cached) " >&6
40671 _libcurl_save_cppflags=$CPPFLAGS
40672 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
40673 _libcurl_save_libs=$LIBS
40674 LIBS="$LIBCURL $LIBS"
40676 cat >conftest.$ac_ext <<_ACEOF
40679 cat confdefs.h >>conftest.$ac_ext
40680 cat >>conftest.$ac_ext <<_ACEOF
40681 /* end confdefs.h. */
40682 #include <curl/curl.h>
40687 /* Try and use a few common options to force a failure if we are
40688 missing symbols or can't link. */
40690 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
40692 x=CURLOPT_WRITEFUNCTION;
40694 x=CURLOPT_ERRORBUFFER;
40702 rm -f conftest.$ac_objext conftest$ac_exeext
40703 if { (ac_try="$ac_link"
40704 case "(($ac_try" in
40705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40706 *) ac_try_echo=$ac_try;;
40708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40709 $as_echo "$ac_try_echo") >&5
40710 (eval "$ac_link") 2>conftest.er1
40712 grep -v '^ *+' conftest.er1 >conftest.err
40714 cat conftest.err >&5
40715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716 (exit $ac_status); } && {
40717 test -z "$ac_c_werror_flag" ||
40718 test ! -s conftest.err
40719 } && test -s conftest$ac_exeext && {
40720 test "$cross_compiling" = yes ||
40721 $as_test_x conftest$ac_exeext
40723 libcurl_cv_lib_curl_usable=yes
40725 $as_echo "$as_me: failed program was:" >&5
40726 sed 's/^/| /' conftest.$ac_ext >&5
40728 libcurl_cv_lib_curl_usable=no
40731 rm -rf conftest.dSYM
40732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40733 conftest$ac_exeext conftest.$ac_ext
40735 CPPFLAGS=$_libcurl_save_cppflags
40736 LIBS=$_libcurl_save_libs
40737 unset _libcurl_save_cppflags
40738 unset _libcurl_save_libs
40741 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
40742 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
40744 if test $libcurl_cv_lib_curl_usable = yes ; then
40746 # Does curl_free() exist in this version of libcurl?
40747 # If not, fake it with free()
40749 _libcurl_save_cppflags=$CPPFLAGS
40750 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
40751 _libcurl_save_libs=$LIBS
40752 LIBS="$LIBS $LIBCURL"
40754 { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
40755 $as_echo_n "checking for curl_free... " >&6; }
40756 if test "${ac_cv_func_curl_free+set}" = set; then
40757 $as_echo_n "(cached) " >&6
40759 cat >conftest.$ac_ext <<_ACEOF
40762 cat confdefs.h >>conftest.$ac_ext
40763 cat >>conftest.$ac_ext <<_ACEOF
40764 /* end confdefs.h. */
40765 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
40766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40767 #define curl_free innocuous_curl_free
40769 /* System header to define __stub macros and hopefully few prototypes,
40770 which can conflict with char curl_free (); below.
40771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40772 <limits.h> exists even on freestanding compilers. */
40775 # include <limits.h>
40777 # include <assert.h>
40782 /* Override any GCC internal prototype to avoid an error.
40783 Use char because int might match the return type of a GCC
40784 builtin and then its argument prototype would still apply. */
40789 /* The GNU C library defines this for functions which it implements
40790 to always fail with ENOSYS. Some functions are actually named
40791 something starting with __ and the normal name is an alias. */
40792 #if defined __stub_curl_free || defined __stub___curl_free
40799 return curl_free ();
40804 rm -f conftest.$ac_objext conftest$ac_exeext
40805 if { (ac_try="$ac_link"
40806 case "(($ac_try" in
40807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40808 *) ac_try_echo=$ac_try;;
40810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40811 $as_echo "$ac_try_echo") >&5
40812 (eval "$ac_link") 2>conftest.er1
40814 grep -v '^ *+' conftest.er1 >conftest.err
40816 cat conftest.err >&5
40817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); } && {
40819 test -z "$ac_c_werror_flag" ||
40820 test ! -s conftest.err
40821 } && test -s conftest$ac_exeext && {
40822 test "$cross_compiling" = yes ||
40823 $as_test_x conftest$ac_exeext
40825 ac_cv_func_curl_free=yes
40827 $as_echo "$as_me: failed program was:" >&5
40828 sed 's/^/| /' conftest.$ac_ext >&5
40830 ac_cv_func_curl_free=no
40833 rm -rf conftest.dSYM
40834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40835 conftest$ac_exeext conftest.$ac_ext
40837 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
40838 $as_echo "$ac_cv_func_curl_free" >&6; }
40839 if test "x$ac_cv_func_curl_free" = x""yes; then
40843 cat >>confdefs.h <<\_ACEOF
40844 #define curl_free free
40850 CPPFLAGS=$_libcurl_save_cppflags
40851 LIBS=$_libcurl_save_libs
40852 unset _libcurl_save_cppflags
40853 unset _libcurl_save_libs
40856 cat >>confdefs.h <<\_ACEOF
40857 #define HAVE_LIBCURL 1
40863 for _libcurl_feature in $_libcurl_features ; do
40864 cat >>confdefs.h <<_ACEOF
40865 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
40868 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
40871 if test "x$_libcurl_protocols" = "x" ; then
40873 # We don't have --protocols, so just assume that all
40874 # protocols are available
40875 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
40877 if test x$libcurl_feature_SSL = xyes ; then
40878 _libcurl_protocols="$_libcurl_protocols HTTPS"
40880 # FTPS wasn't standards-compliant until version
40882 if test $_libcurl_version -ge 461568; then
40883 _libcurl_protocols="$_libcurl_protocols FTPS"
40888 for _libcurl_protocol in $_libcurl_protocols ; do
40889 cat >>confdefs.h <<_ACEOF
40890 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
40893 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
40897 unset LIBCURL_CPPFLAGS
40901 unset _libcurl_try_link
40902 unset _libcurl_version_parse
40903 unset _libcurl_config
40904 unset _libcurl_feature
40905 unset _libcurl_features
40906 unset _libcurl_protocol
40907 unset _libcurl_protocols
40908 unset _libcurl_version
40909 unset _libcurl_ldflags
40912 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
40913 # This is the IF-NO path
40916 # This is the IF-YES path
40920 unset _libcurl_with
40922 if test x"$HAVE_CURL" = x"yes"; then
40923 LIBS="$LIBCURL $LIBS"
40925 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
40930 { $as_echo "$as_me:$LINENO: checking for curl_off_t" >&5
40931 $as_echo_n "checking for curl_off_t... " >&6; }
40932 if test "${ac_cv_type_curl_off_t+set}" = set; then
40933 $as_echo_n "(cached) " >&6
40935 ac_cv_type_curl_off_t=no
40936 cat >conftest.$ac_ext <<_ACEOF
40939 cat confdefs.h >>conftest.$ac_ext
40940 cat >>conftest.$ac_ext <<_ACEOF
40941 /* end confdefs.h. */
40943 #ifdef HAVE_SYS_TYPES_H
40944 #include <sys/types.h>
40946 #ifdef STDC_HEADERS
40947 #include <stdlib.h>
40948 #include <stddef.h>
40950 #include <curl/curl.h>
40957 if (sizeof (curl_off_t))
40963 rm -f conftest.$ac_objext
40964 if { (ac_try="$ac_compile"
40965 case "(($ac_try" in
40966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40967 *) ac_try_echo=$ac_try;;
40969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40970 $as_echo "$ac_try_echo") >&5
40971 (eval "$ac_compile") 2>conftest.er1
40973 grep -v '^ *+' conftest.er1 >conftest.err
40975 cat conftest.err >&5
40976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); } && {
40978 test -z "$ac_c_werror_flag" ||
40979 test ! -s conftest.err
40980 } && test -s conftest.$ac_objext; then
40981 cat >conftest.$ac_ext <<_ACEOF
40984 cat confdefs.h >>conftest.$ac_ext
40985 cat >>conftest.$ac_ext <<_ACEOF
40986 /* end confdefs.h. */
40988 #ifdef HAVE_SYS_TYPES_H
40989 #include <sys/types.h>
40991 #ifdef STDC_HEADERS
40992 #include <stdlib.h>
40993 #include <stddef.h>
40995 #include <curl/curl.h>
41002 if (sizeof ((curl_off_t)))
41008 rm -f conftest.$ac_objext
41009 if { (ac_try="$ac_compile"
41010 case "(($ac_try" in
41011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41012 *) ac_try_echo=$ac_try;;
41014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41015 $as_echo "$ac_try_echo") >&5
41016 (eval "$ac_compile") 2>conftest.er1
41018 grep -v '^ *+' conftest.er1 >conftest.err
41020 cat conftest.err >&5
41021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022 (exit $ac_status); } && {
41023 test -z "$ac_c_werror_flag" ||
41024 test ! -s conftest.err
41025 } && test -s conftest.$ac_objext; then
41028 $as_echo "$as_me: failed program was:" >&5
41029 sed 's/^/| /' conftest.$ac_ext >&5
41031 ac_cv_type_curl_off_t=yes
41034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41036 $as_echo "$as_me: failed program was:" >&5
41037 sed 's/^/| /' conftest.$ac_ext >&5
41042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
41045 $as_echo "$ac_cv_type_curl_off_t" >&6; }
41046 if test "x$ac_cv_type_curl_off_t" = x""yes; then
41051 cat >>confdefs.h <<\_ACEOF
41052 #define curl_off_t off_t
41064 { $as_echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
41065 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
41066 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
41067 $as_echo_n "(cached) " >&6
41069 ac_check_lib_save_LIBS=$LIBS
41070 LIBS="-lcrypto $LIBS"
41071 cat >conftest.$ac_ext <<_ACEOF
41074 cat confdefs.h >>conftest.$ac_ext
41075 cat >>conftest.$ac_ext <<_ACEOF
41076 /* end confdefs.h. */
41078 /* Override any GCC internal prototype to avoid an error.
41079 Use char because int might match the return type of a GCC
41080 builtin and then its argument prototype would still apply. */
41084 char HMAC_CTX_init ();
41088 return HMAC_CTX_init ();
41093 rm -f conftest.$ac_objext conftest$ac_exeext
41094 if { (ac_try="$ac_link"
41095 case "(($ac_try" in
41096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41097 *) ac_try_echo=$ac_try;;
41099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41100 $as_echo "$ac_try_echo") >&5
41101 (eval "$ac_link") 2>conftest.er1
41103 grep -v '^ *+' conftest.er1 >conftest.err
41105 cat conftest.err >&5
41106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41107 (exit $ac_status); } && {
41108 test -z "$ac_c_werror_flag" ||
41109 test ! -s conftest.err
41110 } && test -s conftest$ac_exeext && {
41111 test "$cross_compiling" = yes ||
41112 $as_test_x conftest$ac_exeext
41114 ac_cv_lib_crypto_HMAC_CTX_init=yes
41116 $as_echo "$as_me: failed program was:" >&5
41117 sed 's/^/| /' conftest.$ac_ext >&5
41119 ac_cv_lib_crypto_HMAC_CTX_init=no
41122 rm -rf conftest.dSYM
41123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41124 conftest$ac_exeext conftest.$ac_ext
41125 LIBS=$ac_check_lib_save_LIBS
41127 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
41128 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
41129 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = x""yes; then
41130 cat >>confdefs.h <<_ACEOF
41131 #define HAVE_LIBCRYPTO 1
41134 LIBS="-lcrypto $LIBS"
41145 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
41147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41150 $as_echo_n "checking for $ac_header... " >&6; }
41151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41152 $as_echo_n "(cached) " >&6
41154 ac_res=`eval 'as_val=${'$as_ac_Header'}
41155 $as_echo "$as_val"'`
41156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41157 $as_echo "$ac_res" >&6; }
41159 # Is the header compilable?
41160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
41161 $as_echo_n "checking $ac_header usability... " >&6; }
41162 cat >conftest.$ac_ext <<_ACEOF
41165 cat confdefs.h >>conftest.$ac_ext
41166 cat >>conftest.$ac_ext <<_ACEOF
41167 /* end confdefs.h. */
41168 $ac_includes_default
41169 #include <$ac_header>
41171 rm -f conftest.$ac_objext
41172 if { (ac_try="$ac_compile"
41173 case "(($ac_try" in
41174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41175 *) ac_try_echo=$ac_try;;
41177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41178 $as_echo "$ac_try_echo") >&5
41179 (eval "$ac_compile") 2>conftest.er1
41181 grep -v '^ *+' conftest.er1 >conftest.err
41183 cat conftest.err >&5
41184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41185 (exit $ac_status); } && {
41186 test -z "$ac_c_werror_flag" ||
41187 test ! -s conftest.err
41188 } && test -s conftest.$ac_objext; then
41189 ac_header_compiler=yes
41191 $as_echo "$as_me: failed program was:" >&5
41192 sed 's/^/| /' conftest.$ac_ext >&5
41194 ac_header_compiler=no
41197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41199 $as_echo "$ac_header_compiler" >&6; }
41201 # Is the header present?
41202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41203 $as_echo_n "checking $ac_header presence... " >&6; }
41204 cat >conftest.$ac_ext <<_ACEOF
41207 cat confdefs.h >>conftest.$ac_ext
41208 cat >>conftest.$ac_ext <<_ACEOF
41209 /* end confdefs.h. */
41210 #include <$ac_header>
41212 if { (ac_try="$ac_cpp conftest.$ac_ext"
41213 case "(($ac_try" in
41214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41215 *) ac_try_echo=$ac_try;;
41217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41218 $as_echo "$ac_try_echo") >&5
41219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41221 grep -v '^ *+' conftest.er1 >conftest.err
41223 cat conftest.err >&5
41224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41225 (exit $ac_status); } >/dev/null && {
41226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41227 test ! -s conftest.err
41229 ac_header_preproc=yes
41231 $as_echo "$as_me: failed program was:" >&5
41232 sed 's/^/| /' conftest.$ac_ext >&5
41234 ac_header_preproc=no
41237 rm -f conftest.err conftest.$ac_ext
41238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41239 $as_echo "$ac_header_preproc" >&6; }
41241 # So? What about this header?
41242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41248 ac_header_preproc=yes
41251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41254 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41258 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41267 $as_echo_n "checking for $ac_header... " >&6; }
41268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41269 $as_echo_n "(cached) " >&6
41271 eval "$as_ac_Header=\$ac_header_preproc"
41273 ac_res=`eval 'as_val=${'$as_ac_Header'}
41274 $as_echo "$as_val"'`
41275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41276 $as_echo "$ac_res" >&6; }
41279 as_val=`eval 'as_val=${'$as_ac_Header'}
41280 $as_echo "$as_val"'`
41281 if test "x$as_val" = x""yes; then
41282 cat >>confdefs.h <<_ACEOF
41283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41285 found_hmac_h=yes; break
41290 if test x"$found_hmac_h" != x"yes"; then
41298 # Check whether --enable-s3-device was given.
41299 if test "${enable_s3_device+set}" = set; then
41300 enableval=$enable_s3_device; WANT_S3_DEVICE=$enableval
41302 WANT_S3_DEVICE=maybe
41306 { $as_echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
41307 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
41308 # if the user didn't specify 'no', then check for support
41309 if test x"$WANT_S3_DEVICE" != x"no"; then
41310 if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
41313 # no support -- if the user explicitly enabled the device,
41314 # then this is an error
41315 if test x"$WANT_S3_DEVICE" = x"yes"; then
41316 { $as_echo "$as_me:$LINENO: result: no" >&5
41317 $as_echo "no" >&6; }
41318 { { $as_echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
41319 $as_echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
41320 { (exit 1); exit 1; }; }
41326 { $as_echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
41327 $as_echo "$WANT_S3_DEVICE" >&6; }
41329 if test x"$WANT_S3_DEVICE" = x"yes"; then
41330 WANT_S3_DEVICE_TRUE=
41331 WANT_S3_DEVICE_FALSE='#'
41333 WANT_S3_DEVICE_TRUE='#'
41334 WANT_S3_DEVICE_FALSE=
41338 # Now handle any setup for S3, if we want it.
41339 if test x"$WANT_S3_DEVICE" = x"yes"; then
41341 cat >>confdefs.h <<\_ACEOF
41342 #define WANT_S3_DEVICE /**/
41357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41360 $as_echo_n "checking for $ac_header... " >&6; }
41361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41362 $as_echo_n "(cached) " >&6
41364 ac_res=`eval 'as_val=${'$as_ac_Header'}
41365 $as_echo "$as_val"'`
41366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41367 $as_echo "$ac_res" >&6; }
41369 # Is the header compilable?
41370 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
41371 $as_echo_n "checking $ac_header usability... " >&6; }
41372 cat >conftest.$ac_ext <<_ACEOF
41375 cat confdefs.h >>conftest.$ac_ext
41376 cat >>conftest.$ac_ext <<_ACEOF
41377 /* end confdefs.h. */
41378 $ac_includes_default
41379 #include <$ac_header>
41381 rm -f conftest.$ac_objext
41382 if { (ac_try="$ac_compile"
41383 case "(($ac_try" in
41384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41385 *) ac_try_echo=$ac_try;;
41387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41388 $as_echo "$ac_try_echo") >&5
41389 (eval "$ac_compile") 2>conftest.er1
41391 grep -v '^ *+' conftest.er1 >conftest.err
41393 cat conftest.err >&5
41394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41395 (exit $ac_status); } && {
41396 test -z "$ac_c_werror_flag" ||
41397 test ! -s conftest.err
41398 } && test -s conftest.$ac_objext; then
41399 ac_header_compiler=yes
41401 $as_echo "$as_me: failed program was:" >&5
41402 sed 's/^/| /' conftest.$ac_ext >&5
41404 ac_header_compiler=no
41407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41408 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41409 $as_echo "$ac_header_compiler" >&6; }
41411 # Is the header present?
41412 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41413 $as_echo_n "checking $ac_header presence... " >&6; }
41414 cat >conftest.$ac_ext <<_ACEOF
41417 cat confdefs.h >>conftest.$ac_ext
41418 cat >>conftest.$ac_ext <<_ACEOF
41419 /* end confdefs.h. */
41420 #include <$ac_header>
41422 if { (ac_try="$ac_cpp conftest.$ac_ext"
41423 case "(($ac_try" in
41424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41425 *) ac_try_echo=$ac_try;;
41427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41428 $as_echo "$ac_try_echo") >&5
41429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41431 grep -v '^ *+' conftest.er1 >conftest.err
41433 cat conftest.err >&5
41434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41435 (exit $ac_status); } >/dev/null && {
41436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41437 test ! -s conftest.err
41439 ac_header_preproc=yes
41441 $as_echo "$as_me: failed program was:" >&5
41442 sed 's/^/| /' conftest.$ac_ext >&5
41444 ac_header_preproc=no
41447 rm -f conftest.err conftest.$ac_ext
41448 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41449 $as_echo "$ac_header_preproc" >&6; }
41451 # So? What about this header?
41452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41455 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41458 ac_header_preproc=yes
41461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41462 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41464 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41466 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41468 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41470 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41472 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41476 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41477 $as_echo_n "checking for $ac_header... " >&6; }
41478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41479 $as_echo_n "(cached) " >&6
41481 eval "$as_ac_Header=\$ac_header_preproc"
41483 ac_res=`eval 'as_val=${'$as_ac_Header'}
41484 $as_echo "$as_val"'`
41485 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41486 $as_echo "$ac_res" >&6; }
41489 as_val=`eval 'as_val=${'$as_ac_Header'}
41490 $as_echo "$as_val"'`
41491 if test "x$as_val" = x""yes; then
41492 cat >>confdefs.h <<_ACEOF
41493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41501 # check for MTIOCTOP, an indicator of POSIX tape support
41502 { $as_echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
41503 $as_echo_n "checking for MTIOCTOP... " >&6; }
41504 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
41505 $as_echo_n "(cached) " >&6
41508 cat >conftest.$ac_ext <<_ACEOF
41511 cat confdefs.h >>conftest.$ac_ext
41512 cat >>conftest.$ac_ext <<_ACEOF
41513 /* end confdefs.h. */
41515 #ifdef HAVE_SYS_TAPE_H
41516 # include <sys/tape.h>
41518 #ifdef HAVE_SYS_MTIO_H
41519 # include <sys/mtio.h>
41522 #error MTIOCTOP not defined
41533 rm -f conftest.$ac_objext
41534 if { (ac_try="$ac_compile"
41535 case "(($ac_try" in
41536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41537 *) ac_try_echo=$ac_try;;
41539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41540 $as_echo "$ac_try_echo") >&5
41541 (eval "$ac_compile") 2>conftest.er1
41543 grep -v '^ *+' conftest.er1 >conftest.err
41545 cat conftest.err >&5
41546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41547 (exit $ac_status); } && {
41548 test -z "$ac_c_werror_flag" ||
41549 test ! -s conftest.err
41550 } && test -s conftest.$ac_objext; then
41551 amanda_cv_HAVE_MTIOCTOP=yes
41553 $as_echo "$as_me: failed program was:" >&5
41554 sed 's/^/| /' conftest.$ac_ext >&5
41556 amanda_cv_HAVE_MTIOCTOP=no
41559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41561 HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
41564 { $as_echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
41565 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
41567 # maybe we have no tape device at all (e.g., Mac OS X)?
41568 if test x"$HAVE_MTIOCTOP" = x"yes"; then
41569 want_tape_device=yes
41571 cat >>confdefs.h <<\_ACEOF
41572 #define WANT_TAPE_DEVICE 1
41576 if test -n "$want_tape_device"; then
41577 WANT_TAPE_DEVICE_TRUE=
41578 WANT_TAPE_DEVICE_FALSE='#'
41580 WANT_TAPE_DEVICE_TRUE='#'
41581 WANT_TAPE_DEVICE_FALSE=
41586 # Check for various "mt status" related structure elements.
41588 { $as_echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
41589 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
41590 cat >conftest.$ac_ext <<_ACEOF
41593 cat confdefs.h >>conftest.$ac_ext
41594 cat >>conftest.$ac_ext <<_ACEOF
41595 /* end confdefs.h. */
41598 #include <sys/types.h>
41599 #include <sys/mtio.h>
41614 rm -f conftest.$ac_objext
41615 if { (ac_try="$ac_compile"
41616 case "(($ac_try" in
41617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41618 *) ac_try_echo=$ac_try;;
41620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41621 $as_echo "$ac_try_echo") >&5
41622 (eval "$ac_compile") 2>conftest.er1
41624 grep -v '^ *+' conftest.er1 >conftest.err
41626 cat conftest.err >&5
41627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41628 (exit $ac_status); } && {
41629 test -z "$ac_c_werror_flag" ||
41630 test ! -s conftest.err
41631 } && test -s conftest.$ac_objext; then
41633 { $as_echo "$as_me:$LINENO: result: yes" >&5
41634 $as_echo "yes" >&6; }
41636 cat >>confdefs.h <<\_ACEOF
41637 #define HAVE_MT_FLAGS 1
41642 $as_echo "$as_me: failed program was:" >&5
41643 sed 's/^/| /' conftest.$ac_ext >&5
41646 { $as_echo "$as_me:$LINENO: result: no" >&5
41647 $as_echo "no" >&6; }
41651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41653 { $as_echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
41654 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
41655 mt_fileno_result="found"
41656 cat >conftest.$ac_ext <<_ACEOF
41659 cat confdefs.h >>conftest.$ac_ext
41660 cat >>conftest.$ac_ext <<_ACEOF
41661 /* end confdefs.h. */
41664 #include <sys/types.h>
41665 #include <sys/mtio.h>
41674 ds = buf.mt_fileno;
41680 rm -f conftest.$ac_objext
41681 if { (ac_try="$ac_compile"
41682 case "(($ac_try" in
41683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41684 *) ac_try_echo=$ac_try;;
41686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41687 $as_echo "$ac_try_echo") >&5
41688 (eval "$ac_compile") 2>conftest.er1
41690 grep -v '^ *+' conftest.er1 >conftest.err
41692 cat conftest.err >&5
41693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41694 (exit $ac_status); } && {
41695 test -z "$ac_c_werror_flag" ||
41696 test ! -s conftest.err
41697 } && test -s conftest.$ac_objext; then
41699 { $as_echo "$as_me:$LINENO: result: yes" >&5
41700 $as_echo "yes" >&6; }
41702 cat >>confdefs.h <<\_ACEOF
41703 #define HAVE_MT_FILENO 1
41708 $as_echo "$as_me: failed program was:" >&5
41709 sed 's/^/| /' conftest.$ac_ext >&5
41712 { $as_echo "$as_me:$LINENO: result: no" >&5
41713 $as_echo "no" >&6; }
41717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41719 { $as_echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
41720 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
41721 cat >conftest.$ac_ext <<_ACEOF
41724 cat confdefs.h >>conftest.$ac_ext
41725 cat >>conftest.$ac_ext <<_ACEOF
41726 /* end confdefs.h. */
41729 #include <sys/types.h>
41730 #include <sys/mtio.h>
41745 rm -f conftest.$ac_objext
41746 if { (ac_try="$ac_compile"
41747 case "(($ac_try" in
41748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41749 *) ac_try_echo=$ac_try;;
41751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41752 $as_echo "$ac_try_echo") >&5
41753 (eval "$ac_compile") 2>conftest.er1
41755 grep -v '^ *+' conftest.er1 >conftest.err
41757 cat conftest.err >&5
41758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41759 (exit $ac_status); } && {
41760 test -z "$ac_c_werror_flag" ||
41761 test ! -s conftest.err
41762 } && test -s conftest.$ac_objext; then
41764 { $as_echo "$as_me:$LINENO: result: yes" >&5
41765 $as_echo "yes" >&6; }
41767 cat >>confdefs.h <<\_ACEOF
41768 #define HAVE_MT_BLKNO 1
41773 $as_echo "$as_me: failed program was:" >&5
41774 sed 's/^/| /' conftest.$ac_ext >&5
41777 { $as_echo "$as_me:$LINENO: result: no" >&5
41778 $as_echo "no" >&6; }
41782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41784 { $as_echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
41785 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
41786 cat >conftest.$ac_ext <<_ACEOF
41789 cat confdefs.h >>conftest.$ac_ext
41790 cat >>conftest.$ac_ext <<_ACEOF
41791 /* end confdefs.h. */
41794 #include <sys/types.h>
41795 #include <sys/mtio.h>
41810 rm -f conftest.$ac_objext
41811 if { (ac_try="$ac_compile"
41812 case "(($ac_try" in
41813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41814 *) ac_try_echo=$ac_try;;
41816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41817 $as_echo "$ac_try_echo") >&5
41818 (eval "$ac_compile") 2>conftest.er1
41820 grep -v '^ *+' conftest.er1 >conftest.err
41822 cat conftest.err >&5
41823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824 (exit $ac_status); } && {
41825 test -z "$ac_c_werror_flag" ||
41826 test ! -s conftest.err
41827 } && test -s conftest.$ac_objext; then
41829 { $as_echo "$as_me:$LINENO: result: yes" >&5
41830 $as_echo "yes" >&6; }
41832 cat >>confdefs.h <<\_ACEOF
41833 #define HAVE_MT_DSREG 1
41838 $as_echo "$as_me: failed program was:" >&5
41839 sed 's/^/| /' conftest.$ac_ext >&5
41842 { $as_echo "$as_me:$LINENO: result: no" >&5
41843 $as_echo "no" >&6; }
41847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41849 { $as_echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
41850 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
41851 cat >conftest.$ac_ext <<_ACEOF
41854 cat confdefs.h >>conftest.$ac_ext
41855 cat >>conftest.$ac_ext <<_ACEOF
41856 /* end confdefs.h. */
41859 #include <sys/types.h>
41860 #include <sys/mtio.h>
41875 rm -f conftest.$ac_objext
41876 if { (ac_try="$ac_compile"
41877 case "(($ac_try" in
41878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41879 *) ac_try_echo=$ac_try;;
41881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41882 $as_echo "$ac_try_echo") >&5
41883 (eval "$ac_compile") 2>conftest.er1
41885 grep -v '^ *+' conftest.er1 >conftest.err
41887 cat conftest.err >&5
41888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889 (exit $ac_status); } && {
41890 test -z "$ac_c_werror_flag" ||
41891 test ! -s conftest.err
41892 } && test -s conftest.$ac_objext; then
41894 { $as_echo "$as_me:$LINENO: result: yes" >&5
41895 $as_echo "yes" >&6; }
41897 cat >>confdefs.h <<\_ACEOF
41898 #define HAVE_MT_ERREG 1
41903 $as_echo "$as_me: failed program was:" >&5
41904 sed 's/^/| /' conftest.$ac_ext >&5
41907 { $as_echo "$as_me:$LINENO: result: no" >&5
41908 $as_echo "no" >&6; }
41912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41916 cat >>confdefs.h <<\_ACEOF
41917 #define DEFAULT_TAPE_NON_BLOCKING_OPEN 1
41923 # Check whether --enable-dvdrw-device was given.
41924 if test "${enable_dvdrw_device+set}" = set; then
41925 enableval=$enable_dvdrw_device; WANT_DVDRW_DEVICE=$enableval
41927 WANT_DVDRW_DEVICE=yes
41931 { $as_echo "$as_me:$LINENO: checking whether to include the DVD-RW device" >&5
41932 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
41933 { $as_echo "$as_me:$LINENO: result: $WANT_DVDRW_DEVICE" >&5
41934 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
41936 if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
41937 WANT_DVDRW_DEVICE_TRUE=
41938 WANT_DVDRW_DEVICE_FALSE='#'
41940 WANT_DVDRW_DEVICE_TRUE='#'
41941 WANT_DVDRW_DEVICE_FALSE=
41945 # Now handle any setup for DVDRW, if we want it.
41946 if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
41948 cat >>confdefs.h <<\_ACEOF
41949 #define WANT_DVDRW_DEVICE /**/
41957 # Check whether --enable-ndmp-device was given.
41958 if test "${enable_ndmp_device+set}" = set; then
41959 enableval=$enable_ndmp_device; WANT_NDMP_DEVICE=$enableval
41961 WANT_NDMP_DEVICE=$WANT_NDMP
41965 if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
41966 { { $as_echo "$as_me:$LINENO: error: NDMP support is required to build the ndmp device (--with-ndmp)" >&5
41967 $as_echo "$as_me: error: NDMP support is required to build the ndmp device (--with-ndmp)" >&2;}
41968 { (exit 1); exit 1; }; }
41971 if test x"$WANT_NDMP_DEVICE" = x"true"; then
41973 cat >>confdefs.h <<\_ACEOF
41974 #define WANT_NDMP_DEVICE 1
41979 if test x"$WANT_NDMP_DEVICE" = x"true"; then
41980 WANT_NDMP_DEVICE_TRUE=
41981 WANT_NDMP_DEVICE_FALSE='#'
41983 WANT_NDMP_DEVICE_TRUE='#'
41984 WANT_NDMP_DEVICE_FALSE=
41990 # Security (authentication) mechansims
41995 # Check whether --with-bsd-security was given.
41996 if test "${with_bsd_security+set}" = set; then
41997 withval=$with_bsd_security;
41999 n | no) BSD_SECURITY=no ;;
42000 y | ye | yes) BSD_SECURITY=yes ;;
42001 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
42002 $as_echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
42003 { (exit 1); exit 1; }; }
42010 USE_AMANDAHOSTS=yes
42012 # Check whether --with-amandahosts was given.
42013 if test "${with_amandahosts+set}" = set; then
42014 withval=$with_amandahosts;
42016 n | no ) USE_AMANDAHOSTS=no ;;
42017 y | ye | yes) USE_AMANDAHOSTS=yes ;;
42018 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
42019 $as_echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
42020 { (exit 1); exit 1; }; }
42028 if test "x$BSD_SECURITY" = "xyes"; then
42030 cat >>confdefs.h <<\_ACEOF
42031 #define BSD_SECURITY 1
42034 if test "x$USE_AMANDAHOSTS" = "xyes"; then
42036 cat >>confdefs.h <<\_ACEOF
42037 #define USE_AMANDAHOSTS 1
42043 if test x"$BSD_SECURITY" = x"yes"; then
42044 WANT_BSD_SECURITY_TRUE=
42045 WANT_BSD_SECURITY_FALSE='#'
42047 WANT_BSD_SECURITY_TRUE='#'
42048 WANT_BSD_SECURITY_FALSE=
42055 BSDTCP_SECURITY="yes"
42057 # Check whether --with-bsdtcp-security was given.
42058 if test "${with_bsdtcp_security+set}" = set; then
42059 withval=$with_bsdtcp_security;
42061 n | no) BSDTCP_SECURITY=no ;;
42062 y | ye | yes) BSDTCP_SECURITY=yes ;;
42063 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
42064 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
42065 { (exit 1); exit 1; }; }
42072 if test "x$BSDTCP_SECURITY" = "xyes"; then
42074 cat >>confdefs.h <<\_ACEOF
42075 #define BSDTCP_SECURITY 1
42080 if test x"$BSDTCP_SECURITY" = x"yes"; then
42081 WANT_BSDTCP_SECURITY_TRUE=
42082 WANT_BSDTCP_SECURITY_FALSE='#'
42084 WANT_BSDTCP_SECURITY_TRUE='#'
42085 WANT_BSDTCP_SECURITY_FALSE=
42091 BSDUDP_SECURITY="no"
42093 # Check whether --with-bsdudp-security was given.
42094 if test "${with_bsdudp_security+set}" = set; then
42095 withval=$with_bsdudp_security;
42098 y | ye | yes) BSDUDP_SECURITY=yes ;;
42099 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
42100 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
42101 { (exit 1); exit 1; }; }
42108 if test "x$BSDUDP_SECURITY" = "xyes"; then
42110 cat >>confdefs.h <<\_ACEOF
42111 #define BSDUDP_SECURITY 1
42116 if test x"$BSDUDP_SECURITY" = x"yes"; then
42117 WANT_BSDUDP_SECURITY_TRUE=
42118 WANT_BSDUDP_SECURITY_FALSE='#'
42120 WANT_BSDUDP_SECURITY_TRUE='#'
42121 WANT_BSDUDP_SECURITY_FALSE=
42129 # Check whether --with-rsh-security was given.
42130 if test "${with_rsh_security+set}" = set; then
42131 withval=$with_rsh_security;
42134 y | ye | yes) RSH_SECURITY=yes ;;
42135 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
42136 $as_echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
42137 { (exit 1); exit 1; }; }
42144 if test "x$RSH_SECURITY" = "xyes"; then
42146 cat >>confdefs.h <<\_ACEOF
42147 #define RSH_SECURITY 1
42151 if test x"$RSH_SECURITY" = x"yes"; then
42152 WANT_RSH_SECURITY_TRUE=
42153 WANT_RSH_SECURITY_FALSE='#'
42155 WANT_RSH_SECURITY_TRUE='#'
42156 WANT_RSH_SECURITY_FALSE=
42164 # Check whether --with-ssh-security was given.
42165 if test "${with_ssh_security+set}" = set; then
42166 withval=$with_ssh_security;
42168 n | no) SSH_SECURITY=no ;;
42169 y | ye | yes) SSH_SECURITY=yes ;;
42170 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
42171 $as_echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
42172 { (exit 1); exit 1; }; }
42179 if test "x$SSH_SECURITY" = "xyes"; then
42180 # find the SSH binary
42183 # Extract the first word of "$ac_prog", so it can be a program name with args.
42184 set dummy $ac_prog; ac_word=$2
42185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42186 $as_echo_n "checking for $ac_word... " >&6; }
42187 if test "${ac_cv_path_SSH+set}" = set; then
42188 $as_echo_n "(cached) " >&6
42192 ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
42195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42196 for as_dir in $LOCSYSPATH
42199 test -z "$as_dir" && as_dir=.
42200 for ac_exec_ext in '' $ac_executable_extensions; do
42201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42202 ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
42203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42213 SSH=$ac_cv_path_SSH
42214 if test -n "$SSH"; then
42215 { $as_echo "$as_me:$LINENO: result: $SSH" >&5
42216 $as_echo "$SSH" >&6; }
42218 { $as_echo "$as_me:$LINENO: result: no" >&5
42219 $as_echo "no" >&6; }
42223 test -n "$SSH" && break
42227 # see what options we should use
42229 # Check whether --with-ssh-options was given.
42230 if test "${with_ssh_options+set}" = set; then
42231 withval=$with_ssh_options; SSH_OPTIONS="$withval"
42238 case "$SSH_OPTIONS" in
42239 y | ye | yes | n | no)
42240 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
42241 $as_echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
42242 { (exit 1); exit 1; }; };;
42246 { $as_echo "$as_me:$LINENO: checking SSH options" >&5
42247 $as_echo_n "checking SSH options... " >&6; }
42248 # if we didn't get SSH options from the user, figure them out for ourselves
42249 if test -z "$SSH_OPTIONS"; then
42250 case `$SSH -V 2>&1` in
42251 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
42252 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
42256 # now convert that to a comma-separated list of C strings
42257 eval "set dummy ${SSH_OPTIONS}"; shift
42259 for i in "${@}"; do
42260 quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
42261 SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
42263 { $as_echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
42264 $as_echo "$SSH_OPTIONS" >&6; }
42266 # finally, make the various outputs for all of this
42268 cat >>confdefs.h <<\_ACEOF
42269 #define SSH_SECURITY 1
42273 cat >>confdefs.h <<_ACEOF
42278 cat >>confdefs.h <<_ACEOF
42279 #define SSH_OPTIONS $SSH_OPTIONS
42283 if test x"$SSH_SECURITY" = x"yes"; then
42284 WANT_SSH_SECURITY_TRUE=
42285 WANT_SSH_SECURITY_FALSE='#'
42287 WANT_SSH_SECURITY_TRUE='#'
42288 WANT_SSH_SECURITY_FALSE=
42293 # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
42296 # Specify --with-krb5-security if Kerberos software is in somewhere
42297 # other than the listed KRB5_SPOTS. We only compile kerberos support in
42298 # if the right files are there.
42301 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
42304 # Check whether --with-krb5-security was given.
42305 if test "${with_krb5_security+set}" = set; then
42306 withval=$with_krb5_security;
42308 n | no) KRB5_SECURITY=no ;;
42309 y | ye | yes) KRB5_SECURITY=yes ;;
42310 *) KRB5_SPOTS="$KRB5_SECURITY"
42319 if test "x$KRB5_SECURITY" = "xyes"; then
42320 # if found, force the static versions of these libs (.a) by linking directly
42321 # with the .a files. I don't know how to get -R dependancies checked
42322 # in autoconf at this time. -kashmir
42323 { $as_echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
42324 $as_echo_n "checking for Kerberos V libraries... " >&6; }
42326 for dir in $KRB5_SPOTS; do
42327 for lib in lib lib64; do
42328 k5libdir=${dir}/${lib}
42329 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
42330 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
42331 K5CRYPTO=-lk5crypto
42332 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
42337 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
42338 K5SUPPORT=-lkrb5support
42342 KRB5_DIR_FOUND=$dir
42343 KRB5_LIBDIR_FOUND=$k5libdir
42344 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
42347 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
42348 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
42350 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
42357 if test "$KRB5_DIR_FOUND"; then
42358 { $as_echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
42359 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
42361 # some OS's, such as NetBSD, stick krb5 includes out of the way...
42362 # should probably just use autoconf to look for various include
42363 # options and set them, but don't quite want to do that until I've
42364 # dug into it a bit more.
42366 if test -d "$KRB5_DIR_FOUND/krb5" ; then
42367 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
42370 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
42374 { $as_echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
42375 $as_echo_n "checking for main in -lkrb5support... " >&6; }
42376 if test "${ac_cv_lib_krb5support_main+set}" = set; then
42377 $as_echo_n "(cached) " >&6
42379 ac_check_lib_save_LIBS=$LIBS
42380 LIBS="-lkrb5support $LIBS"
42381 cat >conftest.$ac_ext <<_ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h. */
42397 rm -f conftest.$ac_objext conftest$ac_exeext
42398 if { (ac_try="$ac_link"
42399 case "(($ac_try" in
42400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42401 *) ac_try_echo=$ac_try;;
42403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42404 $as_echo "$ac_try_echo") >&5
42405 (eval "$ac_link") 2>conftest.er1
42407 grep -v '^ *+' conftest.er1 >conftest.err
42409 cat conftest.err >&5
42410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42411 (exit $ac_status); } && {
42412 test -z "$ac_c_werror_flag" ||
42413 test ! -s conftest.err
42414 } && test -s conftest$ac_exeext && {
42415 test "$cross_compiling" = yes ||
42416 $as_test_x conftest$ac_exeext
42418 ac_cv_lib_krb5support_main=yes
42420 $as_echo "$as_me: failed program was:" >&5
42421 sed 's/^/| /' conftest.$ac_ext >&5
42423 ac_cv_lib_krb5support_main=no
42426 rm -rf conftest.dSYM
42427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42428 conftest$ac_exeext conftest.$ac_ext
42429 LIBS=$ac_check_lib_save_LIBS
42431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
42432 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
42433 if test "x$ac_cv_lib_krb5support_main" = x""yes; then
42434 cat >>confdefs.h <<_ACEOF
42435 #define HAVE_LIBKRB5SUPPORT 1
42438 LIBS="-lkrb5support $LIBS"
42442 LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
42446 cat >>confdefs.h <<\_ACEOF
42447 #define KRB5_SECURITY 1
42451 { $as_echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
42452 $as_echo "no krb5 system libraries found" >&6; }
42453 { { $as_echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
42454 $as_echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
42455 { (exit 1); exit 1; }; }
42460 if test x"$KRB5_SECURITY" = x"yes"; then
42461 WANT_KRB5_SECURITY_TRUE=
42462 WANT_KRB5_SECURITY_FALSE='#'
42464 WANT_KRB5_SECURITY_TRUE='#'
42465 WANT_KRB5_SECURITY_FALSE=
42477 for ac_prog in xfsdump
42479 # Extract the first word of "$ac_prog", so it can be a program name with args.
42480 set dummy $ac_prog; ac_word=$2
42481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42482 $as_echo_n "checking for $ac_word... " >&6; }
42483 if test "${ac_cv_path_XFSDUMP+set}" = set; then
42484 $as_echo_n "(cached) " >&6
42488 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
42491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42492 for as_dir in $SYSLOCPATH
42495 test -z "$as_dir" && as_dir=.
42496 for ac_exec_ext in '' $ac_executable_extensions; do
42497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42498 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
42499 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42509 XFSDUMP=$ac_cv_path_XFSDUMP
42510 if test -n "$XFSDUMP"; then
42511 { $as_echo "$as_me:$LINENO: result: $XFSDUMP" >&5
42512 $as_echo "$XFSDUMP" >&6; }
42514 { $as_echo "$as_me:$LINENO: result: no" >&5
42515 $as_echo "no" >&6; }
42519 test -n "$XFSDUMP" && break
42522 for ac_prog in xfsrestore
42524 # Extract the first word of "$ac_prog", so it can be a program name with args.
42525 set dummy $ac_prog; ac_word=$2
42526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42527 $as_echo_n "checking for $ac_word... " >&6; }
42528 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
42529 $as_echo_n "(cached) " >&6
42531 case $XFSRESTORE in
42533 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
42536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42537 for as_dir in $SYSLOCPATH
42540 test -z "$as_dir" && as_dir=.
42541 for ac_exec_ext in '' $ac_executable_extensions; do
42542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42543 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
42544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42554 XFSRESTORE=$ac_cv_path_XFSRESTORE
42555 if test -n "$XFSRESTORE"; then
42556 { $as_echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
42557 $as_echo "$XFSRESTORE" >&6; }
42559 { $as_echo "$as_me:$LINENO: result: no" >&5
42560 $as_echo "no" >&6; }
42564 test -n "$XFSRESTORE" && break
42567 if test "$XFSDUMP" -a "$XFSRESTORE"; then
42569 cat >>confdefs.h <<_ACEOF
42570 #define XFSDUMP "$XFSDUMP"
42574 cat >>confdefs.h <<_ACEOF
42575 #define XFSRESTORE "$XFSRESTORE"
42579 { $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
42580 $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;}
42583 cat <<AAW_EOF >>config.warnings
42584 xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h
42593 # Extract the first word of "vxdump", so it can be a program name with args.
42594 set dummy vxdump; ac_word=$2
42595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42596 $as_echo_n "checking for $ac_word... " >&6; }
42597 if test "${ac_cv_path_VXDUMP+set}" = set; then
42598 $as_echo_n "(cached) " >&6
42602 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
42605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42606 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
42607 for as_dir in $as_dummy
42610 test -z "$as_dir" && as_dir=.
42611 for ac_exec_ext in '' $ac_executable_extensions; do
42612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42613 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
42614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42624 VXDUMP=$ac_cv_path_VXDUMP
42625 if test -n "$VXDUMP"; then
42626 { $as_echo "$as_me:$LINENO: result: $VXDUMP" >&5
42627 $as_echo "$VXDUMP" >&6; }
42629 { $as_echo "$as_me:$LINENO: result: no" >&5
42630 $as_echo "no" >&6; }
42634 # Extract the first word of "vxrestore", so it can be a program name with args.
42635 set dummy vxrestore; ac_word=$2
42636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42637 $as_echo_n "checking for $ac_word... " >&6; }
42638 if test "${ac_cv_path_VXRESTORE+set}" = set; then
42639 $as_echo_n "(cached) " >&6
42643 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
42646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42647 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
42648 for as_dir in $as_dummy
42651 test -z "$as_dir" && as_dir=.
42652 for ac_exec_ext in '' $ac_executable_extensions; do
42653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42654 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
42655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42665 VXRESTORE=$ac_cv_path_VXRESTORE
42666 if test -n "$VXRESTORE"; then
42667 { $as_echo "$as_me:$LINENO: result: $VXRESTORE" >&5
42668 $as_echo "$VXRESTORE" >&6; }
42670 { $as_echo "$as_me:$LINENO: result: no" >&5
42671 $as_echo "no" >&6; }
42675 if test "$VXDUMP" -a "$VXRESTORE"; then
42677 cat >>confdefs.h <<_ACEOF
42678 #define VXDUMP "$VXDUMP"
42682 cat >>confdefs.h <<_ACEOF
42683 #define VXRESTORE "$VXRESTORE"
42691 # Extract the first word of "vdump", so it can be a program name with args.
42692 set dummy vdump; ac_word=$2
42693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42694 $as_echo_n "checking for $ac_word... " >&6; }
42695 if test "${ac_cv_path_VDUMP+set}" = set; then
42696 $as_echo_n "(cached) " >&6
42700 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
42703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42704 for as_dir in $SYSLOCPATH
42707 test -z "$as_dir" && as_dir=.
42708 for ac_exec_ext in '' $ac_executable_extensions; do
42709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42710 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
42711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42721 VDUMP=$ac_cv_path_VDUMP
42722 if test -n "$VDUMP"; then
42723 { $as_echo "$as_me:$LINENO: result: $VDUMP" >&5
42724 $as_echo "$VDUMP" >&6; }
42726 { $as_echo "$as_me:$LINENO: result: no" >&5
42727 $as_echo "no" >&6; }
42731 # Extract the first word of "vrestore", so it can be a program name with args.
42732 set dummy vrestore; ac_word=$2
42733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42734 $as_echo_n "checking for $ac_word... " >&6; }
42735 if test "${ac_cv_path_VRESTORE+set}" = set; then
42736 $as_echo_n "(cached) " >&6
42740 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
42743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42744 for as_dir in $SYSLOCPATH
42747 test -z "$as_dir" && as_dir=.
42748 for ac_exec_ext in '' $ac_executable_extensions; do
42749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42750 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
42751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42761 VRESTORE=$ac_cv_path_VRESTORE
42762 if test -n "$VRESTORE"; then
42763 { $as_echo "$as_me:$LINENO: result: $VRESTORE" >&5
42764 $as_echo "$VRESTORE" >&6; }
42766 { $as_echo "$as_me:$LINENO: result: no" >&5
42767 $as_echo "no" >&6; }
42771 if test "$VDUMP" -a "$VRESTORE"; then
42773 cat >>confdefs.h <<_ACEOF
42774 #define VDUMP "$VDUMP"
42778 cat >>confdefs.h <<_ACEOF
42779 #define VRESTORE "$VRESTORE"
42788 # Set the order of dump programs to look for. Finding the proper file
42789 # system dumping program is problematic. Some systems, notably HP-UX
42790 # and AIX, have both the backup and dump programs. HP-UX can't use the
42791 # the backup program while AIX systems can't use the dump program. So
42792 # a variable is set up here to specify the order of dump programs to
42793 # search for on the system.
42794 DUMP_PROGRAMS="ufsdump dump backup"
42799 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
42803 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
42806 cat >>confdefs.h <<\_ACEOF
42807 #define AIX_BACKUP 1
42816 if test -n "$DUMP_RETURNS_1"; then
42818 cat >>confdefs.h <<\_ACEOF
42819 #define DUMP_RETURNS_1 1
42824 for ac_prog in $DUMP_PROGRAMS
42826 # Extract the first word of "$ac_prog", so it can be a program name with args.
42827 set dummy $ac_prog; ac_word=$2
42828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42829 $as_echo_n "checking for $ac_word... " >&6; }
42830 if test "${ac_cv_path_DUMP+set}" = set; then
42831 $as_echo_n "(cached) " >&6
42835 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
42838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42839 for as_dir in $SYSLOCPATH
42842 test -z "$as_dir" && as_dir=.
42843 for ac_exec_ext in '' $ac_executable_extensions; do
42844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42845 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
42846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42856 DUMP=$ac_cv_path_DUMP
42857 if test -n "$DUMP"; then
42858 { $as_echo "$as_me:$LINENO: result: $DUMP" >&5
42859 $as_echo "$DUMP" >&6; }
42861 { $as_echo "$as_me:$LINENO: result: no" >&5
42862 $as_echo "no" >&6; }
42866 test -n "$DUMP" && break
42869 for ac_prog in ufsrestore restore
42871 # Extract the first word of "$ac_prog", so it can be a program name with args.
42872 set dummy $ac_prog; ac_word=$2
42873 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42874 $as_echo_n "checking for $ac_word... " >&6; }
42875 if test "${ac_cv_path_RESTORE+set}" = set; then
42876 $as_echo_n "(cached) " >&6
42880 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
42883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42884 for as_dir in $SYSLOCPATH
42887 test -z "$as_dir" && as_dir=.
42888 for ac_exec_ext in '' $ac_executable_extensions; do
42889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42890 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
42891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42901 RESTORE=$ac_cv_path_RESTORE
42902 if test -n "$RESTORE"; then
42903 { $as_echo "$as_me:$LINENO: result: $RESTORE" >&5
42904 $as_echo "$RESTORE" >&6; }
42906 { $as_echo "$as_me:$LINENO: result: no" >&5
42907 $as_echo "no" >&6; }
42911 test -n "$RESTORE" && break
42915 # newer versions of GNU tar include a program named 'backup' which
42916 # does *not* implement the expected 'dump' interface. Detect that here
42917 # and pretend we never saw it.
42918 if test -n "$DUMP"; then
42919 if test "`basename $DUMP`" = "backup"; then
42920 backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
42921 if test $? -eq 0; then
42927 if test "$DUMP" -a "$RESTORE"; then
42929 cat >>confdefs.h <<_ACEOF
42930 #define DUMP "$DUMP"
42934 cat >>confdefs.h <<_ACEOF
42935 #define RESTORE "$RESTORE"
42939 # check for an estimate flag
42940 if test -x $DUMP; then
42941 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
42942 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
42943 if test "${amanda_cv_dump_estimate+set}" = set; then
42944 $as_echo_n "(cached) " >&6
42949 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
42952 | $GREP -v Label >conftest.d-E 2>&1'
42953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42954 (eval $ac_try) 2>&5
42956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42957 (exit $ac_status); }; }
42958 cat conftest.d-E >&5
42959 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
42962 | $GREP -v Label >conftest.d-S 2>&1'
42963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42964 (eval $ac_try) 2>&5
42966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42967 (exit $ac_status); }; }
42968 cat conftest.d-S >&5
42969 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
42972 | $GREP -v Label >conftest.d 2>&1'
42973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42974 (eval $ac_try) 2>&5
42976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42977 (exit $ac_status); }; }
42979 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
42980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42981 (eval $ac_try) 2>&5
42983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42984 (exit $ac_status); }; }; then
42985 amanda_cv_dump_estimate=E
42986 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
42987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42988 (eval $ac_try) 2>&5
42990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42991 (exit $ac_status); }; }; then
42992 amanda_cv_dump_estimate=S
42994 amanda_cv_dump_estimate=no
42996 rm -f conftest.d conftest.d-E conftest.d-S
42998 *) amanda_cv_dump_estimate=no
43003 { $as_echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
43004 $as_echo "$amanda_cv_dump_estimate" >&6; }
43007 { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
43008 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
43011 cat <<AAW_EOF >>config.warnings
43012 $DUMP is not executable, cannot run -E/-S test
43016 amanda_cv_dump_estimate=no
43018 if test "x$amanda_cv_dump_estimate" != xno; then
43020 cat >>confdefs.h <<_ACEOF
43021 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
43027 # Check whether --with-dump-honor-nodump was given.
43028 if test "${with_dump_honor_nodump+set}" = set; then
43029 withval=$with_dump_honor_nodump;
43030 if test -x $DUMP; then
43031 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
43032 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
43033 if test "${amanda_cv_honor_nodump+set}" = set; then
43034 $as_echo_n "(cached) " >&6
43039 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
43042 | $GREP -v Label >conftest.d-h 2>&1'
43043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43044 (eval $ac_try) 2>&5
43046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43047 (exit $ac_status); }; }
43048 cat conftest.d-h >&5
43049 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
43052 | $GREP -v Label >conftest.d 2>&1'
43053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43054 (eval $ac_try) 2>&5
43056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43057 (exit $ac_status); }; }
43059 if { ac_try='diff conftest.d-h conftest.d 1>&2'
43060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43061 (eval $ac_try) 2>&5
43063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43064 (exit $ac_status); }; }; then
43065 amanda_cv_honor_nodump=yes
43067 amanda_cv_honor_nodump=no
43069 rm -f conftest.d conftest.d-h
43071 *) amanda_cv_honor_nodump=no
43076 { $as_echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
43077 $as_echo "$amanda_cv_honor_nodump" >&6; }
43080 { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
43081 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
43084 cat <<AAW_EOF >>config.warnings
43085 $DUMP is not executable, cannot run -h test
43089 amanda_cv_honor_nodump=no
43091 if test "x$amanda_cv_honor_nodump" = xyes; then
43093 cat >>confdefs.h <<\_ACEOF
43094 #define HAVE_HONOR_NODUMP 1
43111 # Check whether --with-gnutar was given.
43112 if test "${with_gnutar+set}" = set; then
43113 withval=$with_gnutar;
43116 /*) GNUTAR="$withval";;
43119 *) { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
43120 $as_echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
43121 { (exit 1); exit 1; }; };;
43129 if test "x$GNUTAR" = "xno"; then
43133 for gnutar_name in gtar gnutar tar; do
43134 for ac_prog in $gnutar_name
43136 # Extract the first word of "$ac_prog", so it can be a program name with args.
43137 set dummy $ac_prog; ac_word=$2
43138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43139 $as_echo_n "checking for $ac_word... " >&6; }
43140 if test "${ac_cv_path_GNUTAR+set}" = set; then
43141 $as_echo_n "(cached) " >&6
43145 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
43148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43149 for as_dir in $LOCSYSPATH
43152 test -z "$as_dir" && as_dir=.
43153 for ac_exec_ext in '' $ac_executable_extensions; do
43154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43155 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
43156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43166 GNUTAR=$ac_cv_path_GNUTAR
43167 if test -n "$GNUTAR"; then
43168 { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
43169 $as_echo "$GNUTAR" >&6; }
43171 { $as_echo "$as_me:$LINENO: result: no" >&5
43172 $as_echo "no" >&6; }
43176 test -n "$GNUTAR" && break
43179 if test -n "$GNUTAR"; then
43180 case `"$GNUTAR" --version 2>&1` in
43181 *GNU*tar* | *Free*paxutils* )
43182 # OK, it is GNU tar
43186 if test -n "$OLD_GNUTAR"; then
43188 { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
43189 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
43192 cat <<AAW_EOF >>config.warnings
43193 $GNUTAR is not GNU tar, it will be used.
43200 { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
43201 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
43204 cat <<AAW_EOF >>config.warnings
43205 $GNUTAR is not GNU tar, so it will not be used.
43209 # reset the cache for GNUTAR so AC_PATH_PROGS will search again
43211 unset ac_cv_path_GNUTAR
43219 if test "x$GNUTAR" != "x"; then
43222 cat >>confdefs.h <<_ACEOF
43223 #define GNUTAR "$GNUTAR"
43235 # Check whether --with-star was given.
43236 if test "${with_star+set}" = set; then
43237 withval=$with_star;
43240 /*) STAR="$withval";;
43243 *) { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-star" >&5
43244 $as_echo "$as_me: error: *** You must supply a full pathname to --with-star" >&2;}
43245 { (exit 1); exit 1; }; };;
43253 if test "x$STAR" = "xno"; then
43257 for ac_prog in star
43259 # Extract the first word of "$ac_prog", so it can be a program name with args.
43260 set dummy $ac_prog; ac_word=$2
43261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43262 $as_echo_n "checking for $ac_word... " >&6; }
43263 if test "${ac_cv_path_STAR+set}" = set; then
43264 $as_echo_n "(cached) " >&6
43268 ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
43271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43272 for as_dir in $LOCSYSPATH
43275 test -z "$as_dir" && as_dir=.
43276 for ac_exec_ext in '' $ac_executable_extensions; do
43277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43278 ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
43279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43289 STAR=$ac_cv_path_STAR
43290 if test -n "$STAR"; then
43291 { $as_echo "$as_me:$LINENO: result: $STAR" >&5
43292 $as_echo "$STAR" >&6; }
43294 { $as_echo "$as_me:$LINENO: result: no" >&5
43295 $as_echo "no" >&6; }
43299 test -n "$STAR" && break
43302 if test -n "$STAR"; then
43303 case `"$STAR" --version 2>/dev/null` in
43309 if test -n "$OLD_STAR"; then
43311 { $as_echo "$as_me:$LINENO: WARNING: $STAR is not star, it will be used." >&5
43312 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
43315 cat <<AAW_EOF >>config.warnings
43316 $STAR is not star, it will be used.
43323 { $as_echo "$as_me:$LINENO: WARNING: $STAR is not star, so it will not be used." >&5
43324 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
43327 cat <<AAW_EOF >>config.warnings
43328 $STAR is not star, so it will not be used.
43332 # reset the cache for STAR so AC_PATH_PROGS will search again
43334 unset ac_cv_path_STAR
43341 if test "x$STAR" != "x"; then
43344 cat >>confdefs.h <<_ACEOF
43345 #define STAR "$STAR"
43356 # Check whether --with-smbclient was given.
43357 if test "${with_smbclient+set}" = set; then
43358 withval=$with_smbclient;
43360 /*) SAMBA_CLIENT="$withval";;
43362 n|no) SAMBA_CLIENT=no ;;
43363 *) { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
43364 $as_echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
43365 { (exit 1); exit 1; }; };;
43373 # Check whether --with-samba-user was given.
43374 if test "${with_samba_user+set}" = set; then
43375 withval=$with_samba_user; { { $as_echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
43376 $as_echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
43377 { (exit 1); exit 1; }; }
43382 if test "x$SAMBA_CLIENT" != "xno"; then
43383 # Extract the first word of "smbclient", so it can be a program name with args.
43384 set dummy smbclient; ac_word=$2
43385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43386 $as_echo_n "checking for $ac_word... " >&6; }
43387 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
43388 $as_echo_n "(cached) " >&6
43390 case $SAMBA_CLIENT in
43392 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
43395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43396 for as_dir in $LOCSYSPATH
43399 test -z "$as_dir" && as_dir=.
43400 for ac_exec_ext in '' $ac_executable_extensions; do
43401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43402 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
43403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43413 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
43414 if test -n "$SAMBA_CLIENT"; then
43415 { $as_echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
43416 $as_echo "$SAMBA_CLIENT" >&6; }
43418 { $as_echo "$as_me:$LINENO: result: no" >&5
43419 $as_echo "no" >&6; }
43424 if test ! -z "$SAMBA_CLIENT"; then
43425 case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
43429 *"Connection to nosuchhost.amanda.org failed"*)
43434 { $as_echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
43435 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
43438 cat <<AAW_EOF >>config.warnings
43439 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
43446 if test -n "$SAMBA_CLIENT"; then
43448 cat >>confdefs.h <<_ACEOF
43449 #define SAMBA_CLIENT "$SAMBA_CLIENT"
43453 cat >>confdefs.h <<_ACEOF
43454 #define SAMBA_VERSION $smbversion
43461 if test -n "$SAMBA_CLIENT"; then
43463 WANT_SAMBA_FALSE='#'
43465 WANT_SAMBA_TRUE='#'
43473 # some systems require rundump unconditionally
43475 *-ultrix*) USE_RUNDUMP=yes ;;
43476 *-dg-*) USE_RUNDUMP=yes ;;
43480 # Check whether --with-rundump was given.
43481 if test "${with_rundump+set}" = set; then
43482 withval=$with_rundump;
43484 n | no) USE_RUNDUMP=no ;;
43485 y | ye | yes) USE_RUNDUMP=yes ;;
43486 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
43487 $as_echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
43488 { (exit 1); exit 1; }; };;
43494 if test x"$USE_RUNDUMP" = x"yes"; then
43497 cat >>confdefs.h <<\_ACEOF
43498 #define USE_RUNDUMP 1
43509 # Look for other programs Amanda will use
43513 # Extract the first word of "grep", so it can be a program name with args.
43514 set dummy grep; ac_word=$2
43515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43516 $as_echo_n "checking for $ac_word... " >&6; }
43517 if test "${ac_cv_path_GREP+set}" = set; then
43518 $as_echo_n "(cached) " >&6
43522 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
43525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43526 for as_dir in $LOCSYSPATH
43529 test -z "$as_dir" && as_dir=.
43530 for ac_exec_ext in '' $ac_executable_extensions; do
43531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43532 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
43533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43540 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
43544 GREP=$ac_cv_path_GREP
43545 if test -n "$GREP"; then
43546 { $as_echo "$as_me:$LINENO: result: $GREP" >&5
43547 $as_echo "$GREP" >&6; }
43549 { $as_echo "$as_me:$LINENO: result: no" >&5
43550 $as_echo "no" >&6; }
43555 cat >>confdefs.h <<_ACEOF
43556 #define GREP "$GREP"
43560 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
43561 $as_echo_n "checking for egrep... " >&6; }
43562 if test "${ac_cv_path_EGREP+set}" = set; then
43563 $as_echo_n "(cached) " >&6
43565 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
43566 then ac_cv_path_EGREP="$GREP -E"
43568 if test -z "$EGREP"; then
43569 ac_path_EGREP_found=false
43570 # Loop through the user's path and test for each of PROGNAME-LIST
43571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
43575 test -z "$as_dir" && as_dir=.
43576 for ac_prog in egrep; do
43577 for ac_exec_ext in '' $ac_executable_extensions; do
43578 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
43579 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
43580 # Check for GNU ac_path_EGREP and select it if it is found.
43581 # Check for GNU $ac_path_EGREP
43582 case `"$ac_path_EGREP" --version 2>&1` in
43584 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
43587 $as_echo_n 0123456789 >"conftest.in"
43590 cat "conftest.in" "conftest.in" >"conftest.tmp"
43591 mv "conftest.tmp" "conftest.in"
43592 cp "conftest.in" "conftest.nl"
43593 $as_echo 'EGREP' >> "conftest.nl"
43594 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
43595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
43596 ac_count=`expr $ac_count + 1`
43597 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
43598 # Best one so far, save it but keep looking for a better one
43599 ac_cv_path_EGREP="$ac_path_EGREP"
43600 ac_path_EGREP_max=$ac_count
43602 # 10*(2^10) chars as input seems more than enough
43603 test $ac_count -gt 10 && break
43605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
43608 $ac_path_EGREP_found && break 3
43613 if test -z "$ac_cv_path_EGREP"; then
43614 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
43615 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
43616 { (exit 1); exit 1; }; }
43619 ac_cv_path_EGREP=$EGREP
43624 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
43625 $as_echo "$ac_cv_path_EGREP" >&6; }
43626 EGREP="$ac_cv_path_EGREP"
43633 # Extract the first word of "lint", so it can be a program name with args.
43634 set dummy lint; ac_word=$2
43635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43636 $as_echo_n "checking for $ac_word... " >&6; }
43637 if test "${ac_cv_path_AMLINT+set}" = set; then
43638 $as_echo_n "(cached) " >&6
43642 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
43645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43646 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
43647 for as_dir in $as_dummy
43650 test -z "$as_dir" && as_dir=.
43651 for ac_exec_ext in '' $ac_executable_extensions; do
43652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43653 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
43654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43664 AMLINT=$ac_cv_path_AMLINT
43665 if test -n "$AMLINT"; then
43666 { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
43667 $as_echo "$AMLINT" >&6; }
43669 { $as_echo "$as_me:$LINENO: result: no" >&5
43670 $as_echo "no" >&6; }
43674 if test ! -z "$AMLINT"; then
43675 $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
43676 if test $? -eq 0; then
43677 AMLINTFLAGS="-n -s -u -m -x"
43678 AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
43679 AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
43680 AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
43681 AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
43682 AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
43683 AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
43684 AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
43685 AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
43686 AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
43687 AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
43688 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
43689 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
43690 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
43691 AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
43692 AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
43693 AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
43694 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
43695 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
43696 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
43697 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
43698 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
43699 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
43700 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
43701 AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
43702 AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
43703 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
43704 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
43705 AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
43706 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
43707 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
43708 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
43709 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
43710 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
43711 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
43712 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
43713 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
43714 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
43715 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
43716 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
43717 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
43718 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
43719 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
43720 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
43721 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
43722 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
43723 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
43724 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
43725 AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
43726 AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
43727 AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
43732 # Extract the first word of "splint", so it can be a program name with args.
43733 set dummy splint; ac_word=$2
43734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43735 $as_echo_n "checking for $ac_word... " >&6; }
43736 if test "${ac_cv_path_AMLINT+set}" = set; then
43737 $as_echo_n "(cached) " >&6
43741 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
43744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43745 for as_dir in $SYSLOCPATH
43748 test -z "$as_dir" && as_dir=.
43749 for ac_exec_ext in '' $ac_executable_extensions; do
43750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43751 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
43752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43762 AMLINT=$ac_cv_path_AMLINT
43763 if test -n "$AMLINT"; then
43764 { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
43765 $as_echo "$AMLINT" >&6; }
43767 { $as_echo "$as_me:$LINENO: result: no" >&5
43768 $as_echo "no" >&6; }
43772 if test ! -z "$AMLINT"; then
43774 AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
43776 AMLINT='echo "Error: LINT is not installed" ; false'
43782 for ac_prog in flex lex
43784 # Extract the first word of "$ac_prog", so it can be a program name with args.
43785 set dummy $ac_prog; ac_word=$2
43786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43787 $as_echo_n "checking for $ac_word... " >&6; }
43788 if test "${ac_cv_prog_LEX+set}" = set; then
43789 $as_echo_n "(cached) " >&6
43791 if test -n "$LEX"; then
43792 ac_cv_prog_LEX="$LEX" # Let the user override the test.
43794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43795 for as_dir in $PATH
43798 test -z "$as_dir" && as_dir=.
43799 for ac_exec_ext in '' $ac_executable_extensions; do
43800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43801 ac_cv_prog_LEX="$ac_prog"
43802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43811 LEX=$ac_cv_prog_LEX
43812 if test -n "$LEX"; then
43813 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
43814 $as_echo "$LEX" >&6; }
43816 { $as_echo "$as_me:$LINENO: result: no" >&5
43817 $as_echo "no" >&6; }
43821 test -n "$LEX" && break
43823 test -n "$LEX" || LEX=":"
43825 if test "x$LEX" != "x:"; then
43826 cat >conftest.l <<_ACEOF
43832 e { yyless (input () != 0); }
43833 f { unput (yytext[0]); }
43834 . { BEGIN INITIAL; }
43836 #ifdef YYTEXT_POINTER
43837 extern char *yytext;
43842 return ! yylex () + ! yywrap ();
43845 { (ac_try="$LEX conftest.l"
43846 case "(($ac_try" in
43847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43848 *) ac_try_echo=$ac_try;;
43850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43851 $as_echo "$ac_try_echo") >&5
43852 (eval "$LEX conftest.l") 2>&5
43854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43855 (exit $ac_status); }
43856 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
43857 $as_echo_n "checking lex output file root... " >&6; }
43858 if test "${ac_cv_prog_lex_root+set}" = set; then
43859 $as_echo_n "(cached) " >&6
43862 if test -f lex.yy.c; then
43863 ac_cv_prog_lex_root=lex.yy
43864 elif test -f lexyy.c; then
43865 ac_cv_prog_lex_root=lexyy
43867 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
43868 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
43869 { (exit 1); exit 1; }; }
43872 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
43873 $as_echo "$ac_cv_prog_lex_root" >&6; }
43874 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
43876 if test -z "${LEXLIB+set}"; then
43877 { $as_echo "$as_me:$LINENO: checking lex library" >&5
43878 $as_echo_n "checking lex library... " >&6; }
43879 if test "${ac_cv_lib_lex+set}" = set; then
43880 $as_echo_n "(cached) " >&6
43884 ac_cv_lib_lex='none needed'
43885 for ac_lib in '' -lfl -ll; do
43886 LIBS="$ac_lib $ac_save_LIBS"
43887 cat >conftest.$ac_ext <<_ACEOF
43888 `cat $LEX_OUTPUT_ROOT.c`
43890 rm -f conftest.$ac_objext conftest$ac_exeext
43891 if { (ac_try="$ac_link"
43892 case "(($ac_try" in
43893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43894 *) ac_try_echo=$ac_try;;
43896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43897 $as_echo "$ac_try_echo") >&5
43898 (eval "$ac_link") 2>conftest.er1
43900 grep -v '^ *+' conftest.er1 >conftest.err
43902 cat conftest.err >&5
43903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43904 (exit $ac_status); } && {
43905 test -z "$ac_c_werror_flag" ||
43906 test ! -s conftest.err
43907 } && test -s conftest$ac_exeext && {
43908 test "$cross_compiling" = yes ||
43909 $as_test_x conftest$ac_exeext
43911 ac_cv_lib_lex=$ac_lib
43913 $as_echo "$as_me: failed program was:" >&5
43914 sed 's/^/| /' conftest.$ac_ext >&5
43919 rm -rf conftest.dSYM
43920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43921 conftest$ac_exeext conftest.$ac_ext
43922 test "$ac_cv_lib_lex" != 'none needed' && break
43927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
43928 $as_echo "$ac_cv_lib_lex" >&6; }
43929 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
43933 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
43934 $as_echo_n "checking whether yytext is a pointer... " >&6; }
43935 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
43936 $as_echo_n "(cached) " >&6
43938 # POSIX says lex can declare yytext either as a pointer or an array; the
43939 # default is implementation-dependent. Figure out which it is, since
43940 # not all implementations provide the %pointer and %array declarations.
43941 ac_cv_prog_lex_yytext_pointer=no
43943 LIBS="$LEXLIB $ac_save_LIBS"
43944 cat >conftest.$ac_ext <<_ACEOF
43945 #define YYTEXT_POINTER 1
43946 `cat $LEX_OUTPUT_ROOT.c`
43948 rm -f conftest.$ac_objext conftest$ac_exeext
43949 if { (ac_try="$ac_link"
43950 case "(($ac_try" in
43951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43952 *) ac_try_echo=$ac_try;;
43954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43955 $as_echo "$ac_try_echo") >&5
43956 (eval "$ac_link") 2>conftest.er1
43958 grep -v '^ *+' conftest.er1 >conftest.err
43960 cat conftest.err >&5
43961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962 (exit $ac_status); } && {
43963 test -z "$ac_c_werror_flag" ||
43964 test ! -s conftest.err
43965 } && test -s conftest$ac_exeext && {
43966 test "$cross_compiling" = yes ||
43967 $as_test_x conftest$ac_exeext
43969 ac_cv_prog_lex_yytext_pointer=yes
43971 $as_echo "$as_me: failed program was:" >&5
43972 sed 's/^/| /' conftest.$ac_ext >&5
43977 rm -rf conftest.dSYM
43978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43979 conftest$ac_exeext conftest.$ac_ext
43983 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
43984 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
43985 if test $ac_cv_prog_lex_yytext_pointer = yes; then
43987 cat >>confdefs.h <<\_ACEOF
43988 #define YYTEXT_POINTER 1
43992 rm -f conftest.l $LEX_OUTPUT_ROOT.c
43995 if test "$LEX" = :; then
43996 LEX=${am_missing_run}flex
44001 if test x"$LEX" != x""; then
44002 { $as_echo "$as_me:$LINENO: checking whether lex is broken Solaris (SGU) lex" >&5
44003 $as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
44004 $LEX -V < /dev/null >/dev/null 2>conftest.out
44005 if grep SGU conftest.out >/dev/null; then
44006 { $as_echo "$as_me:$LINENO: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
44007 $as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
44008 LEX='echo no lex equivalent available; false'
44010 { $as_echo "$as_me:$LINENO: result: no" >&5
44011 $as_echo "no" >&6; }
44018 # Extract the first word of "ar", so it can be a program name with args.
44019 set dummy ar; ac_word=$2
44020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44021 $as_echo_n "checking for $ac_word... " >&6; }
44022 if test "${ac_cv_path_AR+set}" = set; then
44023 $as_echo_n "(cached) " >&6
44027 ac_cv_path_AR="$AR" # Let the user override the test with a path.
44030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44031 for as_dir in $LOCSYSPATH
44034 test -z "$as_dir" && as_dir=.
44035 for ac_exec_ext in '' $ac_executable_extensions; do
44036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44037 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
44038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44049 if test -n "$AR"; then
44050 { $as_echo "$as_me:$LINENO: result: $AR" >&5
44051 $as_echo "$AR" >&6; }
44053 { $as_echo "$as_me:$LINENO: result: no" >&5
44054 $as_echo "no" >&6; }
44061 # Extract the first word of "gettext", so it can be a program name with args.
44062 set dummy gettext; ac_word=$2
44063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44064 $as_echo_n "checking for $ac_word... " >&6; }
44065 if test "${ac_cv_path_GETTEXT+set}" = set; then
44066 $as_echo_n "(cached) " >&6
44070 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
44073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44074 for as_dir in $LOCSYSPATH
44077 test -z "$as_dir" && as_dir=.
44078 for ac_exec_ext in '' $ac_executable_extensions; do
44079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44080 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
44081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44091 GETTEXT=$ac_cv_path_GETTEXT
44092 if test -n "$GETTEXT"; then
44093 { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
44094 $as_echo "$GETTEXT" >&6; }
44096 { $as_echo "$as_me:$LINENO: result: no" >&5
44097 $as_echo "no" >&6; }
44102 for ac_prog in gawk mawk nawk awk
44104 # Extract the first word of "$ac_prog", so it can be a program name with args.
44105 set dummy $ac_prog; ac_word=$2
44106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44107 $as_echo_n "checking for $ac_word... " >&6; }
44108 if test "${ac_cv_prog_AWK+set}" = set; then
44109 $as_echo_n "(cached) " >&6
44111 if test -n "$AWK"; then
44112 ac_cv_prog_AWK="$AWK" # Let the user override the test.
44114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44115 for as_dir in $PATH
44118 test -z "$as_dir" && as_dir=.
44119 for ac_exec_ext in '' $ac_executable_extensions; do
44120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44121 ac_cv_prog_AWK="$ac_prog"
44122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44131 AWK=$ac_cv_prog_AWK
44132 if test -n "$AWK"; then
44133 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
44134 $as_echo "$AWK" >&6; }
44136 { $as_echo "$as_me:$LINENO: result: no" >&5
44137 $as_echo "no" >&6; }
44141 test -n "$AWK" && break
44144 for ac_prog in 'bison -y' byacc
44146 # Extract the first word of "$ac_prog", so it can be a program name with args.
44147 set dummy $ac_prog; ac_word=$2
44148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44149 $as_echo_n "checking for $ac_word... " >&6; }
44150 if test "${ac_cv_prog_YACC+set}" = set; then
44151 $as_echo_n "(cached) " >&6
44153 if test -n "$YACC"; then
44154 ac_cv_prog_YACC="$YACC" # Let the user override the test.
44156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44157 for as_dir in $PATH
44160 test -z "$as_dir" && as_dir=.
44161 for ac_exec_ext in '' $ac_executable_extensions; do
44162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44163 ac_cv_prog_YACC="$ac_prog"
44164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44173 YACC=$ac_cv_prog_YACC
44174 if test -n "$YACC"; then
44175 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
44176 $as_echo "$YACC" >&6; }
44178 { $as_echo "$as_me:$LINENO: result: no" >&5
44179 $as_echo "no" >&6; }
44183 test -n "$YACC" && break
44185 test -n "$YACC" || YACC="yacc"
44187 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
44188 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
44189 if test -z "$MKDIR_P"; then
44190 if test "${ac_cv_path_mkdir+set}" = set; then
44191 $as_echo_n "(cached) " >&6
44193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44194 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
44197 test -z "$as_dir" && as_dir=.
44198 for ac_prog in mkdir gmkdir; do
44199 for ac_exec_ext in '' $ac_executable_extensions; do
44200 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
44201 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
44202 'mkdir (GNU coreutils) '* | \
44203 'mkdir (coreutils) '* | \
44204 'mkdir (fileutils) '4.1*)
44205 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
44215 if test "${ac_cv_path_mkdir+set}" = set; then
44216 MKDIR_P="$ac_cv_path_mkdir -p"
44218 # As a last resort, use the slow shell script. Don't cache a
44219 # value for MKDIR_P within a source directory, because that will
44220 # break other packages using the cache if that directory is
44221 # removed, or if the value is a relative name.
44222 test -d ./--version && rmdir ./--version
44223 MKDIR_P="$ac_install_sh -d"
44226 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
44227 $as_echo "$MKDIR_P" >&6; }
44232 # Extract the first word of "dd", so it can be a program name with args.
44233 set dummy dd; ac_word=$2
44234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44235 $as_echo_n "checking for $ac_word... " >&6; }
44236 if test "${ac_cv_path_DD+set}" = set; then
44237 $as_echo_n "(cached) " >&6
44241 ac_cv_path_DD="$DD" # Let the user override the test with a path.
44244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44245 for as_dir in $LOCSYSPATH
44248 test -z "$as_dir" && as_dir=.
44249 for ac_exec_ext in '' $ac_executable_extensions; do
44250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44251 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
44252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44263 if test -n "$DD"; then
44264 { $as_echo "$as_me:$LINENO: result: $DD" >&5
44265 $as_echo "$DD" >&6; }
44267 { $as_echo "$as_me:$LINENO: result: no" >&5
44268 $as_echo "no" >&6; }
44275 # Extract the first word of "bash", so it can be a program name with args.
44276 set dummy bash; ac_word=$2
44277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44278 $as_echo_n "checking for $ac_word... " >&6; }
44279 if test "${ac_cv_path_BASH+set}" = set; then
44280 $as_echo_n "(cached) " >&6
44284 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
44287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44288 for as_dir in $SYSPATH
44291 test -z "$as_dir" && as_dir=.
44292 for ac_exec_ext in '' $ac_executable_extensions; do
44293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44294 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
44295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44305 BASH=$ac_cv_path_BASH
44306 if test -n "$BASH"; then
44307 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
44308 $as_echo "$BASH" >&6; }
44310 { $as_echo "$as_me:$LINENO: result: no" >&5
44311 $as_echo "no" >&6; }
44320 # Extract the first word of "sort", so it can be a program name with args.
44321 set dummy sort; ac_word=$2
44322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44323 $as_echo_n "checking for $ac_word... " >&6; }
44324 if test "${ac_cv_path_SORT+set}" = set; then
44325 $as_echo_n "(cached) " >&6
44329 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
44332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44333 for as_dir in $LOCSYSPATH
44336 test -z "$as_dir" && as_dir=.
44337 for ac_exec_ext in '' $ac_executable_extensions; do
44338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44339 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
44340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44347 test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
44351 SORT=$ac_cv_path_SORT
44352 if test -n "$SORT"; then
44353 { $as_echo "$as_me:$LINENO: result: $SORT" >&5
44354 $as_echo "$SORT" >&6; }
44356 { $as_echo "$as_me:$LINENO: result: no" >&5
44357 $as_echo "no" >&6; }
44362 # sort is only needed in the server build
44363 if test x"$SORT" = x"NONE" && $WANT_SERVER; then
44364 { { $as_echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
44365 $as_echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
44366 { (exit 1); exit 1; }; }
44370 cat >>confdefs.h <<_ACEOF
44371 #define SORT_PATH "$SORT"
44377 for ac_prog in Mail mailx mail
44379 # Extract the first word of "$ac_prog", so it can be a program name with args.
44380 set dummy $ac_prog; ac_word=$2
44381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44382 $as_echo_n "checking for $ac_word... " >&6; }
44383 if test "${ac_cv_path_MAILER+set}" = set; then
44384 $as_echo_n "(cached) " >&6
44388 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
44391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44392 for as_dir in $PATH
44395 test -z "$as_dir" && as_dir=.
44396 for ac_exec_ext in '' $ac_executable_extensions; do
44397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44398 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
44399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44409 MAILER=$ac_cv_path_MAILER
44410 if test -n "$MAILER"; then
44411 { $as_echo "$as_me:$LINENO: result: $MAILER" >&5
44412 $as_echo "$MAILER" >&6; }
44414 { $as_echo "$as_me:$LINENO: result: no" >&5
44415 $as_echo "no" >&6; }
44419 test -n "$MAILER" && break
44421 test -n "$MAILER" || MAILER="NONE"
44423 if test x"$MAILER" = x"NONE"; then
44425 { $as_echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
44426 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
44429 cat <<AAW_EOF >>config.warnings
44430 WARNING: Amanda cannot send mail reports without a mailer.
44436 DEFAULT_MAILER="$MAILER"
44439 cat >>confdefs.h <<_ACEOF
44440 #define DEFAULT_MAILER "$DEFAULT_MAILER"
44447 # Extract the first word of "mt", so it can be a program name with args.
44448 set dummy mt; ac_word=$2
44449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44450 $as_echo_n "checking for $ac_word... " >&6; }
44451 if test "${ac_cv_path_MT+set}" = set; then
44452 $as_echo_n "(cached) " >&6
44456 ac_cv_path_MT="$MT" # Let the user override the test with a path.
44459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44460 for as_dir in $SYSLOCPATH
44463 test -z "$as_dir" && as_dir=.
44464 for ac_exec_ext in '' $ac_executable_extensions; do
44465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44466 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
44467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44474 test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
44479 if test -n "$MT"; then
44480 { $as_echo "$as_me:$LINENO: result: $MT" >&5
44481 $as_echo "$MT" >&6; }
44483 { $as_echo "$as_me:$LINENO: result: no" >&5
44484 $as_echo "no" >&6; }
44490 *-hp-*) MT_FILE_FLAG="-t" ;;
44491 *) MT_FILE_FLAG="-f" ;;
44496 cat >>confdefs.h <<_ACEOF
44497 #define MT_FILE_FLAG "$MT_FILE_FLAG"
44503 # Extract the first word of "mtx", so it can be a program name with args.
44504 set dummy mtx; ac_word=$2
44505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44506 $as_echo_n "checking for $ac_word... " >&6; }
44507 if test "${ac_cv_path_MTX+set}" = set; then
44508 $as_echo_n "(cached) " >&6
44512 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
44515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44516 for as_dir in $LOCSYSPATH
44519 test -z "$as_dir" && as_dir=.
44520 for ac_exec_ext in '' $ac_executable_extensions; do
44521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44522 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
44523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44530 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
44534 MTX=$ac_cv_path_MTX
44535 if test -n "$MTX"; then
44536 { $as_echo "$as_me:$LINENO: result: $MTX" >&5
44537 $as_echo "$MTX" >&6; }
44539 { $as_echo "$as_me:$LINENO: result: no" >&5
44540 $as_echo "no" >&6; }
44549 for ac_prog in lpr lp
44551 # Extract the first word of "$ac_prog", so it can be a program name with args.
44552 set dummy $ac_prog; ac_word=$2
44553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44554 $as_echo_n "checking for $ac_word... " >&6; }
44555 if test "${ac_cv_path_LPR+set}" = set; then
44556 $as_echo_n "(cached) " >&6
44560 ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
44563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44564 for as_dir in $PATH
44567 test -z "$as_dir" && as_dir=.
44568 for ac_exec_ext in '' $ac_executable_extensions; do
44569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44570 ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
44571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44581 LPR=$ac_cv_path_LPR
44582 if test -n "$LPR"; then
44583 { $as_echo "$as_me:$LINENO: result: $LPR" >&5
44584 $as_echo "$LPR" >&6; }
44586 { $as_echo "$as_me:$LINENO: result: no" >&5
44587 $as_echo "no" >&6; }
44591 test -n "$LPR" && break
44594 if test ! -z "$LPR"; then
44596 cat >>confdefs.h <<\_ACEOF
44597 #define HAVE_LPR_CMD 1
44601 { $as_echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
44602 $as_echo_n "checking which flag to use to select a printer... " >&6; }
44603 if test "${amanda_cv_printer_flag+set}" = set; then
44604 $as_echo_n "(cached) " >&6
44607 amanda_cv_printer_flag=$LPRFLAG
44609 lpr|*/lpr) amanda_cv_printer_flag="-P";;
44610 lp|*/lp) amanda_cv_printer_flag="-d";;
44614 { $as_echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
44615 $as_echo "$amanda_cv_printer_flag" >&6; }
44616 if test -z "$amanda_cv_printer_flag"; then
44618 { $as_echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
44619 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
44622 cat <<AAW_EOF >>config.warnings
44623 WARNING: amanda will always print to the default printer
44635 # Extract the first word of "pcat", so it can be a program name with args.
44636 set dummy pcat; ac_word=$2
44637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44638 $as_echo_n "checking for $ac_word... " >&6; }
44639 if test "${ac_cv_path_PCAT+set}" = set; then
44640 $as_echo_n "(cached) " >&6
44644 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
44647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44648 for as_dir in $LOCSYSPATH
44651 test -z "$as_dir" && as_dir=.
44652 for ac_exec_ext in '' $ac_executable_extensions; do
44653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44654 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
44655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44665 PCAT=$ac_cv_path_PCAT
44666 if test -n "$PCAT"; then
44667 { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
44668 $as_echo "$PCAT" >&6; }
44670 { $as_echo "$as_me:$LINENO: result: no" >&5
44671 $as_echo "no" >&6; }
44678 for ac_prog in perl5 perl
44680 # Extract the first word of "$ac_prog", so it can be a program name with args.
44681 set dummy $ac_prog; ac_word=$2
44682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44683 $as_echo_n "checking for $ac_word... " >&6; }
44684 if test "${ac_cv_path_PERL+set}" = set; then
44685 $as_echo_n "(cached) " >&6
44689 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
44692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44693 for as_dir in $LOCSYSPATH
44696 test -z "$as_dir" && as_dir=.
44697 for ac_exec_ext in '' $ac_executable_extensions; do
44698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44699 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
44700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44710 PERL=$ac_cv_path_PERL
44711 if test -n "$PERL"; then
44712 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
44713 $as_echo "$PERL" >&6; }
44715 { $as_echo "$as_me:$LINENO: result: no" >&5
44716 $as_echo "no" >&6; }
44720 test -n "$PERL" && break
44724 # Make sure we have perl
44725 if test -z "$PERL"; then
44726 # Extract the first word of "perl", so it can be a program name with args.
44727 set dummy perl; ac_word=$2
44728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44729 $as_echo_n "checking for $ac_word... " >&6; }
44730 if test "${ac_cv_prog_PERL+set}" = set; then
44731 $as_echo_n "(cached) " >&6
44733 if test -n "$PERL"; then
44734 ac_cv_prog_PERL="$PERL" # Let the user override the test.
44736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44737 for as_dir in $PATH
44740 test -z "$as_dir" && as_dir=.
44741 for ac_exec_ext in '' $ac_executable_extensions; do
44742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44743 ac_cv_prog_PERL="perl"
44744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44753 PERL=$ac_cv_prog_PERL
44754 if test -n "$PERL"; then
44755 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
44756 $as_echo "$PERL" >&6; }
44758 { $as_echo "$as_me:$LINENO: result: no" >&5
44759 $as_echo "no" >&6; }
44765 # Check if version of Perl is sufficient
44766 ac_perl_version="5.6.0"
44768 if test "x$PERL" != "x"; then
44769 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
44770 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
44771 # NB: It would be nice to log the error if there is one, but we cannot rely
44772 # on autoconf internals
44773 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
44774 if test $? -ne 0; then
44775 { $as_echo "$as_me:$LINENO: result: no" >&5
44776 $as_echo "no" >&6; };
44778 { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
44779 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
44780 { (exit 1); exit 1; }; }
44783 { $as_echo "$as_me:$LINENO: result: ok" >&5
44784 $as_echo "ok" >&6; };
44788 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
44789 $as_echo "$as_me: WARNING: could not find perl" >&2;}
44795 for ac_prog in swig
44797 # Extract the first word of "$ac_prog", so it can be a program name with args.
44798 set dummy $ac_prog; ac_word=$2
44799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44800 $as_echo_n "checking for $ac_word... " >&6; }
44801 if test "${ac_cv_path_SWIG+set}" = set; then
44802 $as_echo_n "(cached) " >&6
44806 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
44809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44810 for as_dir in $LOCSYSPATH
44813 test -z "$as_dir" && as_dir=.
44814 for ac_exec_ext in '' $ac_executable_extensions; do
44815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44816 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
44817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44827 SWIG=$ac_cv_path_SWIG
44828 if test -n "$SWIG"; then
44829 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
44830 $as_echo "$SWIG" >&6; }
44832 { $as_echo "$as_me:$LINENO: result: no" >&5
44833 $as_echo "no" >&6; }
44837 test -n "$SWIG" && break
44841 # 1.3.32 introduces a change in the way empty strings are handled (old versions
44842 # returned undef in Perl, while new versions return an empty Perl string)
44843 # 1.3.39 is required for the %begin block
44845 # Extract the first word of "swig", so it can be a program name with args.
44846 set dummy swig; ac_word=$2
44847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44848 $as_echo_n "checking for $ac_word... " >&6; }
44849 if test "${ac_cv_path_SWIG+set}" = set; then
44850 $as_echo_n "(cached) " >&6
44854 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
44857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44858 for as_dir in $PATH
44861 test -z "$as_dir" && as_dir=.
44862 for ac_exec_ext in '' $ac_executable_extensions; do
44863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44864 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
44865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44875 SWIG=$ac_cv_path_SWIG
44876 if test -n "$SWIG"; then
44877 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
44878 $as_echo "$SWIG" >&6; }
44880 { $as_echo "$as_me:$LINENO: result: no" >&5
44881 $as_echo "no" >&6; }
44885 if test -z "$SWIG" ; then
44886 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
44887 elif test -n "1.3.39" ; then
44888 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
44889 $as_echo_n "checking for SWIG version... " >&6; }
44890 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'`
44891 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
44892 $as_echo "$swig_version" >&6; }
44893 if test -n "$swig_version" ; then
44895 # Used to indicate true or false condition
44896 ax_compare_version=false
44898 # Convert the two version strings to be compared into a format that
44899 # allows a simple string comparison. The end result is that a version
44900 # string of the form 1.12.5-r617 will be converted to the form
44901 # 0001001200050617. In other words, each number is zero padded to four
44902 # digits, and non digits are removed.
44904 ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
44905 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
44906 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
44907 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
44911 ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
44912 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
44913 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
44914 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
44918 ax_compare_version=`echo "x$ax_compare_version_A
44919 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
44923 if test "$ax_compare_version" = "true" ; then
44925 SWIG_LIB=`$SWIG -swiglib`
44928 SWIG='echo "Error: SWIG version >= 1.3.39 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
44933 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
44940 # Extract the first word of "ps", so it can be a program name with args.
44941 set dummy ps; ac_word=$2
44942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44943 $as_echo_n "checking for $ac_word... " >&6; }
44944 if test "${ac_cv_path_PS+set}" = set; then
44945 $as_echo_n "(cached) " >&6
44949 ac_cv_path_PS="$PS" # Let the user override the test with a path.
44952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44953 for as_dir in $PATH
44956 test -z "$as_dir" && as_dir=.
44957 for ac_exec_ext in '' $ac_executable_extensions; do
44958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44959 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
44960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44971 if test -n "$PS"; then
44972 { $as_echo "$as_me:$LINENO: result: $PS" >&5
44973 $as_echo "$PS" >&6; }
44975 { $as_echo "$as_me:$LINENO: result: no" >&5
44976 $as_echo "no" >&6; }
44980 { $as_echo "$as_me:$LINENO: checking ps argument to use" >&5
44981 $as_echo_n "checking ps argument to use... " >&6; }
44984 # ps is *very* non-portable, and across many systems, the same option
44985 # (e.g., -e) can mean different things. So this macro tries to
44986 # special-case most known systems, and makes an effort to detect unknown
44990 PS_ARGUMENT="-eo pid,ppid,comm"
44991 PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
44995 PS_ARGUMENT="-eo pid,ppid,command"
44996 PS_ARGUMENT_ARGS="-eo pid,ppid,command"
45000 PS_ARGUMENT="-axo pid,ppid,command"
45001 PS_ARGUMENT_ARGS="-axo pid,ppid,command"
45005 PS_ARGUMENT="-aAco pid,ppid,command"
45006 PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
45010 # Cygwin is special-cased in Amanda::Process
45012 PS_ARGUMENT_ARGS="-ef"
45016 # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
45018 PS_ARGUMENT="-eo pid,ppid,comm"
45019 PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
45024 "-axo pid,ppid,command" \
45025 "-aAco pid,ppid,command" \
45026 "-eo pid,ppid,comm"
45028 ps $try >/dev/null 2>/dev/null
45029 if test $? -eq 0; then
45035 "-axo pid,ppid,command" \
45036 "-aAo pid,ppid,command" \
45037 "-eo pid,ppid,comm"
45039 ps $try >/dev/null 2>/dev/null
45040 if test $? -eq 0; then
45041 PS_ARGUMENT_ARGS="$try"
45045 if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
45046 { { $as_echo "$as_me:$LINENO: error: Can't find ps argument to use." >&5
45047 $as_echo "$as_me: error: Can't find ps argument to use." >&2;}
45048 { (exit 1); exit 1; }; }
45053 { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT" >&5
45054 $as_echo "$PS_ARGUMENT" >&6; }
45056 { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT_ARGS" >&5
45057 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
45062 # Extract the first word of "rpcgen", so it can be a program name with args.
45063 set dummy rpcgen; ac_word=$2
45064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45065 $as_echo_n "checking for $ac_word... " >&6; }
45066 if test "${ac_cv_path_RPCGEN+set}" = set; then
45067 $as_echo_n "(cached) " >&6
45071 ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
45074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45075 for as_dir in $LOCSYSPATH
45078 test -z "$as_dir" && as_dir=.
45079 for ac_exec_ext in '' $ac_executable_extensions; do
45080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45081 ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
45082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45092 RPCGEN=$ac_cv_path_RPCGEN
45093 if test -n "$RPCGEN"; then
45094 { $as_echo "$as_me:$LINENO: result: $RPCGEN" >&5
45095 $as_echo "$RPCGEN" >&6; }
45097 { $as_echo "$as_me:$LINENO: result: no" >&5
45098 $as_echo "no" >&6; }
45106 # Compiler / system characteristics
45112 if test $ac_cv_c_compiler_gnu = yes; then
45113 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
45114 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
45115 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
45116 $as_echo_n "(cached) " >&6
45118 ac_pattern="Autoconf.*'x'"
45119 cat >conftest.$ac_ext <<_ACEOF
45122 cat confdefs.h >>conftest.$ac_ext
45123 cat >>conftest.$ac_ext <<_ACEOF
45124 /* end confdefs.h. */
45128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45129 $EGREP "$ac_pattern" >/dev/null 2>&1; then
45130 ac_cv_prog_gcc_traditional=yes
45132 ac_cv_prog_gcc_traditional=no
45137 if test $ac_cv_prog_gcc_traditional = no; then
45138 cat >conftest.$ac_ext <<_ACEOF
45141 cat confdefs.h >>conftest.$ac_ext
45142 cat >>conftest.$ac_ext <<_ACEOF
45143 /* end confdefs.h. */
45144 #include <termio.h>
45147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45148 $EGREP "$ac_pattern" >/dev/null 2>&1; then
45149 ac_cv_prog_gcc_traditional=yes
45155 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
45156 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
45157 if test $ac_cv_prog_gcc_traditional = yes; then
45158 CC="$CC -traditional"
45162 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
45163 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
45164 if test "${ac_cv_c_const+set}" = set; then
45165 $as_echo_n "(cached) " >&6
45167 cat >conftest.$ac_ext <<_ACEOF
45170 cat confdefs.h >>conftest.$ac_ext
45171 cat >>conftest.$ac_ext <<_ACEOF
45172 /* end confdefs.h. */
45177 /* FIXME: Include the comments suggested by Paul. */
45178 #ifndef __cplusplus
45179 /* Ultrix mips cc rejects this. */
45180 typedef int charset[2];
45182 /* SunOS 4.1.1 cc rejects this. */
45183 char const *const *pcpcc;
45185 /* NEC SVR4.0.2 mips cc rejects this. */
45186 struct point {int x, y;};
45187 static struct point const zero = {0,0};
45188 /* AIX XL C 1.02.0.0 rejects this.
45189 It does not let you subtract one const X* pointer from another in
45190 an arm of an if-expression whose if-part is not a constant
45192 const char *g = "string";
45193 pcpcc = &g + (g ? g-g : 0);
45194 /* HPUX 7.0 cc rejects these. */
45196 ppc = (char**) pcpcc;
45197 pcpcc = (char const *const *) ppc;
45198 { /* SCO 3.2v4 cc rejects this. */
45200 char const *s = 0 ? (char *) 0 : (char const *) 0;
45205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
45206 int x[] = {25, 17};
45207 const int *foo = &x[0];
45210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
45211 typedef const int *iptr;
45215 { /* AIX XL C 1.02.0.0 rejects this saying
45216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
45217 struct s { int j; const int *ap[3]; };
45218 struct s *b; b->j = 5;
45220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
45221 const int foo = 10;
45222 if (!foo) return 0;
45224 return !cs[0] && !zero.x;
45231 rm -f conftest.$ac_objext
45232 if { (ac_try="$ac_compile"
45233 case "(($ac_try" in
45234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45235 *) ac_try_echo=$ac_try;;
45237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45238 $as_echo "$ac_try_echo") >&5
45239 (eval "$ac_compile") 2>conftest.er1
45241 grep -v '^ *+' conftest.er1 >conftest.err
45243 cat conftest.err >&5
45244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45245 (exit $ac_status); } && {
45246 test -z "$ac_c_werror_flag" ||
45247 test ! -s conftest.err
45248 } && test -s conftest.$ac_objext; then
45251 $as_echo "$as_me: failed program was:" >&5
45252 sed 's/^/| /' conftest.$ac_ext >&5
45257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45259 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
45260 $as_echo "$ac_cv_c_const" >&6; }
45261 if test $ac_cv_c_const = no; then
45263 cat >>confdefs.h <<\_ACEOF
45270 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
45271 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
45272 if test "${ac_cv_c_bigendian+set}" = set; then
45273 $as_echo_n "(cached) " >&6
45275 ac_cv_c_bigendian=unknown
45276 # See if we're dealing with a universal compiler.
45277 cat >conftest.$ac_ext <<_ACEOF
45280 cat confdefs.h >>conftest.$ac_ext
45281 cat >>conftest.$ac_ext <<_ACEOF
45282 /* end confdefs.h. */
45283 #ifndef __APPLE_CC__
45284 not a universal capable compiler
45289 rm -f conftest.$ac_objext
45290 if { (ac_try="$ac_compile"
45291 case "(($ac_try" in
45292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45293 *) ac_try_echo=$ac_try;;
45295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45296 $as_echo "$ac_try_echo") >&5
45297 (eval "$ac_compile") 2>conftest.er1
45299 grep -v '^ *+' conftest.er1 >conftest.err
45301 cat conftest.err >&5
45302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45303 (exit $ac_status); } && {
45304 test -z "$ac_c_werror_flag" ||
45305 test ! -s conftest.err
45306 } && test -s conftest.$ac_objext; then
45308 # Check for potential -arch flags. It is not universal unless
45309 # there are some -arch flags. Note that *ppc* also matches
45310 # ppc64. This check is also rather less than ideal.
45311 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
45312 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
45315 $as_echo "$as_me: failed program was:" >&5
45316 sed 's/^/| /' conftest.$ac_ext >&5
45321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45322 if test $ac_cv_c_bigendian = unknown; then
45323 # See if sys/param.h defines the BYTE_ORDER macro.
45324 cat >conftest.$ac_ext <<_ACEOF
45327 cat confdefs.h >>conftest.$ac_ext
45328 cat >>conftest.$ac_ext <<_ACEOF
45329 /* end confdefs.h. */
45330 #include <sys/types.h>
45331 #include <sys/param.h>
45336 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
45337 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
45339 bogus endian macros
45346 rm -f conftest.$ac_objext
45347 if { (ac_try="$ac_compile"
45348 case "(($ac_try" in
45349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45350 *) ac_try_echo=$ac_try;;
45352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45353 $as_echo "$ac_try_echo") >&5
45354 (eval "$ac_compile") 2>conftest.er1
45356 grep -v '^ *+' conftest.er1 >conftest.err
45358 cat conftest.err >&5
45359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45360 (exit $ac_status); } && {
45361 test -z "$ac_c_werror_flag" ||
45362 test ! -s conftest.err
45363 } && test -s conftest.$ac_objext; then
45364 # It does; now see whether it defined to BIG_ENDIAN or not.
45365 cat >conftest.$ac_ext <<_ACEOF
45368 cat confdefs.h >>conftest.$ac_ext
45369 cat >>conftest.$ac_ext <<_ACEOF
45370 /* end confdefs.h. */
45371 #include <sys/types.h>
45372 #include <sys/param.h>
45377 #if BYTE_ORDER != BIG_ENDIAN
45385 rm -f conftest.$ac_objext
45386 if { (ac_try="$ac_compile"
45387 case "(($ac_try" in
45388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45389 *) ac_try_echo=$ac_try;;
45391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45392 $as_echo "$ac_try_echo") >&5
45393 (eval "$ac_compile") 2>conftest.er1
45395 grep -v '^ *+' conftest.er1 >conftest.err
45397 cat conftest.err >&5
45398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45399 (exit $ac_status); } && {
45400 test -z "$ac_c_werror_flag" ||
45401 test ! -s conftest.err
45402 } && test -s conftest.$ac_objext; then
45403 ac_cv_c_bigendian=yes
45405 $as_echo "$as_me: failed program was:" >&5
45406 sed 's/^/| /' conftest.$ac_ext >&5
45408 ac_cv_c_bigendian=no
45411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45413 $as_echo "$as_me: failed program was:" >&5
45414 sed 's/^/| /' conftest.$ac_ext >&5
45419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45421 if test $ac_cv_c_bigendian = unknown; then
45422 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
45423 cat >conftest.$ac_ext <<_ACEOF
45426 cat confdefs.h >>conftest.$ac_ext
45427 cat >>conftest.$ac_ext <<_ACEOF
45428 /* end confdefs.h. */
45429 #include <limits.h>
45434 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
45435 bogus endian macros
45442 rm -f conftest.$ac_objext
45443 if { (ac_try="$ac_compile"
45444 case "(($ac_try" in
45445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45446 *) ac_try_echo=$ac_try;;
45448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45449 $as_echo "$ac_try_echo") >&5
45450 (eval "$ac_compile") 2>conftest.er1
45452 grep -v '^ *+' conftest.er1 >conftest.err
45454 cat conftest.err >&5
45455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45456 (exit $ac_status); } && {
45457 test -z "$ac_c_werror_flag" ||
45458 test ! -s conftest.err
45459 } && test -s conftest.$ac_objext; then
45460 # It does; now see whether it defined to _BIG_ENDIAN or not.
45461 cat >conftest.$ac_ext <<_ACEOF
45464 cat confdefs.h >>conftest.$ac_ext
45465 cat >>conftest.$ac_ext <<_ACEOF
45466 /* end confdefs.h. */
45467 #include <limits.h>
45472 #ifndef _BIG_ENDIAN
45480 rm -f conftest.$ac_objext
45481 if { (ac_try="$ac_compile"
45482 case "(($ac_try" in
45483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45484 *) ac_try_echo=$ac_try;;
45486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45487 $as_echo "$ac_try_echo") >&5
45488 (eval "$ac_compile") 2>conftest.er1
45490 grep -v '^ *+' conftest.er1 >conftest.err
45492 cat conftest.err >&5
45493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45494 (exit $ac_status); } && {
45495 test -z "$ac_c_werror_flag" ||
45496 test ! -s conftest.err
45497 } && test -s conftest.$ac_objext; then
45498 ac_cv_c_bigendian=yes
45500 $as_echo "$as_me: failed program was:" >&5
45501 sed 's/^/| /' conftest.$ac_ext >&5
45503 ac_cv_c_bigendian=no
45506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45508 $as_echo "$as_me: failed program was:" >&5
45509 sed 's/^/| /' conftest.$ac_ext >&5
45514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45516 if test $ac_cv_c_bigendian = unknown; then
45517 # Compile a test program.
45518 if test "$cross_compiling" = yes; then
45519 # Try to guess by grepping values from an object file.
45520 cat >conftest.$ac_ext <<_ACEOF
45523 cat confdefs.h >>conftest.$ac_ext
45524 cat >>conftest.$ac_ext <<_ACEOF
45525 /* end confdefs.h. */
45526 short int ascii_mm[] =
45527 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
45528 short int ascii_ii[] =
45529 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
45530 int use_ascii (int i) {
45531 return ascii_mm[i] + ascii_ii[i];
45533 short int ebcdic_ii[] =
45534 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
45535 short int ebcdic_mm[] =
45536 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
45537 int use_ebcdic (int i) {
45538 return ebcdic_mm[i] + ebcdic_ii[i];
45545 return use_ascii (foo) == use_ebcdic (foo);
45550 rm -f conftest.$ac_objext
45551 if { (ac_try="$ac_compile"
45552 case "(($ac_try" in
45553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45554 *) ac_try_echo=$ac_try;;
45556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45557 $as_echo "$ac_try_echo") >&5
45558 (eval "$ac_compile") 2>conftest.er1
45560 grep -v '^ *+' conftest.er1 >conftest.err
45562 cat conftest.err >&5
45563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45564 (exit $ac_status); } && {
45565 test -z "$ac_c_werror_flag" ||
45566 test ! -s conftest.err
45567 } && test -s conftest.$ac_objext; then
45568 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
45569 ac_cv_c_bigendian=yes
45571 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
45572 if test "$ac_cv_c_bigendian" = unknown; then
45573 ac_cv_c_bigendian=no
45575 # finding both strings is unlikely to happen, but who knows?
45576 ac_cv_c_bigendian=unknown
45580 $as_echo "$as_me: failed program was:" >&5
45581 sed 's/^/| /' conftest.$ac_ext >&5
45586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45588 cat >conftest.$ac_ext <<_ACEOF
45591 cat confdefs.h >>conftest.$ac_ext
45592 cat >>conftest.$ac_ext <<_ACEOF
45593 /* end confdefs.h. */
45594 $ac_includes_default
45599 /* Are we little or big endian? From Harbison&Steele. */
45603 char c[sizeof (long int)];
45606 return u.c[sizeof (long int) - 1] == 1;
45612 rm -f conftest$ac_exeext
45613 if { (ac_try="$ac_link"
45614 case "(($ac_try" in
45615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45616 *) ac_try_echo=$ac_try;;
45618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45619 $as_echo "$ac_try_echo") >&5
45620 (eval "$ac_link") 2>&5
45622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45624 { (case "(($ac_try" in
45625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45626 *) ac_try_echo=$ac_try;;
45628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45629 $as_echo "$ac_try_echo") >&5
45630 (eval "$ac_try") 2>&5
45632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45633 (exit $ac_status); }; }; then
45634 ac_cv_c_bigendian=no
45636 $as_echo "$as_me: program exited with status $ac_status" >&5
45637 $as_echo "$as_me: failed program was:" >&5
45638 sed 's/^/| /' conftest.$ac_ext >&5
45640 ( exit $ac_status )
45641 ac_cv_c_bigendian=yes
45643 rm -rf conftest.dSYM
45644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45650 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
45651 $as_echo "$ac_cv_c_bigendian" >&6; }
45652 case $ac_cv_c_bigendian in #(
45654 cat >>confdefs.h <<\_ACEOF
45655 #define WORDS_BIGENDIAN 1
45662 cat >>confdefs.h <<\_ACEOF
45663 #define AC_APPLE_UNIVERSAL_BUILD 1
45668 { { $as_echo "$as_me:$LINENO: error: unknown endianness
45669 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
45670 $as_echo "$as_me: error: unknown endianness
45671 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
45672 { (exit 1); exit 1; }; } ;;
45676 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
45677 if test "x$GCC" = "xyes"; then
45679 GCC_COMPILER_FALSE='#'
45681 GCC_COMPILER_TRUE='#'
45682 GCC_COMPILER_FALSE=
45693 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
45694 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
45695 if test "x$GCC" = "xyes"; then
45696 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45697 $CC -v --help 2>&1) |
45698 $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
45699 if test $? -eq 0; then
45701 { $as_echo "$as_me:$LINENO: result: yes" >&5
45702 $as_echo "yes" >&6; }
45705 { $as_echo "$as_me:$LINENO: result: no" >&5
45706 $as_echo "no" >&6; }
45710 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45711 $as_echo "no (not using gcc)" >&6; }
45714 if test x"$found_warning" = x"yes"; then
45715 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
45727 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
45728 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
45729 if test "x$GCC" = "xyes"; then
45730 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45731 $CC -v --help 2>&1) |
45732 $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
45733 if test $? -eq 0; then
45735 { $as_echo "$as_me:$LINENO: result: yes" >&5
45736 $as_echo "yes" >&6; }
45739 { $as_echo "$as_me:$LINENO: result: no" >&5
45740 $as_echo "no" >&6; }
45744 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45745 $as_echo "no (not using gcc)" >&6; }
45748 if test x"$found_warning" = x"yes"; then
45749 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
45761 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
45762 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
45763 if test "x$GCC" = "xyes"; then
45764 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45765 $CC -v --help 2>&1) |
45766 $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
45767 if test $? -eq 0; then
45769 { $as_echo "$as_me:$LINENO: result: yes" >&5
45770 $as_echo "yes" >&6; }
45773 { $as_echo "$as_me:$LINENO: result: no" >&5
45774 $as_echo "no" >&6; }
45778 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45779 $as_echo "no (not using gcc)" >&6; }
45782 if test x"$found_warning" = x"yes"; then
45783 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
45795 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
45796 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
45797 if test "x$GCC" = "xyes"; then
45798 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45799 $CC -v --help 2>&1) |
45800 $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
45801 if test $? -eq 0; then
45803 { $as_echo "$as_me:$LINENO: result: yes" >&5
45804 $as_echo "yes" >&6; }
45807 { $as_echo "$as_me:$LINENO: result: no" >&5
45808 $as_echo "no" >&6; }
45812 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45813 $as_echo "no (not using gcc)" >&6; }
45816 if test x"$found_warning" = x"yes"; then
45817 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
45829 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
45830 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
45831 if test "x$GCC" = "xyes"; then
45832 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45833 $CC -v --help 2>&1) |
45834 $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
45835 if test $? -eq 0; then
45837 { $as_echo "$as_me:$LINENO: result: yes" >&5
45838 $as_echo "yes" >&6; }
45841 { $as_echo "$as_me:$LINENO: result: no" >&5
45842 $as_echo "no" >&6; }
45846 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45847 $as_echo "no (not using gcc)" >&6; }
45850 if test x"$found_warning" = x"yes"; then
45851 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
45863 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
45864 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
45865 if test "x$GCC" = "xyes"; then
45866 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45867 $CC -v --help 2>&1) |
45868 $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
45869 if test $? -eq 0; then
45871 { $as_echo "$as_me:$LINENO: result: yes" >&5
45872 $as_echo "yes" >&6; }
45875 { $as_echo "$as_me:$LINENO: result: no" >&5
45876 $as_echo "no" >&6; }
45880 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45881 $as_echo "no (not using gcc)" >&6; }
45884 if test x"$found_warning" = x"yes"; then
45885 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
45897 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat-security" >&5
45898 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
45899 if test "x$GCC" = "xyes"; then
45900 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45901 $CC -v --help 2>&1) |
45902 $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
45903 if test $? -eq 0; then
45905 { $as_echo "$as_me:$LINENO: result: yes" >&5
45906 $as_echo "yes" >&6; }
45909 { $as_echo "$as_me:$LINENO: result: no" >&5
45910 $as_echo "no" >&6; }
45914 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45915 $as_echo "no (not using gcc)" >&6; }
45918 if test x"$found_warning" = x"yes"; then
45919 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
45931 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
45932 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
45933 if test "x$GCC" = "xyes"; then
45934 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45935 $CC -v --help 2>&1) |
45936 $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
45937 if test $? -eq 0; then
45939 { $as_echo "$as_me:$LINENO: result: yes" >&5
45940 $as_echo "yes" >&6; }
45943 { $as_echo "$as_me:$LINENO: result: no" >&5
45944 $as_echo "no" >&6; }
45948 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45949 $as_echo "no (not using gcc)" >&6; }
45952 if test x"$found_warning" = x"yes"; then
45953 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
45965 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
45966 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
45967 if test "x$GCC" = "xyes"; then
45968 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45969 $CC -v --help 2>&1) |
45970 $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
45971 if test $? -eq 0; then
45973 { $as_echo "$as_me:$LINENO: result: yes" >&5
45974 $as_echo "yes" >&6; }
45977 { $as_echo "$as_me:$LINENO: result: no" >&5
45978 $as_echo "no" >&6; }
45982 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45983 $as_echo "no (not using gcc)" >&6; }
45986 if test x"$found_warning" = x"yes"; then
45987 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
45999 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
46000 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
46001 if test "x$GCC" = "xyes"; then
46002 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
46003 $CC -v --help 2>&1) |
46004 $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
46005 if test $? -eq 0; then
46007 { $as_echo "$as_me:$LINENO: result: yes" >&5
46008 $as_echo "yes" >&6; }
46011 { $as_echo "$as_me:$LINENO: result: no" >&5
46012 $as_echo "no" >&6; }
46016 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46017 $as_echo "no (not using gcc)" >&6; }
46020 if test x"$found_warning" = x"yes"; then
46021 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
46030 # test for -W'warning', then add the 'no-' version.
46034 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
46035 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
46036 if test "x$GCC" = "xyes"; then
46037 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
46038 $CC -v --help 2>&1) |
46039 $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
46040 if test $? -eq 0; then
46042 { $as_echo "$as_me:$LINENO: result: yes" >&5
46043 $as_echo "yes" >&6; }
46046 { $as_echo "$as_me:$LINENO: result: no" >&5
46047 $as_echo "no" >&6; }
46051 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46052 $as_echo "no (not using gcc)" >&6; }
46055 if test x"$found_warning" = x"yes"; then
46056 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
46065 # test for -W'warning', then add the 'no-' version.
46069 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
46070 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
46071 if test "x$GCC" = "xyes"; then
46072 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
46073 $CC -v --help 2>&1) |
46074 $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
46075 if test $? -eq 0; then
46077 { $as_echo "$as_me:$LINENO: result: yes" >&5
46078 $as_echo "yes" >&6; }
46081 { $as_echo "$as_me:$LINENO: result: no" >&5
46082 $as_echo "no" >&6; }
46086 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46087 $as_echo "no (not using gcc)" >&6; }
46090 if test x"$found_warning" = x"yes"; then
46091 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
46100 # Check whether --enable-werror was given.
46101 if test "${enable_werror+set}" = set; then
46102 enableval=$enable_werror;
46103 case "$enableval" in
46109 { $as_echo "$as_me:$LINENO: checking for gcc flag -Werror" >&5
46110 $as_echo_n "checking for gcc flag -Werror... " >&6; }
46111 if test "x$GCC" = "xyes"; then
46112 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
46113 $CC -v --help 2>&1) |
46114 $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
46115 if test $? -eq 0; then
46117 { $as_echo "$as_me:$LINENO: result: yes" >&5
46118 $as_echo "yes" >&6; }
46121 { $as_echo "$as_me:$LINENO: result: no" >&5
46122 $as_echo "no" >&6; }
46126 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46127 $as_echo "no (not using gcc)" >&6; }
46130 if test x"$found_warning" = x"yes"; then
46131 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
46146 # Check whether --enable-swig-error was given.
46147 if test "${enable_swig_error+set}" = set; then
46148 enableval=$enable_swig_error;
46149 case "$enableval" in
46151 AMANDA_SWIG_PERL_CFLAGS=-Werror
46154 AMANDA_SWIG_PERL_CFLAGS=
46168 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
46169 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
46174 macro_version='2.2.4'
46175 macro_revision='1.2976'
46189 ltmain="$ac_aux_dir/ltmain.sh"
46191 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
46192 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
46193 if test "${ac_cv_path_SED+set}" = set; then
46194 $as_echo_n "(cached) " >&6
46196 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
46197 for ac_i in 1 2 3 4 5 6 7; do
46198 ac_script="$ac_script$as_nl$ac_script"
46200 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
46201 $as_unset ac_script || ac_script=
46202 if test -z "$SED"; then
46203 ac_path_SED_found=false
46204 # Loop through the user's path and test for each of PROGNAME-LIST
46205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46206 for as_dir in $PATH
46209 test -z "$as_dir" && as_dir=.
46210 for ac_prog in sed gsed; do
46211 for ac_exec_ext in '' $ac_executable_extensions; do
46212 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
46213 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
46214 # Check for GNU ac_path_SED and select it if it is found.
46215 # Check for GNU $ac_path_SED
46216 case `"$ac_path_SED" --version 2>&1` in
46218 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
46221 $as_echo_n 0123456789 >"conftest.in"
46224 cat "conftest.in" "conftest.in" >"conftest.tmp"
46225 mv "conftest.tmp" "conftest.in"
46226 cp "conftest.in" "conftest.nl"
46227 $as_echo '' >> "conftest.nl"
46228 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
46229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46230 ac_count=`expr $ac_count + 1`
46231 if test $ac_count -gt ${ac_path_SED_max-0}; then
46232 # Best one so far, save it but keep looking for a better one
46233 ac_cv_path_SED="$ac_path_SED"
46234 ac_path_SED_max=$ac_count
46236 # 10*(2^10) chars as input seems more than enough
46237 test $ac_count -gt 10 && break
46239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
46242 $ac_path_SED_found && break 3
46247 if test -z "$ac_cv_path_SED"; then
46248 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
46249 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
46250 { (exit 1); exit 1; }; }
46253 ac_cv_path_SED=$SED
46257 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
46258 $as_echo "$ac_cv_path_SED" >&6; }
46259 SED="$ac_cv_path_SED"
46262 test -z "$SED" && SED=sed
46263 Xsed="$SED -e 1s/^X//"
46275 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
46276 $as_echo_n "checking for fgrep... " >&6; }
46277 if test "${ac_cv_path_FGREP+set}" = set; then
46278 $as_echo_n "(cached) " >&6
46280 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
46281 then ac_cv_path_FGREP="$GREP -F"
46283 if test -z "$FGREP"; then
46284 ac_path_FGREP_found=false
46285 # Loop through the user's path and test for each of PROGNAME-LIST
46286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
46290 test -z "$as_dir" && as_dir=.
46291 for ac_prog in fgrep; do
46292 for ac_exec_ext in '' $ac_executable_extensions; do
46293 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
46294 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
46295 # Check for GNU ac_path_FGREP and select it if it is found.
46296 # Check for GNU $ac_path_FGREP
46297 case `"$ac_path_FGREP" --version 2>&1` in
46299 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
46302 $as_echo_n 0123456789 >"conftest.in"
46305 cat "conftest.in" "conftest.in" >"conftest.tmp"
46306 mv "conftest.tmp" "conftest.in"
46307 cp "conftest.in" "conftest.nl"
46308 $as_echo 'FGREP' >> "conftest.nl"
46309 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
46310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46311 ac_count=`expr $ac_count + 1`
46312 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
46313 # Best one so far, save it but keep looking for a better one
46314 ac_cv_path_FGREP="$ac_path_FGREP"
46315 ac_path_FGREP_max=$ac_count
46317 # 10*(2^10) chars as input seems more than enough
46318 test $ac_count -gt 10 && break
46320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
46323 $ac_path_FGREP_found && break 3
46328 if test -z "$ac_cv_path_FGREP"; then
46329 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
46330 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
46331 { (exit 1); exit 1; }; }
46334 ac_cv_path_FGREP=$FGREP
46339 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
46340 $as_echo "$ac_cv_path_FGREP" >&6; }
46341 FGREP="$ac_cv_path_FGREP"
46344 test -z "$GREP" && GREP=grep
46364 # Check whether --with-gnu-ld was given.
46365 if test "${with_gnu_ld+set}" = set; then
46366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
46372 if test "$GCC" = yes; then
46373 # Check if gcc -print-prog-name=ld gives a path.
46374 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
46375 $as_echo_n "checking for ld used by $CC... " >&6; }
46378 # gcc leaves a trailing carriage return which upsets mingw
46379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
46381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
46384 # Accept absolute paths.
46386 re_direlt='/[^/][^/]*/\.\./'
46387 # Canonicalize the pathname of ld
46388 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
46389 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
46390 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
46392 test -z "$LD" && LD="$ac_prog"
46395 # If it fails, then pretend we aren't using GCC.
46399 # If it is relative, then search for the first ld in PATH.
46400 with_gnu_ld=unknown
46403 elif test "$with_gnu_ld" = yes; then
46404 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
46405 $as_echo_n "checking for GNU ld... " >&6; }
46407 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
46408 $as_echo_n "checking for non-GNU ld... " >&6; }
46410 if test "${lt_cv_path_LD+set}" = set; then
46411 $as_echo_n "(cached) " >&6
46413 if test -z "$LD"; then
46414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
46415 for ac_dir in $PATH; do
46417 test -z "$ac_dir" && ac_dir=.
46418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
46419 lt_cv_path_LD="$ac_dir/$ac_prog"
46420 # Check to see if the program is GNU ld. I'd rather use --version,
46421 # but apparently some variants of GNU ld only accept -v.
46422 # Break only if it was the GNU/non-GNU ld that we prefer.
46423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
46424 *GNU* | *'with BFD'*)
46425 test "$with_gnu_ld" != no && break
46428 test "$with_gnu_ld" != yes && break
46435 lt_cv_path_LD="$LD" # Let the user override the test with a path.
46439 LD="$lt_cv_path_LD"
46440 if test -n "$LD"; then
46441 { $as_echo "$as_me:$LINENO: result: $LD" >&5
46442 $as_echo "$LD" >&6; }
46444 { $as_echo "$as_me:$LINENO: result: no" >&5
46445 $as_echo "no" >&6; }
46447 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
46448 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
46449 { (exit 1); exit 1; }; }
46450 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
46451 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
46452 if test "${lt_cv_prog_gnu_ld+set}" = set; then
46453 $as_echo_n "(cached) " >&6
46455 # I'd rather use --version here, but apparently some GNU lds only accept -v.
46456 case `$LD -v 2>&1 </dev/null` in
46457 *GNU* | *'with BFD'*)
46458 lt_cv_prog_gnu_ld=yes
46461 lt_cv_prog_gnu_ld=no
46465 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
46466 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
46467 with_gnu_ld=$lt_cv_prog_gnu_ld
46477 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
46478 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
46479 if test "${lt_cv_path_NM+set}" = set; then
46480 $as_echo_n "(cached) " >&6
46482 if test -n "$NM"; then
46483 # Let the user override the test.
46484 lt_cv_path_NM="$NM"
46486 lt_nm_to_check="${ac_tool_prefix}nm"
46487 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
46488 lt_nm_to_check="$lt_nm_to_check nm"
46490 for lt_tmp_nm in $lt_nm_to_check; do
46491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
46492 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
46494 test -z "$ac_dir" && ac_dir=.
46495 tmp_nm="$ac_dir/$lt_tmp_nm"
46496 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
46497 # Check to see if the nm accepts a BSD-compat flag.
46498 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
46499 # nm: unknown option "B" ignored
46500 # Tru64's nm complains that /dev/null is an invalid object file
46501 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
46502 */dev/null* | *'Invalid file or object type'*)
46503 lt_cv_path_NM="$tmp_nm -B"
46507 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
46509 lt_cv_path_NM="$tmp_nm -p"
46513 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
46514 continue # so that we can try to find one that supports BSD flags
46523 : ${lt_cv_path_NM=no}
46526 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
46527 $as_echo "$lt_cv_path_NM" >&6; }
46528 if test "$lt_cv_path_NM" != "no"; then
46529 NM="$lt_cv_path_NM"
46531 # Didn't find any BSD compatible name lister, look for dumpbin.
46532 if test -n "$ac_tool_prefix"; then
46533 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
46535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
46536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
46537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46538 $as_echo_n "checking for $ac_word... " >&6; }
46539 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
46540 $as_echo_n "(cached) " >&6
46542 if test -n "$DUMPBIN"; then
46543 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
46545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46546 for as_dir in $PATH
46549 test -z "$as_dir" && as_dir=.
46550 for ac_exec_ext in '' $ac_executable_extensions; do
46551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46552 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
46553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46562 DUMPBIN=$ac_cv_prog_DUMPBIN
46563 if test -n "$DUMPBIN"; then
46564 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
46565 $as_echo "$DUMPBIN" >&6; }
46567 { $as_echo "$as_me:$LINENO: result: no" >&5
46568 $as_echo "no" >&6; }
46572 test -n "$DUMPBIN" && break
46575 if test -z "$DUMPBIN"; then
46576 ac_ct_DUMPBIN=$DUMPBIN
46577 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
46579 # Extract the first word of "$ac_prog", so it can be a program name with args.
46580 set dummy $ac_prog; ac_word=$2
46581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46582 $as_echo_n "checking for $ac_word... " >&6; }
46583 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
46584 $as_echo_n "(cached) " >&6
46586 if test -n "$ac_ct_DUMPBIN"; then
46587 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
46589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46590 for as_dir in $PATH
46593 test -z "$as_dir" && as_dir=.
46594 for ac_exec_ext in '' $ac_executable_extensions; do
46595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46596 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
46597 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46606 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
46607 if test -n "$ac_ct_DUMPBIN"; then
46608 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
46609 $as_echo "$ac_ct_DUMPBIN" >&6; }
46611 { $as_echo "$as_me:$LINENO: result: no" >&5
46612 $as_echo "no" >&6; }
46616 test -n "$ac_ct_DUMPBIN" && break
46619 if test "x$ac_ct_DUMPBIN" = x; then
46622 case $cross_compiling:$ac_tool_warned in
46624 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
46625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46626 ac_tool_warned=yes ;;
46628 DUMPBIN=$ac_ct_DUMPBIN
46633 if test "$DUMPBIN" != ":"; then
46637 test -z "$NM" && NM=nm
46644 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
46645 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
46646 if test "${lt_cv_nm_interface+set}" = set; then
46647 $as_echo_n "(cached) " >&6
46649 lt_cv_nm_interface="BSD nm"
46650 echo "int some_variable = 0;" > conftest.$ac_ext
46651 (eval echo "\"\$as_me:46651: $ac_compile\"" >&5)
46652 (eval "$ac_compile" 2>conftest.err)
46653 cat conftest.err >&5
46654 (eval echo "\"\$as_me:46654: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
46655 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
46656 cat conftest.err >&5
46657 (eval echo "\"\$as_me:46657: output\"" >&5)
46658 cat conftest.out >&5
46659 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
46660 lt_cv_nm_interface="MS dumpbin"
46664 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
46665 $as_echo "$lt_cv_nm_interface" >&6; }
46667 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
46668 $as_echo_n "checking whether ln -s works... " >&6; }
46670 if test "$LN_S" = "ln -s"; then
46671 { $as_echo "$as_me:$LINENO: result: yes" >&5
46672 $as_echo "yes" >&6; }
46674 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46675 $as_echo "no, using $LN_S" >&6; }
46678 # find the maximum length of command line arguments
46679 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
46680 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
46681 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
46682 $as_echo_n "(cached) " >&6
46689 # On DJGPP, this test can blow up pretty badly due to problems in libc
46690 # (any single argument exceeding 2000 bytes causes a buffer overrun
46691 # during glob expansion). Even if it were fixed, the result of this
46692 # check would be larger than it should be.
46693 lt_cv_sys_max_cmd_len=12288; # 12K is about right
46697 # Under GNU Hurd, this test is not required because there is
46698 # no limit to the length of command line arguments.
46699 # Libtool will interpret -1 as no limit whatsoever
46700 lt_cv_sys_max_cmd_len=-1;
46704 # On Win9x/ME, this test blows up -- it succeeds, but takes
46705 # about 5 minutes as the teststring grows exponentially.
46706 # Worse, since 9x/ME are not pre-emptively multitasking,
46707 # you end up with a "frozen" computer, even though with patience
46708 # the test eventually succeeds (with a max line length of 256k).
46709 # Instead, let's just punt: use the minimum linelength reported by
46710 # all of the supported platforms: 8192 (on NT/2K/XP).
46711 lt_cv_sys_max_cmd_len=8192;
46715 # On AmigaOS with pdksh, this test takes hours, literally.
46716 # So we just punt and use a minimum line length of 8192.
46717 lt_cv_sys_max_cmd_len=8192;
46720 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
46721 # This has been around since 386BSD, at least. Likely further.
46722 if test -x /sbin/sysctl; then
46723 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
46724 elif test -x /usr/sbin/sysctl; then
46725 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
46727 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
46729 # And add a safety zone
46730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
46731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
46735 # We know the value 262144 and hardcode it with a safety zone (like BSD)
46736 lt_cv_sys_max_cmd_len=196608
46740 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
46741 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
46742 # nice to cause kernel panics so lets avoid the loop below.
46743 # First set a reasonable default.
46744 lt_cv_sys_max_cmd_len=16384
46746 if test -x /sbin/sysconfig; then
46747 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
46748 *1*) lt_cv_sys_max_cmd_len=-1 ;;
46753 lt_cv_sys_max_cmd_len=102400
46755 sysv5* | sco5v6* | sysv4.2uw2*)
46756 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
46757 if test -n "$kargmax"; then
46758 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
46760 lt_cv_sys_max_cmd_len=32768
46764 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
46765 if test -n "$lt_cv_sys_max_cmd_len"; then
46766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
46767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
46769 # Make teststring a little bigger before we do anything with it.
46770 # a 1K string should be a reasonable start.
46771 for i in 1 2 3 4 5 6 7 8 ; do
46772 teststring=$teststring$teststring
46774 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
46775 # If test is not a shell built-in, we'll probably end up computing a
46776 # maximum length that is only half of the actual maximum length, but
46778 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
46779 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
46780 test $i != 17 # 1/2 MB should be enough
46783 teststring=$teststring$teststring
46785 # Only check the string length outside the loop.
46786 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
46788 # Add a significant safety factor because C++ compilers can tack on
46789 # massive amounts of additional arguments before passing them to the
46790 # linker. It appears as though 1/2 is a usable value.
46791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
46798 if test -n $lt_cv_sys_max_cmd_len ; then
46799 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
46800 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
46802 { $as_echo "$as_me:$LINENO: result: none" >&5
46803 $as_echo "none" >&6; }
46805 max_cmd_len=$lt_cv_sys_max_cmd_len
46816 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
46817 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
46818 # Try some XSI features
46820 ( _lt_dummy="a/b/c"
46821 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
46823 && eval 'test $(( 1 + 1 )) -eq 2 \
46824 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
46826 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
46827 $as_echo "$xsi_shell" >&6; }
46830 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
46831 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
46833 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
46835 && lt_shell_append=yes
46836 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
46837 $as_echo "$lt_shell_append" >&6; }
46840 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46850 # test EBCDIC or ASCII
46851 case `echo X|tr X '\101'` in
46852 A) # ASCII based system
46853 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
46854 lt_SP2NL='tr \040 \012'
46855 lt_NL2SP='tr \015\012 \040\040'
46857 *) # EBCDIC based system
46858 lt_SP2NL='tr \100 \n'
46859 lt_NL2SP='tr \r\n \100\100'
46871 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
46872 $as_echo_n "checking for $LD option to reload object files... " >&6; }
46873 if test "${lt_cv_ld_reload_flag+set}" = set; then
46874 $as_echo_n "(cached) " >&6
46876 lt_cv_ld_reload_flag='-r'
46878 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
46879 $as_echo "$lt_cv_ld_reload_flag" >&6; }
46880 reload_flag=$lt_cv_ld_reload_flag
46881 case $reload_flag in
46883 *) reload_flag=" $reload_flag" ;;
46885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
46888 if test "$GCC" = yes; then
46889 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
46891 reload_cmds='$LD$reload_flag -o $output$reload_objs'
46905 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
46906 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
46907 if test "${lt_cv_deplibs_check_method+set}" = set; then
46908 $as_echo_n "(cached) " >&6
46910 lt_cv_file_magic_cmd='$MAGIC_CMD'
46911 lt_cv_file_magic_test_file=
46912 lt_cv_deplibs_check_method='unknown'
46913 # Need to set the preceding variable on all platforms that support
46914 # interlibrary dependencies.
46915 # 'none' -- dependencies not supported.
46916 # `unknown' -- same as none, but documents that we really don't know.
46917 # 'pass_all' -- all dependencies passed with no checks.
46918 # 'test_compile' -- check by making test program.
46919 # 'file_magic [[regex]]' -- check by looking for files in library path
46920 # which responds to the $file_magic_cmd with a given extended regex.
46921 # If you have `file' or equivalent on your system and you're not sure
46922 # whether `pass_all' will *always* work, you probably want this one.
46926 lt_cv_deplibs_check_method=pass_all
46930 lt_cv_deplibs_check_method=pass_all
46934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
46935 lt_cv_file_magic_cmd='/usr/bin/file -L'
46936 lt_cv_file_magic_test_file=/shlib/libc.so
46940 # func_win32_libid is a shell function defined in ltmain.sh
46941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
46942 lt_cv_file_magic_cmd='func_win32_libid'
46946 # Base MSYS/MinGW do not provide the 'file' command needed by
46947 # func_win32_libid shell function, so use a weaker test based on 'objdump',
46948 # unless we find 'file', for example because we are cross-compiling.
46949 if ( file / ) >/dev/null 2>&1; then
46950 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
46951 lt_cv_file_magic_cmd='func_win32_libid'
46953 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
46954 lt_cv_file_magic_cmd='$OBJDUMP -f'
46958 darwin* | rhapsody*)
46959 lt_cv_deplibs_check_method=pass_all
46962 freebsd* | dragonfly*)
46963 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
46966 # Not sure whether the presence of OpenBSD here was a mistake.
46967 # Let's accept both of them until this is cleared up.
46968 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
46969 lt_cv_file_magic_cmd=/usr/bin/file
46970 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
46974 lt_cv_deplibs_check_method=pass_all
46979 lt_cv_deplibs_check_method=pass_all
46982 hpux10.20* | hpux11*)
46983 lt_cv_file_magic_cmd=/usr/bin/file
46986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
46987 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
46990 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]'
46991 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
46994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
46995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
47001 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
47002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
47005 irix5* | irix6* | nonstopux*)
47007 *-32|*"-32 ") libmagic=32-bit;;
47008 *-n32|*"-n32 ") libmagic=N32;;
47009 *-64|*"-64 ") libmagic=64-bit;;
47010 *) libmagic=never-match;;
47012 lt_cv_deplibs_check_method=pass_all
47015 # This must be Linux ELF.
47016 linux* | k*bsd*-gnu)
47017 lt_cv_deplibs_check_method=pass_all
47021 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
47022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
47024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
47029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
47030 lt_cv_file_magic_cmd=/usr/bin/file
47031 lt_cv_file_magic_test_file=/usr/lib/libnls.so
47035 lt_cv_deplibs_check_method=pass_all
47039 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
47040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
47042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
47046 osf3* | osf4* | osf5*)
47047 lt_cv_deplibs_check_method=pass_all
47051 lt_cv_deplibs_check_method=pass_all
47055 lt_cv_deplibs_check_method=pass_all
47058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
47059 lt_cv_deplibs_check_method=pass_all
47063 case $host_vendor in
47065 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]'
47066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
47069 lt_cv_deplibs_check_method=pass_all
47072 lt_cv_file_magic_cmd='/bin/file'
47073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
47076 lt_cv_file_magic_cmd='/bin/file'
47077 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
47078 lt_cv_file_magic_test_file=/lib/libc.so
47081 lt_cv_deplibs_check_method=pass_all
47084 lt_cv_deplibs_check_method=pass_all
47090 lt_cv_deplibs_check_method=pass_all
47095 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
47096 $as_echo "$lt_cv_deplibs_check_method" >&6; }
47097 file_magic_cmd=$lt_cv_file_magic_cmd
47098 deplibs_check_method=$lt_cv_deplibs_check_method
47099 test -z "$deplibs_check_method" && deplibs_check_method=unknown
47112 if test -n "$ac_tool_prefix"; then
47113 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47114 set dummy ${ac_tool_prefix}ar; ac_word=$2
47115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47116 $as_echo_n "checking for $ac_word... " >&6; }
47117 if test "${ac_cv_prog_AR+set}" = set; then
47118 $as_echo_n "(cached) " >&6
47120 if test -n "$AR"; then
47121 ac_cv_prog_AR="$AR" # Let the user override the test.
47123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47124 for as_dir in $PATH
47127 test -z "$as_dir" && as_dir=.
47128 for ac_exec_ext in '' $ac_executable_extensions; do
47129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47130 ac_cv_prog_AR="${ac_tool_prefix}ar"
47131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47141 if test -n "$AR"; then
47142 { $as_echo "$as_me:$LINENO: result: $AR" >&5
47143 $as_echo "$AR" >&6; }
47145 { $as_echo "$as_me:$LINENO: result: no" >&5
47146 $as_echo "no" >&6; }
47151 if test -z "$ac_cv_prog_AR"; then
47153 # Extract the first word of "ar", so it can be a program name with args.
47154 set dummy ar; ac_word=$2
47155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47156 $as_echo_n "checking for $ac_word... " >&6; }
47157 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47158 $as_echo_n "(cached) " >&6
47160 if test -n "$ac_ct_AR"; then
47161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47164 for as_dir in $PATH
47167 test -z "$as_dir" && as_dir=.
47168 for ac_exec_ext in '' $ac_executable_extensions; do
47169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47170 ac_cv_prog_ac_ct_AR="ar"
47171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47180 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47181 if test -n "$ac_ct_AR"; then
47182 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47183 $as_echo "$ac_ct_AR" >&6; }
47185 { $as_echo "$as_me:$LINENO: result: no" >&5
47186 $as_echo "no" >&6; }
47189 if test "x$ac_ct_AR" = x; then
47192 case $cross_compiling:$ac_tool_warned in
47194 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
47195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47196 ac_tool_warned=yes ;;
47201 AR="$ac_cv_prog_AR"
47204 test -z "$AR" && AR=ar
47205 test -z "$AR_FLAGS" && AR_FLAGS=cru
47217 if test -n "$ac_tool_prefix"; then
47218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47219 set dummy ${ac_tool_prefix}strip; ac_word=$2
47220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47221 $as_echo_n "checking for $ac_word... " >&6; }
47222 if test "${ac_cv_prog_STRIP+set}" = set; then
47223 $as_echo_n "(cached) " >&6
47225 if test -n "$STRIP"; then
47226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47229 for as_dir in $PATH
47232 test -z "$as_dir" && as_dir=.
47233 for ac_exec_ext in '' $ac_executable_extensions; do
47234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47245 STRIP=$ac_cv_prog_STRIP
47246 if test -n "$STRIP"; then
47247 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
47248 $as_echo "$STRIP" >&6; }
47250 { $as_echo "$as_me:$LINENO: result: no" >&5
47251 $as_echo "no" >&6; }
47256 if test -z "$ac_cv_prog_STRIP"; then
47258 # Extract the first word of "strip", so it can be a program name with args.
47259 set dummy strip; ac_word=$2
47260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47261 $as_echo_n "checking for $ac_word... " >&6; }
47262 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47263 $as_echo_n "(cached) " >&6
47265 if test -n "$ac_ct_STRIP"; then
47266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47269 for as_dir in $PATH
47272 test -z "$as_dir" && as_dir=.
47273 for ac_exec_ext in '' $ac_executable_extensions; do
47274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47275 ac_cv_prog_ac_ct_STRIP="strip"
47276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47286 if test -n "$ac_ct_STRIP"; then
47287 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47288 $as_echo "$ac_ct_STRIP" >&6; }
47290 { $as_echo "$as_me:$LINENO: result: no" >&5
47291 $as_echo "no" >&6; }
47294 if test "x$ac_ct_STRIP" = x; then
47297 case $cross_compiling:$ac_tool_warned in
47299 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
47300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47301 ac_tool_warned=yes ;;
47306 STRIP="$ac_cv_prog_STRIP"
47309 test -z "$STRIP" && STRIP=:
47316 if test -n "$ac_tool_prefix"; then
47317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47320 $as_echo_n "checking for $ac_word... " >&6; }
47321 if test "${ac_cv_prog_RANLIB+set}" = set; then
47322 $as_echo_n "(cached) " >&6
47324 if test -n "$RANLIB"; then
47325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47328 for as_dir in $PATH
47331 test -z "$as_dir" && as_dir=.
47332 for ac_exec_ext in '' $ac_executable_extensions; do
47333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47344 RANLIB=$ac_cv_prog_RANLIB
47345 if test -n "$RANLIB"; then
47346 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
47347 $as_echo "$RANLIB" >&6; }
47349 { $as_echo "$as_me:$LINENO: result: no" >&5
47350 $as_echo "no" >&6; }
47355 if test -z "$ac_cv_prog_RANLIB"; then
47356 ac_ct_RANLIB=$RANLIB
47357 # Extract the first word of "ranlib", so it can be a program name with args.
47358 set dummy ranlib; ac_word=$2
47359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47360 $as_echo_n "checking for $ac_word... " >&6; }
47361 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47362 $as_echo_n "(cached) " >&6
47364 if test -n "$ac_ct_RANLIB"; then
47365 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47368 for as_dir in $PATH
47371 test -z "$as_dir" && as_dir=.
47372 for ac_exec_ext in '' $ac_executable_extensions; do
47373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47374 ac_cv_prog_ac_ct_RANLIB="ranlib"
47375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47384 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47385 if test -n "$ac_ct_RANLIB"; then
47386 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47387 $as_echo "$ac_ct_RANLIB" >&6; }
47389 { $as_echo "$as_me:$LINENO: result: no" >&5
47390 $as_echo "no" >&6; }
47393 if test "x$ac_ct_RANLIB" = x; then
47396 case $cross_compiling:$ac_tool_warned in
47398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
47399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47400 ac_tool_warned=yes ;;
47402 RANLIB=$ac_ct_RANLIB
47405 RANLIB="$ac_cv_prog_RANLIB"
47408 test -z "$RANLIB" && RANLIB=:
47415 # Determine commands to create old-style static archives.
47416 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
47417 old_postinstall_cmds='chmod 644 $oldlib'
47418 old_postuninstall_cmds=
47420 if test -n "$RANLIB"; then
47423 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
47426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
47429 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
47465 # If no C compiler was specified, use CC.
47468 # If no C compiler flags were specified, use CFLAGS.
47469 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
47471 # Allow CC to be a program name with arguments.
47475 # Check for command to grab the raw symbol name followed by C symbol from nm.
47476 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
47477 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
47478 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
47479 $as_echo_n "(cached) " >&6
47482 # These are sane defaults that work on at least a few old systems.
47483 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
47485 # Character class describing NM global symbol codes.
47486 symcode='[BCDEGRST]'
47488 # Regexp to match symbols that can be accessed directly from C.
47489 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
47491 # Define system-specific variables.
47496 cygwin* | mingw* | pw32*)
47497 symcode='[ABCDGISTW]'
47500 if test "$host_cpu" = ia64; then
47501 symcode='[ABCDEGRST]'
47504 irix* | nonstopux*)
47505 symcode='[BCDEGRST]'
47508 symcode='[BCDEGQRST]'
47519 sysv5* | sco5v6* | unixware* | OpenUNIX*)
47527 # If we're using GNU nm, then use its standard symbol codes.
47528 case `$NM -V 2>&1` in
47529 *GNU* | *'with BFD'*)
47530 symcode='[ABCDGIRSTW]' ;;
47533 # Transform an extracted symbol line into a proper C declaration.
47534 # Some systems (esp. on ia64) link data and code symbols differently,
47535 # so use this general approach.
47536 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
47538 # Transform an extracted symbol line into symbol name and symbol address
47539 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
47540 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
47542 # Handle CRLF in mingw tool chain
47546 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
47550 # Try without a prefix underscore, then with it.
47551 for ac_symprfx in "" "_"; do
47553 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
47554 symxfrm="\\1 $ac_symprfx\\2 \\2"
47556 # Write the raw and C identifiers.
47557 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
47558 # Fake it for dumpbin and say T for any non-static function
47559 # and D for any global variable.
47560 # Also find C++ and __fastcall symbols from MSVC++,
47561 # which start with @ or ?.
47562 lt_cv_sys_global_symbol_pipe="$AWK '"\
47563 " {last_section=section; section=\$ 3};"\
47564 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
47565 " \$ 0!~/External *\|/{next};"\
47566 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
47567 " {if(hide[section]) next};"\
47568 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
47569 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
47570 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
47571 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
47572 " ' prfx=^$ac_symprfx"
47574 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
47577 # Check to see that the pipe works correctly.
47581 cat > conftest.$ac_ext <<_LT_EOF
47586 void nm_test_func(void);
47587 void nm_test_func(void){}
47591 int main(){nm_test_var='a';nm_test_func();return(0);}
47594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47595 (eval $ac_compile) 2>&5
47597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47598 (exit $ac_status); }; then
47599 # Now try to grab the symbols.
47601 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
47602 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
47604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47605 (exit $ac_status); } && test -s "$nlist"; then
47606 # Try sorting and uniquifying the output.
47607 if sort "$nlist" | uniq > "$nlist"T; then
47608 mv -f "$nlist"T "$nlist"
47613 # Make sure that we snagged all the symbols we need.
47614 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
47615 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
47616 cat <<_LT_EOF > conftest.$ac_ext
47622 # Now generate the symbol file.
47623 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
47625 cat <<_LT_EOF >> conftest.$ac_ext
47627 /* The mapping between symbol names and symbols. */
47632 lt__PROGRAM__LTX_preloaded_symbols[] =
47634 { "@PROGRAM@", (void *) 0 },
47636 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
47637 cat <<\_LT_EOF >> conftest.$ac_ext
47641 /* This works around a problem in FreeBSD linker */
47642 #ifdef FREEBSD_WORKAROUND
47643 static const void *lt_preloaded_setup() {
47644 return lt__PROGRAM__LTX_preloaded_symbols;
47652 # Now try linking the two files.
47653 mv conftest.$ac_objext conftstm.$ac_objext
47654 lt_save_LIBS="$LIBS"
47655 lt_save_CFLAGS="$CFLAGS"
47656 LIBS="conftstm.$ac_objext"
47657 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
47658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47659 (eval $ac_link) 2>&5
47661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47662 (exit $ac_status); } && test -s conftest${ac_exeext}; then
47665 LIBS="$lt_save_LIBS"
47666 CFLAGS="$lt_save_CFLAGS"
47668 echo "cannot find nm_test_func in $nlist" >&5
47671 echo "cannot find nm_test_var in $nlist" >&5
47674 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
47677 echo "$progname: failed program was:" >&5
47678 cat conftest.$ac_ext >&5
47680 rm -rf conftest* conftst*
47682 # Do not use the global_symbol_pipe unless it works.
47683 if test "$pipe_works" = yes; then
47686 lt_cv_sys_global_symbol_pipe=
47692 if test -z "$lt_cv_sys_global_symbol_pipe"; then
47693 lt_cv_sys_global_symbol_to_cdecl=
47695 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
47696 { $as_echo "$as_me:$LINENO: result: failed" >&5
47697 $as_echo "failed" >&6; }
47699 { $as_echo "$as_me:$LINENO: result: ok" >&5
47700 $as_echo "ok" >&6; }
47724 # Check whether --enable-libtool-lock was given.
47725 if test "${enable_libtool_lock+set}" = set; then
47726 enableval=$enable_libtool_lock;
47729 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
47731 # Some flags need to be propagated to the compiler or linker for good
47735 # Find out which ABI we are using.
47736 echo 'int i;' > conftest.$ac_ext
47737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47738 (eval $ac_compile) 2>&5
47740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47741 (exit $ac_status); }; then
47742 case `/usr/bin/file conftest.$ac_objext` in
47744 HPUX_IA64_MODE="32"
47747 HPUX_IA64_MODE="64"
47754 # Find out which ABI we are using.
47755 echo '#line 47755 "configure"' > conftest.$ac_ext
47756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47757 (eval $ac_compile) 2>&5
47759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47760 (exit $ac_status); }; then
47761 if test "$lt_cv_prog_gnu_ld" = yes; then
47762 case `/usr/bin/file conftest.$ac_objext` in
47764 LD="${LD-ld} -melf32bsmip"
47767 LD="${LD-ld} -melf32bmipn32"
47770 LD="${LD-ld} -melf64bmip"
47774 case `/usr/bin/file conftest.$ac_objext` in
47790 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
47791 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
47792 # Find out which ABI we are using.
47793 echo 'int i;' > conftest.$ac_ext
47794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47795 (eval $ac_compile) 2>&5
47797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47798 (exit $ac_status); }; then
47799 case `/usr/bin/file conftest.o` in
47802 x86_64-*kfreebsd*-gnu)
47803 LD="${LD-ld} -m elf_i386_fbsd"
47806 LD="${LD-ld} -m elf_i386"
47808 ppc64-*linux*|powerpc64-*linux*)
47809 LD="${LD-ld} -m elf32ppclinux"
47812 LD="${LD-ld} -m elf_s390"
47815 LD="${LD-ld} -m elf32_sparc"
47821 x86_64-*kfreebsd*-gnu)
47822 LD="${LD-ld} -m elf_x86_64_fbsd"
47825 LD="${LD-ld} -m elf_x86_64"
47827 ppc*-*linux*|powerpc*-*linux*)
47828 LD="${LD-ld} -m elf64ppc"
47830 s390*-*linux*|s390*-*tpf*)
47831 LD="${LD-ld} -m elf64_s390"
47834 LD="${LD-ld} -m elf64_sparc"
47844 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
47845 SAVE_CFLAGS="$CFLAGS"
47846 CFLAGS="$CFLAGS -belf"
47847 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
47848 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
47849 if test "${lt_cv_cc_needs_belf+set}" = set; then
47850 $as_echo_n "(cached) " >&6
47853 ac_cpp='$CPP $CPPFLAGS'
47854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47858 cat >conftest.$ac_ext <<_ACEOF
47861 cat confdefs.h >>conftest.$ac_ext
47862 cat >>conftest.$ac_ext <<_ACEOF
47863 /* end confdefs.h. */
47873 rm -f conftest.$ac_objext conftest$ac_exeext
47874 if { (ac_try="$ac_link"
47875 case "(($ac_try" in
47876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47877 *) ac_try_echo=$ac_try;;
47879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47880 $as_echo "$ac_try_echo") >&5
47881 (eval "$ac_link") 2>conftest.er1
47883 grep -v '^ *+' conftest.er1 >conftest.err
47885 cat conftest.err >&5
47886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47887 (exit $ac_status); } && {
47888 test -z "$ac_c_werror_flag" ||
47889 test ! -s conftest.err
47890 } && test -s conftest$ac_exeext && {
47891 test "$cross_compiling" = yes ||
47892 $as_test_x conftest$ac_exeext
47894 lt_cv_cc_needs_belf=yes
47896 $as_echo "$as_me: failed program was:" >&5
47897 sed 's/^/| /' conftest.$ac_ext >&5
47899 lt_cv_cc_needs_belf=no
47902 rm -rf conftest.dSYM
47903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47904 conftest$ac_exeext conftest.$ac_ext
47906 ac_cpp='$CPP $CPPFLAGS'
47907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47912 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
47913 $as_echo "$lt_cv_cc_needs_belf" >&6; }
47914 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
47915 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
47916 CFLAGS="$SAVE_CFLAGS"
47920 # Find out which ABI we are using.
47921 echo 'int i;' > conftest.$ac_ext
47922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47923 (eval $ac_compile) 2>&5
47925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47926 (exit $ac_status); }; then
47927 case `/usr/bin/file conftest.o` in
47929 case $lt_cv_prog_gnu_ld in
47930 yes*) LD="${LD-ld} -m elf64_sparc" ;;
47932 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
47944 need_locks="$enable_libtool_lock"
47948 rhapsody* | darwin*)
47949 if test -n "$ac_tool_prefix"; then
47950 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
47951 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
47952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47953 $as_echo_n "checking for $ac_word... " >&6; }
47954 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
47955 $as_echo_n "(cached) " >&6
47957 if test -n "$DSYMUTIL"; then
47958 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
47960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47961 for as_dir in $PATH
47964 test -z "$as_dir" && as_dir=.
47965 for ac_exec_ext in '' $ac_executable_extensions; do
47966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47967 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
47968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47977 DSYMUTIL=$ac_cv_prog_DSYMUTIL
47978 if test -n "$DSYMUTIL"; then
47979 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
47980 $as_echo "$DSYMUTIL" >&6; }
47982 { $as_echo "$as_me:$LINENO: result: no" >&5
47983 $as_echo "no" >&6; }
47988 if test -z "$ac_cv_prog_DSYMUTIL"; then
47989 ac_ct_DSYMUTIL=$DSYMUTIL
47990 # Extract the first word of "dsymutil", so it can be a program name with args.
47991 set dummy dsymutil; ac_word=$2
47992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47993 $as_echo_n "checking for $ac_word... " >&6; }
47994 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
47995 $as_echo_n "(cached) " >&6
47997 if test -n "$ac_ct_DSYMUTIL"; then
47998 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
48000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48001 for as_dir in $PATH
48004 test -z "$as_dir" && as_dir=.
48005 for ac_exec_ext in '' $ac_executable_extensions; do
48006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48007 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
48008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48017 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
48018 if test -n "$ac_ct_DSYMUTIL"; then
48019 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
48020 $as_echo "$ac_ct_DSYMUTIL" >&6; }
48022 { $as_echo "$as_me:$LINENO: result: no" >&5
48023 $as_echo "no" >&6; }
48026 if test "x$ac_ct_DSYMUTIL" = x; then
48029 case $cross_compiling:$ac_tool_warned in
48031 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48033 ac_tool_warned=yes ;;
48035 DSYMUTIL=$ac_ct_DSYMUTIL
48038 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
48041 if test -n "$ac_tool_prefix"; then
48042 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
48043 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
48044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48045 $as_echo_n "checking for $ac_word... " >&6; }
48046 if test "${ac_cv_prog_NMEDIT+set}" = set; then
48047 $as_echo_n "(cached) " >&6
48049 if test -n "$NMEDIT"; then
48050 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
48052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48053 for as_dir in $PATH
48056 test -z "$as_dir" && as_dir=.
48057 for ac_exec_ext in '' $ac_executable_extensions; do
48058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48059 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
48060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48069 NMEDIT=$ac_cv_prog_NMEDIT
48070 if test -n "$NMEDIT"; then
48071 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
48072 $as_echo "$NMEDIT" >&6; }
48074 { $as_echo "$as_me:$LINENO: result: no" >&5
48075 $as_echo "no" >&6; }
48080 if test -z "$ac_cv_prog_NMEDIT"; then
48081 ac_ct_NMEDIT=$NMEDIT
48082 # Extract the first word of "nmedit", so it can be a program name with args.
48083 set dummy nmedit; ac_word=$2
48084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48085 $as_echo_n "checking for $ac_word... " >&6; }
48086 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
48087 $as_echo_n "(cached) " >&6
48089 if test -n "$ac_ct_NMEDIT"; then
48090 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
48092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48093 for as_dir in $PATH
48096 test -z "$as_dir" && as_dir=.
48097 for ac_exec_ext in '' $ac_executable_extensions; do
48098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48099 ac_cv_prog_ac_ct_NMEDIT="nmedit"
48100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48109 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
48110 if test -n "$ac_ct_NMEDIT"; then
48111 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
48112 $as_echo "$ac_ct_NMEDIT" >&6; }
48114 { $as_echo "$as_me:$LINENO: result: no" >&5
48115 $as_echo "no" >&6; }
48118 if test "x$ac_ct_NMEDIT" = x; then
48121 case $cross_compiling:$ac_tool_warned in
48123 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48125 ac_tool_warned=yes ;;
48127 NMEDIT=$ac_ct_NMEDIT
48130 NMEDIT="$ac_cv_prog_NMEDIT"
48133 if test -n "$ac_tool_prefix"; then
48134 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
48135 set dummy ${ac_tool_prefix}lipo; ac_word=$2
48136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48137 $as_echo_n "checking for $ac_word... " >&6; }
48138 if test "${ac_cv_prog_LIPO+set}" = set; then
48139 $as_echo_n "(cached) " >&6
48141 if test -n "$LIPO"; then
48142 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
48144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48145 for as_dir in $PATH
48148 test -z "$as_dir" && as_dir=.
48149 for ac_exec_ext in '' $ac_executable_extensions; do
48150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48151 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
48152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48161 LIPO=$ac_cv_prog_LIPO
48162 if test -n "$LIPO"; then
48163 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
48164 $as_echo "$LIPO" >&6; }
48166 { $as_echo "$as_me:$LINENO: result: no" >&5
48167 $as_echo "no" >&6; }
48172 if test -z "$ac_cv_prog_LIPO"; then
48174 # Extract the first word of "lipo", so it can be a program name with args.
48175 set dummy lipo; ac_word=$2
48176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48177 $as_echo_n "checking for $ac_word... " >&6; }
48178 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
48179 $as_echo_n "(cached) " >&6
48181 if test -n "$ac_ct_LIPO"; then
48182 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
48184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48185 for as_dir in $PATH
48188 test -z "$as_dir" && as_dir=.
48189 for ac_exec_ext in '' $ac_executable_extensions; do
48190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48191 ac_cv_prog_ac_ct_LIPO="lipo"
48192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48201 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
48202 if test -n "$ac_ct_LIPO"; then
48203 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
48204 $as_echo "$ac_ct_LIPO" >&6; }
48206 { $as_echo "$as_me:$LINENO: result: no" >&5
48207 $as_echo "no" >&6; }
48210 if test "x$ac_ct_LIPO" = x; then
48213 case $cross_compiling:$ac_tool_warned in
48215 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48217 ac_tool_warned=yes ;;
48222 LIPO="$ac_cv_prog_LIPO"
48225 if test -n "$ac_tool_prefix"; then
48226 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
48227 set dummy ${ac_tool_prefix}otool; ac_word=$2
48228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48229 $as_echo_n "checking for $ac_word... " >&6; }
48230 if test "${ac_cv_prog_OTOOL+set}" = set; then
48231 $as_echo_n "(cached) " >&6
48233 if test -n "$OTOOL"; then
48234 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
48236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48237 for as_dir in $PATH
48240 test -z "$as_dir" && as_dir=.
48241 for ac_exec_ext in '' $ac_executable_extensions; do
48242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48243 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
48244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48253 OTOOL=$ac_cv_prog_OTOOL
48254 if test -n "$OTOOL"; then
48255 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
48256 $as_echo "$OTOOL" >&6; }
48258 { $as_echo "$as_me:$LINENO: result: no" >&5
48259 $as_echo "no" >&6; }
48264 if test -z "$ac_cv_prog_OTOOL"; then
48266 # Extract the first word of "otool", so it can be a program name with args.
48267 set dummy otool; ac_word=$2
48268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48269 $as_echo_n "checking for $ac_word... " >&6; }
48270 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
48271 $as_echo_n "(cached) " >&6
48273 if test -n "$ac_ct_OTOOL"; then
48274 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
48276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48277 for as_dir in $PATH
48280 test -z "$as_dir" && as_dir=.
48281 for ac_exec_ext in '' $ac_executable_extensions; do
48282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48283 ac_cv_prog_ac_ct_OTOOL="otool"
48284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48293 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
48294 if test -n "$ac_ct_OTOOL"; then
48295 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
48296 $as_echo "$ac_ct_OTOOL" >&6; }
48298 { $as_echo "$as_me:$LINENO: result: no" >&5
48299 $as_echo "no" >&6; }
48302 if test "x$ac_ct_OTOOL" = x; then
48305 case $cross_compiling:$ac_tool_warned in
48307 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48309 ac_tool_warned=yes ;;
48314 OTOOL="$ac_cv_prog_OTOOL"
48317 if test -n "$ac_tool_prefix"; then
48318 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
48319 set dummy ${ac_tool_prefix}otool64; ac_word=$2
48320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48321 $as_echo_n "checking for $ac_word... " >&6; }
48322 if test "${ac_cv_prog_OTOOL64+set}" = set; then
48323 $as_echo_n "(cached) " >&6
48325 if test -n "$OTOOL64"; then
48326 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
48328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48329 for as_dir in $PATH
48332 test -z "$as_dir" && as_dir=.
48333 for ac_exec_ext in '' $ac_executable_extensions; do
48334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48335 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
48336 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48345 OTOOL64=$ac_cv_prog_OTOOL64
48346 if test -n "$OTOOL64"; then
48347 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
48348 $as_echo "$OTOOL64" >&6; }
48350 { $as_echo "$as_me:$LINENO: result: no" >&5
48351 $as_echo "no" >&6; }
48356 if test -z "$ac_cv_prog_OTOOL64"; then
48357 ac_ct_OTOOL64=$OTOOL64
48358 # Extract the first word of "otool64", so it can be a program name with args.
48359 set dummy otool64; ac_word=$2
48360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48361 $as_echo_n "checking for $ac_word... " >&6; }
48362 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
48363 $as_echo_n "(cached) " >&6
48365 if test -n "$ac_ct_OTOOL64"; then
48366 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
48368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48369 for as_dir in $PATH
48372 test -z "$as_dir" && as_dir=.
48373 for ac_exec_ext in '' $ac_executable_extensions; do
48374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48375 ac_cv_prog_ac_ct_OTOOL64="otool64"
48376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48385 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
48386 if test -n "$ac_ct_OTOOL64"; then
48387 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
48388 $as_echo "$ac_ct_OTOOL64" >&6; }
48390 { $as_echo "$as_me:$LINENO: result: no" >&5
48391 $as_echo "no" >&6; }
48394 if test "x$ac_ct_OTOOL64" = x; then
48397 case $cross_compiling:$ac_tool_warned in
48399 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48401 ac_tool_warned=yes ;;
48403 OTOOL64=$ac_ct_OTOOL64
48406 OTOOL64="$ac_cv_prog_OTOOL64"
48435 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
48436 $as_echo_n "checking for -single_module linker flag... " >&6; }
48437 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
48438 $as_echo_n "(cached) " >&6
48440 lt_cv_apple_cc_single_mod=no
48441 if test -z "${LT_MULTI_MODULE}"; then
48442 # By default we will add the -single_module flag. You can override
48443 # by either setting the environment variable LT_MULTI_MODULE
48444 # non-empty at configure time, or by adding -multi_module to the
48446 rm -rf libconftest.dylib*
48447 echo "int foo(void){return 1;}" > conftest.c
48448 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
48449 -dynamiclib -Wl,-single_module conftest.c" >&5
48450 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
48451 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
48453 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
48454 lt_cv_apple_cc_single_mod=yes
48456 cat conftest.err >&5
48458 rm -rf libconftest.dylib*
48462 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
48463 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
48464 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
48465 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
48466 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
48467 $as_echo_n "(cached) " >&6
48469 lt_cv_ld_exported_symbols_list=no
48470 save_LDFLAGS=$LDFLAGS
48471 echo "_main" > conftest.sym
48472 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
48473 cat >conftest.$ac_ext <<_ACEOF
48476 cat confdefs.h >>conftest.$ac_ext
48477 cat >>conftest.$ac_ext <<_ACEOF
48478 /* end confdefs.h. */
48488 rm -f conftest.$ac_objext conftest$ac_exeext
48489 if { (ac_try="$ac_link"
48490 case "(($ac_try" in
48491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48492 *) ac_try_echo=$ac_try;;
48494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48495 $as_echo "$ac_try_echo") >&5
48496 (eval "$ac_link") 2>conftest.er1
48498 grep -v '^ *+' conftest.er1 >conftest.err
48500 cat conftest.err >&5
48501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48502 (exit $ac_status); } && {
48503 test -z "$ac_c_werror_flag" ||
48504 test ! -s conftest.err
48505 } && test -s conftest$ac_exeext && {
48506 test "$cross_compiling" = yes ||
48507 $as_test_x conftest$ac_exeext
48509 lt_cv_ld_exported_symbols_list=yes
48511 $as_echo "$as_me: failed program was:" >&5
48512 sed 's/^/| /' conftest.$ac_ext >&5
48514 lt_cv_ld_exported_symbols_list=no
48517 rm -rf conftest.dSYM
48518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48519 conftest$ac_exeext conftest.$ac_ext
48520 LDFLAGS="$save_LDFLAGS"
48523 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
48524 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
48526 rhapsody* | darwin1.[012])
48527 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
48529 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
48530 darwin*) # darwin 5.x on
48531 # if running on 10.5 or later, the deployment target defaults
48532 # to the OS version, if on x86, and 10.4, the deployment
48533 # target defaults to 10.4. Don't you love it?
48534 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
48535 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
48536 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
48538 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
48540 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
48544 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
48545 _lt_dar_single_mod='$single_module'
48547 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
48548 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
48550 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
48552 if test "$DSYMUTIL" != ":"; then
48553 _lt_dsymutil='~$DSYMUTIL $lib || :'
48561 for ac_header in dlfcn.h
48563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
48564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48565 $as_echo_n "checking for $ac_header... " >&6; }
48566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48567 $as_echo_n "(cached) " >&6
48569 cat >conftest.$ac_ext <<_ACEOF
48572 cat confdefs.h >>conftest.$ac_ext
48573 cat >>conftest.$ac_ext <<_ACEOF
48574 /* end confdefs.h. */
48575 $ac_includes_default
48577 #include <$ac_header>
48579 rm -f conftest.$ac_objext
48580 if { (ac_try="$ac_compile"
48581 case "(($ac_try" in
48582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48583 *) ac_try_echo=$ac_try;;
48585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48586 $as_echo "$ac_try_echo") >&5
48587 (eval "$ac_compile") 2>conftest.er1
48589 grep -v '^ *+' conftest.er1 >conftest.err
48591 cat conftest.err >&5
48592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48593 (exit $ac_status); } && {
48594 test -z "$ac_c_werror_flag" ||
48595 test ! -s conftest.err
48596 } && test -s conftest.$ac_objext; then
48597 eval "$as_ac_Header=yes"
48599 $as_echo "$as_me: failed program was:" >&5
48600 sed 's/^/| /' conftest.$ac_ext >&5
48602 eval "$as_ac_Header=no"
48605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48607 ac_res=`eval 'as_val=${'$as_ac_Header'}
48608 $as_echo "$as_val"'`
48609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48610 $as_echo "$ac_res" >&6; }
48611 as_val=`eval 'as_val=${'$as_ac_Header'}
48612 $as_echo "$as_val"'`
48613 if test "x$as_val" = x""yes; then
48614 cat >>confdefs.h <<_ACEOF
48615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48631 enable_win32_dll=no
48634 # Check whether --enable-shared was given.
48635 if test "${enable_shared+set}" = set; then
48636 enableval=$enable_shared; p=${PACKAGE-default}
48638 yes) enable_shared=yes ;;
48639 no) enable_shared=no ;;
48642 # Look at the argument we got. We use all the common list separators.
48643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
48644 for pkg in $enableval; do
48646 if test "X$pkg" = "X$p"; then
48665 # Check whether --enable-static was given.
48666 if test "${enable_static+set}" = set; then
48667 enableval=$enable_static; p=${PACKAGE-default}
48669 yes) enable_static=yes ;;
48670 no) enable_static=no ;;
48673 # Look at the argument we got. We use all the common list separators.
48674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
48675 for pkg in $enableval; do
48677 if test "X$pkg" = "X$p"; then
48697 # Check whether --with-pic was given.
48698 if test "${with_pic+set}" = set; then
48699 withval=$with_pic; pic_mode="$withval"
48705 test -z "$pic_mode" && pic_mode=default
48713 # Check whether --enable-fast-install was given.
48714 if test "${enable_fast_install+set}" = set; then
48715 enableval=$enable_fast_install; p=${PACKAGE-default}
48717 yes) enable_fast_install=yes ;;
48718 no) enable_fast_install=no ;;
48720 enable_fast_install=no
48721 # Look at the argument we got. We use all the common list separators.
48722 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
48723 for pkg in $enableval; do
48725 if test "X$pkg" = "X$p"; then
48726 enable_fast_install=yes
48733 enable_fast_install=yes
48746 # This can be used to rebuild libtool when needed
48747 LIBTOOL_DEPS="$ltmain"
48749 # Always use our own libtool.
48750 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
48776 test -z "$LN_S" && LN_S="ln -s"
48791 if test -n "${ZSH_VERSION+set}" ; then
48792 setopt NO_GLOB_SUBST
48795 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
48796 $as_echo_n "checking for objdir... " >&6; }
48797 if test "${lt_cv_objdir+set}" = set; then
48798 $as_echo_n "(cached) " >&6
48800 rm -f .libs 2>/dev/null
48801 mkdir .libs 2>/dev/null
48802 if test -d .libs; then
48805 # MS-DOS does not allow filenames that begin with a dot.
48808 rmdir .libs 2>/dev/null
48810 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
48811 $as_echo "$lt_cv_objdir" >&6; }
48812 objdir=$lt_cv_objdir
48818 cat >>confdefs.h <<_ACEOF
48819 #define LT_OBJDIR "$lt_cv_objdir/"
48840 # AIX sometimes has problems with the GCC collect2 program. For some
48841 # reason, if we set the COLLECT_NAMES environment variable, the problems
48842 # vanish in a puff of smoke.
48843 if test "X${COLLECT_NAMES+set}" != Xset; then
48845 export COLLECT_NAMES
48850 # Sed substitution that helps us do robust quoting. It backslashifies
48851 # metacharacters that are still active within double-quoted strings.
48852 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
48854 # Same as above, but do not quote variable references.
48855 double_quote_subst='s/\(["`\\]\)/\\\1/g'
48857 # Sed substitution to delay expansion of an escaped shell variable in a
48858 # double_quote_subst'ed string.
48859 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
48861 # Sed substitution to delay expansion of an escaped single quote.
48862 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
48864 # Sed substitution to avoid accidental globbing in evaled expressions
48865 no_glob_subst='s/\*/\\\*/g'
48867 # Global variables:
48869 can_build_shared=yes
48871 # All known linkers require a `.a' archive for static linking (except MSVC,
48872 # which needs '.lib').
48875 with_gnu_ld="$lt_cv_prog_gnu_ld"
48878 old_CFLAGS="$CFLAGS"
48880 # Set sane defaults for various variables
48881 test -z "$CC" && CC=cc
48882 test -z "$LTCC" && LTCC=$CC
48883 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
48884 test -z "$LD" && LD=ld
48885 test -z "$ac_objext" && ac_objext=o
48887 for cc_temp in $compiler""; do
48889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48895 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
48898 # Only perform the check for file, if the check method requires it
48899 test -z "$MAGIC_CMD" && MAGIC_CMD=file
48900 case $deplibs_check_method in
48902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
48903 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
48904 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
48905 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
48906 $as_echo_n "(cached) " >&6
48910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
48913 lt_save_MAGIC_CMD="$MAGIC_CMD"
48914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
48915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
48916 for ac_dir in $ac_dummy; do
48918 test -z "$ac_dir" && ac_dir=.
48919 if test -f $ac_dir/${ac_tool_prefix}file; then
48920 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
48921 if test -n "$file_magic_test_file"; then
48922 case $deplibs_check_method in
48924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
48925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
48926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
48927 $EGREP "$file_magic_regex" > /dev/null; then
48932 *** Warning: the command libtool uses to detect shared libraries,
48933 *** $file_magic_cmd, produces output that libtool cannot recognize.
48934 *** The result is that libtool may fail to recognize shared libraries
48935 *** as such. This will affect the creation of libtool libraries that
48936 *** depend on shared libraries, but programs linked with such libtool
48937 *** libraries will work regardless of this problem. Nevertheless, you
48938 *** may want to report the problem to your system manager and/or to
48939 *** bug-libtool@gnu.org
48949 MAGIC_CMD="$lt_save_MAGIC_CMD"
48954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
48955 if test -n "$MAGIC_CMD"; then
48956 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
48957 $as_echo "$MAGIC_CMD" >&6; }
48959 { $as_echo "$as_me:$LINENO: result: no" >&5
48960 $as_echo "no" >&6; }
48967 if test -z "$lt_cv_path_MAGIC_CMD"; then
48968 if test -n "$ac_tool_prefix"; then
48969 { $as_echo "$as_me:$LINENO: checking for file" >&5
48970 $as_echo_n "checking for file... " >&6; }
48971 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
48972 $as_echo_n "(cached) " >&6
48976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
48979 lt_save_MAGIC_CMD="$MAGIC_CMD"
48980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
48981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
48982 for ac_dir in $ac_dummy; do
48984 test -z "$ac_dir" && ac_dir=.
48985 if test -f $ac_dir/file; then
48986 lt_cv_path_MAGIC_CMD="$ac_dir/file"
48987 if test -n "$file_magic_test_file"; then
48988 case $deplibs_check_method in
48990 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
48991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
48992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
48993 $EGREP "$file_magic_regex" > /dev/null; then
48998 *** Warning: the command libtool uses to detect shared libraries,
48999 *** $file_magic_cmd, produces output that libtool cannot recognize.
49000 *** The result is that libtool may fail to recognize shared libraries
49001 *** as such. This will affect the creation of libtool libraries that
49002 *** depend on shared libraries, but programs linked with such libtool
49003 *** libraries will work regardless of this problem. Nevertheless, you
49004 *** may want to report the problem to your system manager and/or to
49005 *** bug-libtool@gnu.org
49015 MAGIC_CMD="$lt_save_MAGIC_CMD"
49020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
49021 if test -n "$MAGIC_CMD"; then
49022 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
49023 $as_echo "$MAGIC_CMD" >&6; }
49025 { $as_echo "$as_me:$LINENO: result: no" >&5
49026 $as_echo "no" >&6; }
49039 # Use C for the default configuration in the libtool script
49043 ac_cpp='$CPP $CPPFLAGS'
49044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49049 # Source file extension for C test sources.
49052 # Object file extension for compiled C test sources.
49056 # Code to be used in simple compile tests
49057 lt_simple_compile_test_code="int some_variable = 0;"
49059 # Code to be used in simple link tests
49060 lt_simple_link_test_code='int main(){return(0);}'
49068 # If no C compiler was specified, use CC.
49071 # If no C compiler flags were specified, use CFLAGS.
49072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
49074 # Allow CC to be a program name with arguments.
49077 # Save the default compiler, since it gets overwritten when the other
49078 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
49079 compiler_DEFAULT=$CC
49081 # save warnings/boilerplate of simple test code
49082 ac_outfile=conftest.$ac_objext
49083 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
49084 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
49085 _lt_compiler_boilerplate=`cat conftest.err`
49088 ac_outfile=conftest.$ac_objext
49089 echo "$lt_simple_link_test_code" >conftest.$ac_ext
49090 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
49091 _lt_linker_boilerplate=`cat conftest.err`
49096 ## There is no encapsulation within the following macros, do not change
49097 ## the running order or otherwise move them around unless you know exactly
49098 ## what you are doing...
49099 if test -n "$compiler"; then
49101 lt_prog_compiler_no_builtin_flag=
49103 if test "$GCC" = yes; then
49104 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
49106 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
49107 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
49108 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
49109 $as_echo_n "(cached) " >&6
49111 lt_cv_prog_compiler_rtti_exceptions=no
49112 ac_outfile=conftest.$ac_objext
49113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49114 lt_compiler_flag="-fno-rtti -fno-exceptions"
49115 # Insert the option either (1) after the last *FLAGS variable, or
49116 # (2) before a word containing "conftest.", or (3) at the end.
49117 # Note that $ac_compile itself does not contain backslashes and begins
49118 # with a dollar sign (not a hyphen), so the echo should work correctly.
49119 # The option is referenced via a variable to avoid confusing sed.
49120 lt_compile=`echo "$ac_compile" | $SED \
49121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49123 -e 's:$: $lt_compiler_flag:'`
49124 (eval echo "\"\$as_me:49124: $lt_compile\"" >&5)
49125 (eval "$lt_compile" 2>conftest.err)
49127 cat conftest.err >&5
49128 echo "$as_me:49128: \$? = $ac_status" >&5
49129 if (exit $ac_status) && test -s "$ac_outfile"; then
49130 # The compiler can only warn and ignore the option if not recognized
49131 # So say no if there are warnings other than the usual output.
49132 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
49133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
49134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
49135 lt_cv_prog_compiler_rtti_exceptions=yes
49141 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
49142 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
49144 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
49145 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
49157 lt_prog_compiler_wl=
49158 lt_prog_compiler_pic=
49159 lt_prog_compiler_static=
49161 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
49162 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
49164 if test "$GCC" = yes; then
49165 lt_prog_compiler_wl='-Wl,'
49166 lt_prog_compiler_static='-static'
49170 # All AIX code is PIC.
49171 if test "$host_cpu" = ia64; then
49172 # AIX 5 now supports IA64 processor
49173 lt_prog_compiler_static='-Bstatic'
49180 # see comment about AmigaOS4 .so support
49181 lt_prog_compiler_pic='-fPIC'
49184 # FIXME: we need at least 68020 code to build shared libraries, but
49185 # adding the `-m68020' flag to GCC prevents building anything better,
49187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
49192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
49193 # PIC is the default for these OSes.
49196 mingw* | cygwin* | pw32* | os2*)
49197 # This hack is so that the source file can tell whether it is being
49198 # built for inclusion in a dll (and should export symbols for example).
49199 # Although the cygwin gcc ignores -fPIC, still need this for old-style
49200 # (--disable-auto-import) libraries
49201 lt_prog_compiler_pic='-DDLL_EXPORT'
49204 darwin* | rhapsody*)
49205 # PIC is the default on this platform
49206 # Common symbols not allowed in MH_DYLIB files
49207 lt_prog_compiler_pic='-fno-common'
49211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
49212 # not for PA HP-UX.
49218 lt_prog_compiler_pic='-fPIC'
49224 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
49225 # Instead, we relocate shared libraries at runtime.
49229 # Just because we use GCC doesn't mean we suddenly get shared libraries
49230 # on systems that don't support them.
49231 lt_prog_compiler_can_build_shared=no
49236 # QNX uses GNU C++, but need to define -shared option too, otherwise
49237 # it will coredump.
49238 lt_prog_compiler_pic='-fPIC -shared'
49242 if test -d /usr/nec; then
49243 lt_prog_compiler_pic=-Kconform_pic
49248 lt_prog_compiler_pic='-fPIC'
49252 # PORTME Check for flag to pass linker flags through the system compiler.
49255 lt_prog_compiler_wl='-Wl,'
49256 if test "$host_cpu" = ia64; then
49257 # AIX 5 now supports IA64 processor
49258 lt_prog_compiler_static='-Bstatic'
49260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
49264 mingw* | cygwin* | pw32* | os2*)
49265 # This hack is so that the source file can tell whether it is being
49266 # built for inclusion in a dll (and should export symbols for example).
49267 lt_prog_compiler_pic='-DDLL_EXPORT'
49270 hpux9* | hpux10* | hpux11*)
49271 lt_prog_compiler_wl='-Wl,'
49272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
49273 # not for PA HP-UX.
49279 lt_prog_compiler_pic='+Z'
49282 # Is there a better lt_prog_compiler_static that works with the bundled CC?
49283 lt_prog_compiler_static='${wl}-a ${wl}archive'
49286 irix5* | irix6* | nonstopux*)
49287 lt_prog_compiler_wl='-Wl,'
49288 # PIC (with -KPIC) is the default.
49289 lt_prog_compiler_static='-non_shared'
49292 linux* | k*bsd*-gnu)
49293 case $cc_basename in
49294 icc* | ecc* | ifort*)
49295 lt_prog_compiler_wl='-Wl,'
49296 lt_prog_compiler_pic='-KPIC'
49297 lt_prog_compiler_static='-static'
49299 pgcc* | pgf77* | pgf90* | pgf95*)
49300 # Portland Group compilers (*not* the Pentium gcc compiler,
49301 # which looks to be a dead project)
49302 lt_prog_compiler_wl='-Wl,'
49303 lt_prog_compiler_pic='-fpic'
49304 lt_prog_compiler_static='-Bstatic'
49307 lt_prog_compiler_wl='-Wl,'
49308 # All Alpha code is PIC.
49309 lt_prog_compiler_static='-non_shared'
49312 # IBM XL C 8.0/Fortran 10.1 on PPC
49313 lt_prog_compiler_wl='-Wl,'
49314 lt_prog_compiler_pic='-qpic'
49315 lt_prog_compiler_static='-qstaticlink'
49318 case `$CC -V 2>&1 | sed 5q` in
49321 lt_prog_compiler_pic='-KPIC'
49322 lt_prog_compiler_static='-Bstatic'
49323 lt_prog_compiler_wl='-Wl,'
49326 # Sun Fortran 8.3 passes all unrecognized flags to the linker
49327 lt_prog_compiler_pic='-KPIC'
49328 lt_prog_compiler_static='-Bstatic'
49329 lt_prog_compiler_wl=''
49337 lt_prog_compiler_pic='-KPIC'
49338 lt_prog_compiler_static='-Bstatic'
49342 # QNX uses GNU C++, but need to define -shared option too, otherwise
49343 # it will coredump.
49344 lt_prog_compiler_pic='-fPIC -shared'
49347 osf3* | osf4* | osf5*)
49348 lt_prog_compiler_wl='-Wl,'
49349 # All OSF/1 code is PIC.
49350 lt_prog_compiler_static='-non_shared'
49354 lt_prog_compiler_static='-non_shared'
49358 lt_prog_compiler_pic='-KPIC'
49359 lt_prog_compiler_static='-Bstatic'
49360 case $cc_basename in
49361 f77* | f90* | f95*)
49362 lt_prog_compiler_wl='-Qoption ld ';;
49364 lt_prog_compiler_wl='-Wl,';;
49369 lt_prog_compiler_wl='-Qoption ld '
49370 lt_prog_compiler_pic='-PIC'
49371 lt_prog_compiler_static='-Bstatic'
49374 sysv4 | sysv4.2uw2* | sysv4.3*)
49375 lt_prog_compiler_wl='-Wl,'
49376 lt_prog_compiler_pic='-KPIC'
49377 lt_prog_compiler_static='-Bstatic'
49381 if test -d /usr/nec ;then
49382 lt_prog_compiler_pic='-Kconform_pic'
49383 lt_prog_compiler_static='-Bstatic'
49387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
49388 lt_prog_compiler_wl='-Wl,'
49389 lt_prog_compiler_pic='-KPIC'
49390 lt_prog_compiler_static='-Bstatic'
49394 lt_prog_compiler_wl='-Wl,'
49395 lt_prog_compiler_can_build_shared=no
49399 lt_prog_compiler_pic='-pic'
49400 lt_prog_compiler_static='-Bstatic'
49404 lt_prog_compiler_can_build_shared=no
49410 # For platforms which do not support PIC, -DPIC is meaningless:
49412 lt_prog_compiler_pic=
49415 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
49418 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
49419 $as_echo "$lt_prog_compiler_pic" >&6; }
49427 # Check to make sure the PIC flag actually works.
49429 if test -n "$lt_prog_compiler_pic"; then
49430 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
49431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
49432 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
49433 $as_echo_n "(cached) " >&6
49435 lt_cv_prog_compiler_pic_works=no
49436 ac_outfile=conftest.$ac_objext
49437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49438 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
49439 # Insert the option either (1) after the last *FLAGS variable, or
49440 # (2) before a word containing "conftest.", or (3) at the end.
49441 # Note that $ac_compile itself does not contain backslashes and begins
49442 # with a dollar sign (not a hyphen), so the echo should work correctly.
49443 # The option is referenced via a variable to avoid confusing sed.
49444 lt_compile=`echo "$ac_compile" | $SED \
49445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49447 -e 's:$: $lt_compiler_flag:'`
49448 (eval echo "\"\$as_me:49448: $lt_compile\"" >&5)
49449 (eval "$lt_compile" 2>conftest.err)
49451 cat conftest.err >&5
49452 echo "$as_me:49452: \$? = $ac_status" >&5
49453 if (exit $ac_status) && test -s "$ac_outfile"; then
49454 # The compiler can only warn and ignore the option if not recognized
49455 # So say no if there are warnings other than the usual output.
49456 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
49457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
49458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
49459 lt_cv_prog_compiler_pic_works=yes
49465 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
49466 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
49468 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
49469 case $lt_prog_compiler_pic in
49471 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
49474 lt_prog_compiler_pic=
49475 lt_prog_compiler_can_build_shared=no
49486 # Check to make sure the static flag actually works.
49488 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
49489 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
49490 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
49491 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
49492 $as_echo_n "(cached) " >&6
49494 lt_cv_prog_compiler_static_works=no
49495 save_LDFLAGS="$LDFLAGS"
49496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
49497 echo "$lt_simple_link_test_code" > conftest.$ac_ext
49498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
49499 # The linker can only warn and ignore the option if not recognized
49500 # So say no if there are warnings
49501 if test -s conftest.err; then
49502 # Append any errors to the config.log.
49503 cat conftest.err 1>&5
49504 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
49505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
49506 if diff conftest.exp conftest.er2 >/dev/null; then
49507 lt_cv_prog_compiler_static_works=yes
49510 lt_cv_prog_compiler_static_works=yes
49514 LDFLAGS="$save_LDFLAGS"
49517 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
49518 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
49520 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
49523 lt_prog_compiler_static=
49532 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
49533 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
49534 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
49535 $as_echo_n "(cached) " >&6
49537 lt_cv_prog_compiler_c_o=no
49538 $RM -r conftest 2>/dev/null
49542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49544 lt_compiler_flag="-o out/conftest2.$ac_objext"
49545 # Insert the option either (1) after the last *FLAGS variable, or
49546 # (2) before a word containing "conftest.", or (3) at the end.
49547 # Note that $ac_compile itself does not contain backslashes and begins
49548 # with a dollar sign (not a hyphen), so the echo should work correctly.
49549 lt_compile=`echo "$ac_compile" | $SED \
49550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49552 -e 's:$: $lt_compiler_flag:'`
49553 (eval echo "\"\$as_me:49553: $lt_compile\"" >&5)
49554 (eval "$lt_compile" 2>out/conftest.err)
49556 cat out/conftest.err >&5
49557 echo "$as_me:49557: \$? = $ac_status" >&5
49558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
49560 # The compiler can only warn and ignore the option if not recognized
49561 # So say no if there are warnings
49562 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
49563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
49564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
49565 lt_cv_prog_compiler_c_o=yes
49570 # SGI C++ compiler will create directory out/ii_files/ for
49571 # template instantiation
49572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
49573 $RM out/* && rmdir out
49579 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
49580 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
49587 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
49588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
49589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
49590 $as_echo_n "(cached) " >&6
49592 lt_cv_prog_compiler_c_o=no
49593 $RM -r conftest 2>/dev/null
49597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49599 lt_compiler_flag="-o out/conftest2.$ac_objext"
49600 # Insert the option either (1) after the last *FLAGS variable, or
49601 # (2) before a word containing "conftest.", or (3) at the end.
49602 # Note that $ac_compile itself does not contain backslashes and begins
49603 # with a dollar sign (not a hyphen), so the echo should work correctly.
49604 lt_compile=`echo "$ac_compile" | $SED \
49605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49607 -e 's:$: $lt_compiler_flag:'`
49608 (eval echo "\"\$as_me:49608: $lt_compile\"" >&5)
49609 (eval "$lt_compile" 2>out/conftest.err)
49611 cat out/conftest.err >&5
49612 echo "$as_me:49612: \$? = $ac_status" >&5
49613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
49615 # The compiler can only warn and ignore the option if not recognized
49616 # So say no if there are warnings
49617 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
49618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
49619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
49620 lt_cv_prog_compiler_c_o=yes
49625 # SGI C++ compiler will create directory out/ii_files/ for
49626 # template instantiation
49627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
49628 $RM out/* && rmdir out
49634 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
49635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
49640 hard_links="nottested"
49641 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
49642 # do not overwrite the value of need_locks provided by the user
49643 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
49644 $as_echo_n "checking if we can lock with hard links... " >&6; }
49647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
49649 ln conftest.a conftest.b 2>&5 || hard_links=no
49650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
49651 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
49652 $as_echo "$hard_links" >&6; }
49653 if test "$hard_links" = no; then
49654 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
49655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
49667 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
49668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
49671 allow_undefined_flag=
49672 always_export_symbols=no
49674 archive_expsym_cmds=
49675 compiler_needs_object=no
49676 enable_shared_with_static_runtimes=no
49677 export_dynamic_flag_spec=
49678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
49679 hardcode_automatic=no
49681 hardcode_direct_absolute=no
49682 hardcode_libdir_flag_spec=
49683 hardcode_libdir_flag_spec_ld=
49684 hardcode_libdir_separator=
49685 hardcode_minus_L=no
49686 hardcode_shlibpath_var=unsupported
49688 link_all_deplibs=unknown
49690 module_expsym_cmds=
49691 old_archive_from_new_cmds=
49692 old_archive_from_expsyms_cmds=
49693 thread_safe_flag_spec=
49694 whole_archive_flag_spec=
49695 # include_expsyms should be a list of space-separated symbols to be *always*
49696 # included in the symbol list
49698 # exclude_expsyms can be an extended regexp of symbols to exclude
49699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
49700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
49701 # as well as any symbol that contains `d'.
49702 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
49703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
49704 # platforms (ab)use it in PIC code, but their linkers get confused if
49705 # the symbol is explicitly referenced. Since portable code cannot
49706 # rely on this symbol name, it's probably fine to never include it in
49707 # preloaded symbol tables.
49708 # Exclude shared library initialization/finalization symbols.
49709 extract_expsyms_cmds=
49712 cygwin* | mingw* | pw32*)
49713 # FIXME: the MSVC++ port hasn't been tested in a loooong time
49714 # When not using gcc, we currently assume that we are using
49715 # Microsoft Visual C++.
49716 if test "$GCC" != yes; then
49721 # we just hope/assume this is gcc and not c89 (= MSVC++)
49730 if test "$with_gnu_ld" = yes; then
49731 # If archive_cmds runs LD, not CC, wlarc should be empty
49734 # Set some defaults for GNU ld with shared library support. These
49735 # are reset later if shared libraries are not supported. Putting them
49736 # here allows them to be overridden if necessary.
49737 runpath_var=LD_RUN_PATH
49738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
49739 export_dynamic_flag_spec='${wl}--export-dynamic'
49740 # ancient GNU ld didn't support --whole-archive et. al.
49741 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
49742 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
49744 whole_archive_flag_spec=
49746 supports_anon_versioning=no
49747 case `$LD -v 2>&1` in
49748 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
49749 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
49750 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
49751 *\ 2.11.*) ;; # other 2.11 versions
49752 *) supports_anon_versioning=yes ;;
49755 # See if GNU ld supports shared libraries.
49758 # On AIX/PPC, the GNU linker is very broken
49759 if test "$host_cpu" != ia64; then
49763 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
49764 *** to be unable to reliably create shared libraries on AIX.
49765 *** Therefore, libtool is disabling shared libraries support. If you
49766 *** really care for shared libraries, you may want to modify your PATH
49767 *** so that a non-GNU linker is found, and then restart.
49776 # see comment about AmigaOS4 .so support
49777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49778 archive_expsym_cmds=''
49781 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)'
49782 hardcode_libdir_flag_spec='-L$libdir'
49783 hardcode_minus_L=yes
49789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49790 allow_undefined_flag=unsupported
49791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
49792 # support --undefined. This deserves some investigation. FIXME
49793 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49799 cygwin* | mingw* | pw32*)
49800 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
49801 # as there is no search path for DLLs.
49802 hardcode_libdir_flag_spec='-L$libdir'
49803 allow_undefined_flag=unsupported
49804 always_export_symbols=no
49805 enable_shared_with_static_runtimes=yes
49806 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
49808 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
49809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
49810 # If the export-symbols file already is a .def file (1st line
49811 # is EXPORTS), use it as is; otherwise, prepend...
49812 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
49813 cp $export_symbols $output_objdir/$soname.def;
49815 echo EXPORTS > $output_objdir/$soname.def;
49816 cat $export_symbols >> $output_objdir/$soname.def;
49818 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
49826 hardcode_shlibpath_var=no
49827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
49828 export_dynamic_flag_spec='${wl}-E'
49829 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
49830 # Instead, shared libraries are loaded at an image base (0x10000000 by
49831 # default) and relocated if they conflict, which is a slow very memory
49832 # consuming and fragmenting process. To avoid this, we pick a random,
49833 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
49834 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
49835 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
49836 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
49839 gnu* | linux* | tpf* | k*bsd*-gnu)
49841 if test "$host_os" = linux-dietlibc; then
49842 case $cc_basename in
49843 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
49846 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
49847 && test "$tmp_diet" = no
49850 tmp_sharedflag='-shared'
49851 case $cc_basename,$host_cpu in
49852 pgcc*) # Portland Group C compiler
49853 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'
49854 tmp_addflag=' $pic_flag'
49856 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
49857 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'
49858 tmp_addflag=' $pic_flag -Mnomain' ;;
49859 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
49860 tmp_addflag=' -i_dynamic' ;;
49861 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
49862 tmp_addflag=' -i_dynamic -nofor_main' ;;
49863 ifc* | ifort*) # Intel Fortran compiler
49864 tmp_addflag=' -nofor_main' ;;
49865 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
49866 tmp_sharedflag='-qmkshrobj'
49869 case `$CC -V 2>&1 | sed 5q` in
49870 *Sun\ C*) # Sun C 5.9
49871 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
49872 compiler_needs_object=yes
49873 tmp_sharedflag='-G' ;;
49874 *Sun\ F*) # Sun Fortran 8.3
49875 tmp_sharedflag='-G' ;;
49877 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49879 if test "x$supports_anon_versioning" = xyes; then
49880 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
49881 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
49882 echo "local: *; };" >> $output_objdir/$libname.ver~
49883 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
49886 case $cc_basename in
49888 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
49889 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
49890 hardcode_libdir_flag_spec=
49891 hardcode_libdir_flag_spec_ld='-rpath $libdir'
49892 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
49893 if test "x$supports_anon_versioning" = xyes; then
49894 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
49895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
49896 echo "local: *; };" >> $output_objdir/$libname.ver~
49897 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
49907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
49908 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
49911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49917 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
49921 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
49922 *** create shared libraries on Solaris systems. Therefore, libtool
49923 *** is disabling shared libraries support. We urge you to upgrade GNU
49924 *** binutils to release 2.9.1 or newer. Another option is to modify
49925 *** your PATH or compiler configuration so that the native linker is
49926 *** used, and then restart.
49929 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
49938 case `$LD -v 2>&1` in
49939 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
49943 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
49944 *** reliably create shared libraries on SCO systems. Therefore, libtool
49945 *** is disabling shared libraries support. We urge you to upgrade GNU
49946 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
49947 *** your PATH or compiler configuration so that the native linker is
49948 *** used, and then restart.
49953 # For security reasons, it is highly recommended that you always
49954 # use absolute paths for naming shared libraries, and exclude the
49955 # DT_RUNPATH tag from executables and libraries. But doing so
49956 # requires that you compile everything twice, which is a pain.
49957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
49959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49960 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49969 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
49971 hardcode_direct=yes
49972 hardcode_shlibpath_var=no
49976 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49985 if test "$ld_shlibs" = no; then
49987 hardcode_libdir_flag_spec=
49988 export_dynamic_flag_spec=
49989 whole_archive_flag_spec=
49992 # PORTME fill in a description of your system's linker (not GNU ld)
49995 allow_undefined_flag=unsupported
49996 always_export_symbols=yes
49997 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'
49998 # Note: this linker hardcodes the directories in LIBPATH if there
49999 # are no directories specified by -L.
50000 hardcode_minus_L=yes
50001 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
50002 # Neither direct hardcoding nor static linking is supported with a
50004 hardcode_direct=unsupported
50009 if test "$host_cpu" = ia64; then
50010 # On IA64, the linker does run time linking by default, so we don't
50011 # have to do anything special.
50012 aix_use_runtimelinking=no
50013 exp_sym_flag='-Bexport'
50016 # If we're using GNU nm, then we don't want the "-C" option.
50017 # -C means demangle to AIX nm, but means don't demangle with GNU nm
50018 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
50019 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'
50021 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'
50023 aix_use_runtimelinking=no
50025 # Test if we are trying to use run time linking or normal
50026 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
50027 # need to do runtime linking.
50028 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
50029 for ld_flag in $LDFLAGS; do
50030 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
50031 aix_use_runtimelinking=yes
50038 exp_sym_flag='-bexport'
50039 no_entry_flag='-bnoentry'
50042 # When large executables or shared objects are built, AIX ld can
50043 # have problems creating the table of contents. If linking a library
50044 # or program results in "error TOC overflow" add -mminimal-toc to
50045 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
50046 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
50049 hardcode_direct=yes
50050 hardcode_direct_absolute=yes
50051 hardcode_libdir_separator=':'
50052 link_all_deplibs=yes
50053 file_list_spec='${wl}-f,'
50055 if test "$GCC" = yes; then
50056 case $host_os in aix4.[012]|aix4.[012].*)
50057 # We only want to do this on AIX 4.2 and lower, the check
50058 # below for broken collect2 doesn't work under 4.3+
50059 collect2name=`${CC} -print-prog-name=collect2`
50060 if test -f "$collect2name" &&
50061 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
50063 # We have reworked collect2
50066 # We have old collect2
50067 hardcode_direct=unsupported
50068 # It fails to find uninstalled libraries when the uninstalled
50069 # path is not listed in the libpath. Setting hardcode_minus_L
50070 # to unsupported forces relinking
50071 hardcode_minus_L=yes
50072 hardcode_libdir_flag_spec='-L$libdir'
50073 hardcode_libdir_separator=
50077 shared_flag='-shared'
50078 if test "$aix_use_runtimelinking" = yes; then
50079 shared_flag="$shared_flag "'${wl}-G'
50083 if test "$host_cpu" = ia64; then
50084 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
50085 # chokes on -Wl,-G. The following line is correct:
50088 if test "$aix_use_runtimelinking" = yes; then
50089 shared_flag='${wl}-G'
50091 shared_flag='${wl}-bM:SRE'
50096 # It seems that -bexpall does not export symbols beginning with
50097 # underscore (_), so it is better to generate a list of symbols to export.
50098 always_export_symbols=yes
50099 if test "$aix_use_runtimelinking" = yes; then
50100 # Warning - without using the other runtime loading flags (-brtl),
50101 # -berok will link without error, but may produce a broken library.
50102 allow_undefined_flag='-berok'
50103 # Determine the default libpath from the value encoded in an
50104 # empty executable.
50105 cat >conftest.$ac_ext <<_ACEOF
50108 cat confdefs.h >>conftest.$ac_ext
50109 cat >>conftest.$ac_ext <<_ACEOF
50110 /* end confdefs.h. */
50120 rm -f conftest.$ac_objext conftest$ac_exeext
50121 if { (ac_try="$ac_link"
50122 case "(($ac_try" in
50123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50124 *) ac_try_echo=$ac_try;;
50126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50127 $as_echo "$ac_try_echo") >&5
50128 (eval "$ac_link") 2>conftest.er1
50130 grep -v '^ *+' conftest.er1 >conftest.err
50132 cat conftest.err >&5
50133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50134 (exit $ac_status); } && {
50135 test -z "$ac_c_werror_flag" ||
50136 test ! -s conftest.err
50137 } && test -s conftest$ac_exeext && {
50138 test "$cross_compiling" = yes ||
50139 $as_test_x conftest$ac_exeext
50142 lt_aix_libpath_sed='
50143 /Import File Strings/,/^$/ {
50149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50150 # Check for a 64-bit object if we didn't find anything.
50151 if test -z "$aix_libpath"; then
50152 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50155 $as_echo "$as_me: failed program was:" >&5
50156 sed 's/^/| /' conftest.$ac_ext >&5
50161 rm -rf conftest.dSYM
50162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50163 conftest$ac_exeext conftest.$ac_ext
50164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
50166 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
50167 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
50169 if test "$host_cpu" = ia64; then
50170 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
50171 allow_undefined_flag="-z nodefs"
50172 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
50174 # Determine the default libpath from the value encoded in an
50175 # empty executable.
50176 cat >conftest.$ac_ext <<_ACEOF
50179 cat confdefs.h >>conftest.$ac_ext
50180 cat >>conftest.$ac_ext <<_ACEOF
50181 /* end confdefs.h. */
50191 rm -f conftest.$ac_objext conftest$ac_exeext
50192 if { (ac_try="$ac_link"
50193 case "(($ac_try" in
50194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50195 *) ac_try_echo=$ac_try;;
50197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50198 $as_echo "$ac_try_echo") >&5
50199 (eval "$ac_link") 2>conftest.er1
50201 grep -v '^ *+' conftest.er1 >conftest.err
50203 cat conftest.err >&5
50204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50205 (exit $ac_status); } && {
50206 test -z "$ac_c_werror_flag" ||
50207 test ! -s conftest.err
50208 } && test -s conftest$ac_exeext && {
50209 test "$cross_compiling" = yes ||
50210 $as_test_x conftest$ac_exeext
50213 lt_aix_libpath_sed='
50214 /Import File Strings/,/^$/ {
50220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50221 # Check for a 64-bit object if we didn't find anything.
50222 if test -z "$aix_libpath"; then
50223 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50226 $as_echo "$as_me: failed program was:" >&5
50227 sed 's/^/| /' conftest.$ac_ext >&5
50232 rm -rf conftest.dSYM
50233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50234 conftest$ac_exeext conftest.$ac_ext
50235 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
50237 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
50238 # Warning - without using the other run time loading flags,
50239 # -berok will link without error, but may produce a broken library.
50240 no_undefined_flag=' ${wl}-bernotok'
50241 allow_undefined_flag=' ${wl}-berok'
50242 # Exported symbols can be pulled into shared objects from archives
50243 whole_archive_flag_spec='$convenience'
50244 archive_cmds_need_lc=yes
50245 # This is similar to how AIX traditionally builds its shared libraries.
50246 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
50254 # see comment about AmigaOS4 .so support
50255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
50256 archive_expsym_cmds=''
50259 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)'
50260 hardcode_libdir_flag_spec='-L$libdir'
50261 hardcode_minus_L=yes
50267 export_dynamic_flag_spec=-rdynamic
50270 cygwin* | mingw* | pw32*)
50271 # When not using gcc, we currently assume that we are using
50272 # Microsoft Visual C++.
50273 # hardcode_libdir_flag_spec is actually meaningless, as there is
50274 # no search path for DLLs.
50275 hardcode_libdir_flag_spec=' '
50276 allow_undefined_flag=unsupported
50277 # Tell ltmain to make .lib files, not .a files.
50279 # Tell ltmain to make .dll files, not .so files.
50281 # FIXME: Setting linknames here is a bad hack.
50282 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
50283 # The linker will automatically build a .lib file if we build a DLL.
50284 old_archive_from_new_cmds='true'
50285 # FIXME: Should let the user specify the lib program.
50286 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
50287 fix_srcfile_path='`cygpath -w "$srcfile"`'
50288 enable_shared_with_static_runtimes=yes
50291 darwin* | rhapsody*)
50294 archive_cmds_need_lc=no
50296 hardcode_automatic=yes
50297 hardcode_shlibpath_var=unsupported
50298 whole_archive_flag_spec=''
50299 link_all_deplibs=yes
50300 allow_undefined_flag="$_lt_dar_allow_undefined"
50301 if test "$GCC" = "yes"; then
50302 output_verbose_link_cmd=echo
50303 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
50304 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
50305 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
50306 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
50315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50316 hardcode_libdir_flag_spec='-L$libdir'
50317 hardcode_shlibpath_var=no
50324 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
50325 # support. Future versions do this automatically, but an explicit c++rt0.o
50326 # does not break anything, and helps significantly (at the cost of a little
50329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
50330 hardcode_libdir_flag_spec='-R$libdir'
50331 hardcode_direct=yes
50332 hardcode_shlibpath_var=no
50335 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
50337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
50338 hardcode_direct=yes
50339 hardcode_minus_L=yes
50340 hardcode_shlibpath_var=no
50343 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
50344 freebsd* | dragonfly*)
50345 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
50346 hardcode_libdir_flag_spec='-R$libdir'
50347 hardcode_direct=yes
50348 hardcode_shlibpath_var=no
50352 if test "$GCC" = yes; then
50353 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'
50355 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'
50357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
50358 hardcode_libdir_separator=:
50359 hardcode_direct=yes
50361 # hardcode_minus_L: Not really in the search PATH,
50362 # but as the default location of the library.
50363 hardcode_minus_L=yes
50364 export_dynamic_flag_spec='${wl}-E'
50368 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
50369 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
50371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
50373 if test "$with_gnu_ld" = no; then
50374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
50375 hardcode_libdir_flag_spec_ld='+b $libdir'
50376 hardcode_libdir_separator=:
50377 hardcode_direct=yes
50378 hardcode_direct_absolute=yes
50379 export_dynamic_flag_spec='${wl}-E'
50380 # hardcode_minus_L: Not really in the search PATH,
50381 # but as the default location of the library.
50382 hardcode_minus_L=yes
50387 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
50390 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50393 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
50396 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
50402 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50405 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
50408 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
50412 if test "$with_gnu_ld" = no; then
50413 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
50414 hardcode_libdir_separator=:
50419 hardcode_shlibpath_var=no
50422 hardcode_direct=yes
50423 hardcode_direct_absolute=yes
50424 export_dynamic_flag_spec='${wl}-E'
50426 # hardcode_minus_L: Not really in the search PATH,
50427 # but as the default location of the library.
50428 hardcode_minus_L=yes
50434 irix5* | irix6* | nonstopux*)
50435 if test "$GCC" = yes; then
50436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
50437 # Try to use the -exported_symbol ld option, if it does not
50438 # work, assume that -exports_file does not work either and
50439 # implicitly export all symbols.
50440 save_LDFLAGS="$LDFLAGS"
50441 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
50442 cat >conftest.$ac_ext <<_ACEOF
50445 rm -f conftest.$ac_objext conftest$ac_exeext
50446 if { (ac_try="$ac_link"
50447 case "(($ac_try" in
50448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50449 *) ac_try_echo=$ac_try;;
50451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50452 $as_echo "$ac_try_echo") >&5
50453 (eval "$ac_link") 2>conftest.er1
50455 grep -v '^ *+' conftest.er1 >conftest.err
50457 cat conftest.err >&5
50458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50459 (exit $ac_status); } && {
50460 test -z "$ac_c_werror_flag" ||
50461 test ! -s conftest.err
50462 } && test -s conftest$ac_exeext && {
50463 test "$cross_compiling" = yes ||
50464 $as_test_x conftest$ac_exeext
50466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
50469 $as_echo "$as_me: failed program was:" >&5
50470 sed 's/^/| /' conftest.$ac_ext >&5
50475 rm -rf conftest.dSYM
50476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50477 conftest$ac_exeext conftest.$ac_ext
50478 LDFLAGS="$save_LDFLAGS"
50480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
50481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
50483 archive_cmds_need_lc='no'
50484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50485 hardcode_libdir_separator=:
50487 link_all_deplibs=yes
50491 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
50492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
50494 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
50496 hardcode_libdir_flag_spec='-R$libdir'
50497 hardcode_direct=yes
50498 hardcode_shlibpath_var=no
50502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50503 hardcode_direct=yes
50504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50505 hardcode_libdir_separator=:
50506 hardcode_shlibpath_var=no
50513 if test -f /usr/libexec/ld.so; then
50514 hardcode_direct=yes
50515 hardcode_shlibpath_var=no
50516 hardcode_direct_absolute=yes
50517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
50518 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
50519 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
50520 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
50521 export_dynamic_flag_spec='${wl}-E'
50524 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
50525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
50526 hardcode_libdir_flag_spec='-R$libdir'
50529 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
50530 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
50540 hardcode_libdir_flag_spec='-L$libdir'
50541 hardcode_minus_L=yes
50542 allow_undefined_flag=unsupported
50543 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'
50544 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
50548 if test "$GCC" = yes; then
50549 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
50550 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
50552 allow_undefined_flag=' -expect_unresolved \*'
50553 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
50555 archive_cmds_need_lc='no'
50556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50557 hardcode_libdir_separator=:
50560 osf4* | osf5*) # as osf3* with the addition of -msym flag
50561 if test "$GCC" = yes; then
50562 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
50563 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
50564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50566 allow_undefined_flag=' -expect_unresolved \*'
50567 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
50568 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
50569 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
50571 # Both c and cxx compiler support -rpath directly
50572 hardcode_libdir_flag_spec='-rpath $libdir'
50574 archive_cmds_need_lc='no'
50575 hardcode_libdir_separator=:
50579 no_undefined_flag=' -z defs'
50580 if test "$GCC" = yes; then
50582 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50584 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
50586 case `$CC -V 2>&1` in
50589 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
50590 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50591 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
50595 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
50596 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50597 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
50601 hardcode_libdir_flag_spec='-R$libdir'
50602 hardcode_shlibpath_var=no
50604 solaris2.[0-5] | solaris2.[0-5].*) ;;
50606 # The compiler driver will combine and reorder linker options,
50607 # but understands `-z linker_flag'. GCC discards it without `$wl',
50608 # but is careful enough not to reorder.
50609 # Supported since Solaris 2.6 (maybe 2.5.1?)
50610 if test "$GCC" = yes; then
50611 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
50613 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
50617 link_all_deplibs=yes
50621 if test "x$host_vendor" = xsequent; then
50622 # Use $CC to link under sequent, because it throws in some extra .o
50623 # files that make .init and .fini sections work.
50624 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
50626 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
50628 hardcode_libdir_flag_spec='-L$libdir'
50629 hardcode_direct=yes
50630 hardcode_minus_L=yes
50631 hardcode_shlibpath_var=no
50635 case $host_vendor in
50637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50638 hardcode_direct=yes # is this really true???
50641 ## LD is ld it makes a PLAMLIB
50642 ## CC just makes a GrossModule.
50643 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
50644 reload_cmds='$CC -r -o $output$reload_objs'
50648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50649 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
50652 runpath_var='LD_RUN_PATH'
50653 hardcode_shlibpath_var=no
50657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50658 hardcode_shlibpath_var=no
50659 export_dynamic_flag_spec='-Bexport'
50663 if test -d /usr/nec; then
50664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50665 hardcode_shlibpath_var=no
50666 runpath_var=LD_RUN_PATH
50667 hardcode_runpath_var=yes
50672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
50673 no_undefined_flag='${wl}-z,text'
50674 archive_cmds_need_lc=no
50675 hardcode_shlibpath_var=no
50676 runpath_var='LD_RUN_PATH'
50678 if test "$GCC" = yes; then
50679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50687 sysv5* | sco3.2v5* | sco5v6*)
50688 # Note: We can NOT use -z defs as we might desire, because we do not
50689 # link with -lc, and that would cause any symbols used from libc to
50690 # always be unresolved, which means just about no library would
50691 # ever link correctly. If we're not using GNU ld we use -z text
50692 # though, which does catch some bad symbols but isn't as heavy-handed
50694 no_undefined_flag='${wl}-z,text'
50695 allow_undefined_flag='${wl}-z,nodefs'
50696 archive_cmds_need_lc=no
50697 hardcode_shlibpath_var=no
50698 hardcode_libdir_flag_spec='${wl}-R,$libdir'
50699 hardcode_libdir_separator=':'
50700 link_all_deplibs=yes
50701 export_dynamic_flag_spec='${wl}-Bexport'
50702 runpath_var='LD_RUN_PATH'
50704 if test "$GCC" = yes; then
50705 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50708 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50715 hardcode_libdir_flag_spec='-L$libdir'
50716 hardcode_shlibpath_var=no
50724 if test x$host_vendor = xsni; then
50726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
50727 export_dynamic_flag_spec='${wl}-Blargedynsym'
50733 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
50734 $as_echo "$ld_shlibs" >&6; }
50735 test "$ld_shlibs" = no && can_build_shared=no
50737 with_gnu_ld=$with_gnu_ld
50754 # Do we need to explicitly link libc?
50756 case "x$archive_cmds_need_lc" in
50758 # Assume -lc should be added
50759 archive_cmds_need_lc=yes
50761 if test "$enable_shared" = yes && test "$GCC" = yes; then
50762 case $archive_cmds in
50764 # FIXME: we may have to deal with multi-command sequences.
50767 # Test whether the compiler implicitly links with -lc since on some
50768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
50769 # to ld, don't add -lc before -lgcc.
50770 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
50771 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
50773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
50775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50776 (eval $ac_compile) 2>&5
50778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50779 (exit $ac_status); } 2>conftest.err; then
50782 libobjs=conftest.$ac_objext
50784 wl=$lt_prog_compiler_wl
50785 pic_flag=$lt_prog_compiler_pic
50791 lt_save_allow_undefined_flag=$allow_undefined_flag
50792 allow_undefined_flag=
50793 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
50794 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
50796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50797 (exit $ac_status); }
50799 archive_cmds_need_lc=no
50801 archive_cmds_need_lc=yes
50803 allow_undefined_flag=$lt_save_allow_undefined_flag
50805 cat conftest.err 1>&5
50808 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
50809 $as_echo "$archive_cmds_need_lc" >&6; }
50972 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
50973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
50975 if test "$GCC" = yes; then
50977 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
50978 *) lt_awk_arg="/^libraries:/" ;;
50980 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
50981 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
50982 # if the path contains ";" then we assume it to be the separator
50983 # otherwise default to the standard path separator (i.e. ":") - it is
50984 # assumed that no part of a normal pathname contains ";" but that should
50985 # okay in the real world where ";" in dirpaths is itself problematic.
50986 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
50988 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
50990 # Ok, now we have the path, separated by spaces, we can step through it
50991 # and add multilib dir if necessary.
50992 lt_tmp_lt_search_path_spec=
50993 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
50994 for lt_sys_path in $lt_search_path_spec; do
50995 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
50996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
50998 test -d "$lt_sys_path" && \
50999 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
51002 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
51003 BEGIN {RS=" "; FS="/|\n";} {
51006 for (lt_i = NF; lt_i > 0; lt_i--) {
51007 if ($lt_i != "" && $lt_i != ".") {
51008 if ($lt_i == "..") {
51011 if (lt_count == 0) {
51012 lt_foo="/" $lt_i lt_foo;
51019 if (lt_foo != "") { lt_freq[lt_foo]++; }
51020 if (lt_freq[lt_foo] == 1) { print lt_foo; }
51022 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
51024 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
51026 library_names_spec=
51027 libname_spec='lib$name'
51031 postuninstall_cmds=
51035 shlibpath_overrides_runpath=unknown
51037 dynamic_linker="$host_os ld.so"
51038 sys_lib_dlsearch_path_spec="/lib /usr/lib"
51039 need_lib_prefix=unknown
51040 hardcode_into_libs=no
51042 # when you set need_version to no, make sure it does not cause -set_version
51043 # flags to be left without arguments
51044 need_version=unknown
51049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
51050 shlibpath_var=LIBPATH
51052 # AIX 3 has no versioning support, so we append a major version to the name.
51053 soname_spec='${libname}${release}${shared_ext}$major'
51060 hardcode_into_libs=yes
51061 if test "$host_cpu" = ia64; then
51062 # AIX 5 supports IA64
51063 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
51064 shlibpath_var=LD_LIBRARY_PATH
51066 # With GCC up to 2.95.x, collect2 would create an import file
51067 # for dependence libraries. The import file would start with
51068 # the line `#! .'. This would cause the generated library to
51069 # depend on `.', always an invalid library. This was fixed in
51070 # development snapshots of GCC prior to 3.0.
51072 aix4 | aix4.[01] | aix4.[01].*)
51073 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
51075 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
51078 can_build_shared=no
51082 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
51083 # soname into executable. Probably we can add versioning support to
51084 # collect2, so additional links can be useful in future.
51085 if test "$aix_use_runtimelinking" = yes; then
51086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
51087 # instead of lib<name>.a to let people know that these are not
51088 # typical AIX shared libraries.
51089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51091 # We preserve .a as extension for shared libraries through AIX4.2
51092 # and later when we are not doing run time linking.
51093 library_names_spec='${libname}${release}.a $libname.a'
51094 soname_spec='${libname}${release}${shared_ext}$major'
51096 shlibpath_var=LIBPATH
51103 # Since July 2007 AmigaOS4 officially supports .so libraries.
51104 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
51105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51108 library_names_spec='$libname.ixlibrary $libname.a'
51109 # Create ${libname}_ixlibrary.a entries in /sys/libs.
51110 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'
51116 library_names_spec='${libname}${shared_ext}'
51117 dynamic_linker="$host_os ld.so"
51118 shlibpath_var=LIBRARY_PATH
51124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51125 soname_spec='${libname}${release}${shared_ext}$major'
51126 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
51127 shlibpath_var=LD_LIBRARY_PATH
51128 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
51129 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
51130 # the default ld.so.conf also contains /usr/contrib/lib and
51131 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
51132 # libtool to hard-code these into programs
51135 cygwin* | mingw* | pw32*)
51136 version_type=windows
51141 case $GCC,$host_os in
51142 yes,cygwin* | yes,mingw* | yes,pw32*)
51143 library_names_spec='$libname.dll.a'
51144 # DLL is installed to $(libdir)/../bin by postinstall_cmds
51145 postinstall_cmds='base_file=`basename \${file}`~
51146 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
51147 dldir=$destdir/`dirname \$dlpath`~
51148 test -d \$dldir || mkdir -p \$dldir~
51149 $install_prog $dir/$dlname \$dldir/$dlname~
51150 chmod a+x \$dldir/$dlname~
51151 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
51152 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
51154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
51155 dlpath=$dir/\$dldll~
51157 shlibpath_overrides_runpath=yes
51161 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
51162 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
51163 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
51166 # MinGW DLLs use traditional 'lib' prefix
51167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
51168 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
51169 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
51170 # It is most probably a Windows format PATH printed by
51171 # mingw gcc, but we are running on Cygwin. Gcc prints its search
51172 # path with ; separators, and with drive letters. We can handle the
51173 # drive letters (cygwin fileutils understands them), so leave them,
51174 # especially as we might pass files found there to a mingw objdump,
51175 # which wouldn't understand a cygwinified path. Ahh.
51176 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
51178 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
51182 # pw32 DLLs use 'pw' prefix rather than 'lib'
51183 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
51189 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
51192 dynamic_linker='Win32 ld.exe'
51193 # FIXME: first we should search . and the directory the executable is in
51197 darwin* | rhapsody*)
51198 dynamic_linker="$host_os dyld"
51199 version_type=darwin
51202 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
51203 soname_spec='${libname}${release}${major}$shared_ext'
51204 shlibpath_overrides_runpath=yes
51205 shlibpath_var=DYLD_LIBRARY_PATH
51206 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
51208 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
51209 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
51216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
51217 soname_spec='${libname}${release}${shared_ext}$major'
51218 shlibpath_var=LD_LIBRARY_PATH
51225 freebsd* | dragonfly*)
51226 # DragonFly does not have aout. When/if they implement a new
51227 # versioning mechanism, adjust this.
51228 if test -x /usr/bin/objformat; then
51229 objformat=`/usr/bin/objformat`
51232 freebsd[123]*) objformat=aout ;;
51233 *) objformat=elf ;;
51236 # Handle Gentoo/FreeBSD as it was Linux
51237 case $host_vendor in
51239 version_type=linux ;;
51241 version_type=freebsd-$objformat ;;
51244 case $version_type in
51246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
51251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
51255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
51256 soname_spec='${libname}${release}${shared_ext}$major'
51261 shlibpath_var=LD_LIBRARY_PATH
51264 shlibpath_overrides_runpath=yes
51266 freebsd3.[01]* | freebsdelf3.[01]*)
51267 shlibpath_overrides_runpath=yes
51268 hardcode_into_libs=yes
51270 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
51271 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
51272 shlibpath_overrides_runpath=no
51273 hardcode_into_libs=yes
51275 *) # from 4.6 on, and DragonFly
51276 shlibpath_overrides_runpath=yes
51277 hardcode_into_libs=yes
51286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
51287 soname_spec='${libname}${release}${shared_ext}$major'
51288 shlibpath_var=LD_LIBRARY_PATH
51289 hardcode_into_libs=yes
51292 hpux9* | hpux10* | hpux11*)
51293 # Give a soname corresponding to the major version so that dld.sl refuses to
51294 # link against other versions.
51301 hardcode_into_libs=yes
51302 dynamic_linker="$host_os dld.so"
51303 shlibpath_var=LD_LIBRARY_PATH
51304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
51305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51306 soname_spec='${libname}${release}${shared_ext}$major'
51307 if test "X$HPUX_IA64_MODE" = X32; then
51308 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
51310 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
51312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
51316 hardcode_into_libs=yes
51317 dynamic_linker="$host_os dld.sl"
51318 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
51319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
51320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51321 soname_spec='${libname}${release}${shared_ext}$major'
51322 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
51323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
51327 dynamic_linker="$host_os dld.sl"
51328 shlibpath_var=SHLIB_PATH
51329 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
51330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51331 soname_spec='${libname}${release}${shared_ext}$major'
51334 # HP-UX runs *really* slowly unless shared libraries are mode 555.
51335 postinstall_cmds='chmod 555 $lib'
51342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
51343 soname_spec='${libname}${release}${shared_ext}$major'
51344 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
51345 shlibpath_var=LD_LIBRARY_PATH
51346 shlibpath_overrides_runpath=no
51347 hardcode_into_libs=yes
51350 irix5* | irix6* | nonstopux*)
51352 nonstopux*) version_type=nonstopux ;;
51354 if test "$lt_cv_prog_gnu_ld" = yes; then
51362 soname_spec='${libname}${release}${shared_ext}$major'
51363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
51365 irix5* | nonstopux*)
51366 libsuff= shlibsuff=
51369 case $LD in # libtool.m4 will add one of these switches to LD
51370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
51371 libsuff= shlibsuff= libmagic=32-bit;;
51372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
51373 libsuff=32 shlibsuff=N32 libmagic=N32;;
51374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
51375 libsuff=64 shlibsuff=64 libmagic=64-bit;;
51376 *) libsuff= shlibsuff= libmagic=never-match;;
51380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
51381 shlibpath_overrides_runpath=no
51382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
51383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
51384 hardcode_into_libs=yes
51387 # No shared lib support for Linux oldld, aout, or coff.
51388 linux*oldld* | linux*aout* | linux*coff*)
51392 # This must be Linux ELF.
51393 linux* | k*bsd*-gnu)
51397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51398 soname_spec='${libname}${release}${shared_ext}$major'
51399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
51400 shlibpath_var=LD_LIBRARY_PATH
51401 shlibpath_overrides_runpath=no
51402 # Some binutils ld are patched to set DT_RUNPATH
51403 save_LDFLAGS=$LDFLAGS
51404 save_libdir=$libdir
51405 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
51406 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
51407 cat >conftest.$ac_ext <<_ACEOF
51410 cat confdefs.h >>conftest.$ac_ext
51411 cat >>conftest.$ac_ext <<_ACEOF
51412 /* end confdefs.h. */
51422 rm -f conftest.$ac_objext conftest$ac_exeext
51423 if { (ac_try="$ac_link"
51424 case "(($ac_try" in
51425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51426 *) ac_try_echo=$ac_try;;
51428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51429 $as_echo "$ac_try_echo") >&5
51430 (eval "$ac_link") 2>conftest.er1
51432 grep -v '^ *+' conftest.er1 >conftest.err
51434 cat conftest.err >&5
51435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51436 (exit $ac_status); } && {
51437 test -z "$ac_c_werror_flag" ||
51438 test ! -s conftest.err
51439 } && test -s conftest$ac_exeext && {
51440 test "$cross_compiling" = yes ||
51441 $as_test_x conftest$ac_exeext
51443 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
51444 shlibpath_overrides_runpath=yes
51448 $as_echo "$as_me: failed program was:" >&5
51449 sed 's/^/| /' conftest.$ac_ext >&5
51454 rm -rf conftest.dSYM
51455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51456 conftest$ac_exeext conftest.$ac_ext
51457 LDFLAGS=$save_LDFLAGS
51458 libdir=$save_libdir
51460 # This implies no fast_install, which is unacceptable.
51461 # Some rework will be needed to allow for fast_install
51462 # before this can be enabled.
51463 hardcode_into_libs=yes
51465 # Append ld.so.conf contents to the search path
51466 if test -f /etc/ld.so.conf; then
51467 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
51468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
51471 # We used to test for /lib/ld.so.1 and disable shared libraries on
51472 # powerpc, because MkLinux only supported shared libraries with the
51473 # GNU dynamic linker. Since this was broken with cross compilers,
51474 # most powerpc-linux boxes support dynamic linking these days and
51475 # people can always --disable-shared, the test was removed, and we
51476 # assume the GNU/Linux dynamic linker is in use.
51477 dynamic_linker='GNU/Linux ld.so'
51484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
51485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
51486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
51487 dynamic_linker='NetBSD (a.out) ld.so'
51489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
51490 soname_spec='${libname}${release}${shared_ext}$major'
51491 dynamic_linker='NetBSD ld.elf_so'
51493 shlibpath_var=LD_LIBRARY_PATH
51494 shlibpath_overrides_runpath=yes
51495 hardcode_into_libs=yes
51500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51501 shlibpath_var=LD_LIBRARY_PATH
51502 shlibpath_overrides_runpath=yes
51509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51510 soname_spec='${libname}${release}${shared_ext}$major'
51511 shlibpath_var=LD_LIBRARY_PATH
51512 shlibpath_overrides_runpath=no
51513 hardcode_into_libs=yes
51514 dynamic_linker='ldqnx.so'
51519 sys_lib_dlsearch_path_spec="/usr/lib"
51521 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
51523 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
51524 *) need_version=no ;;
51526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
51527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
51528 shlibpath_var=LD_LIBRARY_PATH
51529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
51531 openbsd2.[89] | openbsd2.[89].*)
51532 shlibpath_overrides_runpath=no
51535 shlibpath_overrides_runpath=yes
51539 shlibpath_overrides_runpath=yes
51544 libname_spec='$name'
51547 library_names_spec='$libname${shared_ext} $libname.a'
51548 dynamic_linker='OS/2 ld.exe'
51549 shlibpath_var=LIBPATH
51552 osf3* | osf4* | osf5*)
51556 soname_spec='${libname}${release}${shared_ext}$major'
51557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51558 shlibpath_var=LD_LIBRARY_PATH
51559 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
51560 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
51571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51572 soname_spec='${libname}${release}${shared_ext}$major'
51573 shlibpath_var=LD_LIBRARY_PATH
51574 shlibpath_overrides_runpath=yes
51575 hardcode_into_libs=yes
51576 # ldd complains unless libraries are executable
51577 postinstall_cmds='chmod +x $lib'
51582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
51583 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
51584 shlibpath_var=LD_LIBRARY_PATH
51585 shlibpath_overrides_runpath=yes
51586 if test "$with_gnu_ld" = yes; then
51594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51595 soname_spec='${libname}${release}${shared_ext}$major'
51596 shlibpath_var=LD_LIBRARY_PATH
51597 case $host_vendor in
51599 shlibpath_overrides_runpath=no
51601 runpath_var=LD_RUN_PATH
51609 shlibpath_overrides_runpath=no
51610 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
51616 if test -d /usr/nec ;then
51618 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
51619 soname_spec='$libname${shared_ext}.$major'
51620 shlibpath_var=LD_LIBRARY_PATH
51624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
51625 version_type=freebsd-elf
51628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
51629 soname_spec='${libname}${release}${shared_ext}$major'
51630 shlibpath_var=LD_LIBRARY_PATH
51631 shlibpath_overrides_runpath=yes
51632 hardcode_into_libs=yes
51633 if test "$with_gnu_ld" = yes; then
51634 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
51636 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
51639 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
51643 sys_lib_dlsearch_path_spec='/usr/lib'
51647 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
51651 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51652 shlibpath_var=LD_LIBRARY_PATH
51653 shlibpath_overrides_runpath=no
51654 hardcode_into_libs=yes
51659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51660 soname_spec='${libname}${release}${shared_ext}$major'
51661 shlibpath_var=LD_LIBRARY_PATH
51668 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
51669 $as_echo "$dynamic_linker" >&6; }
51670 test "$dynamic_linker" = no && can_build_shared=no
51672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
51673 if test "$GCC" = yes; then
51674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
51677 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
51678 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
51680 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
51681 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
51770 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
51771 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
51773 if test -n "$hardcode_libdir_flag_spec" ||
51774 test -n "$runpath_var" ||
51775 test "X$hardcode_automatic" = "Xyes" ; then
51777 # We can hardcode non-existent directories.
51778 if test "$hardcode_direct" != no &&
51779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
51780 # have to relink, otherwise we might link with an installed library
51781 # when we should be linking with a yet-to-be-installed one
51782 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
51783 test "$hardcode_minus_L" != no; then
51784 # Linking always hardcodes the temporary library directory.
51785 hardcode_action=relink
51787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
51788 hardcode_action=immediate
51791 # We cannot hardcode anything, or else we can only hardcode existing
51793 hardcode_action=unsupported
51795 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
51796 $as_echo "$hardcode_action" >&6; }
51798 if test "$hardcode_action" = relink ||
51799 test "$inherit_rpath" = yes; then
51800 # Fast installation is not supported
51801 enable_fast_install=no
51802 elif test "$shlibpath_overrides_runpath" = yes ||
51803 test "$enable_shared" = no; then
51804 # Fast installation is not necessary
51805 enable_fast_install=needless
51813 if test "x$enable_dlopen" != xyes; then
51814 enable_dlopen=unknown
51815 enable_dlopen_self=unknown
51816 enable_dlopen_self_static=unknown
51823 lt_cv_dlopen="load_add_on"
51825 lt_cv_dlopen_self=yes
51829 lt_cv_dlopen="LoadLibrary"
51834 lt_cv_dlopen="dlopen"
51839 # if libdl is installed we need to link against it
51840 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
51841 $as_echo_n "checking for dlopen in -ldl... " >&6; }
51842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
51843 $as_echo_n "(cached) " >&6
51845 ac_check_lib_save_LIBS=$LIBS
51847 cat >conftest.$ac_ext <<_ACEOF
51850 cat confdefs.h >>conftest.$ac_ext
51851 cat >>conftest.$ac_ext <<_ACEOF
51852 /* end confdefs.h. */
51854 /* Override any GCC internal prototype to avoid an error.
51855 Use char because int might match the return type of a GCC
51856 builtin and then its argument prototype would still apply. */
51869 rm -f conftest.$ac_objext conftest$ac_exeext
51870 if { (ac_try="$ac_link"
51871 case "(($ac_try" in
51872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51873 *) ac_try_echo=$ac_try;;
51875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51876 $as_echo "$ac_try_echo") >&5
51877 (eval "$ac_link") 2>conftest.er1
51879 grep -v '^ *+' conftest.er1 >conftest.err
51881 cat conftest.err >&5
51882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51883 (exit $ac_status); } && {
51884 test -z "$ac_c_werror_flag" ||
51885 test ! -s conftest.err
51886 } && test -s conftest$ac_exeext && {
51887 test "$cross_compiling" = yes ||
51888 $as_test_x conftest$ac_exeext
51890 ac_cv_lib_dl_dlopen=yes
51892 $as_echo "$as_me: failed program was:" >&5
51893 sed 's/^/| /' conftest.$ac_ext >&5
51895 ac_cv_lib_dl_dlopen=no
51898 rm -rf conftest.dSYM
51899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51900 conftest$ac_exeext conftest.$ac_ext
51901 LIBS=$ac_check_lib_save_LIBS
51903 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
51904 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
51905 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
51906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
51909 lt_cv_dlopen="dyld"
51911 lt_cv_dlopen_self=yes
51918 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
51919 $as_echo_n "checking for shl_load... " >&6; }
51920 if test "${ac_cv_func_shl_load+set}" = set; then
51921 $as_echo_n "(cached) " >&6
51923 cat >conftest.$ac_ext <<_ACEOF
51926 cat confdefs.h >>conftest.$ac_ext
51927 cat >>conftest.$ac_ext <<_ACEOF
51928 /* end confdefs.h. */
51929 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
51930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51931 #define shl_load innocuous_shl_load
51933 /* System header to define __stub macros and hopefully few prototypes,
51934 which can conflict with char shl_load (); below.
51935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51936 <limits.h> exists even on freestanding compilers. */
51939 # include <limits.h>
51941 # include <assert.h>
51946 /* Override any GCC internal prototype to avoid an error.
51947 Use char because int might match the return type of a GCC
51948 builtin and then its argument prototype would still apply. */
51953 /* The GNU C library defines this for functions which it implements
51954 to always fail with ENOSYS. Some functions are actually named
51955 something starting with __ and the normal name is an alias. */
51956 #if defined __stub_shl_load || defined __stub___shl_load
51963 return shl_load ();
51968 rm -f conftest.$ac_objext conftest$ac_exeext
51969 if { (ac_try="$ac_link"
51970 case "(($ac_try" in
51971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51972 *) ac_try_echo=$ac_try;;
51974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51975 $as_echo "$ac_try_echo") >&5
51976 (eval "$ac_link") 2>conftest.er1
51978 grep -v '^ *+' conftest.er1 >conftest.err
51980 cat conftest.err >&5
51981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51982 (exit $ac_status); } && {
51983 test -z "$ac_c_werror_flag" ||
51984 test ! -s conftest.err
51985 } && test -s conftest$ac_exeext && {
51986 test "$cross_compiling" = yes ||
51987 $as_test_x conftest$ac_exeext
51989 ac_cv_func_shl_load=yes
51991 $as_echo "$as_me: failed program was:" >&5
51992 sed 's/^/| /' conftest.$ac_ext >&5
51994 ac_cv_func_shl_load=no
51997 rm -rf conftest.dSYM
51998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51999 conftest$ac_exeext conftest.$ac_ext
52001 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
52002 $as_echo "$ac_cv_func_shl_load" >&6; }
52003 if test "x$ac_cv_func_shl_load" = x""yes; then
52004 lt_cv_dlopen="shl_load"
52006 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
52007 $as_echo_n "checking for shl_load in -ldld... " >&6; }
52008 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
52009 $as_echo_n "(cached) " >&6
52011 ac_check_lib_save_LIBS=$LIBS
52013 cat >conftest.$ac_ext <<_ACEOF
52016 cat confdefs.h >>conftest.$ac_ext
52017 cat >>conftest.$ac_ext <<_ACEOF
52018 /* end confdefs.h. */
52020 /* Override any GCC internal prototype to avoid an error.
52021 Use char because int might match the return type of a GCC
52022 builtin and then its argument prototype would still apply. */
52030 return shl_load ();
52035 rm -f conftest.$ac_objext conftest$ac_exeext
52036 if { (ac_try="$ac_link"
52037 case "(($ac_try" in
52038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52039 *) ac_try_echo=$ac_try;;
52041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52042 $as_echo "$ac_try_echo") >&5
52043 (eval "$ac_link") 2>conftest.er1
52045 grep -v '^ *+' conftest.er1 >conftest.err
52047 cat conftest.err >&5
52048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52049 (exit $ac_status); } && {
52050 test -z "$ac_c_werror_flag" ||
52051 test ! -s conftest.err
52052 } && test -s conftest$ac_exeext && {
52053 test "$cross_compiling" = yes ||
52054 $as_test_x conftest$ac_exeext
52056 ac_cv_lib_dld_shl_load=yes
52058 $as_echo "$as_me: failed program was:" >&5
52059 sed 's/^/| /' conftest.$ac_ext >&5
52061 ac_cv_lib_dld_shl_load=no
52064 rm -rf conftest.dSYM
52065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52066 conftest$ac_exeext conftest.$ac_ext
52067 LIBS=$ac_check_lib_save_LIBS
52069 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
52070 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
52071 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
52072 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
52074 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
52075 $as_echo_n "checking for dlopen... " >&6; }
52076 if test "${ac_cv_func_dlopen+set}" = set; then
52077 $as_echo_n "(cached) " >&6
52079 cat >conftest.$ac_ext <<_ACEOF
52082 cat confdefs.h >>conftest.$ac_ext
52083 cat >>conftest.$ac_ext <<_ACEOF
52084 /* end confdefs.h. */
52085 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
52086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52087 #define dlopen innocuous_dlopen
52089 /* System header to define __stub macros and hopefully few prototypes,
52090 which can conflict with char dlopen (); below.
52091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52092 <limits.h> exists even on freestanding compilers. */
52095 # include <limits.h>
52097 # include <assert.h>
52102 /* Override any GCC internal prototype to avoid an error.
52103 Use char because int might match the return type of a GCC
52104 builtin and then its argument prototype would still apply. */
52109 /* The GNU C library defines this for functions which it implements
52110 to always fail with ENOSYS. Some functions are actually named
52111 something starting with __ and the normal name is an alias. */
52112 #if defined __stub_dlopen || defined __stub___dlopen
52124 rm -f conftest.$ac_objext conftest$ac_exeext
52125 if { (ac_try="$ac_link"
52126 case "(($ac_try" in
52127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52128 *) ac_try_echo=$ac_try;;
52130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52131 $as_echo "$ac_try_echo") >&5
52132 (eval "$ac_link") 2>conftest.er1
52134 grep -v '^ *+' conftest.er1 >conftest.err
52136 cat conftest.err >&5
52137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52138 (exit $ac_status); } && {
52139 test -z "$ac_c_werror_flag" ||
52140 test ! -s conftest.err
52141 } && test -s conftest$ac_exeext && {
52142 test "$cross_compiling" = yes ||
52143 $as_test_x conftest$ac_exeext
52145 ac_cv_func_dlopen=yes
52147 $as_echo "$as_me: failed program was:" >&5
52148 sed 's/^/| /' conftest.$ac_ext >&5
52150 ac_cv_func_dlopen=no
52153 rm -rf conftest.dSYM
52154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52155 conftest$ac_exeext conftest.$ac_ext
52157 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
52158 $as_echo "$ac_cv_func_dlopen" >&6; }
52159 if test "x$ac_cv_func_dlopen" = x""yes; then
52160 lt_cv_dlopen="dlopen"
52162 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
52163 $as_echo_n "checking for dlopen in -ldl... " >&6; }
52164 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
52165 $as_echo_n "(cached) " >&6
52167 ac_check_lib_save_LIBS=$LIBS
52169 cat >conftest.$ac_ext <<_ACEOF
52172 cat confdefs.h >>conftest.$ac_ext
52173 cat >>conftest.$ac_ext <<_ACEOF
52174 /* end confdefs.h. */
52176 /* Override any GCC internal prototype to avoid an error.
52177 Use char because int might match the return type of a GCC
52178 builtin and then its argument prototype would still apply. */
52191 rm -f conftest.$ac_objext conftest$ac_exeext
52192 if { (ac_try="$ac_link"
52193 case "(($ac_try" in
52194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52195 *) ac_try_echo=$ac_try;;
52197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52198 $as_echo "$ac_try_echo") >&5
52199 (eval "$ac_link") 2>conftest.er1
52201 grep -v '^ *+' conftest.er1 >conftest.err
52203 cat conftest.err >&5
52204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52205 (exit $ac_status); } && {
52206 test -z "$ac_c_werror_flag" ||
52207 test ! -s conftest.err
52208 } && test -s conftest$ac_exeext && {
52209 test "$cross_compiling" = yes ||
52210 $as_test_x conftest$ac_exeext
52212 ac_cv_lib_dl_dlopen=yes
52214 $as_echo "$as_me: failed program was:" >&5
52215 sed 's/^/| /' conftest.$ac_ext >&5
52217 ac_cv_lib_dl_dlopen=no
52220 rm -rf conftest.dSYM
52221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52222 conftest$ac_exeext conftest.$ac_ext
52223 LIBS=$ac_check_lib_save_LIBS
52225 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
52226 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
52227 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
52228 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
52230 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
52231 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
52232 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
52233 $as_echo_n "(cached) " >&6
52235 ac_check_lib_save_LIBS=$LIBS
52236 LIBS="-lsvld $LIBS"
52237 cat >conftest.$ac_ext <<_ACEOF
52240 cat confdefs.h >>conftest.$ac_ext
52241 cat >>conftest.$ac_ext <<_ACEOF
52242 /* end confdefs.h. */
52244 /* Override any GCC internal prototype to avoid an error.
52245 Use char because int might match the return type of a GCC
52246 builtin and then its argument prototype would still apply. */
52259 rm -f conftest.$ac_objext conftest$ac_exeext
52260 if { (ac_try="$ac_link"
52261 case "(($ac_try" in
52262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52263 *) ac_try_echo=$ac_try;;
52265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52266 $as_echo "$ac_try_echo") >&5
52267 (eval "$ac_link") 2>conftest.er1
52269 grep -v '^ *+' conftest.er1 >conftest.err
52271 cat conftest.err >&5
52272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52273 (exit $ac_status); } && {
52274 test -z "$ac_c_werror_flag" ||
52275 test ! -s conftest.err
52276 } && test -s conftest$ac_exeext && {
52277 test "$cross_compiling" = yes ||
52278 $as_test_x conftest$ac_exeext
52280 ac_cv_lib_svld_dlopen=yes
52282 $as_echo "$as_me: failed program was:" >&5
52283 sed 's/^/| /' conftest.$ac_ext >&5
52285 ac_cv_lib_svld_dlopen=no
52288 rm -rf conftest.dSYM
52289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52290 conftest$ac_exeext conftest.$ac_ext
52291 LIBS=$ac_check_lib_save_LIBS
52293 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
52294 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
52295 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
52296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
52298 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
52299 $as_echo_n "checking for dld_link in -ldld... " >&6; }
52300 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
52301 $as_echo_n "(cached) " >&6
52303 ac_check_lib_save_LIBS=$LIBS
52305 cat >conftest.$ac_ext <<_ACEOF
52308 cat confdefs.h >>conftest.$ac_ext
52309 cat >>conftest.$ac_ext <<_ACEOF
52310 /* end confdefs.h. */
52312 /* Override any GCC internal prototype to avoid an error.
52313 Use char because int might match the return type of a GCC
52314 builtin and then its argument prototype would still apply. */
52322 return dld_link ();
52327 rm -f conftest.$ac_objext conftest$ac_exeext
52328 if { (ac_try="$ac_link"
52329 case "(($ac_try" in
52330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52331 *) ac_try_echo=$ac_try;;
52333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52334 $as_echo "$ac_try_echo") >&5
52335 (eval "$ac_link") 2>conftest.er1
52337 grep -v '^ *+' conftest.er1 >conftest.err
52339 cat conftest.err >&5
52340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52341 (exit $ac_status); } && {
52342 test -z "$ac_c_werror_flag" ||
52343 test ! -s conftest.err
52344 } && test -s conftest$ac_exeext && {
52345 test "$cross_compiling" = yes ||
52346 $as_test_x conftest$ac_exeext
52348 ac_cv_lib_dld_dld_link=yes
52350 $as_echo "$as_me: failed program was:" >&5
52351 sed 's/^/| /' conftest.$ac_ext >&5
52353 ac_cv_lib_dld_dld_link=no
52356 rm -rf conftest.dSYM
52357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52358 conftest$ac_exeext conftest.$ac_ext
52359 LIBS=$ac_check_lib_save_LIBS
52361 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
52362 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
52363 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
52364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
52385 if test "x$lt_cv_dlopen" != xno; then
52391 case $lt_cv_dlopen in
52393 save_CPPFLAGS="$CPPFLAGS"
52394 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
52396 save_LDFLAGS="$LDFLAGS"
52397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
52400 LIBS="$lt_cv_dlopen_libs $LIBS"
52402 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
52403 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
52404 if test "${lt_cv_dlopen_self+set}" = set; then
52405 $as_echo_n "(cached) " >&6
52407 if test "$cross_compiling" = yes; then :
52408 lt_cv_dlopen_self=cross
52410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
52411 lt_status=$lt_dlunknown
52412 cat > conftest.$ac_ext <<_LT_EOF
52413 #line 52413 "configure"
52414 #include "confdefs.h"
52423 # define LT_DLGLOBAL RTLD_GLOBAL
52426 # define LT_DLGLOBAL DL_GLOBAL
52428 # define LT_DLGLOBAL 0
52432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
52433 find out it does not work in some platform. */
52434 #ifndef LT_DLLAZY_OR_NOW
52436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
52439 # define LT_DLLAZY_OR_NOW DL_LAZY
52442 # define LT_DLLAZY_OR_NOW RTLD_NOW
52445 # define LT_DLLAZY_OR_NOW DL_NOW
52447 # define LT_DLLAZY_OR_NOW 0
52455 extern "C" void exit (int);
52458 void fnord() { int i=42;}
52461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
52462 int status = $lt_dlunknown;
52466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
52468 /* dlclose (self); */
52476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52477 (eval $ac_link) 2>&5
52479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52480 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
52481 (./conftest; exit; ) >&5 2>/dev/null
52483 case x$lt_status in
52484 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
52485 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
52486 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
52489 # compilation failed
52490 lt_cv_dlopen_self=no
52497 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
52498 $as_echo "$lt_cv_dlopen_self" >&6; }
52500 if test "x$lt_cv_dlopen_self" = xyes; then
52501 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
52502 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
52503 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
52504 if test "${lt_cv_dlopen_self_static+set}" = set; then
52505 $as_echo_n "(cached) " >&6
52507 if test "$cross_compiling" = yes; then :
52508 lt_cv_dlopen_self_static=cross
52510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
52511 lt_status=$lt_dlunknown
52512 cat > conftest.$ac_ext <<_LT_EOF
52513 #line 52513 "configure"
52514 #include "confdefs.h"
52523 # define LT_DLGLOBAL RTLD_GLOBAL
52526 # define LT_DLGLOBAL DL_GLOBAL
52528 # define LT_DLGLOBAL 0
52532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
52533 find out it does not work in some platform. */
52534 #ifndef LT_DLLAZY_OR_NOW
52536 # define LT_DLLAZY_OR_NOW RTLD_LAZY
52539 # define LT_DLLAZY_OR_NOW DL_LAZY
52542 # define LT_DLLAZY_OR_NOW RTLD_NOW
52545 # define LT_DLLAZY_OR_NOW DL_NOW
52547 # define LT_DLLAZY_OR_NOW 0
52555 extern "C" void exit (int);
52558 void fnord() { int i=42;}
52561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
52562 int status = $lt_dlunknown;
52566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52567 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
52568 /* dlclose (self); */
52576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52577 (eval $ac_link) 2>&5
52579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52580 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
52581 (./conftest; exit; ) >&5 2>/dev/null
52583 case x$lt_status in
52584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
52585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
52586 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
52589 # compilation failed
52590 lt_cv_dlopen_self_static=no
52597 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
52598 $as_echo "$lt_cv_dlopen_self_static" >&6; }
52601 CPPFLAGS="$save_CPPFLAGS"
52602 LDFLAGS="$save_LDFLAGS"
52607 case $lt_cv_dlopen_self in
52608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
52609 *) enable_dlopen_self=unknown ;;
52612 case $lt_cv_dlopen_self_static in
52613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
52614 *) enable_dlopen_self_static=unknown ;;
52636 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
52637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
52638 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
52639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
52640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
52641 { $as_echo "$as_me:$LINENO: result: yes" >&5
52642 $as_echo "yes" >&6; }
52644 # FIXME - insert some real tests, host_os isn't really good enough
52647 if test -n "$STRIP" ; then
52648 striplib="$STRIP -x"
52649 old_striplib="$STRIP -S"
52650 { $as_echo "$as_me:$LINENO: result: yes" >&5
52651 $as_echo "yes" >&6; }
52653 { $as_echo "$as_me:$LINENO: result: no" >&5
52654 $as_echo "no" >&6; }
52658 { $as_echo "$as_me:$LINENO: result: no" >&5
52659 $as_echo "no" >&6; }
52675 # Report which library types will actually be built
52676 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
52677 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
52678 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
52679 $as_echo "$can_build_shared" >&6; }
52681 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
52682 $as_echo_n "checking whether to build shared libraries... " >&6; }
52683 test "$can_build_shared" = "no" && enable_shared=no
52685 # On AIX, shared libraries and static libraries use the same namespace, and
52686 # are all built from PIC.
52689 test "$enable_shared" = yes && enable_static=no
52690 if test -n "$RANLIB"; then
52691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
52692 postinstall_cmds='$RANLIB $lib'
52697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
52698 test "$enable_shared" = yes && enable_static=no
52702 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
52703 $as_echo "$enable_shared" >&6; }
52705 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
52706 $as_echo_n "checking whether to build static libraries... " >&6; }
52707 # Make sure either enable_shared or enable_static is yes.
52708 test "$enable_shared" = yes || enable_static=yes
52709 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
52710 $as_echo "$enable_static" >&6; }
52717 ac_cpp='$CPP $CPPFLAGS'
52718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52736 ac_config_commands="$ac_config_commands libtool"
52741 # Only expand once:
52746 # Check whether --enable-static-binary was given.
52747 if test "${enable_static_binary+set}" = set; then
52748 enableval=$enable_static_binary;
52749 case "$enableval" in
52751 AMANDA_STATIC_LDFLAGS=-static
52752 if test x"$enable_static" = x"no"; then
52753 { { $as_echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
52754 $as_echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
52755 { (exit 1); exit 1; }; }
52759 AMANDA_STATIC_LDFLAGS=
52776 ac_header_dirent=no
52777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
52778 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
52779 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
52780 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
52781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52782 $as_echo_n "(cached) " >&6
52784 cat >conftest.$ac_ext <<_ACEOF
52787 cat confdefs.h >>conftest.$ac_ext
52788 cat >>conftest.$ac_ext <<_ACEOF
52789 /* end confdefs.h. */
52790 #include <sys/types.h>
52802 rm -f conftest.$ac_objext
52803 if { (ac_try="$ac_compile"
52804 case "(($ac_try" in
52805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52806 *) ac_try_echo=$ac_try;;
52808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52809 $as_echo "$ac_try_echo") >&5
52810 (eval "$ac_compile") 2>conftest.er1
52812 grep -v '^ *+' conftest.er1 >conftest.err
52814 cat conftest.err >&5
52815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52816 (exit $ac_status); } && {
52817 test -z "$ac_c_werror_flag" ||
52818 test ! -s conftest.err
52819 } && test -s conftest.$ac_objext; then
52820 eval "$as_ac_Header=yes"
52822 $as_echo "$as_me: failed program was:" >&5
52823 sed 's/^/| /' conftest.$ac_ext >&5
52825 eval "$as_ac_Header=no"
52828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52830 ac_res=`eval 'as_val=${'$as_ac_Header'}
52831 $as_echo "$as_val"'`
52832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52833 $as_echo "$ac_res" >&6; }
52834 as_val=`eval 'as_val=${'$as_ac_Header'}
52835 $as_echo "$as_val"'`
52836 if test "x$as_val" = x""yes; then
52837 cat >>confdefs.h <<_ACEOF
52838 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
52841 ac_header_dirent=$ac_hdr; break
52845 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
52846 if test $ac_header_dirent = dirent.h; then
52847 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
52848 $as_echo_n "checking for library containing opendir... " >&6; }
52849 if test "${ac_cv_search_opendir+set}" = set; then
52850 $as_echo_n "(cached) " >&6
52852 ac_func_search_save_LIBS=$LIBS
52853 cat >conftest.$ac_ext <<_ACEOF
52856 cat confdefs.h >>conftest.$ac_ext
52857 cat >>conftest.$ac_ext <<_ACEOF
52858 /* end confdefs.h. */
52860 /* Override any GCC internal prototype to avoid an error.
52861 Use char because int might match the return type of a GCC
52862 builtin and then its argument prototype would still apply. */
52875 for ac_lib in '' dir; do
52876 if test -z "$ac_lib"; then
52877 ac_res="none required"
52880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52882 rm -f conftest.$ac_objext conftest$ac_exeext
52883 if { (ac_try="$ac_link"
52884 case "(($ac_try" in
52885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52886 *) ac_try_echo=$ac_try;;
52888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52889 $as_echo "$ac_try_echo") >&5
52890 (eval "$ac_link") 2>conftest.er1
52892 grep -v '^ *+' conftest.er1 >conftest.err
52894 cat conftest.err >&5
52895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52896 (exit $ac_status); } && {
52897 test -z "$ac_c_werror_flag" ||
52898 test ! -s conftest.err
52899 } && test -s conftest$ac_exeext && {
52900 test "$cross_compiling" = yes ||
52901 $as_test_x conftest$ac_exeext
52903 ac_cv_search_opendir=$ac_res
52905 $as_echo "$as_me: failed program was:" >&5
52906 sed 's/^/| /' conftest.$ac_ext >&5
52911 rm -rf conftest.dSYM
52912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52914 if test "${ac_cv_search_opendir+set}" = set; then
52918 if test "${ac_cv_search_opendir+set}" = set; then
52921 ac_cv_search_opendir=no
52923 rm conftest.$ac_ext
52924 LIBS=$ac_func_search_save_LIBS
52926 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
52927 $as_echo "$ac_cv_search_opendir" >&6; }
52928 ac_res=$ac_cv_search_opendir
52929 if test "$ac_res" != no; then
52930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52935 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
52936 $as_echo_n "checking for library containing opendir... " >&6; }
52937 if test "${ac_cv_search_opendir+set}" = set; then
52938 $as_echo_n "(cached) " >&6
52940 ac_func_search_save_LIBS=$LIBS
52941 cat >conftest.$ac_ext <<_ACEOF
52944 cat confdefs.h >>conftest.$ac_ext
52945 cat >>conftest.$ac_ext <<_ACEOF
52946 /* end confdefs.h. */
52948 /* Override any GCC internal prototype to avoid an error.
52949 Use char because int might match the return type of a GCC
52950 builtin and then its argument prototype would still apply. */
52963 for ac_lib in '' x; do
52964 if test -z "$ac_lib"; then
52965 ac_res="none required"
52968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52970 rm -f conftest.$ac_objext conftest$ac_exeext
52971 if { (ac_try="$ac_link"
52972 case "(($ac_try" in
52973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52974 *) ac_try_echo=$ac_try;;
52976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52977 $as_echo "$ac_try_echo") >&5
52978 (eval "$ac_link") 2>conftest.er1
52980 grep -v '^ *+' conftest.er1 >conftest.err
52982 cat conftest.err >&5
52983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52984 (exit $ac_status); } && {
52985 test -z "$ac_c_werror_flag" ||
52986 test ! -s conftest.err
52987 } && test -s conftest$ac_exeext && {
52988 test "$cross_compiling" = yes ||
52989 $as_test_x conftest$ac_exeext
52991 ac_cv_search_opendir=$ac_res
52993 $as_echo "$as_me: failed program was:" >&5
52994 sed 's/^/| /' conftest.$ac_ext >&5
52999 rm -rf conftest.dSYM
53000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53002 if test "${ac_cv_search_opendir+set}" = set; then
53006 if test "${ac_cv_search_opendir+set}" = set; then
53009 ac_cv_search_opendir=no
53011 rm conftest.$ac_ext
53012 LIBS=$ac_func_search_save_LIBS
53014 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
53015 $as_echo "$ac_cv_search_opendir" >&6; }
53016 ac_res=$ac_cv_search_opendir
53017 if test "$ac_res" != no; then
53018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
53024 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
53025 $as_echo_n "checking for ANSI C header files... " >&6; }
53026 if test "${ac_cv_header_stdc+set}" = set; then
53027 $as_echo_n "(cached) " >&6
53029 cat >conftest.$ac_ext <<_ACEOF
53032 cat confdefs.h >>conftest.$ac_ext
53033 cat >>conftest.$ac_ext <<_ACEOF
53034 /* end confdefs.h. */
53035 #include <stdlib.h>
53036 #include <stdarg.h>
53037 #include <string.h>
53048 rm -f conftest.$ac_objext
53049 if { (ac_try="$ac_compile"
53050 case "(($ac_try" in
53051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53052 *) ac_try_echo=$ac_try;;
53054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53055 $as_echo "$ac_try_echo") >&5
53056 (eval "$ac_compile") 2>conftest.er1
53058 grep -v '^ *+' conftest.er1 >conftest.err
53060 cat conftest.err >&5
53061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53062 (exit $ac_status); } && {
53063 test -z "$ac_c_werror_flag" ||
53064 test ! -s conftest.err
53065 } && test -s conftest.$ac_objext; then
53066 ac_cv_header_stdc=yes
53068 $as_echo "$as_me: failed program was:" >&5
53069 sed 's/^/| /' conftest.$ac_ext >&5
53071 ac_cv_header_stdc=no
53074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53076 if test $ac_cv_header_stdc = yes; then
53077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
53078 cat >conftest.$ac_ext <<_ACEOF
53081 cat confdefs.h >>conftest.$ac_ext
53082 cat >>conftest.$ac_ext <<_ACEOF
53083 /* end confdefs.h. */
53084 #include <string.h>
53087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53088 $EGREP "memchr" >/dev/null 2>&1; then
53091 ac_cv_header_stdc=no
53097 if test $ac_cv_header_stdc = yes; then
53098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
53099 cat >conftest.$ac_ext <<_ACEOF
53102 cat confdefs.h >>conftest.$ac_ext
53103 cat >>conftest.$ac_ext <<_ACEOF
53104 /* end confdefs.h. */
53105 #include <stdlib.h>
53108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53109 $EGREP "free" >/dev/null 2>&1; then
53112 ac_cv_header_stdc=no
53118 if test $ac_cv_header_stdc = yes; then
53119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
53120 if test "$cross_compiling" = yes; then
53123 cat >conftest.$ac_ext <<_ACEOF
53126 cat confdefs.h >>conftest.$ac_ext
53127 cat >>conftest.$ac_ext <<_ACEOF
53128 /* end confdefs.h. */
53130 #include <stdlib.h>
53131 #if ((' ' & 0x0FF) == 0x020)
53132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
53133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
53135 # define ISLOWER(c) \
53136 (('a' <= (c) && (c) <= 'i') \
53137 || ('j' <= (c) && (c) <= 'r') \
53138 || ('s' <= (c) && (c) <= 'z'))
53139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
53142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
53147 for (i = 0; i < 256; i++)
53148 if (XOR (islower (i), ISLOWER (i))
53149 || toupper (i) != TOUPPER (i))
53154 rm -f conftest$ac_exeext
53155 if { (ac_try="$ac_link"
53156 case "(($ac_try" in
53157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53158 *) ac_try_echo=$ac_try;;
53160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53161 $as_echo "$ac_try_echo") >&5
53162 (eval "$ac_link") 2>&5
53164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53166 { (case "(($ac_try" in
53167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53168 *) ac_try_echo=$ac_try;;
53170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53171 $as_echo "$ac_try_echo") >&5
53172 (eval "$ac_try") 2>&5
53174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53175 (exit $ac_status); }; }; then
53178 $as_echo "$as_me: program exited with status $ac_status" >&5
53179 $as_echo "$as_me: failed program was:" >&5
53180 sed 's/^/| /' conftest.$ac_ext >&5
53182 ( exit $ac_status )
53183 ac_cv_header_stdc=no
53185 rm -rf conftest.dSYM
53186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
53193 $as_echo "$ac_cv_header_stdc" >&6; }
53194 if test $ac_cv_header_stdc = yes; then
53196 cat >>confdefs.h <<\_ACEOF
53197 #define STDC_HEADERS 1
53202 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
53203 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
53204 if test "${ac_cv_header_time+set}" = set; then
53205 $as_echo_n "(cached) " >&6
53207 cat >conftest.$ac_ext <<_ACEOF
53210 cat confdefs.h >>conftest.$ac_ext
53211 cat >>conftest.$ac_ext <<_ACEOF
53212 /* end confdefs.h. */
53213 #include <sys/types.h>
53214 #include <sys/time.h>
53220 if ((struct tm *) 0)
53226 rm -f conftest.$ac_objext
53227 if { (ac_try="$ac_compile"
53228 case "(($ac_try" in
53229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53230 *) ac_try_echo=$ac_try;;
53232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53233 $as_echo "$ac_try_echo") >&5
53234 (eval "$ac_compile") 2>conftest.er1
53236 grep -v '^ *+' conftest.er1 >conftest.err
53238 cat conftest.err >&5
53239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53240 (exit $ac_status); } && {
53241 test -z "$ac_c_werror_flag" ||
53242 test ! -s conftest.err
53243 } && test -s conftest.$ac_objext; then
53244 ac_cv_header_time=yes
53246 $as_echo "$as_me: failed program was:" >&5
53247 sed 's/^/| /' conftest.$ac_ext >&5
53249 ac_cv_header_time=no
53252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
53255 $as_echo "$ac_cv_header_time" >&6; }
53256 if test $ac_cv_header_time = yes; then
53258 cat >>confdefs.h <<\_ACEOF
53259 #define TIME_WITH_SYS_TIME 1
53289 for ac_header in grp.h \
53316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
53317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53318 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53319 $as_echo_n "checking for $ac_header... " >&6; }
53320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53321 $as_echo_n "(cached) " >&6
53323 ac_res=`eval 'as_val=${'$as_ac_Header'}
53324 $as_echo "$as_val"'`
53325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53326 $as_echo "$ac_res" >&6; }
53328 # Is the header compilable?
53329 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
53330 $as_echo_n "checking $ac_header usability... " >&6; }
53331 cat >conftest.$ac_ext <<_ACEOF
53334 cat confdefs.h >>conftest.$ac_ext
53335 cat >>conftest.$ac_ext <<_ACEOF
53336 /* end confdefs.h. */
53337 $ac_includes_default
53338 #include <$ac_header>
53340 rm -f conftest.$ac_objext
53341 if { (ac_try="$ac_compile"
53342 case "(($ac_try" in
53343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53344 *) ac_try_echo=$ac_try;;
53346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53347 $as_echo "$ac_try_echo") >&5
53348 (eval "$ac_compile") 2>conftest.er1
53350 grep -v '^ *+' conftest.er1 >conftest.err
53352 cat conftest.err >&5
53353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53354 (exit $ac_status); } && {
53355 test -z "$ac_c_werror_flag" ||
53356 test ! -s conftest.err
53357 } && test -s conftest.$ac_objext; then
53358 ac_header_compiler=yes
53360 $as_echo "$as_me: failed program was:" >&5
53361 sed 's/^/| /' conftest.$ac_ext >&5
53363 ac_header_compiler=no
53366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53367 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53368 $as_echo "$ac_header_compiler" >&6; }
53370 # Is the header present?
53371 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
53372 $as_echo_n "checking $ac_header presence... " >&6; }
53373 cat >conftest.$ac_ext <<_ACEOF
53376 cat confdefs.h >>conftest.$ac_ext
53377 cat >>conftest.$ac_ext <<_ACEOF
53378 /* end confdefs.h. */
53379 #include <$ac_header>
53381 if { (ac_try="$ac_cpp conftest.$ac_ext"
53382 case "(($ac_try" in
53383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53384 *) ac_try_echo=$ac_try;;
53386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53387 $as_echo "$ac_try_echo") >&5
53388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53390 grep -v '^ *+' conftest.er1 >conftest.err
53392 cat conftest.err >&5
53393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53394 (exit $ac_status); } >/dev/null && {
53395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53396 test ! -s conftest.err
53398 ac_header_preproc=yes
53400 $as_echo "$as_me: failed program was:" >&5
53401 sed 's/^/| /' conftest.$ac_ext >&5
53403 ac_header_preproc=no
53406 rm -f conftest.err conftest.$ac_ext
53407 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53408 $as_echo "$ac_header_preproc" >&6; }
53410 # So? What about this header?
53411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53414 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53416 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53417 ac_header_preproc=yes
53420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53421 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53423 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53425 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53427 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53431 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53435 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53436 $as_echo_n "checking for $ac_header... " >&6; }
53437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53438 $as_echo_n "(cached) " >&6
53440 eval "$as_ac_Header=\$ac_header_preproc"
53442 ac_res=`eval 'as_val=${'$as_ac_Header'}
53443 $as_echo "$as_val"'`
53444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53445 $as_echo "$ac_res" >&6; }
53448 as_val=`eval 'as_val=${'$as_ac_Header'}
53449 $as_echo "$as_val"'`
53450 if test "x$as_val" = x""yes; then
53451 cat >>confdefs.h <<_ACEOF
53452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
53460 cat >>confdefs.h <<\_ACEOF
53461 #define HAVE_AMANDA_H 1
53465 cat >>confdefs.h <<\_ACEOF
53466 #define HAVE_UTIL_H 1
53471 cat >>confdefs.h <<\_ACEOF
53472 #define USE_GETTEXT 1
53479 # The cast to long int works around a bug in the HP C Compiler
53480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53482 # This bug is HP SR number 8606223364.
53483 { $as_echo "$as_me:$LINENO: checking size of int" >&5
53484 $as_echo_n "checking size of int... " >&6; }
53485 if test "${ac_cv_sizeof_int+set}" = set; then
53486 $as_echo_n "(cached) " >&6
53488 if test "$cross_compiling" = yes; then
53489 # Depending upon the size, compute the lo and hi bounds.
53490 cat >conftest.$ac_ext <<_ACEOF
53493 cat confdefs.h >>conftest.$ac_ext
53494 cat >>conftest.$ac_ext <<_ACEOF
53495 /* end confdefs.h. */
53496 $ac_includes_default
53500 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
53507 rm -f conftest.$ac_objext
53508 if { (ac_try="$ac_compile"
53509 case "(($ac_try" in
53510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53511 *) ac_try_echo=$ac_try;;
53513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53514 $as_echo "$ac_try_echo") >&5
53515 (eval "$ac_compile") 2>conftest.er1
53517 grep -v '^ *+' conftest.er1 >conftest.err
53519 cat conftest.err >&5
53520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53521 (exit $ac_status); } && {
53522 test -z "$ac_c_werror_flag" ||
53523 test ! -s conftest.err
53524 } && test -s conftest.$ac_objext; then
53527 cat >conftest.$ac_ext <<_ACEOF
53530 cat confdefs.h >>conftest.$ac_ext
53531 cat >>conftest.$ac_ext <<_ACEOF
53532 /* end confdefs.h. */
53533 $ac_includes_default
53537 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
53544 rm -f conftest.$ac_objext
53545 if { (ac_try="$ac_compile"
53546 case "(($ac_try" in
53547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53548 *) ac_try_echo=$ac_try;;
53550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53551 $as_echo "$ac_try_echo") >&5
53552 (eval "$ac_compile") 2>conftest.er1
53554 grep -v '^ *+' conftest.er1 >conftest.err
53556 cat conftest.err >&5
53557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53558 (exit $ac_status); } && {
53559 test -z "$ac_c_werror_flag" ||
53560 test ! -s conftest.err
53561 } && test -s conftest.$ac_objext; then
53562 ac_hi=$ac_mid; break
53564 $as_echo "$as_me: failed program was:" >&5
53565 sed 's/^/| /' conftest.$ac_ext >&5
53567 ac_lo=`expr $ac_mid + 1`
53568 if test $ac_lo -le $ac_mid; then
53572 ac_mid=`expr 2 '*' $ac_mid + 1`
53575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53578 $as_echo "$as_me: failed program was:" >&5
53579 sed 's/^/| /' conftest.$ac_ext >&5
53581 cat >conftest.$ac_ext <<_ACEOF
53584 cat confdefs.h >>conftest.$ac_ext
53585 cat >>conftest.$ac_ext <<_ACEOF
53586 /* end confdefs.h. */
53587 $ac_includes_default
53591 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
53598 rm -f conftest.$ac_objext
53599 if { (ac_try="$ac_compile"
53600 case "(($ac_try" in
53601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53602 *) ac_try_echo=$ac_try;;
53604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53605 $as_echo "$ac_try_echo") >&5
53606 (eval "$ac_compile") 2>conftest.er1
53608 grep -v '^ *+' conftest.er1 >conftest.err
53610 cat conftest.err >&5
53611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53612 (exit $ac_status); } && {
53613 test -z "$ac_c_werror_flag" ||
53614 test ! -s conftest.err
53615 } && test -s conftest.$ac_objext; then
53618 cat >conftest.$ac_ext <<_ACEOF
53621 cat confdefs.h >>conftest.$ac_ext
53622 cat >>conftest.$ac_ext <<_ACEOF
53623 /* end confdefs.h. */
53624 $ac_includes_default
53628 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
53635 rm -f conftest.$ac_objext
53636 if { (ac_try="$ac_compile"
53637 case "(($ac_try" in
53638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53639 *) ac_try_echo=$ac_try;;
53641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53642 $as_echo "$ac_try_echo") >&5
53643 (eval "$ac_compile") 2>conftest.er1
53645 grep -v '^ *+' conftest.er1 >conftest.err
53647 cat conftest.err >&5
53648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53649 (exit $ac_status); } && {
53650 test -z "$ac_c_werror_flag" ||
53651 test ! -s conftest.err
53652 } && test -s conftest.$ac_objext; then
53653 ac_lo=$ac_mid; break
53655 $as_echo "$as_me: failed program was:" >&5
53656 sed 's/^/| /' conftest.$ac_ext >&5
53658 ac_hi=`expr '(' $ac_mid ')' - 1`
53659 if test $ac_mid -le $ac_hi; then
53663 ac_mid=`expr 2 '*' $ac_mid`
53666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53669 $as_echo "$as_me: failed program was:" >&5
53670 sed 's/^/| /' conftest.$ac_ext >&5
53675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53679 # Binary search between lo and hi bounds.
53680 while test "x$ac_lo" != "x$ac_hi"; do
53681 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53682 cat >conftest.$ac_ext <<_ACEOF
53685 cat confdefs.h >>conftest.$ac_ext
53686 cat >>conftest.$ac_ext <<_ACEOF
53687 /* end confdefs.h. */
53688 $ac_includes_default
53692 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
53699 rm -f conftest.$ac_objext
53700 if { (ac_try="$ac_compile"
53701 case "(($ac_try" in
53702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53703 *) ac_try_echo=$ac_try;;
53705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53706 $as_echo "$ac_try_echo") >&5
53707 (eval "$ac_compile") 2>conftest.er1
53709 grep -v '^ *+' conftest.er1 >conftest.err
53711 cat conftest.err >&5
53712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53713 (exit $ac_status); } && {
53714 test -z "$ac_c_werror_flag" ||
53715 test ! -s conftest.err
53716 } && test -s conftest.$ac_objext; then
53719 $as_echo "$as_me: failed program was:" >&5
53720 sed 's/^/| /' conftest.$ac_ext >&5
53722 ac_lo=`expr '(' $ac_mid ')' + 1`
53725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53728 ?*) ac_cv_sizeof_int=$ac_lo;;
53729 '') if test "$ac_cv_type_int" = yes; then
53730 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53732 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
53733 See \`config.log' for more details." >&5
53734 $as_echo "$as_me: error: cannot compute sizeof (int)
53735 See \`config.log' for more details." >&2;}
53736 { (exit 77); exit 77; }; }; }
53742 cat >conftest.$ac_ext <<_ACEOF
53745 cat confdefs.h >>conftest.$ac_ext
53746 cat >>conftest.$ac_ext <<_ACEOF
53747 /* end confdefs.h. */
53748 $ac_includes_default
53749 static long int longval () { return (long int) (sizeof (int)); }
53750 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
53752 #include <stdlib.h>
53757 FILE *f = fopen ("conftest.val", "w");
53760 if (((long int) (sizeof (int))) < 0)
53762 long int i = longval ();
53763 if (i != ((long int) (sizeof (int))))
53765 fprintf (f, "%ld", i);
53769 unsigned long int i = ulongval ();
53770 if (i != ((long int) (sizeof (int))))
53772 fprintf (f, "%lu", i);
53774 /* Do not output a trailing newline, as this causes \r\n confusion
53775 on some platforms. */
53776 return ferror (f) || fclose (f) != 0;
53782 rm -f conftest$ac_exeext
53783 if { (ac_try="$ac_link"
53784 case "(($ac_try" in
53785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53786 *) ac_try_echo=$ac_try;;
53788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53789 $as_echo "$ac_try_echo") >&5
53790 (eval "$ac_link") 2>&5
53792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
53802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53803 (exit $ac_status); }; }; then
53804 ac_cv_sizeof_int=`cat conftest.val`
53806 $as_echo "$as_me: program exited with status $ac_status" >&5
53807 $as_echo "$as_me: failed program was:" >&5
53808 sed 's/^/| /' conftest.$ac_ext >&5
53810 ( exit $ac_status )
53811 if test "$ac_cv_type_int" = yes; then
53812 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53814 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
53815 See \`config.log' for more details." >&5
53816 $as_echo "$as_me: error: cannot compute sizeof (int)
53817 See \`config.log' for more details." >&2;}
53818 { (exit 77); exit 77; }; }; }
53823 rm -rf conftest.dSYM
53824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53828 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
53829 $as_echo "$ac_cv_sizeof_int" >&6; }
53833 cat >>confdefs.h <<_ACEOF
53834 #define SIZEOF_INT $ac_cv_sizeof_int
53838 # The cast to long int works around a bug in the HP C Compiler
53839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53841 # This bug is HP SR number 8606223364.
53842 { $as_echo "$as_me:$LINENO: checking size of long" >&5
53843 $as_echo_n "checking size of long... " >&6; }
53844 if test "${ac_cv_sizeof_long+set}" = set; then
53845 $as_echo_n "(cached) " >&6
53847 if test "$cross_compiling" = yes; then
53848 # Depending upon the size, compute the lo and hi bounds.
53849 cat >conftest.$ac_ext <<_ACEOF
53852 cat confdefs.h >>conftest.$ac_ext
53853 cat >>conftest.$ac_ext <<_ACEOF
53854 /* end confdefs.h. */
53855 $ac_includes_default
53859 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
53866 rm -f conftest.$ac_objext
53867 if { (ac_try="$ac_compile"
53868 case "(($ac_try" in
53869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53870 *) ac_try_echo=$ac_try;;
53872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53873 $as_echo "$ac_try_echo") >&5
53874 (eval "$ac_compile") 2>conftest.er1
53876 grep -v '^ *+' conftest.er1 >conftest.err
53878 cat conftest.err >&5
53879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53880 (exit $ac_status); } && {
53881 test -z "$ac_c_werror_flag" ||
53882 test ! -s conftest.err
53883 } && test -s conftest.$ac_objext; then
53886 cat >conftest.$ac_ext <<_ACEOF
53889 cat confdefs.h >>conftest.$ac_ext
53890 cat >>conftest.$ac_ext <<_ACEOF
53891 /* end confdefs.h. */
53892 $ac_includes_default
53896 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
53903 rm -f conftest.$ac_objext
53904 if { (ac_try="$ac_compile"
53905 case "(($ac_try" in
53906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53907 *) ac_try_echo=$ac_try;;
53909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53910 $as_echo "$ac_try_echo") >&5
53911 (eval "$ac_compile") 2>conftest.er1
53913 grep -v '^ *+' conftest.er1 >conftest.err
53915 cat conftest.err >&5
53916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53917 (exit $ac_status); } && {
53918 test -z "$ac_c_werror_flag" ||
53919 test ! -s conftest.err
53920 } && test -s conftest.$ac_objext; then
53921 ac_hi=$ac_mid; break
53923 $as_echo "$as_me: failed program was:" >&5
53924 sed 's/^/| /' conftest.$ac_ext >&5
53926 ac_lo=`expr $ac_mid + 1`
53927 if test $ac_lo -le $ac_mid; then
53931 ac_mid=`expr 2 '*' $ac_mid + 1`
53934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53937 $as_echo "$as_me: failed program was:" >&5
53938 sed 's/^/| /' conftest.$ac_ext >&5
53940 cat >conftest.$ac_ext <<_ACEOF
53943 cat confdefs.h >>conftest.$ac_ext
53944 cat >>conftest.$ac_ext <<_ACEOF
53945 /* end confdefs.h. */
53946 $ac_includes_default
53950 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
53957 rm -f conftest.$ac_objext
53958 if { (ac_try="$ac_compile"
53959 case "(($ac_try" in
53960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53961 *) ac_try_echo=$ac_try;;
53963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53964 $as_echo "$ac_try_echo") >&5
53965 (eval "$ac_compile") 2>conftest.er1
53967 grep -v '^ *+' conftest.er1 >conftest.err
53969 cat conftest.err >&5
53970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53971 (exit $ac_status); } && {
53972 test -z "$ac_c_werror_flag" ||
53973 test ! -s conftest.err
53974 } && test -s conftest.$ac_objext; then
53977 cat >conftest.$ac_ext <<_ACEOF
53980 cat confdefs.h >>conftest.$ac_ext
53981 cat >>conftest.$ac_ext <<_ACEOF
53982 /* end confdefs.h. */
53983 $ac_includes_default
53987 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
53994 rm -f conftest.$ac_objext
53995 if { (ac_try="$ac_compile"
53996 case "(($ac_try" in
53997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53998 *) ac_try_echo=$ac_try;;
54000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54001 $as_echo "$ac_try_echo") >&5
54002 (eval "$ac_compile") 2>conftest.er1
54004 grep -v '^ *+' conftest.er1 >conftest.err
54006 cat conftest.err >&5
54007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54008 (exit $ac_status); } && {
54009 test -z "$ac_c_werror_flag" ||
54010 test ! -s conftest.err
54011 } && test -s conftest.$ac_objext; then
54012 ac_lo=$ac_mid; break
54014 $as_echo "$as_me: failed program was:" >&5
54015 sed 's/^/| /' conftest.$ac_ext >&5
54017 ac_hi=`expr '(' $ac_mid ')' - 1`
54018 if test $ac_mid -le $ac_hi; then
54022 ac_mid=`expr 2 '*' $ac_mid`
54025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54028 $as_echo "$as_me: failed program was:" >&5
54029 sed 's/^/| /' conftest.$ac_ext >&5
54034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54038 # Binary search between lo and hi bounds.
54039 while test "x$ac_lo" != "x$ac_hi"; do
54040 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54041 cat >conftest.$ac_ext <<_ACEOF
54044 cat confdefs.h >>conftest.$ac_ext
54045 cat >>conftest.$ac_ext <<_ACEOF
54046 /* end confdefs.h. */
54047 $ac_includes_default
54051 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
54058 rm -f conftest.$ac_objext
54059 if { (ac_try="$ac_compile"
54060 case "(($ac_try" in
54061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54062 *) ac_try_echo=$ac_try;;
54064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54065 $as_echo "$ac_try_echo") >&5
54066 (eval "$ac_compile") 2>conftest.er1
54068 grep -v '^ *+' conftest.er1 >conftest.err
54070 cat conftest.err >&5
54071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54072 (exit $ac_status); } && {
54073 test -z "$ac_c_werror_flag" ||
54074 test ! -s conftest.err
54075 } && test -s conftest.$ac_objext; then
54078 $as_echo "$as_me: failed program was:" >&5
54079 sed 's/^/| /' conftest.$ac_ext >&5
54081 ac_lo=`expr '(' $ac_mid ')' + 1`
54084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54087 ?*) ac_cv_sizeof_long=$ac_lo;;
54088 '') if test "$ac_cv_type_long" = yes; then
54089 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54091 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
54092 See \`config.log' for more details." >&5
54093 $as_echo "$as_me: error: cannot compute sizeof (long)
54094 See \`config.log' for more details." >&2;}
54095 { (exit 77); exit 77; }; }; }
54097 ac_cv_sizeof_long=0
54101 cat >conftest.$ac_ext <<_ACEOF
54104 cat confdefs.h >>conftest.$ac_ext
54105 cat >>conftest.$ac_ext <<_ACEOF
54106 /* end confdefs.h. */
54107 $ac_includes_default
54108 static long int longval () { return (long int) (sizeof (long)); }
54109 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
54111 #include <stdlib.h>
54116 FILE *f = fopen ("conftest.val", "w");
54119 if (((long int) (sizeof (long))) < 0)
54121 long int i = longval ();
54122 if (i != ((long int) (sizeof (long))))
54124 fprintf (f, "%ld", i);
54128 unsigned long int i = ulongval ();
54129 if (i != ((long int) (sizeof (long))))
54131 fprintf (f, "%lu", i);
54133 /* Do not output a trailing newline, as this causes \r\n confusion
54134 on some platforms. */
54135 return ferror (f) || fclose (f) != 0;
54141 rm -f conftest$ac_exeext
54142 if { (ac_try="$ac_link"
54143 case "(($ac_try" in
54144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54145 *) ac_try_echo=$ac_try;;
54147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54148 $as_echo "$ac_try_echo") >&5
54149 (eval "$ac_link") 2>&5
54151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
54161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54162 (exit $ac_status); }; }; then
54163 ac_cv_sizeof_long=`cat conftest.val`
54165 $as_echo "$as_me: program exited with status $ac_status" >&5
54166 $as_echo "$as_me: failed program was:" >&5
54167 sed 's/^/| /' conftest.$ac_ext >&5
54169 ( exit $ac_status )
54170 if test "$ac_cv_type_long" = yes; then
54171 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54173 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
54174 See \`config.log' for more details." >&5
54175 $as_echo "$as_me: error: cannot compute sizeof (long)
54176 See \`config.log' for more details." >&2;}
54177 { (exit 77); exit 77; }; }; }
54179 ac_cv_sizeof_long=0
54182 rm -rf conftest.dSYM
54183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54187 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
54188 $as_echo "$ac_cv_sizeof_long" >&6; }
54192 cat >>confdefs.h <<_ACEOF
54193 #define SIZEOF_LONG $ac_cv_sizeof_long
54197 # The cast to long int works around a bug in the HP C Compiler
54198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54200 # This bug is HP SR number 8606223364.
54201 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
54202 $as_echo_n "checking size of long long... " >&6; }
54203 if test "${ac_cv_sizeof_long_long+set}" = set; then
54204 $as_echo_n "(cached) " >&6
54206 if test "$cross_compiling" = yes; then
54207 # Depending upon the size, compute the lo and hi bounds.
54208 cat >conftest.$ac_ext <<_ACEOF
54211 cat confdefs.h >>conftest.$ac_ext
54212 cat >>conftest.$ac_ext <<_ACEOF
54213 /* end confdefs.h. */
54214 $ac_includes_default
54218 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
54225 rm -f conftest.$ac_objext
54226 if { (ac_try="$ac_compile"
54227 case "(($ac_try" in
54228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54229 *) ac_try_echo=$ac_try;;
54231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54232 $as_echo "$ac_try_echo") >&5
54233 (eval "$ac_compile") 2>conftest.er1
54235 grep -v '^ *+' conftest.er1 >conftest.err
54237 cat conftest.err >&5
54238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54239 (exit $ac_status); } && {
54240 test -z "$ac_c_werror_flag" ||
54241 test ! -s conftest.err
54242 } && test -s conftest.$ac_objext; then
54245 cat >conftest.$ac_ext <<_ACEOF
54248 cat confdefs.h >>conftest.$ac_ext
54249 cat >>conftest.$ac_ext <<_ACEOF
54250 /* end confdefs.h. */
54251 $ac_includes_default
54255 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
54262 rm -f conftest.$ac_objext
54263 if { (ac_try="$ac_compile"
54264 case "(($ac_try" in
54265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54266 *) ac_try_echo=$ac_try;;
54268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54269 $as_echo "$ac_try_echo") >&5
54270 (eval "$ac_compile") 2>conftest.er1
54272 grep -v '^ *+' conftest.er1 >conftest.err
54274 cat conftest.err >&5
54275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54276 (exit $ac_status); } && {
54277 test -z "$ac_c_werror_flag" ||
54278 test ! -s conftest.err
54279 } && test -s conftest.$ac_objext; then
54280 ac_hi=$ac_mid; break
54282 $as_echo "$as_me: failed program was:" >&5
54283 sed 's/^/| /' conftest.$ac_ext >&5
54285 ac_lo=`expr $ac_mid + 1`
54286 if test $ac_lo -le $ac_mid; then
54290 ac_mid=`expr 2 '*' $ac_mid + 1`
54293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54296 $as_echo "$as_me: failed program was:" >&5
54297 sed 's/^/| /' conftest.$ac_ext >&5
54299 cat >conftest.$ac_ext <<_ACEOF
54302 cat confdefs.h >>conftest.$ac_ext
54303 cat >>conftest.$ac_ext <<_ACEOF
54304 /* end confdefs.h. */
54305 $ac_includes_default
54309 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
54316 rm -f conftest.$ac_objext
54317 if { (ac_try="$ac_compile"
54318 case "(($ac_try" in
54319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54320 *) ac_try_echo=$ac_try;;
54322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54323 $as_echo "$ac_try_echo") >&5
54324 (eval "$ac_compile") 2>conftest.er1
54326 grep -v '^ *+' conftest.er1 >conftest.err
54328 cat conftest.err >&5
54329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54330 (exit $ac_status); } && {
54331 test -z "$ac_c_werror_flag" ||
54332 test ! -s conftest.err
54333 } && test -s conftest.$ac_objext; then
54336 cat >conftest.$ac_ext <<_ACEOF
54339 cat confdefs.h >>conftest.$ac_ext
54340 cat >>conftest.$ac_ext <<_ACEOF
54341 /* end confdefs.h. */
54342 $ac_includes_default
54346 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
54353 rm -f conftest.$ac_objext
54354 if { (ac_try="$ac_compile"
54355 case "(($ac_try" in
54356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54357 *) ac_try_echo=$ac_try;;
54359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54360 $as_echo "$ac_try_echo") >&5
54361 (eval "$ac_compile") 2>conftest.er1
54363 grep -v '^ *+' conftest.er1 >conftest.err
54365 cat conftest.err >&5
54366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54367 (exit $ac_status); } && {
54368 test -z "$ac_c_werror_flag" ||
54369 test ! -s conftest.err
54370 } && test -s conftest.$ac_objext; then
54371 ac_lo=$ac_mid; break
54373 $as_echo "$as_me: failed program was:" >&5
54374 sed 's/^/| /' conftest.$ac_ext >&5
54376 ac_hi=`expr '(' $ac_mid ')' - 1`
54377 if test $ac_mid -le $ac_hi; then
54381 ac_mid=`expr 2 '*' $ac_mid`
54384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54387 $as_echo "$as_me: failed program was:" >&5
54388 sed 's/^/| /' conftest.$ac_ext >&5
54393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54397 # Binary search between lo and hi bounds.
54398 while test "x$ac_lo" != "x$ac_hi"; do
54399 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54400 cat >conftest.$ac_ext <<_ACEOF
54403 cat confdefs.h >>conftest.$ac_ext
54404 cat >>conftest.$ac_ext <<_ACEOF
54405 /* end confdefs.h. */
54406 $ac_includes_default
54410 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
54417 rm -f conftest.$ac_objext
54418 if { (ac_try="$ac_compile"
54419 case "(($ac_try" in
54420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54421 *) ac_try_echo=$ac_try;;
54423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54424 $as_echo "$ac_try_echo") >&5
54425 (eval "$ac_compile") 2>conftest.er1
54427 grep -v '^ *+' conftest.er1 >conftest.err
54429 cat conftest.err >&5
54430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54431 (exit $ac_status); } && {
54432 test -z "$ac_c_werror_flag" ||
54433 test ! -s conftest.err
54434 } && test -s conftest.$ac_objext; then
54437 $as_echo "$as_me: failed program was:" >&5
54438 sed 's/^/| /' conftest.$ac_ext >&5
54440 ac_lo=`expr '(' $ac_mid ')' + 1`
54443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54446 ?*) ac_cv_sizeof_long_long=$ac_lo;;
54447 '') if test "$ac_cv_type_long_long" = yes; then
54448 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54450 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
54451 See \`config.log' for more details." >&5
54452 $as_echo "$as_me: error: cannot compute sizeof (long long)
54453 See \`config.log' for more details." >&2;}
54454 { (exit 77); exit 77; }; }; }
54456 ac_cv_sizeof_long_long=0
54460 cat >conftest.$ac_ext <<_ACEOF
54463 cat confdefs.h >>conftest.$ac_ext
54464 cat >>conftest.$ac_ext <<_ACEOF
54465 /* end confdefs.h. */
54466 $ac_includes_default
54467 static long int longval () { return (long int) (sizeof (long long)); }
54468 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
54470 #include <stdlib.h>
54475 FILE *f = fopen ("conftest.val", "w");
54478 if (((long int) (sizeof (long long))) < 0)
54480 long int i = longval ();
54481 if (i != ((long int) (sizeof (long long))))
54483 fprintf (f, "%ld", i);
54487 unsigned long int i = ulongval ();
54488 if (i != ((long int) (sizeof (long long))))
54490 fprintf (f, "%lu", i);
54492 /* Do not output a trailing newline, as this causes \r\n confusion
54493 on some platforms. */
54494 return ferror (f) || fclose (f) != 0;
54500 rm -f conftest$ac_exeext
54501 if { (ac_try="$ac_link"
54502 case "(($ac_try" in
54503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54504 *) ac_try_echo=$ac_try;;
54506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54507 $as_echo "$ac_try_echo") >&5
54508 (eval "$ac_link") 2>&5
54510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54512 { (case "(($ac_try" in
54513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54514 *) ac_try_echo=$ac_try;;
54516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54517 $as_echo "$ac_try_echo") >&5
54518 (eval "$ac_try") 2>&5
54520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54521 (exit $ac_status); }; }; then
54522 ac_cv_sizeof_long_long=`cat conftest.val`
54524 $as_echo "$as_me: program exited with status $ac_status" >&5
54525 $as_echo "$as_me: failed program was:" >&5
54526 sed 's/^/| /' conftest.$ac_ext >&5
54528 ( exit $ac_status )
54529 if test "$ac_cv_type_long_long" = yes; then
54530 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54532 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
54533 See \`config.log' for more details." >&5
54534 $as_echo "$as_me: error: cannot compute sizeof (long long)
54535 See \`config.log' for more details." >&2;}
54536 { (exit 77); exit 77; }; }; }
54538 ac_cv_sizeof_long_long=0
54541 rm -rf conftest.dSYM
54542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54546 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
54547 $as_echo "$ac_cv_sizeof_long_long" >&6; }
54551 cat >>confdefs.h <<_ACEOF
54552 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
54556 # The cast to long int works around a bug in the HP C Compiler
54557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54559 # This bug is HP SR number 8606223364.
54560 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
54561 $as_echo_n "checking size of intmax_t... " >&6; }
54562 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
54563 $as_echo_n "(cached) " >&6
54565 if test "$cross_compiling" = yes; then
54566 # Depending upon the size, compute the lo and hi bounds.
54567 cat >conftest.$ac_ext <<_ACEOF
54570 cat confdefs.h >>conftest.$ac_ext
54571 cat >>conftest.$ac_ext <<_ACEOF
54572 /* end confdefs.h. */
54573 $ac_includes_default
54577 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
54584 rm -f conftest.$ac_objext
54585 if { (ac_try="$ac_compile"
54586 case "(($ac_try" in
54587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54588 *) ac_try_echo=$ac_try;;
54590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54591 $as_echo "$ac_try_echo") >&5
54592 (eval "$ac_compile") 2>conftest.er1
54594 grep -v '^ *+' conftest.er1 >conftest.err
54596 cat conftest.err >&5
54597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54598 (exit $ac_status); } && {
54599 test -z "$ac_c_werror_flag" ||
54600 test ! -s conftest.err
54601 } && test -s conftest.$ac_objext; then
54604 cat >conftest.$ac_ext <<_ACEOF
54607 cat confdefs.h >>conftest.$ac_ext
54608 cat >>conftest.$ac_ext <<_ACEOF
54609 /* end confdefs.h. */
54610 $ac_includes_default
54614 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
54621 rm -f conftest.$ac_objext
54622 if { (ac_try="$ac_compile"
54623 case "(($ac_try" in
54624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54625 *) ac_try_echo=$ac_try;;
54627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54628 $as_echo "$ac_try_echo") >&5
54629 (eval "$ac_compile") 2>conftest.er1
54631 grep -v '^ *+' conftest.er1 >conftest.err
54633 cat conftest.err >&5
54634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54635 (exit $ac_status); } && {
54636 test -z "$ac_c_werror_flag" ||
54637 test ! -s conftest.err
54638 } && test -s conftest.$ac_objext; then
54639 ac_hi=$ac_mid; break
54641 $as_echo "$as_me: failed program was:" >&5
54642 sed 's/^/| /' conftest.$ac_ext >&5
54644 ac_lo=`expr $ac_mid + 1`
54645 if test $ac_lo -le $ac_mid; then
54649 ac_mid=`expr 2 '*' $ac_mid + 1`
54652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54655 $as_echo "$as_me: failed program was:" >&5
54656 sed 's/^/| /' conftest.$ac_ext >&5
54658 cat >conftest.$ac_ext <<_ACEOF
54661 cat confdefs.h >>conftest.$ac_ext
54662 cat >>conftest.$ac_ext <<_ACEOF
54663 /* end confdefs.h. */
54664 $ac_includes_default
54668 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
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
54695 cat >conftest.$ac_ext <<_ACEOF
54698 cat confdefs.h >>conftest.$ac_ext
54699 cat >>conftest.$ac_ext <<_ACEOF
54700 /* end confdefs.h. */
54701 $ac_includes_default
54705 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
54712 rm -f conftest.$ac_objext
54713 if { (ac_try="$ac_compile"
54714 case "(($ac_try" in
54715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54716 *) ac_try_echo=$ac_try;;
54718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54719 $as_echo "$ac_try_echo") >&5
54720 (eval "$ac_compile") 2>conftest.er1
54722 grep -v '^ *+' conftest.er1 >conftest.err
54724 cat conftest.err >&5
54725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54726 (exit $ac_status); } && {
54727 test -z "$ac_c_werror_flag" ||
54728 test ! -s conftest.err
54729 } && test -s conftest.$ac_objext; then
54730 ac_lo=$ac_mid; break
54732 $as_echo "$as_me: failed program was:" >&5
54733 sed 's/^/| /' conftest.$ac_ext >&5
54735 ac_hi=`expr '(' $ac_mid ')' - 1`
54736 if test $ac_mid -le $ac_hi; then
54740 ac_mid=`expr 2 '*' $ac_mid`
54743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54746 $as_echo "$as_me: failed program was:" >&5
54747 sed 's/^/| /' conftest.$ac_ext >&5
54752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54756 # Binary search between lo and hi bounds.
54757 while test "x$ac_lo" != "x$ac_hi"; do
54758 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54759 cat >conftest.$ac_ext <<_ACEOF
54762 cat confdefs.h >>conftest.$ac_ext
54763 cat >>conftest.$ac_ext <<_ACEOF
54764 /* end confdefs.h. */
54765 $ac_includes_default
54769 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
54776 rm -f conftest.$ac_objext
54777 if { (ac_try="$ac_compile"
54778 case "(($ac_try" in
54779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54780 *) ac_try_echo=$ac_try;;
54782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54783 $as_echo "$ac_try_echo") >&5
54784 (eval "$ac_compile") 2>conftest.er1
54786 grep -v '^ *+' conftest.er1 >conftest.err
54788 cat conftest.err >&5
54789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54790 (exit $ac_status); } && {
54791 test -z "$ac_c_werror_flag" ||
54792 test ! -s conftest.err
54793 } && test -s conftest.$ac_objext; then
54796 $as_echo "$as_me: failed program was:" >&5
54797 sed 's/^/| /' conftest.$ac_ext >&5
54799 ac_lo=`expr '(' $ac_mid ')' + 1`
54802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54805 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
54806 '') if test "$ac_cv_type_intmax_t" = yes; then
54807 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54809 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
54810 See \`config.log' for more details." >&5
54811 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
54812 See \`config.log' for more details." >&2;}
54813 { (exit 77); exit 77; }; }; }
54815 ac_cv_sizeof_intmax_t=0
54819 cat >conftest.$ac_ext <<_ACEOF
54822 cat confdefs.h >>conftest.$ac_ext
54823 cat >>conftest.$ac_ext <<_ACEOF
54824 /* end confdefs.h. */
54825 $ac_includes_default
54826 static long int longval () { return (long int) (sizeof (intmax_t)); }
54827 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
54829 #include <stdlib.h>
54834 FILE *f = fopen ("conftest.val", "w");
54837 if (((long int) (sizeof (intmax_t))) < 0)
54839 long int i = longval ();
54840 if (i != ((long int) (sizeof (intmax_t))))
54842 fprintf (f, "%ld", i);
54846 unsigned long int i = ulongval ();
54847 if (i != ((long int) (sizeof (intmax_t))))
54849 fprintf (f, "%lu", i);
54851 /* Do not output a trailing newline, as this causes \r\n confusion
54852 on some platforms. */
54853 return ferror (f) || fclose (f) != 0;
54859 rm -f conftest$ac_exeext
54860 if { (ac_try="$ac_link"
54861 case "(($ac_try" in
54862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54863 *) ac_try_echo=$ac_try;;
54865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54866 $as_echo "$ac_try_echo") >&5
54867 (eval "$ac_link") 2>&5
54869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54871 { (case "(($ac_try" in
54872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54873 *) ac_try_echo=$ac_try;;
54875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54876 $as_echo "$ac_try_echo") >&5
54877 (eval "$ac_try") 2>&5
54879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54880 (exit $ac_status); }; }; then
54881 ac_cv_sizeof_intmax_t=`cat conftest.val`
54883 $as_echo "$as_me: program exited with status $ac_status" >&5
54884 $as_echo "$as_me: failed program was:" >&5
54885 sed 's/^/| /' conftest.$ac_ext >&5
54887 ( exit $ac_status )
54888 if test "$ac_cv_type_intmax_t" = yes; then
54889 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54891 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
54892 See \`config.log' for more details." >&5
54893 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
54894 See \`config.log' for more details." >&2;}
54895 { (exit 77); exit 77; }; }; }
54897 ac_cv_sizeof_intmax_t=0
54900 rm -rf conftest.dSYM
54901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54905 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
54906 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
54910 cat >>confdefs.h <<_ACEOF
54911 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
54915 # The cast to long int works around a bug in the HP C Compiler
54916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54918 # This bug is HP SR number 8606223364.
54919 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
54920 $as_echo_n "checking size of off_t... " >&6; }
54921 if test "${ac_cv_sizeof_off_t+set}" = set; then
54922 $as_echo_n "(cached) " >&6
54924 if test "$cross_compiling" = yes; then
54925 # Depending upon the size, compute the lo and hi bounds.
54926 cat >conftest.$ac_ext <<_ACEOF
54929 cat confdefs.h >>conftest.$ac_ext
54930 cat >>conftest.$ac_ext <<_ACEOF
54931 /* end confdefs.h. */
54932 $ac_includes_default
54936 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
54943 rm -f conftest.$ac_objext
54944 if { (ac_try="$ac_compile"
54945 case "(($ac_try" in
54946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54947 *) ac_try_echo=$ac_try;;
54949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54950 $as_echo "$ac_try_echo") >&5
54951 (eval "$ac_compile") 2>conftest.er1
54953 grep -v '^ *+' conftest.er1 >conftest.err
54955 cat conftest.err >&5
54956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54957 (exit $ac_status); } && {
54958 test -z "$ac_c_werror_flag" ||
54959 test ! -s conftest.err
54960 } && test -s conftest.$ac_objext; then
54963 cat >conftest.$ac_ext <<_ACEOF
54966 cat confdefs.h >>conftest.$ac_ext
54967 cat >>conftest.$ac_ext <<_ACEOF
54968 /* end confdefs.h. */
54969 $ac_includes_default
54973 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
54980 rm -f conftest.$ac_objext
54981 if { (ac_try="$ac_compile"
54982 case "(($ac_try" in
54983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54984 *) ac_try_echo=$ac_try;;
54986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54987 $as_echo "$ac_try_echo") >&5
54988 (eval "$ac_compile") 2>conftest.er1
54990 grep -v '^ *+' conftest.er1 >conftest.err
54992 cat conftest.err >&5
54993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54994 (exit $ac_status); } && {
54995 test -z "$ac_c_werror_flag" ||
54996 test ! -s conftest.err
54997 } && test -s conftest.$ac_objext; then
54998 ac_hi=$ac_mid; break
55000 $as_echo "$as_me: failed program was:" >&5
55001 sed 's/^/| /' conftest.$ac_ext >&5
55003 ac_lo=`expr $ac_mid + 1`
55004 if test $ac_lo -le $ac_mid; then
55008 ac_mid=`expr 2 '*' $ac_mid + 1`
55011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55014 $as_echo "$as_me: failed program was:" >&5
55015 sed 's/^/| /' conftest.$ac_ext >&5
55017 cat >conftest.$ac_ext <<_ACEOF
55020 cat confdefs.h >>conftest.$ac_ext
55021 cat >>conftest.$ac_ext <<_ACEOF
55022 /* end confdefs.h. */
55023 $ac_includes_default
55027 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
55034 rm -f conftest.$ac_objext
55035 if { (ac_try="$ac_compile"
55036 case "(($ac_try" in
55037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55038 *) ac_try_echo=$ac_try;;
55040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55041 $as_echo "$ac_try_echo") >&5
55042 (eval "$ac_compile") 2>conftest.er1
55044 grep -v '^ *+' conftest.er1 >conftest.err
55046 cat conftest.err >&5
55047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55048 (exit $ac_status); } && {
55049 test -z "$ac_c_werror_flag" ||
55050 test ! -s conftest.err
55051 } && test -s conftest.$ac_objext; then
55054 cat >conftest.$ac_ext <<_ACEOF
55057 cat confdefs.h >>conftest.$ac_ext
55058 cat >>conftest.$ac_ext <<_ACEOF
55059 /* end confdefs.h. */
55060 $ac_includes_default
55064 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
55071 rm -f conftest.$ac_objext
55072 if { (ac_try="$ac_compile"
55073 case "(($ac_try" in
55074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55075 *) ac_try_echo=$ac_try;;
55077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55078 $as_echo "$ac_try_echo") >&5
55079 (eval "$ac_compile") 2>conftest.er1
55081 grep -v '^ *+' conftest.er1 >conftest.err
55083 cat conftest.err >&5
55084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55085 (exit $ac_status); } && {
55086 test -z "$ac_c_werror_flag" ||
55087 test ! -s conftest.err
55088 } && test -s conftest.$ac_objext; then
55089 ac_lo=$ac_mid; break
55091 $as_echo "$as_me: failed program was:" >&5
55092 sed 's/^/| /' conftest.$ac_ext >&5
55094 ac_hi=`expr '(' $ac_mid ')' - 1`
55095 if test $ac_mid -le $ac_hi; then
55099 ac_mid=`expr 2 '*' $ac_mid`
55102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55105 $as_echo "$as_me: failed program was:" >&5
55106 sed 's/^/| /' conftest.$ac_ext >&5
55111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55115 # Binary search between lo and hi bounds.
55116 while test "x$ac_lo" != "x$ac_hi"; do
55117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
55118 cat >conftest.$ac_ext <<_ACEOF
55121 cat confdefs.h >>conftest.$ac_ext
55122 cat >>conftest.$ac_ext <<_ACEOF
55123 /* end confdefs.h. */
55124 $ac_includes_default
55128 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
55135 rm -f conftest.$ac_objext
55136 if { (ac_try="$ac_compile"
55137 case "(($ac_try" in
55138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55139 *) ac_try_echo=$ac_try;;
55141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55142 $as_echo "$ac_try_echo") >&5
55143 (eval "$ac_compile") 2>conftest.er1
55145 grep -v '^ *+' conftest.er1 >conftest.err
55147 cat conftest.err >&5
55148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55149 (exit $ac_status); } && {
55150 test -z "$ac_c_werror_flag" ||
55151 test ! -s conftest.err
55152 } && test -s conftest.$ac_objext; then
55155 $as_echo "$as_me: failed program was:" >&5
55156 sed 's/^/| /' conftest.$ac_ext >&5
55158 ac_lo=`expr '(' $ac_mid ')' + 1`
55161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55164 ?*) ac_cv_sizeof_off_t=$ac_lo;;
55165 '') if test "$ac_cv_type_off_t" = yes; then
55166 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55168 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
55169 See \`config.log' for more details." >&5
55170 $as_echo "$as_me: error: cannot compute sizeof (off_t)
55171 See \`config.log' for more details." >&2;}
55172 { (exit 77); exit 77; }; }; }
55174 ac_cv_sizeof_off_t=0
55178 cat >conftest.$ac_ext <<_ACEOF
55181 cat confdefs.h >>conftest.$ac_ext
55182 cat >>conftest.$ac_ext <<_ACEOF
55183 /* end confdefs.h. */
55184 $ac_includes_default
55185 static long int longval () { return (long int) (sizeof (off_t)); }
55186 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
55188 #include <stdlib.h>
55193 FILE *f = fopen ("conftest.val", "w");
55196 if (((long int) (sizeof (off_t))) < 0)
55198 long int i = longval ();
55199 if (i != ((long int) (sizeof (off_t))))
55201 fprintf (f, "%ld", i);
55205 unsigned long int i = ulongval ();
55206 if (i != ((long int) (sizeof (off_t))))
55208 fprintf (f, "%lu", i);
55210 /* Do not output a trailing newline, as this causes \r\n confusion
55211 on some platforms. */
55212 return ferror (f) || fclose (f) != 0;
55218 rm -f conftest$ac_exeext
55219 if { (ac_try="$ac_link"
55220 case "(($ac_try" in
55221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55222 *) ac_try_echo=$ac_try;;
55224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55225 $as_echo "$ac_try_echo") >&5
55226 (eval "$ac_link") 2>&5
55228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55230 { (case "(($ac_try" in
55231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55232 *) ac_try_echo=$ac_try;;
55234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55235 $as_echo "$ac_try_echo") >&5
55236 (eval "$ac_try") 2>&5
55238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55239 (exit $ac_status); }; }; then
55240 ac_cv_sizeof_off_t=`cat conftest.val`
55242 $as_echo "$as_me: program exited with status $ac_status" >&5
55243 $as_echo "$as_me: failed program was:" >&5
55244 sed 's/^/| /' conftest.$ac_ext >&5
55246 ( exit $ac_status )
55247 if test "$ac_cv_type_off_t" = yes; then
55248 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55250 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
55251 See \`config.log' for more details." >&5
55252 $as_echo "$as_me: error: cannot compute sizeof (off_t)
55253 See \`config.log' for more details." >&2;}
55254 { (exit 77); exit 77; }; }; }
55256 ac_cv_sizeof_off_t=0
55259 rm -rf conftest.dSYM
55260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55264 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
55265 $as_echo "$ac_cv_sizeof_off_t" >&6; }
55269 cat >>confdefs.h <<_ACEOF
55270 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
55274 # The cast to long int works around a bug in the HP C Compiler
55275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
55276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
55277 # This bug is HP SR number 8606223364.
55278 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
55279 $as_echo_n "checking size of size_t... " >&6; }
55280 if test "${ac_cv_sizeof_size_t+set}" = set; then
55281 $as_echo_n "(cached) " >&6
55283 if test "$cross_compiling" = yes; then
55284 # Depending upon the size, compute the lo and hi bounds.
55285 cat >conftest.$ac_ext <<_ACEOF
55288 cat confdefs.h >>conftest.$ac_ext
55289 cat >>conftest.$ac_ext <<_ACEOF
55290 /* end confdefs.h. */
55291 $ac_includes_default
55295 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
55302 rm -f conftest.$ac_objext
55303 if { (ac_try="$ac_compile"
55304 case "(($ac_try" in
55305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55306 *) ac_try_echo=$ac_try;;
55308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55309 $as_echo "$ac_try_echo") >&5
55310 (eval "$ac_compile") 2>conftest.er1
55312 grep -v '^ *+' conftest.er1 >conftest.err
55314 cat conftest.err >&5
55315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55316 (exit $ac_status); } && {
55317 test -z "$ac_c_werror_flag" ||
55318 test ! -s conftest.err
55319 } && test -s conftest.$ac_objext; then
55322 cat >conftest.$ac_ext <<_ACEOF
55325 cat confdefs.h >>conftest.$ac_ext
55326 cat >>conftest.$ac_ext <<_ACEOF
55327 /* end confdefs.h. */
55328 $ac_includes_default
55332 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
55339 rm -f conftest.$ac_objext
55340 if { (ac_try="$ac_compile"
55341 case "(($ac_try" in
55342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55343 *) ac_try_echo=$ac_try;;
55345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55346 $as_echo "$ac_try_echo") >&5
55347 (eval "$ac_compile") 2>conftest.er1
55349 grep -v '^ *+' conftest.er1 >conftest.err
55351 cat conftest.err >&5
55352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55353 (exit $ac_status); } && {
55354 test -z "$ac_c_werror_flag" ||
55355 test ! -s conftest.err
55356 } && test -s conftest.$ac_objext; then
55357 ac_hi=$ac_mid; break
55359 $as_echo "$as_me: failed program was:" >&5
55360 sed 's/^/| /' conftest.$ac_ext >&5
55362 ac_lo=`expr $ac_mid + 1`
55363 if test $ac_lo -le $ac_mid; then
55367 ac_mid=`expr 2 '*' $ac_mid + 1`
55370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55373 $as_echo "$as_me: failed program was:" >&5
55374 sed 's/^/| /' conftest.$ac_ext >&5
55376 cat >conftest.$ac_ext <<_ACEOF
55379 cat confdefs.h >>conftest.$ac_ext
55380 cat >>conftest.$ac_ext <<_ACEOF
55381 /* end confdefs.h. */
55382 $ac_includes_default
55386 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
55393 rm -f conftest.$ac_objext
55394 if { (ac_try="$ac_compile"
55395 case "(($ac_try" in
55396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55397 *) ac_try_echo=$ac_try;;
55399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55400 $as_echo "$ac_try_echo") >&5
55401 (eval "$ac_compile") 2>conftest.er1
55403 grep -v '^ *+' conftest.er1 >conftest.err
55405 cat conftest.err >&5
55406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55407 (exit $ac_status); } && {
55408 test -z "$ac_c_werror_flag" ||
55409 test ! -s conftest.err
55410 } && test -s conftest.$ac_objext; then
55413 cat >conftest.$ac_ext <<_ACEOF
55416 cat confdefs.h >>conftest.$ac_ext
55417 cat >>conftest.$ac_ext <<_ACEOF
55418 /* end confdefs.h. */
55419 $ac_includes_default
55423 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
55430 rm -f conftest.$ac_objext
55431 if { (ac_try="$ac_compile"
55432 case "(($ac_try" in
55433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55434 *) ac_try_echo=$ac_try;;
55436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55437 $as_echo "$ac_try_echo") >&5
55438 (eval "$ac_compile") 2>conftest.er1
55440 grep -v '^ *+' conftest.er1 >conftest.err
55442 cat conftest.err >&5
55443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55444 (exit $ac_status); } && {
55445 test -z "$ac_c_werror_flag" ||
55446 test ! -s conftest.err
55447 } && test -s conftest.$ac_objext; then
55448 ac_lo=$ac_mid; break
55450 $as_echo "$as_me: failed program was:" >&5
55451 sed 's/^/| /' conftest.$ac_ext >&5
55453 ac_hi=`expr '(' $ac_mid ')' - 1`
55454 if test $ac_mid -le $ac_hi; then
55458 ac_mid=`expr 2 '*' $ac_mid`
55461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55464 $as_echo "$as_me: failed program was:" >&5
55465 sed 's/^/| /' conftest.$ac_ext >&5
55470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55474 # Binary search between lo and hi bounds.
55475 while test "x$ac_lo" != "x$ac_hi"; do
55476 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
55477 cat >conftest.$ac_ext <<_ACEOF
55480 cat confdefs.h >>conftest.$ac_ext
55481 cat >>conftest.$ac_ext <<_ACEOF
55482 /* end confdefs.h. */
55483 $ac_includes_default
55487 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
55494 rm -f conftest.$ac_objext
55495 if { (ac_try="$ac_compile"
55496 case "(($ac_try" in
55497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55498 *) ac_try_echo=$ac_try;;
55500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55501 $as_echo "$ac_try_echo") >&5
55502 (eval "$ac_compile") 2>conftest.er1
55504 grep -v '^ *+' conftest.er1 >conftest.err
55506 cat conftest.err >&5
55507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55508 (exit $ac_status); } && {
55509 test -z "$ac_c_werror_flag" ||
55510 test ! -s conftest.err
55511 } && test -s conftest.$ac_objext; then
55514 $as_echo "$as_me: failed program was:" >&5
55515 sed 's/^/| /' conftest.$ac_ext >&5
55517 ac_lo=`expr '(' $ac_mid ')' + 1`
55520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55523 ?*) ac_cv_sizeof_size_t=$ac_lo;;
55524 '') if test "$ac_cv_type_size_t" = yes; then
55525 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55527 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
55528 See \`config.log' for more details." >&5
55529 $as_echo "$as_me: error: cannot compute sizeof (size_t)
55530 See \`config.log' for more details." >&2;}
55531 { (exit 77); exit 77; }; }; }
55533 ac_cv_sizeof_size_t=0
55537 cat >conftest.$ac_ext <<_ACEOF
55540 cat confdefs.h >>conftest.$ac_ext
55541 cat >>conftest.$ac_ext <<_ACEOF
55542 /* end confdefs.h. */
55543 $ac_includes_default
55544 static long int longval () { return (long int) (sizeof (size_t)); }
55545 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
55547 #include <stdlib.h>
55552 FILE *f = fopen ("conftest.val", "w");
55555 if (((long int) (sizeof (size_t))) < 0)
55557 long int i = longval ();
55558 if (i != ((long int) (sizeof (size_t))))
55560 fprintf (f, "%ld", i);
55564 unsigned long int i = ulongval ();
55565 if (i != ((long int) (sizeof (size_t))))
55567 fprintf (f, "%lu", i);
55569 /* Do not output a trailing newline, as this causes \r\n confusion
55570 on some platforms. */
55571 return ferror (f) || fclose (f) != 0;
55577 rm -f conftest$ac_exeext
55578 if { (ac_try="$ac_link"
55579 case "(($ac_try" in
55580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55581 *) ac_try_echo=$ac_try;;
55583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55584 $as_echo "$ac_try_echo") >&5
55585 (eval "$ac_link") 2>&5
55587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55589 { (case "(($ac_try" in
55590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55591 *) ac_try_echo=$ac_try;;
55593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55594 $as_echo "$ac_try_echo") >&5
55595 (eval "$ac_try") 2>&5
55597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55598 (exit $ac_status); }; }; then
55599 ac_cv_sizeof_size_t=`cat conftest.val`
55601 $as_echo "$as_me: program exited with status $ac_status" >&5
55602 $as_echo "$as_me: failed program was:" >&5
55603 sed 's/^/| /' conftest.$ac_ext >&5
55605 ( exit $ac_status )
55606 if test "$ac_cv_type_size_t" = yes; then
55607 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55609 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
55610 See \`config.log' for more details." >&5
55611 $as_echo "$as_me: error: cannot compute sizeof (size_t)
55612 See \`config.log' for more details." >&2;}
55613 { (exit 77); exit 77; }; }; }
55615 ac_cv_sizeof_size_t=0
55618 rm -rf conftest.dSYM
55619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55623 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
55624 $as_echo "$ac_cv_sizeof_size_t" >&6; }
55628 cat >>confdefs.h <<_ACEOF
55629 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
55633 # The cast to long int works around a bug in the HP C Compiler
55634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
55635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
55636 # This bug is HP SR number 8606223364.
55637 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
55638 $as_echo_n "checking size of ssize_t... " >&6; }
55639 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
55640 $as_echo_n "(cached) " >&6
55642 if test "$cross_compiling" = yes; then
55643 # Depending upon the size, compute the lo and hi bounds.
55644 cat >conftest.$ac_ext <<_ACEOF
55647 cat confdefs.h >>conftest.$ac_ext
55648 cat >>conftest.$ac_ext <<_ACEOF
55649 /* end confdefs.h. */
55650 $ac_includes_default
55654 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
55661 rm -f conftest.$ac_objext
55662 if { (ac_try="$ac_compile"
55663 case "(($ac_try" in
55664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55665 *) ac_try_echo=$ac_try;;
55667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55668 $as_echo "$ac_try_echo") >&5
55669 (eval "$ac_compile") 2>conftest.er1
55671 grep -v '^ *+' conftest.er1 >conftest.err
55673 cat conftest.err >&5
55674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55675 (exit $ac_status); } && {
55676 test -z "$ac_c_werror_flag" ||
55677 test ! -s conftest.err
55678 } && test -s conftest.$ac_objext; then
55681 cat >conftest.$ac_ext <<_ACEOF
55684 cat confdefs.h >>conftest.$ac_ext
55685 cat >>conftest.$ac_ext <<_ACEOF
55686 /* end confdefs.h. */
55687 $ac_includes_default
55691 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
55698 rm -f conftest.$ac_objext
55699 if { (ac_try="$ac_compile"
55700 case "(($ac_try" in
55701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55702 *) ac_try_echo=$ac_try;;
55704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55705 $as_echo "$ac_try_echo") >&5
55706 (eval "$ac_compile") 2>conftest.er1
55708 grep -v '^ *+' conftest.er1 >conftest.err
55710 cat conftest.err >&5
55711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55712 (exit $ac_status); } && {
55713 test -z "$ac_c_werror_flag" ||
55714 test ! -s conftest.err
55715 } && test -s conftest.$ac_objext; then
55716 ac_hi=$ac_mid; break
55718 $as_echo "$as_me: failed program was:" >&5
55719 sed 's/^/| /' conftest.$ac_ext >&5
55721 ac_lo=`expr $ac_mid + 1`
55722 if test $ac_lo -le $ac_mid; then
55726 ac_mid=`expr 2 '*' $ac_mid + 1`
55729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55732 $as_echo "$as_me: failed program was:" >&5
55733 sed 's/^/| /' conftest.$ac_ext >&5
55735 cat >conftest.$ac_ext <<_ACEOF
55738 cat confdefs.h >>conftest.$ac_ext
55739 cat >>conftest.$ac_ext <<_ACEOF
55740 /* end confdefs.h. */
55741 $ac_includes_default
55745 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
55752 rm -f conftest.$ac_objext
55753 if { (ac_try="$ac_compile"
55754 case "(($ac_try" in
55755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55756 *) ac_try_echo=$ac_try;;
55758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55759 $as_echo "$ac_try_echo") >&5
55760 (eval "$ac_compile") 2>conftest.er1
55762 grep -v '^ *+' conftest.er1 >conftest.err
55764 cat conftest.err >&5
55765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55766 (exit $ac_status); } && {
55767 test -z "$ac_c_werror_flag" ||
55768 test ! -s conftest.err
55769 } && test -s conftest.$ac_objext; then
55772 cat >conftest.$ac_ext <<_ACEOF
55775 cat confdefs.h >>conftest.$ac_ext
55776 cat >>conftest.$ac_ext <<_ACEOF
55777 /* end confdefs.h. */
55778 $ac_includes_default
55782 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
55789 rm -f conftest.$ac_objext
55790 if { (ac_try="$ac_compile"
55791 case "(($ac_try" in
55792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55793 *) ac_try_echo=$ac_try;;
55795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55796 $as_echo "$ac_try_echo") >&5
55797 (eval "$ac_compile") 2>conftest.er1
55799 grep -v '^ *+' conftest.er1 >conftest.err
55801 cat conftest.err >&5
55802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55803 (exit $ac_status); } && {
55804 test -z "$ac_c_werror_flag" ||
55805 test ! -s conftest.err
55806 } && test -s conftest.$ac_objext; then
55807 ac_lo=$ac_mid; break
55809 $as_echo "$as_me: failed program was:" >&5
55810 sed 's/^/| /' conftest.$ac_ext >&5
55812 ac_hi=`expr '(' $ac_mid ')' - 1`
55813 if test $ac_mid -le $ac_hi; then
55817 ac_mid=`expr 2 '*' $ac_mid`
55820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55823 $as_echo "$as_me: failed program was:" >&5
55824 sed 's/^/| /' conftest.$ac_ext >&5
55829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55833 # Binary search between lo and hi bounds.
55834 while test "x$ac_lo" != "x$ac_hi"; do
55835 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
55836 cat >conftest.$ac_ext <<_ACEOF
55839 cat confdefs.h >>conftest.$ac_ext
55840 cat >>conftest.$ac_ext <<_ACEOF
55841 /* end confdefs.h. */
55842 $ac_includes_default
55846 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
55853 rm -f conftest.$ac_objext
55854 if { (ac_try="$ac_compile"
55855 case "(($ac_try" in
55856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55857 *) ac_try_echo=$ac_try;;
55859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55860 $as_echo "$ac_try_echo") >&5
55861 (eval "$ac_compile") 2>conftest.er1
55863 grep -v '^ *+' conftest.er1 >conftest.err
55865 cat conftest.err >&5
55866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55867 (exit $ac_status); } && {
55868 test -z "$ac_c_werror_flag" ||
55869 test ! -s conftest.err
55870 } && test -s conftest.$ac_objext; then
55873 $as_echo "$as_me: failed program was:" >&5
55874 sed 's/^/| /' conftest.$ac_ext >&5
55876 ac_lo=`expr '(' $ac_mid ')' + 1`
55879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55882 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
55883 '') if test "$ac_cv_type_ssize_t" = yes; then
55884 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55886 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
55887 See \`config.log' for more details." >&5
55888 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
55889 See \`config.log' for more details." >&2;}
55890 { (exit 77); exit 77; }; }; }
55892 ac_cv_sizeof_ssize_t=0
55896 cat >conftest.$ac_ext <<_ACEOF
55899 cat confdefs.h >>conftest.$ac_ext
55900 cat >>conftest.$ac_ext <<_ACEOF
55901 /* end confdefs.h. */
55902 $ac_includes_default
55903 static long int longval () { return (long int) (sizeof (ssize_t)); }
55904 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
55906 #include <stdlib.h>
55911 FILE *f = fopen ("conftest.val", "w");
55914 if (((long int) (sizeof (ssize_t))) < 0)
55916 long int i = longval ();
55917 if (i != ((long int) (sizeof (ssize_t))))
55919 fprintf (f, "%ld", i);
55923 unsigned long int i = ulongval ();
55924 if (i != ((long int) (sizeof (ssize_t))))
55926 fprintf (f, "%lu", i);
55928 /* Do not output a trailing newline, as this causes \r\n confusion
55929 on some platforms. */
55930 return ferror (f) || fclose (f) != 0;
55936 rm -f conftest$ac_exeext
55937 if { (ac_try="$ac_link"
55938 case "(($ac_try" in
55939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55940 *) ac_try_echo=$ac_try;;
55942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55943 $as_echo "$ac_try_echo") >&5
55944 (eval "$ac_link") 2>&5
55946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55948 { (case "(($ac_try" in
55949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55950 *) ac_try_echo=$ac_try;;
55952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55953 $as_echo "$ac_try_echo") >&5
55954 (eval "$ac_try") 2>&5
55956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55957 (exit $ac_status); }; }; then
55958 ac_cv_sizeof_ssize_t=`cat conftest.val`
55960 $as_echo "$as_me: program exited with status $ac_status" >&5
55961 $as_echo "$as_me: failed program was:" >&5
55962 sed 's/^/| /' conftest.$ac_ext >&5
55964 ( exit $ac_status )
55965 if test "$ac_cv_type_ssize_t" = yes; then
55966 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55968 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
55969 See \`config.log' for more details." >&5
55970 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
55971 See \`config.log' for more details." >&2;}
55972 { (exit 77); exit 77; }; }; }
55974 ac_cv_sizeof_ssize_t=0
55977 rm -rf conftest.dSYM
55978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55982 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
55983 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
55987 cat >>confdefs.h <<_ACEOF
55988 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
55992 # The cast to long int works around a bug in the HP C Compiler
55993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
55994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
55995 # This bug is HP SR number 8606223364.
55996 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
55997 $as_echo_n "checking size of time_t... " >&6; }
55998 if test "${ac_cv_sizeof_time_t+set}" = set; then
55999 $as_echo_n "(cached) " >&6
56001 if test "$cross_compiling" = yes; then
56002 # Depending upon the size, compute the lo and hi bounds.
56003 cat >conftest.$ac_ext <<_ACEOF
56006 cat confdefs.h >>conftest.$ac_ext
56007 cat >>conftest.$ac_ext <<_ACEOF
56008 /* end confdefs.h. */
56009 $ac_includes_default
56013 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
56020 rm -f conftest.$ac_objext
56021 if { (ac_try="$ac_compile"
56022 case "(($ac_try" in
56023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56024 *) ac_try_echo=$ac_try;;
56026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56027 $as_echo "$ac_try_echo") >&5
56028 (eval "$ac_compile") 2>conftest.er1
56030 grep -v '^ *+' conftest.er1 >conftest.err
56032 cat conftest.err >&5
56033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56034 (exit $ac_status); } && {
56035 test -z "$ac_c_werror_flag" ||
56036 test ! -s conftest.err
56037 } && test -s conftest.$ac_objext; then
56040 cat >conftest.$ac_ext <<_ACEOF
56043 cat confdefs.h >>conftest.$ac_ext
56044 cat >>conftest.$ac_ext <<_ACEOF
56045 /* end confdefs.h. */
56046 $ac_includes_default
56050 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
56057 rm -f conftest.$ac_objext
56058 if { (ac_try="$ac_compile"
56059 case "(($ac_try" in
56060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56061 *) ac_try_echo=$ac_try;;
56063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56064 $as_echo "$ac_try_echo") >&5
56065 (eval "$ac_compile") 2>conftest.er1
56067 grep -v '^ *+' conftest.er1 >conftest.err
56069 cat conftest.err >&5
56070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56071 (exit $ac_status); } && {
56072 test -z "$ac_c_werror_flag" ||
56073 test ! -s conftest.err
56074 } && test -s conftest.$ac_objext; then
56075 ac_hi=$ac_mid; break
56077 $as_echo "$as_me: failed program was:" >&5
56078 sed 's/^/| /' conftest.$ac_ext >&5
56080 ac_lo=`expr $ac_mid + 1`
56081 if test $ac_lo -le $ac_mid; then
56085 ac_mid=`expr 2 '*' $ac_mid + 1`
56088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56091 $as_echo "$as_me: failed program was:" >&5
56092 sed 's/^/| /' conftest.$ac_ext >&5
56094 cat >conftest.$ac_ext <<_ACEOF
56097 cat confdefs.h >>conftest.$ac_ext
56098 cat >>conftest.$ac_ext <<_ACEOF
56099 /* end confdefs.h. */
56100 $ac_includes_default
56104 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
56111 rm -f conftest.$ac_objext
56112 if { (ac_try="$ac_compile"
56113 case "(($ac_try" in
56114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56115 *) ac_try_echo=$ac_try;;
56117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56118 $as_echo "$ac_try_echo") >&5
56119 (eval "$ac_compile") 2>conftest.er1
56121 grep -v '^ *+' conftest.er1 >conftest.err
56123 cat conftest.err >&5
56124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56125 (exit $ac_status); } && {
56126 test -z "$ac_c_werror_flag" ||
56127 test ! -s conftest.err
56128 } && test -s conftest.$ac_objext; then
56131 cat >conftest.$ac_ext <<_ACEOF
56134 cat confdefs.h >>conftest.$ac_ext
56135 cat >>conftest.$ac_ext <<_ACEOF
56136 /* end confdefs.h. */
56137 $ac_includes_default
56141 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
56148 rm -f conftest.$ac_objext
56149 if { (ac_try="$ac_compile"
56150 case "(($ac_try" in
56151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56152 *) ac_try_echo=$ac_try;;
56154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56155 $as_echo "$ac_try_echo") >&5
56156 (eval "$ac_compile") 2>conftest.er1
56158 grep -v '^ *+' conftest.er1 >conftest.err
56160 cat conftest.err >&5
56161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56162 (exit $ac_status); } && {
56163 test -z "$ac_c_werror_flag" ||
56164 test ! -s conftest.err
56165 } && test -s conftest.$ac_objext; then
56166 ac_lo=$ac_mid; break
56168 $as_echo "$as_me: failed program was:" >&5
56169 sed 's/^/| /' conftest.$ac_ext >&5
56171 ac_hi=`expr '(' $ac_mid ')' - 1`
56172 if test $ac_mid -le $ac_hi; then
56176 ac_mid=`expr 2 '*' $ac_mid`
56179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56182 $as_echo "$as_me: failed program was:" >&5
56183 sed 's/^/| /' conftest.$ac_ext >&5
56188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56192 # Binary search between lo and hi bounds.
56193 while test "x$ac_lo" != "x$ac_hi"; do
56194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
56195 cat >conftest.$ac_ext <<_ACEOF
56198 cat confdefs.h >>conftest.$ac_ext
56199 cat >>conftest.$ac_ext <<_ACEOF
56200 /* end confdefs.h. */
56201 $ac_includes_default
56205 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
56212 rm -f conftest.$ac_objext
56213 if { (ac_try="$ac_compile"
56214 case "(($ac_try" in
56215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56216 *) ac_try_echo=$ac_try;;
56218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56219 $as_echo "$ac_try_echo") >&5
56220 (eval "$ac_compile") 2>conftest.er1
56222 grep -v '^ *+' conftest.er1 >conftest.err
56224 cat conftest.err >&5
56225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56226 (exit $ac_status); } && {
56227 test -z "$ac_c_werror_flag" ||
56228 test ! -s conftest.err
56229 } && test -s conftest.$ac_objext; then
56232 $as_echo "$as_me: failed program was:" >&5
56233 sed 's/^/| /' conftest.$ac_ext >&5
56235 ac_lo=`expr '(' $ac_mid ')' + 1`
56238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56241 ?*) ac_cv_sizeof_time_t=$ac_lo;;
56242 '') if test "$ac_cv_type_time_t" = yes; then
56243 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
56244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
56245 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
56246 See \`config.log' for more details." >&5
56247 $as_echo "$as_me: error: cannot compute sizeof (time_t)
56248 See \`config.log' for more details." >&2;}
56249 { (exit 77); exit 77; }; }; }
56251 ac_cv_sizeof_time_t=0
56255 cat >conftest.$ac_ext <<_ACEOF
56258 cat confdefs.h >>conftest.$ac_ext
56259 cat >>conftest.$ac_ext <<_ACEOF
56260 /* end confdefs.h. */
56261 $ac_includes_default
56262 static long int longval () { return (long int) (sizeof (time_t)); }
56263 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
56265 #include <stdlib.h>
56270 FILE *f = fopen ("conftest.val", "w");
56273 if (((long int) (sizeof (time_t))) < 0)
56275 long int i = longval ();
56276 if (i != ((long int) (sizeof (time_t))))
56278 fprintf (f, "%ld", i);
56282 unsigned long int i = ulongval ();
56283 if (i != ((long int) (sizeof (time_t))))
56285 fprintf (f, "%lu", i);
56287 /* Do not output a trailing newline, as this causes \r\n confusion
56288 on some platforms. */
56289 return ferror (f) || fclose (f) != 0;
56295 rm -f conftest$ac_exeext
56296 if { (ac_try="$ac_link"
56297 case "(($ac_try" in
56298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56299 *) ac_try_echo=$ac_try;;
56301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56302 $as_echo "$ac_try_echo") >&5
56303 (eval "$ac_link") 2>&5
56305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56307 { (case "(($ac_try" in
56308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56309 *) ac_try_echo=$ac_try;;
56311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56312 $as_echo "$ac_try_echo") >&5
56313 (eval "$ac_try") 2>&5
56315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56316 (exit $ac_status); }; }; then
56317 ac_cv_sizeof_time_t=`cat conftest.val`
56319 $as_echo "$as_me: program exited with status $ac_status" >&5
56320 $as_echo "$as_me: failed program was:" >&5
56321 sed 's/^/| /' conftest.$ac_ext >&5
56323 ( exit $ac_status )
56324 if test "$ac_cv_type_time_t" = yes; then
56325 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
56326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
56327 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
56328 See \`config.log' for more details." >&5
56329 $as_echo "$as_me: error: cannot compute sizeof (time_t)
56330 See \`config.log' for more details." >&2;}
56331 { (exit 77); exit 77; }; }; }
56333 ac_cv_sizeof_time_t=0
56336 rm -rf conftest.dSYM
56337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56341 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
56342 $as_echo "$ac_cv_sizeof_time_t" >&6; }
56346 cat >>confdefs.h <<_ACEOF
56347 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
56351 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
56352 $as_echo_n "checking for off_t... " >&6; }
56353 if test "${ac_cv_type_off_t+set}" = set; then
56354 $as_echo_n "(cached) " >&6
56356 ac_cv_type_off_t=no
56357 cat >conftest.$ac_ext <<_ACEOF
56360 cat confdefs.h >>conftest.$ac_ext
56361 cat >>conftest.$ac_ext <<_ACEOF
56362 /* end confdefs.h. */
56363 $ac_includes_default
56367 if (sizeof (off_t))
56373 rm -f conftest.$ac_objext
56374 if { (ac_try="$ac_compile"
56375 case "(($ac_try" in
56376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56377 *) ac_try_echo=$ac_try;;
56379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56380 $as_echo "$ac_try_echo") >&5
56381 (eval "$ac_compile") 2>conftest.er1
56383 grep -v '^ *+' conftest.er1 >conftest.err
56385 cat conftest.err >&5
56386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56387 (exit $ac_status); } && {
56388 test -z "$ac_c_werror_flag" ||
56389 test ! -s conftest.err
56390 } && test -s conftest.$ac_objext; then
56391 cat >conftest.$ac_ext <<_ACEOF
56394 cat confdefs.h >>conftest.$ac_ext
56395 cat >>conftest.$ac_ext <<_ACEOF
56396 /* end confdefs.h. */
56397 $ac_includes_default
56401 if (sizeof ((off_t)))
56407 rm -f conftest.$ac_objext
56408 if { (ac_try="$ac_compile"
56409 case "(($ac_try" in
56410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56411 *) ac_try_echo=$ac_try;;
56413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56414 $as_echo "$ac_try_echo") >&5
56415 (eval "$ac_compile") 2>conftest.er1
56417 grep -v '^ *+' conftest.er1 >conftest.err
56419 cat conftest.err >&5
56420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56421 (exit $ac_status); } && {
56422 test -z "$ac_c_werror_flag" ||
56423 test ! -s conftest.err
56424 } && test -s conftest.$ac_objext; then
56427 $as_echo "$as_me: failed program was:" >&5
56428 sed 's/^/| /' conftest.$ac_ext >&5
56430 ac_cv_type_off_t=yes
56433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56435 $as_echo "$as_me: failed program was:" >&5
56436 sed 's/^/| /' conftest.$ac_ext >&5
56441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56443 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
56444 $as_echo "$ac_cv_type_off_t" >&6; }
56445 if test "x$ac_cv_type_off_t" = x""yes; then
56449 cat >>confdefs.h <<_ACEOF
56450 #define off_t long int
56455 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
56456 $as_echo_n "checking for pid_t... " >&6; }
56457 if test "${ac_cv_type_pid_t+set}" = set; then
56458 $as_echo_n "(cached) " >&6
56460 ac_cv_type_pid_t=no
56461 cat >conftest.$ac_ext <<_ACEOF
56464 cat confdefs.h >>conftest.$ac_ext
56465 cat >>conftest.$ac_ext <<_ACEOF
56466 /* end confdefs.h. */
56467 $ac_includes_default
56471 if (sizeof (pid_t))
56477 rm -f conftest.$ac_objext
56478 if { (ac_try="$ac_compile"
56479 case "(($ac_try" in
56480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56481 *) ac_try_echo=$ac_try;;
56483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56484 $as_echo "$ac_try_echo") >&5
56485 (eval "$ac_compile") 2>conftest.er1
56487 grep -v '^ *+' conftest.er1 >conftest.err
56489 cat conftest.err >&5
56490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56491 (exit $ac_status); } && {
56492 test -z "$ac_c_werror_flag" ||
56493 test ! -s conftest.err
56494 } && test -s conftest.$ac_objext; then
56495 cat >conftest.$ac_ext <<_ACEOF
56498 cat confdefs.h >>conftest.$ac_ext
56499 cat >>conftest.$ac_ext <<_ACEOF
56500 /* end confdefs.h. */
56501 $ac_includes_default
56505 if (sizeof ((pid_t)))
56511 rm -f conftest.$ac_objext
56512 if { (ac_try="$ac_compile"
56513 case "(($ac_try" in
56514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56515 *) ac_try_echo=$ac_try;;
56517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56518 $as_echo "$ac_try_echo") >&5
56519 (eval "$ac_compile") 2>conftest.er1
56521 grep -v '^ *+' conftest.er1 >conftest.err
56523 cat conftest.err >&5
56524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56525 (exit $ac_status); } && {
56526 test -z "$ac_c_werror_flag" ||
56527 test ! -s conftest.err
56528 } && test -s conftest.$ac_objext; then
56531 $as_echo "$as_me: failed program was:" >&5
56532 sed 's/^/| /' conftest.$ac_ext >&5
56534 ac_cv_type_pid_t=yes
56537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56539 $as_echo "$as_me: failed program was:" >&5
56540 sed 's/^/| /' conftest.$ac_ext >&5
56545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56547 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
56548 $as_echo "$ac_cv_type_pid_t" >&6; }
56549 if test "x$ac_cv_type_pid_t" = x""yes; then
56553 cat >>confdefs.h <<_ACEOF
56559 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
56560 $as_echo_n "checking for size_t... " >&6; }
56561 if test "${ac_cv_type_size_t+set}" = set; then
56562 $as_echo_n "(cached) " >&6
56564 ac_cv_type_size_t=no
56565 cat >conftest.$ac_ext <<_ACEOF
56568 cat confdefs.h >>conftest.$ac_ext
56569 cat >>conftest.$ac_ext <<_ACEOF
56570 /* end confdefs.h. */
56571 $ac_includes_default
56575 if (sizeof (size_t))
56581 rm -f conftest.$ac_objext
56582 if { (ac_try="$ac_compile"
56583 case "(($ac_try" in
56584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56585 *) ac_try_echo=$ac_try;;
56587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56588 $as_echo "$ac_try_echo") >&5
56589 (eval "$ac_compile") 2>conftest.er1
56591 grep -v '^ *+' conftest.er1 >conftest.err
56593 cat conftest.err >&5
56594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56595 (exit $ac_status); } && {
56596 test -z "$ac_c_werror_flag" ||
56597 test ! -s conftest.err
56598 } && test -s conftest.$ac_objext; then
56599 cat >conftest.$ac_ext <<_ACEOF
56602 cat confdefs.h >>conftest.$ac_ext
56603 cat >>conftest.$ac_ext <<_ACEOF
56604 /* end confdefs.h. */
56605 $ac_includes_default
56609 if (sizeof ((size_t)))
56615 rm -f conftest.$ac_objext
56616 if { (ac_try="$ac_compile"
56617 case "(($ac_try" in
56618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56619 *) ac_try_echo=$ac_try;;
56621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56622 $as_echo "$ac_try_echo") >&5
56623 (eval "$ac_compile") 2>conftest.er1
56625 grep -v '^ *+' conftest.er1 >conftest.err
56627 cat conftest.err >&5
56628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56629 (exit $ac_status); } && {
56630 test -z "$ac_c_werror_flag" ||
56631 test ! -s conftest.err
56632 } && test -s conftest.$ac_objext; then
56635 $as_echo "$as_me: failed program was:" >&5
56636 sed 's/^/| /' conftest.$ac_ext >&5
56638 ac_cv_type_size_t=yes
56641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56643 $as_echo "$as_me: failed program was:" >&5
56644 sed 's/^/| /' conftest.$ac_ext >&5
56649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56651 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
56652 $as_echo "$ac_cv_type_size_t" >&6; }
56653 if test "x$ac_cv_type_size_t" = x""yes; then
56657 cat >>confdefs.h <<_ACEOF
56658 #define size_t unsigned int
56663 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
56664 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
56665 if test "${ac_cv_type_uid_t+set}" = set; then
56666 $as_echo_n "(cached) " >&6
56668 cat >conftest.$ac_ext <<_ACEOF
56671 cat confdefs.h >>conftest.$ac_ext
56672 cat >>conftest.$ac_ext <<_ACEOF
56673 /* end confdefs.h. */
56674 #include <sys/types.h>
56677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56678 $EGREP "uid_t" >/dev/null 2>&1; then
56679 ac_cv_type_uid_t=yes
56681 ac_cv_type_uid_t=no
56686 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
56687 $as_echo "$ac_cv_type_uid_t" >&6; }
56688 if test $ac_cv_type_uid_t = no; then
56690 cat >>confdefs.h <<\_ACEOF
56695 cat >>confdefs.h <<\_ACEOF
56701 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
56702 $as_echo_n "checking return type of signal handlers... " >&6; }
56703 if test "${ac_cv_type_signal+set}" = set; then
56704 $as_echo_n "(cached) " >&6
56706 cat >conftest.$ac_ext <<_ACEOF
56709 cat confdefs.h >>conftest.$ac_ext
56710 cat >>conftest.$ac_ext <<_ACEOF
56711 /* end confdefs.h. */
56712 #include <sys/types.h>
56713 #include <signal.h>
56718 return *(signal (0, 0)) (0) == 1;
56723 rm -f conftest.$ac_objext
56724 if { (ac_try="$ac_compile"
56725 case "(($ac_try" in
56726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56727 *) ac_try_echo=$ac_try;;
56729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56730 $as_echo "$ac_try_echo") >&5
56731 (eval "$ac_compile") 2>conftest.er1
56733 grep -v '^ *+' conftest.er1 >conftest.err
56735 cat conftest.err >&5
56736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56737 (exit $ac_status); } && {
56738 test -z "$ac_c_werror_flag" ||
56739 test ! -s conftest.err
56740 } && test -s conftest.$ac_objext; then
56741 ac_cv_type_signal=int
56743 $as_echo "$as_me: failed program was:" >&5
56744 sed 's/^/| /' conftest.$ac_ext >&5
56746 ac_cv_type_signal=void
56749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56751 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
56752 $as_echo "$ac_cv_type_signal" >&6; }
56754 cat >>confdefs.h <<_ACEOF
56755 #define RETSIGTYPE $ac_cv_type_signal
56759 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
56760 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
56761 if test "${ac_cv_struct_tm+set}" = set; then
56762 $as_echo_n "(cached) " >&6
56764 cat >conftest.$ac_ext <<_ACEOF
56767 cat confdefs.h >>conftest.$ac_ext
56768 cat >>conftest.$ac_ext <<_ACEOF
56769 /* end confdefs.h. */
56770 #include <sys/types.h>
56777 int *p = &tm.tm_sec;
56783 rm -f conftest.$ac_objext
56784 if { (ac_try="$ac_compile"
56785 case "(($ac_try" in
56786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56787 *) ac_try_echo=$ac_try;;
56789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56790 $as_echo "$ac_try_echo") >&5
56791 (eval "$ac_compile") 2>conftest.er1
56793 grep -v '^ *+' conftest.er1 >conftest.err
56795 cat conftest.err >&5
56796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56797 (exit $ac_status); } && {
56798 test -z "$ac_c_werror_flag" ||
56799 test ! -s conftest.err
56800 } && test -s conftest.$ac_objext; then
56801 ac_cv_struct_tm=time.h
56803 $as_echo "$as_me: failed program was:" >&5
56804 sed 's/^/| /' conftest.$ac_ext >&5
56806 ac_cv_struct_tm=sys/time.h
56809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56811 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
56812 $as_echo "$ac_cv_struct_tm" >&6; }
56813 if test $ac_cv_struct_tm = sys/time.h; then
56815 cat >>confdefs.h <<\_ACEOF
56816 #define TM_IN_SYS_TIME 1
56822 ## lifted from config/gnulib/socklen.m4
56823 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
56824 $as_echo_n "checking for socklen_t equivalent... " >&6; }
56825 if test "${gl_cv_socklen_t_equiv+set}" = set; then
56826 $as_echo_n "(cached) " >&6
56828 # Systems have either "struct sockaddr *" or
56829 # "void *" as the second argument to getpeername
56830 gl_cv_socklen_t_equiv=
56831 for arg2 in "struct sockaddr" void; do
56832 for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
56833 cat >conftest.$ac_ext <<_ACEOF
56836 cat confdefs.h >>conftest.$ac_ext
56837 cat >>conftest.$ac_ext <<_ACEOF
56838 /* end confdefs.h. */
56839 #include <sys/types.h>
56840 #include <sys/socket.h>
56842 int getpeername (int, $arg2 *, $t *);
56847 getpeername (0, 0, &len);
56852 rm -f conftest.$ac_objext
56853 if { (ac_try="$ac_compile"
56854 case "(($ac_try" in
56855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56856 *) ac_try_echo=$ac_try;;
56858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56859 $as_echo "$ac_try_echo") >&5
56860 (eval "$ac_compile") 2>conftest.er1
56862 grep -v '^ *+' conftest.er1 >conftest.err
56864 cat conftest.err >&5
56865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56866 (exit $ac_status); } && {
56867 test -z "$ac_c_werror_flag" ||
56868 test ! -s conftest.err
56869 } && test -s conftest.$ac_objext; then
56870 gl_cv_socklen_t_equiv="$t"
56872 $as_echo "$as_me: failed program was:" >&5
56873 sed 's/^/| /' conftest.$ac_ext >&5
56878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56879 test "$gl_cv_socklen_t_equiv" != "" && break
56881 test "$gl_cv_socklen_t_equiv" != "" && break
56886 ## end lifting from config/gnulib/socklen.m4
56887 # fallback if the check fails
56888 if test "$gl_cv_socklen_t_equiv" = ""; then
56889 gl_cv_socklen_t_equiv=socklen_t
56891 { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
56892 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
56895 cat >>confdefs.h <<_ACEOF
56896 #define socklen_t_equiv $gl_cv_socklen_t_equiv
56902 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
56903 $as_echo_n "checking for sa_family_t... " >&6; }
56904 if test "${ac_cv_type_sa_family_t+set}" = set; then
56905 $as_echo_n "(cached) " >&6
56907 ac_cv_type_sa_family_t=no
56908 cat >conftest.$ac_ext <<_ACEOF
56911 cat confdefs.h >>conftest.$ac_ext
56912 cat >>conftest.$ac_ext <<_ACEOF
56913 /* end confdefs.h. */
56915 #ifdef HAVE_SYS_TYPES_H
56916 #include <sys/types.h>
56918 #ifdef STDC_HEADERS
56919 #include <stdlib.h>
56920 #include <stddef.h>
56922 #include <sys/socket.h>
56929 if (sizeof (sa_family_t))
56935 rm -f conftest.$ac_objext
56936 if { (ac_try="$ac_compile"
56937 case "(($ac_try" in
56938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56939 *) ac_try_echo=$ac_try;;
56941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56942 $as_echo "$ac_try_echo") >&5
56943 (eval "$ac_compile") 2>conftest.er1
56945 grep -v '^ *+' conftest.er1 >conftest.err
56947 cat conftest.err >&5
56948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56949 (exit $ac_status); } && {
56950 test -z "$ac_c_werror_flag" ||
56951 test ! -s conftest.err
56952 } && test -s conftest.$ac_objext; then
56953 cat >conftest.$ac_ext <<_ACEOF
56956 cat confdefs.h >>conftest.$ac_ext
56957 cat >>conftest.$ac_ext <<_ACEOF
56958 /* end confdefs.h. */
56960 #ifdef HAVE_SYS_TYPES_H
56961 #include <sys/types.h>
56963 #ifdef STDC_HEADERS
56964 #include <stdlib.h>
56965 #include <stddef.h>
56967 #include <sys/socket.h>
56974 if (sizeof ((sa_family_t)))
56980 rm -f conftest.$ac_objext
56981 if { (ac_try="$ac_compile"
56982 case "(($ac_try" in
56983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56984 *) ac_try_echo=$ac_try;;
56986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56987 $as_echo "$ac_try_echo") >&5
56988 (eval "$ac_compile") 2>conftest.er1
56990 grep -v '^ *+' conftest.er1 >conftest.err
56992 cat conftest.err >&5
56993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56994 (exit $ac_status); } && {
56995 test -z "$ac_c_werror_flag" ||
56996 test ! -s conftest.err
56997 } && test -s conftest.$ac_objext; then
57000 $as_echo "$as_me: failed program was:" >&5
57001 sed 's/^/| /' conftest.$ac_ext >&5
57003 ac_cv_type_sa_family_t=yes
57006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57008 $as_echo "$as_me: failed program was:" >&5
57009 sed 's/^/| /' conftest.$ac_ext >&5
57014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57016 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
57017 $as_echo "$ac_cv_type_sa_family_t" >&6; }
57018 if test "x$ac_cv_type_sa_family_t" = x""yes; then
57023 cat >>confdefs.h <<\_ACEOF
57024 #define sa_family_t unsigned short
57033 { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
57034 $as_echo_n "checking for in_port_t... " >&6; }
57035 if test "${ac_cv_type_in_port_t+set}" = set; then
57036 $as_echo_n "(cached) " >&6
57038 ac_cv_type_in_port_t=no
57039 cat >conftest.$ac_ext <<_ACEOF
57042 cat confdefs.h >>conftest.$ac_ext
57043 cat >>conftest.$ac_ext <<_ACEOF
57044 /* end confdefs.h. */
57046 #ifdef HAVE_SYS_TYPES_H
57047 #include <sys/types.h>
57049 #ifdef STDC_HEADERS
57050 #include <stdlib.h>
57051 #include <stddef.h>
57053 #include <netinet/in.h>
57060 if (sizeof (in_port_t))
57066 rm -f conftest.$ac_objext
57067 if { (ac_try="$ac_compile"
57068 case "(($ac_try" in
57069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57070 *) ac_try_echo=$ac_try;;
57072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57073 $as_echo "$ac_try_echo") >&5
57074 (eval "$ac_compile") 2>conftest.er1
57076 grep -v '^ *+' conftest.er1 >conftest.err
57078 cat conftest.err >&5
57079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57080 (exit $ac_status); } && {
57081 test -z "$ac_c_werror_flag" ||
57082 test ! -s conftest.err
57083 } && test -s conftest.$ac_objext; then
57084 cat >conftest.$ac_ext <<_ACEOF
57087 cat confdefs.h >>conftest.$ac_ext
57088 cat >>conftest.$ac_ext <<_ACEOF
57089 /* end confdefs.h. */
57091 #ifdef HAVE_SYS_TYPES_H
57092 #include <sys/types.h>
57094 #ifdef STDC_HEADERS
57095 #include <stdlib.h>
57096 #include <stddef.h>
57098 #include <netinet/in.h>
57105 if (sizeof ((in_port_t)))
57111 rm -f conftest.$ac_objext
57112 if { (ac_try="$ac_compile"
57113 case "(($ac_try" in
57114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57115 *) ac_try_echo=$ac_try;;
57117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57118 $as_echo "$ac_try_echo") >&5
57119 (eval "$ac_compile") 2>conftest.er1
57121 grep -v '^ *+' conftest.er1 >conftest.err
57123 cat conftest.err >&5
57124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57125 (exit $ac_status); } && {
57126 test -z "$ac_c_werror_flag" ||
57127 test ! -s conftest.err
57128 } && test -s conftest.$ac_objext; then
57131 $as_echo "$as_me: failed program was:" >&5
57132 sed 's/^/| /' conftest.$ac_ext >&5
57134 ac_cv_type_in_port_t=yes
57137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57139 $as_echo "$as_me: failed program was:" >&5
57140 sed 's/^/| /' conftest.$ac_ext >&5
57145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57147 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
57148 $as_echo "$ac_cv_type_in_port_t" >&6; }
57149 if test "x$ac_cv_type_in_port_t" = x""yes; then
57154 cat >>confdefs.h <<\_ACEOF
57155 #define in_port_t unsigned short
57166 for ac_header in sys/wait.h wait.h
57168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57170 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57171 $as_echo_n "checking for $ac_header... " >&6; }
57172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57173 $as_echo_n "(cached) " >&6
57175 ac_res=`eval 'as_val=${'$as_ac_Header'}
57176 $as_echo "$as_val"'`
57177 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57178 $as_echo "$ac_res" >&6; }
57180 # Is the header compilable?
57181 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
57182 $as_echo_n "checking $ac_header usability... " >&6; }
57183 cat >conftest.$ac_ext <<_ACEOF
57186 cat confdefs.h >>conftest.$ac_ext
57187 cat >>conftest.$ac_ext <<_ACEOF
57188 /* end confdefs.h. */
57189 $ac_includes_default
57190 #include <$ac_header>
57192 rm -f conftest.$ac_objext
57193 if { (ac_try="$ac_compile"
57194 case "(($ac_try" in
57195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57196 *) ac_try_echo=$ac_try;;
57198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57199 $as_echo "$ac_try_echo") >&5
57200 (eval "$ac_compile") 2>conftest.er1
57202 grep -v '^ *+' conftest.er1 >conftest.err
57204 cat conftest.err >&5
57205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57206 (exit $ac_status); } && {
57207 test -z "$ac_c_werror_flag" ||
57208 test ! -s conftest.err
57209 } && test -s conftest.$ac_objext; then
57210 ac_header_compiler=yes
57212 $as_echo "$as_me: failed program was:" >&5
57213 sed 's/^/| /' conftest.$ac_ext >&5
57215 ac_header_compiler=no
57218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57220 $as_echo "$ac_header_compiler" >&6; }
57222 # Is the header present?
57223 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
57224 $as_echo_n "checking $ac_header presence... " >&6; }
57225 cat >conftest.$ac_ext <<_ACEOF
57228 cat confdefs.h >>conftest.$ac_ext
57229 cat >>conftest.$ac_ext <<_ACEOF
57230 /* end confdefs.h. */
57231 #include <$ac_header>
57233 if { (ac_try="$ac_cpp conftest.$ac_ext"
57234 case "(($ac_try" in
57235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57236 *) ac_try_echo=$ac_try;;
57238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57239 $as_echo "$ac_try_echo") >&5
57240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57242 grep -v '^ *+' conftest.er1 >conftest.err
57244 cat conftest.err >&5
57245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57246 (exit $ac_status); } >/dev/null && {
57247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57248 test ! -s conftest.err
57250 ac_header_preproc=yes
57252 $as_echo "$as_me: failed program was:" >&5
57253 sed 's/^/| /' conftest.$ac_ext >&5
57255 ac_header_preproc=no
57258 rm -f conftest.err conftest.$ac_ext
57259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57260 $as_echo "$ac_header_preproc" >&6; }
57262 # So? What about this header?
57263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57266 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57268 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57269 ac_header_preproc=yes
57272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57273 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57275 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57277 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
57279 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
57280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57281 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57283 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57287 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57288 $as_echo_n "checking for $ac_header... " >&6; }
57289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57290 $as_echo_n "(cached) " >&6
57292 eval "$as_ac_Header=\$ac_header_preproc"
57294 ac_res=`eval 'as_val=${'$as_ac_Header'}
57295 $as_echo "$as_val"'`
57296 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57297 $as_echo "$ac_res" >&6; }
57300 as_val=`eval 'as_val=${'$as_ac_Header'}
57301 $as_echo "$as_val"'`
57302 if test "x$as_val" = x""yes; then
57303 cat >>confdefs.h <<_ACEOF
57304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57311 { $as_echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
57312 $as_echo_n "checking whether wait uses union wait... " >&6; }
57313 if test "${cf_cv_arg_union_wait+set}" = set; then
57314 $as_echo_n "(cached) " >&6
57317 cat >conftest.$ac_ext <<_ACEOF
57320 cat confdefs.h >>conftest.$ac_ext
57321 cat >>conftest.$ac_ext <<_ACEOF
57322 /* end confdefs.h. */
57324 #include <sys/types.h>
57326 #if HAVE_SYS_WAIT_H
57327 # include <sys/wait.h>
57335 pid_t wait(union wait *);
57342 union wait x; int i;
57343 wait(&x); i = WIFEXITED(x)
57349 rm -f conftest.$ac_objext
57350 if { (ac_try="$ac_compile"
57351 case "(($ac_try" in
57352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57353 *) ac_try_echo=$ac_try;;
57355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57356 $as_echo "$ac_try_echo") >&5
57357 (eval "$ac_compile") 2>conftest.er1
57359 grep -v '^ *+' conftest.er1 >conftest.err
57361 cat conftest.err >&5
57362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57363 (exit $ac_status); } && {
57364 test -z "$ac_c_werror_flag" ||
57365 test ! -s conftest.err
57366 } && test -s conftest.$ac_objext; then
57367 cf_cv_arg_union_wait=yes
57369 $as_echo "$as_me: failed program was:" >&5
57370 sed 's/^/| /' conftest.$ac_ext >&5
57372 cf_cv_arg_union_wait=no
57375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57377 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
57378 $as_echo "$cf_cv_arg_union_wait" >&6; }
57379 if test $cf_cv_arg_union_wait = yes; then
57381 cat >>confdefs.h <<\_ACEOF
57382 #define WAIT_USES_UNION 1
57391 for ac_header in sys/wait.h wait.h
57393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57395 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57396 $as_echo_n "checking for $ac_header... " >&6; }
57397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57398 $as_echo_n "(cached) " >&6
57400 ac_res=`eval 'as_val=${'$as_ac_Header'}
57401 $as_echo "$as_val"'`
57402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57403 $as_echo "$ac_res" >&6; }
57405 # Is the header compilable?
57406 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
57407 $as_echo_n "checking $ac_header usability... " >&6; }
57408 cat >conftest.$ac_ext <<_ACEOF
57411 cat confdefs.h >>conftest.$ac_ext
57412 cat >>conftest.$ac_ext <<_ACEOF
57413 /* end confdefs.h. */
57414 $ac_includes_default
57415 #include <$ac_header>
57417 rm -f conftest.$ac_objext
57418 if { (ac_try="$ac_compile"
57419 case "(($ac_try" in
57420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57421 *) ac_try_echo=$ac_try;;
57423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57424 $as_echo "$ac_try_echo") >&5
57425 (eval "$ac_compile") 2>conftest.er1
57427 grep -v '^ *+' conftest.er1 >conftest.err
57429 cat conftest.err >&5
57430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57431 (exit $ac_status); } && {
57432 test -z "$ac_c_werror_flag" ||
57433 test ! -s conftest.err
57434 } && test -s conftest.$ac_objext; then
57435 ac_header_compiler=yes
57437 $as_echo "$as_me: failed program was:" >&5
57438 sed 's/^/| /' conftest.$ac_ext >&5
57440 ac_header_compiler=no
57443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57444 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57445 $as_echo "$ac_header_compiler" >&6; }
57447 # Is the header present?
57448 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
57449 $as_echo_n "checking $ac_header presence... " >&6; }
57450 cat >conftest.$ac_ext <<_ACEOF
57453 cat confdefs.h >>conftest.$ac_ext
57454 cat >>conftest.$ac_ext <<_ACEOF
57455 /* end confdefs.h. */
57456 #include <$ac_header>
57458 if { (ac_try="$ac_cpp conftest.$ac_ext"
57459 case "(($ac_try" in
57460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57461 *) ac_try_echo=$ac_try;;
57463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57464 $as_echo "$ac_try_echo") >&5
57465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57467 grep -v '^ *+' conftest.er1 >conftest.err
57469 cat conftest.err >&5
57470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57471 (exit $ac_status); } >/dev/null && {
57472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57473 test ! -s conftest.err
57475 ac_header_preproc=yes
57477 $as_echo "$as_me: failed program was:" >&5
57478 sed 's/^/| /' conftest.$ac_ext >&5
57480 ac_header_preproc=no
57483 rm -f conftest.err conftest.$ac_ext
57484 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57485 $as_echo "$ac_header_preproc" >&6; }
57487 # So? What about this header?
57488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57491 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57493 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57494 ac_header_preproc=yes
57497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57498 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57500 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57502 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
57504 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
57505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57506 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57508 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57513 $as_echo_n "checking for $ac_header... " >&6; }
57514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57515 $as_echo_n "(cached) " >&6
57517 eval "$as_ac_Header=\$ac_header_preproc"
57519 ac_res=`eval 'as_val=${'$as_ac_Header'}
57520 $as_echo "$as_val"'`
57521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57522 $as_echo "$ac_res" >&6; }
57525 as_val=`eval 'as_val=${'$as_ac_Header'}
57526 $as_echo "$as_val"'`
57527 if test "x$as_val" = x""yes; then
57528 cat >>confdefs.h <<_ACEOF
57529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57536 { $as_echo "$as_me:$LINENO: checking whether wait uses int" >&5
57537 $as_echo_n "checking whether wait uses int... " >&6; }
57538 if test "${cf_cv_arg_int+set}" = set; then
57539 $as_echo_n "(cached) " >&6
57542 cat >conftest.$ac_ext <<_ACEOF
57545 cat confdefs.h >>conftest.$ac_ext
57546 cat >>conftest.$ac_ext <<_ACEOF
57547 /* end confdefs.h. */
57549 #include <sys/types.h>
57551 #if HAVE_SYS_WAIT_H
57552 # include <sys/wait.h>
57568 wait(&x); i = WIFEXITED(x)
57574 rm -f conftest.$ac_objext
57575 if { (ac_try="$ac_compile"
57576 case "(($ac_try" in
57577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57578 *) ac_try_echo=$ac_try;;
57580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57581 $as_echo "$ac_try_echo") >&5
57582 (eval "$ac_compile") 2>conftest.er1
57584 grep -v '^ *+' conftest.er1 >conftest.err
57586 cat conftest.err >&5
57587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57588 (exit $ac_status); } && {
57589 test -z "$ac_c_werror_flag" ||
57590 test ! -s conftest.err
57591 } && test -s conftest.$ac_objext; then
57594 $as_echo "$as_me: failed program was:" >&5
57595 sed 's/^/| /' conftest.$ac_ext >&5
57600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57602 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
57603 $as_echo "$cf_cv_arg_int" >&6; }
57604 if test $cf_cv_arg_int = yes; then
57606 cat >>confdefs.h <<\_ACEOF
57607 #define WAIT_USES_INT 1
57616 # cur_colr is on some HP's
57618 { $as_echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
57619 $as_echo_n "checking for main in -lcur_colr... " >&6; }
57620 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
57621 $as_echo_n "(cached) " >&6
57623 ac_check_lib_save_LIBS=$LIBS
57624 LIBS="-lcur_colr $LIBS"
57625 cat >conftest.$ac_ext <<_ACEOF
57628 cat confdefs.h >>conftest.$ac_ext
57629 cat >>conftest.$ac_ext <<_ACEOF
57630 /* end confdefs.h. */
57641 rm -f conftest.$ac_objext conftest$ac_exeext
57642 if { (ac_try="$ac_link"
57643 case "(($ac_try" in
57644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57645 *) ac_try_echo=$ac_try;;
57647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57648 $as_echo "$ac_try_echo") >&5
57649 (eval "$ac_link") 2>conftest.er1
57651 grep -v '^ *+' conftest.er1 >conftest.err
57653 cat conftest.err >&5
57654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57655 (exit $ac_status); } && {
57656 test -z "$ac_c_werror_flag" ||
57657 test ! -s conftest.err
57658 } && test -s conftest$ac_exeext && {
57659 test "$cross_compiling" = yes ||
57660 $as_test_x conftest$ac_exeext
57662 ac_cv_lib_cur_colr_main=yes
57664 $as_echo "$as_me: failed program was:" >&5
57665 sed 's/^/| /' conftest.$ac_ext >&5
57667 ac_cv_lib_cur_colr_main=no
57670 rm -rf conftest.dSYM
57671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57672 conftest$ac_exeext conftest.$ac_ext
57673 LIBS=$ac_check_lib_save_LIBS
57675 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
57676 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
57677 if test "x$ac_cv_lib_cur_colr_main" = x""yes; then
57678 cat >>confdefs.h <<_ACEOF
57679 #define HAVE_LIBCUR_COLR 1
57682 LIBS="-lcur_colr $LIBS"
57687 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
57688 $as_echo_n "checking for main in -lintl... " >&6; }
57689 if test "${ac_cv_lib_intl_main+set}" = set; then
57690 $as_echo_n "(cached) " >&6
57692 ac_check_lib_save_LIBS=$LIBS
57693 LIBS="-lintl $LIBS"
57694 cat >conftest.$ac_ext <<_ACEOF
57697 cat confdefs.h >>conftest.$ac_ext
57698 cat >>conftest.$ac_ext <<_ACEOF
57699 /* end confdefs.h. */
57710 rm -f conftest.$ac_objext conftest$ac_exeext
57711 if { (ac_try="$ac_link"
57712 case "(($ac_try" in
57713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57714 *) ac_try_echo=$ac_try;;
57716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57717 $as_echo "$ac_try_echo") >&5
57718 (eval "$ac_link") 2>conftest.er1
57720 grep -v '^ *+' conftest.er1 >conftest.err
57722 cat conftest.err >&5
57723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57724 (exit $ac_status); } && {
57725 test -z "$ac_c_werror_flag" ||
57726 test ! -s conftest.err
57727 } && test -s conftest$ac_exeext && {
57728 test "$cross_compiling" = yes ||
57729 $as_test_x conftest$ac_exeext
57731 ac_cv_lib_intl_main=yes
57733 $as_echo "$as_me: failed program was:" >&5
57734 sed 's/^/| /' conftest.$ac_ext >&5
57736 ac_cv_lib_intl_main=no
57739 rm -rf conftest.dSYM
57740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57741 conftest$ac_exeext conftest.$ac_ext
57742 LIBS=$ac_check_lib_save_LIBS
57744 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
57745 $as_echo "$ac_cv_lib_intl_main" >&6; }
57746 if test "x$ac_cv_lib_intl_main" = x""yes; then
57747 cat >>confdefs.h <<_ACEOF
57748 #define HAVE_LIBINTL 1
57751 LIBS="-lintl $LIBS"
57756 # Make sure we don't use -lnsl and -lsun on Irix systems.
57760 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
57761 $as_echo_n "checking for main in -lsocket... " >&6; }
57762 if test "${ac_cv_lib_socket_main+set}" = set; then
57763 $as_echo_n "(cached) " >&6
57765 ac_check_lib_save_LIBS=$LIBS
57766 LIBS="-lsocket $LIBS"
57767 cat >conftest.$ac_ext <<_ACEOF
57770 cat confdefs.h >>conftest.$ac_ext
57771 cat >>conftest.$ac_ext <<_ACEOF
57772 /* end confdefs.h. */
57783 rm -f conftest.$ac_objext conftest$ac_exeext
57784 if { (ac_try="$ac_link"
57785 case "(($ac_try" in
57786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57787 *) ac_try_echo=$ac_try;;
57789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57790 $as_echo "$ac_try_echo") >&5
57791 (eval "$ac_link") 2>conftest.er1
57793 grep -v '^ *+' conftest.er1 >conftest.err
57795 cat conftest.err >&5
57796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57797 (exit $ac_status); } && {
57798 test -z "$ac_c_werror_flag" ||
57799 test ! -s conftest.err
57800 } && test -s conftest$ac_exeext && {
57801 test "$cross_compiling" = yes ||
57802 $as_test_x conftest$ac_exeext
57804 ac_cv_lib_socket_main=yes
57806 $as_echo "$as_me: failed program was:" >&5
57807 sed 's/^/| /' conftest.$ac_ext >&5
57809 ac_cv_lib_socket_main=no
57812 rm -rf conftest.dSYM
57813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57814 conftest$ac_exeext conftest.$ac_ext
57815 LIBS=$ac_check_lib_save_LIBS
57817 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
57818 $as_echo "$ac_cv_lib_socket_main" >&6; }
57819 if test "x$ac_cv_lib_socket_main" = x""yes; then
57820 cat >>confdefs.h <<_ACEOF
57821 #define HAVE_LIBSOCKET 1
57824 LIBS="-lsocket $LIBS"
57831 { $as_echo "$as_me:$LINENO: checking for main in -lresolv" >&5
57832 $as_echo_n "checking for main in -lresolv... " >&6; }
57833 if test "${ac_cv_lib_resolv_main+set}" = set; then
57834 $as_echo_n "(cached) " >&6
57836 ac_check_lib_save_LIBS=$LIBS
57837 LIBS="-lresolv $LIBS"
57838 cat >conftest.$ac_ext <<_ACEOF
57841 cat confdefs.h >>conftest.$ac_ext
57842 cat >>conftest.$ac_ext <<_ACEOF
57843 /* end confdefs.h. */
57854 rm -f conftest.$ac_objext conftest$ac_exeext
57855 if { (ac_try="$ac_link"
57856 case "(($ac_try" in
57857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57858 *) ac_try_echo=$ac_try;;
57860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57861 $as_echo "$ac_try_echo") >&5
57862 (eval "$ac_link") 2>conftest.er1
57864 grep -v '^ *+' conftest.er1 >conftest.err
57866 cat conftest.err >&5
57867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57868 (exit $ac_status); } && {
57869 test -z "$ac_c_werror_flag" ||
57870 test ! -s conftest.err
57871 } && test -s conftest$ac_exeext && {
57872 test "$cross_compiling" = yes ||
57873 $as_test_x conftest$ac_exeext
57875 ac_cv_lib_resolv_main=yes
57877 $as_echo "$as_me: failed program was:" >&5
57878 sed 's/^/| /' conftest.$ac_ext >&5
57880 ac_cv_lib_resolv_main=no
57883 rm -rf conftest.dSYM
57884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57885 conftest$ac_exeext conftest.$ac_ext
57886 LIBS=$ac_check_lib_save_LIBS
57888 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
57889 $as_echo "$ac_cv_lib_resolv_main" >&6; }
57890 if test "x$ac_cv_lib_resolv_main" = x""yes; then
57891 cat >>confdefs.h <<_ACEOF
57892 #define HAVE_LIBRESOLV 1
57895 LIBS="-lresolv $LIBS"
57900 { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
57901 $as_echo_n "checking for main in -lnsl... " >&6; }
57902 if test "${ac_cv_lib_nsl_main+set}" = set; then
57903 $as_echo_n "(cached) " >&6
57905 ac_check_lib_save_LIBS=$LIBS
57907 cat >conftest.$ac_ext <<_ACEOF
57910 cat confdefs.h >>conftest.$ac_ext
57911 cat >>conftest.$ac_ext <<_ACEOF
57912 /* end confdefs.h. */
57923 rm -f conftest.$ac_objext conftest$ac_exeext
57924 if { (ac_try="$ac_link"
57925 case "(($ac_try" in
57926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57927 *) ac_try_echo=$ac_try;;
57929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57930 $as_echo "$ac_try_echo") >&5
57931 (eval "$ac_link") 2>conftest.er1
57933 grep -v '^ *+' conftest.er1 >conftest.err
57935 cat conftest.err >&5
57936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57937 (exit $ac_status); } && {
57938 test -z "$ac_c_werror_flag" ||
57939 test ! -s conftest.err
57940 } && test -s conftest$ac_exeext && {
57941 test "$cross_compiling" = yes ||
57942 $as_test_x conftest$ac_exeext
57944 ac_cv_lib_nsl_main=yes
57946 $as_echo "$as_me: failed program was:" >&5
57947 sed 's/^/| /' conftest.$ac_ext >&5
57949 ac_cv_lib_nsl_main=no
57952 rm -rf conftest.dSYM
57953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57954 conftest$ac_exeext conftest.$ac_ext
57955 LIBS=$ac_check_lib_save_LIBS
57957 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
57958 $as_echo "$ac_cv_lib_nsl_main" >&6; }
57959 if test "x$ac_cv_lib_nsl_main" = x""yes; then
57960 cat >>confdefs.h <<_ACEOF
57961 #define HAVE_LIBNSL 1
57969 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
57970 $as_echo_n "checking for main in -lsocket... " >&6; }
57971 if test "${ac_cv_lib_socket_main+set}" = set; then
57972 $as_echo_n "(cached) " >&6
57974 ac_check_lib_save_LIBS=$LIBS
57975 LIBS="-lsocket $LIBS"
57976 cat >conftest.$ac_ext <<_ACEOF
57979 cat confdefs.h >>conftest.$ac_ext
57980 cat >>conftest.$ac_ext <<_ACEOF
57981 /* end confdefs.h. */
57992 rm -f conftest.$ac_objext conftest$ac_exeext
57993 if { (ac_try="$ac_link"
57994 case "(($ac_try" in
57995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57996 *) ac_try_echo=$ac_try;;
57998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57999 $as_echo "$ac_try_echo") >&5
58000 (eval "$ac_link") 2>conftest.er1
58002 grep -v '^ *+' conftest.er1 >conftest.err
58004 cat conftest.err >&5
58005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58006 (exit $ac_status); } && {
58007 test -z "$ac_c_werror_flag" ||
58008 test ! -s conftest.err
58009 } && test -s conftest$ac_exeext && {
58010 test "$cross_compiling" = yes ||
58011 $as_test_x conftest$ac_exeext
58013 ac_cv_lib_socket_main=yes
58015 $as_echo "$as_me: failed program was:" >&5
58016 sed 's/^/| /' conftest.$ac_ext >&5
58018 ac_cv_lib_socket_main=no
58021 rm -rf conftest.dSYM
58022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58023 conftest$ac_exeext conftest.$ac_ext
58024 LIBS=$ac_check_lib_save_LIBS
58026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
58027 $as_echo "$ac_cv_lib_socket_main" >&6; }
58028 if test "x$ac_cv_lib_socket_main" = x""yes; then
58029 cat >>confdefs.h <<_ACEOF
58030 #define HAVE_LIBSOCKET 1
58033 LIBS="-lsocket $LIBS"
58038 { $as_echo "$as_me:$LINENO: checking for main in -lsun" >&5
58039 $as_echo_n "checking for main in -lsun... " >&6; }
58040 if test "${ac_cv_lib_sun_main+set}" = set; then
58041 $as_echo_n "(cached) " >&6
58043 ac_check_lib_save_LIBS=$LIBS
58045 cat >conftest.$ac_ext <<_ACEOF
58048 cat confdefs.h >>conftest.$ac_ext
58049 cat >>conftest.$ac_ext <<_ACEOF
58050 /* end confdefs.h. */
58061 rm -f conftest.$ac_objext conftest$ac_exeext
58062 if { (ac_try="$ac_link"
58063 case "(($ac_try" in
58064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58065 *) ac_try_echo=$ac_try;;
58067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58068 $as_echo "$ac_try_echo") >&5
58069 (eval "$ac_link") 2>conftest.er1
58071 grep -v '^ *+' conftest.er1 >conftest.err
58073 cat conftest.err >&5
58074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58075 (exit $ac_status); } && {
58076 test -z "$ac_c_werror_flag" ||
58077 test ! -s conftest.err
58078 } && test -s conftest$ac_exeext && {
58079 test "$cross_compiling" = yes ||
58080 $as_test_x conftest$ac_exeext
58082 ac_cv_lib_sun_main=yes
58084 $as_echo "$as_me: failed program was:" >&5
58085 sed 's/^/| /' conftest.$ac_ext >&5
58087 ac_cv_lib_sun_main=no
58090 rm -rf conftest.dSYM
58091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58092 conftest$ac_exeext conftest.$ac_ext
58093 LIBS=$ac_check_lib_save_LIBS
58095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
58096 $as_echo "$ac_cv_lib_sun_main" >&6; }
58097 if test "x$ac_cv_lib_sun_main" = x""yes; then
58098 cat >>confdefs.h <<_ACEOF
58099 #define HAVE_LIBSUN 1
58116 # if any of the precious variables are set, disable the pkg-config run
58118 test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
58119 test x"$GLIB_LIBS" = x"" || explicit_glib=yes
58120 test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
58121 test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
58122 test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
58124 if test x"$explicit_glib" = x"no"; then
58125 # search for pkg-config, which the glib configuration uses, adding a few
58126 # system-specific search paths.
58127 # Extract the first word of "pkg-config", so it can be a program name with args.
58128 set dummy pkg-config; ac_word=$2
58129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
58130 $as_echo_n "checking for $ac_word... " >&6; }
58131 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
58132 $as_echo_n "(cached) " >&6
58134 case $PKG_CONFIG in
58136 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
58139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58140 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
58141 for as_dir in $as_dummy
58144 test -z "$as_dir" && as_dir=.
58145 for ac_exec_ext in '' $ac_executable_extensions; do
58146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58147 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
58148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58158 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
58159 if test -n "$PKG_CONFIG"; then
58160 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
58161 $as_echo "$PKG_CONFIG" >&6; }
58163 { $as_echo "$as_me:$LINENO: result: no" >&5
58164 $as_echo "no" >&6; }
58170 sparc-sun-solaris2.8) # Solaris 8
58171 # give the linker a runtime search path; pkg-config doesn't supply this.
58172 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
58173 # and make. Adding this support here makes straight './configure; make'
58174 # "just work" on Solaris 8
58175 if test -n "$PKG_CONFIG"; then
58176 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
58177 LDFLAGS="$LDFLAGS $glib_R_flag"
58182 # Check whether --enable-glibtest was given.
58183 if test "${enable_glibtest+set}" = set; then
58184 enableval=$enable_glibtest;
58186 enable_glibtest=yes
58190 pkg_config_args=glib-2.0
58191 for module in . gmodule gobject gthread
58195 pkg_config_args="$pkg_config_args gmodule-2.0"
58198 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
58201 pkg_config_args="$pkg_config_args gobject-2.0"
58204 pkg_config_args="$pkg_config_args gthread-2.0"
58207 pkg_config_args="$pkg_config_args $module-2.0"
58214 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
58215 if test -n "$ac_tool_prefix"; then
58216 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
58217 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
58218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
58219 $as_echo_n "checking for $ac_word... " >&6; }
58220 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
58221 $as_echo_n "(cached) " >&6
58223 case $PKG_CONFIG in
58225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
58228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58229 for as_dir in $PATH
58232 test -z "$as_dir" && as_dir=.
58233 for ac_exec_ext in '' $ac_executable_extensions; do
58234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58235 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
58236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58246 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
58247 if test -n "$PKG_CONFIG"; then
58248 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
58249 $as_echo "$PKG_CONFIG" >&6; }
58251 { $as_echo "$as_me:$LINENO: result: no" >&5
58252 $as_echo "no" >&6; }
58257 if test -z "$ac_cv_path_PKG_CONFIG"; then
58258 ac_pt_PKG_CONFIG=$PKG_CONFIG
58259 # Extract the first word of "pkg-config", so it can be a program name with args.
58260 set dummy pkg-config; ac_word=$2
58261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
58262 $as_echo_n "checking for $ac_word... " >&6; }
58263 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
58264 $as_echo_n "(cached) " >&6
58266 case $ac_pt_PKG_CONFIG in
58268 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
58271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58272 for as_dir in $PATH
58275 test -z "$as_dir" && as_dir=.
58276 for ac_exec_ext in '' $ac_executable_extensions; do
58277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58278 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
58279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58289 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
58290 if test -n "$ac_pt_PKG_CONFIG"; then
58291 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
58292 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
58294 { $as_echo "$as_me:$LINENO: result: no" >&5
58295 $as_echo "no" >&6; }
58298 if test "x$ac_pt_PKG_CONFIG" = x; then
58301 case $cross_compiling:$ac_tool_warned in
58303 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
58304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
58305 ac_tool_warned=yes ;;
58307 PKG_CONFIG=$ac_pt_PKG_CONFIG
58310 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
58314 if test -n "$PKG_CONFIG"; then
58315 _pkg_min_version=0.7
58316 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
58317 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
58318 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
58319 { $as_echo "$as_me:$LINENO: result: yes" >&5
58320 $as_echo "yes" >&6; }
58322 { $as_echo "$as_me:$LINENO: result: no" >&5
58323 $as_echo "no" >&6; }
58331 if test "x$PKG_CONFIG" = x ; then
58336 min_glib_version=2.2.0
58337 { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
58338 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
58340 if test x$PKG_CONFIG != xno ; then
58341 ## don't try to run the test against uninstalled libtool libs
58342 if $PKG_CONFIG --uninstalled $pkg_config_args; then
58343 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
58347 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
58354 if test x"$no_glib" = x ; then
58355 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
58356 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
58357 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
58359 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
58360 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
58361 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
58362 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
58363 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
58364 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
58365 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
58366 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
58367 if test "x$enable_glibtest" = "xyes" ; then
58368 ac_save_CFLAGS="$CFLAGS"
58369 ac_save_LIBS="$LIBS"
58370 CFLAGS="$CFLAGS $GLIB_CFLAGS"
58371 LIBS="$GLIB_LIBS $LIBS"
58372 rm -f conf.glibtest
58373 if test "$cross_compiling" = yes; then
58374 echo $ac_n "cross compiling; assumed OK... $ac_c"
58376 cat >conftest.$ac_ext <<_ACEOF
58379 cat confdefs.h >>conftest.$ac_ext
58380 cat >>conftest.$ac_ext <<_ACEOF
58381 /* end confdefs.h. */
58385 #include <stdlib.h>
58390 int major, minor, micro;
58393 system ("touch conf.glibtest");
58395 /* HP/UX 9 (%@#!) writes to sscanf strings */
58396 tmp_version = g_strdup("$min_glib_version");
58397 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
58398 printf("%s, bad version string\n", "$min_glib_version");
58402 if ((glib_major_version != $glib_config_major_version) ||
58403 (glib_minor_version != $glib_config_minor_version) ||
58404 (glib_micro_version != $glib_config_micro_version))
58406 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
58407 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
58408 glib_major_version, glib_minor_version, glib_micro_version);
58409 printf ("*** was found! If pkg-config was correct, then it is best\n");
58410 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
58411 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
58412 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
58413 printf("*** required on your system.\n");
58414 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
58415 printf("*** to point to the correct configuration files\n");
58417 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
58418 (glib_minor_version != GLIB_MINOR_VERSION) ||
58419 (glib_micro_version != GLIB_MICRO_VERSION))
58421 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
58422 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
58423 printf("*** library (version %d.%d.%d)\n",
58424 glib_major_version, glib_minor_version, glib_micro_version);
58428 if ((glib_major_version > major) ||
58429 ((glib_major_version == major) && (glib_minor_version > minor)) ||
58430 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
58436 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
58437 glib_major_version, glib_minor_version, glib_micro_version);
58438 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
58439 major, minor, micro);
58440 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
58442 printf("*** If you have already installed a sufficiently new version, this error\n");
58443 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
58444 printf("*** being found. The easiest way to fix this is to remove the old version\n");
58445 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
58446 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
58447 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
58448 printf("*** so that the correct libraries are found at run-time))\n");
58455 rm -f conftest$ac_exeext
58456 if { (ac_try="$ac_link"
58457 case "(($ac_try" in
58458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58459 *) ac_try_echo=$ac_try;;
58461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58462 $as_echo "$ac_try_echo") >&5
58463 (eval "$ac_link") 2>&5
58465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58467 { (case "(($ac_try" in
58468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58469 *) ac_try_echo=$ac_try;;
58471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58472 $as_echo "$ac_try_echo") >&5
58473 (eval "$ac_try") 2>&5
58475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58476 (exit $ac_status); }; }; then
58479 $as_echo "$as_me: program exited with status $ac_status" >&5
58480 $as_echo "$as_me: failed program was:" >&5
58481 sed 's/^/| /' conftest.$ac_ext >&5
58483 ( exit $ac_status )
58486 rm -rf conftest.dSYM
58487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58491 CFLAGS="$ac_save_CFLAGS"
58492 LIBS="$ac_save_LIBS"
58495 if test "x$no_glib" = x ; then
58496 { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
58497 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
58500 { $as_echo "$as_me:$LINENO: result: no" >&5
58501 $as_echo "no" >&6; }
58502 if test "$PKG_CONFIG" = "no" ; then
58503 echo "*** A new enough version of pkg-config was not found."
58504 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
58506 if test -f conf.glibtest ; then
58509 echo "*** Could not run GLIB test program, checking why..."
58510 ac_save_CFLAGS="$CFLAGS"
58511 ac_save_LIBS="$LIBS"
58512 CFLAGS="$CFLAGS $GLIB_CFLAGS"
58513 LIBS="$LIBS $GLIB_LIBS"
58514 cat >conftest.$ac_ext <<_ACEOF
58517 cat confdefs.h >>conftest.$ac_ext
58518 cat >>conftest.$ac_ext <<_ACEOF
58519 /* end confdefs.h. */
58527 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
58532 rm -f conftest.$ac_objext conftest$ac_exeext
58533 if { (ac_try="$ac_link"
58534 case "(($ac_try" in
58535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58536 *) ac_try_echo=$ac_try;;
58538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58539 $as_echo "$ac_try_echo") >&5
58540 (eval "$ac_link") 2>conftest.er1
58542 grep -v '^ *+' conftest.er1 >conftest.err
58544 cat conftest.err >&5
58545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58546 (exit $ac_status); } && {
58547 test -z "$ac_c_werror_flag" ||
58548 test ! -s conftest.err
58549 } && test -s conftest$ac_exeext && {
58550 test "$cross_compiling" = yes ||
58551 $as_test_x conftest$ac_exeext
58553 echo "*** The test program compiled, but did not run. This usually means"
58554 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
58555 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
58556 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
58557 echo "*** to the installed location Also, make sure you have run ldconfig if that"
58558 echo "*** is required on your system"
58560 echo "*** If you have an old version installed, it is best to remove it, although"
58561 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
58563 $as_echo "$as_me: failed program was:" >&5
58564 sed 's/^/| /' conftest.$ac_ext >&5
58566 echo "*** The test program failed to compile or link. See the file config.log for the"
58567 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
58570 rm -rf conftest.dSYM
58571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58572 conftest$ac_exeext conftest.$ac_ext
58573 CFLAGS="$ac_save_CFLAGS"
58574 LIBS="$ac_save_LIBS"
58583 { { $as_echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
58584 $as_echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
58585 { (exit 1); exit 1; }; }
58593 rm -f conf.glibtest
58596 { { $as_echo "$as_me:$LINENO: error: explicit glib" >&5
58597 $as_echo "$as_me: error: explicit glib" >&2;}
58598 { (exit 1); exit 1; }; }
58601 # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
58602 CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
58604 LIBS="$GLIB_LIBS $LIBS"
58609 # Check whether --with-readline was given.
58610 if test "${with_readline+set}" = set; then
58611 withval=$with_readline;
58613 y | ye | yes | n | no) : ;;
58614 *) { { $as_echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
58615 $as_echo "$as_me: error: *** --with-readline does not take a value" >&2;}
58616 { (exit 1); exit 1; }; }
58618 want_readline="$withval"
58622 want_readline="maybe" # meaning "only if we can find it"
58627 # unless the user said "no", look for readline.
58628 if test x"$want_readline" != x"no"; then
58629 # we need a tgetent() somewhere..
58631 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
58632 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
58633 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
58634 $as_echo_n "(cached) " >&6
58636 ac_check_lib_save_LIBS=$LIBS
58637 LIBS="-ltermcap $LIBS"
58638 cat >conftest.$ac_ext <<_ACEOF
58641 cat confdefs.h >>conftest.$ac_ext
58642 cat >>conftest.$ac_ext <<_ACEOF
58643 /* end confdefs.h. */
58645 /* Override any GCC internal prototype to avoid an error.
58646 Use char because int might match the return type of a GCC
58647 builtin and then its argument prototype would still apply. */
58660 rm -f conftest.$ac_objext conftest$ac_exeext
58661 if { (ac_try="$ac_link"
58662 case "(($ac_try" in
58663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58664 *) ac_try_echo=$ac_try;;
58666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58667 $as_echo "$ac_try_echo") >&5
58668 (eval "$ac_link") 2>conftest.er1
58670 grep -v '^ *+' conftest.er1 >conftest.err
58672 cat conftest.err >&5
58673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58674 (exit $ac_status); } && {
58675 test -z "$ac_c_werror_flag" ||
58676 test ! -s conftest.err
58677 } && test -s conftest$ac_exeext && {
58678 test "$cross_compiling" = yes ||
58679 $as_test_x conftest$ac_exeext
58681 ac_cv_lib_termcap_tgetent=yes
58683 $as_echo "$as_me: failed program was:" >&5
58684 sed 's/^/| /' conftest.$ac_ext >&5
58686 ac_cv_lib_termcap_tgetent=no
58689 rm -rf conftest.dSYM
58690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58691 conftest$ac_exeext conftest.$ac_ext
58692 LIBS=$ac_check_lib_save_LIBS
58694 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
58695 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
58696 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
58698 READLINE_LIBS="-ltermcap"
58703 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
58704 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
58705 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
58706 $as_echo_n "(cached) " >&6
58708 ac_check_lib_save_LIBS=$LIBS
58709 LIBS="-lcurses $LIBS"
58710 cat >conftest.$ac_ext <<_ACEOF
58713 cat confdefs.h >>conftest.$ac_ext
58714 cat >>conftest.$ac_ext <<_ACEOF
58715 /* end confdefs.h. */
58717 /* Override any GCC internal prototype to avoid an error.
58718 Use char because int might match the return type of a GCC
58719 builtin and then its argument prototype would still apply. */
58732 rm -f conftest.$ac_objext conftest$ac_exeext
58733 if { (ac_try="$ac_link"
58734 case "(($ac_try" in
58735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58736 *) ac_try_echo=$ac_try;;
58738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58739 $as_echo "$ac_try_echo") >&5
58740 (eval "$ac_link") 2>conftest.er1
58742 grep -v '^ *+' conftest.er1 >conftest.err
58744 cat conftest.err >&5
58745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58746 (exit $ac_status); } && {
58747 test -z "$ac_c_werror_flag" ||
58748 test ! -s conftest.err
58749 } && test -s conftest$ac_exeext && {
58750 test "$cross_compiling" = yes ||
58751 $as_test_x conftest$ac_exeext
58753 ac_cv_lib_curses_tgetent=yes
58755 $as_echo "$as_me: failed program was:" >&5
58756 sed 's/^/| /' conftest.$ac_ext >&5
58758 ac_cv_lib_curses_tgetent=no
58761 rm -rf conftest.dSYM
58762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58763 conftest$ac_exeext conftest.$ac_ext
58764 LIBS=$ac_check_lib_save_LIBS
58766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
58767 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
58768 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
58770 READLINE_LIBS="-lcurses"
58775 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
58776 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
58777 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
58778 $as_echo_n "(cached) " >&6
58780 ac_check_lib_save_LIBS=$LIBS
58781 LIBS="-lncurses $LIBS"
58782 cat >conftest.$ac_ext <<_ACEOF
58785 cat confdefs.h >>conftest.$ac_ext
58786 cat >>conftest.$ac_ext <<_ACEOF
58787 /* end confdefs.h. */
58789 /* Override any GCC internal prototype to avoid an error.
58790 Use char because int might match the return type of a GCC
58791 builtin and then its argument prototype would still apply. */
58804 rm -f conftest.$ac_objext conftest$ac_exeext
58805 if { (ac_try="$ac_link"
58806 case "(($ac_try" in
58807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58808 *) ac_try_echo=$ac_try;;
58810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58811 $as_echo "$ac_try_echo") >&5
58812 (eval "$ac_link") 2>conftest.er1
58814 grep -v '^ *+' conftest.er1 >conftest.err
58816 cat conftest.err >&5
58817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58818 (exit $ac_status); } && {
58819 test -z "$ac_c_werror_flag" ||
58820 test ! -s conftest.err
58821 } && test -s conftest$ac_exeext && {
58822 test "$cross_compiling" = yes ||
58823 $as_test_x conftest$ac_exeext
58825 ac_cv_lib_ncurses_tgetent=yes
58827 $as_echo "$as_me: failed program was:" >&5
58828 sed 's/^/| /' conftest.$ac_ext >&5
58830 ac_cv_lib_ncurses_tgetent=no
58833 rm -rf conftest.dSYM
58834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58835 conftest$ac_exeext conftest.$ac_ext
58836 LIBS=$ac_check_lib_save_LIBS
58838 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
58839 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
58840 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
58842 READLINE_LIBS="-lncurses"
58860 for ac_header in history.h readline.h readline/history.h readline/readline.h
58862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
58863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58864 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58865 $as_echo_n "checking for $ac_header... " >&6; }
58866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58867 $as_echo_n "(cached) " >&6
58869 ac_res=`eval 'as_val=${'$as_ac_Header'}
58870 $as_echo "$as_val"'`
58871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58872 $as_echo "$ac_res" >&6; }
58874 # Is the header compilable?
58875 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
58876 $as_echo_n "checking $ac_header usability... " >&6; }
58877 cat >conftest.$ac_ext <<_ACEOF
58880 cat confdefs.h >>conftest.$ac_ext
58881 cat >>conftest.$ac_ext <<_ACEOF
58882 /* end confdefs.h. */
58883 $ac_includes_default
58884 #include <$ac_header>
58886 rm -f conftest.$ac_objext
58887 if { (ac_try="$ac_compile"
58888 case "(($ac_try" in
58889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58890 *) ac_try_echo=$ac_try;;
58892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58893 $as_echo "$ac_try_echo") >&5
58894 (eval "$ac_compile") 2>conftest.er1
58896 grep -v '^ *+' conftest.er1 >conftest.err
58898 cat conftest.err >&5
58899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58900 (exit $ac_status); } && {
58901 test -z "$ac_c_werror_flag" ||
58902 test ! -s conftest.err
58903 } && test -s conftest.$ac_objext; then
58904 ac_header_compiler=yes
58906 $as_echo "$as_me: failed program was:" >&5
58907 sed 's/^/| /' conftest.$ac_ext >&5
58909 ac_header_compiler=no
58912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58914 $as_echo "$ac_header_compiler" >&6; }
58916 # Is the header present?
58917 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
58918 $as_echo_n "checking $ac_header presence... " >&6; }
58919 cat >conftest.$ac_ext <<_ACEOF
58922 cat confdefs.h >>conftest.$ac_ext
58923 cat >>conftest.$ac_ext <<_ACEOF
58924 /* end confdefs.h. */
58925 #include <$ac_header>
58927 if { (ac_try="$ac_cpp conftest.$ac_ext"
58928 case "(($ac_try" in
58929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58930 *) ac_try_echo=$ac_try;;
58932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58933 $as_echo "$ac_try_echo") >&5
58934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58936 grep -v '^ *+' conftest.er1 >conftest.err
58938 cat conftest.err >&5
58939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58940 (exit $ac_status); } >/dev/null && {
58941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58942 test ! -s conftest.err
58944 ac_header_preproc=yes
58946 $as_echo "$as_me: failed program was:" >&5
58947 sed 's/^/| /' conftest.$ac_ext >&5
58949 ac_header_preproc=no
58952 rm -f conftest.err conftest.$ac_ext
58953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58954 $as_echo "$ac_header_preproc" >&6; }
58956 # So? What about this header?
58957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58960 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58962 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58963 ac_header_preproc=yes
58966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58967 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58969 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58971 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58973 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58977 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58982 $as_echo_n "checking for $ac_header... " >&6; }
58983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58984 $as_echo_n "(cached) " >&6
58986 eval "$as_ac_Header=\$ac_header_preproc"
58988 ac_res=`eval 'as_val=${'$as_ac_Header'}
58989 $as_echo "$as_val"'`
58990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58991 $as_echo "$ac_res" >&6; }
58994 as_val=`eval 'as_val=${'$as_ac_Header'}
58995 $as_echo "$as_val"'`
58996 if test "x$as_val" = x""yes; then
58997 cat >>confdefs.h <<_ACEOF
58998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
59001 # found at least one of the headers, so we can proceed.
59012 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
59013 $as_echo_n "checking for readline in -lreadline... " >&6; }
59014 if test "${ac_cv_lib_readline_readline+set}" = set; then
59015 $as_echo_n "(cached) " >&6
59017 ac_check_lib_save_LIBS=$LIBS
59018 LIBS="-lreadline $READLINE_LIBS $LIBS"
59019 cat >conftest.$ac_ext <<_ACEOF
59022 cat confdefs.h >>conftest.$ac_ext
59023 cat >>conftest.$ac_ext <<_ACEOF
59024 /* end confdefs.h. */
59026 /* Override any GCC internal prototype to avoid an error.
59027 Use char because int might match the return type of a GCC
59028 builtin and then its argument prototype would still apply. */
59036 return readline ();
59041 rm -f conftest.$ac_objext conftest$ac_exeext
59042 if { (ac_try="$ac_link"
59043 case "(($ac_try" in
59044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59045 *) ac_try_echo=$ac_try;;
59047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59048 $as_echo "$ac_try_echo") >&5
59049 (eval "$ac_link") 2>conftest.er1
59051 grep -v '^ *+' conftest.er1 >conftest.err
59053 cat conftest.err >&5
59054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59055 (exit $ac_status); } && {
59056 test -z "$ac_c_werror_flag" ||
59057 test ! -s conftest.err
59058 } && test -s conftest$ac_exeext && {
59059 test "$cross_compiling" = yes ||
59060 $as_test_x conftest$ac_exeext
59062 ac_cv_lib_readline_readline=yes
59064 $as_echo "$as_me: failed program was:" >&5
59065 sed 's/^/| /' conftest.$ac_ext >&5
59067 ac_cv_lib_readline_readline=no
59070 rm -rf conftest.dSYM
59071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59072 conftest$ac_exeext conftest.$ac_ext
59073 LIBS=$ac_check_lib_save_LIBS
59075 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
59076 $as_echo "$ac_cv_lib_readline_readline" >&6; }
59077 if test "x$ac_cv_lib_readline_readline" = x""yes; then
59079 READLINE_LIBS="-lreadline $READLINE_LIBS"
59087 # we have readline!
59089 cat >>confdefs.h <<\_ACEOF
59090 #define HAVE_READLINE 1
59094 # no readline. if the user *really* wanted it, bail out.
59095 if test x"$want_readline" = x"yes"; then
59096 { { $as_echo "$as_me:$LINENO: error: *** No readline implementation found. Try using --with-libraries and --with-includes" >&5
59097 $as_echo "$as_me: error: *** No readline implementation found. Try using --with-libraries and --with-includes" >&2;}
59098 { (exit 1); exit 1; }; }
59106 { $as_echo "$as_me:$LINENO: checking for modf in -lm" >&5
59107 $as_echo_n "checking for modf in -lm... " >&6; }
59108 if test "${ac_cv_lib_m_modf+set}" = set; then
59109 $as_echo_n "(cached) " >&6
59111 ac_check_lib_save_LIBS=$LIBS
59113 cat >conftest.$ac_ext <<_ACEOF
59116 cat confdefs.h >>conftest.$ac_ext
59117 cat >>conftest.$ac_ext <<_ACEOF
59118 /* end confdefs.h. */
59120 /* Override any GCC internal prototype to avoid an error.
59121 Use char because int might match the return type of a GCC
59122 builtin and then its argument prototype would still apply. */
59135 rm -f conftest.$ac_objext conftest$ac_exeext
59136 if { (ac_try="$ac_link"
59137 case "(($ac_try" in
59138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59139 *) ac_try_echo=$ac_try;;
59141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59142 $as_echo "$ac_try_echo") >&5
59143 (eval "$ac_link") 2>conftest.er1
59145 grep -v '^ *+' conftest.er1 >conftest.err
59147 cat conftest.err >&5
59148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59149 (exit $ac_status); } && {
59150 test -z "$ac_c_werror_flag" ||
59151 test ! -s conftest.err
59152 } && test -s conftest$ac_exeext && {
59153 test "$cross_compiling" = yes ||
59154 $as_test_x conftest$ac_exeext
59156 ac_cv_lib_m_modf=yes
59158 $as_echo "$as_me: failed program was:" >&5
59159 sed 's/^/| /' conftest.$ac_ext >&5
59161 ac_cv_lib_m_modf=no
59164 rm -rf conftest.dSYM
59165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59166 conftest$ac_exeext conftest.$ac_ext
59167 LIBS=$ac_check_lib_save_LIBS
59169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
59170 $as_echo "$ac_cv_lib_m_modf" >&6; }
59171 if test "x$ac_cv_lib_m_modf" = x""yes; then
59172 cat >>confdefs.h <<_ACEOF
59173 #define HAVE_LIBM 1
59181 if test "${ac_cv_header_execinfo_h+set}" = set; then
59182 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
59183 $as_echo_n "checking for execinfo.h... " >&6; }
59184 if test "${ac_cv_header_execinfo_h+set}" = set; then
59185 $as_echo_n "(cached) " >&6
59187 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
59188 $as_echo "$ac_cv_header_execinfo_h" >&6; }
59190 # Is the header compilable?
59191 { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
59192 $as_echo_n "checking execinfo.h usability... " >&6; }
59193 cat >conftest.$ac_ext <<_ACEOF
59196 cat confdefs.h >>conftest.$ac_ext
59197 cat >>conftest.$ac_ext <<_ACEOF
59198 /* end confdefs.h. */
59199 $ac_includes_default
59200 #include <execinfo.h>
59202 rm -f conftest.$ac_objext
59203 if { (ac_try="$ac_compile"
59204 case "(($ac_try" in
59205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59206 *) ac_try_echo=$ac_try;;
59208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59209 $as_echo "$ac_try_echo") >&5
59210 (eval "$ac_compile") 2>conftest.er1
59212 grep -v '^ *+' conftest.er1 >conftest.err
59214 cat conftest.err >&5
59215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59216 (exit $ac_status); } && {
59217 test -z "$ac_c_werror_flag" ||
59218 test ! -s conftest.err
59219 } && test -s conftest.$ac_objext; then
59220 ac_header_compiler=yes
59222 $as_echo "$as_me: failed program was:" >&5
59223 sed 's/^/| /' conftest.$ac_ext >&5
59225 ac_header_compiler=no
59228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59230 $as_echo "$ac_header_compiler" >&6; }
59232 # Is the header present?
59233 { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
59234 $as_echo_n "checking execinfo.h presence... " >&6; }
59235 cat >conftest.$ac_ext <<_ACEOF
59238 cat confdefs.h >>conftest.$ac_ext
59239 cat >>conftest.$ac_ext <<_ACEOF
59240 /* end confdefs.h. */
59241 #include <execinfo.h>
59243 if { (ac_try="$ac_cpp conftest.$ac_ext"
59244 case "(($ac_try" in
59245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59246 *) ac_try_echo=$ac_try;;
59248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59249 $as_echo "$ac_try_echo") >&5
59250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
59252 grep -v '^ *+' conftest.er1 >conftest.err
59254 cat conftest.err >&5
59255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59256 (exit $ac_status); } >/dev/null && {
59257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
59258 test ! -s conftest.err
59260 ac_header_preproc=yes
59262 $as_echo "$as_me: failed program was:" >&5
59263 sed 's/^/| /' conftest.$ac_ext >&5
59265 ac_header_preproc=no
59268 rm -f conftest.err conftest.$ac_ext
59269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59270 $as_echo "$ac_header_preproc" >&6; }
59272 # So? What about this header?
59273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59275 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
59276 $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59277 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
59278 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
59279 ac_header_preproc=yes
59282 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
59283 $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
59284 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
59285 $as_echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
59286 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
59287 $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
59288 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
59289 $as_echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
59290 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
59291 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
59292 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
59293 $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
59297 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
59298 $as_echo_n "checking for execinfo.h... " >&6; }
59299 if test "${ac_cv_header_execinfo_h+set}" = set; then
59300 $as_echo_n "(cached) " >&6
59302 ac_cv_header_execinfo_h=$ac_header_preproc
59304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
59305 $as_echo "$ac_cv_header_execinfo_h" >&6; }
59308 if test "x$ac_cv_header_execinfo_h" = x""yes; then
59310 { $as_echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
59311 $as_echo_n "checking for backtrace_symbols_fd... " >&6; }
59312 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
59313 $as_echo_n "(cached) " >&6
59315 cat >conftest.$ac_ext <<_ACEOF
59318 cat confdefs.h >>conftest.$ac_ext
59319 cat >>conftest.$ac_ext <<_ACEOF
59320 /* end confdefs.h. */
59321 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
59322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59323 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
59325 /* System header to define __stub macros and hopefully few prototypes,
59326 which can conflict with char backtrace_symbols_fd (); below.
59327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59328 <limits.h> exists even on freestanding compilers. */
59331 # include <limits.h>
59333 # include <assert.h>
59336 #undef backtrace_symbols_fd
59338 /* Override any GCC internal prototype to avoid an error.
59339 Use char because int might match the return type of a GCC
59340 builtin and then its argument prototype would still apply. */
59344 char backtrace_symbols_fd ();
59345 /* The GNU C library defines this for functions which it implements
59346 to always fail with ENOSYS. Some functions are actually named
59347 something starting with __ and the normal name is an alias. */
59348 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
59355 return backtrace_symbols_fd ();
59360 rm -f conftest.$ac_objext conftest$ac_exeext
59361 if { (ac_try="$ac_link"
59362 case "(($ac_try" in
59363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59364 *) ac_try_echo=$ac_try;;
59366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59367 $as_echo "$ac_try_echo") >&5
59368 (eval "$ac_link") 2>conftest.er1
59370 grep -v '^ *+' conftest.er1 >conftest.err
59372 cat conftest.err >&5
59373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59374 (exit $ac_status); } && {
59375 test -z "$ac_c_werror_flag" ||
59376 test ! -s conftest.err
59377 } && test -s conftest$ac_exeext && {
59378 test "$cross_compiling" = yes ||
59379 $as_test_x conftest$ac_exeext
59381 ac_cv_func_backtrace_symbols_fd=yes
59383 $as_echo "$as_me: failed program was:" >&5
59384 sed 's/^/| /' conftest.$ac_ext >&5
59386 ac_cv_func_backtrace_symbols_fd=no
59389 rm -rf conftest.dSYM
59390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59391 conftest$ac_exeext conftest.$ac_ext
59393 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
59394 $as_echo "$ac_cv_func_backtrace_symbols_fd" >&6; }
59395 if test "x$ac_cv_func_backtrace_symbols_fd" = x""yes; then
59398 cat >>confdefs.h <<\_ACEOF
59399 #define HAVE_GLIBC_BACKTRACE 1
59414 # Checks for library functions and if the function is declared in
59415 # an appropriate header file. Functions which exist, but for which
59416 # no declaration is available, are declared in common-src/amanda.h.
59417 # It's not clear that any existing system implements but does not
59418 # declare common functions such as these.
59423 for ac_func in accept
59425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59427 $as_echo_n "checking for $ac_func... " >&6; }
59428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59429 $as_echo_n "(cached) " >&6
59431 cat >conftest.$ac_ext <<_ACEOF
59434 cat confdefs.h >>conftest.$ac_ext
59435 cat >>conftest.$ac_ext <<_ACEOF
59436 /* end confdefs.h. */
59437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59439 #define $ac_func innocuous_$ac_func
59441 /* System header to define __stub macros and hopefully few prototypes,
59442 which can conflict with char $ac_func (); below.
59443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59444 <limits.h> exists even on freestanding compilers. */
59447 # include <limits.h>
59449 # include <assert.h>
59454 /* Override any GCC internal prototype to avoid an error.
59455 Use char because int might match the return type of a GCC
59456 builtin and then its argument prototype would still apply. */
59461 /* The GNU C library defines this for functions which it implements
59462 to always fail with ENOSYS. Some functions are actually named
59463 something starting with __ and the normal name is an alias. */
59464 #if defined __stub_$ac_func || defined __stub___$ac_func
59471 return $ac_func ();
59476 rm -f conftest.$ac_objext conftest$ac_exeext
59477 if { (ac_try="$ac_link"
59478 case "(($ac_try" in
59479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59480 *) ac_try_echo=$ac_try;;
59482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59483 $as_echo "$ac_try_echo") >&5
59484 (eval "$ac_link") 2>conftest.er1
59486 grep -v '^ *+' conftest.er1 >conftest.err
59488 cat conftest.err >&5
59489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59490 (exit $ac_status); } && {
59491 test -z "$ac_c_werror_flag" ||
59492 test ! -s conftest.err
59493 } && test -s conftest$ac_exeext && {
59494 test "$cross_compiling" = yes ||
59495 $as_test_x conftest$ac_exeext
59497 eval "$as_ac_var=yes"
59499 $as_echo "$as_me: failed program was:" >&5
59500 sed 's/^/| /' conftest.$ac_ext >&5
59502 eval "$as_ac_var=no"
59505 rm -rf conftest.dSYM
59506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59507 conftest$ac_exeext conftest.$ac_ext
59509 ac_res=`eval 'as_val=${'$as_ac_var'}
59510 $as_echo "$as_val"'`
59511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59512 $as_echo "$ac_res" >&6; }
59513 as_val=`eval 'as_val=${'$as_ac_var'}
59514 $as_echo "$as_val"'`
59515 if test "x$as_val" = x""yes; then
59516 cat >>confdefs.h <<_ACEOF
59517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59519 ice_have_accept=yes
59523 if test "${ice_have_accept}" = yes; then
59524 { $as_echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
59525 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
59526 if test "${ice_cv_have_accept_decl+set}" = set; then
59527 $as_echo_n "(cached) " >&6
59530 ice_cv_have_accept_decl=no
59531 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59532 ice_re_word='(^|[^a-zA-Z0-9_])'
59533 for header in sys/types.h sys/socket.h; do
59534 # Check for ordinary declaration
59535 cat >conftest.$ac_ext <<_ACEOF
59538 cat confdefs.h >>conftest.$ac_ext
59539 cat >>conftest.$ac_ext <<_ACEOF
59540 /* end confdefs.h. */
59544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59545 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then
59546 ice_cv_have_accept_decl=yes
59550 if test "$ice_cv_have_accept_decl" = yes; then
59553 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59554 cat >conftest.$ac_ext <<_ACEOF
59557 cat confdefs.h >>conftest.$ac_ext
59558 cat >>conftest.$ac_ext <<_ACEOF
59559 /* end confdefs.h. */
59563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59564 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59565 ice_cv_have_accept_decl=yes
59569 if test "$ice_cv_have_accept_decl" = yes; then
59576 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
59577 $as_echo "$ice_cv_have_accept_decl" >&6; }
59578 if test "$ice_cv_have_accept_decl" = yes; then
59580 cat >>confdefs.h <<_ACEOF
59581 #define HAVE_ACCEPT_DECL 1
59587 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
59588 # for constant arguments. Useless!
59589 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
59590 $as_echo_n "checking for working alloca.h... " >&6; }
59591 if test "${ac_cv_working_alloca_h+set}" = set; then
59592 $as_echo_n "(cached) " >&6
59594 cat >conftest.$ac_ext <<_ACEOF
59597 cat confdefs.h >>conftest.$ac_ext
59598 cat >>conftest.$ac_ext <<_ACEOF
59599 /* end confdefs.h. */
59600 #include <alloca.h>
59604 char *p = (char *) alloca (2 * sizeof (int));
59610 rm -f conftest.$ac_objext conftest$ac_exeext
59611 if { (ac_try="$ac_link"
59612 case "(($ac_try" in
59613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59614 *) ac_try_echo=$ac_try;;
59616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59617 $as_echo "$ac_try_echo") >&5
59618 (eval "$ac_link") 2>conftest.er1
59620 grep -v '^ *+' conftest.er1 >conftest.err
59622 cat conftest.err >&5
59623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59624 (exit $ac_status); } && {
59625 test -z "$ac_c_werror_flag" ||
59626 test ! -s conftest.err
59627 } && test -s conftest$ac_exeext && {
59628 test "$cross_compiling" = yes ||
59629 $as_test_x conftest$ac_exeext
59631 ac_cv_working_alloca_h=yes
59633 $as_echo "$as_me: failed program was:" >&5
59634 sed 's/^/| /' conftest.$ac_ext >&5
59636 ac_cv_working_alloca_h=no
59639 rm -rf conftest.dSYM
59640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59641 conftest$ac_exeext conftest.$ac_ext
59643 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
59644 $as_echo "$ac_cv_working_alloca_h" >&6; }
59645 if test $ac_cv_working_alloca_h = yes; then
59647 cat >>confdefs.h <<\_ACEOF
59648 #define HAVE_ALLOCA_H 1
59653 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
59654 $as_echo_n "checking for alloca... " >&6; }
59655 if test "${ac_cv_func_alloca_works+set}" = set; then
59656 $as_echo_n "(cached) " >&6
59658 cat >conftest.$ac_ext <<_ACEOF
59661 cat confdefs.h >>conftest.$ac_ext
59662 cat >>conftest.$ac_ext <<_ACEOF
59663 /* end confdefs.h. */
59665 # define alloca __builtin_alloca
59668 # include <malloc.h>
59669 # define alloca _alloca
59671 # ifdef HAVE_ALLOCA_H
59672 # include <alloca.h>
59677 # ifndef alloca /* predefined by HP cc +Olibcalls */
59688 char *p = (char *) alloca (1);
59694 rm -f conftest.$ac_objext conftest$ac_exeext
59695 if { (ac_try="$ac_link"
59696 case "(($ac_try" in
59697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59698 *) ac_try_echo=$ac_try;;
59700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59701 $as_echo "$ac_try_echo") >&5
59702 (eval "$ac_link") 2>conftest.er1
59704 grep -v '^ *+' conftest.er1 >conftest.err
59706 cat conftest.err >&5
59707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59708 (exit $ac_status); } && {
59709 test -z "$ac_c_werror_flag" ||
59710 test ! -s conftest.err
59711 } && test -s conftest$ac_exeext && {
59712 test "$cross_compiling" = yes ||
59713 $as_test_x conftest$ac_exeext
59715 ac_cv_func_alloca_works=yes
59717 $as_echo "$as_me: failed program was:" >&5
59718 sed 's/^/| /' conftest.$ac_ext >&5
59720 ac_cv_func_alloca_works=no
59723 rm -rf conftest.dSYM
59724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59725 conftest$ac_exeext conftest.$ac_ext
59727 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
59728 $as_echo "$ac_cv_func_alloca_works" >&6; }
59730 if test $ac_cv_func_alloca_works = yes; then
59732 cat >>confdefs.h <<\_ACEOF
59733 #define HAVE_ALLOCA 1
59737 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
59738 # that cause trouble. Some versions do not even contain alloca or
59739 # contain a buggy version. If you still want to use their alloca,
59740 # use ar to extract alloca.o from them instead of compiling alloca.c.
59742 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
59744 cat >>confdefs.h <<\_ACEOF
59749 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
59750 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
59751 if test "${ac_cv_os_cray+set}" = set; then
59752 $as_echo_n "(cached) " >&6
59754 cat >conftest.$ac_ext <<_ACEOF
59757 cat confdefs.h >>conftest.$ac_ext
59758 cat >>conftest.$ac_ext <<_ACEOF
59759 /* end confdefs.h. */
59760 #if defined CRAY && ! defined CRAY2
59767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59768 $EGREP "webecray" >/dev/null 2>&1; then
59776 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
59777 $as_echo "$ac_cv_os_cray" >&6; }
59778 if test $ac_cv_os_cray = yes; then
59779 for ac_func in _getb67 GETB67 getb67; do
59780 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59781 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59782 $as_echo_n "checking for $ac_func... " >&6; }
59783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59784 $as_echo_n "(cached) " >&6
59786 cat >conftest.$ac_ext <<_ACEOF
59789 cat confdefs.h >>conftest.$ac_ext
59790 cat >>conftest.$ac_ext <<_ACEOF
59791 /* end confdefs.h. */
59792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59794 #define $ac_func innocuous_$ac_func
59796 /* System header to define __stub macros and hopefully few prototypes,
59797 which can conflict with char $ac_func (); below.
59798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59799 <limits.h> exists even on freestanding compilers. */
59802 # include <limits.h>
59804 # include <assert.h>
59809 /* Override any GCC internal prototype to avoid an error.
59810 Use char because int might match the return type of a GCC
59811 builtin and then its argument prototype would still apply. */
59816 /* The GNU C library defines this for functions which it implements
59817 to always fail with ENOSYS. Some functions are actually named
59818 something starting with __ and the normal name is an alias. */
59819 #if defined __stub_$ac_func || defined __stub___$ac_func
59826 return $ac_func ();
59831 rm -f conftest.$ac_objext conftest$ac_exeext
59832 if { (ac_try="$ac_link"
59833 case "(($ac_try" in
59834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59835 *) ac_try_echo=$ac_try;;
59837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59838 $as_echo "$ac_try_echo") >&5
59839 (eval "$ac_link") 2>conftest.er1
59841 grep -v '^ *+' conftest.er1 >conftest.err
59843 cat conftest.err >&5
59844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59845 (exit $ac_status); } && {
59846 test -z "$ac_c_werror_flag" ||
59847 test ! -s conftest.err
59848 } && test -s conftest$ac_exeext && {
59849 test "$cross_compiling" = yes ||
59850 $as_test_x conftest$ac_exeext
59852 eval "$as_ac_var=yes"
59854 $as_echo "$as_me: failed program was:" >&5
59855 sed 's/^/| /' conftest.$ac_ext >&5
59857 eval "$as_ac_var=no"
59860 rm -rf conftest.dSYM
59861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59862 conftest$ac_exeext conftest.$ac_ext
59864 ac_res=`eval 'as_val=${'$as_ac_var'}
59865 $as_echo "$as_val"'`
59866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59867 $as_echo "$ac_res" >&6; }
59868 as_val=`eval 'as_val=${'$as_ac_var'}
59869 $as_echo "$as_val"'`
59870 if test "x$as_val" = x""yes; then
59872 cat >>confdefs.h <<_ACEOF
59873 #define CRAY_STACKSEG_END $ac_func
59882 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
59883 $as_echo_n "checking stack direction for C alloca... " >&6; }
59884 if test "${ac_cv_c_stack_direction+set}" = set; then
59885 $as_echo_n "(cached) " >&6
59887 if test "$cross_compiling" = yes; then
59888 ac_cv_c_stack_direction=0
59890 cat >conftest.$ac_ext <<_ACEOF
59893 cat confdefs.h >>conftest.$ac_ext
59894 cat >>conftest.$ac_ext <<_ACEOF
59895 /* end confdefs.h. */
59896 $ac_includes_default
59898 find_stack_direction ()
59900 static char *addr = 0;
59905 return find_stack_direction ();
59908 return (&dummy > addr) ? 1 : -1;
59914 return find_stack_direction () < 0;
59917 rm -f conftest$ac_exeext
59918 if { (ac_try="$ac_link"
59919 case "(($ac_try" in
59920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59921 *) ac_try_echo=$ac_try;;
59923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59924 $as_echo "$ac_try_echo") >&5
59925 (eval "$ac_link") 2>&5
59927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59929 { (case "(($ac_try" in
59930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59931 *) ac_try_echo=$ac_try;;
59933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59934 $as_echo "$ac_try_echo") >&5
59935 (eval "$ac_try") 2>&5
59937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59938 (exit $ac_status); }; }; then
59939 ac_cv_c_stack_direction=1
59941 $as_echo "$as_me: program exited with status $ac_status" >&5
59942 $as_echo "$as_me: failed program was:" >&5
59943 sed 's/^/| /' conftest.$ac_ext >&5
59945 ( exit $ac_status )
59946 ac_cv_c_stack_direction=-1
59948 rm -rf conftest.dSYM
59949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59954 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
59955 $as_echo "$ac_cv_c_stack_direction" >&6; }
59957 cat >>confdefs.h <<_ACEOF
59958 #define STACK_DIRECTION $ac_cv_c_stack_direction
59965 for ac_func in atexit
59967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59968 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59969 $as_echo_n "checking for $ac_func... " >&6; }
59970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59971 $as_echo_n "(cached) " >&6
59973 cat >conftest.$ac_ext <<_ACEOF
59976 cat confdefs.h >>conftest.$ac_ext
59977 cat >>conftest.$ac_ext <<_ACEOF
59978 /* end confdefs.h. */
59979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59981 #define $ac_func innocuous_$ac_func
59983 /* System header to define __stub macros and hopefully few prototypes,
59984 which can conflict with char $ac_func (); below.
59985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59986 <limits.h> exists even on freestanding compilers. */
59989 # include <limits.h>
59991 # include <assert.h>
59996 /* Override any GCC internal prototype to avoid an error.
59997 Use char because int might match the return type of a GCC
59998 builtin and then its argument prototype would still apply. */
60003 /* The GNU C library defines this for functions which it implements
60004 to always fail with ENOSYS. Some functions are actually named
60005 something starting with __ and the normal name is an alias. */
60006 #if defined __stub_$ac_func || defined __stub___$ac_func
60013 return $ac_func ();
60018 rm -f conftest.$ac_objext conftest$ac_exeext
60019 if { (ac_try="$ac_link"
60020 case "(($ac_try" in
60021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60022 *) ac_try_echo=$ac_try;;
60024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60025 $as_echo "$ac_try_echo") >&5
60026 (eval "$ac_link") 2>conftest.er1
60028 grep -v '^ *+' conftest.er1 >conftest.err
60030 cat conftest.err >&5
60031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60032 (exit $ac_status); } && {
60033 test -z "$ac_c_werror_flag" ||
60034 test ! -s conftest.err
60035 } && test -s conftest$ac_exeext && {
60036 test "$cross_compiling" = yes ||
60037 $as_test_x conftest$ac_exeext
60039 eval "$as_ac_var=yes"
60041 $as_echo "$as_me: failed program was:" >&5
60042 sed 's/^/| /' conftest.$ac_ext >&5
60044 eval "$as_ac_var=no"
60047 rm -rf conftest.dSYM
60048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60049 conftest$ac_exeext conftest.$ac_ext
60051 ac_res=`eval 'as_val=${'$as_ac_var'}
60052 $as_echo "$as_val"'`
60053 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60054 $as_echo "$ac_res" >&6; }
60055 as_val=`eval 'as_val=${'$as_ac_var'}
60056 $as_echo "$as_val"'`
60057 if test "x$as_val" = x""yes; then
60058 cat >>confdefs.h <<_ACEOF
60059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60068 for ac_func in atof
60070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60071 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60072 $as_echo_n "checking for $ac_func... " >&6; }
60073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60074 $as_echo_n "(cached) " >&6
60076 cat >conftest.$ac_ext <<_ACEOF
60079 cat confdefs.h >>conftest.$ac_ext
60080 cat >>conftest.$ac_ext <<_ACEOF
60081 /* end confdefs.h. */
60082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60084 #define $ac_func innocuous_$ac_func
60086 /* System header to define __stub macros and hopefully few prototypes,
60087 which can conflict with char $ac_func (); below.
60088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60089 <limits.h> exists even on freestanding compilers. */
60092 # include <limits.h>
60094 # include <assert.h>
60099 /* Override any GCC internal prototype to avoid an error.
60100 Use char because int might match the return type of a GCC
60101 builtin and then its argument prototype would still apply. */
60106 /* The GNU C library defines this for functions which it implements
60107 to always fail with ENOSYS. Some functions are actually named
60108 something starting with __ and the normal name is an alias. */
60109 #if defined __stub_$ac_func || defined __stub___$ac_func
60116 return $ac_func ();
60121 rm -f conftest.$ac_objext conftest$ac_exeext
60122 if { (ac_try="$ac_link"
60123 case "(($ac_try" in
60124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60125 *) ac_try_echo=$ac_try;;
60127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60128 $as_echo "$ac_try_echo") >&5
60129 (eval "$ac_link") 2>conftest.er1
60131 grep -v '^ *+' conftest.er1 >conftest.err
60133 cat conftest.err >&5
60134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60135 (exit $ac_status); } && {
60136 test -z "$ac_c_werror_flag" ||
60137 test ! -s conftest.err
60138 } && test -s conftest$ac_exeext && {
60139 test "$cross_compiling" = yes ||
60140 $as_test_x conftest$ac_exeext
60142 eval "$as_ac_var=yes"
60144 $as_echo "$as_me: failed program was:" >&5
60145 sed 's/^/| /' conftest.$ac_ext >&5
60147 eval "$as_ac_var=no"
60150 rm -rf conftest.dSYM
60151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60152 conftest$ac_exeext conftest.$ac_ext
60154 ac_res=`eval 'as_val=${'$as_ac_var'}
60155 $as_echo "$as_val"'`
60156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60157 $as_echo "$ac_res" >&6; }
60158 as_val=`eval 'as_val=${'$as_ac_var'}
60159 $as_echo "$as_val"'`
60160 if test "x$as_val" = x""yes; then
60161 cat >>confdefs.h <<_ACEOF
60162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60168 if test "${ice_have_atof}" = yes; then
60169 { $as_echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
60170 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
60171 if test "${ice_cv_have_atof_decl+set}" = set; then
60172 $as_echo_n "(cached) " >&6
60175 ice_cv_have_atof_decl=no
60176 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60177 ice_re_word='(^|[^a-zA-Z0-9_])'
60178 for header in stdlib.h; do
60179 # Check for ordinary declaration
60180 cat >conftest.$ac_ext <<_ACEOF
60183 cat confdefs.h >>conftest.$ac_ext
60184 cat >>conftest.$ac_ext <<_ACEOF
60185 /* end confdefs.h. */
60189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60190 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then
60191 ice_cv_have_atof_decl=yes
60195 if test "$ice_cv_have_atof_decl" = yes; then
60198 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60199 cat >conftest.$ac_ext <<_ACEOF
60202 cat confdefs.h >>conftest.$ac_ext
60203 cat >>conftest.$ac_ext <<_ACEOF
60204 /* end confdefs.h. */
60208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60209 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60210 ice_cv_have_atof_decl=yes
60214 if test "$ice_cv_have_atof_decl" = yes; then
60221 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
60222 $as_echo "$ice_cv_have_atof_decl" >&6; }
60223 if test "$ice_cv_have_atof_decl" = yes; then
60225 cat >>confdefs.h <<_ACEOF
60226 #define HAVE_ATOF_DECL 1
60235 for ac_func in atol
60237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60238 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60239 $as_echo_n "checking for $ac_func... " >&6; }
60240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60241 $as_echo_n "(cached) " >&6
60243 cat >conftest.$ac_ext <<_ACEOF
60246 cat confdefs.h >>conftest.$ac_ext
60247 cat >>conftest.$ac_ext <<_ACEOF
60248 /* end confdefs.h. */
60249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60251 #define $ac_func innocuous_$ac_func
60253 /* System header to define __stub macros and hopefully few prototypes,
60254 which can conflict with char $ac_func (); below.
60255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60256 <limits.h> exists even on freestanding compilers. */
60259 # include <limits.h>
60261 # include <assert.h>
60266 /* Override any GCC internal prototype to avoid an error.
60267 Use char because int might match the return type of a GCC
60268 builtin and then its argument prototype would still apply. */
60273 /* The GNU C library defines this for functions which it implements
60274 to always fail with ENOSYS. Some functions are actually named
60275 something starting with __ and the normal name is an alias. */
60276 #if defined __stub_$ac_func || defined __stub___$ac_func
60283 return $ac_func ();
60288 rm -f conftest.$ac_objext conftest$ac_exeext
60289 if { (ac_try="$ac_link"
60290 case "(($ac_try" in
60291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60292 *) ac_try_echo=$ac_try;;
60294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60295 $as_echo "$ac_try_echo") >&5
60296 (eval "$ac_link") 2>conftest.er1
60298 grep -v '^ *+' conftest.er1 >conftest.err
60300 cat conftest.err >&5
60301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60302 (exit $ac_status); } && {
60303 test -z "$ac_c_werror_flag" ||
60304 test ! -s conftest.err
60305 } && test -s conftest$ac_exeext && {
60306 test "$cross_compiling" = yes ||
60307 $as_test_x conftest$ac_exeext
60309 eval "$as_ac_var=yes"
60311 $as_echo "$as_me: failed program was:" >&5
60312 sed 's/^/| /' conftest.$ac_ext >&5
60314 eval "$as_ac_var=no"
60317 rm -rf conftest.dSYM
60318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60319 conftest$ac_exeext conftest.$ac_ext
60321 ac_res=`eval 'as_val=${'$as_ac_var'}
60322 $as_echo "$as_val"'`
60323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60324 $as_echo "$ac_res" >&6; }
60325 as_val=`eval 'as_val=${'$as_ac_var'}
60326 $as_echo "$as_val"'`
60327 if test "x$as_val" = x""yes; then
60328 cat >>confdefs.h <<_ACEOF
60329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60335 if test "${ice_have_atol}" = yes; then
60336 { $as_echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
60337 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
60338 if test "${ice_cv_have_atol_decl+set}" = set; then
60339 $as_echo_n "(cached) " >&6
60342 ice_cv_have_atol_decl=no
60343 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60344 ice_re_word='(^|[^a-zA-Z0-9_])'
60345 for header in stdlib.h; do
60346 # Check for ordinary declaration
60347 cat >conftest.$ac_ext <<_ACEOF
60350 cat confdefs.h >>conftest.$ac_ext
60351 cat >>conftest.$ac_ext <<_ACEOF
60352 /* end confdefs.h. */
60356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60357 $EGREP "${ice_re_word}atol[ ]*\(" >/dev/null 2>&1; then
60358 ice_cv_have_atol_decl=yes
60362 if test "$ice_cv_have_atol_decl" = yes; then
60365 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60366 cat >conftest.$ac_ext <<_ACEOF
60369 cat confdefs.h >>conftest.$ac_ext
60370 cat >>conftest.$ac_ext <<_ACEOF
60371 /* end confdefs.h. */
60375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60376 $EGREP "${ice_re_word}atol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60377 ice_cv_have_atol_decl=yes
60381 if test "$ice_cv_have_atol_decl" = yes; then
60388 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
60389 $as_echo "$ice_cv_have_atol_decl" >&6; }
60390 if test "$ice_cv_have_atol_decl" = yes; then
60392 cat >>confdefs.h <<_ACEOF
60393 #define HAVE_ATOL_DECL 1
60402 for ac_func in atoll
60404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60405 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60406 $as_echo_n "checking for $ac_func... " >&6; }
60407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60408 $as_echo_n "(cached) " >&6
60410 cat >conftest.$ac_ext <<_ACEOF
60413 cat confdefs.h >>conftest.$ac_ext
60414 cat >>conftest.$ac_ext <<_ACEOF
60415 /* end confdefs.h. */
60416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60418 #define $ac_func innocuous_$ac_func
60420 /* System header to define __stub macros and hopefully few prototypes,
60421 which can conflict with char $ac_func (); below.
60422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60423 <limits.h> exists even on freestanding compilers. */
60426 # include <limits.h>
60428 # include <assert.h>
60433 /* Override any GCC internal prototype to avoid an error.
60434 Use char because int might match the return type of a GCC
60435 builtin and then its argument prototype would still apply. */
60440 /* The GNU C library defines this for functions which it implements
60441 to always fail with ENOSYS. Some functions are actually named
60442 something starting with __ and the normal name is an alias. */
60443 #if defined __stub_$ac_func || defined __stub___$ac_func
60450 return $ac_func ();
60455 rm -f conftest.$ac_objext conftest$ac_exeext
60456 if { (ac_try="$ac_link"
60457 case "(($ac_try" in
60458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60459 *) ac_try_echo=$ac_try;;
60461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60462 $as_echo "$ac_try_echo") >&5
60463 (eval "$ac_link") 2>conftest.er1
60465 grep -v '^ *+' conftest.er1 >conftest.err
60467 cat conftest.err >&5
60468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60469 (exit $ac_status); } && {
60470 test -z "$ac_c_werror_flag" ||
60471 test ! -s conftest.err
60472 } && test -s conftest$ac_exeext && {
60473 test "$cross_compiling" = yes ||
60474 $as_test_x conftest$ac_exeext
60476 eval "$as_ac_var=yes"
60478 $as_echo "$as_me: failed program was:" >&5
60479 sed 's/^/| /' conftest.$ac_ext >&5
60481 eval "$as_ac_var=no"
60484 rm -rf conftest.dSYM
60485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60486 conftest$ac_exeext conftest.$ac_ext
60488 ac_res=`eval 'as_val=${'$as_ac_var'}
60489 $as_echo "$as_val"'`
60490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60491 $as_echo "$ac_res" >&6; }
60492 as_val=`eval 'as_val=${'$as_ac_var'}
60493 $as_echo "$as_val"'`
60494 if test "x$as_val" = x""yes; then
60495 cat >>confdefs.h <<_ACEOF
60496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60502 if test "${ice_have_atoll}" = yes; then
60503 { $as_echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
60504 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
60505 if test "${ice_cv_have_atoll_decl+set}" = set; then
60506 $as_echo_n "(cached) " >&6
60509 ice_cv_have_atoll_decl=no
60510 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60511 ice_re_word='(^|[^a-zA-Z0-9_])'
60512 for header in stdlib.h; do
60513 # Check for ordinary declaration
60514 cat >conftest.$ac_ext <<_ACEOF
60517 cat confdefs.h >>conftest.$ac_ext
60518 cat >>conftest.$ac_ext <<_ACEOF
60519 /* end confdefs.h. */
60523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60524 $EGREP "${ice_re_word}atoll[ ]*\(" >/dev/null 2>&1; then
60525 ice_cv_have_atoll_decl=yes
60529 if test "$ice_cv_have_atoll_decl" = yes; then
60532 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60533 cat >conftest.$ac_ext <<_ACEOF
60536 cat confdefs.h >>conftest.$ac_ext
60537 cat >>conftest.$ac_ext <<_ACEOF
60538 /* end confdefs.h. */
60542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60543 $EGREP "${ice_re_word}atoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60544 ice_cv_have_atoll_decl=yes
60548 if test "$ice_cv_have_atoll_decl" = yes; then
60555 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
60556 $as_echo "$ice_cv_have_atoll_decl" >&6; }
60557 if test "$ice_cv_have_atoll_decl" = yes; then
60559 cat >>confdefs.h <<_ACEOF
60560 #define HAVE_ATOLL_DECL 1
60569 for ac_func in strtol
60571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60572 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60573 $as_echo_n "checking for $ac_func... " >&6; }
60574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60575 $as_echo_n "(cached) " >&6
60577 cat >conftest.$ac_ext <<_ACEOF
60580 cat confdefs.h >>conftest.$ac_ext
60581 cat >>conftest.$ac_ext <<_ACEOF
60582 /* end confdefs.h. */
60583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60585 #define $ac_func innocuous_$ac_func
60587 /* System header to define __stub macros and hopefully few prototypes,
60588 which can conflict with char $ac_func (); below.
60589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60590 <limits.h> exists even on freestanding compilers. */
60593 # include <limits.h>
60595 # include <assert.h>
60600 /* Override any GCC internal prototype to avoid an error.
60601 Use char because int might match the return type of a GCC
60602 builtin and then its argument prototype would still apply. */
60607 /* The GNU C library defines this for functions which it implements
60608 to always fail with ENOSYS. Some functions are actually named
60609 something starting with __ and the normal name is an alias. */
60610 #if defined __stub_$ac_func || defined __stub___$ac_func
60617 return $ac_func ();
60622 rm -f conftest.$ac_objext conftest$ac_exeext
60623 if { (ac_try="$ac_link"
60624 case "(($ac_try" in
60625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60626 *) ac_try_echo=$ac_try;;
60628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60629 $as_echo "$ac_try_echo") >&5
60630 (eval "$ac_link") 2>conftest.er1
60632 grep -v '^ *+' conftest.er1 >conftest.err
60634 cat conftest.err >&5
60635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60636 (exit $ac_status); } && {
60637 test -z "$ac_c_werror_flag" ||
60638 test ! -s conftest.err
60639 } && test -s conftest$ac_exeext && {
60640 test "$cross_compiling" = yes ||
60641 $as_test_x conftest$ac_exeext
60643 eval "$as_ac_var=yes"
60645 $as_echo "$as_me: failed program was:" >&5
60646 sed 's/^/| /' conftest.$ac_ext >&5
60648 eval "$as_ac_var=no"
60651 rm -rf conftest.dSYM
60652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60653 conftest$ac_exeext conftest.$ac_ext
60655 ac_res=`eval 'as_val=${'$as_ac_var'}
60656 $as_echo "$as_val"'`
60657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60658 $as_echo "$ac_res" >&6; }
60659 as_val=`eval 'as_val=${'$as_ac_var'}
60660 $as_echo "$as_val"'`
60661 if test "x$as_val" = x""yes; then
60662 cat >>confdefs.h <<_ACEOF
60663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60665 ice_have_strtol=yes
60669 if test "${ice_have_strtol}" = yes; then
60670 { $as_echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
60671 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
60672 if test "${ice_cv_have_strtol_decl+set}" = set; then
60673 $as_echo_n "(cached) " >&6
60676 ice_cv_have_strtol_decl=no
60677 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60678 ice_re_word='(^|[^a-zA-Z0-9_])'
60679 for header in stdlib.h; do
60680 # Check for ordinary declaration
60681 cat >conftest.$ac_ext <<_ACEOF
60684 cat confdefs.h >>conftest.$ac_ext
60685 cat >>conftest.$ac_ext <<_ACEOF
60686 /* end confdefs.h. */
60690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60691 $EGREP "${ice_re_word}strtol[ ]*\(" >/dev/null 2>&1; then
60692 ice_cv_have_strtol_decl=yes
60696 if test "$ice_cv_have_strtol_decl" = yes; then
60699 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60700 cat >conftest.$ac_ext <<_ACEOF
60703 cat confdefs.h >>conftest.$ac_ext
60704 cat >>conftest.$ac_ext <<_ACEOF
60705 /* end confdefs.h. */
60709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60710 $EGREP "${ice_re_word}strtol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60711 ice_cv_have_strtol_decl=yes
60715 if test "$ice_cv_have_strtol_decl" = yes; then
60722 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
60723 $as_echo "$ice_cv_have_strtol_decl" >&6; }
60724 if test "$ice_cv_have_strtol_decl" = yes; then
60726 cat >>confdefs.h <<_ACEOF
60727 #define HAVE_STRTOL_DECL 1
60734 ice_have_strtoll=no
60736 for ac_func in strtoll
60738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60739 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60740 $as_echo_n "checking for $ac_func... " >&6; }
60741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60742 $as_echo_n "(cached) " >&6
60744 cat >conftest.$ac_ext <<_ACEOF
60747 cat confdefs.h >>conftest.$ac_ext
60748 cat >>conftest.$ac_ext <<_ACEOF
60749 /* end confdefs.h. */
60750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60752 #define $ac_func innocuous_$ac_func
60754 /* System header to define __stub macros and hopefully few prototypes,
60755 which can conflict with char $ac_func (); below.
60756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60757 <limits.h> exists even on freestanding compilers. */
60760 # include <limits.h>
60762 # include <assert.h>
60767 /* Override any GCC internal prototype to avoid an error.
60768 Use char because int might match the return type of a GCC
60769 builtin and then its argument prototype would still apply. */
60774 /* The GNU C library defines this for functions which it implements
60775 to always fail with ENOSYS. Some functions are actually named
60776 something starting with __ and the normal name is an alias. */
60777 #if defined __stub_$ac_func || defined __stub___$ac_func
60784 return $ac_func ();
60789 rm -f conftest.$ac_objext conftest$ac_exeext
60790 if { (ac_try="$ac_link"
60791 case "(($ac_try" in
60792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60793 *) ac_try_echo=$ac_try;;
60795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60796 $as_echo "$ac_try_echo") >&5
60797 (eval "$ac_link") 2>conftest.er1
60799 grep -v '^ *+' conftest.er1 >conftest.err
60801 cat conftest.err >&5
60802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60803 (exit $ac_status); } && {
60804 test -z "$ac_c_werror_flag" ||
60805 test ! -s conftest.err
60806 } && test -s conftest$ac_exeext && {
60807 test "$cross_compiling" = yes ||
60808 $as_test_x conftest$ac_exeext
60810 eval "$as_ac_var=yes"
60812 $as_echo "$as_me: failed program was:" >&5
60813 sed 's/^/| /' conftest.$ac_ext >&5
60815 eval "$as_ac_var=no"
60818 rm -rf conftest.dSYM
60819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60820 conftest$ac_exeext conftest.$ac_ext
60822 ac_res=`eval 'as_val=${'$as_ac_var'}
60823 $as_echo "$as_val"'`
60824 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60825 $as_echo "$ac_res" >&6; }
60826 as_val=`eval 'as_val=${'$as_ac_var'}
60827 $as_echo "$as_val"'`
60828 if test "x$as_val" = x""yes; then
60829 cat >>confdefs.h <<_ACEOF
60830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60832 ice_have_strtoll=yes
60836 if test "${ice_have_strtoll}" = yes; then
60837 { $as_echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
60838 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
60839 if test "${ice_cv_have_strtoll_decl+set}" = set; then
60840 $as_echo_n "(cached) " >&6
60843 ice_cv_have_strtoll_decl=no
60844 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60845 ice_re_word='(^|[^a-zA-Z0-9_])'
60846 for header in stdlib.h; do
60847 # Check for ordinary declaration
60848 cat >conftest.$ac_ext <<_ACEOF
60851 cat confdefs.h >>conftest.$ac_ext
60852 cat >>conftest.$ac_ext <<_ACEOF
60853 /* end confdefs.h. */
60857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60858 $EGREP "${ice_re_word}strtoll[ ]*\(" >/dev/null 2>&1; then
60859 ice_cv_have_strtoll_decl=yes
60863 if test "$ice_cv_have_strtoll_decl" = yes; then
60866 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60867 cat >conftest.$ac_ext <<_ACEOF
60870 cat confdefs.h >>conftest.$ac_ext
60871 cat >>conftest.$ac_ext <<_ACEOF
60872 /* end confdefs.h. */
60876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60877 $EGREP "${ice_re_word}strtoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60878 ice_cv_have_strtoll_decl=yes
60882 if test "$ice_cv_have_strtoll_decl" = yes; then
60889 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
60890 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
60891 if test "$ice_cv_have_strtoll_decl" = yes; then
60893 cat >>confdefs.h <<_ACEOF
60894 #define HAVE_STRTOLL_DECL 1
60901 for ac_func in basename
60903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60904 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60905 $as_echo_n "checking for $ac_func... " >&6; }
60906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60907 $as_echo_n "(cached) " >&6
60909 cat >conftest.$ac_ext <<_ACEOF
60912 cat confdefs.h >>conftest.$ac_ext
60913 cat >>conftest.$ac_ext <<_ACEOF
60914 /* end confdefs.h. */
60915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60917 #define $ac_func innocuous_$ac_func
60919 /* System header to define __stub macros and hopefully few prototypes,
60920 which can conflict with char $ac_func (); below.
60921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60922 <limits.h> exists even on freestanding compilers. */
60925 # include <limits.h>
60927 # include <assert.h>
60932 /* Override any GCC internal prototype to avoid an error.
60933 Use char because int might match the return type of a GCC
60934 builtin and then its argument prototype would still apply. */
60939 /* The GNU C library defines this for functions which it implements
60940 to always fail with ENOSYS. Some functions are actually named
60941 something starting with __ and the normal name is an alias. */
60942 #if defined __stub_$ac_func || defined __stub___$ac_func
60949 return $ac_func ();
60954 rm -f conftest.$ac_objext conftest$ac_exeext
60955 if { (ac_try="$ac_link"
60956 case "(($ac_try" in
60957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60958 *) ac_try_echo=$ac_try;;
60960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60961 $as_echo "$ac_try_echo") >&5
60962 (eval "$ac_link") 2>conftest.er1
60964 grep -v '^ *+' conftest.er1 >conftest.err
60966 cat conftest.err >&5
60967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60968 (exit $ac_status); } && {
60969 test -z "$ac_c_werror_flag" ||
60970 test ! -s conftest.err
60971 } && test -s conftest$ac_exeext && {
60972 test "$cross_compiling" = yes ||
60973 $as_test_x conftest$ac_exeext
60975 eval "$as_ac_var=yes"
60977 $as_echo "$as_me: failed program was:" >&5
60978 sed 's/^/| /' conftest.$ac_ext >&5
60980 eval "$as_ac_var=no"
60983 rm -rf conftest.dSYM
60984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60985 conftest$ac_exeext conftest.$ac_ext
60987 ac_res=`eval 'as_val=${'$as_ac_var'}
60988 $as_echo "$as_val"'`
60989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60990 $as_echo "$ac_res" >&6; }
60991 as_val=`eval 'as_val=${'$as_ac_var'}
60992 $as_echo "$as_val"'`
60993 if test "x$as_val" = x""yes; then
60994 cat >>confdefs.h <<_ACEOF
60995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61004 for ac_func in bind
61006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61007 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61008 $as_echo_n "checking for $ac_func... " >&6; }
61009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61010 $as_echo_n "(cached) " >&6
61012 cat >conftest.$ac_ext <<_ACEOF
61015 cat confdefs.h >>conftest.$ac_ext
61016 cat >>conftest.$ac_ext <<_ACEOF
61017 /* end confdefs.h. */
61018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61020 #define $ac_func innocuous_$ac_func
61022 /* System header to define __stub macros and hopefully few prototypes,
61023 which can conflict with char $ac_func (); below.
61024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61025 <limits.h> exists even on freestanding compilers. */
61028 # include <limits.h>
61030 # include <assert.h>
61035 /* Override any GCC internal prototype to avoid an error.
61036 Use char because int might match the return type of a GCC
61037 builtin and then its argument prototype would still apply. */
61042 /* The GNU C library defines this for functions which it implements
61043 to always fail with ENOSYS. Some functions are actually named
61044 something starting with __ and the normal name is an alias. */
61045 #if defined __stub_$ac_func || defined __stub___$ac_func
61052 return $ac_func ();
61057 rm -f conftest.$ac_objext conftest$ac_exeext
61058 if { (ac_try="$ac_link"
61059 case "(($ac_try" in
61060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61061 *) ac_try_echo=$ac_try;;
61063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61064 $as_echo "$ac_try_echo") >&5
61065 (eval "$ac_link") 2>conftest.er1
61067 grep -v '^ *+' conftest.er1 >conftest.err
61069 cat conftest.err >&5
61070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61071 (exit $ac_status); } && {
61072 test -z "$ac_c_werror_flag" ||
61073 test ! -s conftest.err
61074 } && test -s conftest$ac_exeext && {
61075 test "$cross_compiling" = yes ||
61076 $as_test_x conftest$ac_exeext
61078 eval "$as_ac_var=yes"
61080 $as_echo "$as_me: failed program was:" >&5
61081 sed 's/^/| /' conftest.$ac_ext >&5
61083 eval "$as_ac_var=no"
61086 rm -rf conftest.dSYM
61087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61088 conftest$ac_exeext conftest.$ac_ext
61090 ac_res=`eval 'as_val=${'$as_ac_var'}
61091 $as_echo "$as_val"'`
61092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61093 $as_echo "$ac_res" >&6; }
61094 as_val=`eval 'as_val=${'$as_ac_var'}
61095 $as_echo "$as_val"'`
61096 if test "x$as_val" = x""yes; then
61097 cat >>confdefs.h <<_ACEOF
61098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61104 if test "${ice_have_bind}" = yes; then
61105 { $as_echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
61106 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
61107 if test "${ice_cv_have_bind_decl+set}" = set; then
61108 $as_echo_n "(cached) " >&6
61111 ice_cv_have_bind_decl=no
61112 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61113 ice_re_word='(^|[^a-zA-Z0-9_])'
61114 for header in sys/types.h sys/socket.h; do
61115 # Check for ordinary declaration
61116 cat >conftest.$ac_ext <<_ACEOF
61119 cat confdefs.h >>conftest.$ac_ext
61120 cat >>conftest.$ac_ext <<_ACEOF
61121 /* end confdefs.h. */
61125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61126 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then
61127 ice_cv_have_bind_decl=yes
61131 if test "$ice_cv_have_bind_decl" = yes; then
61134 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61135 cat >conftest.$ac_ext <<_ACEOF
61138 cat confdefs.h >>conftest.$ac_ext
61139 cat >>conftest.$ac_ext <<_ACEOF
61140 /* end confdefs.h. */
61144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61145 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61146 ice_cv_have_bind_decl=yes
61150 if test "$ice_cv_have_bind_decl" = yes; then
61157 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
61158 $as_echo "$ice_cv_have_bind_decl" >&6; }
61159 if test "$ice_cv_have_bind_decl" = yes; then
61161 cat >>confdefs.h <<_ACEOF
61162 #define HAVE_BIND_DECL 1
61171 for ac_func in bcopy
61173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61174 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61175 $as_echo_n "checking for $ac_func... " >&6; }
61176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61177 $as_echo_n "(cached) " >&6
61179 cat >conftest.$ac_ext <<_ACEOF
61182 cat confdefs.h >>conftest.$ac_ext
61183 cat >>conftest.$ac_ext <<_ACEOF
61184 /* end confdefs.h. */
61185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61187 #define $ac_func innocuous_$ac_func
61189 /* System header to define __stub macros and hopefully few prototypes,
61190 which can conflict with char $ac_func (); below.
61191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61192 <limits.h> exists even on freestanding compilers. */
61195 # include <limits.h>
61197 # include <assert.h>
61202 /* Override any GCC internal prototype to avoid an error.
61203 Use char because int might match the return type of a GCC
61204 builtin and then its argument prototype would still apply. */
61209 /* The GNU C library defines this for functions which it implements
61210 to always fail with ENOSYS. Some functions are actually named
61211 something starting with __ and the normal name is an alias. */
61212 #if defined __stub_$ac_func || defined __stub___$ac_func
61219 return $ac_func ();
61224 rm -f conftest.$ac_objext conftest$ac_exeext
61225 if { (ac_try="$ac_link"
61226 case "(($ac_try" in
61227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61228 *) ac_try_echo=$ac_try;;
61230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61231 $as_echo "$ac_try_echo") >&5
61232 (eval "$ac_link") 2>conftest.er1
61234 grep -v '^ *+' conftest.er1 >conftest.err
61236 cat conftest.err >&5
61237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61238 (exit $ac_status); } && {
61239 test -z "$ac_c_werror_flag" ||
61240 test ! -s conftest.err
61241 } && test -s conftest$ac_exeext && {
61242 test "$cross_compiling" = yes ||
61243 $as_test_x conftest$ac_exeext
61245 eval "$as_ac_var=yes"
61247 $as_echo "$as_me: failed program was:" >&5
61248 sed 's/^/| /' conftest.$ac_ext >&5
61250 eval "$as_ac_var=no"
61253 rm -rf conftest.dSYM
61254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61255 conftest$ac_exeext conftest.$ac_ext
61257 ac_res=`eval 'as_val=${'$as_ac_var'}
61258 $as_echo "$as_val"'`
61259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61260 $as_echo "$ac_res" >&6; }
61261 as_val=`eval 'as_val=${'$as_ac_var'}
61262 $as_echo "$as_val"'`
61263 if test "x$as_val" = x""yes; then
61264 cat >>confdefs.h <<_ACEOF
61265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61271 if test "${ice_have_bcopy}" = yes; then
61272 { $as_echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
61273 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
61274 if test "${ice_cv_have_bcopy_decl+set}" = set; then
61275 $as_echo_n "(cached) " >&6
61278 ice_cv_have_bcopy_decl=no
61279 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61280 ice_re_word='(^|[^a-zA-Z0-9_])'
61281 for header in string.h strings.h stdlib.h; do
61282 # Check for ordinary declaration
61283 cat >conftest.$ac_ext <<_ACEOF
61286 cat confdefs.h >>conftest.$ac_ext
61287 cat >>conftest.$ac_ext <<_ACEOF
61288 /* end confdefs.h. */
61292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61293 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then
61294 ice_cv_have_bcopy_decl=yes
61298 if test "$ice_cv_have_bcopy_decl" = yes; then
61301 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61302 cat >conftest.$ac_ext <<_ACEOF
61305 cat confdefs.h >>conftest.$ac_ext
61306 cat >>conftest.$ac_ext <<_ACEOF
61307 /* end confdefs.h. */
61311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61312 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61313 ice_cv_have_bcopy_decl=yes
61317 if test "$ice_cv_have_bcopy_decl" = yes; then
61324 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
61325 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
61326 if test "$ice_cv_have_bcopy_decl" = yes; then
61328 cat >>confdefs.h <<_ACEOF
61329 #define HAVE_BCOPY_DECL 1
61338 for ac_func in bzero
61340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61341 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61342 $as_echo_n "checking for $ac_func... " >&6; }
61343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61344 $as_echo_n "(cached) " >&6
61346 cat >conftest.$ac_ext <<_ACEOF
61349 cat confdefs.h >>conftest.$ac_ext
61350 cat >>conftest.$ac_ext <<_ACEOF
61351 /* end confdefs.h. */
61352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61354 #define $ac_func innocuous_$ac_func
61356 /* System header to define __stub macros and hopefully few prototypes,
61357 which can conflict with char $ac_func (); below.
61358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61359 <limits.h> exists even on freestanding compilers. */
61362 # include <limits.h>
61364 # include <assert.h>
61369 /* Override any GCC internal prototype to avoid an error.
61370 Use char because int might match the return type of a GCC
61371 builtin and then its argument prototype would still apply. */
61376 /* The GNU C library defines this for functions which it implements
61377 to always fail with ENOSYS. Some functions are actually named
61378 something starting with __ and the normal name is an alias. */
61379 #if defined __stub_$ac_func || defined __stub___$ac_func
61386 return $ac_func ();
61391 rm -f conftest.$ac_objext conftest$ac_exeext
61392 if { (ac_try="$ac_link"
61393 case "(($ac_try" in
61394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61395 *) ac_try_echo=$ac_try;;
61397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61398 $as_echo "$ac_try_echo") >&5
61399 (eval "$ac_link") 2>conftest.er1
61401 grep -v '^ *+' conftest.er1 >conftest.err
61403 cat conftest.err >&5
61404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61405 (exit $ac_status); } && {
61406 test -z "$ac_c_werror_flag" ||
61407 test ! -s conftest.err
61408 } && test -s conftest$ac_exeext && {
61409 test "$cross_compiling" = yes ||
61410 $as_test_x conftest$ac_exeext
61412 eval "$as_ac_var=yes"
61414 $as_echo "$as_me: failed program was:" >&5
61415 sed 's/^/| /' conftest.$ac_ext >&5
61417 eval "$as_ac_var=no"
61420 rm -rf conftest.dSYM
61421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61422 conftest$ac_exeext conftest.$ac_ext
61424 ac_res=`eval 'as_val=${'$as_ac_var'}
61425 $as_echo "$as_val"'`
61426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61427 $as_echo "$ac_res" >&6; }
61428 as_val=`eval 'as_val=${'$as_ac_var'}
61429 $as_echo "$as_val"'`
61430 if test "x$as_val" = x""yes; then
61431 cat >>confdefs.h <<_ACEOF
61432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61438 if test "${ice_have_bzero}" = yes; then
61439 { $as_echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
61440 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
61441 if test "${ice_cv_have_bzero_decl+set}" = set; then
61442 $as_echo_n "(cached) " >&6
61445 ice_cv_have_bzero_decl=no
61446 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61447 ice_re_word='(^|[^a-zA-Z0-9_])'
61448 for header in string.h strings.h stdlib.h; do
61449 # Check for ordinary declaration
61450 cat >conftest.$ac_ext <<_ACEOF
61453 cat confdefs.h >>conftest.$ac_ext
61454 cat >>conftest.$ac_ext <<_ACEOF
61455 /* end confdefs.h. */
61459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61460 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then
61461 ice_cv_have_bzero_decl=yes
61465 if test "$ice_cv_have_bzero_decl" = yes; then
61468 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61469 cat >conftest.$ac_ext <<_ACEOF
61472 cat confdefs.h >>conftest.$ac_ext
61473 cat >>conftest.$ac_ext <<_ACEOF
61474 /* end confdefs.h. */
61478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61479 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61480 ice_cv_have_bzero_decl=yes
61484 if test "$ice_cv_have_bzero_decl" = yes; then
61491 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
61492 $as_echo "$ice_cv_have_bzero_decl" >&6; }
61493 if test "$ice_cv_have_bzero_decl" = yes; then
61495 cat >>confdefs.h <<_ACEOF
61496 #define HAVE_BZERO_DECL 1
61502 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
61503 $as_echo_n "checking whether closedir returns void... " >&6; }
61504 if test "${ac_cv_func_closedir_void+set}" = set; then
61505 $as_echo_n "(cached) " >&6
61507 if test "$cross_compiling" = yes; then
61508 ac_cv_func_closedir_void=yes
61510 cat >conftest.$ac_ext <<_ACEOF
61513 cat confdefs.h >>conftest.$ac_ext
61514 cat >>conftest.$ac_ext <<_ACEOF
61515 /* end confdefs.h. */
61516 $ac_includes_default
61517 #include <$ac_header_dirent>
61518 #ifndef __cplusplus
61525 return closedir (opendir (".")) != 0;
61530 rm -f conftest$ac_exeext
61531 if { (ac_try="$ac_link"
61532 case "(($ac_try" in
61533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61534 *) ac_try_echo=$ac_try;;
61536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61537 $as_echo "$ac_try_echo") >&5
61538 (eval "$ac_link") 2>&5
61540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61542 { (case "(($ac_try" in
61543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61544 *) ac_try_echo=$ac_try;;
61546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61547 $as_echo "$ac_try_echo") >&5
61548 (eval "$ac_try") 2>&5
61550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61551 (exit $ac_status); }; }; then
61552 ac_cv_func_closedir_void=no
61554 $as_echo "$as_me: program exited with status $ac_status" >&5
61555 $as_echo "$as_me: failed program was:" >&5
61556 sed 's/^/| /' conftest.$ac_ext >&5
61558 ( exit $ac_status )
61559 ac_cv_func_closedir_void=yes
61561 rm -rf conftest.dSYM
61562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61567 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
61568 $as_echo "$ac_cv_func_closedir_void" >&6; }
61569 if test $ac_cv_func_closedir_void = yes; then
61571 cat >>confdefs.h <<\_ACEOF
61572 #define CLOSEDIR_VOID 1
61578 ice_have_closelog=no
61580 for ac_func in closelog
61582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61583 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61584 $as_echo_n "checking for $ac_func... " >&6; }
61585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61586 $as_echo_n "(cached) " >&6
61588 cat >conftest.$ac_ext <<_ACEOF
61591 cat confdefs.h >>conftest.$ac_ext
61592 cat >>conftest.$ac_ext <<_ACEOF
61593 /* end confdefs.h. */
61594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61596 #define $ac_func innocuous_$ac_func
61598 /* System header to define __stub macros and hopefully few prototypes,
61599 which can conflict with char $ac_func (); below.
61600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61601 <limits.h> exists even on freestanding compilers. */
61604 # include <limits.h>
61606 # include <assert.h>
61611 /* Override any GCC internal prototype to avoid an error.
61612 Use char because int might match the return type of a GCC
61613 builtin and then its argument prototype would still apply. */
61618 /* The GNU C library defines this for functions which it implements
61619 to always fail with ENOSYS. Some functions are actually named
61620 something starting with __ and the normal name is an alias. */
61621 #if defined __stub_$ac_func || defined __stub___$ac_func
61628 return $ac_func ();
61633 rm -f conftest.$ac_objext conftest$ac_exeext
61634 if { (ac_try="$ac_link"
61635 case "(($ac_try" in
61636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61637 *) ac_try_echo=$ac_try;;
61639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61640 $as_echo "$ac_try_echo") >&5
61641 (eval "$ac_link") 2>conftest.er1
61643 grep -v '^ *+' conftest.er1 >conftest.err
61645 cat conftest.err >&5
61646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61647 (exit $ac_status); } && {
61648 test -z "$ac_c_werror_flag" ||
61649 test ! -s conftest.err
61650 } && test -s conftest$ac_exeext && {
61651 test "$cross_compiling" = yes ||
61652 $as_test_x conftest$ac_exeext
61654 eval "$as_ac_var=yes"
61656 $as_echo "$as_me: failed program was:" >&5
61657 sed 's/^/| /' conftest.$ac_ext >&5
61659 eval "$as_ac_var=no"
61662 rm -rf conftest.dSYM
61663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61664 conftest$ac_exeext conftest.$ac_ext
61666 ac_res=`eval 'as_val=${'$as_ac_var'}
61667 $as_echo "$as_val"'`
61668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61669 $as_echo "$ac_res" >&6; }
61670 as_val=`eval 'as_val=${'$as_ac_var'}
61671 $as_echo "$as_val"'`
61672 if test "x$as_val" = x""yes; then
61673 cat >>confdefs.h <<_ACEOF
61674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61676 ice_have_closelog=yes
61680 if test "${ice_have_closelog}" = yes; then
61681 { $as_echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
61682 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
61683 if test "${ice_cv_have_closelog_decl+set}" = set; then
61684 $as_echo_n "(cached) " >&6
61687 ice_cv_have_closelog_decl=no
61688 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61689 ice_re_word='(^|[^a-zA-Z0-9_])'
61690 for header in syslog.h; do
61691 # Check for ordinary declaration
61692 cat >conftest.$ac_ext <<_ACEOF
61695 cat confdefs.h >>conftest.$ac_ext
61696 cat >>conftest.$ac_ext <<_ACEOF
61697 /* end confdefs.h. */
61701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61702 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then
61703 ice_cv_have_closelog_decl=yes
61707 if test "$ice_cv_have_closelog_decl" = yes; then
61710 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61711 cat >conftest.$ac_ext <<_ACEOF
61714 cat confdefs.h >>conftest.$ac_ext
61715 cat >>conftest.$ac_ext <<_ACEOF
61716 /* end confdefs.h. */
61720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61721 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61722 ice_cv_have_closelog_decl=yes
61726 if test "$ice_cv_have_closelog_decl" = yes; then
61733 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
61734 $as_echo "$ice_cv_have_closelog_decl" >&6; }
61735 if test "$ice_cv_have_closelog_decl" = yes; then
61737 cat >>confdefs.h <<_ACEOF
61738 #define HAVE_CLOSELOG_DECL 1
61745 ice_have_connect=no
61747 for ac_func in connect
61749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61750 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61751 $as_echo_n "checking for $ac_func... " >&6; }
61752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61753 $as_echo_n "(cached) " >&6
61755 cat >conftest.$ac_ext <<_ACEOF
61758 cat confdefs.h >>conftest.$ac_ext
61759 cat >>conftest.$ac_ext <<_ACEOF
61760 /* end confdefs.h. */
61761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61763 #define $ac_func innocuous_$ac_func
61765 /* System header to define __stub macros and hopefully few prototypes,
61766 which can conflict with char $ac_func (); below.
61767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61768 <limits.h> exists even on freestanding compilers. */
61771 # include <limits.h>
61773 # include <assert.h>
61778 /* Override any GCC internal prototype to avoid an error.
61779 Use char because int might match the return type of a GCC
61780 builtin and then its argument prototype would still apply. */
61785 /* The GNU C library defines this for functions which it implements
61786 to always fail with ENOSYS. Some functions are actually named
61787 something starting with __ and the normal name is an alias. */
61788 #if defined __stub_$ac_func || defined __stub___$ac_func
61795 return $ac_func ();
61800 rm -f conftest.$ac_objext conftest$ac_exeext
61801 if { (ac_try="$ac_link"
61802 case "(($ac_try" in
61803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61804 *) ac_try_echo=$ac_try;;
61806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61807 $as_echo "$ac_try_echo") >&5
61808 (eval "$ac_link") 2>conftest.er1
61810 grep -v '^ *+' conftest.er1 >conftest.err
61812 cat conftest.err >&5
61813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61814 (exit $ac_status); } && {
61815 test -z "$ac_c_werror_flag" ||
61816 test ! -s conftest.err
61817 } && test -s conftest$ac_exeext && {
61818 test "$cross_compiling" = yes ||
61819 $as_test_x conftest$ac_exeext
61821 eval "$as_ac_var=yes"
61823 $as_echo "$as_me: failed program was:" >&5
61824 sed 's/^/| /' conftest.$ac_ext >&5
61826 eval "$as_ac_var=no"
61829 rm -rf conftest.dSYM
61830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61831 conftest$ac_exeext conftest.$ac_ext
61833 ac_res=`eval 'as_val=${'$as_ac_var'}
61834 $as_echo "$as_val"'`
61835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61836 $as_echo "$ac_res" >&6; }
61837 as_val=`eval 'as_val=${'$as_ac_var'}
61838 $as_echo "$as_val"'`
61839 if test "x$as_val" = x""yes; then
61840 cat >>confdefs.h <<_ACEOF
61841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61843 ice_have_connect=yes
61847 if test "${ice_have_connect}" = yes; then
61848 { $as_echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
61849 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
61850 if test "${ice_cv_have_connect_decl+set}" = set; then
61851 $as_echo_n "(cached) " >&6
61854 ice_cv_have_connect_decl=no
61855 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61856 ice_re_word='(^|[^a-zA-Z0-9_])'
61857 for header in sys/types.h sys/socket.h; do
61858 # Check for ordinary declaration
61859 cat >conftest.$ac_ext <<_ACEOF
61862 cat confdefs.h >>conftest.$ac_ext
61863 cat >>conftest.$ac_ext <<_ACEOF
61864 /* end confdefs.h. */
61868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61869 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then
61870 ice_cv_have_connect_decl=yes
61874 if test "$ice_cv_have_connect_decl" = yes; then
61877 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61878 cat >conftest.$ac_ext <<_ACEOF
61881 cat confdefs.h >>conftest.$ac_ext
61882 cat >>conftest.$ac_ext <<_ACEOF
61883 /* end confdefs.h. */
61887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61888 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61889 ice_cv_have_connect_decl=yes
61893 if test "$ice_cv_have_connect_decl" = yes; then
61900 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
61901 $as_echo "$ice_cv_have_connect_decl" >&6; }
61902 if test "$ice_cv_have_connect_decl" = yes; then
61904 cat >>confdefs.h <<_ACEOF
61905 #define HAVE_CONNECT_DECL 1
61914 for ac_func in fclose
61916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61917 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61918 $as_echo_n "checking for $ac_func... " >&6; }
61919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61920 $as_echo_n "(cached) " >&6
61922 cat >conftest.$ac_ext <<_ACEOF
61925 cat confdefs.h >>conftest.$ac_ext
61926 cat >>conftest.$ac_ext <<_ACEOF
61927 /* end confdefs.h. */
61928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61930 #define $ac_func innocuous_$ac_func
61932 /* System header to define __stub macros and hopefully few prototypes,
61933 which can conflict with char $ac_func (); below.
61934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61935 <limits.h> exists even on freestanding compilers. */
61938 # include <limits.h>
61940 # include <assert.h>
61945 /* Override any GCC internal prototype to avoid an error.
61946 Use char because int might match the return type of a GCC
61947 builtin and then its argument prototype would still apply. */
61952 /* The GNU C library defines this for functions which it implements
61953 to always fail with ENOSYS. Some functions are actually named
61954 something starting with __ and the normal name is an alias. */
61955 #if defined __stub_$ac_func || defined __stub___$ac_func
61962 return $ac_func ();
61967 rm -f conftest.$ac_objext conftest$ac_exeext
61968 if { (ac_try="$ac_link"
61969 case "(($ac_try" in
61970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61971 *) ac_try_echo=$ac_try;;
61973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61974 $as_echo "$ac_try_echo") >&5
61975 (eval "$ac_link") 2>conftest.er1
61977 grep -v '^ *+' conftest.er1 >conftest.err
61979 cat conftest.err >&5
61980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61981 (exit $ac_status); } && {
61982 test -z "$ac_c_werror_flag" ||
61983 test ! -s conftest.err
61984 } && test -s conftest$ac_exeext && {
61985 test "$cross_compiling" = yes ||
61986 $as_test_x conftest$ac_exeext
61988 eval "$as_ac_var=yes"
61990 $as_echo "$as_me: failed program was:" >&5
61991 sed 's/^/| /' conftest.$ac_ext >&5
61993 eval "$as_ac_var=no"
61996 rm -rf conftest.dSYM
61997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61998 conftest$ac_exeext conftest.$ac_ext
62000 ac_res=`eval 'as_val=${'$as_ac_var'}
62001 $as_echo "$as_val"'`
62002 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62003 $as_echo "$ac_res" >&6; }
62004 as_val=`eval 'as_val=${'$as_ac_var'}
62005 $as_echo "$as_val"'`
62006 if test "x$as_val" = x""yes; then
62007 cat >>confdefs.h <<_ACEOF
62008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62010 ice_have_fclose=yes
62014 if test "${ice_have_fclose}" = yes; then
62015 { $as_echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
62016 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
62017 if test "${ice_cv_have_fclose_decl+set}" = set; then
62018 $as_echo_n "(cached) " >&6
62021 ice_cv_have_fclose_decl=no
62022 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62023 ice_re_word='(^|[^a-zA-Z0-9_])'
62024 for header in stdio.h; do
62025 # Check for ordinary declaration
62026 cat >conftest.$ac_ext <<_ACEOF
62029 cat confdefs.h >>conftest.$ac_ext
62030 cat >>conftest.$ac_ext <<_ACEOF
62031 /* end confdefs.h. */
62035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62036 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then
62037 ice_cv_have_fclose_decl=yes
62041 if test "$ice_cv_have_fclose_decl" = yes; then
62044 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62045 cat >conftest.$ac_ext <<_ACEOF
62048 cat confdefs.h >>conftest.$ac_ext
62049 cat >>conftest.$ac_ext <<_ACEOF
62050 /* end confdefs.h. */
62054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62055 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62056 ice_cv_have_fclose_decl=yes
62060 if test "$ice_cv_have_fclose_decl" = yes; then
62067 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
62068 $as_echo "$ice_cv_have_fclose_decl" >&6; }
62069 if test "$ice_cv_have_fclose_decl" = yes; then
62071 cat >>confdefs.h <<_ACEOF
62072 #define HAVE_FCLOSE_DECL 1
62081 for ac_func in fflush
62083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62084 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62085 $as_echo_n "checking for $ac_func... " >&6; }
62086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62087 $as_echo_n "(cached) " >&6
62089 cat >conftest.$ac_ext <<_ACEOF
62092 cat confdefs.h >>conftest.$ac_ext
62093 cat >>conftest.$ac_ext <<_ACEOF
62094 /* end confdefs.h. */
62095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62097 #define $ac_func innocuous_$ac_func
62099 /* System header to define __stub macros and hopefully few prototypes,
62100 which can conflict with char $ac_func (); below.
62101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62102 <limits.h> exists even on freestanding compilers. */
62105 # include <limits.h>
62107 # include <assert.h>
62112 /* Override any GCC internal prototype to avoid an error.
62113 Use char because int might match the return type of a GCC
62114 builtin and then its argument prototype would still apply. */
62119 /* The GNU C library defines this for functions which it implements
62120 to always fail with ENOSYS. Some functions are actually named
62121 something starting with __ and the normal name is an alias. */
62122 #if defined __stub_$ac_func || defined __stub___$ac_func
62129 return $ac_func ();
62134 rm -f conftest.$ac_objext conftest$ac_exeext
62135 if { (ac_try="$ac_link"
62136 case "(($ac_try" in
62137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62138 *) ac_try_echo=$ac_try;;
62140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62141 $as_echo "$ac_try_echo") >&5
62142 (eval "$ac_link") 2>conftest.er1
62144 grep -v '^ *+' conftest.er1 >conftest.err
62146 cat conftest.err >&5
62147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62148 (exit $ac_status); } && {
62149 test -z "$ac_c_werror_flag" ||
62150 test ! -s conftest.err
62151 } && test -s conftest$ac_exeext && {
62152 test "$cross_compiling" = yes ||
62153 $as_test_x conftest$ac_exeext
62155 eval "$as_ac_var=yes"
62157 $as_echo "$as_me: failed program was:" >&5
62158 sed 's/^/| /' conftest.$ac_ext >&5
62160 eval "$as_ac_var=no"
62163 rm -rf conftest.dSYM
62164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62165 conftest$ac_exeext conftest.$ac_ext
62167 ac_res=`eval 'as_val=${'$as_ac_var'}
62168 $as_echo "$as_val"'`
62169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62170 $as_echo "$ac_res" >&6; }
62171 as_val=`eval 'as_val=${'$as_ac_var'}
62172 $as_echo "$as_val"'`
62173 if test "x$as_val" = x""yes; then
62174 cat >>confdefs.h <<_ACEOF
62175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62177 ice_have_fflush=yes
62181 if test "${ice_have_fflush}" = yes; then
62182 { $as_echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
62183 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
62184 if test "${ice_cv_have_fflush_decl+set}" = set; then
62185 $as_echo_n "(cached) " >&6
62188 ice_cv_have_fflush_decl=no
62189 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62190 ice_re_word='(^|[^a-zA-Z0-9_])'
62191 for header in stdio.h; do
62192 # Check for ordinary declaration
62193 cat >conftest.$ac_ext <<_ACEOF
62196 cat confdefs.h >>conftest.$ac_ext
62197 cat >>conftest.$ac_ext <<_ACEOF
62198 /* end confdefs.h. */
62202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62203 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then
62204 ice_cv_have_fflush_decl=yes
62208 if test "$ice_cv_have_fflush_decl" = yes; then
62211 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62212 cat >conftest.$ac_ext <<_ACEOF
62215 cat confdefs.h >>conftest.$ac_ext
62216 cat >>conftest.$ac_ext <<_ACEOF
62217 /* end confdefs.h. */
62221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62222 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62223 ice_cv_have_fflush_decl=yes
62227 if test "$ice_cv_have_fflush_decl" = yes; then
62234 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
62235 $as_echo "$ice_cv_have_fflush_decl" >&6; }
62236 if test "$ice_cv_have_fflush_decl" = yes; then
62238 cat >>confdefs.h <<_ACEOF
62239 #define HAVE_FFLUSH_DECL 1
62246 ice_have_fprintf=no
62248 for ac_func in fprintf
62250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62252 $as_echo_n "checking for $ac_func... " >&6; }
62253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62254 $as_echo_n "(cached) " >&6
62256 cat >conftest.$ac_ext <<_ACEOF
62259 cat confdefs.h >>conftest.$ac_ext
62260 cat >>conftest.$ac_ext <<_ACEOF
62261 /* end confdefs.h. */
62262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62264 #define $ac_func innocuous_$ac_func
62266 /* System header to define __stub macros and hopefully few prototypes,
62267 which can conflict with char $ac_func (); below.
62268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62269 <limits.h> exists even on freestanding compilers. */
62272 # include <limits.h>
62274 # include <assert.h>
62279 /* Override any GCC internal prototype to avoid an error.
62280 Use char because int might match the return type of a GCC
62281 builtin and then its argument prototype would still apply. */
62286 /* The GNU C library defines this for functions which it implements
62287 to always fail with ENOSYS. Some functions are actually named
62288 something starting with __ and the normal name is an alias. */
62289 #if defined __stub_$ac_func || defined __stub___$ac_func
62296 return $ac_func ();
62301 rm -f conftest.$ac_objext conftest$ac_exeext
62302 if { (ac_try="$ac_link"
62303 case "(($ac_try" in
62304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62305 *) ac_try_echo=$ac_try;;
62307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62308 $as_echo "$ac_try_echo") >&5
62309 (eval "$ac_link") 2>conftest.er1
62311 grep -v '^ *+' conftest.er1 >conftest.err
62313 cat conftest.err >&5
62314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62315 (exit $ac_status); } && {
62316 test -z "$ac_c_werror_flag" ||
62317 test ! -s conftest.err
62318 } && test -s conftest$ac_exeext && {
62319 test "$cross_compiling" = yes ||
62320 $as_test_x conftest$ac_exeext
62322 eval "$as_ac_var=yes"
62324 $as_echo "$as_me: failed program was:" >&5
62325 sed 's/^/| /' conftest.$ac_ext >&5
62327 eval "$as_ac_var=no"
62330 rm -rf conftest.dSYM
62331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62332 conftest$ac_exeext conftest.$ac_ext
62334 ac_res=`eval 'as_val=${'$as_ac_var'}
62335 $as_echo "$as_val"'`
62336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62337 $as_echo "$ac_res" >&6; }
62338 as_val=`eval 'as_val=${'$as_ac_var'}
62339 $as_echo "$as_val"'`
62340 if test "x$as_val" = x""yes; then
62341 cat >>confdefs.h <<_ACEOF
62342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62344 ice_have_fprintf=yes
62348 if test "${ice_have_fprintf}" = yes; then
62349 { $as_echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
62350 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
62351 if test "${ice_cv_have_fprintf_decl+set}" = set; then
62352 $as_echo_n "(cached) " >&6
62355 ice_cv_have_fprintf_decl=no
62356 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62357 ice_re_word='(^|[^a-zA-Z0-9_])'
62358 for header in stdio.h; do
62359 # Check for ordinary declaration
62360 cat >conftest.$ac_ext <<_ACEOF
62363 cat confdefs.h >>conftest.$ac_ext
62364 cat >>conftest.$ac_ext <<_ACEOF
62365 /* end confdefs.h. */
62369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62370 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then
62371 ice_cv_have_fprintf_decl=yes
62375 if test "$ice_cv_have_fprintf_decl" = yes; then
62378 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62379 cat >conftest.$ac_ext <<_ACEOF
62382 cat confdefs.h >>conftest.$ac_ext
62383 cat >>conftest.$ac_ext <<_ACEOF
62384 /* end confdefs.h. */
62388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62389 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62390 ice_cv_have_fprintf_decl=yes
62394 if test "$ice_cv_have_fprintf_decl" = yes; then
62401 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
62402 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
62403 if test "$ice_cv_have_fprintf_decl" = yes; then
62405 cat >>confdefs.h <<_ACEOF
62406 #define HAVE_FPRINTF_DECL 1
62415 for ac_func in fputc
62417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62419 $as_echo_n "checking for $ac_func... " >&6; }
62420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62421 $as_echo_n "(cached) " >&6
62423 cat >conftest.$ac_ext <<_ACEOF
62426 cat confdefs.h >>conftest.$ac_ext
62427 cat >>conftest.$ac_ext <<_ACEOF
62428 /* end confdefs.h. */
62429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62431 #define $ac_func innocuous_$ac_func
62433 /* System header to define __stub macros and hopefully few prototypes,
62434 which can conflict with char $ac_func (); below.
62435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62436 <limits.h> exists even on freestanding compilers. */
62439 # include <limits.h>
62441 # include <assert.h>
62446 /* Override any GCC internal prototype to avoid an error.
62447 Use char because int might match the return type of a GCC
62448 builtin and then its argument prototype would still apply. */
62453 /* The GNU C library defines this for functions which it implements
62454 to always fail with ENOSYS. Some functions are actually named
62455 something starting with __ and the normal name is an alias. */
62456 #if defined __stub_$ac_func || defined __stub___$ac_func
62463 return $ac_func ();
62468 rm -f conftest.$ac_objext conftest$ac_exeext
62469 if { (ac_try="$ac_link"
62470 case "(($ac_try" in
62471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62472 *) ac_try_echo=$ac_try;;
62474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62475 $as_echo "$ac_try_echo") >&5
62476 (eval "$ac_link") 2>conftest.er1
62478 grep -v '^ *+' conftest.er1 >conftest.err
62480 cat conftest.err >&5
62481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62482 (exit $ac_status); } && {
62483 test -z "$ac_c_werror_flag" ||
62484 test ! -s conftest.err
62485 } && test -s conftest$ac_exeext && {
62486 test "$cross_compiling" = yes ||
62487 $as_test_x conftest$ac_exeext
62489 eval "$as_ac_var=yes"
62491 $as_echo "$as_me: failed program was:" >&5
62492 sed 's/^/| /' conftest.$ac_ext >&5
62494 eval "$as_ac_var=no"
62497 rm -rf conftest.dSYM
62498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62499 conftest$ac_exeext conftest.$ac_ext
62501 ac_res=`eval 'as_val=${'$as_ac_var'}
62502 $as_echo "$as_val"'`
62503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62504 $as_echo "$ac_res" >&6; }
62505 as_val=`eval 'as_val=${'$as_ac_var'}
62506 $as_echo "$as_val"'`
62507 if test "x$as_val" = x""yes; then
62508 cat >>confdefs.h <<_ACEOF
62509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62515 if test "${ice_have_fputc}" = yes; then
62516 { $as_echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
62517 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
62518 if test "${ice_cv_have_fputc_decl+set}" = set; then
62519 $as_echo_n "(cached) " >&6
62522 ice_cv_have_fputc_decl=no
62523 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62524 ice_re_word='(^|[^a-zA-Z0-9_])'
62525 for header in stdio.h; do
62526 # Check for ordinary declaration
62527 cat >conftest.$ac_ext <<_ACEOF
62530 cat confdefs.h >>conftest.$ac_ext
62531 cat >>conftest.$ac_ext <<_ACEOF
62532 /* end confdefs.h. */
62536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62537 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then
62538 ice_cv_have_fputc_decl=yes
62542 if test "$ice_cv_have_fputc_decl" = yes; then
62545 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62546 cat >conftest.$ac_ext <<_ACEOF
62549 cat confdefs.h >>conftest.$ac_ext
62550 cat >>conftest.$ac_ext <<_ACEOF
62551 /* end confdefs.h. */
62555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62556 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62557 ice_cv_have_fputc_decl=yes
62561 if test "$ice_cv_have_fputc_decl" = yes; then
62568 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
62569 $as_echo "$ice_cv_have_fputc_decl" >&6; }
62570 if test "$ice_cv_have_fputc_decl" = yes; then
62572 cat >>confdefs.h <<_ACEOF
62573 #define HAVE_FPUTC_DECL 1
62582 for ac_func in fputs
62584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62585 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62586 $as_echo_n "checking for $ac_func... " >&6; }
62587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62588 $as_echo_n "(cached) " >&6
62590 cat >conftest.$ac_ext <<_ACEOF
62593 cat confdefs.h >>conftest.$ac_ext
62594 cat >>conftest.$ac_ext <<_ACEOF
62595 /* end confdefs.h. */
62596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62598 #define $ac_func innocuous_$ac_func
62600 /* System header to define __stub macros and hopefully few prototypes,
62601 which can conflict with char $ac_func (); below.
62602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62603 <limits.h> exists even on freestanding compilers. */
62606 # include <limits.h>
62608 # include <assert.h>
62613 /* Override any GCC internal prototype to avoid an error.
62614 Use char because int might match the return type of a GCC
62615 builtin and then its argument prototype would still apply. */
62620 /* The GNU C library defines this for functions which it implements
62621 to always fail with ENOSYS. Some functions are actually named
62622 something starting with __ and the normal name is an alias. */
62623 #if defined __stub_$ac_func || defined __stub___$ac_func
62630 return $ac_func ();
62635 rm -f conftest.$ac_objext conftest$ac_exeext
62636 if { (ac_try="$ac_link"
62637 case "(($ac_try" in
62638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62639 *) ac_try_echo=$ac_try;;
62641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62642 $as_echo "$ac_try_echo") >&5
62643 (eval "$ac_link") 2>conftest.er1
62645 grep -v '^ *+' conftest.er1 >conftest.err
62647 cat conftest.err >&5
62648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62649 (exit $ac_status); } && {
62650 test -z "$ac_c_werror_flag" ||
62651 test ! -s conftest.err
62652 } && test -s conftest$ac_exeext && {
62653 test "$cross_compiling" = yes ||
62654 $as_test_x conftest$ac_exeext
62656 eval "$as_ac_var=yes"
62658 $as_echo "$as_me: failed program was:" >&5
62659 sed 's/^/| /' conftest.$ac_ext >&5
62661 eval "$as_ac_var=no"
62664 rm -rf conftest.dSYM
62665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62666 conftest$ac_exeext conftest.$ac_ext
62668 ac_res=`eval 'as_val=${'$as_ac_var'}
62669 $as_echo "$as_val"'`
62670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62671 $as_echo "$ac_res" >&6; }
62672 as_val=`eval 'as_val=${'$as_ac_var'}
62673 $as_echo "$as_val"'`
62674 if test "x$as_val" = x""yes; then
62675 cat >>confdefs.h <<_ACEOF
62676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62682 if test "${ice_have_fputs}" = yes; then
62683 { $as_echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
62684 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
62685 if test "${ice_cv_have_fputs_decl+set}" = set; then
62686 $as_echo_n "(cached) " >&6
62689 ice_cv_have_fputs_decl=no
62690 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62691 ice_re_word='(^|[^a-zA-Z0-9_])'
62692 for header in stdio.h; do
62693 # Check for ordinary declaration
62694 cat >conftest.$ac_ext <<_ACEOF
62697 cat confdefs.h >>conftest.$ac_ext
62698 cat >>conftest.$ac_ext <<_ACEOF
62699 /* end confdefs.h. */
62703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62704 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then
62705 ice_cv_have_fputs_decl=yes
62709 if test "$ice_cv_have_fputs_decl" = yes; then
62712 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62713 cat >conftest.$ac_ext <<_ACEOF
62716 cat confdefs.h >>conftest.$ac_ext
62717 cat >>conftest.$ac_ext <<_ACEOF
62718 /* end confdefs.h. */
62722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62723 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62724 ice_cv_have_fputs_decl=yes
62728 if test "$ice_cv_have_fputs_decl" = yes; then
62735 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
62736 $as_echo "$ice_cv_have_fputs_decl" >&6; }
62737 if test "$ice_cv_have_fputs_decl" = yes; then
62739 cat >>confdefs.h <<_ACEOF
62740 #define HAVE_FPUTS_DECL 1
62749 for ac_func in fread
62751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62752 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62753 $as_echo_n "checking for $ac_func... " >&6; }
62754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62755 $as_echo_n "(cached) " >&6
62757 cat >conftest.$ac_ext <<_ACEOF
62760 cat confdefs.h >>conftest.$ac_ext
62761 cat >>conftest.$ac_ext <<_ACEOF
62762 /* end confdefs.h. */
62763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62765 #define $ac_func innocuous_$ac_func
62767 /* System header to define __stub macros and hopefully few prototypes,
62768 which can conflict with char $ac_func (); below.
62769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62770 <limits.h> exists even on freestanding compilers. */
62773 # include <limits.h>
62775 # include <assert.h>
62780 /* Override any GCC internal prototype to avoid an error.
62781 Use char because int might match the return type of a GCC
62782 builtin and then its argument prototype would still apply. */
62787 /* The GNU C library defines this for functions which it implements
62788 to always fail with ENOSYS. Some functions are actually named
62789 something starting with __ and the normal name is an alias. */
62790 #if defined __stub_$ac_func || defined __stub___$ac_func
62797 return $ac_func ();
62802 rm -f conftest.$ac_objext conftest$ac_exeext
62803 if { (ac_try="$ac_link"
62804 case "(($ac_try" in
62805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62806 *) ac_try_echo=$ac_try;;
62808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62809 $as_echo "$ac_try_echo") >&5
62810 (eval "$ac_link") 2>conftest.er1
62812 grep -v '^ *+' conftest.er1 >conftest.err
62814 cat conftest.err >&5
62815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62816 (exit $ac_status); } && {
62817 test -z "$ac_c_werror_flag" ||
62818 test ! -s conftest.err
62819 } && test -s conftest$ac_exeext && {
62820 test "$cross_compiling" = yes ||
62821 $as_test_x conftest$ac_exeext
62823 eval "$as_ac_var=yes"
62825 $as_echo "$as_me: failed program was:" >&5
62826 sed 's/^/| /' conftest.$ac_ext >&5
62828 eval "$as_ac_var=no"
62831 rm -rf conftest.dSYM
62832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62833 conftest$ac_exeext conftest.$ac_ext
62835 ac_res=`eval 'as_val=${'$as_ac_var'}
62836 $as_echo "$as_val"'`
62837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62838 $as_echo "$ac_res" >&6; }
62839 as_val=`eval 'as_val=${'$as_ac_var'}
62840 $as_echo "$as_val"'`
62841 if test "x$as_val" = x""yes; then
62842 cat >>confdefs.h <<_ACEOF
62843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62849 if test "${ice_have_fread}" = yes; then
62850 { $as_echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
62851 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
62852 if test "${ice_cv_have_fread_decl+set}" = set; then
62853 $as_echo_n "(cached) " >&6
62856 ice_cv_have_fread_decl=no
62857 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62858 ice_re_word='(^|[^a-zA-Z0-9_])'
62859 for header in stdio.h stdlib.h; do
62860 # Check for ordinary declaration
62861 cat >conftest.$ac_ext <<_ACEOF
62864 cat confdefs.h >>conftest.$ac_ext
62865 cat >>conftest.$ac_ext <<_ACEOF
62866 /* end confdefs.h. */
62870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62871 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then
62872 ice_cv_have_fread_decl=yes
62876 if test "$ice_cv_have_fread_decl" = yes; then
62879 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62880 cat >conftest.$ac_ext <<_ACEOF
62883 cat confdefs.h >>conftest.$ac_ext
62884 cat >>conftest.$ac_ext <<_ACEOF
62885 /* end confdefs.h. */
62889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62890 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62891 ice_cv_have_fread_decl=yes
62895 if test "$ice_cv_have_fread_decl" = yes; then
62902 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
62903 $as_echo "$ice_cv_have_fread_decl" >&6; }
62904 if test "$ice_cv_have_fread_decl" = yes; then
62906 cat >>confdefs.h <<_ACEOF
62907 #define HAVE_FREAD_DECL 1
62916 for ac_func in fseek
62918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62919 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62920 $as_echo_n "checking for $ac_func... " >&6; }
62921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62922 $as_echo_n "(cached) " >&6
62924 cat >conftest.$ac_ext <<_ACEOF
62927 cat confdefs.h >>conftest.$ac_ext
62928 cat >>conftest.$ac_ext <<_ACEOF
62929 /* end confdefs.h. */
62930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62932 #define $ac_func innocuous_$ac_func
62934 /* System header to define __stub macros and hopefully few prototypes,
62935 which can conflict with char $ac_func (); below.
62936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62937 <limits.h> exists even on freestanding compilers. */
62940 # include <limits.h>
62942 # include <assert.h>
62947 /* Override any GCC internal prototype to avoid an error.
62948 Use char because int might match the return type of a GCC
62949 builtin and then its argument prototype would still apply. */
62954 /* The GNU C library defines this for functions which it implements
62955 to always fail with ENOSYS. Some functions are actually named
62956 something starting with __ and the normal name is an alias. */
62957 #if defined __stub_$ac_func || defined __stub___$ac_func
62964 return $ac_func ();
62969 rm -f conftest.$ac_objext conftest$ac_exeext
62970 if { (ac_try="$ac_link"
62971 case "(($ac_try" in
62972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62973 *) ac_try_echo=$ac_try;;
62975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62976 $as_echo "$ac_try_echo") >&5
62977 (eval "$ac_link") 2>conftest.er1
62979 grep -v '^ *+' conftest.er1 >conftest.err
62981 cat conftest.err >&5
62982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62983 (exit $ac_status); } && {
62984 test -z "$ac_c_werror_flag" ||
62985 test ! -s conftest.err
62986 } && test -s conftest$ac_exeext && {
62987 test "$cross_compiling" = yes ||
62988 $as_test_x conftest$ac_exeext
62990 eval "$as_ac_var=yes"
62992 $as_echo "$as_me: failed program was:" >&5
62993 sed 's/^/| /' conftest.$ac_ext >&5
62995 eval "$as_ac_var=no"
62998 rm -rf conftest.dSYM
62999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63000 conftest$ac_exeext conftest.$ac_ext
63002 ac_res=`eval 'as_val=${'$as_ac_var'}
63003 $as_echo "$as_val"'`
63004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63005 $as_echo "$ac_res" >&6; }
63006 as_val=`eval 'as_val=${'$as_ac_var'}
63007 $as_echo "$as_val"'`
63008 if test "x$as_val" = x""yes; then
63009 cat >>confdefs.h <<_ACEOF
63010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63016 if test "${ice_have_fseek}" = yes; then
63017 { $as_echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
63018 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
63019 if test "${ice_cv_have_fseek_decl+set}" = set; then
63020 $as_echo_n "(cached) " >&6
63023 ice_cv_have_fseek_decl=no
63024 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63025 ice_re_word='(^|[^a-zA-Z0-9_])'
63026 for header in stdio.h; do
63027 # Check for ordinary declaration
63028 cat >conftest.$ac_ext <<_ACEOF
63031 cat confdefs.h >>conftest.$ac_ext
63032 cat >>conftest.$ac_ext <<_ACEOF
63033 /* end confdefs.h. */
63037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63038 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then
63039 ice_cv_have_fseek_decl=yes
63043 if test "$ice_cv_have_fseek_decl" = yes; then
63046 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63047 cat >conftest.$ac_ext <<_ACEOF
63050 cat confdefs.h >>conftest.$ac_ext
63051 cat >>conftest.$ac_ext <<_ACEOF
63052 /* end confdefs.h. */
63056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63057 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63058 ice_cv_have_fseek_decl=yes
63062 if test "$ice_cv_have_fseek_decl" = yes; then
63069 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
63070 $as_echo "$ice_cv_have_fseek_decl" >&6; }
63071 if test "$ice_cv_have_fseek_decl" = yes; then
63073 cat >>confdefs.h <<_ACEOF
63074 #define HAVE_FSEEK_DECL 1
63083 for ac_func in fwrite
63085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63086 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63087 $as_echo_n "checking for $ac_func... " >&6; }
63088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63089 $as_echo_n "(cached) " >&6
63091 cat >conftest.$ac_ext <<_ACEOF
63094 cat confdefs.h >>conftest.$ac_ext
63095 cat >>conftest.$ac_ext <<_ACEOF
63096 /* end confdefs.h. */
63097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63099 #define $ac_func innocuous_$ac_func
63101 /* System header to define __stub macros and hopefully few prototypes,
63102 which can conflict with char $ac_func (); below.
63103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63104 <limits.h> exists even on freestanding compilers. */
63107 # include <limits.h>
63109 # include <assert.h>
63114 /* Override any GCC internal prototype to avoid an error.
63115 Use char because int might match the return type of a GCC
63116 builtin and then its argument prototype would still apply. */
63121 /* The GNU C library defines this for functions which it implements
63122 to always fail with ENOSYS. Some functions are actually named
63123 something starting with __ and the normal name is an alias. */
63124 #if defined __stub_$ac_func || defined __stub___$ac_func
63131 return $ac_func ();
63136 rm -f conftest.$ac_objext conftest$ac_exeext
63137 if { (ac_try="$ac_link"
63138 case "(($ac_try" in
63139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63140 *) ac_try_echo=$ac_try;;
63142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63143 $as_echo "$ac_try_echo") >&5
63144 (eval "$ac_link") 2>conftest.er1
63146 grep -v '^ *+' conftest.er1 >conftest.err
63148 cat conftest.err >&5
63149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63150 (exit $ac_status); } && {
63151 test -z "$ac_c_werror_flag" ||
63152 test ! -s conftest.err
63153 } && test -s conftest$ac_exeext && {
63154 test "$cross_compiling" = yes ||
63155 $as_test_x conftest$ac_exeext
63157 eval "$as_ac_var=yes"
63159 $as_echo "$as_me: failed program was:" >&5
63160 sed 's/^/| /' conftest.$ac_ext >&5
63162 eval "$as_ac_var=no"
63165 rm -rf conftest.dSYM
63166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63167 conftest$ac_exeext conftest.$ac_ext
63169 ac_res=`eval 'as_val=${'$as_ac_var'}
63170 $as_echo "$as_val"'`
63171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63172 $as_echo "$ac_res" >&6; }
63173 as_val=`eval 'as_val=${'$as_ac_var'}
63174 $as_echo "$as_val"'`
63175 if test "x$as_val" = x""yes; then
63176 cat >>confdefs.h <<_ACEOF
63177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63179 ice_have_fwrite=yes
63183 if test "${ice_have_fwrite}" = yes; then
63184 { $as_echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
63185 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
63186 if test "${ice_cv_have_fwrite_decl+set}" = set; then
63187 $as_echo_n "(cached) " >&6
63190 ice_cv_have_fwrite_decl=no
63191 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63192 ice_re_word='(^|[^a-zA-Z0-9_])'
63193 for header in stdio.h stdlib.h; do
63194 # Check for ordinary declaration
63195 cat >conftest.$ac_ext <<_ACEOF
63198 cat confdefs.h >>conftest.$ac_ext
63199 cat >>conftest.$ac_ext <<_ACEOF
63200 /* end confdefs.h. */
63204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63205 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then
63206 ice_cv_have_fwrite_decl=yes
63210 if test "$ice_cv_have_fwrite_decl" = yes; then
63213 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63214 cat >conftest.$ac_ext <<_ACEOF
63217 cat confdefs.h >>conftest.$ac_ext
63218 cat >>conftest.$ac_ext <<_ACEOF
63219 /* end confdefs.h. */
63223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63224 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63225 ice_cv_have_fwrite_decl=yes
63229 if test "$ice_cv_have_fwrite_decl" = yes; then
63236 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
63237 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
63238 if test "$ice_cv_have_fwrite_decl" = yes; then
63240 cat >>confdefs.h <<_ACEOF
63241 #define HAVE_FWRITE_DECL 1
63248 for ac_func in getgrgid_r
63250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63252 $as_echo_n "checking for $ac_func... " >&6; }
63253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63254 $as_echo_n "(cached) " >&6
63256 cat >conftest.$ac_ext <<_ACEOF
63259 cat confdefs.h >>conftest.$ac_ext
63260 cat >>conftest.$ac_ext <<_ACEOF
63261 /* end confdefs.h. */
63262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63264 #define $ac_func innocuous_$ac_func
63266 /* System header to define __stub macros and hopefully few prototypes,
63267 which can conflict with char $ac_func (); below.
63268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63269 <limits.h> exists even on freestanding compilers. */
63272 # include <limits.h>
63274 # include <assert.h>
63279 /* Override any GCC internal prototype to avoid an error.
63280 Use char because int might match the return type of a GCC
63281 builtin and then its argument prototype would still apply. */
63286 /* The GNU C library defines this for functions which it implements
63287 to always fail with ENOSYS. Some functions are actually named
63288 something starting with __ and the normal name is an alias. */
63289 #if defined __stub_$ac_func || defined __stub___$ac_func
63296 return $ac_func ();
63301 rm -f conftest.$ac_objext conftest$ac_exeext
63302 if { (ac_try="$ac_link"
63303 case "(($ac_try" in
63304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63305 *) ac_try_echo=$ac_try;;
63307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63308 $as_echo "$ac_try_echo") >&5
63309 (eval "$ac_link") 2>conftest.er1
63311 grep -v '^ *+' conftest.er1 >conftest.err
63313 cat conftest.err >&5
63314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63315 (exit $ac_status); } && {
63316 test -z "$ac_c_werror_flag" ||
63317 test ! -s conftest.err
63318 } && test -s conftest$ac_exeext && {
63319 test "$cross_compiling" = yes ||
63320 $as_test_x conftest$ac_exeext
63322 eval "$as_ac_var=yes"
63324 $as_echo "$as_me: failed program was:" >&5
63325 sed 's/^/| /' conftest.$ac_ext >&5
63327 eval "$as_ac_var=no"
63330 rm -rf conftest.dSYM
63331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63332 conftest$ac_exeext conftest.$ac_ext
63334 ac_res=`eval 'as_val=${'$as_ac_var'}
63335 $as_echo "$as_val"'`
63336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63337 $as_echo "$ac_res" >&6; }
63338 as_val=`eval 'as_val=${'$as_ac_var'}
63339 $as_echo "$as_val"'`
63340 if test "x$as_val" = x""yes; then
63341 cat >>confdefs.h <<_ACEOF
63342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63349 for ac_func in getpwuid_r
63351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63352 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63353 $as_echo_n "checking for $ac_func... " >&6; }
63354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63355 $as_echo_n "(cached) " >&6
63357 cat >conftest.$ac_ext <<_ACEOF
63360 cat confdefs.h >>conftest.$ac_ext
63361 cat >>conftest.$ac_ext <<_ACEOF
63362 /* end confdefs.h. */
63363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63365 #define $ac_func innocuous_$ac_func
63367 /* System header to define __stub macros and hopefully few prototypes,
63368 which can conflict with char $ac_func (); below.
63369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63370 <limits.h> exists even on freestanding compilers. */
63373 # include <limits.h>
63375 # include <assert.h>
63380 /* Override any GCC internal prototype to avoid an error.
63381 Use char because int might match the return type of a GCC
63382 builtin and then its argument prototype would still apply. */
63387 /* The GNU C library defines this for functions which it implements
63388 to always fail with ENOSYS. Some functions are actually named
63389 something starting with __ and the normal name is an alias. */
63390 #if defined __stub_$ac_func || defined __stub___$ac_func
63397 return $ac_func ();
63402 rm -f conftest.$ac_objext conftest$ac_exeext
63403 if { (ac_try="$ac_link"
63404 case "(($ac_try" in
63405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63406 *) ac_try_echo=$ac_try;;
63408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63409 $as_echo "$ac_try_echo") >&5
63410 (eval "$ac_link") 2>conftest.er1
63412 grep -v '^ *+' conftest.er1 >conftest.err
63414 cat conftest.err >&5
63415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63416 (exit $ac_status); } && {
63417 test -z "$ac_c_werror_flag" ||
63418 test ! -s conftest.err
63419 } && test -s conftest$ac_exeext && {
63420 test "$cross_compiling" = yes ||
63421 $as_test_x conftest$ac_exeext
63423 eval "$as_ac_var=yes"
63425 $as_echo "$as_me: failed program was:" >&5
63426 sed 's/^/| /' conftest.$ac_ext >&5
63428 eval "$as_ac_var=no"
63431 rm -rf conftest.dSYM
63432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63433 conftest$ac_exeext conftest.$ac_ext
63435 ac_res=`eval 'as_val=${'$as_ac_var'}
63436 $as_echo "$as_val"'`
63437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63438 $as_echo "$ac_res" >&6; }
63439 as_val=`eval 'as_val=${'$as_ac_var'}
63440 $as_echo "$as_val"'`
63441 if test "x$as_val" = x""yes; then
63442 cat >>confdefs.h <<_ACEOF
63443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63450 ice_have_gethostname=no
63452 for ac_func in gethostname
63454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63455 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63456 $as_echo_n "checking for $ac_func... " >&6; }
63457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63458 $as_echo_n "(cached) " >&6
63460 cat >conftest.$ac_ext <<_ACEOF
63463 cat confdefs.h >>conftest.$ac_ext
63464 cat >>conftest.$ac_ext <<_ACEOF
63465 /* end confdefs.h. */
63466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63468 #define $ac_func innocuous_$ac_func
63470 /* System header to define __stub macros and hopefully few prototypes,
63471 which can conflict with char $ac_func (); below.
63472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63473 <limits.h> exists even on freestanding compilers. */
63476 # include <limits.h>
63478 # include <assert.h>
63483 /* Override any GCC internal prototype to avoid an error.
63484 Use char because int might match the return type of a GCC
63485 builtin and then its argument prototype would still apply. */
63490 /* The GNU C library defines this for functions which it implements
63491 to always fail with ENOSYS. Some functions are actually named
63492 something starting with __ and the normal name is an alias. */
63493 #if defined __stub_$ac_func || defined __stub___$ac_func
63500 return $ac_func ();
63505 rm -f conftest.$ac_objext conftest$ac_exeext
63506 if { (ac_try="$ac_link"
63507 case "(($ac_try" in
63508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63509 *) ac_try_echo=$ac_try;;
63511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63512 $as_echo "$ac_try_echo") >&5
63513 (eval "$ac_link") 2>conftest.er1
63515 grep -v '^ *+' conftest.er1 >conftest.err
63517 cat conftest.err >&5
63518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63519 (exit $ac_status); } && {
63520 test -z "$ac_c_werror_flag" ||
63521 test ! -s conftest.err
63522 } && test -s conftest$ac_exeext && {
63523 test "$cross_compiling" = yes ||
63524 $as_test_x conftest$ac_exeext
63526 eval "$as_ac_var=yes"
63528 $as_echo "$as_me: failed program was:" >&5
63529 sed 's/^/| /' conftest.$ac_ext >&5
63531 eval "$as_ac_var=no"
63534 rm -rf conftest.dSYM
63535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63536 conftest$ac_exeext conftest.$ac_ext
63538 ac_res=`eval 'as_val=${'$as_ac_var'}
63539 $as_echo "$as_val"'`
63540 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63541 $as_echo "$ac_res" >&6; }
63542 as_val=`eval 'as_val=${'$as_ac_var'}
63543 $as_echo "$as_val"'`
63544 if test "x$as_val" = x""yes; then
63545 cat >>confdefs.h <<_ACEOF
63546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63548 ice_have_gethostname=yes
63552 if test "${ice_have_gethostname}" = yes; then
63553 { $as_echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
63554 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
63555 if test "${ice_cv_have_gethostname_decl+set}" = set; then
63556 $as_echo_n "(cached) " >&6
63559 ice_cv_have_gethostname_decl=no
63560 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63561 ice_re_word='(^|[^a-zA-Z0-9_])'
63562 for header in unistd.h; do
63563 # Check for ordinary declaration
63564 cat >conftest.$ac_ext <<_ACEOF
63567 cat confdefs.h >>conftest.$ac_ext
63568 cat >>conftest.$ac_ext <<_ACEOF
63569 /* end confdefs.h. */
63573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63574 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then
63575 ice_cv_have_gethostname_decl=yes
63579 if test "$ice_cv_have_gethostname_decl" = yes; then
63582 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63583 cat >conftest.$ac_ext <<_ACEOF
63586 cat confdefs.h >>conftest.$ac_ext
63587 cat >>conftest.$ac_ext <<_ACEOF
63588 /* end confdefs.h. */
63592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63593 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63594 ice_cv_have_gethostname_decl=yes
63598 if test "$ice_cv_have_gethostname_decl" = yes; then
63605 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
63606 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
63607 if test "$ice_cv_have_gethostname_decl" = yes; then
63609 cat >>confdefs.h <<_ACEOF
63610 #define HAVE_GETHOSTNAME_DECL 1
63619 for ac_func in getopt
63621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63623 $as_echo_n "checking for $ac_func... " >&6; }
63624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63625 $as_echo_n "(cached) " >&6
63627 cat >conftest.$ac_ext <<_ACEOF
63630 cat confdefs.h >>conftest.$ac_ext
63631 cat >>conftest.$ac_ext <<_ACEOF
63632 /* end confdefs.h. */
63633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63635 #define $ac_func innocuous_$ac_func
63637 /* System header to define __stub macros and hopefully few prototypes,
63638 which can conflict with char $ac_func (); below.
63639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63640 <limits.h> exists even on freestanding compilers. */
63643 # include <limits.h>
63645 # include <assert.h>
63650 /* Override any GCC internal prototype to avoid an error.
63651 Use char because int might match the return type of a GCC
63652 builtin and then its argument prototype would still apply. */
63657 /* The GNU C library defines this for functions which it implements
63658 to always fail with ENOSYS. Some functions are actually named
63659 something starting with __ and the normal name is an alias. */
63660 #if defined __stub_$ac_func || defined __stub___$ac_func
63667 return $ac_func ();
63672 rm -f conftest.$ac_objext conftest$ac_exeext
63673 if { (ac_try="$ac_link"
63674 case "(($ac_try" in
63675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63676 *) ac_try_echo=$ac_try;;
63678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63679 $as_echo "$ac_try_echo") >&5
63680 (eval "$ac_link") 2>conftest.er1
63682 grep -v '^ *+' conftest.er1 >conftest.err
63684 cat conftest.err >&5
63685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63686 (exit $ac_status); } && {
63687 test -z "$ac_c_werror_flag" ||
63688 test ! -s conftest.err
63689 } && test -s conftest$ac_exeext && {
63690 test "$cross_compiling" = yes ||
63691 $as_test_x conftest$ac_exeext
63693 eval "$as_ac_var=yes"
63695 $as_echo "$as_me: failed program was:" >&5
63696 sed 's/^/| /' conftest.$ac_ext >&5
63698 eval "$as_ac_var=no"
63701 rm -rf conftest.dSYM
63702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63703 conftest$ac_exeext conftest.$ac_ext
63705 ac_res=`eval 'as_val=${'$as_ac_var'}
63706 $as_echo "$as_val"'`
63707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63708 $as_echo "$ac_res" >&6; }
63709 as_val=`eval 'as_val=${'$as_ac_var'}
63710 $as_echo "$as_val"'`
63711 if test "x$as_val" = x""yes; then
63712 cat >>confdefs.h <<_ACEOF
63713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63715 ice_have_getopt=yes
63719 if test "${ice_have_getopt}" = yes; then
63720 { $as_echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
63721 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
63722 if test "${ice_cv_have_getopt_decl+set}" = set; then
63723 $as_echo_n "(cached) " >&6
63726 ice_cv_have_getopt_decl=no
63727 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63728 ice_re_word='(^|[^a-zA-Z0-9_])'
63729 for header in stdlib.h unistd.h libc.h; do
63730 # Check for ordinary declaration
63731 cat >conftest.$ac_ext <<_ACEOF
63734 cat confdefs.h >>conftest.$ac_ext
63735 cat >>conftest.$ac_ext <<_ACEOF
63736 /* end confdefs.h. */
63740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63741 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then
63742 ice_cv_have_getopt_decl=yes
63746 if test "$ice_cv_have_getopt_decl" = yes; then
63749 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63750 cat >conftest.$ac_ext <<_ACEOF
63753 cat confdefs.h >>conftest.$ac_ext
63754 cat >>conftest.$ac_ext <<_ACEOF
63755 /* end confdefs.h. */
63759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63760 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63761 ice_cv_have_getopt_decl=yes
63765 if test "$ice_cv_have_getopt_decl" = yes; then
63772 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
63773 $as_echo "$ice_cv_have_getopt_decl" >&6; }
63774 if test "$ice_cv_have_getopt_decl" = yes; then
63776 cat >>confdefs.h <<_ACEOF
63777 #define HAVE_GETOPT_DECL 1
63784 ice_have_getpeername=no
63786 for ac_func in getpeername
63788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63789 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63790 $as_echo_n "checking for $ac_func... " >&6; }
63791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63792 $as_echo_n "(cached) " >&6
63794 cat >conftest.$ac_ext <<_ACEOF
63797 cat confdefs.h >>conftest.$ac_ext
63798 cat >>conftest.$ac_ext <<_ACEOF
63799 /* end confdefs.h. */
63800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63802 #define $ac_func innocuous_$ac_func
63804 /* System header to define __stub macros and hopefully few prototypes,
63805 which can conflict with char $ac_func (); below.
63806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63807 <limits.h> exists even on freestanding compilers. */
63810 # include <limits.h>
63812 # include <assert.h>
63817 /* Override any GCC internal prototype to avoid an error.
63818 Use char because int might match the return type of a GCC
63819 builtin and then its argument prototype would still apply. */
63824 /* The GNU C library defines this for functions which it implements
63825 to always fail with ENOSYS. Some functions are actually named
63826 something starting with __ and the normal name is an alias. */
63827 #if defined __stub_$ac_func || defined __stub___$ac_func
63834 return $ac_func ();
63839 rm -f conftest.$ac_objext conftest$ac_exeext
63840 if { (ac_try="$ac_link"
63841 case "(($ac_try" in
63842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63843 *) ac_try_echo=$ac_try;;
63845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63846 $as_echo "$ac_try_echo") >&5
63847 (eval "$ac_link") 2>conftest.er1
63849 grep -v '^ *+' conftest.er1 >conftest.err
63851 cat conftest.err >&5
63852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63853 (exit $ac_status); } && {
63854 test -z "$ac_c_werror_flag" ||
63855 test ! -s conftest.err
63856 } && test -s conftest$ac_exeext && {
63857 test "$cross_compiling" = yes ||
63858 $as_test_x conftest$ac_exeext
63860 eval "$as_ac_var=yes"
63862 $as_echo "$as_me: failed program was:" >&5
63863 sed 's/^/| /' conftest.$ac_ext >&5
63865 eval "$as_ac_var=no"
63868 rm -rf conftest.dSYM
63869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63870 conftest$ac_exeext conftest.$ac_ext
63872 ac_res=`eval 'as_val=${'$as_ac_var'}
63873 $as_echo "$as_val"'`
63874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63875 $as_echo "$ac_res" >&6; }
63876 as_val=`eval 'as_val=${'$as_ac_var'}
63877 $as_echo "$as_val"'`
63878 if test "x$as_val" = x""yes; then
63879 cat >>confdefs.h <<_ACEOF
63880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63882 ice_have_getpeername=yes
63886 if test "${ice_have_getpeername}" = yes; then
63887 { $as_echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
63888 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
63889 if test "${ice_cv_have_getpeername_decl+set}" = set; then
63890 $as_echo_n "(cached) " >&6
63893 ice_cv_have_getpeername_decl=no
63894 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63895 ice_re_word='(^|[^a-zA-Z0-9_])'
63896 for header in sys/types.h sys/socket.h; do
63897 # Check for ordinary declaration
63898 cat >conftest.$ac_ext <<_ACEOF
63901 cat confdefs.h >>conftest.$ac_ext
63902 cat >>conftest.$ac_ext <<_ACEOF
63903 /* end confdefs.h. */
63907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63908 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then
63909 ice_cv_have_getpeername_decl=yes
63913 if test "$ice_cv_have_getpeername_decl" = yes; then
63916 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63917 cat >conftest.$ac_ext <<_ACEOF
63920 cat confdefs.h >>conftest.$ac_ext
63921 cat >>conftest.$ac_ext <<_ACEOF
63922 /* end confdefs.h. */
63926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63927 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63928 ice_cv_have_getpeername_decl=yes
63932 if test "$ice_cv_have_getpeername_decl" = yes; then
63939 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
63940 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
63941 if test "$ice_cv_have_getpeername_decl" = yes; then
63943 cat >>confdefs.h <<_ACEOF
63944 #define HAVE_GETPEERNAME_DECL 1
63950 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
63951 $as_echo_n "checking for getpgrp... " >&6; }
63952 if test "${ac_cv_func_getpgrp+set}" = set; then
63953 $as_echo_n "(cached) " >&6
63955 cat >conftest.$ac_ext <<_ACEOF
63958 cat confdefs.h >>conftest.$ac_ext
63959 cat >>conftest.$ac_ext <<_ACEOF
63960 /* end confdefs.h. */
63961 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
63962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63963 #define getpgrp innocuous_getpgrp
63965 /* System header to define __stub macros and hopefully few prototypes,
63966 which can conflict with char getpgrp (); below.
63967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63968 <limits.h> exists even on freestanding compilers. */
63971 # include <limits.h>
63973 # include <assert.h>
63978 /* Override any GCC internal prototype to avoid an error.
63979 Use char because int might match the return type of a GCC
63980 builtin and then its argument prototype would still apply. */
63985 /* The GNU C library defines this for functions which it implements
63986 to always fail with ENOSYS. Some functions are actually named
63987 something starting with __ and the normal name is an alias. */
63988 #if defined __stub_getpgrp || defined __stub___getpgrp
64000 rm -f conftest.$ac_objext conftest$ac_exeext
64001 if { (ac_try="$ac_link"
64002 case "(($ac_try" in
64003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64004 *) ac_try_echo=$ac_try;;
64006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64007 $as_echo "$ac_try_echo") >&5
64008 (eval "$ac_link") 2>conftest.er1
64010 grep -v '^ *+' conftest.er1 >conftest.err
64012 cat conftest.err >&5
64013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64014 (exit $ac_status); } && {
64015 test -z "$ac_c_werror_flag" ||
64016 test ! -s conftest.err
64017 } && test -s conftest$ac_exeext && {
64018 test "$cross_compiling" = yes ||
64019 $as_test_x conftest$ac_exeext
64021 ac_cv_func_getpgrp=yes
64023 $as_echo "$as_me: failed program was:" >&5
64024 sed 's/^/| /' conftest.$ac_ext >&5
64026 ac_cv_func_getpgrp=no
64029 rm -rf conftest.dSYM
64030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64031 conftest$ac_exeext conftest.$ac_ext
64033 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
64034 $as_echo "$ac_cv_func_getpgrp" >&6; }
64036 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
64037 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
64038 if test "${ac_cv_func_getpgrp_void+set}" = set; then
64039 $as_echo_n "(cached) " >&6
64041 # Use it with a single arg.
64042 cat >conftest.$ac_ext <<_ACEOF
64045 cat confdefs.h >>conftest.$ac_ext
64046 cat >>conftest.$ac_ext <<_ACEOF
64047 /* end confdefs.h. */
64048 $ac_includes_default
64057 rm -f conftest.$ac_objext
64058 if { (ac_try="$ac_compile"
64059 case "(($ac_try" in
64060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64061 *) ac_try_echo=$ac_try;;
64063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64064 $as_echo "$ac_try_echo") >&5
64065 (eval "$ac_compile") 2>conftest.er1
64067 grep -v '^ *+' conftest.er1 >conftest.err
64069 cat conftest.err >&5
64070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64071 (exit $ac_status); } && {
64072 test -z "$ac_c_werror_flag" ||
64073 test ! -s conftest.err
64074 } && test -s conftest.$ac_objext; then
64075 ac_cv_func_getpgrp_void=no
64077 $as_echo "$as_me: failed program was:" >&5
64078 sed 's/^/| /' conftest.$ac_ext >&5
64080 ac_cv_func_getpgrp_void=yes
64083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64086 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
64087 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
64088 if test $ac_cv_func_getpgrp_void = yes; then
64090 cat >>confdefs.h <<\_ACEOF
64091 #define GETPGRP_VOID 1
64097 ice_have_getsockname=no
64099 for ac_func in getsockname
64101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64102 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64103 $as_echo_n "checking for $ac_func... " >&6; }
64104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64105 $as_echo_n "(cached) " >&6
64107 cat >conftest.$ac_ext <<_ACEOF
64110 cat confdefs.h >>conftest.$ac_ext
64111 cat >>conftest.$ac_ext <<_ACEOF
64112 /* end confdefs.h. */
64113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64115 #define $ac_func innocuous_$ac_func
64117 /* System header to define __stub macros and hopefully few prototypes,
64118 which can conflict with char $ac_func (); below.
64119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64120 <limits.h> exists even on freestanding compilers. */
64123 # include <limits.h>
64125 # include <assert.h>
64130 /* Override any GCC internal prototype to avoid an error.
64131 Use char because int might match the return type of a GCC
64132 builtin and then its argument prototype would still apply. */
64137 /* The GNU C library defines this for functions which it implements
64138 to always fail with ENOSYS. Some functions are actually named
64139 something starting with __ and the normal name is an alias. */
64140 #if defined __stub_$ac_func || defined __stub___$ac_func
64147 return $ac_func ();
64152 rm -f conftest.$ac_objext conftest$ac_exeext
64153 if { (ac_try="$ac_link"
64154 case "(($ac_try" in
64155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64156 *) ac_try_echo=$ac_try;;
64158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64159 $as_echo "$ac_try_echo") >&5
64160 (eval "$ac_link") 2>conftest.er1
64162 grep -v '^ *+' conftest.er1 >conftest.err
64164 cat conftest.err >&5
64165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64166 (exit $ac_status); } && {
64167 test -z "$ac_c_werror_flag" ||
64168 test ! -s conftest.err
64169 } && test -s conftest$ac_exeext && {
64170 test "$cross_compiling" = yes ||
64171 $as_test_x conftest$ac_exeext
64173 eval "$as_ac_var=yes"
64175 $as_echo "$as_me: failed program was:" >&5
64176 sed 's/^/| /' conftest.$ac_ext >&5
64178 eval "$as_ac_var=no"
64181 rm -rf conftest.dSYM
64182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64183 conftest$ac_exeext conftest.$ac_ext
64185 ac_res=`eval 'as_val=${'$as_ac_var'}
64186 $as_echo "$as_val"'`
64187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64188 $as_echo "$ac_res" >&6; }
64189 as_val=`eval 'as_val=${'$as_ac_var'}
64190 $as_echo "$as_val"'`
64191 if test "x$as_val" = x""yes; then
64192 cat >>confdefs.h <<_ACEOF
64193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64195 ice_have_getsockname=yes
64199 if test "${ice_have_getsockname}" = yes; then
64200 { $as_echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
64201 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
64202 if test "${ice_cv_have_getsockname_decl+set}" = set; then
64203 $as_echo_n "(cached) " >&6
64206 ice_cv_have_getsockname_decl=no
64207 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64208 ice_re_word='(^|[^a-zA-Z0-9_])'
64209 for header in sys/types.h sys/socket.h; do
64210 # Check for ordinary declaration
64211 cat >conftest.$ac_ext <<_ACEOF
64214 cat confdefs.h >>conftest.$ac_ext
64215 cat >>conftest.$ac_ext <<_ACEOF
64216 /* end confdefs.h. */
64220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64221 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then
64222 ice_cv_have_getsockname_decl=yes
64226 if test "$ice_cv_have_getsockname_decl" = yes; then
64229 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64230 cat >conftest.$ac_ext <<_ACEOF
64233 cat confdefs.h >>conftest.$ac_ext
64234 cat >>conftest.$ac_ext <<_ACEOF
64235 /* end confdefs.h. */
64239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64240 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64241 ice_cv_have_getsockname_decl=yes
64245 if test "$ice_cv_have_getsockname_decl" = yes; then
64252 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
64253 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
64254 if test "$ice_cv_have_getsockname_decl" = yes; then
64256 cat >>confdefs.h <<_ACEOF
64257 #define HAVE_GETSOCKNAME_DECL 1
64264 ice_have_getsockopt=no
64266 for ac_func in getsockopt
64268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64269 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64270 $as_echo_n "checking for $ac_func... " >&6; }
64271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64272 $as_echo_n "(cached) " >&6
64274 cat >conftest.$ac_ext <<_ACEOF
64277 cat confdefs.h >>conftest.$ac_ext
64278 cat >>conftest.$ac_ext <<_ACEOF
64279 /* end confdefs.h. */
64280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64282 #define $ac_func innocuous_$ac_func
64284 /* System header to define __stub macros and hopefully few prototypes,
64285 which can conflict with char $ac_func (); below.
64286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64287 <limits.h> exists even on freestanding compilers. */
64290 # include <limits.h>
64292 # include <assert.h>
64297 /* Override any GCC internal prototype to avoid an error.
64298 Use char because int might match the return type of a GCC
64299 builtin and then its argument prototype would still apply. */
64304 /* The GNU C library defines this for functions which it implements
64305 to always fail with ENOSYS. Some functions are actually named
64306 something starting with __ and the normal name is an alias. */
64307 #if defined __stub_$ac_func || defined __stub___$ac_func
64314 return $ac_func ();
64319 rm -f conftest.$ac_objext conftest$ac_exeext
64320 if { (ac_try="$ac_link"
64321 case "(($ac_try" in
64322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64323 *) ac_try_echo=$ac_try;;
64325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64326 $as_echo "$ac_try_echo") >&5
64327 (eval "$ac_link") 2>conftest.er1
64329 grep -v '^ *+' conftest.er1 >conftest.err
64331 cat conftest.err >&5
64332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64333 (exit $ac_status); } && {
64334 test -z "$ac_c_werror_flag" ||
64335 test ! -s conftest.err
64336 } && test -s conftest$ac_exeext && {
64337 test "$cross_compiling" = yes ||
64338 $as_test_x conftest$ac_exeext
64340 eval "$as_ac_var=yes"
64342 $as_echo "$as_me: failed program was:" >&5
64343 sed 's/^/| /' conftest.$ac_ext >&5
64345 eval "$as_ac_var=no"
64348 rm -rf conftest.dSYM
64349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64350 conftest$ac_exeext conftest.$ac_ext
64352 ac_res=`eval 'as_val=${'$as_ac_var'}
64353 $as_echo "$as_val"'`
64354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64355 $as_echo "$ac_res" >&6; }
64356 as_val=`eval 'as_val=${'$as_ac_var'}
64357 $as_echo "$as_val"'`
64358 if test "x$as_val" = x""yes; then
64359 cat >>confdefs.h <<_ACEOF
64360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64362 ice_have_getsockopt=yes
64366 if test "${ice_have_getsockopt}" = yes; then
64367 { $as_echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
64368 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
64369 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
64370 $as_echo_n "(cached) " >&6
64373 ice_cv_have_getsockopt_decl=no
64374 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64375 ice_re_word='(^|[^a-zA-Z0-9_])'
64376 for header in sys/types.h sys/socket.h; do
64377 # Check for ordinary declaration
64378 cat >conftest.$ac_ext <<_ACEOF
64381 cat confdefs.h >>conftest.$ac_ext
64382 cat >>conftest.$ac_ext <<_ACEOF
64383 /* end confdefs.h. */
64387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64388 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then
64389 ice_cv_have_getsockopt_decl=yes
64393 if test "$ice_cv_have_getsockopt_decl" = yes; then
64396 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64397 cat >conftest.$ac_ext <<_ACEOF
64400 cat confdefs.h >>conftest.$ac_ext
64401 cat >>conftest.$ac_ext <<_ACEOF
64402 /* end confdefs.h. */
64406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64407 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64408 ice_cv_have_getsockopt_decl=yes
64412 if test "$ice_cv_have_getsockopt_decl" = yes; then
64419 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
64420 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
64421 if test "$ice_cv_have_getsockopt_decl" = yes; then
64423 cat >>confdefs.h <<_ACEOF
64424 #define HAVE_GETSOCKOPT_DECL 1
64431 ice_have_initgroups=no
64433 for ac_func in initgroups
64435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64436 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64437 $as_echo_n "checking for $ac_func... " >&6; }
64438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64439 $as_echo_n "(cached) " >&6
64441 cat >conftest.$ac_ext <<_ACEOF
64444 cat confdefs.h >>conftest.$ac_ext
64445 cat >>conftest.$ac_ext <<_ACEOF
64446 /* end confdefs.h. */
64447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64449 #define $ac_func innocuous_$ac_func
64451 /* System header to define __stub macros and hopefully few prototypes,
64452 which can conflict with char $ac_func (); below.
64453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64454 <limits.h> exists even on freestanding compilers. */
64457 # include <limits.h>
64459 # include <assert.h>
64464 /* Override any GCC internal prototype to avoid an error.
64465 Use char because int might match the return type of a GCC
64466 builtin and then its argument prototype would still apply. */
64471 /* The GNU C library defines this for functions which it implements
64472 to always fail with ENOSYS. Some functions are actually named
64473 something starting with __ and the normal name is an alias. */
64474 #if defined __stub_$ac_func || defined __stub___$ac_func
64481 return $ac_func ();
64486 rm -f conftest.$ac_objext conftest$ac_exeext
64487 if { (ac_try="$ac_link"
64488 case "(($ac_try" in
64489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64490 *) ac_try_echo=$ac_try;;
64492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64493 $as_echo "$ac_try_echo") >&5
64494 (eval "$ac_link") 2>conftest.er1
64496 grep -v '^ *+' conftest.er1 >conftest.err
64498 cat conftest.err >&5
64499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64500 (exit $ac_status); } && {
64501 test -z "$ac_c_werror_flag" ||
64502 test ! -s conftest.err
64503 } && test -s conftest$ac_exeext && {
64504 test "$cross_compiling" = yes ||
64505 $as_test_x conftest$ac_exeext
64507 eval "$as_ac_var=yes"
64509 $as_echo "$as_me: failed program was:" >&5
64510 sed 's/^/| /' conftest.$ac_ext >&5
64512 eval "$as_ac_var=no"
64515 rm -rf conftest.dSYM
64516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64517 conftest$ac_exeext conftest.$ac_ext
64519 ac_res=`eval 'as_val=${'$as_ac_var'}
64520 $as_echo "$as_val"'`
64521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64522 $as_echo "$ac_res" >&6; }
64523 as_val=`eval 'as_val=${'$as_ac_var'}
64524 $as_echo "$as_val"'`
64525 if test "x$as_val" = x""yes; then
64526 cat >>confdefs.h <<_ACEOF
64527 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64529 ice_have_initgroups=yes
64533 if test "${ice_have_initgroups}" = yes; then
64534 { $as_echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
64535 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
64536 if test "${ice_cv_have_initgroups_decl+set}" = set; then
64537 $as_echo_n "(cached) " >&6
64540 ice_cv_have_initgroups_decl=no
64541 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64542 ice_re_word='(^|[^a-zA-Z0-9_])'
64543 for header in grp.h sys/types.h unistd.h libc.h; do
64544 # Check for ordinary declaration
64545 cat >conftest.$ac_ext <<_ACEOF
64548 cat confdefs.h >>conftest.$ac_ext
64549 cat >>conftest.$ac_ext <<_ACEOF
64550 /* end confdefs.h. */
64554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64555 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then
64556 ice_cv_have_initgroups_decl=yes
64560 if test "$ice_cv_have_initgroups_decl" = yes; then
64563 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64564 cat >conftest.$ac_ext <<_ACEOF
64567 cat confdefs.h >>conftest.$ac_ext
64568 cat >>conftest.$ac_ext <<_ACEOF
64569 /* end confdefs.h. */
64573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64574 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64575 ice_cv_have_initgroups_decl=yes
64579 if test "$ice_cv_have_initgroups_decl" = yes; then
64586 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
64587 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
64588 if test "$ice_cv_have_initgroups_decl" = yes; then
64590 cat >>confdefs.h <<_ACEOF
64591 #define HAVE_INITGROUPS_DECL 1
64600 for ac_func in ioctl
64602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64603 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64604 $as_echo_n "checking for $ac_func... " >&6; }
64605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64606 $as_echo_n "(cached) " >&6
64608 cat >conftest.$ac_ext <<_ACEOF
64611 cat confdefs.h >>conftest.$ac_ext
64612 cat >>conftest.$ac_ext <<_ACEOF
64613 /* end confdefs.h. */
64614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64616 #define $ac_func innocuous_$ac_func
64618 /* System header to define __stub macros and hopefully few prototypes,
64619 which can conflict with char $ac_func (); below.
64620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64621 <limits.h> exists even on freestanding compilers. */
64624 # include <limits.h>
64626 # include <assert.h>
64631 /* Override any GCC internal prototype to avoid an error.
64632 Use char because int might match the return type of a GCC
64633 builtin and then its argument prototype would still apply. */
64638 /* The GNU C library defines this for functions which it implements
64639 to always fail with ENOSYS. Some functions are actually named
64640 something starting with __ and the normal name is an alias. */
64641 #if defined __stub_$ac_func || defined __stub___$ac_func
64648 return $ac_func ();
64653 rm -f conftest.$ac_objext conftest$ac_exeext
64654 if { (ac_try="$ac_link"
64655 case "(($ac_try" in
64656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64657 *) ac_try_echo=$ac_try;;
64659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64660 $as_echo "$ac_try_echo") >&5
64661 (eval "$ac_link") 2>conftest.er1
64663 grep -v '^ *+' conftest.er1 >conftest.err
64665 cat conftest.err >&5
64666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64667 (exit $ac_status); } && {
64668 test -z "$ac_c_werror_flag" ||
64669 test ! -s conftest.err
64670 } && test -s conftest$ac_exeext && {
64671 test "$cross_compiling" = yes ||
64672 $as_test_x conftest$ac_exeext
64674 eval "$as_ac_var=yes"
64676 $as_echo "$as_me: failed program was:" >&5
64677 sed 's/^/| /' conftest.$ac_ext >&5
64679 eval "$as_ac_var=no"
64682 rm -rf conftest.dSYM
64683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64684 conftest$ac_exeext conftest.$ac_ext
64686 ac_res=`eval 'as_val=${'$as_ac_var'}
64687 $as_echo "$as_val"'`
64688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64689 $as_echo "$ac_res" >&6; }
64690 as_val=`eval 'as_val=${'$as_ac_var'}
64691 $as_echo "$as_val"'`
64692 if test "x$as_val" = x""yes; then
64693 cat >>confdefs.h <<_ACEOF
64694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64700 if test "${ice_have_ioctl}" = yes; then
64701 { $as_echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
64702 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
64703 if test "${ice_cv_have_ioctl_decl+set}" = set; then
64704 $as_echo_n "(cached) " >&6
64707 ice_cv_have_ioctl_decl=no
64708 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64709 ice_re_word='(^|[^a-zA-Z0-9_])'
64710 for header in sys/ioctl.h unistd.h libc.h; do
64711 # Check for ordinary declaration
64712 cat >conftest.$ac_ext <<_ACEOF
64715 cat confdefs.h >>conftest.$ac_ext
64716 cat >>conftest.$ac_ext <<_ACEOF
64717 /* end confdefs.h. */
64721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64722 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then
64723 ice_cv_have_ioctl_decl=yes
64727 if test "$ice_cv_have_ioctl_decl" = yes; then
64730 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64731 cat >conftest.$ac_ext <<_ACEOF
64734 cat confdefs.h >>conftest.$ac_ext
64735 cat >>conftest.$ac_ext <<_ACEOF
64736 /* end confdefs.h. */
64740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64741 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64742 ice_cv_have_ioctl_decl=yes
64746 if test "$ice_cv_have_ioctl_decl" = yes; then
64753 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
64754 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
64755 if test "$ice_cv_have_ioctl_decl" = yes; then
64757 cat >>confdefs.h <<_ACEOF
64758 #define HAVE_IOCTL_DECL 1
64765 ice_have_isnormal=no
64767 for ac_func in isnormal
64769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64771 $as_echo_n "checking for $ac_func... " >&6; }
64772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64773 $as_echo_n "(cached) " >&6
64775 cat >conftest.$ac_ext <<_ACEOF
64778 cat confdefs.h >>conftest.$ac_ext
64779 cat >>conftest.$ac_ext <<_ACEOF
64780 /* end confdefs.h. */
64781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64783 #define $ac_func innocuous_$ac_func
64785 /* System header to define __stub macros and hopefully few prototypes,
64786 which can conflict with char $ac_func (); below.
64787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64788 <limits.h> exists even on freestanding compilers. */
64791 # include <limits.h>
64793 # include <assert.h>
64798 /* Override any GCC internal prototype to avoid an error.
64799 Use char because int might match the return type of a GCC
64800 builtin and then its argument prototype would still apply. */
64805 /* The GNU C library defines this for functions which it implements
64806 to always fail with ENOSYS. Some functions are actually named
64807 something starting with __ and the normal name is an alias. */
64808 #if defined __stub_$ac_func || defined __stub___$ac_func
64815 return $ac_func ();
64820 rm -f conftest.$ac_objext conftest$ac_exeext
64821 if { (ac_try="$ac_link"
64822 case "(($ac_try" in
64823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64824 *) ac_try_echo=$ac_try;;
64826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64827 $as_echo "$ac_try_echo") >&5
64828 (eval "$ac_link") 2>conftest.er1
64830 grep -v '^ *+' conftest.er1 >conftest.err
64832 cat conftest.err >&5
64833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64834 (exit $ac_status); } && {
64835 test -z "$ac_c_werror_flag" ||
64836 test ! -s conftest.err
64837 } && test -s conftest$ac_exeext && {
64838 test "$cross_compiling" = yes ||
64839 $as_test_x conftest$ac_exeext
64841 eval "$as_ac_var=yes"
64843 $as_echo "$as_me: failed program was:" >&5
64844 sed 's/^/| /' conftest.$ac_ext >&5
64846 eval "$as_ac_var=no"
64849 rm -rf conftest.dSYM
64850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64851 conftest$ac_exeext conftest.$ac_ext
64853 ac_res=`eval 'as_val=${'$as_ac_var'}
64854 $as_echo "$as_val"'`
64855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64856 $as_echo "$ac_res" >&6; }
64857 as_val=`eval 'as_val=${'$as_ac_var'}
64858 $as_echo "$as_val"'`
64859 if test "x$as_val" = x""yes; then
64860 cat >>confdefs.h <<_ACEOF
64861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64863 ice_have_isnormal=yes
64867 if test "${ice_have_isnormal}" = yes; then
64868 { $as_echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
64869 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
64870 if test "${ice_cv_have_isnormal_decl+set}" = set; then
64871 $as_echo_n "(cached) " >&6
64874 ice_cv_have_isnormal_decl=no
64875 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64876 ice_re_word='(^|[^a-zA-Z0-9_])'
64877 for header in math.h; do
64878 # Check for ordinary declaration
64879 cat >conftest.$ac_ext <<_ACEOF
64882 cat confdefs.h >>conftest.$ac_ext
64883 cat >>conftest.$ac_ext <<_ACEOF
64884 /* end confdefs.h. */
64888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64889 $EGREP "${ice_re_word}isnormal[ ]*\(" >/dev/null 2>&1; then
64890 ice_cv_have_isnormal_decl=yes
64894 if test "$ice_cv_have_isnormal_decl" = yes; then
64897 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64898 cat >conftest.$ac_ext <<_ACEOF
64901 cat confdefs.h >>conftest.$ac_ext
64902 cat >>conftest.$ac_ext <<_ACEOF
64903 /* end confdefs.h. */
64907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64908 $EGREP "${ice_re_word}isnormal[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64909 ice_cv_have_isnormal_decl=yes
64913 if test "$ice_cv_have_isnormal_decl" = yes; then
64920 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
64921 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
64922 if test "$ice_cv_have_isnormal_decl" = yes; then
64924 cat >>confdefs.h <<_ACEOF
64925 #define HAVE_ISNORMAL_DECL 1
64934 for ac_func in listen
64936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64937 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64938 $as_echo_n "checking for $ac_func... " >&6; }
64939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64940 $as_echo_n "(cached) " >&6
64942 cat >conftest.$ac_ext <<_ACEOF
64945 cat confdefs.h >>conftest.$ac_ext
64946 cat >>conftest.$ac_ext <<_ACEOF
64947 /* end confdefs.h. */
64948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64950 #define $ac_func innocuous_$ac_func
64952 /* System header to define __stub macros and hopefully few prototypes,
64953 which can conflict with char $ac_func (); below.
64954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64955 <limits.h> exists even on freestanding compilers. */
64958 # include <limits.h>
64960 # include <assert.h>
64965 /* Override any GCC internal prototype to avoid an error.
64966 Use char because int might match the return type of a GCC
64967 builtin and then its argument prototype would still apply. */
64972 /* The GNU C library defines this for functions which it implements
64973 to always fail with ENOSYS. Some functions are actually named
64974 something starting with __ and the normal name is an alias. */
64975 #if defined __stub_$ac_func || defined __stub___$ac_func
64982 return $ac_func ();
64987 rm -f conftest.$ac_objext conftest$ac_exeext
64988 if { (ac_try="$ac_link"
64989 case "(($ac_try" in
64990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64991 *) ac_try_echo=$ac_try;;
64993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64994 $as_echo "$ac_try_echo") >&5
64995 (eval "$ac_link") 2>conftest.er1
64997 grep -v '^ *+' conftest.er1 >conftest.err
64999 cat conftest.err >&5
65000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65001 (exit $ac_status); } && {
65002 test -z "$ac_c_werror_flag" ||
65003 test ! -s conftest.err
65004 } && test -s conftest$ac_exeext && {
65005 test "$cross_compiling" = yes ||
65006 $as_test_x conftest$ac_exeext
65008 eval "$as_ac_var=yes"
65010 $as_echo "$as_me: failed program was:" >&5
65011 sed 's/^/| /' conftest.$ac_ext >&5
65013 eval "$as_ac_var=no"
65016 rm -rf conftest.dSYM
65017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65018 conftest$ac_exeext conftest.$ac_ext
65020 ac_res=`eval 'as_val=${'$as_ac_var'}
65021 $as_echo "$as_val"'`
65022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65023 $as_echo "$ac_res" >&6; }
65024 as_val=`eval 'as_val=${'$as_ac_var'}
65025 $as_echo "$as_val"'`
65026 if test "x$as_val" = x""yes; then
65027 cat >>confdefs.h <<_ACEOF
65028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65030 ice_have_listen=yes
65034 if test "${ice_have_listen}" = yes; then
65035 { $as_echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
65036 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
65037 if test "${ice_cv_have_listen_decl+set}" = set; then
65038 $as_echo_n "(cached) " >&6
65041 ice_cv_have_listen_decl=no
65042 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65043 ice_re_word='(^|[^a-zA-Z0-9_])'
65044 for header in sys/types.h sys/socket.h; do
65045 # Check for ordinary declaration
65046 cat >conftest.$ac_ext <<_ACEOF
65049 cat confdefs.h >>conftest.$ac_ext
65050 cat >>conftest.$ac_ext <<_ACEOF
65051 /* end confdefs.h. */
65055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65056 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then
65057 ice_cv_have_listen_decl=yes
65061 if test "$ice_cv_have_listen_decl" = yes; then
65064 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65065 cat >conftest.$ac_ext <<_ACEOF
65068 cat confdefs.h >>conftest.$ac_ext
65069 cat >>conftest.$ac_ext <<_ACEOF
65070 /* end confdefs.h. */
65074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65075 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65076 ice_cv_have_listen_decl=yes
65080 if test "$ice_cv_have_listen_decl" = yes; then
65087 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
65088 $as_echo "$ice_cv_have_listen_decl" >&6; }
65089 if test "$ice_cv_have_listen_decl" = yes; then
65091 cat >>confdefs.h <<_ACEOF
65092 #define HAVE_LISTEN_DECL 1
65101 for ac_func in lstat
65103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65104 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65105 $as_echo_n "checking for $ac_func... " >&6; }
65106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65107 $as_echo_n "(cached) " >&6
65109 cat >conftest.$ac_ext <<_ACEOF
65112 cat confdefs.h >>conftest.$ac_ext
65113 cat >>conftest.$ac_ext <<_ACEOF
65114 /* end confdefs.h. */
65115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65117 #define $ac_func innocuous_$ac_func
65119 /* System header to define __stub macros and hopefully few prototypes,
65120 which can conflict with char $ac_func (); below.
65121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65122 <limits.h> exists even on freestanding compilers. */
65125 # include <limits.h>
65127 # include <assert.h>
65132 /* Override any GCC internal prototype to avoid an error.
65133 Use char because int might match the return type of a GCC
65134 builtin and then its argument prototype would still apply. */
65139 /* The GNU C library defines this for functions which it implements
65140 to always fail with ENOSYS. Some functions are actually named
65141 something starting with __ and the normal name is an alias. */
65142 #if defined __stub_$ac_func || defined __stub___$ac_func
65149 return $ac_func ();
65154 rm -f conftest.$ac_objext conftest$ac_exeext
65155 if { (ac_try="$ac_link"
65156 case "(($ac_try" in
65157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65158 *) ac_try_echo=$ac_try;;
65160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65161 $as_echo "$ac_try_echo") >&5
65162 (eval "$ac_link") 2>conftest.er1
65164 grep -v '^ *+' conftest.er1 >conftest.err
65166 cat conftest.err >&5
65167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65168 (exit $ac_status); } && {
65169 test -z "$ac_c_werror_flag" ||
65170 test ! -s conftest.err
65171 } && test -s conftest$ac_exeext && {
65172 test "$cross_compiling" = yes ||
65173 $as_test_x conftest$ac_exeext
65175 eval "$as_ac_var=yes"
65177 $as_echo "$as_me: failed program was:" >&5
65178 sed 's/^/| /' conftest.$ac_ext >&5
65180 eval "$as_ac_var=no"
65183 rm -rf conftest.dSYM
65184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65185 conftest$ac_exeext conftest.$ac_ext
65187 ac_res=`eval 'as_val=${'$as_ac_var'}
65188 $as_echo "$as_val"'`
65189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65190 $as_echo "$ac_res" >&6; }
65191 as_val=`eval 'as_val=${'$as_ac_var'}
65192 $as_echo "$as_val"'`
65193 if test "x$as_val" = x""yes; then
65194 cat >>confdefs.h <<_ACEOF
65195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65201 if test "${ice_have_lstat}" = yes; then
65202 { $as_echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
65203 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
65204 if test "${ice_cv_have_lstat_decl+set}" = set; then
65205 $as_echo_n "(cached) " >&6
65208 ice_cv_have_lstat_decl=no
65209 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65210 ice_re_word='(^|[^a-zA-Z0-9_])'
65211 for header in sys/types.h sys/stat.h; do
65212 # Check for ordinary declaration
65213 cat >conftest.$ac_ext <<_ACEOF
65216 cat confdefs.h >>conftest.$ac_ext
65217 cat >>conftest.$ac_ext <<_ACEOF
65218 /* end confdefs.h. */
65222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65223 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then
65224 ice_cv_have_lstat_decl=yes
65228 if test "$ice_cv_have_lstat_decl" = yes; then
65231 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65232 cat >conftest.$ac_ext <<_ACEOF
65235 cat confdefs.h >>conftest.$ac_ext
65236 cat >>conftest.$ac_ext <<_ACEOF
65237 /* end confdefs.h. */
65241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65242 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65243 ice_cv_have_lstat_decl=yes
65247 if test "$ice_cv_have_lstat_decl" = yes; then
65254 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
65255 $as_echo "$ice_cv_have_lstat_decl" >&6; }
65256 if test "$ice_cv_have_lstat_decl" = yes; then
65258 cat >>confdefs.h <<_ACEOF
65259 #define HAVE_LSTAT_DECL 1
65268 for ac_func in malloc
65270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65271 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65272 $as_echo_n "checking for $ac_func... " >&6; }
65273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65274 $as_echo_n "(cached) " >&6
65276 cat >conftest.$ac_ext <<_ACEOF
65279 cat confdefs.h >>conftest.$ac_ext
65280 cat >>conftest.$ac_ext <<_ACEOF
65281 /* end confdefs.h. */
65282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65284 #define $ac_func innocuous_$ac_func
65286 /* System header to define __stub macros and hopefully few prototypes,
65287 which can conflict with char $ac_func (); below.
65288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65289 <limits.h> exists even on freestanding compilers. */
65292 # include <limits.h>
65294 # include <assert.h>
65299 /* Override any GCC internal prototype to avoid an error.
65300 Use char because int might match the return type of a GCC
65301 builtin and then its argument prototype would still apply. */
65306 /* The GNU C library defines this for functions which it implements
65307 to always fail with ENOSYS. Some functions are actually named
65308 something starting with __ and the normal name is an alias. */
65309 #if defined __stub_$ac_func || defined __stub___$ac_func
65316 return $ac_func ();
65321 rm -f conftest.$ac_objext conftest$ac_exeext
65322 if { (ac_try="$ac_link"
65323 case "(($ac_try" in
65324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65325 *) ac_try_echo=$ac_try;;
65327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65328 $as_echo "$ac_try_echo") >&5
65329 (eval "$ac_link") 2>conftest.er1
65331 grep -v '^ *+' conftest.er1 >conftest.err
65333 cat conftest.err >&5
65334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65335 (exit $ac_status); } && {
65336 test -z "$ac_c_werror_flag" ||
65337 test ! -s conftest.err
65338 } && test -s conftest$ac_exeext && {
65339 test "$cross_compiling" = yes ||
65340 $as_test_x conftest$ac_exeext
65342 eval "$as_ac_var=yes"
65344 $as_echo "$as_me: failed program was:" >&5
65345 sed 's/^/| /' conftest.$ac_ext >&5
65347 eval "$as_ac_var=no"
65350 rm -rf conftest.dSYM
65351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65352 conftest$ac_exeext conftest.$ac_ext
65354 ac_res=`eval 'as_val=${'$as_ac_var'}
65355 $as_echo "$as_val"'`
65356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65357 $as_echo "$ac_res" >&6; }
65358 as_val=`eval 'as_val=${'$as_ac_var'}
65359 $as_echo "$as_val"'`
65360 if test "x$as_val" = x""yes; then
65361 cat >>confdefs.h <<_ACEOF
65362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65364 ice_have_malloc=yes
65368 if test "${ice_have_malloc}" = yes; then
65369 { $as_echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
65370 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
65371 if test "${ice_cv_have_malloc_decl+set}" = set; then
65372 $as_echo_n "(cached) " >&6
65375 ice_cv_have_malloc_decl=no
65376 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65377 ice_re_word='(^|[^a-zA-Z0-9_])'
65378 for header in stdlib.h; do
65379 # Check for ordinary declaration
65380 cat >conftest.$ac_ext <<_ACEOF
65383 cat confdefs.h >>conftest.$ac_ext
65384 cat >>conftest.$ac_ext <<_ACEOF
65385 /* end confdefs.h. */
65389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65390 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then
65391 ice_cv_have_malloc_decl=yes
65395 if test "$ice_cv_have_malloc_decl" = yes; then
65398 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65399 cat >conftest.$ac_ext <<_ACEOF
65402 cat confdefs.h >>conftest.$ac_ext
65403 cat >>conftest.$ac_ext <<_ACEOF
65404 /* end confdefs.h. */
65408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65409 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65410 ice_cv_have_malloc_decl=yes
65414 if test "$ice_cv_have_malloc_decl" = yes; then
65421 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
65422 $as_echo "$ice_cv_have_malloc_decl" >&6; }
65423 if test "$ice_cv_have_malloc_decl" = yes; then
65425 cat >>confdefs.h <<_ACEOF
65426 #define HAVE_MALLOC_DECL 1
65433 ice_have_memmove=no
65435 for ac_func in memmove
65437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65438 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65439 $as_echo_n "checking for $ac_func... " >&6; }
65440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65441 $as_echo_n "(cached) " >&6
65443 cat >conftest.$ac_ext <<_ACEOF
65446 cat confdefs.h >>conftest.$ac_ext
65447 cat >>conftest.$ac_ext <<_ACEOF
65448 /* end confdefs.h. */
65449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65451 #define $ac_func innocuous_$ac_func
65453 /* System header to define __stub macros and hopefully few prototypes,
65454 which can conflict with char $ac_func (); below.
65455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65456 <limits.h> exists even on freestanding compilers. */
65459 # include <limits.h>
65461 # include <assert.h>
65466 /* Override any GCC internal prototype to avoid an error.
65467 Use char because int might match the return type of a GCC
65468 builtin and then its argument prototype would still apply. */
65473 /* The GNU C library defines this for functions which it implements
65474 to always fail with ENOSYS. Some functions are actually named
65475 something starting with __ and the normal name is an alias. */
65476 #if defined __stub_$ac_func || defined __stub___$ac_func
65483 return $ac_func ();
65488 rm -f conftest.$ac_objext conftest$ac_exeext
65489 if { (ac_try="$ac_link"
65490 case "(($ac_try" in
65491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65492 *) ac_try_echo=$ac_try;;
65494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65495 $as_echo "$ac_try_echo") >&5
65496 (eval "$ac_link") 2>conftest.er1
65498 grep -v '^ *+' conftest.er1 >conftest.err
65500 cat conftest.err >&5
65501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65502 (exit $ac_status); } && {
65503 test -z "$ac_c_werror_flag" ||
65504 test ! -s conftest.err
65505 } && test -s conftest$ac_exeext && {
65506 test "$cross_compiling" = yes ||
65507 $as_test_x conftest$ac_exeext
65509 eval "$as_ac_var=yes"
65511 $as_echo "$as_me: failed program was:" >&5
65512 sed 's/^/| /' conftest.$ac_ext >&5
65514 eval "$as_ac_var=no"
65517 rm -rf conftest.dSYM
65518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65519 conftest$ac_exeext conftest.$ac_ext
65521 ac_res=`eval 'as_val=${'$as_ac_var'}
65522 $as_echo "$as_val"'`
65523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65524 $as_echo "$ac_res" >&6; }
65525 as_val=`eval 'as_val=${'$as_ac_var'}
65526 $as_echo "$as_val"'`
65527 if test "x$as_val" = x""yes; then
65528 cat >>confdefs.h <<_ACEOF
65529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65531 ice_have_memmove=yes
65535 if test "${ice_have_memmove}" = yes; then
65536 { $as_echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
65537 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
65538 if test "${ice_cv_have_memmove_decl+set}" = set; then
65539 $as_echo_n "(cached) " >&6
65542 ice_cv_have_memmove_decl=no
65543 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65544 ice_re_word='(^|[^a-zA-Z0-9_])'
65545 for header in string.h strings.h; do
65546 # Check for ordinary declaration
65547 cat >conftest.$ac_ext <<_ACEOF
65550 cat confdefs.h >>conftest.$ac_ext
65551 cat >>conftest.$ac_ext <<_ACEOF
65552 /* end confdefs.h. */
65556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65557 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then
65558 ice_cv_have_memmove_decl=yes
65562 if test "$ice_cv_have_memmove_decl" = yes; then
65565 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65566 cat >conftest.$ac_ext <<_ACEOF
65569 cat confdefs.h >>conftest.$ac_ext
65570 cat >>conftest.$ac_ext <<_ACEOF
65571 /* end confdefs.h. */
65575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65576 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65577 ice_cv_have_memmove_decl=yes
65581 if test "$ice_cv_have_memmove_decl" = yes; then
65588 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
65589 $as_echo "$ice_cv_have_memmove_decl" >&6; }
65590 if test "$ice_cv_have_memmove_decl" = yes; then
65592 cat >>confdefs.h <<_ACEOF
65593 #define HAVE_MEMMOVE_DECL 1
65602 for ac_func in memset
65604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65605 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65606 $as_echo_n "checking for $ac_func... " >&6; }
65607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65608 $as_echo_n "(cached) " >&6
65610 cat >conftest.$ac_ext <<_ACEOF
65613 cat confdefs.h >>conftest.$ac_ext
65614 cat >>conftest.$ac_ext <<_ACEOF
65615 /* end confdefs.h. */
65616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65618 #define $ac_func innocuous_$ac_func
65620 /* System header to define __stub macros and hopefully few prototypes,
65621 which can conflict with char $ac_func (); below.
65622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65623 <limits.h> exists even on freestanding compilers. */
65626 # include <limits.h>
65628 # include <assert.h>
65633 /* Override any GCC internal prototype to avoid an error.
65634 Use char because int might match the return type of a GCC
65635 builtin and then its argument prototype would still apply. */
65640 /* The GNU C library defines this for functions which it implements
65641 to always fail with ENOSYS. Some functions are actually named
65642 something starting with __ and the normal name is an alias. */
65643 #if defined __stub_$ac_func || defined __stub___$ac_func
65650 return $ac_func ();
65655 rm -f conftest.$ac_objext conftest$ac_exeext
65656 if { (ac_try="$ac_link"
65657 case "(($ac_try" in
65658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65659 *) ac_try_echo=$ac_try;;
65661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65662 $as_echo "$ac_try_echo") >&5
65663 (eval "$ac_link") 2>conftest.er1
65665 grep -v '^ *+' conftest.er1 >conftest.err
65667 cat conftest.err >&5
65668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65669 (exit $ac_status); } && {
65670 test -z "$ac_c_werror_flag" ||
65671 test ! -s conftest.err
65672 } && test -s conftest$ac_exeext && {
65673 test "$cross_compiling" = yes ||
65674 $as_test_x conftest$ac_exeext
65676 eval "$as_ac_var=yes"
65678 $as_echo "$as_me: failed program was:" >&5
65679 sed 's/^/| /' conftest.$ac_ext >&5
65681 eval "$as_ac_var=no"
65684 rm -rf conftest.dSYM
65685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65686 conftest$ac_exeext conftest.$ac_ext
65688 ac_res=`eval 'as_val=${'$as_ac_var'}
65689 $as_echo "$as_val"'`
65690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65691 $as_echo "$ac_res" >&6; }
65692 as_val=`eval 'as_val=${'$as_ac_var'}
65693 $as_echo "$as_val"'`
65694 if test "x$as_val" = x""yes; then
65695 cat >>confdefs.h <<_ACEOF
65696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65698 ice_have_memset=yes
65702 if test "${ice_have_memset}" = yes; then
65703 { $as_echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
65704 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
65705 if test "${ice_cv_have_memset_decl+set}" = set; then
65706 $as_echo_n "(cached) " >&6
65709 ice_cv_have_memset_decl=no
65710 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65711 ice_re_word='(^|[^a-zA-Z0-9_])'
65712 for header in string.h strings.h; do
65713 # Check for ordinary declaration
65714 cat >conftest.$ac_ext <<_ACEOF
65717 cat confdefs.h >>conftest.$ac_ext
65718 cat >>conftest.$ac_ext <<_ACEOF
65719 /* end confdefs.h. */
65723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65724 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then
65725 ice_cv_have_memset_decl=yes
65729 if test "$ice_cv_have_memset_decl" = yes; then
65732 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65733 cat >conftest.$ac_ext <<_ACEOF
65736 cat confdefs.h >>conftest.$ac_ext
65737 cat >>conftest.$ac_ext <<_ACEOF
65738 /* end confdefs.h. */
65742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65743 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65744 ice_cv_have_memset_decl=yes
65748 if test "$ice_cv_have_memset_decl" = yes; then
65755 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
65756 $as_echo "$ice_cv_have_memset_decl" >&6; }
65757 if test "$ice_cv_have_memset_decl" = yes; then
65759 cat >>confdefs.h <<_ACEOF
65760 #define HAVE_MEMSET_DECL 1
65767 ice_have_mkstemp=no
65769 for ac_func in mkstemp
65771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65772 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65773 $as_echo_n "checking for $ac_func... " >&6; }
65774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65775 $as_echo_n "(cached) " >&6
65777 cat >conftest.$ac_ext <<_ACEOF
65780 cat confdefs.h >>conftest.$ac_ext
65781 cat >>conftest.$ac_ext <<_ACEOF
65782 /* end confdefs.h. */
65783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65785 #define $ac_func innocuous_$ac_func
65787 /* System header to define __stub macros and hopefully few prototypes,
65788 which can conflict with char $ac_func (); below.
65789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65790 <limits.h> exists even on freestanding compilers. */
65793 # include <limits.h>
65795 # include <assert.h>
65800 /* Override any GCC internal prototype to avoid an error.
65801 Use char because int might match the return type of a GCC
65802 builtin and then its argument prototype would still apply. */
65807 /* The GNU C library defines this for functions which it implements
65808 to always fail with ENOSYS. Some functions are actually named
65809 something starting with __ and the normal name is an alias. */
65810 #if defined __stub_$ac_func || defined __stub___$ac_func
65817 return $ac_func ();
65822 rm -f conftest.$ac_objext conftest$ac_exeext
65823 if { (ac_try="$ac_link"
65824 case "(($ac_try" in
65825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65826 *) ac_try_echo=$ac_try;;
65828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65829 $as_echo "$ac_try_echo") >&5
65830 (eval "$ac_link") 2>conftest.er1
65832 grep -v '^ *+' conftest.er1 >conftest.err
65834 cat conftest.err >&5
65835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65836 (exit $ac_status); } && {
65837 test -z "$ac_c_werror_flag" ||
65838 test ! -s conftest.err
65839 } && test -s conftest$ac_exeext && {
65840 test "$cross_compiling" = yes ||
65841 $as_test_x conftest$ac_exeext
65843 eval "$as_ac_var=yes"
65845 $as_echo "$as_me: failed program was:" >&5
65846 sed 's/^/| /' conftest.$ac_ext >&5
65848 eval "$as_ac_var=no"
65851 rm -rf conftest.dSYM
65852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65853 conftest$ac_exeext conftest.$ac_ext
65855 ac_res=`eval 'as_val=${'$as_ac_var'}
65856 $as_echo "$as_val"'`
65857 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65858 $as_echo "$ac_res" >&6; }
65859 as_val=`eval 'as_val=${'$as_ac_var'}
65860 $as_echo "$as_val"'`
65861 if test "x$as_val" = x""yes; then
65862 cat >>confdefs.h <<_ACEOF
65863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65865 ice_have_mkstemp=yes
65869 if test "${ice_have_mkstemp}" = yes; then
65870 { $as_echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
65871 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
65872 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
65873 $as_echo_n "(cached) " >&6
65876 ice_cv_have_mkstemp_decl=no
65877 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65878 ice_re_word='(^|[^a-zA-Z0-9_])'
65879 for header in stdlib.h; do
65880 # Check for ordinary declaration
65881 cat >conftest.$ac_ext <<_ACEOF
65884 cat confdefs.h >>conftest.$ac_ext
65885 cat >>conftest.$ac_ext <<_ACEOF
65886 /* end confdefs.h. */
65890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65891 $EGREP "${ice_re_word}mkstemp[ ]*\(" >/dev/null 2>&1; then
65892 ice_cv_have_mkstemp_decl=yes
65896 if test "$ice_cv_have_mkstemp_decl" = yes; then
65899 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65900 cat >conftest.$ac_ext <<_ACEOF
65903 cat confdefs.h >>conftest.$ac_ext
65904 cat >>conftest.$ac_ext <<_ACEOF
65905 /* end confdefs.h. */
65909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65910 $EGREP "${ice_re_word}mkstemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65911 ice_cv_have_mkstemp_decl=yes
65915 if test "$ice_cv_have_mkstemp_decl" = yes; then
65922 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
65923 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
65924 if test "$ice_cv_have_mkstemp_decl" = yes; then
65926 cat >>confdefs.h <<_ACEOF
65927 #define HAVE_MKSTEMP_DECL 1
65936 for ac_func in mktemp
65938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65939 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65940 $as_echo_n "checking for $ac_func... " >&6; }
65941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65942 $as_echo_n "(cached) " >&6
65944 cat >conftest.$ac_ext <<_ACEOF
65947 cat confdefs.h >>conftest.$ac_ext
65948 cat >>conftest.$ac_ext <<_ACEOF
65949 /* end confdefs.h. */
65950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65952 #define $ac_func innocuous_$ac_func
65954 /* System header to define __stub macros and hopefully few prototypes,
65955 which can conflict with char $ac_func (); below.
65956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65957 <limits.h> exists even on freestanding compilers. */
65960 # include <limits.h>
65962 # include <assert.h>
65967 /* Override any GCC internal prototype to avoid an error.
65968 Use char because int might match the return type of a GCC
65969 builtin and then its argument prototype would still apply. */
65974 /* The GNU C library defines this for functions which it implements
65975 to always fail with ENOSYS. Some functions are actually named
65976 something starting with __ and the normal name is an alias. */
65977 #if defined __stub_$ac_func || defined __stub___$ac_func
65984 return $ac_func ();
65989 rm -f conftest.$ac_objext conftest$ac_exeext
65990 if { (ac_try="$ac_link"
65991 case "(($ac_try" in
65992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65993 *) ac_try_echo=$ac_try;;
65995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65996 $as_echo "$ac_try_echo") >&5
65997 (eval "$ac_link") 2>conftest.er1
65999 grep -v '^ *+' conftest.er1 >conftest.err
66001 cat conftest.err >&5
66002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66003 (exit $ac_status); } && {
66004 test -z "$ac_c_werror_flag" ||
66005 test ! -s conftest.err
66006 } && test -s conftest$ac_exeext && {
66007 test "$cross_compiling" = yes ||
66008 $as_test_x conftest$ac_exeext
66010 eval "$as_ac_var=yes"
66012 $as_echo "$as_me: failed program was:" >&5
66013 sed 's/^/| /' conftest.$ac_ext >&5
66015 eval "$as_ac_var=no"
66018 rm -rf conftest.dSYM
66019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66020 conftest$ac_exeext conftest.$ac_ext
66022 ac_res=`eval 'as_val=${'$as_ac_var'}
66023 $as_echo "$as_val"'`
66024 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66025 $as_echo "$ac_res" >&6; }
66026 as_val=`eval 'as_val=${'$as_ac_var'}
66027 $as_echo "$as_val"'`
66028 if test "x$as_val" = x""yes; then
66029 cat >>confdefs.h <<_ACEOF
66030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66032 ice_have_mktemp=yes
66036 if test "${ice_have_mktemp}" = yes; then
66037 { $as_echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
66038 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
66039 if test "${ice_cv_have_mktemp_decl+set}" = set; then
66040 $as_echo_n "(cached) " >&6
66043 ice_cv_have_mktemp_decl=no
66044 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66045 ice_re_word='(^|[^a-zA-Z0-9_])'
66046 for header in stdlib.h; do
66047 # Check for ordinary declaration
66048 cat >conftest.$ac_ext <<_ACEOF
66051 cat confdefs.h >>conftest.$ac_ext
66052 cat >>conftest.$ac_ext <<_ACEOF
66053 /* end confdefs.h. */
66057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66058 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then
66059 ice_cv_have_mktemp_decl=yes
66063 if test "$ice_cv_have_mktemp_decl" = yes; then
66066 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66067 cat >conftest.$ac_ext <<_ACEOF
66070 cat confdefs.h >>conftest.$ac_ext
66071 cat >>conftest.$ac_ext <<_ACEOF
66072 /* end confdefs.h. */
66076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66077 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66078 ice_cv_have_mktemp_decl=yes
66082 if test "$ice_cv_have_mktemp_decl" = yes; then
66089 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
66090 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
66091 if test "$ice_cv_have_mktemp_decl" = yes; then
66093 cat >>confdefs.h <<_ACEOF
66094 #define HAVE_MKTEMP_DECL 1
66103 for ac_func in mktime
66105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66106 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66107 $as_echo_n "checking for $ac_func... " >&6; }
66108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66109 $as_echo_n "(cached) " >&6
66111 cat >conftest.$ac_ext <<_ACEOF
66114 cat confdefs.h >>conftest.$ac_ext
66115 cat >>conftest.$ac_ext <<_ACEOF
66116 /* end confdefs.h. */
66117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66119 #define $ac_func innocuous_$ac_func
66121 /* System header to define __stub macros and hopefully few prototypes,
66122 which can conflict with char $ac_func (); below.
66123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66124 <limits.h> exists even on freestanding compilers. */
66127 # include <limits.h>
66129 # include <assert.h>
66134 /* Override any GCC internal prototype to avoid an error.
66135 Use char because int might match the return type of a GCC
66136 builtin and then its argument prototype would still apply. */
66141 /* The GNU C library defines this for functions which it implements
66142 to always fail with ENOSYS. Some functions are actually named
66143 something starting with __ and the normal name is an alias. */
66144 #if defined __stub_$ac_func || defined __stub___$ac_func
66151 return $ac_func ();
66156 rm -f conftest.$ac_objext conftest$ac_exeext
66157 if { (ac_try="$ac_link"
66158 case "(($ac_try" in
66159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66160 *) ac_try_echo=$ac_try;;
66162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66163 $as_echo "$ac_try_echo") >&5
66164 (eval "$ac_link") 2>conftest.er1
66166 grep -v '^ *+' conftest.er1 >conftest.err
66168 cat conftest.err >&5
66169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66170 (exit $ac_status); } && {
66171 test -z "$ac_c_werror_flag" ||
66172 test ! -s conftest.err
66173 } && test -s conftest$ac_exeext && {
66174 test "$cross_compiling" = yes ||
66175 $as_test_x conftest$ac_exeext
66177 eval "$as_ac_var=yes"
66179 $as_echo "$as_me: failed program was:" >&5
66180 sed 's/^/| /' conftest.$ac_ext >&5
66182 eval "$as_ac_var=no"
66185 rm -rf conftest.dSYM
66186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66187 conftest$ac_exeext conftest.$ac_ext
66189 ac_res=`eval 'as_val=${'$as_ac_var'}
66190 $as_echo "$as_val"'`
66191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66192 $as_echo "$ac_res" >&6; }
66193 as_val=`eval 'as_val=${'$as_ac_var'}
66194 $as_echo "$as_val"'`
66195 if test "x$as_val" = x""yes; then
66196 cat >>confdefs.h <<_ACEOF
66197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66199 ice_have_mktime=yes
66203 if test "${ice_have_mktime}" = yes; then
66204 { $as_echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
66205 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
66206 if test "${ice_cv_have_mktime_decl+set}" = set; then
66207 $as_echo_n "(cached) " >&6
66210 ice_cv_have_mktime_decl=no
66211 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66212 ice_re_word='(^|[^a-zA-Z0-9_])'
66213 for header in time.h sys/time.h; do
66214 # Check for ordinary declaration
66215 cat >conftest.$ac_ext <<_ACEOF
66218 cat confdefs.h >>conftest.$ac_ext
66219 cat >>conftest.$ac_ext <<_ACEOF
66220 /* end confdefs.h. */
66224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66225 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then
66226 ice_cv_have_mktime_decl=yes
66230 if test "$ice_cv_have_mktime_decl" = yes; then
66233 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66234 cat >conftest.$ac_ext <<_ACEOF
66237 cat confdefs.h >>conftest.$ac_ext
66238 cat >>conftest.$ac_ext <<_ACEOF
66239 /* end confdefs.h. */
66243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66244 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66245 ice_cv_have_mktime_decl=yes
66249 if test "$ice_cv_have_mktime_decl" = yes; then
66256 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
66257 $as_echo "$ice_cv_have_mktime_decl" >&6; }
66258 if test "$ice_cv_have_mktime_decl" = yes; then
66260 cat >>confdefs.h <<_ACEOF
66261 #define HAVE_MKTIME_DECL 1
66268 for ac_func in on_exit
66270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66271 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66272 $as_echo_n "checking for $ac_func... " >&6; }
66273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66274 $as_echo_n "(cached) " >&6
66276 cat >conftest.$ac_ext <<_ACEOF
66279 cat confdefs.h >>conftest.$ac_ext
66280 cat >>conftest.$ac_ext <<_ACEOF
66281 /* end confdefs.h. */
66282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66284 #define $ac_func innocuous_$ac_func
66286 /* System header to define __stub macros and hopefully few prototypes,
66287 which can conflict with char $ac_func (); below.
66288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66289 <limits.h> exists even on freestanding compilers. */
66292 # include <limits.h>
66294 # include <assert.h>
66299 /* Override any GCC internal prototype to avoid an error.
66300 Use char because int might match the return type of a GCC
66301 builtin and then its argument prototype would still apply. */
66306 /* The GNU C library defines this for functions which it implements
66307 to always fail with ENOSYS. Some functions are actually named
66308 something starting with __ and the normal name is an alias. */
66309 #if defined __stub_$ac_func || defined __stub___$ac_func
66316 return $ac_func ();
66321 rm -f conftest.$ac_objext conftest$ac_exeext
66322 if { (ac_try="$ac_link"
66323 case "(($ac_try" in
66324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66325 *) ac_try_echo=$ac_try;;
66327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66328 $as_echo "$ac_try_echo") >&5
66329 (eval "$ac_link") 2>conftest.er1
66331 grep -v '^ *+' conftest.er1 >conftest.err
66333 cat conftest.err >&5
66334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66335 (exit $ac_status); } && {
66336 test -z "$ac_c_werror_flag" ||
66337 test ! -s conftest.err
66338 } && test -s conftest$ac_exeext && {
66339 test "$cross_compiling" = yes ||
66340 $as_test_x conftest$ac_exeext
66342 eval "$as_ac_var=yes"
66344 $as_echo "$as_me: failed program was:" >&5
66345 sed 's/^/| /' conftest.$ac_ext >&5
66347 eval "$as_ac_var=no"
66350 rm -rf conftest.dSYM
66351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66352 conftest$ac_exeext conftest.$ac_ext
66354 ac_res=`eval 'as_val=${'$as_ac_var'}
66355 $as_echo "$as_val"'`
66356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66357 $as_echo "$ac_res" >&6; }
66358 as_val=`eval 'as_val=${'$as_ac_var'}
66359 $as_echo "$as_val"'`
66360 if test "x$as_val" = x""yes; then
66361 cat >>confdefs.h <<_ACEOF
66362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66369 ice_have_openlog=no
66371 for ac_func in openlog
66373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66374 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66375 $as_echo_n "checking for $ac_func... " >&6; }
66376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66377 $as_echo_n "(cached) " >&6
66379 cat >conftest.$ac_ext <<_ACEOF
66382 cat confdefs.h >>conftest.$ac_ext
66383 cat >>conftest.$ac_ext <<_ACEOF
66384 /* end confdefs.h. */
66385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66387 #define $ac_func innocuous_$ac_func
66389 /* System header to define __stub macros and hopefully few prototypes,
66390 which can conflict with char $ac_func (); below.
66391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66392 <limits.h> exists even on freestanding compilers. */
66395 # include <limits.h>
66397 # include <assert.h>
66402 /* Override any GCC internal prototype to avoid an error.
66403 Use char because int might match the return type of a GCC
66404 builtin and then its argument prototype would still apply. */
66409 /* The GNU C library defines this for functions which it implements
66410 to always fail with ENOSYS. Some functions are actually named
66411 something starting with __ and the normal name is an alias. */
66412 #if defined __stub_$ac_func || defined __stub___$ac_func
66419 return $ac_func ();
66424 rm -f conftest.$ac_objext conftest$ac_exeext
66425 if { (ac_try="$ac_link"
66426 case "(($ac_try" in
66427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66428 *) ac_try_echo=$ac_try;;
66430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66431 $as_echo "$ac_try_echo") >&5
66432 (eval "$ac_link") 2>conftest.er1
66434 grep -v '^ *+' conftest.er1 >conftest.err
66436 cat conftest.err >&5
66437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66438 (exit $ac_status); } && {
66439 test -z "$ac_c_werror_flag" ||
66440 test ! -s conftest.err
66441 } && test -s conftest$ac_exeext && {
66442 test "$cross_compiling" = yes ||
66443 $as_test_x conftest$ac_exeext
66445 eval "$as_ac_var=yes"
66447 $as_echo "$as_me: failed program was:" >&5
66448 sed 's/^/| /' conftest.$ac_ext >&5
66450 eval "$as_ac_var=no"
66453 rm -rf conftest.dSYM
66454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66455 conftest$ac_exeext conftest.$ac_ext
66457 ac_res=`eval 'as_val=${'$as_ac_var'}
66458 $as_echo "$as_val"'`
66459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66460 $as_echo "$ac_res" >&6; }
66461 as_val=`eval 'as_val=${'$as_ac_var'}
66462 $as_echo "$as_val"'`
66463 if test "x$as_val" = x""yes; then
66464 cat >>confdefs.h <<_ACEOF
66465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66467 ice_have_openlog=yes
66471 if test "${ice_have_openlog}" = yes; then
66472 { $as_echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
66473 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
66474 if test "${ice_cv_have_openlog_decl+set}" = set; then
66475 $as_echo_n "(cached) " >&6
66478 ice_cv_have_openlog_decl=no
66479 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66480 ice_re_word='(^|[^a-zA-Z0-9_])'
66481 for header in syslog.h; do
66482 # Check for ordinary declaration
66483 cat >conftest.$ac_ext <<_ACEOF
66486 cat confdefs.h >>conftest.$ac_ext
66487 cat >>conftest.$ac_ext <<_ACEOF
66488 /* end confdefs.h. */
66492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66493 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then
66494 ice_cv_have_openlog_decl=yes
66498 if test "$ice_cv_have_openlog_decl" = yes; then
66501 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66502 cat >conftest.$ac_ext <<_ACEOF
66505 cat confdefs.h >>conftest.$ac_ext
66506 cat >>conftest.$ac_ext <<_ACEOF
66507 /* end confdefs.h. */
66511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66512 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66513 ice_cv_have_openlog_decl=yes
66517 if test "$ice_cv_have_openlog_decl" = yes; then
66524 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
66525 $as_echo "$ice_cv_have_openlog_decl" >&6; }
66526 if test "$ice_cv_have_openlog_decl" = yes; then
66528 cat >>confdefs.h <<_ACEOF
66529 #define HAVE_OPENLOG_DECL 1
66538 for ac_func in pclose
66540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66542 $as_echo_n "checking for $ac_func... " >&6; }
66543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66544 $as_echo_n "(cached) " >&6
66546 cat >conftest.$ac_ext <<_ACEOF
66549 cat confdefs.h >>conftest.$ac_ext
66550 cat >>conftest.$ac_ext <<_ACEOF
66551 /* end confdefs.h. */
66552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66554 #define $ac_func innocuous_$ac_func
66556 /* System header to define __stub macros and hopefully few prototypes,
66557 which can conflict with char $ac_func (); below.
66558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66559 <limits.h> exists even on freestanding compilers. */
66562 # include <limits.h>
66564 # include <assert.h>
66569 /* Override any GCC internal prototype to avoid an error.
66570 Use char because int might match the return type of a GCC
66571 builtin and then its argument prototype would still apply. */
66576 /* The GNU C library defines this for functions which it implements
66577 to always fail with ENOSYS. Some functions are actually named
66578 something starting with __ and the normal name is an alias. */
66579 #if defined __stub_$ac_func || defined __stub___$ac_func
66586 return $ac_func ();
66591 rm -f conftest.$ac_objext conftest$ac_exeext
66592 if { (ac_try="$ac_link"
66593 case "(($ac_try" in
66594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66595 *) ac_try_echo=$ac_try;;
66597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66598 $as_echo "$ac_try_echo") >&5
66599 (eval "$ac_link") 2>conftest.er1
66601 grep -v '^ *+' conftest.er1 >conftest.err
66603 cat conftest.err >&5
66604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66605 (exit $ac_status); } && {
66606 test -z "$ac_c_werror_flag" ||
66607 test ! -s conftest.err
66608 } && test -s conftest$ac_exeext && {
66609 test "$cross_compiling" = yes ||
66610 $as_test_x conftest$ac_exeext
66612 eval "$as_ac_var=yes"
66614 $as_echo "$as_me: failed program was:" >&5
66615 sed 's/^/| /' conftest.$ac_ext >&5
66617 eval "$as_ac_var=no"
66620 rm -rf conftest.dSYM
66621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66622 conftest$ac_exeext conftest.$ac_ext
66624 ac_res=`eval 'as_val=${'$as_ac_var'}
66625 $as_echo "$as_val"'`
66626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66627 $as_echo "$ac_res" >&6; }
66628 as_val=`eval 'as_val=${'$as_ac_var'}
66629 $as_echo "$as_val"'`
66630 if test "x$as_val" = x""yes; then
66631 cat >>confdefs.h <<_ACEOF
66632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66634 ice_have_pclose=yes
66638 if test "${ice_have_pclose}" = yes; then
66639 { $as_echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
66640 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
66641 if test "${ice_cv_have_pclose_decl+set}" = set; then
66642 $as_echo_n "(cached) " >&6
66645 ice_cv_have_pclose_decl=no
66646 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66647 ice_re_word='(^|[^a-zA-Z0-9_])'
66648 for header in stdio.h; do
66649 # Check for ordinary declaration
66650 cat >conftest.$ac_ext <<_ACEOF
66653 cat confdefs.h >>conftest.$ac_ext
66654 cat >>conftest.$ac_ext <<_ACEOF
66655 /* end confdefs.h. */
66659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66660 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then
66661 ice_cv_have_pclose_decl=yes
66665 if test "$ice_cv_have_pclose_decl" = yes; then
66668 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66669 cat >conftest.$ac_ext <<_ACEOF
66672 cat confdefs.h >>conftest.$ac_ext
66673 cat >>conftest.$ac_ext <<_ACEOF
66674 /* end confdefs.h. */
66678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66679 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66680 ice_cv_have_pclose_decl=yes
66684 if test "$ice_cv_have_pclose_decl" = yes; then
66691 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
66692 $as_echo "$ice_cv_have_pclose_decl" >&6; }
66693 if test "$ice_cv_have_pclose_decl" = yes; then
66695 cat >>confdefs.h <<_ACEOF
66696 #define HAVE_PCLOSE_DECL 1
66705 for ac_func in perror
66707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66709 $as_echo_n "checking for $ac_func... " >&6; }
66710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66711 $as_echo_n "(cached) " >&6
66713 cat >conftest.$ac_ext <<_ACEOF
66716 cat confdefs.h >>conftest.$ac_ext
66717 cat >>conftest.$ac_ext <<_ACEOF
66718 /* end confdefs.h. */
66719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66721 #define $ac_func innocuous_$ac_func
66723 /* System header to define __stub macros and hopefully few prototypes,
66724 which can conflict with char $ac_func (); below.
66725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66726 <limits.h> exists even on freestanding compilers. */
66729 # include <limits.h>
66731 # include <assert.h>
66736 /* Override any GCC internal prototype to avoid an error.
66737 Use char because int might match the return type of a GCC
66738 builtin and then its argument prototype would still apply. */
66743 /* The GNU C library defines this for functions which it implements
66744 to always fail with ENOSYS. Some functions are actually named
66745 something starting with __ and the normal name is an alias. */
66746 #if defined __stub_$ac_func || defined __stub___$ac_func
66753 return $ac_func ();
66758 rm -f conftest.$ac_objext conftest$ac_exeext
66759 if { (ac_try="$ac_link"
66760 case "(($ac_try" in
66761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66762 *) ac_try_echo=$ac_try;;
66764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66765 $as_echo "$ac_try_echo") >&5
66766 (eval "$ac_link") 2>conftest.er1
66768 grep -v '^ *+' conftest.er1 >conftest.err
66770 cat conftest.err >&5
66771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66772 (exit $ac_status); } && {
66773 test -z "$ac_c_werror_flag" ||
66774 test ! -s conftest.err
66775 } && test -s conftest$ac_exeext && {
66776 test "$cross_compiling" = yes ||
66777 $as_test_x conftest$ac_exeext
66779 eval "$as_ac_var=yes"
66781 $as_echo "$as_me: failed program was:" >&5
66782 sed 's/^/| /' conftest.$ac_ext >&5
66784 eval "$as_ac_var=no"
66787 rm -rf conftest.dSYM
66788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66789 conftest$ac_exeext conftest.$ac_ext
66791 ac_res=`eval 'as_val=${'$as_ac_var'}
66792 $as_echo "$as_val"'`
66793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66794 $as_echo "$ac_res" >&6; }
66795 as_val=`eval 'as_val=${'$as_ac_var'}
66796 $as_echo "$as_val"'`
66797 if test "x$as_val" = x""yes; then
66798 cat >>confdefs.h <<_ACEOF
66799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66801 ice_have_perror=yes
66805 if test "${ice_have_perror}" = yes; then
66806 { $as_echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
66807 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
66808 if test "${ice_cv_have_perror_decl+set}" = set; then
66809 $as_echo_n "(cached) " >&6
66812 ice_cv_have_perror_decl=no
66813 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66814 ice_re_word='(^|[^a-zA-Z0-9_])'
66815 for header in stdio.h; do
66816 # Check for ordinary declaration
66817 cat >conftest.$ac_ext <<_ACEOF
66820 cat confdefs.h >>conftest.$ac_ext
66821 cat >>conftest.$ac_ext <<_ACEOF
66822 /* end confdefs.h. */
66826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66827 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then
66828 ice_cv_have_perror_decl=yes
66832 if test "$ice_cv_have_perror_decl" = yes; then
66835 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66836 cat >conftest.$ac_ext <<_ACEOF
66839 cat confdefs.h >>conftest.$ac_ext
66840 cat >>conftest.$ac_ext <<_ACEOF
66841 /* end confdefs.h. */
66845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66846 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66847 ice_cv_have_perror_decl=yes
66851 if test "$ice_cv_have_perror_decl" = yes; then
66858 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
66859 $as_echo "$ice_cv_have_perror_decl" >&6; }
66860 if test "$ice_cv_have_perror_decl" = yes; then
66862 cat >>confdefs.h <<_ACEOF
66863 #define HAVE_PERROR_DECL 1
66872 for ac_func in printf
66874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66875 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66876 $as_echo_n "checking for $ac_func... " >&6; }
66877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66878 $as_echo_n "(cached) " >&6
66880 cat >conftest.$ac_ext <<_ACEOF
66883 cat confdefs.h >>conftest.$ac_ext
66884 cat >>conftest.$ac_ext <<_ACEOF
66885 /* end confdefs.h. */
66886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66888 #define $ac_func innocuous_$ac_func
66890 /* System header to define __stub macros and hopefully few prototypes,
66891 which can conflict with char $ac_func (); below.
66892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66893 <limits.h> exists even on freestanding compilers. */
66896 # include <limits.h>
66898 # include <assert.h>
66903 /* Override any GCC internal prototype to avoid an error.
66904 Use char because int might match the return type of a GCC
66905 builtin and then its argument prototype would still apply. */
66910 /* The GNU C library defines this for functions which it implements
66911 to always fail with ENOSYS. Some functions are actually named
66912 something starting with __ and the normal name is an alias. */
66913 #if defined __stub_$ac_func || defined __stub___$ac_func
66920 return $ac_func ();
66925 rm -f conftest.$ac_objext conftest$ac_exeext
66926 if { (ac_try="$ac_link"
66927 case "(($ac_try" in
66928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66929 *) ac_try_echo=$ac_try;;
66931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66932 $as_echo "$ac_try_echo") >&5
66933 (eval "$ac_link") 2>conftest.er1
66935 grep -v '^ *+' conftest.er1 >conftest.err
66937 cat conftest.err >&5
66938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66939 (exit $ac_status); } && {
66940 test -z "$ac_c_werror_flag" ||
66941 test ! -s conftest.err
66942 } && test -s conftest$ac_exeext && {
66943 test "$cross_compiling" = yes ||
66944 $as_test_x conftest$ac_exeext
66946 eval "$as_ac_var=yes"
66948 $as_echo "$as_me: failed program was:" >&5
66949 sed 's/^/| /' conftest.$ac_ext >&5
66951 eval "$as_ac_var=no"
66954 rm -rf conftest.dSYM
66955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66956 conftest$ac_exeext conftest.$ac_ext
66958 ac_res=`eval 'as_val=${'$as_ac_var'}
66959 $as_echo "$as_val"'`
66960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66961 $as_echo "$ac_res" >&6; }
66962 as_val=`eval 'as_val=${'$as_ac_var'}
66963 $as_echo "$as_val"'`
66964 if test "x$as_val" = x""yes; then
66965 cat >>confdefs.h <<_ACEOF
66966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66968 ice_have_printf=yes
66972 if test "${ice_have_printf}" = yes; then
66973 { $as_echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
66974 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
66975 if test "${ice_cv_have_printf_decl+set}" = set; then
66976 $as_echo_n "(cached) " >&6
66979 ice_cv_have_printf_decl=no
66980 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66981 ice_re_word='(^|[^a-zA-Z0-9_])'
66982 for header in stdio.h; do
66983 # Check for ordinary declaration
66984 cat >conftest.$ac_ext <<_ACEOF
66987 cat confdefs.h >>conftest.$ac_ext
66988 cat >>conftest.$ac_ext <<_ACEOF
66989 /* end confdefs.h. */
66993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66994 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then
66995 ice_cv_have_printf_decl=yes
66999 if test "$ice_cv_have_printf_decl" = yes; then
67002 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67003 cat >conftest.$ac_ext <<_ACEOF
67006 cat confdefs.h >>conftest.$ac_ext
67007 cat >>conftest.$ac_ext <<_ACEOF
67008 /* end confdefs.h. */
67012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67013 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67014 ice_cv_have_printf_decl=yes
67018 if test "$ice_cv_have_printf_decl" = yes; then
67025 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
67026 $as_echo "$ice_cv_have_printf_decl" >&6; }
67027 if test "$ice_cv_have_printf_decl" = yes; then
67029 cat >>confdefs.h <<_ACEOF
67030 #define HAVE_PRINTF_DECL 1
67037 for ac_func in putenv
67039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67040 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67041 $as_echo_n "checking for $ac_func... " >&6; }
67042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67043 $as_echo_n "(cached) " >&6
67045 cat >conftest.$ac_ext <<_ACEOF
67048 cat confdefs.h >>conftest.$ac_ext
67049 cat >>conftest.$ac_ext <<_ACEOF
67050 /* end confdefs.h. */
67051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67053 #define $ac_func innocuous_$ac_func
67055 /* System header to define __stub macros and hopefully few prototypes,
67056 which can conflict with char $ac_func (); below.
67057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67058 <limits.h> exists even on freestanding compilers. */
67061 # include <limits.h>
67063 # include <assert.h>
67068 /* Override any GCC internal prototype to avoid an error.
67069 Use char because int might match the return type of a GCC
67070 builtin and then its argument prototype would still apply. */
67075 /* The GNU C library defines this for functions which it implements
67076 to always fail with ENOSYS. Some functions are actually named
67077 something starting with __ and the normal name is an alias. */
67078 #if defined __stub_$ac_func || defined __stub___$ac_func
67085 return $ac_func ();
67090 rm -f conftest.$ac_objext conftest$ac_exeext
67091 if { (ac_try="$ac_link"
67092 case "(($ac_try" in
67093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67094 *) ac_try_echo=$ac_try;;
67096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67097 $as_echo "$ac_try_echo") >&5
67098 (eval "$ac_link") 2>conftest.er1
67100 grep -v '^ *+' conftest.er1 >conftest.err
67102 cat conftest.err >&5
67103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67104 (exit $ac_status); } && {
67105 test -z "$ac_c_werror_flag" ||
67106 test ! -s conftest.err
67107 } && test -s conftest$ac_exeext && {
67108 test "$cross_compiling" = yes ||
67109 $as_test_x conftest$ac_exeext
67111 eval "$as_ac_var=yes"
67113 $as_echo "$as_me: failed program was:" >&5
67114 sed 's/^/| /' conftest.$ac_ext >&5
67116 eval "$as_ac_var=no"
67119 rm -rf conftest.dSYM
67120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67121 conftest$ac_exeext conftest.$ac_ext
67123 ac_res=`eval 'as_val=${'$as_ac_var'}
67124 $as_echo "$as_val"'`
67125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67126 $as_echo "$ac_res" >&6; }
67127 as_val=`eval 'as_val=${'$as_ac_var'}
67128 $as_echo "$as_val"'`
67129 if test "x$as_val" = x""yes; then
67130 cat >>confdefs.h <<_ACEOF
67131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67140 for ac_func in puts
67142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67143 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67144 $as_echo_n "checking for $ac_func... " >&6; }
67145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67146 $as_echo_n "(cached) " >&6
67148 cat >conftest.$ac_ext <<_ACEOF
67151 cat confdefs.h >>conftest.$ac_ext
67152 cat >>conftest.$ac_ext <<_ACEOF
67153 /* end confdefs.h. */
67154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67156 #define $ac_func innocuous_$ac_func
67158 /* System header to define __stub macros and hopefully few prototypes,
67159 which can conflict with char $ac_func (); below.
67160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67161 <limits.h> exists even on freestanding compilers. */
67164 # include <limits.h>
67166 # include <assert.h>
67171 /* Override any GCC internal prototype to avoid an error.
67172 Use char because int might match the return type of a GCC
67173 builtin and then its argument prototype would still apply. */
67178 /* The GNU C library defines this for functions which it implements
67179 to always fail with ENOSYS. Some functions are actually named
67180 something starting with __ and the normal name is an alias. */
67181 #if defined __stub_$ac_func || defined __stub___$ac_func
67188 return $ac_func ();
67193 rm -f conftest.$ac_objext conftest$ac_exeext
67194 if { (ac_try="$ac_link"
67195 case "(($ac_try" in
67196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67197 *) ac_try_echo=$ac_try;;
67199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67200 $as_echo "$ac_try_echo") >&5
67201 (eval "$ac_link") 2>conftest.er1
67203 grep -v '^ *+' conftest.er1 >conftest.err
67205 cat conftest.err >&5
67206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67207 (exit $ac_status); } && {
67208 test -z "$ac_c_werror_flag" ||
67209 test ! -s conftest.err
67210 } && test -s conftest$ac_exeext && {
67211 test "$cross_compiling" = yes ||
67212 $as_test_x conftest$ac_exeext
67214 eval "$as_ac_var=yes"
67216 $as_echo "$as_me: failed program was:" >&5
67217 sed 's/^/| /' conftest.$ac_ext >&5
67219 eval "$as_ac_var=no"
67222 rm -rf conftest.dSYM
67223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67224 conftest$ac_exeext conftest.$ac_ext
67226 ac_res=`eval 'as_val=${'$as_ac_var'}
67227 $as_echo "$as_val"'`
67228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67229 $as_echo "$ac_res" >&6; }
67230 as_val=`eval 'as_val=${'$as_ac_var'}
67231 $as_echo "$as_val"'`
67232 if test "x$as_val" = x""yes; then
67233 cat >>confdefs.h <<_ACEOF
67234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67240 if test "${ice_have_puts}" = yes; then
67241 { $as_echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
67242 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
67243 if test "${ice_cv_have_puts_decl+set}" = set; then
67244 $as_echo_n "(cached) " >&6
67247 ice_cv_have_puts_decl=no
67248 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67249 ice_re_word='(^|[^a-zA-Z0-9_])'
67250 for header in stdio.h; do
67251 # Check for ordinary declaration
67252 cat >conftest.$ac_ext <<_ACEOF
67255 cat confdefs.h >>conftest.$ac_ext
67256 cat >>conftest.$ac_ext <<_ACEOF
67257 /* end confdefs.h. */
67261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67262 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then
67263 ice_cv_have_puts_decl=yes
67267 if test "$ice_cv_have_puts_decl" = yes; then
67270 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67271 cat >conftest.$ac_ext <<_ACEOF
67274 cat confdefs.h >>conftest.$ac_ext
67275 cat >>conftest.$ac_ext <<_ACEOF
67276 /* end confdefs.h. */
67280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67281 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67282 ice_cv_have_puts_decl=yes
67286 if test "$ice_cv_have_puts_decl" = yes; then
67293 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
67294 $as_echo "$ice_cv_have_puts_decl" >&6; }
67295 if test "$ice_cv_have_puts_decl" = yes; then
67297 cat >>confdefs.h <<_ACEOF
67298 #define HAVE_PUTS_DECL 1
67305 ice_have_realloc=no
67307 for ac_func in realloc
67309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67310 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67311 $as_echo_n "checking for $ac_func... " >&6; }
67312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67313 $as_echo_n "(cached) " >&6
67315 cat >conftest.$ac_ext <<_ACEOF
67318 cat confdefs.h >>conftest.$ac_ext
67319 cat >>conftest.$ac_ext <<_ACEOF
67320 /* end confdefs.h. */
67321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67323 #define $ac_func innocuous_$ac_func
67325 /* System header to define __stub macros and hopefully few prototypes,
67326 which can conflict with char $ac_func (); below.
67327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67328 <limits.h> exists even on freestanding compilers. */
67331 # include <limits.h>
67333 # include <assert.h>
67338 /* Override any GCC internal prototype to avoid an error.
67339 Use char because int might match the return type of a GCC
67340 builtin and then its argument prototype would still apply. */
67345 /* The GNU C library defines this for functions which it implements
67346 to always fail with ENOSYS. Some functions are actually named
67347 something starting with __ and the normal name is an alias. */
67348 #if defined __stub_$ac_func || defined __stub___$ac_func
67355 return $ac_func ();
67360 rm -f conftest.$ac_objext conftest$ac_exeext
67361 if { (ac_try="$ac_link"
67362 case "(($ac_try" in
67363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67364 *) ac_try_echo=$ac_try;;
67366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67367 $as_echo "$ac_try_echo") >&5
67368 (eval "$ac_link") 2>conftest.er1
67370 grep -v '^ *+' conftest.er1 >conftest.err
67372 cat conftest.err >&5
67373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67374 (exit $ac_status); } && {
67375 test -z "$ac_c_werror_flag" ||
67376 test ! -s conftest.err
67377 } && test -s conftest$ac_exeext && {
67378 test "$cross_compiling" = yes ||
67379 $as_test_x conftest$ac_exeext
67381 eval "$as_ac_var=yes"
67383 $as_echo "$as_me: failed program was:" >&5
67384 sed 's/^/| /' conftest.$ac_ext >&5
67386 eval "$as_ac_var=no"
67389 rm -rf conftest.dSYM
67390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67391 conftest$ac_exeext conftest.$ac_ext
67393 ac_res=`eval 'as_val=${'$as_ac_var'}
67394 $as_echo "$as_val"'`
67395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67396 $as_echo "$ac_res" >&6; }
67397 as_val=`eval 'as_val=${'$as_ac_var'}
67398 $as_echo "$as_val"'`
67399 if test "x$as_val" = x""yes; then
67400 cat >>confdefs.h <<_ACEOF
67401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67403 ice_have_realloc=yes
67407 if test "${ice_have_realloc}" = yes; then
67408 { $as_echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
67409 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
67410 if test "${ice_cv_have_realloc_decl+set}" = set; then
67411 $as_echo_n "(cached) " >&6
67414 ice_cv_have_realloc_decl=no
67415 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67416 ice_re_word='(^|[^a-zA-Z0-9_])'
67417 for header in stdlib.h; do
67418 # Check for ordinary declaration
67419 cat >conftest.$ac_ext <<_ACEOF
67422 cat confdefs.h >>conftest.$ac_ext
67423 cat >>conftest.$ac_ext <<_ACEOF
67424 /* end confdefs.h. */
67428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67429 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then
67430 ice_cv_have_realloc_decl=yes
67434 if test "$ice_cv_have_realloc_decl" = yes; then
67437 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67438 cat >conftest.$ac_ext <<_ACEOF
67441 cat confdefs.h >>conftest.$ac_ext
67442 cat >>conftest.$ac_ext <<_ACEOF
67443 /* end confdefs.h. */
67447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67448 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67449 ice_cv_have_realloc_decl=yes
67453 if test "$ice_cv_have_realloc_decl" = yes; then
67460 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
67461 $as_echo "$ice_cv_have_realloc_decl" >&6; }
67462 if test "$ice_cv_have_realloc_decl" = yes; then
67464 cat >>confdefs.h <<_ACEOF
67465 #define HAVE_REALLOC_DECL 1
67472 ice_have_recvfrom=no
67474 for ac_func in recvfrom
67476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67477 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67478 $as_echo_n "checking for $ac_func... " >&6; }
67479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67480 $as_echo_n "(cached) " >&6
67482 cat >conftest.$ac_ext <<_ACEOF
67485 cat confdefs.h >>conftest.$ac_ext
67486 cat >>conftest.$ac_ext <<_ACEOF
67487 /* end confdefs.h. */
67488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67490 #define $ac_func innocuous_$ac_func
67492 /* System header to define __stub macros and hopefully few prototypes,
67493 which can conflict with char $ac_func (); below.
67494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67495 <limits.h> exists even on freestanding compilers. */
67498 # include <limits.h>
67500 # include <assert.h>
67505 /* Override any GCC internal prototype to avoid an error.
67506 Use char because int might match the return type of a GCC
67507 builtin and then its argument prototype would still apply. */
67512 /* The GNU C library defines this for functions which it implements
67513 to always fail with ENOSYS. Some functions are actually named
67514 something starting with __ and the normal name is an alias. */
67515 #if defined __stub_$ac_func || defined __stub___$ac_func
67522 return $ac_func ();
67527 rm -f conftest.$ac_objext conftest$ac_exeext
67528 if { (ac_try="$ac_link"
67529 case "(($ac_try" in
67530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67531 *) ac_try_echo=$ac_try;;
67533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67534 $as_echo "$ac_try_echo") >&5
67535 (eval "$ac_link") 2>conftest.er1
67537 grep -v '^ *+' conftest.er1 >conftest.err
67539 cat conftest.err >&5
67540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67541 (exit $ac_status); } && {
67542 test -z "$ac_c_werror_flag" ||
67543 test ! -s conftest.err
67544 } && test -s conftest$ac_exeext && {
67545 test "$cross_compiling" = yes ||
67546 $as_test_x conftest$ac_exeext
67548 eval "$as_ac_var=yes"
67550 $as_echo "$as_me: failed program was:" >&5
67551 sed 's/^/| /' conftest.$ac_ext >&5
67553 eval "$as_ac_var=no"
67556 rm -rf conftest.dSYM
67557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67558 conftest$ac_exeext conftest.$ac_ext
67560 ac_res=`eval 'as_val=${'$as_ac_var'}
67561 $as_echo "$as_val"'`
67562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67563 $as_echo "$ac_res" >&6; }
67564 as_val=`eval 'as_val=${'$as_ac_var'}
67565 $as_echo "$as_val"'`
67566 if test "x$as_val" = x""yes; then
67567 cat >>confdefs.h <<_ACEOF
67568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67570 ice_have_recvfrom=yes
67574 if test "${ice_have_recvfrom}" = yes; then
67575 { $as_echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
67576 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
67577 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
67578 $as_echo_n "(cached) " >&6
67581 ice_cv_have_recvfrom_decl=no
67582 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67583 ice_re_word='(^|[^a-zA-Z0-9_])'
67584 for header in sys/types.h sys/socket.h; do
67585 # Check for ordinary declaration
67586 cat >conftest.$ac_ext <<_ACEOF
67589 cat confdefs.h >>conftest.$ac_ext
67590 cat >>conftest.$ac_ext <<_ACEOF
67591 /* end confdefs.h. */
67595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67596 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then
67597 ice_cv_have_recvfrom_decl=yes
67601 if test "$ice_cv_have_recvfrom_decl" = yes; then
67604 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67605 cat >conftest.$ac_ext <<_ACEOF
67608 cat confdefs.h >>conftest.$ac_ext
67609 cat >>conftest.$ac_ext <<_ACEOF
67610 /* end confdefs.h. */
67614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67615 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67616 ice_cv_have_recvfrom_decl=yes
67620 if test "$ice_cv_have_recvfrom_decl" = yes; then
67627 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
67628 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
67629 if test "$ice_cv_have_recvfrom_decl" = yes; then
67631 cat >>confdefs.h <<_ACEOF
67632 #define HAVE_RECVFROM_DECL 1
67641 for ac_func in remove
67643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67644 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67645 $as_echo_n "checking for $ac_func... " >&6; }
67646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67647 $as_echo_n "(cached) " >&6
67649 cat >conftest.$ac_ext <<_ACEOF
67652 cat confdefs.h >>conftest.$ac_ext
67653 cat >>conftest.$ac_ext <<_ACEOF
67654 /* end confdefs.h. */
67655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67657 #define $ac_func innocuous_$ac_func
67659 /* System header to define __stub macros and hopefully few prototypes,
67660 which can conflict with char $ac_func (); below.
67661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67662 <limits.h> exists even on freestanding compilers. */
67665 # include <limits.h>
67667 # include <assert.h>
67672 /* Override any GCC internal prototype to avoid an error.
67673 Use char because int might match the return type of a GCC
67674 builtin and then its argument prototype would still apply. */
67679 /* The GNU C library defines this for functions which it implements
67680 to always fail with ENOSYS. Some functions are actually named
67681 something starting with __ and the normal name is an alias. */
67682 #if defined __stub_$ac_func || defined __stub___$ac_func
67689 return $ac_func ();
67694 rm -f conftest.$ac_objext conftest$ac_exeext
67695 if { (ac_try="$ac_link"
67696 case "(($ac_try" in
67697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67698 *) ac_try_echo=$ac_try;;
67700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67701 $as_echo "$ac_try_echo") >&5
67702 (eval "$ac_link") 2>conftest.er1
67704 grep -v '^ *+' conftest.er1 >conftest.err
67706 cat conftest.err >&5
67707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67708 (exit $ac_status); } && {
67709 test -z "$ac_c_werror_flag" ||
67710 test ! -s conftest.err
67711 } && test -s conftest$ac_exeext && {
67712 test "$cross_compiling" = yes ||
67713 $as_test_x conftest$ac_exeext
67715 eval "$as_ac_var=yes"
67717 $as_echo "$as_me: failed program was:" >&5
67718 sed 's/^/| /' conftest.$ac_ext >&5
67720 eval "$as_ac_var=no"
67723 rm -rf conftest.dSYM
67724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67725 conftest$ac_exeext conftest.$ac_ext
67727 ac_res=`eval 'as_val=${'$as_ac_var'}
67728 $as_echo "$as_val"'`
67729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67730 $as_echo "$ac_res" >&6; }
67731 as_val=`eval 'as_val=${'$as_ac_var'}
67732 $as_echo "$as_val"'`
67733 if test "x$as_val" = x""yes; then
67734 cat >>confdefs.h <<_ACEOF
67735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67737 ice_have_remove=yes
67741 if test "${ice_have_remove}" = yes; then
67742 { $as_echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
67743 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
67744 if test "${ice_cv_have_remove_decl+set}" = set; then
67745 $as_echo_n "(cached) " >&6
67748 ice_cv_have_remove_decl=no
67749 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67750 ice_re_word='(^|[^a-zA-Z0-9_])'
67751 for header in stdio.h; do
67752 # Check for ordinary declaration
67753 cat >conftest.$ac_ext <<_ACEOF
67756 cat confdefs.h >>conftest.$ac_ext
67757 cat >>conftest.$ac_ext <<_ACEOF
67758 /* end confdefs.h. */
67762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67763 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then
67764 ice_cv_have_remove_decl=yes
67768 if test "$ice_cv_have_remove_decl" = yes; then
67771 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67772 cat >conftest.$ac_ext <<_ACEOF
67775 cat confdefs.h >>conftest.$ac_ext
67776 cat >>conftest.$ac_ext <<_ACEOF
67777 /* end confdefs.h. */
67781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67782 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67783 ice_cv_have_remove_decl=yes
67787 if test "$ice_cv_have_remove_decl" = yes; then
67794 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
67795 $as_echo "$ice_cv_have_remove_decl" >&6; }
67796 if test "$ice_cv_have_remove_decl" = yes; then
67798 cat >>confdefs.h <<_ACEOF
67799 #define HAVE_REMOVE_DECL 1
67808 for ac_func in rename
67810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67811 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67812 $as_echo_n "checking for $ac_func... " >&6; }
67813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67814 $as_echo_n "(cached) " >&6
67816 cat >conftest.$ac_ext <<_ACEOF
67819 cat confdefs.h >>conftest.$ac_ext
67820 cat >>conftest.$ac_ext <<_ACEOF
67821 /* end confdefs.h. */
67822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67824 #define $ac_func innocuous_$ac_func
67826 /* System header to define __stub macros and hopefully few prototypes,
67827 which can conflict with char $ac_func (); below.
67828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67829 <limits.h> exists even on freestanding compilers. */
67832 # include <limits.h>
67834 # include <assert.h>
67839 /* Override any GCC internal prototype to avoid an error.
67840 Use char because int might match the return type of a GCC
67841 builtin and then its argument prototype would still apply. */
67846 /* The GNU C library defines this for functions which it implements
67847 to always fail with ENOSYS. Some functions are actually named
67848 something starting with __ and the normal name is an alias. */
67849 #if defined __stub_$ac_func || defined __stub___$ac_func
67856 return $ac_func ();
67861 rm -f conftest.$ac_objext conftest$ac_exeext
67862 if { (ac_try="$ac_link"
67863 case "(($ac_try" in
67864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67865 *) ac_try_echo=$ac_try;;
67867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67868 $as_echo "$ac_try_echo") >&5
67869 (eval "$ac_link") 2>conftest.er1
67871 grep -v '^ *+' conftest.er1 >conftest.err
67873 cat conftest.err >&5
67874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67875 (exit $ac_status); } && {
67876 test -z "$ac_c_werror_flag" ||
67877 test ! -s conftest.err
67878 } && test -s conftest$ac_exeext && {
67879 test "$cross_compiling" = yes ||
67880 $as_test_x conftest$ac_exeext
67882 eval "$as_ac_var=yes"
67884 $as_echo "$as_me: failed program was:" >&5
67885 sed 's/^/| /' conftest.$ac_ext >&5
67887 eval "$as_ac_var=no"
67890 rm -rf conftest.dSYM
67891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67892 conftest$ac_exeext conftest.$ac_ext
67894 ac_res=`eval 'as_val=${'$as_ac_var'}
67895 $as_echo "$as_val"'`
67896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67897 $as_echo "$ac_res" >&6; }
67898 as_val=`eval 'as_val=${'$as_ac_var'}
67899 $as_echo "$as_val"'`
67900 if test "x$as_val" = x""yes; then
67901 cat >>confdefs.h <<_ACEOF
67902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67904 ice_have_rename=yes
67908 if test "${ice_have_rename}" = yes; then
67909 { $as_echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
67910 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
67911 if test "${ice_cv_have_rename_decl+set}" = set; then
67912 $as_echo_n "(cached) " >&6
67915 ice_cv_have_rename_decl=no
67916 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67917 ice_re_word='(^|[^a-zA-Z0-9_])'
67918 for header in stdio.h; do
67919 # Check for ordinary declaration
67920 cat >conftest.$ac_ext <<_ACEOF
67923 cat confdefs.h >>conftest.$ac_ext
67924 cat >>conftest.$ac_ext <<_ACEOF
67925 /* end confdefs.h. */
67929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67930 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then
67931 ice_cv_have_rename_decl=yes
67935 if test "$ice_cv_have_rename_decl" = yes; then
67938 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67939 cat >conftest.$ac_ext <<_ACEOF
67942 cat confdefs.h >>conftest.$ac_ext
67943 cat >>conftest.$ac_ext <<_ACEOF
67944 /* end confdefs.h. */
67948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67949 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67950 ice_cv_have_rename_decl=yes
67954 if test "$ice_cv_have_rename_decl" = yes; then
67961 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
67962 $as_echo "$ice_cv_have_rename_decl" >&6; }
67963 if test "$ice_cv_have_rename_decl" = yes; then
67965 cat >>confdefs.h <<_ACEOF
67966 #define HAVE_RENAME_DECL 1
67975 for ac_func in rewind
67977 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67978 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67979 $as_echo_n "checking for $ac_func... " >&6; }
67980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67981 $as_echo_n "(cached) " >&6
67983 cat >conftest.$ac_ext <<_ACEOF
67986 cat confdefs.h >>conftest.$ac_ext
67987 cat >>conftest.$ac_ext <<_ACEOF
67988 /* end confdefs.h. */
67989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67991 #define $ac_func innocuous_$ac_func
67993 /* System header to define __stub macros and hopefully few prototypes,
67994 which can conflict with char $ac_func (); below.
67995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67996 <limits.h> exists even on freestanding compilers. */
67999 # include <limits.h>
68001 # include <assert.h>
68006 /* Override any GCC internal prototype to avoid an error.
68007 Use char because int might match the return type of a GCC
68008 builtin and then its argument prototype would still apply. */
68013 /* The GNU C library defines this for functions which it implements
68014 to always fail with ENOSYS. Some functions are actually named
68015 something starting with __ and the normal name is an alias. */
68016 #if defined __stub_$ac_func || defined __stub___$ac_func
68023 return $ac_func ();
68028 rm -f conftest.$ac_objext conftest$ac_exeext
68029 if { (ac_try="$ac_link"
68030 case "(($ac_try" in
68031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68032 *) ac_try_echo=$ac_try;;
68034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68035 $as_echo "$ac_try_echo") >&5
68036 (eval "$ac_link") 2>conftest.er1
68038 grep -v '^ *+' conftest.er1 >conftest.err
68040 cat conftest.err >&5
68041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68042 (exit $ac_status); } && {
68043 test -z "$ac_c_werror_flag" ||
68044 test ! -s conftest.err
68045 } && test -s conftest$ac_exeext && {
68046 test "$cross_compiling" = yes ||
68047 $as_test_x conftest$ac_exeext
68049 eval "$as_ac_var=yes"
68051 $as_echo "$as_me: failed program was:" >&5
68052 sed 's/^/| /' conftest.$ac_ext >&5
68054 eval "$as_ac_var=no"
68057 rm -rf conftest.dSYM
68058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68059 conftest$ac_exeext conftest.$ac_ext
68061 ac_res=`eval 'as_val=${'$as_ac_var'}
68062 $as_echo "$as_val"'`
68063 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68064 $as_echo "$ac_res" >&6; }
68065 as_val=`eval 'as_val=${'$as_ac_var'}
68066 $as_echo "$as_val"'`
68067 if test "x$as_val" = x""yes; then
68068 cat >>confdefs.h <<_ACEOF
68069 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68071 ice_have_rewind=yes
68075 if test "${ice_have_rewind}" = yes; then
68076 { $as_echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
68077 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
68078 if test "${ice_cv_have_rewind_decl+set}" = set; then
68079 $as_echo_n "(cached) " >&6
68082 ice_cv_have_rewind_decl=no
68083 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68084 ice_re_word='(^|[^a-zA-Z0-9_])'
68085 for header in stdio.h; do
68086 # Check for ordinary declaration
68087 cat >conftest.$ac_ext <<_ACEOF
68090 cat confdefs.h >>conftest.$ac_ext
68091 cat >>conftest.$ac_ext <<_ACEOF
68092 /* end confdefs.h. */
68096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68097 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then
68098 ice_cv_have_rewind_decl=yes
68102 if test "$ice_cv_have_rewind_decl" = yes; then
68105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68106 cat >conftest.$ac_ext <<_ACEOF
68109 cat confdefs.h >>conftest.$ac_ext
68110 cat >>conftest.$ac_ext <<_ACEOF
68111 /* end confdefs.h. */
68115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68116 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68117 ice_cv_have_rewind_decl=yes
68121 if test "$ice_cv_have_rewind_decl" = yes; then
68128 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
68129 $as_echo "$ice_cv_have_rewind_decl" >&6; }
68130 if test "$ice_cv_have_rewind_decl" = yes; then
68132 cat >>confdefs.h <<_ACEOF
68133 #define HAVE_REWIND_DECL 1
68140 ice_have_ruserok=no
68142 for ac_func in ruserok
68144 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68145 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68146 $as_echo_n "checking for $ac_func... " >&6; }
68147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68148 $as_echo_n "(cached) " >&6
68150 cat >conftest.$ac_ext <<_ACEOF
68153 cat confdefs.h >>conftest.$ac_ext
68154 cat >>conftest.$ac_ext <<_ACEOF
68155 /* end confdefs.h. */
68156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68158 #define $ac_func innocuous_$ac_func
68160 /* System header to define __stub macros and hopefully few prototypes,
68161 which can conflict with char $ac_func (); below.
68162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68163 <limits.h> exists even on freestanding compilers. */
68166 # include <limits.h>
68168 # include <assert.h>
68173 /* Override any GCC internal prototype to avoid an error.
68174 Use char because int might match the return type of a GCC
68175 builtin and then its argument prototype would still apply. */
68180 /* The GNU C library defines this for functions which it implements
68181 to always fail with ENOSYS. Some functions are actually named
68182 something starting with __ and the normal name is an alias. */
68183 #if defined __stub_$ac_func || defined __stub___$ac_func
68190 return $ac_func ();
68195 rm -f conftest.$ac_objext conftest$ac_exeext
68196 if { (ac_try="$ac_link"
68197 case "(($ac_try" in
68198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68199 *) ac_try_echo=$ac_try;;
68201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68202 $as_echo "$ac_try_echo") >&5
68203 (eval "$ac_link") 2>conftest.er1
68205 grep -v '^ *+' conftest.er1 >conftest.err
68207 cat conftest.err >&5
68208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68209 (exit $ac_status); } && {
68210 test -z "$ac_c_werror_flag" ||
68211 test ! -s conftest.err
68212 } && test -s conftest$ac_exeext && {
68213 test "$cross_compiling" = yes ||
68214 $as_test_x conftest$ac_exeext
68216 eval "$as_ac_var=yes"
68218 $as_echo "$as_me: failed program was:" >&5
68219 sed 's/^/| /' conftest.$ac_ext >&5
68221 eval "$as_ac_var=no"
68224 rm -rf conftest.dSYM
68225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68226 conftest$ac_exeext conftest.$ac_ext
68228 ac_res=`eval 'as_val=${'$as_ac_var'}
68229 $as_echo "$as_val"'`
68230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68231 $as_echo "$ac_res" >&6; }
68232 as_val=`eval 'as_val=${'$as_ac_var'}
68233 $as_echo "$as_val"'`
68234 if test "x$as_val" = x""yes; then
68235 cat >>confdefs.h <<_ACEOF
68236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68238 ice_have_ruserok=yes
68242 if test "${ice_have_ruserok}" = yes; then
68243 { $as_echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
68244 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
68245 if test "${ice_cv_have_ruserok_decl+set}" = set; then
68246 $as_echo_n "(cached) " >&6
68249 ice_cv_have_ruserok_decl=no
68250 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68251 ice_re_word='(^|[^a-zA-Z0-9_])'
68252 for header in netdb.h sys/socket.h libc.h unistd.h; do
68253 # Check for ordinary declaration
68254 cat >conftest.$ac_ext <<_ACEOF
68257 cat confdefs.h >>conftest.$ac_ext
68258 cat >>conftest.$ac_ext <<_ACEOF
68259 /* end confdefs.h. */
68263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68264 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then
68265 ice_cv_have_ruserok_decl=yes
68269 if test "$ice_cv_have_ruserok_decl" = yes; then
68272 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68273 cat >conftest.$ac_ext <<_ACEOF
68276 cat confdefs.h >>conftest.$ac_ext
68277 cat >>conftest.$ac_ext <<_ACEOF
68278 /* end confdefs.h. */
68282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68283 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68284 ice_cv_have_ruserok_decl=yes
68288 if test "$ice_cv_have_ruserok_decl" = yes; then
68295 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
68296 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
68297 if test "$ice_cv_have_ruserok_decl" = yes; then
68299 cat >>confdefs.h <<_ACEOF
68300 #define HAVE_RUSEROK_DECL 1
68309 for ac_func in select
68311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68312 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68313 $as_echo_n "checking for $ac_func... " >&6; }
68314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68315 $as_echo_n "(cached) " >&6
68317 cat >conftest.$ac_ext <<_ACEOF
68320 cat confdefs.h >>conftest.$ac_ext
68321 cat >>conftest.$ac_ext <<_ACEOF
68322 /* end confdefs.h. */
68323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68325 #define $ac_func innocuous_$ac_func
68327 /* System header to define __stub macros and hopefully few prototypes,
68328 which can conflict with char $ac_func (); below.
68329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68330 <limits.h> exists even on freestanding compilers. */
68333 # include <limits.h>
68335 # include <assert.h>
68340 /* Override any GCC internal prototype to avoid an error.
68341 Use char because int might match the return type of a GCC
68342 builtin and then its argument prototype would still apply. */
68347 /* The GNU C library defines this for functions which it implements
68348 to always fail with ENOSYS. Some functions are actually named
68349 something starting with __ and the normal name is an alias. */
68350 #if defined __stub_$ac_func || defined __stub___$ac_func
68357 return $ac_func ();
68362 rm -f conftest.$ac_objext conftest$ac_exeext
68363 if { (ac_try="$ac_link"
68364 case "(($ac_try" in
68365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68366 *) ac_try_echo=$ac_try;;
68368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68369 $as_echo "$ac_try_echo") >&5
68370 (eval "$ac_link") 2>conftest.er1
68372 grep -v '^ *+' conftest.er1 >conftest.err
68374 cat conftest.err >&5
68375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68376 (exit $ac_status); } && {
68377 test -z "$ac_c_werror_flag" ||
68378 test ! -s conftest.err
68379 } && test -s conftest$ac_exeext && {
68380 test "$cross_compiling" = yes ||
68381 $as_test_x conftest$ac_exeext
68383 eval "$as_ac_var=yes"
68385 $as_echo "$as_me: failed program was:" >&5
68386 sed 's/^/| /' conftest.$ac_ext >&5
68388 eval "$as_ac_var=no"
68391 rm -rf conftest.dSYM
68392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68393 conftest$ac_exeext conftest.$ac_ext
68395 ac_res=`eval 'as_val=${'$as_ac_var'}
68396 $as_echo "$as_val"'`
68397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68398 $as_echo "$ac_res" >&6; }
68399 as_val=`eval 'as_val=${'$as_ac_var'}
68400 $as_echo "$as_val"'`
68401 if test "x$as_val" = x""yes; then
68402 cat >>confdefs.h <<_ACEOF
68403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68405 ice_have_select=yes
68409 if test "${ice_have_select}" = yes; then
68410 { $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
68411 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
68412 if test "${ice_cv_have_select_decl+set}" = set; then
68413 $as_echo_n "(cached) " >&6
68416 ice_cv_have_select_decl=no
68417 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68418 ice_re_word='(^|[^a-zA-Z0-9_])'
68419 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
68420 # Check for ordinary declaration
68421 cat >conftest.$ac_ext <<_ACEOF
68424 cat confdefs.h >>conftest.$ac_ext
68425 cat >>conftest.$ac_ext <<_ACEOF
68426 /* end confdefs.h. */
68430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68431 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then
68432 ice_cv_have_select_decl=yes
68436 if test "$ice_cv_have_select_decl" = yes; then
68439 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68440 cat >conftest.$ac_ext <<_ACEOF
68443 cat confdefs.h >>conftest.$ac_ext
68444 cat >>conftest.$ac_ext <<_ACEOF
68445 /* end confdefs.h. */
68449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68450 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68451 ice_cv_have_select_decl=yes
68455 if test "$ice_cv_have_select_decl" = yes; then
68462 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
68463 $as_echo "$ice_cv_have_select_decl" >&6; }
68464 if test "$ice_cv_have_select_decl" = yes; then
68466 cat >>confdefs.h <<_ACEOF
68467 #define HAVE_SELECT_DECL 1
68480 for ac_header in sys/time.h \
68487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
68488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
68490 $as_echo_n "checking for $ac_header... " >&6; }
68491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68492 $as_echo_n "(cached) " >&6
68494 ac_res=`eval 'as_val=${'$as_ac_Header'}
68495 $as_echo "$as_val"'`
68496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68497 $as_echo "$ac_res" >&6; }
68499 # Is the header compilable?
68500 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
68501 $as_echo_n "checking $ac_header usability... " >&6; }
68502 cat >conftest.$ac_ext <<_ACEOF
68505 cat confdefs.h >>conftest.$ac_ext
68506 cat >>conftest.$ac_ext <<_ACEOF
68507 /* end confdefs.h. */
68508 $ac_includes_default
68509 #include <$ac_header>
68511 rm -f conftest.$ac_objext
68512 if { (ac_try="$ac_compile"
68513 case "(($ac_try" in
68514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68515 *) ac_try_echo=$ac_try;;
68517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68518 $as_echo "$ac_try_echo") >&5
68519 (eval "$ac_compile") 2>conftest.er1
68521 grep -v '^ *+' conftest.er1 >conftest.err
68523 cat conftest.err >&5
68524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68525 (exit $ac_status); } && {
68526 test -z "$ac_c_werror_flag" ||
68527 test ! -s conftest.err
68528 } && test -s conftest.$ac_objext; then
68529 ac_header_compiler=yes
68531 $as_echo "$as_me: failed program was:" >&5
68532 sed 's/^/| /' conftest.$ac_ext >&5
68534 ac_header_compiler=no
68537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68538 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68539 $as_echo "$ac_header_compiler" >&6; }
68541 # Is the header present?
68542 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
68543 $as_echo_n "checking $ac_header presence... " >&6; }
68544 cat >conftest.$ac_ext <<_ACEOF
68547 cat confdefs.h >>conftest.$ac_ext
68548 cat >>conftest.$ac_ext <<_ACEOF
68549 /* end confdefs.h. */
68550 #include <$ac_header>
68552 if { (ac_try="$ac_cpp conftest.$ac_ext"
68553 case "(($ac_try" in
68554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68555 *) ac_try_echo=$ac_try;;
68557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68558 $as_echo "$ac_try_echo") >&5
68559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
68561 grep -v '^ *+' conftest.er1 >conftest.err
68563 cat conftest.err >&5
68564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68565 (exit $ac_status); } >/dev/null && {
68566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
68567 test ! -s conftest.err
68569 ac_header_preproc=yes
68571 $as_echo "$as_me: failed program was:" >&5
68572 sed 's/^/| /' conftest.$ac_ext >&5
68574 ac_header_preproc=no
68577 rm -f conftest.err conftest.$ac_ext
68578 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68579 $as_echo "$ac_header_preproc" >&6; }
68581 # So? What about this header?
68582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68585 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68587 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68588 ac_header_preproc=yes
68591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68592 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
68594 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
68595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68596 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
68598 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
68599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68602 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
68607 $as_echo_n "checking for $ac_header... " >&6; }
68608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68609 $as_echo_n "(cached) " >&6
68611 eval "$as_ac_Header=\$ac_header_preproc"
68613 ac_res=`eval 'as_val=${'$as_ac_Header'}
68614 $as_echo "$as_val"'`
68615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68616 $as_echo "$ac_res" >&6; }
68619 as_val=`eval 'as_val=${'$as_ac_Header'}
68620 $as_echo "$as_val"'`
68621 if test "x$as_val" = x""yes; then
68622 cat >>confdefs.h <<_ACEOF
68623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
68631 { $as_echo "$as_me:$LINENO: checking for select() argument type" >&5
68632 $as_echo_n "checking for select() argument type... " >&6; }
68633 if test "${amanda_cv_select_arg_type+set}" = set; then
68634 $as_echo_n "(cached) " >&6
68638 cat <<EOF >conftest.$ac_ext
68639 #include "confdefs.h"
68640 #ifdef TIME_WITH_SYS_TIME
68641 # include <sys/time.h>
68644 # ifdef HAVE_SYS_TIME_H
68645 # include <sys/time.h>
68650 #ifdef HAVE_SYS_TYPES_H
68651 # include <sys/types.h>
68653 #ifdef HAVE_SYS_SELECT_H
68654 # include <sys/select.h>
68656 #ifdef HAVE_SYS_SOCKET_H
68657 # include <sys/socket.h>
68659 #ifdef HAVE_UNISTD_H
68660 # include <unistd.h>
68665 #ifdef FD_SET_POINTER
68666 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
68668 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
68674 # Figure out the select argument type by first trying to
68675 # compile with the fd_set argument. If the compile fails,
68676 # then we know to use the int. If it suceeds, then try to
68677 # use the int. If the int fails, then use fd_set. If
68678 # both suceeed, then do a line count on the number of
68679 # lines that the compiler spit out, assuming that the
68680 # compile outputing more lines had more errors.
68681 amanda_cv_select_arg_type=no
68682 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
68683 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
68684 if test $? -ne 0; then
68685 amanda_cv_select_arg_type=int
68687 if test "$amanda_cv_select_arg_type" = no; then
68688 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
68689 if test $? -ne 0; then
68690 amanda_cv_select_arg_type=fd_set
68693 if test "$amanda_cv_select_arg_type" = no; then
68694 wc_fdset=`wc -l <conftest.fd_set`
68695 wc_int=`wc -l <conftest.int`
68696 if test "$wc_fdset" -le "$wc_int"; then
68697 amanda_cv_select_arg_type=fd_set
68699 amanda_cv_select_arg_type=int
68706 { $as_echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
68707 $as_echo "$amanda_cv_select_arg_type" >&6; }
68709 cat >>confdefs.h <<_ACEOF
68710 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
68718 for ac_func in sendto
68720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68721 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68722 $as_echo_n "checking for $ac_func... " >&6; }
68723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68724 $as_echo_n "(cached) " >&6
68726 cat >conftest.$ac_ext <<_ACEOF
68729 cat confdefs.h >>conftest.$ac_ext
68730 cat >>conftest.$ac_ext <<_ACEOF
68731 /* end confdefs.h. */
68732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68734 #define $ac_func innocuous_$ac_func
68736 /* System header to define __stub macros and hopefully few prototypes,
68737 which can conflict with char $ac_func (); below.
68738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68739 <limits.h> exists even on freestanding compilers. */
68742 # include <limits.h>
68744 # include <assert.h>
68749 /* Override any GCC internal prototype to avoid an error.
68750 Use char because int might match the return type of a GCC
68751 builtin and then its argument prototype would still apply. */
68756 /* The GNU C library defines this for functions which it implements
68757 to always fail with ENOSYS. Some functions are actually named
68758 something starting with __ and the normal name is an alias. */
68759 #if defined __stub_$ac_func || defined __stub___$ac_func
68766 return $ac_func ();
68771 rm -f conftest.$ac_objext conftest$ac_exeext
68772 if { (ac_try="$ac_link"
68773 case "(($ac_try" in
68774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68775 *) ac_try_echo=$ac_try;;
68777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68778 $as_echo "$ac_try_echo") >&5
68779 (eval "$ac_link") 2>conftest.er1
68781 grep -v '^ *+' conftest.er1 >conftest.err
68783 cat conftest.err >&5
68784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68785 (exit $ac_status); } && {
68786 test -z "$ac_c_werror_flag" ||
68787 test ! -s conftest.err
68788 } && test -s conftest$ac_exeext && {
68789 test "$cross_compiling" = yes ||
68790 $as_test_x conftest$ac_exeext
68792 eval "$as_ac_var=yes"
68794 $as_echo "$as_me: failed program was:" >&5
68795 sed 's/^/| /' conftest.$ac_ext >&5
68797 eval "$as_ac_var=no"
68800 rm -rf conftest.dSYM
68801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68802 conftest$ac_exeext conftest.$ac_ext
68804 ac_res=`eval 'as_val=${'$as_ac_var'}
68805 $as_echo "$as_val"'`
68806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68807 $as_echo "$ac_res" >&6; }
68808 as_val=`eval 'as_val=${'$as_ac_var'}
68809 $as_echo "$as_val"'`
68810 if test "x$as_val" = x""yes; then
68811 cat >>confdefs.h <<_ACEOF
68812 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68814 ice_have_sendto=yes
68818 if test "${ice_have_sendto}" = yes; then
68819 { $as_echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
68820 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
68821 if test "${ice_cv_have_sendto_decl+set}" = set; then
68822 $as_echo_n "(cached) " >&6
68825 ice_cv_have_sendto_decl=no
68826 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68827 ice_re_word='(^|[^a-zA-Z0-9_])'
68828 for header in sys/types.h sys/socket.h; do
68829 # Check for ordinary declaration
68830 cat >conftest.$ac_ext <<_ACEOF
68833 cat confdefs.h >>conftest.$ac_ext
68834 cat >>conftest.$ac_ext <<_ACEOF
68835 /* end confdefs.h. */
68839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68840 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then
68841 ice_cv_have_sendto_decl=yes
68845 if test "$ice_cv_have_sendto_decl" = yes; then
68848 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68849 cat >conftest.$ac_ext <<_ACEOF
68852 cat confdefs.h >>conftest.$ac_ext
68853 cat >>conftest.$ac_ext <<_ACEOF
68854 /* end confdefs.h. */
68858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68859 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68860 ice_cv_have_sendto_decl=yes
68864 if test "$ice_cv_have_sendto_decl" = yes; then
68871 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
68872 $as_echo "$ice_cv_have_sendto_decl" >&6; }
68873 if test "$ice_cv_have_sendto_decl" = yes; then
68875 cat >>confdefs.h <<_ACEOF
68876 #define HAVE_SENDTO_DECL 1
68883 ice_have_setegid=no
68885 for ac_func in setegid
68887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68888 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68889 $as_echo_n "checking for $ac_func... " >&6; }
68890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68891 $as_echo_n "(cached) " >&6
68893 cat >conftest.$ac_ext <<_ACEOF
68896 cat confdefs.h >>conftest.$ac_ext
68897 cat >>conftest.$ac_ext <<_ACEOF
68898 /* end confdefs.h. */
68899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68901 #define $ac_func innocuous_$ac_func
68903 /* System header to define __stub macros and hopefully few prototypes,
68904 which can conflict with char $ac_func (); below.
68905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68906 <limits.h> exists even on freestanding compilers. */
68909 # include <limits.h>
68911 # include <assert.h>
68916 /* Override any GCC internal prototype to avoid an error.
68917 Use char because int might match the return type of a GCC
68918 builtin and then its argument prototype would still apply. */
68923 /* The GNU C library defines this for functions which it implements
68924 to always fail with ENOSYS. Some functions are actually named
68925 something starting with __ and the normal name is an alias. */
68926 #if defined __stub_$ac_func || defined __stub___$ac_func
68933 return $ac_func ();
68938 rm -f conftest.$ac_objext conftest$ac_exeext
68939 if { (ac_try="$ac_link"
68940 case "(($ac_try" in
68941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68942 *) ac_try_echo=$ac_try;;
68944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68945 $as_echo "$ac_try_echo") >&5
68946 (eval "$ac_link") 2>conftest.er1
68948 grep -v '^ *+' conftest.er1 >conftest.err
68950 cat conftest.err >&5
68951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68952 (exit $ac_status); } && {
68953 test -z "$ac_c_werror_flag" ||
68954 test ! -s conftest.err
68955 } && test -s conftest$ac_exeext && {
68956 test "$cross_compiling" = yes ||
68957 $as_test_x conftest$ac_exeext
68959 eval "$as_ac_var=yes"
68961 $as_echo "$as_me: failed program was:" >&5
68962 sed 's/^/| /' conftest.$ac_ext >&5
68964 eval "$as_ac_var=no"
68967 rm -rf conftest.dSYM
68968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68969 conftest$ac_exeext conftest.$ac_ext
68971 ac_res=`eval 'as_val=${'$as_ac_var'}
68972 $as_echo "$as_val"'`
68973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68974 $as_echo "$ac_res" >&6; }
68975 as_val=`eval 'as_val=${'$as_ac_var'}
68976 $as_echo "$as_val"'`
68977 if test "x$as_val" = x""yes; then
68978 cat >>confdefs.h <<_ACEOF
68979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68981 ice_have_setegid=yes
68985 if test "${ice_have_setegid}" = yes; then
68986 { $as_echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
68987 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
68988 if test "${ice_cv_have_setegid_decl+set}" = set; then
68989 $as_echo_n "(cached) " >&6
68992 ice_cv_have_setegid_decl=no
68993 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68994 ice_re_word='(^|[^a-zA-Z0-9_])'
68995 for header in unistd.h; do
68996 # Check for ordinary declaration
68997 cat >conftest.$ac_ext <<_ACEOF
69000 cat confdefs.h >>conftest.$ac_ext
69001 cat >>conftest.$ac_ext <<_ACEOF
69002 /* end confdefs.h. */
69006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69007 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then
69008 ice_cv_have_setegid_decl=yes
69012 if test "$ice_cv_have_setegid_decl" = yes; then
69015 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69016 cat >conftest.$ac_ext <<_ACEOF
69019 cat confdefs.h >>conftest.$ac_ext
69020 cat >>conftest.$ac_ext <<_ACEOF
69021 /* end confdefs.h. */
69025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69026 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69027 ice_cv_have_setegid_decl=yes
69031 if test "$ice_cv_have_setegid_decl" = yes; then
69038 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
69039 $as_echo "$ice_cv_have_setegid_decl" >&6; }
69040 if test "$ice_cv_have_setegid_decl" = yes; then
69042 cat >>confdefs.h <<_ACEOF
69043 #define HAVE_SETEGID_DECL 1
69050 ice_have_seteuid=no
69052 for ac_func in seteuid
69054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69055 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69056 $as_echo_n "checking for $ac_func... " >&6; }
69057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69058 $as_echo_n "(cached) " >&6
69060 cat >conftest.$ac_ext <<_ACEOF
69063 cat confdefs.h >>conftest.$ac_ext
69064 cat >>conftest.$ac_ext <<_ACEOF
69065 /* end confdefs.h. */
69066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69068 #define $ac_func innocuous_$ac_func
69070 /* System header to define __stub macros and hopefully few prototypes,
69071 which can conflict with char $ac_func (); below.
69072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69073 <limits.h> exists even on freestanding compilers. */
69076 # include <limits.h>
69078 # include <assert.h>
69083 /* Override any GCC internal prototype to avoid an error.
69084 Use char because int might match the return type of a GCC
69085 builtin and then its argument prototype would still apply. */
69090 /* The GNU C library defines this for functions which it implements
69091 to always fail with ENOSYS. Some functions are actually named
69092 something starting with __ and the normal name is an alias. */
69093 #if defined __stub_$ac_func || defined __stub___$ac_func
69100 return $ac_func ();
69105 rm -f conftest.$ac_objext conftest$ac_exeext
69106 if { (ac_try="$ac_link"
69107 case "(($ac_try" in
69108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69109 *) ac_try_echo=$ac_try;;
69111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69112 $as_echo "$ac_try_echo") >&5
69113 (eval "$ac_link") 2>conftest.er1
69115 grep -v '^ *+' conftest.er1 >conftest.err
69117 cat conftest.err >&5
69118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69119 (exit $ac_status); } && {
69120 test -z "$ac_c_werror_flag" ||
69121 test ! -s conftest.err
69122 } && test -s conftest$ac_exeext && {
69123 test "$cross_compiling" = yes ||
69124 $as_test_x conftest$ac_exeext
69126 eval "$as_ac_var=yes"
69128 $as_echo "$as_me: failed program was:" >&5
69129 sed 's/^/| /' conftest.$ac_ext >&5
69131 eval "$as_ac_var=no"
69134 rm -rf conftest.dSYM
69135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69136 conftest$ac_exeext conftest.$ac_ext
69138 ac_res=`eval 'as_val=${'$as_ac_var'}
69139 $as_echo "$as_val"'`
69140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69141 $as_echo "$ac_res" >&6; }
69142 as_val=`eval 'as_val=${'$as_ac_var'}
69143 $as_echo "$as_val"'`
69144 if test "x$as_val" = x""yes; then
69145 cat >>confdefs.h <<_ACEOF
69146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69148 ice_have_seteuid=yes
69152 if test "${ice_have_seteuid}" = yes; then
69153 { $as_echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
69154 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
69155 if test "${ice_cv_have_seteuid_decl+set}" = set; then
69156 $as_echo_n "(cached) " >&6
69159 ice_cv_have_seteuid_decl=no
69160 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69161 ice_re_word='(^|[^a-zA-Z0-9_])'
69162 for header in unistd.h; do
69163 # Check for ordinary declaration
69164 cat >conftest.$ac_ext <<_ACEOF
69167 cat confdefs.h >>conftest.$ac_ext
69168 cat >>conftest.$ac_ext <<_ACEOF
69169 /* end confdefs.h. */
69173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69174 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then
69175 ice_cv_have_seteuid_decl=yes
69179 if test "$ice_cv_have_seteuid_decl" = yes; then
69182 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69183 cat >conftest.$ac_ext <<_ACEOF
69186 cat confdefs.h >>conftest.$ac_ext
69187 cat >>conftest.$ac_ext <<_ACEOF
69188 /* end confdefs.h. */
69192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69193 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69194 ice_cv_have_seteuid_decl=yes
69198 if test "$ice_cv_have_seteuid_decl" = yes; then
69205 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
69206 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
69207 if test "$ice_cv_have_seteuid_decl" = yes; then
69209 cat >>confdefs.h <<_ACEOF
69210 #define HAVE_SETEUID_DECL 1
69217 ice_have_setresgid=no
69219 for ac_func in setresgid
69221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69222 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69223 $as_echo_n "checking for $ac_func... " >&6; }
69224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69225 $as_echo_n "(cached) " >&6
69227 cat >conftest.$ac_ext <<_ACEOF
69230 cat confdefs.h >>conftest.$ac_ext
69231 cat >>conftest.$ac_ext <<_ACEOF
69232 /* end confdefs.h. */
69233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69235 #define $ac_func innocuous_$ac_func
69237 /* System header to define __stub macros and hopefully few prototypes,
69238 which can conflict with char $ac_func (); below.
69239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69240 <limits.h> exists even on freestanding compilers. */
69243 # include <limits.h>
69245 # include <assert.h>
69250 /* Override any GCC internal prototype to avoid an error.
69251 Use char because int might match the return type of a GCC
69252 builtin and then its argument prototype would still apply. */
69257 /* The GNU C library defines this for functions which it implements
69258 to always fail with ENOSYS. Some functions are actually named
69259 something starting with __ and the normal name is an alias. */
69260 #if defined __stub_$ac_func || defined __stub___$ac_func
69267 return $ac_func ();
69272 rm -f conftest.$ac_objext conftest$ac_exeext
69273 if { (ac_try="$ac_link"
69274 case "(($ac_try" in
69275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69276 *) ac_try_echo=$ac_try;;
69278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69279 $as_echo "$ac_try_echo") >&5
69280 (eval "$ac_link") 2>conftest.er1
69282 grep -v '^ *+' conftest.er1 >conftest.err
69284 cat conftest.err >&5
69285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69286 (exit $ac_status); } && {
69287 test -z "$ac_c_werror_flag" ||
69288 test ! -s conftest.err
69289 } && test -s conftest$ac_exeext && {
69290 test "$cross_compiling" = yes ||
69291 $as_test_x conftest$ac_exeext
69293 eval "$as_ac_var=yes"
69295 $as_echo "$as_me: failed program was:" >&5
69296 sed 's/^/| /' conftest.$ac_ext >&5
69298 eval "$as_ac_var=no"
69301 rm -rf conftest.dSYM
69302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69303 conftest$ac_exeext conftest.$ac_ext
69305 ac_res=`eval 'as_val=${'$as_ac_var'}
69306 $as_echo "$as_val"'`
69307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69308 $as_echo "$ac_res" >&6; }
69309 as_val=`eval 'as_val=${'$as_ac_var'}
69310 $as_echo "$as_val"'`
69311 if test "x$as_val" = x""yes; then
69312 cat >>confdefs.h <<_ACEOF
69313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69315 ice_have_setresgid=yes
69319 if test "${ice_have_setresgid}" = yes; then
69320 { $as_echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
69321 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
69322 if test "${ice_cv_have_setresgid_decl+set}" = set; then
69323 $as_echo_n "(cached) " >&6
69326 ice_cv_have_setresgid_decl=no
69327 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69328 ice_re_word='(^|[^a-zA-Z0-9_])'
69329 for header in unistd.h; do
69330 # Check for ordinary declaration
69331 cat >conftest.$ac_ext <<_ACEOF
69334 cat confdefs.h >>conftest.$ac_ext
69335 cat >>conftest.$ac_ext <<_ACEOF
69336 /* end confdefs.h. */
69340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69341 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then
69342 ice_cv_have_setresgid_decl=yes
69346 if test "$ice_cv_have_setresgid_decl" = yes; then
69349 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69350 cat >conftest.$ac_ext <<_ACEOF
69353 cat confdefs.h >>conftest.$ac_ext
69354 cat >>conftest.$ac_ext <<_ACEOF
69355 /* end confdefs.h. */
69359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69360 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69361 ice_cv_have_setresgid_decl=yes
69365 if test "$ice_cv_have_setresgid_decl" = yes; then
69372 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
69373 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
69374 if test "$ice_cv_have_setresgid_decl" = yes; then
69376 cat >>confdefs.h <<_ACEOF
69377 #define HAVE_SETRESGID_DECL 1
69384 ice_have_setresuid=no
69386 for ac_func in setresuid
69388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69390 $as_echo_n "checking for $ac_func... " >&6; }
69391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69392 $as_echo_n "(cached) " >&6
69394 cat >conftest.$ac_ext <<_ACEOF
69397 cat confdefs.h >>conftest.$ac_ext
69398 cat >>conftest.$ac_ext <<_ACEOF
69399 /* end confdefs.h. */
69400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69402 #define $ac_func innocuous_$ac_func
69404 /* System header to define __stub macros and hopefully few prototypes,
69405 which can conflict with char $ac_func (); below.
69406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69407 <limits.h> exists even on freestanding compilers. */
69410 # include <limits.h>
69412 # include <assert.h>
69417 /* Override any GCC internal prototype to avoid an error.
69418 Use char because int might match the return type of a GCC
69419 builtin and then its argument prototype would still apply. */
69424 /* The GNU C library defines this for functions which it implements
69425 to always fail with ENOSYS. Some functions are actually named
69426 something starting with __ and the normal name is an alias. */
69427 #if defined __stub_$ac_func || defined __stub___$ac_func
69434 return $ac_func ();
69439 rm -f conftest.$ac_objext conftest$ac_exeext
69440 if { (ac_try="$ac_link"
69441 case "(($ac_try" in
69442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69443 *) ac_try_echo=$ac_try;;
69445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69446 $as_echo "$ac_try_echo") >&5
69447 (eval "$ac_link") 2>conftest.er1
69449 grep -v '^ *+' conftest.er1 >conftest.err
69451 cat conftest.err >&5
69452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69453 (exit $ac_status); } && {
69454 test -z "$ac_c_werror_flag" ||
69455 test ! -s conftest.err
69456 } && test -s conftest$ac_exeext && {
69457 test "$cross_compiling" = yes ||
69458 $as_test_x conftest$ac_exeext
69460 eval "$as_ac_var=yes"
69462 $as_echo "$as_me: failed program was:" >&5
69463 sed 's/^/| /' conftest.$ac_ext >&5
69465 eval "$as_ac_var=no"
69468 rm -rf conftest.dSYM
69469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69470 conftest$ac_exeext conftest.$ac_ext
69472 ac_res=`eval 'as_val=${'$as_ac_var'}
69473 $as_echo "$as_val"'`
69474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69475 $as_echo "$ac_res" >&6; }
69476 as_val=`eval 'as_val=${'$as_ac_var'}
69477 $as_echo "$as_val"'`
69478 if test "x$as_val" = x""yes; then
69479 cat >>confdefs.h <<_ACEOF
69480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69482 ice_have_setresuid=yes
69486 if test "${ice_have_setresuid}" = yes; then
69487 { $as_echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
69488 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
69489 if test "${ice_cv_have_setresuid_decl+set}" = set; then
69490 $as_echo_n "(cached) " >&6
69493 ice_cv_have_setresuid_decl=no
69494 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69495 ice_re_word='(^|[^a-zA-Z0-9_])'
69496 for header in unistd.h; do
69497 # Check for ordinary declaration
69498 cat >conftest.$ac_ext <<_ACEOF
69501 cat confdefs.h >>conftest.$ac_ext
69502 cat >>conftest.$ac_ext <<_ACEOF
69503 /* end confdefs.h. */
69507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69508 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then
69509 ice_cv_have_setresuid_decl=yes
69513 if test "$ice_cv_have_setresuid_decl" = yes; then
69516 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69517 cat >conftest.$ac_ext <<_ACEOF
69520 cat confdefs.h >>conftest.$ac_ext
69521 cat >>conftest.$ac_ext <<_ACEOF
69522 /* end confdefs.h. */
69526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69527 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69528 ice_cv_have_setresuid_decl=yes
69532 if test "$ice_cv_have_setresuid_decl" = yes; then
69539 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
69540 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
69541 if test "$ice_cv_have_setresuid_decl" = yes; then
69543 cat >>confdefs.h <<_ACEOF
69544 #define HAVE_SETRESUID_DECL 1
69551 ice_have_snprintf=no
69553 for ac_func in snprintf
69555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69556 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69557 $as_echo_n "checking for $ac_func... " >&6; }
69558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69559 $as_echo_n "(cached) " >&6
69561 cat >conftest.$ac_ext <<_ACEOF
69564 cat confdefs.h >>conftest.$ac_ext
69565 cat >>conftest.$ac_ext <<_ACEOF
69566 /* end confdefs.h. */
69567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69569 #define $ac_func innocuous_$ac_func
69571 /* System header to define __stub macros and hopefully few prototypes,
69572 which can conflict with char $ac_func (); below.
69573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69574 <limits.h> exists even on freestanding compilers. */
69577 # include <limits.h>
69579 # include <assert.h>
69584 /* Override any GCC internal prototype to avoid an error.
69585 Use char because int might match the return type of a GCC
69586 builtin and then its argument prototype would still apply. */
69591 /* The GNU C library defines this for functions which it implements
69592 to always fail with ENOSYS. Some functions are actually named
69593 something starting with __ and the normal name is an alias. */
69594 #if defined __stub_$ac_func || defined __stub___$ac_func
69601 return $ac_func ();
69606 rm -f conftest.$ac_objext conftest$ac_exeext
69607 if { (ac_try="$ac_link"
69608 case "(($ac_try" in
69609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69610 *) ac_try_echo=$ac_try;;
69612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69613 $as_echo "$ac_try_echo") >&5
69614 (eval "$ac_link") 2>conftest.er1
69616 grep -v '^ *+' conftest.er1 >conftest.err
69618 cat conftest.err >&5
69619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69620 (exit $ac_status); } && {
69621 test -z "$ac_c_werror_flag" ||
69622 test ! -s conftest.err
69623 } && test -s conftest$ac_exeext && {
69624 test "$cross_compiling" = yes ||
69625 $as_test_x conftest$ac_exeext
69627 eval "$as_ac_var=yes"
69629 $as_echo "$as_me: failed program was:" >&5
69630 sed 's/^/| /' conftest.$ac_ext >&5
69632 eval "$as_ac_var=no"
69635 rm -rf conftest.dSYM
69636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69637 conftest$ac_exeext conftest.$ac_ext
69639 ac_res=`eval 'as_val=${'$as_ac_var'}
69640 $as_echo "$as_val"'`
69641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69642 $as_echo "$ac_res" >&6; }
69643 as_val=`eval 'as_val=${'$as_ac_var'}
69644 $as_echo "$as_val"'`
69645 if test "x$as_val" = x""yes; then
69646 cat >>confdefs.h <<_ACEOF
69647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69649 ice_have_snprintf=yes
69653 if test "${ice_have_snprintf}" = yes; then
69654 { $as_echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
69655 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
69656 if test "${ice_cv_have_snprintf_decl+set}" = set; then
69657 $as_echo_n "(cached) " >&6
69660 ice_cv_have_snprintf_decl=no
69661 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69662 ice_re_word='(^|[^a-zA-Z0-9_])'
69663 for header in stdio.h; do
69664 # Check for ordinary declaration
69665 cat >conftest.$ac_ext <<_ACEOF
69668 cat confdefs.h >>conftest.$ac_ext
69669 cat >>conftest.$ac_ext <<_ACEOF
69670 /* end confdefs.h. */
69674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69675 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then
69676 ice_cv_have_snprintf_decl=yes
69680 if test "$ice_cv_have_snprintf_decl" = yes; then
69683 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69684 cat >conftest.$ac_ext <<_ACEOF
69687 cat confdefs.h >>conftest.$ac_ext
69688 cat >>conftest.$ac_ext <<_ACEOF
69689 /* end confdefs.h. */
69693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69694 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69695 ice_cv_have_snprintf_decl=yes
69699 if test "$ice_cv_have_snprintf_decl" = yes; then
69706 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
69707 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
69708 if test "$ice_cv_have_snprintf_decl" = yes; then
69710 cat >>confdefs.h <<_ACEOF
69711 #define HAVE_SNPRINTF_DECL 1
69718 ice_have_vsnprintf=no
69720 for ac_func in vsnprintf
69722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69724 $as_echo_n "checking for $ac_func... " >&6; }
69725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69726 $as_echo_n "(cached) " >&6
69728 cat >conftest.$ac_ext <<_ACEOF
69731 cat confdefs.h >>conftest.$ac_ext
69732 cat >>conftest.$ac_ext <<_ACEOF
69733 /* end confdefs.h. */
69734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69736 #define $ac_func innocuous_$ac_func
69738 /* System header to define __stub macros and hopefully few prototypes,
69739 which can conflict with char $ac_func (); below.
69740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69741 <limits.h> exists even on freestanding compilers. */
69744 # include <limits.h>
69746 # include <assert.h>
69751 /* Override any GCC internal prototype to avoid an error.
69752 Use char because int might match the return type of a GCC
69753 builtin and then its argument prototype would still apply. */
69758 /* The GNU C library defines this for functions which it implements
69759 to always fail with ENOSYS. Some functions are actually named
69760 something starting with __ and the normal name is an alias. */
69761 #if defined __stub_$ac_func || defined __stub___$ac_func
69768 return $ac_func ();
69773 rm -f conftest.$ac_objext conftest$ac_exeext
69774 if { (ac_try="$ac_link"
69775 case "(($ac_try" in
69776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69777 *) ac_try_echo=$ac_try;;
69779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69780 $as_echo "$ac_try_echo") >&5
69781 (eval "$ac_link") 2>conftest.er1
69783 grep -v '^ *+' conftest.er1 >conftest.err
69785 cat conftest.err >&5
69786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69787 (exit $ac_status); } && {
69788 test -z "$ac_c_werror_flag" ||
69789 test ! -s conftest.err
69790 } && test -s conftest$ac_exeext && {
69791 test "$cross_compiling" = yes ||
69792 $as_test_x conftest$ac_exeext
69794 eval "$as_ac_var=yes"
69796 $as_echo "$as_me: failed program was:" >&5
69797 sed 's/^/| /' conftest.$ac_ext >&5
69799 eval "$as_ac_var=no"
69802 rm -rf conftest.dSYM
69803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69804 conftest$ac_exeext conftest.$ac_ext
69806 ac_res=`eval 'as_val=${'$as_ac_var'}
69807 $as_echo "$as_val"'`
69808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69809 $as_echo "$ac_res" >&6; }
69810 as_val=`eval 'as_val=${'$as_ac_var'}
69811 $as_echo "$as_val"'`
69812 if test "x$as_val" = x""yes; then
69813 cat >>confdefs.h <<_ACEOF
69814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69816 ice_have_vsnprintf=yes
69820 if test "${ice_have_vsnprintf}" = yes; then
69821 { $as_echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
69822 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
69823 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
69824 $as_echo_n "(cached) " >&6
69827 ice_cv_have_vsnprintf_decl=no
69828 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69829 ice_re_word='(^|[^a-zA-Z0-9_])'
69830 for header in stdio.h; do
69831 # Check for ordinary declaration
69832 cat >conftest.$ac_ext <<_ACEOF
69835 cat confdefs.h >>conftest.$ac_ext
69836 cat >>conftest.$ac_ext <<_ACEOF
69837 /* end confdefs.h. */
69841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69842 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then
69843 ice_cv_have_vsnprintf_decl=yes
69847 if test "$ice_cv_have_vsnprintf_decl" = yes; then
69850 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69851 cat >conftest.$ac_ext <<_ACEOF
69854 cat confdefs.h >>conftest.$ac_ext
69855 cat >>conftest.$ac_ext <<_ACEOF
69856 /* end confdefs.h. */
69860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69861 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69862 ice_cv_have_vsnprintf_decl=yes
69866 if test "$ice_cv_have_vsnprintf_decl" = yes; then
69873 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
69874 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
69875 if test "$ice_cv_have_vsnprintf_decl" = yes; then
69877 cat >>confdefs.h <<_ACEOF
69878 #define HAVE_VSNPRINTF_DECL 1
69885 { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
69886 $as_echo_n "checking for setpgid... " >&6; }
69887 if test "${ac_cv_func_setpgid+set}" = set; then
69888 $as_echo_n "(cached) " >&6
69890 cat >conftest.$ac_ext <<_ACEOF
69893 cat confdefs.h >>conftest.$ac_ext
69894 cat >>conftest.$ac_ext <<_ACEOF
69895 /* end confdefs.h. */
69896 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
69897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69898 #define setpgid innocuous_setpgid
69900 /* System header to define __stub macros and hopefully few prototypes,
69901 which can conflict with char setpgid (); below.
69902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69903 <limits.h> exists even on freestanding compilers. */
69906 # include <limits.h>
69908 # include <assert.h>
69913 /* Override any GCC internal prototype to avoid an error.
69914 Use char because int might match the return type of a GCC
69915 builtin and then its argument prototype would still apply. */
69920 /* The GNU C library defines this for functions which it implements
69921 to always fail with ENOSYS. Some functions are actually named
69922 something starting with __ and the normal name is an alias. */
69923 #if defined __stub_setpgid || defined __stub___setpgid
69935 rm -f conftest.$ac_objext conftest$ac_exeext
69936 if { (ac_try="$ac_link"
69937 case "(($ac_try" in
69938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69939 *) ac_try_echo=$ac_try;;
69941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69942 $as_echo "$ac_try_echo") >&5
69943 (eval "$ac_link") 2>conftest.er1
69945 grep -v '^ *+' conftest.er1 >conftest.err
69947 cat conftest.err >&5
69948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69949 (exit $ac_status); } && {
69950 test -z "$ac_c_werror_flag" ||
69951 test ! -s conftest.err
69952 } && test -s conftest$ac_exeext && {
69953 test "$cross_compiling" = yes ||
69954 $as_test_x conftest$ac_exeext
69956 ac_cv_func_setpgid=yes
69958 $as_echo "$as_me: failed program was:" >&5
69959 sed 's/^/| /' conftest.$ac_ext >&5
69961 ac_cv_func_setpgid=no
69964 rm -rf conftest.dSYM
69965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69966 conftest$ac_exeext conftest.$ac_ext
69968 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
69969 $as_echo "$ac_cv_func_setpgid" >&6; }
69970 if test "x$ac_cv_func_setpgid" = x""yes; then
69973 cat >>confdefs.h <<\_ACEOF
69974 #define HAVE_SETPGID 1
69978 ice_have_setpgid=no
69980 for ac_func in setpgid
69982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69983 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69984 $as_echo_n "checking for $ac_func... " >&6; }
69985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69986 $as_echo_n "(cached) " >&6
69988 cat >conftest.$ac_ext <<_ACEOF
69991 cat confdefs.h >>conftest.$ac_ext
69992 cat >>conftest.$ac_ext <<_ACEOF
69993 /* end confdefs.h. */
69994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69996 #define $ac_func innocuous_$ac_func
69998 /* System header to define __stub macros and hopefully few prototypes,
69999 which can conflict with char $ac_func (); below.
70000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70001 <limits.h> exists even on freestanding compilers. */
70004 # include <limits.h>
70006 # include <assert.h>
70011 /* Override any GCC internal prototype to avoid an error.
70012 Use char because int might match the return type of a GCC
70013 builtin and then its argument prototype would still apply. */
70018 /* The GNU C library defines this for functions which it implements
70019 to always fail with ENOSYS. Some functions are actually named
70020 something starting with __ and the normal name is an alias. */
70021 #if defined __stub_$ac_func || defined __stub___$ac_func
70028 return $ac_func ();
70033 rm -f conftest.$ac_objext conftest$ac_exeext
70034 if { (ac_try="$ac_link"
70035 case "(($ac_try" in
70036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70037 *) ac_try_echo=$ac_try;;
70039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70040 $as_echo "$ac_try_echo") >&5
70041 (eval "$ac_link") 2>conftest.er1
70043 grep -v '^ *+' conftest.er1 >conftest.err
70045 cat conftest.err >&5
70046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70047 (exit $ac_status); } && {
70048 test -z "$ac_c_werror_flag" ||
70049 test ! -s conftest.err
70050 } && test -s conftest$ac_exeext && {
70051 test "$cross_compiling" = yes ||
70052 $as_test_x conftest$ac_exeext
70054 eval "$as_ac_var=yes"
70056 $as_echo "$as_me: failed program was:" >&5
70057 sed 's/^/| /' conftest.$ac_ext >&5
70059 eval "$as_ac_var=no"
70062 rm -rf conftest.dSYM
70063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70064 conftest$ac_exeext conftest.$ac_ext
70066 ac_res=`eval 'as_val=${'$as_ac_var'}
70067 $as_echo "$as_val"'`
70068 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70069 $as_echo "$ac_res" >&6; }
70070 as_val=`eval 'as_val=${'$as_ac_var'}
70071 $as_echo "$as_val"'`
70072 if test "x$as_val" = x""yes; then
70073 cat >>confdefs.h <<_ACEOF
70074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70076 ice_have_setpgid=yes
70080 if test "${ice_have_setpgid}" = yes; then
70081 { $as_echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
70082 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
70083 if test "${ice_cv_have_setpgid_decl+set}" = set; then
70084 $as_echo_n "(cached) " >&6
70087 ice_cv_have_setpgid_decl=no
70088 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70089 ice_re_word='(^|[^a-zA-Z0-9_])'
70090 for header in sys/types.h unistd.h; do
70091 # Check for ordinary declaration
70092 cat >conftest.$ac_ext <<_ACEOF
70095 cat confdefs.h >>conftest.$ac_ext
70096 cat >>conftest.$ac_ext <<_ACEOF
70097 /* end confdefs.h. */
70101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70102 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then
70103 ice_cv_have_setpgid_decl=yes
70107 if test "$ice_cv_have_setpgid_decl" = yes; then
70110 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70111 cat >conftest.$ac_ext <<_ACEOF
70114 cat confdefs.h >>conftest.$ac_ext
70115 cat >>conftest.$ac_ext <<_ACEOF
70116 /* end confdefs.h. */
70120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70121 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70122 ice_cv_have_setpgid_decl=yes
70126 if test "$ice_cv_have_setpgid_decl" = yes; then
70133 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
70134 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
70135 if test "$ice_cv_have_setpgid_decl" = yes; then
70137 cat >>confdefs.h <<_ACEOF
70138 #define HAVE_SETPGID_DECL 1
70148 { $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
70149 $as_echo_n "checking for setpgrp... " >&6; }
70150 if test "${ac_cv_func_setpgrp+set}" = set; then
70151 $as_echo_n "(cached) " >&6
70153 cat >conftest.$ac_ext <<_ACEOF
70156 cat confdefs.h >>conftest.$ac_ext
70157 cat >>conftest.$ac_ext <<_ACEOF
70158 /* end confdefs.h. */
70159 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
70160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70161 #define setpgrp innocuous_setpgrp
70163 /* System header to define __stub macros and hopefully few prototypes,
70164 which can conflict with char setpgrp (); below.
70165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70166 <limits.h> exists even on freestanding compilers. */
70169 # include <limits.h>
70171 # include <assert.h>
70176 /* Override any GCC internal prototype to avoid an error.
70177 Use char because int might match the return type of a GCC
70178 builtin and then its argument prototype would still apply. */
70183 /* The GNU C library defines this for functions which it implements
70184 to always fail with ENOSYS. Some functions are actually named
70185 something starting with __ and the normal name is an alias. */
70186 #if defined __stub_setpgrp || defined __stub___setpgrp
70198 rm -f conftest.$ac_objext conftest$ac_exeext
70199 if { (ac_try="$ac_link"
70200 case "(($ac_try" in
70201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70202 *) ac_try_echo=$ac_try;;
70204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70205 $as_echo "$ac_try_echo") >&5
70206 (eval "$ac_link") 2>conftest.er1
70208 grep -v '^ *+' conftest.er1 >conftest.err
70210 cat conftest.err >&5
70211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70212 (exit $ac_status); } && {
70213 test -z "$ac_c_werror_flag" ||
70214 test ! -s conftest.err
70215 } && test -s conftest$ac_exeext && {
70216 test "$cross_compiling" = yes ||
70217 $as_test_x conftest$ac_exeext
70219 ac_cv_func_setpgrp=yes
70221 $as_echo "$as_me: failed program was:" >&5
70222 sed 's/^/| /' conftest.$ac_ext >&5
70224 ac_cv_func_setpgrp=no
70227 rm -rf conftest.dSYM
70228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70229 conftest$ac_exeext conftest.$ac_ext
70231 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
70232 $as_echo "$ac_cv_func_setpgrp" >&6; }
70233 if test "x$ac_cv_func_setpgrp" = x""yes; then
70234 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
70235 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
70236 if test "${ac_cv_func_setpgrp_void+set}" = set; then
70237 $as_echo_n "(cached) " >&6
70239 if test "$cross_compiling" = yes; then
70240 { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
70241 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
70242 { (exit 1); exit 1; }; }
70244 cat >conftest.$ac_ext <<_ACEOF
70247 cat confdefs.h >>conftest.$ac_ext
70248 cat >>conftest.$ac_ext <<_ACEOF
70249 /* end confdefs.h. */
70250 $ac_includes_default
70254 /* If this system has a BSD-style setpgrp which takes arguments,
70255 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
70256 exit successfully. */
70257 return setpgrp (1,1) != -1;
70262 rm -f conftest$ac_exeext
70263 if { (ac_try="$ac_link"
70264 case "(($ac_try" in
70265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70266 *) ac_try_echo=$ac_try;;
70268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70269 $as_echo "$ac_try_echo") >&5
70270 (eval "$ac_link") 2>&5
70272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
70274 { (case "(($ac_try" in
70275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70276 *) ac_try_echo=$ac_try;;
70278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70279 $as_echo "$ac_try_echo") >&5
70280 (eval "$ac_try") 2>&5
70282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70283 (exit $ac_status); }; }; then
70284 ac_cv_func_setpgrp_void=no
70286 $as_echo "$as_me: program exited with status $ac_status" >&5
70287 $as_echo "$as_me: failed program was:" >&5
70288 sed 's/^/| /' conftest.$ac_ext >&5
70290 ( exit $ac_status )
70291 ac_cv_func_setpgrp_void=yes
70293 rm -rf conftest.dSYM
70294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
70299 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
70300 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
70301 if test $ac_cv_func_setpgrp_void = yes; then
70303 cat >>confdefs.h <<\_ACEOF
70304 #define SETPGRP_VOID 1
70312 ice_have_setpgrp=no
70314 for ac_func in setpgrp
70316 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70317 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70318 $as_echo_n "checking for $ac_func... " >&6; }
70319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70320 $as_echo_n "(cached) " >&6
70322 cat >conftest.$ac_ext <<_ACEOF
70325 cat confdefs.h >>conftest.$ac_ext
70326 cat >>conftest.$ac_ext <<_ACEOF
70327 /* end confdefs.h. */
70328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70330 #define $ac_func innocuous_$ac_func
70332 /* System header to define __stub macros and hopefully few prototypes,
70333 which can conflict with char $ac_func (); below.
70334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70335 <limits.h> exists even on freestanding compilers. */
70338 # include <limits.h>
70340 # include <assert.h>
70345 /* Override any GCC internal prototype to avoid an error.
70346 Use char because int might match the return type of a GCC
70347 builtin and then its argument prototype would still apply. */
70352 /* The GNU C library defines this for functions which it implements
70353 to always fail with ENOSYS. Some functions are actually named
70354 something starting with __ and the normal name is an alias. */
70355 #if defined __stub_$ac_func || defined __stub___$ac_func
70362 return $ac_func ();
70367 rm -f conftest.$ac_objext conftest$ac_exeext
70368 if { (ac_try="$ac_link"
70369 case "(($ac_try" in
70370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70371 *) ac_try_echo=$ac_try;;
70373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70374 $as_echo "$ac_try_echo") >&5
70375 (eval "$ac_link") 2>conftest.er1
70377 grep -v '^ *+' conftest.er1 >conftest.err
70379 cat conftest.err >&5
70380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70381 (exit $ac_status); } && {
70382 test -z "$ac_c_werror_flag" ||
70383 test ! -s conftest.err
70384 } && test -s conftest$ac_exeext && {
70385 test "$cross_compiling" = yes ||
70386 $as_test_x conftest$ac_exeext
70388 eval "$as_ac_var=yes"
70390 $as_echo "$as_me: failed program was:" >&5
70391 sed 's/^/| /' conftest.$ac_ext >&5
70393 eval "$as_ac_var=no"
70396 rm -rf conftest.dSYM
70397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70398 conftest$ac_exeext conftest.$ac_ext
70400 ac_res=`eval 'as_val=${'$as_ac_var'}
70401 $as_echo "$as_val"'`
70402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70403 $as_echo "$ac_res" >&6; }
70404 as_val=`eval 'as_val=${'$as_ac_var'}
70405 $as_echo "$as_val"'`
70406 if test "x$as_val" = x""yes; then
70407 cat >>confdefs.h <<_ACEOF
70408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70410 ice_have_setpgrp=yes
70414 if test "${ice_have_setpgrp}" = yes; then
70415 { $as_echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
70416 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
70417 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
70418 $as_echo_n "(cached) " >&6
70421 ice_cv_have_setpgrp_decl=no
70422 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70423 ice_re_word='(^|[^a-zA-Z0-9_])'
70424 for header in sys/types.h unistd.h libc.h; do
70425 # Check for ordinary declaration
70426 cat >conftest.$ac_ext <<_ACEOF
70429 cat confdefs.h >>conftest.$ac_ext
70430 cat >>conftest.$ac_ext <<_ACEOF
70431 /* end confdefs.h. */
70435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70436 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then
70437 ice_cv_have_setpgrp_decl=yes
70441 if test "$ice_cv_have_setpgrp_decl" = yes; then
70444 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70445 cat >conftest.$ac_ext <<_ACEOF
70448 cat confdefs.h >>conftest.$ac_ext
70449 cat >>conftest.$ac_ext <<_ACEOF
70450 /* end confdefs.h. */
70454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70455 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70456 ice_cv_have_setpgrp_decl=yes
70460 if test "$ice_cv_have_setpgrp_decl" = yes; then
70467 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
70468 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
70469 if test "$ice_cv_have_setpgrp_decl" = yes; then
70471 cat >>confdefs.h <<_ACEOF
70472 #define HAVE_SETPGRP_DECL 1
70479 ice_have_setsockopt=no
70481 for ac_func in setsockopt
70483 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70484 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70485 $as_echo_n "checking for $ac_func... " >&6; }
70486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70487 $as_echo_n "(cached) " >&6
70489 cat >conftest.$ac_ext <<_ACEOF
70492 cat confdefs.h >>conftest.$ac_ext
70493 cat >>conftest.$ac_ext <<_ACEOF
70494 /* end confdefs.h. */
70495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70497 #define $ac_func innocuous_$ac_func
70499 /* System header to define __stub macros and hopefully few prototypes,
70500 which can conflict with char $ac_func (); below.
70501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70502 <limits.h> exists even on freestanding compilers. */
70505 # include <limits.h>
70507 # include <assert.h>
70512 /* Override any GCC internal prototype to avoid an error.
70513 Use char because int might match the return type of a GCC
70514 builtin and then its argument prototype would still apply. */
70519 /* The GNU C library defines this for functions which it implements
70520 to always fail with ENOSYS. Some functions are actually named
70521 something starting with __ and the normal name is an alias. */
70522 #if defined __stub_$ac_func || defined __stub___$ac_func
70529 return $ac_func ();
70534 rm -f conftest.$ac_objext conftest$ac_exeext
70535 if { (ac_try="$ac_link"
70536 case "(($ac_try" in
70537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70538 *) ac_try_echo=$ac_try;;
70540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70541 $as_echo "$ac_try_echo") >&5
70542 (eval "$ac_link") 2>conftest.er1
70544 grep -v '^ *+' conftest.er1 >conftest.err
70546 cat conftest.err >&5
70547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70548 (exit $ac_status); } && {
70549 test -z "$ac_c_werror_flag" ||
70550 test ! -s conftest.err
70551 } && test -s conftest$ac_exeext && {
70552 test "$cross_compiling" = yes ||
70553 $as_test_x conftest$ac_exeext
70555 eval "$as_ac_var=yes"
70557 $as_echo "$as_me: failed program was:" >&5
70558 sed 's/^/| /' conftest.$ac_ext >&5
70560 eval "$as_ac_var=no"
70563 rm -rf conftest.dSYM
70564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70565 conftest$ac_exeext conftest.$ac_ext
70567 ac_res=`eval 'as_val=${'$as_ac_var'}
70568 $as_echo "$as_val"'`
70569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70570 $as_echo "$ac_res" >&6; }
70571 as_val=`eval 'as_val=${'$as_ac_var'}
70572 $as_echo "$as_val"'`
70573 if test "x$as_val" = x""yes; then
70574 cat >>confdefs.h <<_ACEOF
70575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70577 ice_have_setsockopt=yes
70581 if test "${ice_have_setsockopt}" = yes; then
70582 { $as_echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
70583 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
70584 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
70585 $as_echo_n "(cached) " >&6
70588 ice_cv_have_setsockopt_decl=no
70589 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70590 ice_re_word='(^|[^a-zA-Z0-9_])'
70591 for header in sys/types.h sys/socket.h; do
70592 # Check for ordinary declaration
70593 cat >conftest.$ac_ext <<_ACEOF
70596 cat confdefs.h >>conftest.$ac_ext
70597 cat >>conftest.$ac_ext <<_ACEOF
70598 /* end confdefs.h. */
70602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70603 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then
70604 ice_cv_have_setsockopt_decl=yes
70608 if test "$ice_cv_have_setsockopt_decl" = yes; then
70611 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70612 cat >conftest.$ac_ext <<_ACEOF
70615 cat confdefs.h >>conftest.$ac_ext
70616 cat >>conftest.$ac_ext <<_ACEOF
70617 /* end confdefs.h. */
70621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70622 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70623 ice_cv_have_setsockopt_decl=yes
70627 if test "$ice_cv_have_setsockopt_decl" = yes; then
70634 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
70635 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
70636 if test "$ice_cv_have_setsockopt_decl" = yes; then
70638 cat >>confdefs.h <<_ACEOF
70639 #define HAVE_SETSOCKOPT_DECL 1
70648 for ac_func in sigaction sigemptyset sigvec
70650 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70651 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70652 $as_echo_n "checking for $ac_func... " >&6; }
70653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70654 $as_echo_n "(cached) " >&6
70656 cat >conftest.$ac_ext <<_ACEOF
70659 cat confdefs.h >>conftest.$ac_ext
70660 cat >>conftest.$ac_ext <<_ACEOF
70661 /* end confdefs.h. */
70662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70664 #define $ac_func innocuous_$ac_func
70666 /* System header to define __stub macros and hopefully few prototypes,
70667 which can conflict with char $ac_func (); below.
70668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70669 <limits.h> exists even on freestanding compilers. */
70672 # include <limits.h>
70674 # include <assert.h>
70679 /* Override any GCC internal prototype to avoid an error.
70680 Use char because int might match the return type of a GCC
70681 builtin and then its argument prototype would still apply. */
70686 /* The GNU C library defines this for functions which it implements
70687 to always fail with ENOSYS. Some functions are actually named
70688 something starting with __ and the normal name is an alias. */
70689 #if defined __stub_$ac_func || defined __stub___$ac_func
70696 return $ac_func ();
70701 rm -f conftest.$ac_objext conftest$ac_exeext
70702 if { (ac_try="$ac_link"
70703 case "(($ac_try" in
70704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70705 *) ac_try_echo=$ac_try;;
70707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70708 $as_echo "$ac_try_echo") >&5
70709 (eval "$ac_link") 2>conftest.er1
70711 grep -v '^ *+' conftest.er1 >conftest.err
70713 cat conftest.err >&5
70714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70715 (exit $ac_status); } && {
70716 test -z "$ac_c_werror_flag" ||
70717 test ! -s conftest.err
70718 } && test -s conftest$ac_exeext && {
70719 test "$cross_compiling" = yes ||
70720 $as_test_x conftest$ac_exeext
70722 eval "$as_ac_var=yes"
70724 $as_echo "$as_me: failed program was:" >&5
70725 sed 's/^/| /' conftest.$ac_ext >&5
70727 eval "$as_ac_var=no"
70730 rm -rf conftest.dSYM
70731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70732 conftest$ac_exeext conftest.$ac_ext
70734 ac_res=`eval 'as_val=${'$as_ac_var'}
70735 $as_echo "$as_val"'`
70736 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70737 $as_echo "$ac_res" >&6; }
70738 as_val=`eval 'as_val=${'$as_ac_var'}
70739 $as_echo "$as_val"'`
70740 if test "x$as_val" = x""yes; then
70741 cat >>confdefs.h <<_ACEOF
70742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70751 for ac_func in socket
70753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70754 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70755 $as_echo_n "checking for $ac_func... " >&6; }
70756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70757 $as_echo_n "(cached) " >&6
70759 cat >conftest.$ac_ext <<_ACEOF
70762 cat confdefs.h >>conftest.$ac_ext
70763 cat >>conftest.$ac_ext <<_ACEOF
70764 /* end confdefs.h. */
70765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70767 #define $ac_func innocuous_$ac_func
70769 /* System header to define __stub macros and hopefully few prototypes,
70770 which can conflict with char $ac_func (); below.
70771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70772 <limits.h> exists even on freestanding compilers. */
70775 # include <limits.h>
70777 # include <assert.h>
70782 /* Override any GCC internal prototype to avoid an error.
70783 Use char because int might match the return type of a GCC
70784 builtin and then its argument prototype would still apply. */
70789 /* The GNU C library defines this for functions which it implements
70790 to always fail with ENOSYS. Some functions are actually named
70791 something starting with __ and the normal name is an alias. */
70792 #if defined __stub_$ac_func || defined __stub___$ac_func
70799 return $ac_func ();
70804 rm -f conftest.$ac_objext conftest$ac_exeext
70805 if { (ac_try="$ac_link"
70806 case "(($ac_try" in
70807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70808 *) ac_try_echo=$ac_try;;
70810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70811 $as_echo "$ac_try_echo") >&5
70812 (eval "$ac_link") 2>conftest.er1
70814 grep -v '^ *+' conftest.er1 >conftest.err
70816 cat conftest.err >&5
70817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70818 (exit $ac_status); } && {
70819 test -z "$ac_c_werror_flag" ||
70820 test ! -s conftest.err
70821 } && test -s conftest$ac_exeext && {
70822 test "$cross_compiling" = yes ||
70823 $as_test_x conftest$ac_exeext
70825 eval "$as_ac_var=yes"
70827 $as_echo "$as_me: failed program was:" >&5
70828 sed 's/^/| /' conftest.$ac_ext >&5
70830 eval "$as_ac_var=no"
70833 rm -rf conftest.dSYM
70834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70835 conftest$ac_exeext conftest.$ac_ext
70837 ac_res=`eval 'as_val=${'$as_ac_var'}
70838 $as_echo "$as_val"'`
70839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70840 $as_echo "$ac_res" >&6; }
70841 as_val=`eval 'as_val=${'$as_ac_var'}
70842 $as_echo "$as_val"'`
70843 if test "x$as_val" = x""yes; then
70844 cat >>confdefs.h <<_ACEOF
70845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70847 ice_have_socket=yes
70851 if test "${ice_have_socket}" = yes; then
70852 { $as_echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
70853 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
70854 if test "${ice_cv_have_socket_decl+set}" = set; then
70855 $as_echo_n "(cached) " >&6
70858 ice_cv_have_socket_decl=no
70859 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70860 ice_re_word='(^|[^a-zA-Z0-9_])'
70861 for header in sys/types.h sys/socket.h; do
70862 # Check for ordinary declaration
70863 cat >conftest.$ac_ext <<_ACEOF
70866 cat confdefs.h >>conftest.$ac_ext
70867 cat >>conftest.$ac_ext <<_ACEOF
70868 /* end confdefs.h. */
70872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70873 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then
70874 ice_cv_have_socket_decl=yes
70878 if test "$ice_cv_have_socket_decl" = yes; then
70881 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70882 cat >conftest.$ac_ext <<_ACEOF
70885 cat confdefs.h >>conftest.$ac_ext
70886 cat >>conftest.$ac_ext <<_ACEOF
70887 /* end confdefs.h. */
70891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70892 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70893 ice_cv_have_socket_decl=yes
70897 if test "$ice_cv_have_socket_decl" = yes; then
70904 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
70905 $as_echo "$ice_cv_have_socket_decl" >&6; }
70906 if test "$ice_cv_have_socket_decl" = yes; then
70908 cat >>confdefs.h <<_ACEOF
70909 #define HAVE_SOCKET_DECL 1
70916 ice_have_socketpair=no
70918 for ac_func in socketpair
70920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70921 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70922 $as_echo_n "checking for $ac_func... " >&6; }
70923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70924 $as_echo_n "(cached) " >&6
70926 cat >conftest.$ac_ext <<_ACEOF
70929 cat confdefs.h >>conftest.$ac_ext
70930 cat >>conftest.$ac_ext <<_ACEOF
70931 /* end confdefs.h. */
70932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70934 #define $ac_func innocuous_$ac_func
70936 /* System header to define __stub macros and hopefully few prototypes,
70937 which can conflict with char $ac_func (); below.
70938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70939 <limits.h> exists even on freestanding compilers. */
70942 # include <limits.h>
70944 # include <assert.h>
70949 /* Override any GCC internal prototype to avoid an error.
70950 Use char because int might match the return type of a GCC
70951 builtin and then its argument prototype would still apply. */
70956 /* The GNU C library defines this for functions which it implements
70957 to always fail with ENOSYS. Some functions are actually named
70958 something starting with __ and the normal name is an alias. */
70959 #if defined __stub_$ac_func || defined __stub___$ac_func
70966 return $ac_func ();
70971 rm -f conftest.$ac_objext conftest$ac_exeext
70972 if { (ac_try="$ac_link"
70973 case "(($ac_try" in
70974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70975 *) ac_try_echo=$ac_try;;
70977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70978 $as_echo "$ac_try_echo") >&5
70979 (eval "$ac_link") 2>conftest.er1
70981 grep -v '^ *+' conftest.er1 >conftest.err
70983 cat conftest.err >&5
70984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70985 (exit $ac_status); } && {
70986 test -z "$ac_c_werror_flag" ||
70987 test ! -s conftest.err
70988 } && test -s conftest$ac_exeext && {
70989 test "$cross_compiling" = yes ||
70990 $as_test_x conftest$ac_exeext
70992 eval "$as_ac_var=yes"
70994 $as_echo "$as_me: failed program was:" >&5
70995 sed 's/^/| /' conftest.$ac_ext >&5
70997 eval "$as_ac_var=no"
71000 rm -rf conftest.dSYM
71001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71002 conftest$ac_exeext conftest.$ac_ext
71004 ac_res=`eval 'as_val=${'$as_ac_var'}
71005 $as_echo "$as_val"'`
71006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71007 $as_echo "$ac_res" >&6; }
71008 as_val=`eval 'as_val=${'$as_ac_var'}
71009 $as_echo "$as_val"'`
71010 if test "x$as_val" = x""yes; then
71011 cat >>confdefs.h <<_ACEOF
71012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71014 ice_have_socketpair=yes
71018 if test "${ice_have_socketpair}" = yes; then
71019 { $as_echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
71020 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
71021 if test "${ice_cv_have_socketpair_decl+set}" = set; then
71022 $as_echo_n "(cached) " >&6
71025 ice_cv_have_socketpair_decl=no
71026 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71027 ice_re_word='(^|[^a-zA-Z0-9_])'
71028 for header in sys/types.h sys/socket.h; do
71029 # Check for ordinary declaration
71030 cat >conftest.$ac_ext <<_ACEOF
71033 cat confdefs.h >>conftest.$ac_ext
71034 cat >>conftest.$ac_ext <<_ACEOF
71035 /* end confdefs.h. */
71039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71040 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then
71041 ice_cv_have_socketpair_decl=yes
71045 if test "$ice_cv_have_socketpair_decl" = yes; then
71048 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71049 cat >conftest.$ac_ext <<_ACEOF
71052 cat confdefs.h >>conftest.$ac_ext
71053 cat >>conftest.$ac_ext <<_ACEOF
71054 /* end confdefs.h. */
71058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71059 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71060 ice_cv_have_socketpair_decl=yes
71064 if test "$ice_cv_have_socketpair_decl" = yes; then
71071 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
71072 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
71073 if test "$ice_cv_have_socketpair_decl" = yes; then
71075 cat >>confdefs.h <<_ACEOF
71076 #define HAVE_SOCKETPAIR_DECL 1
71085 for ac_func in sscanf
71087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71088 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71089 $as_echo_n "checking for $ac_func... " >&6; }
71090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71091 $as_echo_n "(cached) " >&6
71093 cat >conftest.$ac_ext <<_ACEOF
71096 cat confdefs.h >>conftest.$ac_ext
71097 cat >>conftest.$ac_ext <<_ACEOF
71098 /* end confdefs.h. */
71099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71101 #define $ac_func innocuous_$ac_func
71103 /* System header to define __stub macros and hopefully few prototypes,
71104 which can conflict with char $ac_func (); below.
71105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71106 <limits.h> exists even on freestanding compilers. */
71109 # include <limits.h>
71111 # include <assert.h>
71116 /* Override any GCC internal prototype to avoid an error.
71117 Use char because int might match the return type of a GCC
71118 builtin and then its argument prototype would still apply. */
71123 /* The GNU C library defines this for functions which it implements
71124 to always fail with ENOSYS. Some functions are actually named
71125 something starting with __ and the normal name is an alias. */
71126 #if defined __stub_$ac_func || defined __stub___$ac_func
71133 return $ac_func ();
71138 rm -f conftest.$ac_objext conftest$ac_exeext
71139 if { (ac_try="$ac_link"
71140 case "(($ac_try" in
71141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71142 *) ac_try_echo=$ac_try;;
71144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71145 $as_echo "$ac_try_echo") >&5
71146 (eval "$ac_link") 2>conftest.er1
71148 grep -v '^ *+' conftest.er1 >conftest.err
71150 cat conftest.err >&5
71151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71152 (exit $ac_status); } && {
71153 test -z "$ac_c_werror_flag" ||
71154 test ! -s conftest.err
71155 } && test -s conftest$ac_exeext && {
71156 test "$cross_compiling" = yes ||
71157 $as_test_x conftest$ac_exeext
71159 eval "$as_ac_var=yes"
71161 $as_echo "$as_me: failed program was:" >&5
71162 sed 's/^/| /' conftest.$ac_ext >&5
71164 eval "$as_ac_var=no"
71167 rm -rf conftest.dSYM
71168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71169 conftest$ac_exeext conftest.$ac_ext
71171 ac_res=`eval 'as_val=${'$as_ac_var'}
71172 $as_echo "$as_val"'`
71173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71174 $as_echo "$ac_res" >&6; }
71175 as_val=`eval 'as_val=${'$as_ac_var'}
71176 $as_echo "$as_val"'`
71177 if test "x$as_val" = x""yes; then
71178 cat >>confdefs.h <<_ACEOF
71179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71181 ice_have_sscanf=yes
71185 if test "${ice_have_sscanf}" = yes; then
71186 { $as_echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
71187 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
71188 if test "${ice_cv_have_sscanf_decl+set}" = set; then
71189 $as_echo_n "(cached) " >&6
71192 ice_cv_have_sscanf_decl=no
71193 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71194 ice_re_word='(^|[^a-zA-Z0-9_])'
71195 for header in stdio.h; do
71196 # Check for ordinary declaration
71197 cat >conftest.$ac_ext <<_ACEOF
71200 cat confdefs.h >>conftest.$ac_ext
71201 cat >>conftest.$ac_ext <<_ACEOF
71202 /* end confdefs.h. */
71206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71207 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then
71208 ice_cv_have_sscanf_decl=yes
71212 if test "$ice_cv_have_sscanf_decl" = yes; then
71215 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71216 cat >conftest.$ac_ext <<_ACEOF
71219 cat confdefs.h >>conftest.$ac_ext
71220 cat >>conftest.$ac_ext <<_ACEOF
71221 /* end confdefs.h. */
71225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71226 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71227 ice_cv_have_sscanf_decl=yes
71231 if test "$ice_cv_have_sscanf_decl" = yes; then
71238 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
71239 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
71240 if test "$ice_cv_have_sscanf_decl" = yes; then
71242 cat >>confdefs.h <<_ACEOF
71243 #define HAVE_SSCANF_DECL 1
71250 ice_have_strerror=no
71252 for ac_func in strerror
71254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71255 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71256 $as_echo_n "checking for $ac_func... " >&6; }
71257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71258 $as_echo_n "(cached) " >&6
71260 cat >conftest.$ac_ext <<_ACEOF
71263 cat confdefs.h >>conftest.$ac_ext
71264 cat >>conftest.$ac_ext <<_ACEOF
71265 /* end confdefs.h. */
71266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71268 #define $ac_func innocuous_$ac_func
71270 /* System header to define __stub macros and hopefully few prototypes,
71271 which can conflict with char $ac_func (); below.
71272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71273 <limits.h> exists even on freestanding compilers. */
71276 # include <limits.h>
71278 # include <assert.h>
71283 /* Override any GCC internal prototype to avoid an error.
71284 Use char because int might match the return type of a GCC
71285 builtin and then its argument prototype would still apply. */
71290 /* The GNU C library defines this for functions which it implements
71291 to always fail with ENOSYS. Some functions are actually named
71292 something starting with __ and the normal name is an alias. */
71293 #if defined __stub_$ac_func || defined __stub___$ac_func
71300 return $ac_func ();
71305 rm -f conftest.$ac_objext conftest$ac_exeext
71306 if { (ac_try="$ac_link"
71307 case "(($ac_try" in
71308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71309 *) ac_try_echo=$ac_try;;
71311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71312 $as_echo "$ac_try_echo") >&5
71313 (eval "$ac_link") 2>conftest.er1
71315 grep -v '^ *+' conftest.er1 >conftest.err
71317 cat conftest.err >&5
71318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71319 (exit $ac_status); } && {
71320 test -z "$ac_c_werror_flag" ||
71321 test ! -s conftest.err
71322 } && test -s conftest$ac_exeext && {
71323 test "$cross_compiling" = yes ||
71324 $as_test_x conftest$ac_exeext
71326 eval "$as_ac_var=yes"
71328 $as_echo "$as_me: failed program was:" >&5
71329 sed 's/^/| /' conftest.$ac_ext >&5
71331 eval "$as_ac_var=no"
71334 rm -rf conftest.dSYM
71335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71336 conftest$ac_exeext conftest.$ac_ext
71338 ac_res=`eval 'as_val=${'$as_ac_var'}
71339 $as_echo "$as_val"'`
71340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71341 $as_echo "$ac_res" >&6; }
71342 as_val=`eval 'as_val=${'$as_ac_var'}
71343 $as_echo "$as_val"'`
71344 if test "x$as_val" = x""yes; then
71345 cat >>confdefs.h <<_ACEOF
71346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71348 ice_have_strerror=yes
71352 if test "${ice_have_strerror}" = yes; then
71353 { $as_echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
71354 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
71355 if test "${ice_cv_have_strerror_decl+set}" = set; then
71356 $as_echo_n "(cached) " >&6
71359 ice_cv_have_strerror_decl=no
71360 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71361 ice_re_word='(^|[^a-zA-Z0-9_])'
71362 for header in string.h strings.h; do
71363 # Check for ordinary declaration
71364 cat >conftest.$ac_ext <<_ACEOF
71367 cat confdefs.h >>conftest.$ac_ext
71368 cat >>conftest.$ac_ext <<_ACEOF
71369 /* end confdefs.h. */
71373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71374 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then
71375 ice_cv_have_strerror_decl=yes
71379 if test "$ice_cv_have_strerror_decl" = yes; then
71382 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71383 cat >conftest.$ac_ext <<_ACEOF
71386 cat confdefs.h >>conftest.$ac_ext
71387 cat >>conftest.$ac_ext <<_ACEOF
71388 /* end confdefs.h. */
71392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71393 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71394 ice_cv_have_strerror_decl=yes
71398 if test "$ice_cv_have_strerror_decl" = yes; then
71405 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
71406 $as_echo "$ice_cv_have_strerror_decl" >&6; }
71407 if test "$ice_cv_have_strerror_decl" = yes; then
71409 cat >>confdefs.h <<_ACEOF
71410 #define HAVE_STRERROR_DECL 1
71417 for ac_func in strftime
71419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71421 $as_echo_n "checking for $ac_func... " >&6; }
71422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71423 $as_echo_n "(cached) " >&6
71425 cat >conftest.$ac_ext <<_ACEOF
71428 cat confdefs.h >>conftest.$ac_ext
71429 cat >>conftest.$ac_ext <<_ACEOF
71430 /* end confdefs.h. */
71431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71433 #define $ac_func innocuous_$ac_func
71435 /* System header to define __stub macros and hopefully few prototypes,
71436 which can conflict with char $ac_func (); below.
71437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71438 <limits.h> exists even on freestanding compilers. */
71441 # include <limits.h>
71443 # include <assert.h>
71448 /* Override any GCC internal prototype to avoid an error.
71449 Use char because int might match the return type of a GCC
71450 builtin and then its argument prototype would still apply. */
71455 /* The GNU C library defines this for functions which it implements
71456 to always fail with ENOSYS. Some functions are actually named
71457 something starting with __ and the normal name is an alias. */
71458 #if defined __stub_$ac_func || defined __stub___$ac_func
71465 return $ac_func ();
71470 rm -f conftest.$ac_objext conftest$ac_exeext
71471 if { (ac_try="$ac_link"
71472 case "(($ac_try" in
71473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71474 *) ac_try_echo=$ac_try;;
71476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71477 $as_echo "$ac_try_echo") >&5
71478 (eval "$ac_link") 2>conftest.er1
71480 grep -v '^ *+' conftest.er1 >conftest.err
71482 cat conftest.err >&5
71483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71484 (exit $ac_status); } && {
71485 test -z "$ac_c_werror_flag" ||
71486 test ! -s conftest.err
71487 } && test -s conftest$ac_exeext && {
71488 test "$cross_compiling" = yes ||
71489 $as_test_x conftest$ac_exeext
71491 eval "$as_ac_var=yes"
71493 $as_echo "$as_me: failed program was:" >&5
71494 sed 's/^/| /' conftest.$ac_ext >&5
71496 eval "$as_ac_var=no"
71499 rm -rf conftest.dSYM
71500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71501 conftest$ac_exeext conftest.$ac_ext
71503 ac_res=`eval 'as_val=${'$as_ac_var'}
71504 $as_echo "$as_val"'`
71505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71506 $as_echo "$ac_res" >&6; }
71507 as_val=`eval 'as_val=${'$as_ac_var'}
71508 $as_echo "$as_val"'`
71509 if test "x$as_val" = x""yes; then
71510 cat >>confdefs.h <<_ACEOF
71511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71515 # strftime is in -lintl on SCO UNIX.
71516 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
71517 $as_echo_n "checking for strftime in -lintl... " >&6; }
71518 if test "${ac_cv_lib_intl_strftime+set}" = set; then
71519 $as_echo_n "(cached) " >&6
71521 ac_check_lib_save_LIBS=$LIBS
71522 LIBS="-lintl $LIBS"
71523 cat >conftest.$ac_ext <<_ACEOF
71526 cat confdefs.h >>conftest.$ac_ext
71527 cat >>conftest.$ac_ext <<_ACEOF
71528 /* end confdefs.h. */
71530 /* Override any GCC internal prototype to avoid an error.
71531 Use char because int might match the return type of a GCC
71532 builtin and then its argument prototype would still apply. */
71540 return strftime ();
71545 rm -f conftest.$ac_objext conftest$ac_exeext
71546 if { (ac_try="$ac_link"
71547 case "(($ac_try" in
71548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71549 *) ac_try_echo=$ac_try;;
71551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71552 $as_echo "$ac_try_echo") >&5
71553 (eval "$ac_link") 2>conftest.er1
71555 grep -v '^ *+' conftest.er1 >conftest.err
71557 cat conftest.err >&5
71558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71559 (exit $ac_status); } && {
71560 test -z "$ac_c_werror_flag" ||
71561 test ! -s conftest.err
71562 } && test -s conftest$ac_exeext && {
71563 test "$cross_compiling" = yes ||
71564 $as_test_x conftest$ac_exeext
71566 ac_cv_lib_intl_strftime=yes
71568 $as_echo "$as_me: failed program was:" >&5
71569 sed 's/^/| /' conftest.$ac_ext >&5
71571 ac_cv_lib_intl_strftime=no
71574 rm -rf conftest.dSYM
71575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71576 conftest$ac_exeext conftest.$ac_ext
71577 LIBS=$ac_check_lib_save_LIBS
71579 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
71580 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
71581 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
71582 cat >>confdefs.h <<\_ACEOF
71583 #define HAVE_STRFTIME 1
71586 LIBS="-lintl $LIBS"
71593 ice_have_strftime=no
71595 for ac_func in strftime
71597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71598 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71599 $as_echo_n "checking for $ac_func... " >&6; }
71600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71601 $as_echo_n "(cached) " >&6
71603 cat >conftest.$ac_ext <<_ACEOF
71606 cat confdefs.h >>conftest.$ac_ext
71607 cat >>conftest.$ac_ext <<_ACEOF
71608 /* end confdefs.h. */
71609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71611 #define $ac_func innocuous_$ac_func
71613 /* System header to define __stub macros and hopefully few prototypes,
71614 which can conflict with char $ac_func (); below.
71615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71616 <limits.h> exists even on freestanding compilers. */
71619 # include <limits.h>
71621 # include <assert.h>
71626 /* Override any GCC internal prototype to avoid an error.
71627 Use char because int might match the return type of a GCC
71628 builtin and then its argument prototype would still apply. */
71633 /* The GNU C library defines this for functions which it implements
71634 to always fail with ENOSYS. Some functions are actually named
71635 something starting with __ and the normal name is an alias. */
71636 #if defined __stub_$ac_func || defined __stub___$ac_func
71643 return $ac_func ();
71648 rm -f conftest.$ac_objext conftest$ac_exeext
71649 if { (ac_try="$ac_link"
71650 case "(($ac_try" in
71651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71652 *) ac_try_echo=$ac_try;;
71654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71655 $as_echo "$ac_try_echo") >&5
71656 (eval "$ac_link") 2>conftest.er1
71658 grep -v '^ *+' conftest.er1 >conftest.err
71660 cat conftest.err >&5
71661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71662 (exit $ac_status); } && {
71663 test -z "$ac_c_werror_flag" ||
71664 test ! -s conftest.err
71665 } && test -s conftest$ac_exeext && {
71666 test "$cross_compiling" = yes ||
71667 $as_test_x conftest$ac_exeext
71669 eval "$as_ac_var=yes"
71671 $as_echo "$as_me: failed program was:" >&5
71672 sed 's/^/| /' conftest.$ac_ext >&5
71674 eval "$as_ac_var=no"
71677 rm -rf conftest.dSYM
71678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71679 conftest$ac_exeext conftest.$ac_ext
71681 ac_res=`eval 'as_val=${'$as_ac_var'}
71682 $as_echo "$as_val"'`
71683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71684 $as_echo "$ac_res" >&6; }
71685 as_val=`eval 'as_val=${'$as_ac_var'}
71686 $as_echo "$as_val"'`
71687 if test "x$as_val" = x""yes; then
71688 cat >>confdefs.h <<_ACEOF
71689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71691 ice_have_strftime=yes
71695 if test "${ice_have_strftime}" = yes; then
71696 { $as_echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
71697 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
71698 if test "${ice_cv_have_strftime_decl+set}" = set; then
71699 $as_echo_n "(cached) " >&6
71702 ice_cv_have_strftime_decl=no
71703 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71704 ice_re_word='(^|[^a-zA-Z0-9_])'
71705 for header in time.h sys/time.h; do
71706 # Check for ordinary declaration
71707 cat >conftest.$ac_ext <<_ACEOF
71710 cat confdefs.h >>conftest.$ac_ext
71711 cat >>conftest.$ac_ext <<_ACEOF
71712 /* end confdefs.h. */
71716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71717 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then
71718 ice_cv_have_strftime_decl=yes
71722 if test "$ice_cv_have_strftime_decl" = yes; then
71725 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71726 cat >conftest.$ac_ext <<_ACEOF
71729 cat confdefs.h >>conftest.$ac_ext
71730 cat >>conftest.$ac_ext <<_ACEOF
71731 /* end confdefs.h. */
71735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71736 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71737 ice_cv_have_strftime_decl=yes
71741 if test "$ice_cv_have_strftime_decl" = yes; then
71748 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
71749 $as_echo "$ice_cv_have_strftime_decl" >&6; }
71750 if test "$ice_cv_have_strftime_decl" = yes; then
71752 cat >>confdefs.h <<_ACEOF
71753 #define HAVE_STRFTIME_DECL 1
71760 ice_have_strncasecmp=no
71762 for ac_func in strncasecmp
71764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71765 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71766 $as_echo_n "checking for $ac_func... " >&6; }
71767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71768 $as_echo_n "(cached) " >&6
71770 cat >conftest.$ac_ext <<_ACEOF
71773 cat confdefs.h >>conftest.$ac_ext
71774 cat >>conftest.$ac_ext <<_ACEOF
71775 /* end confdefs.h. */
71776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71778 #define $ac_func innocuous_$ac_func
71780 /* System header to define __stub macros and hopefully few prototypes,
71781 which can conflict with char $ac_func (); below.
71782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71783 <limits.h> exists even on freestanding compilers. */
71786 # include <limits.h>
71788 # include <assert.h>
71793 /* Override any GCC internal prototype to avoid an error.
71794 Use char because int might match the return type of a GCC
71795 builtin and then its argument prototype would still apply. */
71800 /* The GNU C library defines this for functions which it implements
71801 to always fail with ENOSYS. Some functions are actually named
71802 something starting with __ and the normal name is an alias. */
71803 #if defined __stub_$ac_func || defined __stub___$ac_func
71810 return $ac_func ();
71815 rm -f conftest.$ac_objext conftest$ac_exeext
71816 if { (ac_try="$ac_link"
71817 case "(($ac_try" in
71818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71819 *) ac_try_echo=$ac_try;;
71821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71822 $as_echo "$ac_try_echo") >&5
71823 (eval "$ac_link") 2>conftest.er1
71825 grep -v '^ *+' conftest.er1 >conftest.err
71827 cat conftest.err >&5
71828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71829 (exit $ac_status); } && {
71830 test -z "$ac_c_werror_flag" ||
71831 test ! -s conftest.err
71832 } && test -s conftest$ac_exeext && {
71833 test "$cross_compiling" = yes ||
71834 $as_test_x conftest$ac_exeext
71836 eval "$as_ac_var=yes"
71838 $as_echo "$as_me: failed program was:" >&5
71839 sed 's/^/| /' conftest.$ac_ext >&5
71841 eval "$as_ac_var=no"
71844 rm -rf conftest.dSYM
71845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71846 conftest$ac_exeext conftest.$ac_ext
71848 ac_res=`eval 'as_val=${'$as_ac_var'}
71849 $as_echo "$as_val"'`
71850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71851 $as_echo "$ac_res" >&6; }
71852 as_val=`eval 'as_val=${'$as_ac_var'}
71853 $as_echo "$as_val"'`
71854 if test "x$as_val" = x""yes; then
71855 cat >>confdefs.h <<_ACEOF
71856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71858 ice_have_strncasecmp=yes
71862 if test "${ice_have_strncasecmp}" = yes; then
71863 { $as_echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
71864 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
71865 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
71866 $as_echo_n "(cached) " >&6
71869 ice_cv_have_strncasecmp_decl=no
71870 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71871 ice_re_word='(^|[^a-zA-Z0-9_])'
71872 for header in string.h strings.h; do
71873 # Check for ordinary declaration
71874 cat >conftest.$ac_ext <<_ACEOF
71877 cat confdefs.h >>conftest.$ac_ext
71878 cat >>conftest.$ac_ext <<_ACEOF
71879 /* end confdefs.h. */
71883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71884 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then
71885 ice_cv_have_strncasecmp_decl=yes
71889 if test "$ice_cv_have_strncasecmp_decl" = yes; then
71892 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71893 cat >conftest.$ac_ext <<_ACEOF
71896 cat confdefs.h >>conftest.$ac_ext
71897 cat >>conftest.$ac_ext <<_ACEOF
71898 /* end confdefs.h. */
71902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71903 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71904 ice_cv_have_strncasecmp_decl=yes
71908 if test "$ice_cv_have_strncasecmp_decl" = yes; then
71915 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
71916 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
71917 if test "$ice_cv_have_strncasecmp_decl" = yes; then
71919 cat >>confdefs.h <<_ACEOF
71920 #define HAVE_STRNCASECMP_DECL 1
71929 for ac_func in syslog
71931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71932 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71933 $as_echo_n "checking for $ac_func... " >&6; }
71934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71935 $as_echo_n "(cached) " >&6
71937 cat >conftest.$ac_ext <<_ACEOF
71940 cat confdefs.h >>conftest.$ac_ext
71941 cat >>conftest.$ac_ext <<_ACEOF
71942 /* end confdefs.h. */
71943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71945 #define $ac_func innocuous_$ac_func
71947 /* System header to define __stub macros and hopefully few prototypes,
71948 which can conflict with char $ac_func (); below.
71949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71950 <limits.h> exists even on freestanding compilers. */
71953 # include <limits.h>
71955 # include <assert.h>
71960 /* Override any GCC internal prototype to avoid an error.
71961 Use char because int might match the return type of a GCC
71962 builtin and then its argument prototype would still apply. */
71967 /* The GNU C library defines this for functions which it implements
71968 to always fail with ENOSYS. Some functions are actually named
71969 something starting with __ and the normal name is an alias. */
71970 #if defined __stub_$ac_func || defined __stub___$ac_func
71977 return $ac_func ();
71982 rm -f conftest.$ac_objext conftest$ac_exeext
71983 if { (ac_try="$ac_link"
71984 case "(($ac_try" in
71985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71986 *) ac_try_echo=$ac_try;;
71988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71989 $as_echo "$ac_try_echo") >&5
71990 (eval "$ac_link") 2>conftest.er1
71992 grep -v '^ *+' conftest.er1 >conftest.err
71994 cat conftest.err >&5
71995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71996 (exit $ac_status); } && {
71997 test -z "$ac_c_werror_flag" ||
71998 test ! -s conftest.err
71999 } && test -s conftest$ac_exeext && {
72000 test "$cross_compiling" = yes ||
72001 $as_test_x conftest$ac_exeext
72003 eval "$as_ac_var=yes"
72005 $as_echo "$as_me: failed program was:" >&5
72006 sed 's/^/| /' conftest.$ac_ext >&5
72008 eval "$as_ac_var=no"
72011 rm -rf conftest.dSYM
72012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72013 conftest$ac_exeext conftest.$ac_ext
72015 ac_res=`eval 'as_val=${'$as_ac_var'}
72016 $as_echo "$as_val"'`
72017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72018 $as_echo "$ac_res" >&6; }
72019 as_val=`eval 'as_val=${'$as_ac_var'}
72020 $as_echo "$as_val"'`
72021 if test "x$as_val" = x""yes; then
72022 cat >>confdefs.h <<_ACEOF
72023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72025 ice_have_syslog=yes
72029 if test "${ice_have_syslog}" = yes; then
72030 { $as_echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
72031 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
72032 if test "${ice_cv_have_syslog_decl+set}" = set; then
72033 $as_echo_n "(cached) " >&6
72036 ice_cv_have_syslog_decl=no
72037 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72038 ice_re_word='(^|[^a-zA-Z0-9_])'
72039 for header in syslog.h; do
72040 # Check for ordinary declaration
72041 cat >conftest.$ac_ext <<_ACEOF
72044 cat confdefs.h >>conftest.$ac_ext
72045 cat >>conftest.$ac_ext <<_ACEOF
72046 /* end confdefs.h. */
72050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72051 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then
72052 ice_cv_have_syslog_decl=yes
72056 if test "$ice_cv_have_syslog_decl" = yes; then
72059 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72060 cat >conftest.$ac_ext <<_ACEOF
72063 cat confdefs.h >>conftest.$ac_ext
72064 cat >>conftest.$ac_ext <<_ACEOF
72065 /* end confdefs.h. */
72069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72070 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72071 ice_cv_have_syslog_decl=yes
72075 if test "$ice_cv_have_syslog_decl" = yes; then
72082 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
72083 $as_echo "$ice_cv_have_syslog_decl" >&6; }
72084 if test "$ice_cv_have_syslog_decl" = yes; then
72086 cat >>confdefs.h <<_ACEOF
72087 #define HAVE_SYSLOG_DECL 1
72096 for ac_func in system
72098 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72099 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72100 $as_echo_n "checking for $ac_func... " >&6; }
72101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72102 $as_echo_n "(cached) " >&6
72104 cat >conftest.$ac_ext <<_ACEOF
72107 cat confdefs.h >>conftest.$ac_ext
72108 cat >>conftest.$ac_ext <<_ACEOF
72109 /* end confdefs.h. */
72110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72112 #define $ac_func innocuous_$ac_func
72114 /* System header to define __stub macros and hopefully few prototypes,
72115 which can conflict with char $ac_func (); below.
72116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72117 <limits.h> exists even on freestanding compilers. */
72120 # include <limits.h>
72122 # include <assert.h>
72127 /* Override any GCC internal prototype to avoid an error.
72128 Use char because int might match the return type of a GCC
72129 builtin and then its argument prototype would still apply. */
72134 /* The GNU C library defines this for functions which it implements
72135 to always fail with ENOSYS. Some functions are actually named
72136 something starting with __ and the normal name is an alias. */
72137 #if defined __stub_$ac_func || defined __stub___$ac_func
72144 return $ac_func ();
72149 rm -f conftest.$ac_objext conftest$ac_exeext
72150 if { (ac_try="$ac_link"
72151 case "(($ac_try" in
72152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72153 *) ac_try_echo=$ac_try;;
72155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72156 $as_echo "$ac_try_echo") >&5
72157 (eval "$ac_link") 2>conftest.er1
72159 grep -v '^ *+' conftest.er1 >conftest.err
72161 cat conftest.err >&5
72162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72163 (exit $ac_status); } && {
72164 test -z "$ac_c_werror_flag" ||
72165 test ! -s conftest.err
72166 } && test -s conftest$ac_exeext && {
72167 test "$cross_compiling" = yes ||
72168 $as_test_x conftest$ac_exeext
72170 eval "$as_ac_var=yes"
72172 $as_echo "$as_me: failed program was:" >&5
72173 sed 's/^/| /' conftest.$ac_ext >&5
72175 eval "$as_ac_var=no"
72178 rm -rf conftest.dSYM
72179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72180 conftest$ac_exeext conftest.$ac_ext
72182 ac_res=`eval 'as_val=${'$as_ac_var'}
72183 $as_echo "$as_val"'`
72184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72185 $as_echo "$ac_res" >&6; }
72186 as_val=`eval 'as_val=${'$as_ac_var'}
72187 $as_echo "$as_val"'`
72188 if test "x$as_val" = x""yes; then
72189 cat >>confdefs.h <<_ACEOF
72190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72192 ice_have_system=yes
72196 if test "${ice_have_system}" = yes; then
72197 { $as_echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
72198 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
72199 if test "${ice_cv_have_system_decl+set}" = set; then
72200 $as_echo_n "(cached) " >&6
72203 ice_cv_have_system_decl=no
72204 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72205 ice_re_word='(^|[^a-zA-Z0-9_])'
72206 for header in stdlib.h; do
72207 # Check for ordinary declaration
72208 cat >conftest.$ac_ext <<_ACEOF
72211 cat confdefs.h >>conftest.$ac_ext
72212 cat >>conftest.$ac_ext <<_ACEOF
72213 /* end confdefs.h. */
72217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72218 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then
72219 ice_cv_have_system_decl=yes
72223 if test "$ice_cv_have_system_decl" = yes; then
72226 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72227 cat >conftest.$ac_ext <<_ACEOF
72230 cat confdefs.h >>conftest.$ac_ext
72231 cat >>conftest.$ac_ext <<_ACEOF
72232 /* end confdefs.h. */
72236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72237 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72238 ice_cv_have_system_decl=yes
72242 if test "$ice_cv_have_system_decl" = yes; then
72249 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
72250 $as_echo "$ice_cv_have_system_decl" >&6; }
72251 if test "$ice_cv_have_system_decl" = yes; then
72253 cat >>confdefs.h <<_ACEOF
72254 #define HAVE_SYSTEM_DECL 1
72263 for ac_func in time
72265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72266 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72267 $as_echo_n "checking for $ac_func... " >&6; }
72268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72269 $as_echo_n "(cached) " >&6
72271 cat >conftest.$ac_ext <<_ACEOF
72274 cat confdefs.h >>conftest.$ac_ext
72275 cat >>conftest.$ac_ext <<_ACEOF
72276 /* end confdefs.h. */
72277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72279 #define $ac_func innocuous_$ac_func
72281 /* System header to define __stub macros and hopefully few prototypes,
72282 which can conflict with char $ac_func (); below.
72283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72284 <limits.h> exists even on freestanding compilers. */
72287 # include <limits.h>
72289 # include <assert.h>
72294 /* Override any GCC internal prototype to avoid an error.
72295 Use char because int might match the return type of a GCC
72296 builtin and then its argument prototype would still apply. */
72301 /* The GNU C library defines this for functions which it implements
72302 to always fail with ENOSYS. Some functions are actually named
72303 something starting with __ and the normal name is an alias. */
72304 #if defined __stub_$ac_func || defined __stub___$ac_func
72311 return $ac_func ();
72316 rm -f conftest.$ac_objext conftest$ac_exeext
72317 if { (ac_try="$ac_link"
72318 case "(($ac_try" in
72319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72320 *) ac_try_echo=$ac_try;;
72322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72323 $as_echo "$ac_try_echo") >&5
72324 (eval "$ac_link") 2>conftest.er1
72326 grep -v '^ *+' conftest.er1 >conftest.err
72328 cat conftest.err >&5
72329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72330 (exit $ac_status); } && {
72331 test -z "$ac_c_werror_flag" ||
72332 test ! -s conftest.err
72333 } && test -s conftest$ac_exeext && {
72334 test "$cross_compiling" = yes ||
72335 $as_test_x conftest$ac_exeext
72337 eval "$as_ac_var=yes"
72339 $as_echo "$as_me: failed program was:" >&5
72340 sed 's/^/| /' conftest.$ac_ext >&5
72342 eval "$as_ac_var=no"
72345 rm -rf conftest.dSYM
72346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72347 conftest$ac_exeext conftest.$ac_ext
72349 ac_res=`eval 'as_val=${'$as_ac_var'}
72350 $as_echo "$as_val"'`
72351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72352 $as_echo "$ac_res" >&6; }
72353 as_val=`eval 'as_val=${'$as_ac_var'}
72354 $as_echo "$as_val"'`
72355 if test "x$as_val" = x""yes; then
72356 cat >>confdefs.h <<_ACEOF
72357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72363 if test "${ice_have_time}" = yes; then
72364 { $as_echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
72365 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
72366 if test "${ice_cv_have_time_decl+set}" = set; then
72367 $as_echo_n "(cached) " >&6
72370 ice_cv_have_time_decl=no
72371 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72372 ice_re_word='(^|[^a-zA-Z0-9_])'
72373 for header in time.h sys/time.h; do
72374 # Check for ordinary declaration
72375 cat >conftest.$ac_ext <<_ACEOF
72378 cat confdefs.h >>conftest.$ac_ext
72379 cat >>conftest.$ac_ext <<_ACEOF
72380 /* end confdefs.h. */
72384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72385 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then
72386 ice_cv_have_time_decl=yes
72390 if test "$ice_cv_have_time_decl" = yes; then
72393 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72394 cat >conftest.$ac_ext <<_ACEOF
72397 cat confdefs.h >>conftest.$ac_ext
72398 cat >>conftest.$ac_ext <<_ACEOF
72399 /* end confdefs.h. */
72403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72404 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72405 ice_cv_have_time_decl=yes
72409 if test "$ice_cv_have_time_decl" = yes; then
72416 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
72417 $as_echo "$ice_cv_have_time_decl" >&6; }
72418 if test "$ice_cv_have_time_decl" = yes; then
72420 cat >>confdefs.h <<_ACEOF
72421 #define HAVE_TIME_DECL 1
72428 ice_have_tolower=no
72430 for ac_func in tolower
72432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72433 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72434 $as_echo_n "checking for $ac_func... " >&6; }
72435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72436 $as_echo_n "(cached) " >&6
72438 cat >conftest.$ac_ext <<_ACEOF
72441 cat confdefs.h >>conftest.$ac_ext
72442 cat >>conftest.$ac_ext <<_ACEOF
72443 /* end confdefs.h. */
72444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72446 #define $ac_func innocuous_$ac_func
72448 /* System header to define __stub macros and hopefully few prototypes,
72449 which can conflict with char $ac_func (); below.
72450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72451 <limits.h> exists even on freestanding compilers. */
72454 # include <limits.h>
72456 # include <assert.h>
72461 /* Override any GCC internal prototype to avoid an error.
72462 Use char because int might match the return type of a GCC
72463 builtin and then its argument prototype would still apply. */
72468 /* The GNU C library defines this for functions which it implements
72469 to always fail with ENOSYS. Some functions are actually named
72470 something starting with __ and the normal name is an alias. */
72471 #if defined __stub_$ac_func || defined __stub___$ac_func
72478 return $ac_func ();
72483 rm -f conftest.$ac_objext conftest$ac_exeext
72484 if { (ac_try="$ac_link"
72485 case "(($ac_try" in
72486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72487 *) ac_try_echo=$ac_try;;
72489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72490 $as_echo "$ac_try_echo") >&5
72491 (eval "$ac_link") 2>conftest.er1
72493 grep -v '^ *+' conftest.er1 >conftest.err
72495 cat conftest.err >&5
72496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72497 (exit $ac_status); } && {
72498 test -z "$ac_c_werror_flag" ||
72499 test ! -s conftest.err
72500 } && test -s conftest$ac_exeext && {
72501 test "$cross_compiling" = yes ||
72502 $as_test_x conftest$ac_exeext
72504 eval "$as_ac_var=yes"
72506 $as_echo "$as_me: failed program was:" >&5
72507 sed 's/^/| /' conftest.$ac_ext >&5
72509 eval "$as_ac_var=no"
72512 rm -rf conftest.dSYM
72513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72514 conftest$ac_exeext conftest.$ac_ext
72516 ac_res=`eval 'as_val=${'$as_ac_var'}
72517 $as_echo "$as_val"'`
72518 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72519 $as_echo "$ac_res" >&6; }
72520 as_val=`eval 'as_val=${'$as_ac_var'}
72521 $as_echo "$as_val"'`
72522 if test "x$as_val" = x""yes; then
72523 cat >>confdefs.h <<_ACEOF
72524 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72526 ice_have_tolower=yes
72530 if test "${ice_have_tolower}" = yes; then
72531 { $as_echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
72532 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
72533 if test "${ice_cv_have_tolower_decl+set}" = set; then
72534 $as_echo_n "(cached) " >&6
72537 ice_cv_have_tolower_decl=no
72538 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72539 ice_re_word='(^|[^a-zA-Z0-9_])'
72540 for header in ctype.h; do
72541 # Check for ordinary declaration
72542 cat >conftest.$ac_ext <<_ACEOF
72545 cat confdefs.h >>conftest.$ac_ext
72546 cat >>conftest.$ac_ext <<_ACEOF
72547 /* end confdefs.h. */
72551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72552 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then
72553 ice_cv_have_tolower_decl=yes
72557 if test "$ice_cv_have_tolower_decl" = yes; then
72560 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72561 cat >conftest.$ac_ext <<_ACEOF
72564 cat confdefs.h >>conftest.$ac_ext
72565 cat >>conftest.$ac_ext <<_ACEOF
72566 /* end confdefs.h. */
72570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72571 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72572 ice_cv_have_tolower_decl=yes
72576 if test "$ice_cv_have_tolower_decl" = yes; then
72583 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
72584 $as_echo "$ice_cv_have_tolower_decl" >&6; }
72585 if test "$ice_cv_have_tolower_decl" = yes; then
72587 cat >>confdefs.h <<_ACEOF
72588 #define HAVE_TOLOWER_DECL 1
72595 ice_have_toupper=no
72597 for ac_func in toupper
72599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72600 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72601 $as_echo_n "checking for $ac_func... " >&6; }
72602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72603 $as_echo_n "(cached) " >&6
72605 cat >conftest.$ac_ext <<_ACEOF
72608 cat confdefs.h >>conftest.$ac_ext
72609 cat >>conftest.$ac_ext <<_ACEOF
72610 /* end confdefs.h. */
72611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72613 #define $ac_func innocuous_$ac_func
72615 /* System header to define __stub macros and hopefully few prototypes,
72616 which can conflict with char $ac_func (); below.
72617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72618 <limits.h> exists even on freestanding compilers. */
72621 # include <limits.h>
72623 # include <assert.h>
72628 /* Override any GCC internal prototype to avoid an error.
72629 Use char because int might match the return type of a GCC
72630 builtin and then its argument prototype would still apply. */
72635 /* The GNU C library defines this for functions which it implements
72636 to always fail with ENOSYS. Some functions are actually named
72637 something starting with __ and the normal name is an alias. */
72638 #if defined __stub_$ac_func || defined __stub___$ac_func
72645 return $ac_func ();
72650 rm -f conftest.$ac_objext conftest$ac_exeext
72651 if { (ac_try="$ac_link"
72652 case "(($ac_try" in
72653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72654 *) ac_try_echo=$ac_try;;
72656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72657 $as_echo "$ac_try_echo") >&5
72658 (eval "$ac_link") 2>conftest.er1
72660 grep -v '^ *+' conftest.er1 >conftest.err
72662 cat conftest.err >&5
72663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72664 (exit $ac_status); } && {
72665 test -z "$ac_c_werror_flag" ||
72666 test ! -s conftest.err
72667 } && test -s conftest$ac_exeext && {
72668 test "$cross_compiling" = yes ||
72669 $as_test_x conftest$ac_exeext
72671 eval "$as_ac_var=yes"
72673 $as_echo "$as_me: failed program was:" >&5
72674 sed 's/^/| /' conftest.$ac_ext >&5
72676 eval "$as_ac_var=no"
72679 rm -rf conftest.dSYM
72680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72681 conftest$ac_exeext conftest.$ac_ext
72683 ac_res=`eval 'as_val=${'$as_ac_var'}
72684 $as_echo "$as_val"'`
72685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72686 $as_echo "$ac_res" >&6; }
72687 as_val=`eval 'as_val=${'$as_ac_var'}
72688 $as_echo "$as_val"'`
72689 if test "x$as_val" = x""yes; then
72690 cat >>confdefs.h <<_ACEOF
72691 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72693 ice_have_toupper=yes
72697 if test "${ice_have_toupper}" = yes; then
72698 { $as_echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
72699 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
72700 if test "${ice_cv_have_toupper_decl+set}" = set; then
72701 $as_echo_n "(cached) " >&6
72704 ice_cv_have_toupper_decl=no
72705 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72706 ice_re_word='(^|[^a-zA-Z0-9_])'
72707 for header in ctype.h; do
72708 # Check for ordinary declaration
72709 cat >conftest.$ac_ext <<_ACEOF
72712 cat confdefs.h >>conftest.$ac_ext
72713 cat >>conftest.$ac_ext <<_ACEOF
72714 /* end confdefs.h. */
72718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72719 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then
72720 ice_cv_have_toupper_decl=yes
72724 if test "$ice_cv_have_toupper_decl" = yes; then
72727 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72728 cat >conftest.$ac_ext <<_ACEOF
72731 cat confdefs.h >>conftest.$ac_ext
72732 cat >>conftest.$ac_ext <<_ACEOF
72733 /* end confdefs.h. */
72737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72738 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72739 ice_cv_have_toupper_decl=yes
72743 if test "$ice_cv_have_toupper_decl" = yes; then
72750 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
72751 $as_echo "$ice_cv_have_toupper_decl" >&6; }
72752 if test "$ice_cv_have_toupper_decl" = yes; then
72754 cat >>confdefs.h <<_ACEOF
72755 #define HAVE_TOUPPER_DECL 1
72764 for ac_func in ungetc
72766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72767 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72768 $as_echo_n "checking for $ac_func... " >&6; }
72769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72770 $as_echo_n "(cached) " >&6
72772 cat >conftest.$ac_ext <<_ACEOF
72775 cat confdefs.h >>conftest.$ac_ext
72776 cat >>conftest.$ac_ext <<_ACEOF
72777 /* end confdefs.h. */
72778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72780 #define $ac_func innocuous_$ac_func
72782 /* System header to define __stub macros and hopefully few prototypes,
72783 which can conflict with char $ac_func (); below.
72784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72785 <limits.h> exists even on freestanding compilers. */
72788 # include <limits.h>
72790 # include <assert.h>
72795 /* Override any GCC internal prototype to avoid an error.
72796 Use char because int might match the return type of a GCC
72797 builtin and then its argument prototype would still apply. */
72802 /* The GNU C library defines this for functions which it implements
72803 to always fail with ENOSYS. Some functions are actually named
72804 something starting with __ and the normal name is an alias. */
72805 #if defined __stub_$ac_func || defined __stub___$ac_func
72812 return $ac_func ();
72817 rm -f conftest.$ac_objext conftest$ac_exeext
72818 if { (ac_try="$ac_link"
72819 case "(($ac_try" in
72820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72821 *) ac_try_echo=$ac_try;;
72823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72824 $as_echo "$ac_try_echo") >&5
72825 (eval "$ac_link") 2>conftest.er1
72827 grep -v '^ *+' conftest.er1 >conftest.err
72829 cat conftest.err >&5
72830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72831 (exit $ac_status); } && {
72832 test -z "$ac_c_werror_flag" ||
72833 test ! -s conftest.err
72834 } && test -s conftest$ac_exeext && {
72835 test "$cross_compiling" = yes ||
72836 $as_test_x conftest$ac_exeext
72838 eval "$as_ac_var=yes"
72840 $as_echo "$as_me: failed program was:" >&5
72841 sed 's/^/| /' conftest.$ac_ext >&5
72843 eval "$as_ac_var=no"
72846 rm -rf conftest.dSYM
72847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72848 conftest$ac_exeext conftest.$ac_ext
72850 ac_res=`eval 'as_val=${'$as_ac_var'}
72851 $as_echo "$as_val"'`
72852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72853 $as_echo "$ac_res" >&6; }
72854 as_val=`eval 'as_val=${'$as_ac_var'}
72855 $as_echo "$as_val"'`
72856 if test "x$as_val" = x""yes; then
72857 cat >>confdefs.h <<_ACEOF
72858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72860 ice_have_ungetc=yes
72864 if test "${ice_have_ungetc}" = yes; then
72865 { $as_echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
72866 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
72867 if test "${ice_cv_have_ungetc_decl+set}" = set; then
72868 $as_echo_n "(cached) " >&6
72871 ice_cv_have_ungetc_decl=no
72872 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72873 ice_re_word='(^|[^a-zA-Z0-9_])'
72874 for header in stdio.h; do
72875 # Check for ordinary declaration
72876 cat >conftest.$ac_ext <<_ACEOF
72879 cat confdefs.h >>conftest.$ac_ext
72880 cat >>conftest.$ac_ext <<_ACEOF
72881 /* end confdefs.h. */
72885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72886 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then
72887 ice_cv_have_ungetc_decl=yes
72891 if test "$ice_cv_have_ungetc_decl" = yes; then
72894 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72895 cat >conftest.$ac_ext <<_ACEOF
72898 cat confdefs.h >>conftest.$ac_ext
72899 cat >>conftest.$ac_ext <<_ACEOF
72900 /* end confdefs.h. */
72904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72905 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72906 ice_cv_have_ungetc_decl=yes
72910 if test "$ice_cv_have_ungetc_decl" = yes; then
72917 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
72918 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
72919 if test "$ice_cv_have_ungetc_decl" = yes; then
72921 cat >>confdefs.h <<_ACEOF
72922 #define HAVE_UNGETC_DECL 1
72929 for ac_func in unsetenv
72931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72932 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72933 $as_echo_n "checking for $ac_func... " >&6; }
72934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72935 $as_echo_n "(cached) " >&6
72937 cat >conftest.$ac_ext <<_ACEOF
72940 cat confdefs.h >>conftest.$ac_ext
72941 cat >>conftest.$ac_ext <<_ACEOF
72942 /* end confdefs.h. */
72943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72945 #define $ac_func innocuous_$ac_func
72947 /* System header to define __stub macros and hopefully few prototypes,
72948 which can conflict with char $ac_func (); below.
72949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72950 <limits.h> exists even on freestanding compilers. */
72953 # include <limits.h>
72955 # include <assert.h>
72960 /* Override any GCC internal prototype to avoid an error.
72961 Use char because int might match the return type of a GCC
72962 builtin and then its argument prototype would still apply. */
72967 /* The GNU C library defines this for functions which it implements
72968 to always fail with ENOSYS. Some functions are actually named
72969 something starting with __ and the normal name is an alias. */
72970 #if defined __stub_$ac_func || defined __stub___$ac_func
72977 return $ac_func ();
72982 rm -f conftest.$ac_objext conftest$ac_exeext
72983 if { (ac_try="$ac_link"
72984 case "(($ac_try" in
72985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72986 *) ac_try_echo=$ac_try;;
72988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72989 $as_echo "$ac_try_echo") >&5
72990 (eval "$ac_link") 2>conftest.er1
72992 grep -v '^ *+' conftest.er1 >conftest.err
72994 cat conftest.err >&5
72995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72996 (exit $ac_status); } && {
72997 test -z "$ac_c_werror_flag" ||
72998 test ! -s conftest.err
72999 } && test -s conftest$ac_exeext && {
73000 test "$cross_compiling" = yes ||
73001 $as_test_x conftest$ac_exeext
73003 eval "$as_ac_var=yes"
73005 $as_echo "$as_me: failed program was:" >&5
73006 sed 's/^/| /' conftest.$ac_ext >&5
73008 eval "$as_ac_var=no"
73011 rm -rf conftest.dSYM
73012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73013 conftest$ac_exeext conftest.$ac_ext
73015 ac_res=`eval 'as_val=${'$as_ac_var'}
73016 $as_echo "$as_val"'`
73017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73018 $as_echo "$ac_res" >&6; }
73019 as_val=`eval 'as_val=${'$as_ac_var'}
73020 $as_echo "$as_val"'`
73021 if test "x$as_val" = x""yes; then
73022 cat >>confdefs.h <<_ACEOF
73023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73030 ice_have_vfprintf=no
73032 for ac_func in vfprintf
73034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73035 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73036 $as_echo_n "checking for $ac_func... " >&6; }
73037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73038 $as_echo_n "(cached) " >&6
73040 cat >conftest.$ac_ext <<_ACEOF
73043 cat confdefs.h >>conftest.$ac_ext
73044 cat >>conftest.$ac_ext <<_ACEOF
73045 /* end confdefs.h. */
73046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
73048 #define $ac_func innocuous_$ac_func
73050 /* System header to define __stub macros and hopefully few prototypes,
73051 which can conflict with char $ac_func (); below.
73052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73053 <limits.h> exists even on freestanding compilers. */
73056 # include <limits.h>
73058 # include <assert.h>
73063 /* Override any GCC internal prototype to avoid an error.
73064 Use char because int might match the return type of a GCC
73065 builtin and then its argument prototype would still apply. */
73070 /* The GNU C library defines this for functions which it implements
73071 to always fail with ENOSYS. Some functions are actually named
73072 something starting with __ and the normal name is an alias. */
73073 #if defined __stub_$ac_func || defined __stub___$ac_func
73080 return $ac_func ();
73085 rm -f conftest.$ac_objext conftest$ac_exeext
73086 if { (ac_try="$ac_link"
73087 case "(($ac_try" in
73088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73089 *) ac_try_echo=$ac_try;;
73091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73092 $as_echo "$ac_try_echo") >&5
73093 (eval "$ac_link") 2>conftest.er1
73095 grep -v '^ *+' conftest.er1 >conftest.err
73097 cat conftest.err >&5
73098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73099 (exit $ac_status); } && {
73100 test -z "$ac_c_werror_flag" ||
73101 test ! -s conftest.err
73102 } && test -s conftest$ac_exeext && {
73103 test "$cross_compiling" = yes ||
73104 $as_test_x conftest$ac_exeext
73106 eval "$as_ac_var=yes"
73108 $as_echo "$as_me: failed program was:" >&5
73109 sed 's/^/| /' conftest.$ac_ext >&5
73111 eval "$as_ac_var=no"
73114 rm -rf conftest.dSYM
73115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73116 conftest$ac_exeext conftest.$ac_ext
73118 ac_res=`eval 'as_val=${'$as_ac_var'}
73119 $as_echo "$as_val"'`
73120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73121 $as_echo "$ac_res" >&6; }
73122 as_val=`eval 'as_val=${'$as_ac_var'}
73123 $as_echo "$as_val"'`
73124 if test "x$as_val" = x""yes; then
73125 cat >>confdefs.h <<_ACEOF
73126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73128 ice_have_vfprintf=yes
73132 if test "${ice_have_vfprintf}" = yes; then
73133 { $as_echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
73134 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
73135 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
73136 $as_echo_n "(cached) " >&6
73139 ice_cv_have_vfprintf_decl=no
73140 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73141 ice_re_word='(^|[^a-zA-Z0-9_])'
73142 for header in stdio.h stdlib.h; do
73143 # Check for ordinary declaration
73144 cat >conftest.$ac_ext <<_ACEOF
73147 cat confdefs.h >>conftest.$ac_ext
73148 cat >>conftest.$ac_ext <<_ACEOF
73149 /* end confdefs.h. */
73153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73154 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then
73155 ice_cv_have_vfprintf_decl=yes
73159 if test "$ice_cv_have_vfprintf_decl" = yes; then
73162 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73163 cat >conftest.$ac_ext <<_ACEOF
73166 cat confdefs.h >>conftest.$ac_ext
73167 cat >>conftest.$ac_ext <<_ACEOF
73168 /* end confdefs.h. */
73172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73173 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73174 ice_cv_have_vfprintf_decl=yes
73178 if test "$ice_cv_have_vfprintf_decl" = yes; then
73185 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
73186 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
73187 if test "$ice_cv_have_vfprintf_decl" = yes; then
73189 cat >>confdefs.h <<_ACEOF
73190 #define HAVE_VFPRINTF_DECL 1
73197 ice_have_vprintf=no
73199 for ac_func in vprintf
73201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73202 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73203 $as_echo_n "checking for $ac_func... " >&6; }
73204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73205 $as_echo_n "(cached) " >&6
73207 cat >conftest.$ac_ext <<_ACEOF
73210 cat confdefs.h >>conftest.$ac_ext
73211 cat >>conftest.$ac_ext <<_ACEOF
73212 /* end confdefs.h. */
73213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
73215 #define $ac_func innocuous_$ac_func
73217 /* System header to define __stub macros and hopefully few prototypes,
73218 which can conflict with char $ac_func (); below.
73219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73220 <limits.h> exists even on freestanding compilers. */
73223 # include <limits.h>
73225 # include <assert.h>
73230 /* Override any GCC internal prototype to avoid an error.
73231 Use char because int might match the return type of a GCC
73232 builtin and then its argument prototype would still apply. */
73237 /* The GNU C library defines this for functions which it implements
73238 to always fail with ENOSYS. Some functions are actually named
73239 something starting with __ and the normal name is an alias. */
73240 #if defined __stub_$ac_func || defined __stub___$ac_func
73247 return $ac_func ();
73252 rm -f conftest.$ac_objext conftest$ac_exeext
73253 if { (ac_try="$ac_link"
73254 case "(($ac_try" in
73255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73256 *) ac_try_echo=$ac_try;;
73258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73259 $as_echo "$ac_try_echo") >&5
73260 (eval "$ac_link") 2>conftest.er1
73262 grep -v '^ *+' conftest.er1 >conftest.err
73264 cat conftest.err >&5
73265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73266 (exit $ac_status); } && {
73267 test -z "$ac_c_werror_flag" ||
73268 test ! -s conftest.err
73269 } && test -s conftest$ac_exeext && {
73270 test "$cross_compiling" = yes ||
73271 $as_test_x conftest$ac_exeext
73273 eval "$as_ac_var=yes"
73275 $as_echo "$as_me: failed program was:" >&5
73276 sed 's/^/| /' conftest.$ac_ext >&5
73278 eval "$as_ac_var=no"
73281 rm -rf conftest.dSYM
73282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73283 conftest$ac_exeext conftest.$ac_ext
73285 ac_res=`eval 'as_val=${'$as_ac_var'}
73286 $as_echo "$as_val"'`
73287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73288 $as_echo "$ac_res" >&6; }
73289 as_val=`eval 'as_val=${'$as_ac_var'}
73290 $as_echo "$as_val"'`
73291 if test "x$as_val" = x""yes; then
73292 cat >>confdefs.h <<_ACEOF
73293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73295 ice_have_vprintf=yes
73299 if test "${ice_have_vprintf}" = yes; then
73300 { $as_echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
73301 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
73302 if test "${ice_cv_have_vprintf_decl+set}" = set; then
73303 $as_echo_n "(cached) " >&6
73306 ice_cv_have_vprintf_decl=no
73307 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73308 ice_re_word='(^|[^a-zA-Z0-9_])'
73309 for header in stdio.h stdlib.h; do
73310 # Check for ordinary declaration
73311 cat >conftest.$ac_ext <<_ACEOF
73314 cat confdefs.h >>conftest.$ac_ext
73315 cat >>conftest.$ac_ext <<_ACEOF
73316 /* end confdefs.h. */
73320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73321 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then
73322 ice_cv_have_vprintf_decl=yes
73326 if test "$ice_cv_have_vprintf_decl" = yes; then
73329 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73330 cat >conftest.$ac_ext <<_ACEOF
73333 cat confdefs.h >>conftest.$ac_ext
73334 cat >>conftest.$ac_ext <<_ACEOF
73335 /* end confdefs.h. */
73339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73340 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73341 ice_cv_have_vprintf_decl=yes
73345 if test "$ice_cv_have_vprintf_decl" = yes; then
73352 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
73353 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
73354 if test "$ice_cv_have_vprintf_decl" = yes; then
73356 cat >>confdefs.h <<_ACEOF
73357 #define HAVE_VPRINTF_DECL 1
73363 { $as_echo "$as_me:$LINENO: checking for wait4" >&5
73364 $as_echo_n "checking for wait4... " >&6; }
73365 if test "${ac_cv_func_wait4+set}" = set; then
73366 $as_echo_n "(cached) " >&6
73368 cat >conftest.$ac_ext <<_ACEOF
73371 cat confdefs.h >>conftest.$ac_ext
73372 cat >>conftest.$ac_ext <<_ACEOF
73373 /* end confdefs.h. */
73374 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
73375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
73376 #define wait4 innocuous_wait4
73378 /* System header to define __stub macros and hopefully few prototypes,
73379 which can conflict with char wait4 (); below.
73380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73381 <limits.h> exists even on freestanding compilers. */
73384 # include <limits.h>
73386 # include <assert.h>
73391 /* Override any GCC internal prototype to avoid an error.
73392 Use char because int might match the return type of a GCC
73393 builtin and then its argument prototype would still apply. */
73398 /* The GNU C library defines this for functions which it implements
73399 to always fail with ENOSYS. Some functions are actually named
73400 something starting with __ and the normal name is an alias. */
73401 #if defined __stub_wait4 || defined __stub___wait4
73413 rm -f conftest.$ac_objext conftest$ac_exeext
73414 if { (ac_try="$ac_link"
73415 case "(($ac_try" in
73416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73417 *) ac_try_echo=$ac_try;;
73419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73420 $as_echo "$ac_try_echo") >&5
73421 (eval "$ac_link") 2>conftest.er1
73423 grep -v '^ *+' conftest.er1 >conftest.err
73425 cat conftest.err >&5
73426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73427 (exit $ac_status); } && {
73428 test -z "$ac_c_werror_flag" ||
73429 test ! -s conftest.err
73430 } && test -s conftest$ac_exeext && {
73431 test "$cross_compiling" = yes ||
73432 $as_test_x conftest$ac_exeext
73434 ac_cv_func_wait4=yes
73436 $as_echo "$as_me: failed program was:" >&5
73437 sed 's/^/| /' conftest.$ac_ext >&5
73439 ac_cv_func_wait4=no
73442 rm -rf conftest.dSYM
73443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73444 conftest$ac_exeext conftest.$ac_ext
73446 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
73447 $as_echo "$ac_cv_func_wait4" >&6; }
73452 for ac_func in writev
73454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73455 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73456 $as_echo_n "checking for $ac_func... " >&6; }
73457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73458 $as_echo_n "(cached) " >&6
73460 cat >conftest.$ac_ext <<_ACEOF
73463 cat confdefs.h >>conftest.$ac_ext
73464 cat >>conftest.$ac_ext <<_ACEOF
73465 /* end confdefs.h. */
73466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
73468 #define $ac_func innocuous_$ac_func
73470 /* System header to define __stub macros and hopefully few prototypes,
73471 which can conflict with char $ac_func (); below.
73472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73473 <limits.h> exists even on freestanding compilers. */
73476 # include <limits.h>
73478 # include <assert.h>
73483 /* Override any GCC internal prototype to avoid an error.
73484 Use char because int might match the return type of a GCC
73485 builtin and then its argument prototype would still apply. */
73490 /* The GNU C library defines this for functions which it implements
73491 to always fail with ENOSYS. Some functions are actually named
73492 something starting with __ and the normal name is an alias. */
73493 #if defined __stub_$ac_func || defined __stub___$ac_func
73500 return $ac_func ();
73505 rm -f conftest.$ac_objext conftest$ac_exeext
73506 if { (ac_try="$ac_link"
73507 case "(($ac_try" in
73508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73509 *) ac_try_echo=$ac_try;;
73511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73512 $as_echo "$ac_try_echo") >&5
73513 (eval "$ac_link") 2>conftest.er1
73515 grep -v '^ *+' conftest.er1 >conftest.err
73517 cat conftest.err >&5
73518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73519 (exit $ac_status); } && {
73520 test -z "$ac_c_werror_flag" ||
73521 test ! -s conftest.err
73522 } && test -s conftest$ac_exeext && {
73523 test "$cross_compiling" = yes ||
73524 $as_test_x conftest$ac_exeext
73526 eval "$as_ac_var=yes"
73528 $as_echo "$as_me: failed program was:" >&5
73529 sed 's/^/| /' conftest.$ac_ext >&5
73531 eval "$as_ac_var=no"
73534 rm -rf conftest.dSYM
73535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73536 conftest$ac_exeext conftest.$ac_ext
73538 ac_res=`eval 'as_val=${'$as_ac_var'}
73539 $as_echo "$as_val"'`
73540 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73541 $as_echo "$ac_res" >&6; }
73542 as_val=`eval 'as_val=${'$as_ac_var'}
73543 $as_echo "$as_val"'`
73544 if test "x$as_val" = x""yes; then
73545 cat >>confdefs.h <<_ACEOF
73546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73548 ice_have_writev=yes
73552 if test "${ice_have_writev}" = yes; then
73553 { $as_echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
73554 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
73555 if test "${ice_cv_have_writev_decl+set}" = set; then
73556 $as_echo_n "(cached) " >&6
73559 ice_cv_have_writev_decl=no
73560 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73561 ice_re_word='(^|[^a-zA-Z0-9_])'
73562 for header in unistd.h sys/uio.h; do
73563 # Check for ordinary declaration
73564 cat >conftest.$ac_ext <<_ACEOF
73567 cat confdefs.h >>conftest.$ac_ext
73568 cat >>conftest.$ac_ext <<_ACEOF
73569 /* end confdefs.h. */
73573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73574 $EGREP "${ice_re_word}writev[ ]*\(" >/dev/null 2>&1; then
73575 ice_cv_have_writev_decl=yes
73579 if test "$ice_cv_have_writev_decl" = yes; then
73582 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73583 cat >conftest.$ac_ext <<_ACEOF
73586 cat confdefs.h >>conftest.$ac_ext
73587 cat >>conftest.$ac_ext <<_ACEOF
73588 /* end confdefs.h. */
73592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73593 $EGREP "${ice_re_word}writev[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73594 ice_cv_have_writev_decl=yes
73598 if test "$ice_cv_have_writev_decl" = yes; then
73605 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
73606 $as_echo "$ice_cv_have_writev_decl" >&6; }
73607 if test "$ice_cv_have_writev_decl" = yes; then
73609 cat >>confdefs.h <<_ACEOF
73610 #define HAVE_WRITEV_DECL 1
73617 ice_have_strcasecmp=no
73619 for ac_func in strcasecmp
73621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73623 $as_echo_n "checking for $ac_func... " >&6; }
73624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73625 $as_echo_n "(cached) " >&6
73627 cat >conftest.$ac_ext <<_ACEOF
73630 cat confdefs.h >>conftest.$ac_ext
73631 cat >>conftest.$ac_ext <<_ACEOF
73632 /* end confdefs.h. */
73633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
73635 #define $ac_func innocuous_$ac_func
73637 /* System header to define __stub macros and hopefully few prototypes,
73638 which can conflict with char $ac_func (); below.
73639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73640 <limits.h> exists even on freestanding compilers. */
73643 # include <limits.h>
73645 # include <assert.h>
73650 /* Override any GCC internal prototype to avoid an error.
73651 Use char because int might match the return type of a GCC
73652 builtin and then its argument prototype would still apply. */
73657 /* The GNU C library defines this for functions which it implements
73658 to always fail with ENOSYS. Some functions are actually named
73659 something starting with __ and the normal name is an alias. */
73660 #if defined __stub_$ac_func || defined __stub___$ac_func
73667 return $ac_func ();
73672 rm -f conftest.$ac_objext conftest$ac_exeext
73673 if { (ac_try="$ac_link"
73674 case "(($ac_try" in
73675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73676 *) ac_try_echo=$ac_try;;
73678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73679 $as_echo "$ac_try_echo") >&5
73680 (eval "$ac_link") 2>conftest.er1
73682 grep -v '^ *+' conftest.er1 >conftest.err
73684 cat conftest.err >&5
73685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73686 (exit $ac_status); } && {
73687 test -z "$ac_c_werror_flag" ||
73688 test ! -s conftest.err
73689 } && test -s conftest$ac_exeext && {
73690 test "$cross_compiling" = yes ||
73691 $as_test_x conftest$ac_exeext
73693 eval "$as_ac_var=yes"
73695 $as_echo "$as_me: failed program was:" >&5
73696 sed 's/^/| /' conftest.$ac_ext >&5
73698 eval "$as_ac_var=no"
73701 rm -rf conftest.dSYM
73702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73703 conftest$ac_exeext conftest.$ac_ext
73705 ac_res=`eval 'as_val=${'$as_ac_var'}
73706 $as_echo "$as_val"'`
73707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73708 $as_echo "$ac_res" >&6; }
73709 as_val=`eval 'as_val=${'$as_ac_var'}
73710 $as_echo "$as_val"'`
73711 if test "x$as_val" = x""yes; then
73712 cat >>confdefs.h <<_ACEOF
73713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73715 ice_have_strcasecmp=yes
73719 if test "${ice_have_strcasecmp}" = yes; then
73720 { $as_echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
73721 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
73722 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
73723 $as_echo_n "(cached) " >&6
73726 ice_cv_have_strcasecmp_decl=no
73727 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73728 ice_re_word='(^|[^a-zA-Z0-9_])'
73729 for header in string.h strings.h; do
73730 # Check for ordinary declaration
73731 cat >conftest.$ac_ext <<_ACEOF
73734 cat confdefs.h >>conftest.$ac_ext
73735 cat >>conftest.$ac_ext <<_ACEOF
73736 /* end confdefs.h. */
73740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73741 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then
73742 ice_cv_have_strcasecmp_decl=yes
73746 if test "$ice_cv_have_strcasecmp_decl" = yes; then
73749 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73750 cat >conftest.$ac_ext <<_ACEOF
73753 cat confdefs.h >>conftest.$ac_ext
73754 cat >>conftest.$ac_ext <<_ACEOF
73755 /* end confdefs.h. */
73759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73760 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73761 ice_cv_have_strcasecmp_decl=yes
73765 if test "$ice_cv_have_strcasecmp_decl" = yes; then
73772 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
73773 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
73774 if test "$ice_cv_have_strcasecmp_decl" = yes; then
73776 cat >>confdefs.h <<_ACEOF
73777 #define HAVE_STRCASECMP_DECL 1
73785 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amar-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile config/Makefile device-src/Makefile application-src/Makefile example/Makefile gnulib/Makefile installcheck/Makefile man/Makefile ndmp-src/Makefile oldrecover-src/Makefile packaging/Makefile perl/amglue/Makefile perl/Makefile po/Makefile recover-src/Makefile server-src/Makefile xfer-src/Makefile"
73788 cat >confcache <<\_ACEOF
73789 # This file is a shell script that caches the results of configure
73790 # tests run on this system so they can be shared between configure
73791 # scripts and configure runs, see configure's option --config-cache.
73792 # It is not useful on other systems. If it contains results you don't
73793 # want to keep, you may remove or edit it.
73795 # config.status only pays attention to the cache file if you give it
73796 # the --recheck option to rerun configure.
73798 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73799 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73800 # following values.
73804 # The following way of writing the cache mishandles newlines in values,
73805 # but we know of no workaround that is simple, portable, and efficient.
73806 # So, we kill variables containing newlines.
73807 # Ultrix sh set writes to stderr and can't be redirected directly,
73808 # and sets the high bit in the cache file unless we assign to the vars.
73810 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
73811 eval ac_val=\$$ac_var
73815 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
73816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
73819 _ | IFS | as_nl) ;; #(
73820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
73821 *) $as_unset $ac_var ;;
73827 case $as_nl`(ac_space=' '; set) 2>&1` in #(
73828 *${as_nl}ac_space=\ *)
73829 # `set' does not quote correctly, so add quotes (double-quote
73830 # substitution turns \\\\ into \\, and sed turns \\ into \).
73833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73836 # `set' quotes correctly as required by POSIX, so do not add quotes.
73837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
73846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73848 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73850 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
73851 if test -w "$cache_file"; then
73852 test "x$cache_file" != "x/dev/null" &&
73853 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
73854 $as_echo "$as_me: updating cache $cache_file" >&6;}
73855 cat confcache >$cache_file
73857 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
73858 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
73863 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73864 # Let make expand exec_prefix.
73865 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73867 DEFS=-DHAVE_CONFIG_H
73871 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73872 # 1. Remove the extension, and $U if already installed.
73873 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
73874 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
73875 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
73876 # will be set to the directory where LIBOBJS objects are built.
73877 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
73878 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
73880 LIBOBJS=$ac_libobjs
73882 LTLIBOBJS=$ac_ltlibobjs
73885 if test -n "$EXEEXT"; then
73887 am__EXEEXT_FALSE='#'
73889 am__EXEEXT_TRUE='#'
73893 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
73894 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
73895 Usually this means the macro was only invoked conditionally." >&5
73896 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
73897 Usually this means the macro was only invoked conditionally." >&2;}
73898 { (exit 1); exit 1; }; }
73900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
73901 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
73902 Usually this means the macro was only invoked conditionally." >&5
73903 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
73904 Usually this means the macro was only invoked conditionally." >&2;}
73905 { (exit 1); exit 1; }; }
73907 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
73908 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
73909 Usually this means the macro was only invoked conditionally." >&5
73910 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
73911 Usually this means the macro was only invoked conditionally." >&2;}
73912 { (exit 1); exit 1; }; }
73917 if test -n "$gl_LIBOBJS"; then
73918 # Remove the extension.
73919 sed_drop_objext='s/\.o$//;s/\.obj$//'
73920 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
73921 gl_libobjs="$gl_libobjs $i.$ac_objext"
73922 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
73925 gl_LIBOBJS=$gl_libobjs
73927 gl_LTLIBOBJS=$gl_ltlibobjs
73933 if test -n "$gltests_LIBOBJS"; then
73934 # Remove the extension.
73935 sed_drop_objext='s/\.o$//;s/\.obj$//'
73936 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
73937 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
73938 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
73941 gltests_LIBOBJS=$gltests_libobjs
73943 gltests_LTLIBOBJS=$gltests_ltlibobjs
73946 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
73947 { { $as_echo "$as_me:$LINENO: error: conditional \"CHECK_USERID\" was never defined.
73948 Usually this means the macro was only invoked conditionally." >&5
73949 $as_echo "$as_me: error: conditional \"CHECK_USERID\" was never defined.
73950 Usually this means the macro was only invoked conditionally." >&2;}
73951 { (exit 1); exit 1; }; }
73953 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
73954 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
73955 Usually this means the macro was only invoked conditionally." >&5
73956 $as_echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
73957 Usually this means the macro was only invoked conditionally." >&2;}
73958 { (exit 1); exit 1; }; }
73960 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
73961 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
73962 Usually this means the macro was only invoked conditionally." >&5
73963 $as_echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
73964 Usually this means the macro was only invoked conditionally." >&2;}
73965 { (exit 1); exit 1; }; }
73967 if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
73968 { { $as_echo "$as_me:$LINENO: error: conditional \"SYNTAX_CHECKS\" was never defined.
73969 Usually this means the macro was only invoked conditionally." >&5
73970 $as_echo "$as_me: error: conditional \"SYNTAX_CHECKS\" was never defined.
73971 Usually this means the macro was only invoked conditionally." >&2;}
73972 { (exit 1); exit 1; }; }
73974 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
73975 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
73976 Usually this means the macro was only invoked conditionally." >&5
73977 $as_echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
73978 Usually this means the macro was only invoked conditionally." >&2;}
73979 { (exit 1); exit 1; }; }
73981 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
73982 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
73983 Usually this means the macro was only invoked conditionally." >&5
73984 $as_echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
73985 Usually this means the macro was only invoked conditionally." >&2;}
73986 { (exit 1); exit 1; }; }
73988 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
73989 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
73990 Usually this means the macro was only invoked conditionally." >&5
73991 $as_echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
73992 Usually this means the macro was only invoked conditionally." >&2;}
73993 { (exit 1); exit 1; }; }
73995 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
73996 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
73997 Usually this means the macro was only invoked conditionally." >&5
73998 $as_echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
73999 Usually this means the macro was only invoked conditionally." >&2;}
74000 { (exit 1); exit 1; }; }
74002 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
74003 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_NDMP\" was never defined.
74004 Usually this means the macro was only invoked conditionally." >&5
74005 $as_echo "$as_me: error: conditional \"WANT_NDMP\" was never defined.
74006 Usually this means the macro was only invoked conditionally." >&2;}
74007 { (exit 1); exit 1; }; }
74009 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
74010 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
74011 Usually this means the macro was only invoked conditionally." >&5
74012 $as_echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
74013 Usually this means the macro was only invoked conditionally." >&2;}
74014 { (exit 1); exit 1; }; }
74016 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
74017 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
74018 Usually this means the macro was only invoked conditionally." >&5
74019 $as_echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
74020 Usually this means the macro was only invoked conditionally." >&2;}
74021 { (exit 1); exit 1; }; }
74023 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
74024 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
74025 Usually this means the macro was only invoked conditionally." >&5
74026 $as_echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
74027 Usually this means the macro was only invoked conditionally." >&2;}
74028 { (exit 1); exit 1; }; }
74030 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
74031 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
74032 Usually this means the macro was only invoked conditionally." >&5
74033 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
74034 Usually this means the macro was only invoked conditionally." >&2;}
74035 { (exit 1); exit 1; }; }
74037 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
74038 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
74039 Usually this means the macro was only invoked conditionally." >&5
74040 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
74041 Usually this means the macro was only invoked conditionally." >&2;}
74042 { (exit 1); exit 1; }; }
74044 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
74045 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
74046 Usually this means the macro was only invoked conditionally." >&5
74047 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
74048 Usually this means the macro was only invoked conditionally." >&2;}
74049 { (exit 1); exit 1; }; }
74051 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
74052 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
74053 Usually this means the macro was only invoked conditionally." >&5
74054 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
74055 Usually this means the macro was only invoked conditionally." >&2;}
74056 { (exit 1); exit 1; }; }
74058 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
74059 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
74060 Usually this means the macro was only invoked conditionally." >&5
74061 $as_echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
74062 Usually this means the macro was only invoked conditionally." >&2;}
74063 { (exit 1); exit 1; }; }
74065 if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
74066 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
74067 Usually this means the macro was only invoked conditionally." >&5
74068 $as_echo "$as_me: error: conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
74069 Usually this means the macro was only invoked conditionally." >&2;}
74070 { (exit 1); exit 1; }; }
74072 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
74073 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
74074 Usually this means the macro was only invoked conditionally." >&5
74075 $as_echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
74076 Usually this means the macro was only invoked conditionally." >&2;}
74077 { (exit 1); exit 1; }; }
74079 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
74080 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
74081 Usually this means the macro was only invoked conditionally." >&5
74082 $as_echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
74083 Usually this means the macro was only invoked conditionally." >&2;}
74084 { (exit 1); exit 1; }; }
74086 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
74087 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DVDRW_DEVICE\" was never defined.
74088 Usually this means the macro was only invoked conditionally." >&5
74089 $as_echo "$as_me: error: conditional \"WANT_DVDRW_DEVICE\" was never defined.
74090 Usually this means the macro was only invoked conditionally." >&2;}
74091 { (exit 1); exit 1; }; }
74093 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
74094 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_NDMP_DEVICE\" was never defined.
74095 Usually this means the macro was only invoked conditionally." >&5
74096 $as_echo "$as_me: error: conditional \"WANT_NDMP_DEVICE\" was never defined.
74097 Usually this means the macro was only invoked conditionally." >&2;}
74098 { (exit 1); exit 1; }; }
74100 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
74101 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
74102 Usually this means the macro was only invoked conditionally." >&5
74103 $as_echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
74104 Usually this means the macro was only invoked conditionally." >&2;}
74105 { (exit 1); exit 1; }; }
74107 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
74108 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
74109 Usually this means the macro was only invoked conditionally." >&5
74110 $as_echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
74111 Usually this means the macro was only invoked conditionally." >&2;}
74112 { (exit 1); exit 1; }; }
74114 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
74115 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
74116 Usually this means the macro was only invoked conditionally." >&5
74117 $as_echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
74118 Usually this means the macro was only invoked conditionally." >&2;}
74119 { (exit 1); exit 1; }; }
74121 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
74122 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
74123 Usually this means the macro was only invoked conditionally." >&5
74124 $as_echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
74125 Usually this means the macro was only invoked conditionally." >&2;}
74126 { (exit 1); exit 1; }; }
74128 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
74129 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
74130 Usually this means the macro was only invoked conditionally." >&5
74131 $as_echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
74132 Usually this means the macro was only invoked conditionally." >&2;}
74133 { (exit 1); exit 1; }; }
74135 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
74136 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
74137 Usually this means the macro was only invoked conditionally." >&5
74138 $as_echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
74139 Usually this means the macro was only invoked conditionally." >&2;}
74140 { (exit 1); exit 1; }; }
74142 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
74143 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
74144 Usually this means the macro was only invoked conditionally." >&5
74145 $as_echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
74146 Usually this means the macro was only invoked conditionally." >&2;}
74147 { (exit 1); exit 1; }; }
74150 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
74151 { { $as_echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
74152 Usually this means the macro was only invoked conditionally." >&5
74153 $as_echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
74154 Usually this means the macro was only invoked conditionally." >&2;}
74155 { (exit 1); exit 1; }; }
74158 : ${CONFIG_STATUS=./config.status}
74160 ac_clean_files_save=$ac_clean_files
74161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
74162 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
74163 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
74164 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74166 # Generated by $as_me.
74167 # Run this file to recreate the current configuration.
74168 # Compiler output produced by configure, useful for debugging
74169 # configure, is in config.log if it exists.
74172 ac_cs_recheck=false
74174 SHELL=\${CONFIG_SHELL-$SHELL}
74177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74178 ## --------------------- ##
74179 ## M4sh Initialization. ##
74180 ## --------------------- ##
74182 # Be more Bourne compatible
74183 DUALCASE=1; export DUALCASE # for MKS sh
74184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
74187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
74188 # is contrary to our usage. Disable this feature.
74189 alias -g '${1+"$@"}'='"$@"'
74190 setopt NO_GLOB_SUBST
74192 case `(set -o) 2>/dev/null` in
74193 *posix*) set -o posix ;;
74202 # Avoid depending upon Character Ranges.
74203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
74204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
74205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
74206 as_cr_digits='0123456789'
74207 as_cr_alnum=$as_cr_Letters$as_cr_digits
74212 # Printing a long string crashes Solaris 7 /usr/bin/printf.
74213 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
74214 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
74215 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
74216 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
74217 as_echo='printf %s\n'
74218 as_echo_n='printf %s'
74220 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74221 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
74222 as_echo_n='/usr/ucb/echo -n'
74224 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
74225 as_echo_n_body='eval
74229 expr "X$arg" : "X\\(.*\\)$as_nl";
74230 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
74232 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
74234 export as_echo_n_body
74235 as_echo_n='sh -c $as_echo_n_body as_echo'
74237 export as_echo_body
74238 as_echo='sh -c $as_echo_body as_echo'
74241 # The user is always right.
74242 if test "${PATH_SEPARATOR+set}" != set; then
74244 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
74245 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
74250 # Support unset when possible.
74251 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
74259 # We need space, tab and new line, in precisely that order. Quoting is
74260 # there to prevent editors from complaining about space-tab.
74261 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
74262 # splitting by setting IFS to empty value.)
74265 # Find who we are. Look in the path if we contain no directory separator.
74267 *[\\/]* ) as_myself=$0 ;;
74268 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74269 for as_dir in $PATH
74272 test -z "$as_dir" && as_dir=.
74273 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
74279 # We did not find ourselves, most probably we were run as `sh COMMAND'
74280 # in which case we are not to be found in the path.
74281 if test "x$as_myself" = x; then
74284 if test ! -f "$as_myself"; then
74285 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
74286 { (exit 1); exit 1; }
74289 # Work around bugs in pre-3.0 UWIN ksh.
74290 for as_var in ENV MAIL MAILPATH
74291 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
74303 # Required to use basename.
74304 if expr a : '\(a\)' >/dev/null 2>&1 &&
74305 test "X`expr 00001 : '.*\(...\)'`" = X001; then
74311 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
74312 as_basename=basename
74318 # Name of the executable.
74319 as_me=`$as_basename -- "$0" ||
74320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74321 X"$0" : 'X\(//\)$' \| \
74322 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
74324 sed '/^.*\/\([^/][^/]*\)\/*$/{
74343 as_lineno_1=$LINENO
74344 as_lineno_2=$LINENO
74345 test "x$as_lineno_1" != "x$as_lineno_2" &&
74346 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
74348 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
74349 # uniformly replaced by the line number. The first 'sed' inserts a
74350 # line-number line after each line using $LINENO; the second 'sed'
74351 # does the real work. The second script uses 'N' to pair each
74352 # line-number line with the line containing $LINENO, and appends
74353 # trailing '-' during substitution so that $LINENO is not a special
74354 # case at line end.
74355 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
74356 # scripts with optimization help from Paolo Bonzini. Blame Lee
74357 # E. McMahon (1931-1989) for sed's syntax. :-)
74369 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
74372 ' >$as_me.lineno &&
74373 chmod +x "$as_me.lineno" ||
74374 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
74375 { (exit 1); exit 1; }; }
74377 # Don't try to exec as it changes $[0], causing all sort of problems
74378 # (the dirname of $[0] is not the place where we might find the
74379 # original and so on. Autoconf is especially sensitive to this).
74380 . "./$as_me.lineno"
74381 # Exit status is that of the last command.
74386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
74392 ECHO_C= ECHO_N= ECHO_T=
74393 case `echo -n x` in
74395 case `echo 'x\c'` in
74396 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
74402 if expr a : '\(a\)' >/dev/null 2>&1 &&
74403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
74409 rm -f conf$$ conf$$.exe conf$$.file
74410 if test -d conf$$.dir; then
74411 rm -f conf$$.dir/conf$$.file
74414 mkdir conf$$.dir 2>/dev/null
74416 if (echo >conf$$.file) 2>/dev/null; then
74417 if ln -s conf$$.file conf$$ 2>/dev/null; then
74419 # ... but there are two gotchas:
74420 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
74421 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
74422 # In both cases, we have to default to `cp -p'.
74423 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
74425 elif ln conf$$.file conf$$ 2>/dev/null; then
74433 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
74434 rmdir conf$$.dir 2>/dev/null
74436 if mkdir -p . 2>/dev/null; then
74439 test -d ./-p && rmdir ./-p
74443 if test -x / >/dev/null 2>&1; then
74444 as_test_x='test -x'
74446 if ls -dL / >/dev/null 2>&1; then
74453 if test -d "$1"; then
74459 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
74460 ???[sx]*):;;*)false;;esac;fi
74464 as_executable_p=$as_test_x
74466 # Sed expression to map a string onto a valid CPP name.
74467 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
74469 # Sed expression to map a string onto a valid variable name.
74470 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
74475 # Save the log message, to keep $[0] and so on meaningful, and to
74476 # report actual input values of CONFIG_FILES etc. instead of their
74477 # values after options handling.
74479 This file was extended by $as_me, which was
74480 generated by GNU Autoconf 2.63. Invocation command line was
74482 CONFIG_FILES = $CONFIG_FILES
74483 CONFIG_HEADERS = $CONFIG_HEADERS
74484 CONFIG_LINKS = $CONFIG_LINKS
74485 CONFIG_COMMANDS = $CONFIG_COMMANDS
74488 on `(hostname || uname -n) 2>/dev/null | sed 1q`
74493 case $ac_config_files in *"
74494 "*) set x $ac_config_files; shift; ac_config_files=$*;;
74497 case $ac_config_headers in *"
74498 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
74502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74503 # Files that config.status was made for.
74504 config_files="$ac_config_files"
74505 config_headers="$ac_config_headers"
74506 config_commands="$ac_config_commands"
74510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74512 \`$as_me' instantiates files from templates according to the
74513 current configuration.
74515 Usage: $0 [OPTION]... [FILE]...
74517 -h, --help print this help, then exit
74518 -V, --version print version number and configuration settings, then exit
74519 -q, --quiet, --silent
74520 do not print progress messages
74521 -d, --debug don't remove temporary files
74522 --recheck update $as_me by reconfiguring in the same conditions
74523 --file=FILE[:TEMPLATE]
74524 instantiate the configuration file FILE
74525 --header=FILE[:TEMPLATE]
74526 instantiate the configuration header FILE
74528 Configuration files:
74531 Configuration headers:
74534 Configuration commands:
74537 Report bugs to <bug-autoconf@gnu.org>."
74540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74543 configured by $0, generated by GNU Autoconf 2.63,
74544 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
74546 Copyright (C) 2008 Free Software Foundation, Inc.
74547 This config.status script is free software; the Free Software Foundation
74548 gives unlimited permission to copy, distribute and modify it."
74555 test -n "\$AWK" || AWK=awk
74558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74559 # The default lists apply if the user does not specify any file.
74565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
74566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
74577 # Handling of the options.
74578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
74580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
74581 $as_echo "$ac_cs_version"; exit ;;
74582 --debug | --debu | --deb | --de | --d | -d )
74584 --file | --fil | --fi | --f )
74587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
74589 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
74590 ac_need_defaults=false;;
74591 --header | --heade | --head | --hea )
74594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
74596 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
74597 ac_need_defaults=false;;
74599 # Conflict between --help and --header
74600 { $as_echo "$as_me: error: ambiguous option: $1
74601 Try \`$0 --help' for more information." >&2
74602 { (exit 1); exit 1; }; };;
74603 --help | --hel | -h )
74604 $as_echo "$ac_cs_usage"; exit ;;
74605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
74606 | -silent | --silent | --silen | --sile | --sil | --si | --s)
74609 # This is an error.
74610 -*) { $as_echo "$as_me: error: unrecognized option: $1
74611 Try \`$0 --help' for more information." >&2
74612 { (exit 1); exit 1; }; } ;;
74614 *) ac_config_targets="$ac_config_targets $1"
74615 ac_need_defaults=false ;;
74621 ac_configure_extra_args=
74623 if $ac_cs_silent; then
74625 ac_configure_extra_args="$ac_configure_extra_args --silent"
74629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74630 if \$ac_cs_recheck; then
74631 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
74633 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
74634 CONFIG_SHELL='$SHELL'
74635 export CONFIG_SHELL
74640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
74645 ## Running $as_me. ##
74651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
74656 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
74657 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
74658 # from automake < 1.5.
74659 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
74660 # Capture the value of LINGUAS because we need it to compute CATALOGS.
74661 LINGUAS="${LINGUAS-%UNSET%}"
74665 # The HP-UX ksh and POSIX shell print the target directory to stdout
74666 # if CDPATH is set.
74667 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
74669 sed_quote_subst='$sed_quote_subst'
74670 double_quote_subst='$double_quote_subst'
74671 delay_variable_subst='$delay_variable_subst'
74672 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
74673 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
74674 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
74675 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
74676 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
74677 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
74678 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
74679 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
74680 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
74681 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
74682 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
74683 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
74684 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
74685 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
74686 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
74687 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
74688 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
74689 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
74690 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
74691 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
74692 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
74693 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
74694 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
74695 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
74696 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
74697 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
74698 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
74699 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74700 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
74701 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
74702 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
74703 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
74704 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
74705 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
74706 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74707 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74708 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74709 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
74710 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
74711 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
74712 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
74713 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
74714 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
74715 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
74716 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
74717 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
74718 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
74719 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
74720 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
74721 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
74722 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
74723 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
74724 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
74725 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
74726 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
74727 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
74728 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
74729 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
74730 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
74731 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
74732 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
74733 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74734 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74735 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
74736 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
74737 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74738 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74739 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
74740 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74741 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74742 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74743 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74744 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74745 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74746 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
74747 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
74748 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
74749 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74750 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
74751 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
74752 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
74753 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
74754 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
74755 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74756 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
74757 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
74758 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
74759 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
74760 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
74761 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74762 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
74763 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
74764 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74765 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
74766 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
74767 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
74768 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
74769 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
74770 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74771 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74772 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
74773 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
74774 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
74775 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
74776 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74777 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74778 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74779 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
74780 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
74781 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
74782 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
74783 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
74784 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
74785 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
74786 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
74787 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
74788 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
74791 LTCFLAGS='$LTCFLAGS'
74792 compiler='$compiler_DEFAULT'
74794 # Quote evaled strings.
74805 deplibs_check_method \
74814 lt_cv_sys_global_symbol_pipe \
74815 lt_cv_sys_global_symbol_to_cdecl \
74816 lt_cv_sys_global_symbol_to_c_name_address \
74817 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
74820 lt_prog_compiler_no_builtin_flag \
74821 lt_prog_compiler_wl \
74822 lt_prog_compiler_pic \
74823 lt_prog_compiler_static \
74824 lt_cv_prog_compiler_c_o \
74832 export_dynamic_flag_spec \
74833 whole_archive_flag_spec \
74834 compiler_needs_object \
74836 allow_undefined_flag \
74837 no_undefined_flag \
74838 hardcode_libdir_flag_spec \
74839 hardcode_libdir_flag_spec_ld \
74840 hardcode_libdir_separator \
74845 variables_saved_for_relink \
74847 library_names_spec \
74852 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
74853 *[\\\\\\\`\\"\\\$]*)
74854 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
74857 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
74862 # Double-quote double-evaled strings.
74863 for var in reload_cmds \
74864 old_postinstall_cmds \
74865 old_postuninstall_cmds \
74867 extract_expsyms_cmds \
74868 old_archive_from_new_cmds \
74869 old_archive_from_expsyms_cmds \
74871 archive_expsym_cmds \
74873 module_expsym_cmds \
74874 export_symbols_cmds \
74877 postuninstall_cmds \
74879 sys_lib_search_path_spec \
74880 sys_lib_dlsearch_path_spec; do
74881 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
74882 *[\\\\\\\`\\"\\\$]*)
74883 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
74886 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
74891 # Fix-up fallback echo if it was mangled by the above quoting rules.
74893 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
74897 ac_aux_dir='$ac_aux_dir'
74898 xsi_shell='$xsi_shell'
74899 lt_shell_append='$lt_shell_append'
74901 # See if we are running on zsh, and set the options which allow our
74902 # commands through without removal of \ escapes INIT.
74903 if test -n "\${ZSH_VERSION+set}" ; then
74904 setopt NO_GLOB_SUBST
74910 TIMESTAMP='$TIMESTAMP'
74919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74921 # Handling of arguments.
74922 for ac_config_target in $ac_config_targets
74924 case $ac_config_target in
74925 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
74926 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
74927 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
74928 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
74929 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
74930 "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
74931 "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
74932 "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
74933 "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
74934 "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
74935 "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
74936 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
74937 "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
74938 "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
74939 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
74940 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
74941 "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
74942 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
74943 "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
74944 "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
74945 "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
74946 "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
74947 "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
74948 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
74949 "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
74950 "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
74951 "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
74953 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
74954 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
74955 { (exit 1); exit 1; }; };;
74960 # If the user did not use the arguments to specify the items to instantiate,
74961 # then the envvar interface is used. Set only those that are not.
74962 # We use the long form for the default assignment because of an extremely
74963 # bizarre bug on SunOS 4.1.3.
74964 if $ac_need_defaults; then
74965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
74966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
74967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
74970 # Have a temporary directory for convenience. Make it in the build tree
74971 # simply because there is no reason against having it here, and in addition,
74972 # creating and moving files from /tmp can sometimes cause problems.
74973 # Hook for its removal unless debugging.
74974 # Note that there is a small window in which the directory will not be cleaned:
74975 # after its creation but before its name has been assigned to `$tmp'.
74979 trap 'exit_status=$?
74980 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
74982 trap '{ (exit 1); exit 1; }' 1 2 13 15
74984 # Create a (secure) tmp directory for tmp files.
74987 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
74988 test -n "$tmp" && test -d "$tmp"
74991 tmp=./conf$$-$RANDOM
74992 (umask 077 && mkdir "$tmp")
74995 $as_echo "$as_me: cannot create a temporary directory in ." >&2
74996 { (exit 1); exit 1; }
74999 # Set up the scripts for CONFIG_FILES section.
75000 # No need to generate them if there are no CONFIG_FILES.
75001 # This happens for instance with `./config.status config.h'.
75002 if test -n "$CONFIG_FILES"; then
75006 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
75007 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
75010 ac_cs_awk_cr=$ac_cr
75013 echo 'BEGIN {' >"$tmp/subs1.awk" &&
75018 echo "cat >conf$$subs.awk <<_ACEOF" &&
75019 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
75021 } >conf$$subs.sh ||
75022 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
75023 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
75024 { (exit 1); exit 1; }; }
75025 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
75027 for ac_last_try in false false false false false :; do
75028 . ./conf$$subs.sh ||
75029 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
75030 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
75031 { (exit 1); exit 1; }; }
75033 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
75034 if test $ac_delim_n = $ac_delim_num; then
75036 elif $ac_last_try; then
75037 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
75038 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
75039 { (exit 1); exit 1; }; }
75041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
75044 rm -f conf$$subs.sh
75046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75047 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
75051 s/^/S["/; s/!.*/"]=/
75061 s/\(.\{148\}\).*/\1/
75063 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
75068 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
75075 s/\(.\{148\}\).*/\1/
75077 s/["\\]/\\&/g; s/^/"/; s/$/"/
75081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
75086 ' <conf$$subs.awk | sed '
75091 ' >>$CONFIG_STATUS || ac_write_fail=1
75092 rm -f conf$$subs.awk
75093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75095 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
75096 for (key in S) S_is_set[key] = 1
75102 nfields = split(line, field, "@")
75104 len = length(field[1])
75105 for (i = 2; i < nfields; i++) {
75107 keylen = length(key)
75108 if (S_is_set[key]) {
75110 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
75111 len += length(value) + length(field[++i])
75122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75123 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
75124 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
75127 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
75128 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
75129 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
75130 { (exit 1); exit 1; }; }
75133 # VPATH may cause trouble with some makes, so we remove $(srcdir),
75134 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
75135 # trailing colons and then remove the whole line if VPATH becomes empty
75136 # (actually we leave an empty line to preserve line numbers).
75137 if test "x$srcdir" = x.; then
75138 ac_vpsub='/^[ ]*VPATH[ ]*=/{
75139 s/:*\$(srcdir):*/:/
75140 s/:*\${srcdir}:*/:/
75142 s/^\([^=]*=[ ]*\):*/\1/
75148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75149 fi # test -n "$CONFIG_FILES"
75151 # Set up the scripts for CONFIG_HEADERS section.
75152 # No need to generate them if there are no CONFIG_HEADERS.
75153 # This happens for instance with `./config.status Makefile'.
75154 if test -n "$CONFIG_HEADERS"; then
75155 cat >"$tmp/defines.awk" <<\_ACAWK ||
75159 # Transform confdefs.h into an awk script `defines.awk', embedded as
75160 # here-document in config.status, that substitutes the proper values into
75161 # config.h.in to produce config.h.
75163 # Create a delimiter string that does not exist in confdefs.h, to ease
75164 # handling of long lines.
75166 for ac_last_try in false false :; do
75167 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
75168 if test -z "$ac_t"; then
75170 elif $ac_last_try; then
75171 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
75172 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
75173 { (exit 1); exit 1; }; }
75175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
75179 # For the awk script, D is an array of macro values keyed by name,
75180 # likewise P contains macro parameters if any. Preserve backslash
75181 # newline sequences.
75183 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
75185 s/.\{148\}/&'"$ac_delim"'/g
75188 s/^[ ]*#[ ]*define[ ][ ]*/ /
75195 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
75197 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
75201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
75202 D["\1"]=" \3\\\\\\n"\\/p
75204 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
75209 s/.\{148\}/&'"$ac_delim"'/g
75214 s/["\\]/\\&/g; s/^/"/; s/$/"/p
75217 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
75219 ' <confdefs.h | sed '
75220 s/'"$ac_delim"'/"\\\
75221 "/g' >>$CONFIG_STATUS || ac_write_fail=1
75223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75224 for (key in D) D_is_set[key] = 1
75227 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
75229 split(line, arg, " ")
75230 if (arg[1] == "#") {
75234 defundef = substr(arg[1], 2)
75237 split(mac1, mac2, "(") #)
75239 prefix = substr(line, 1, index(line, defundef) - 1)
75240 if (D_is_set[macro]) {
75241 # Preserve the white space surrounding the "#".
75242 print prefix "define", macro P[macro] D[macro]
75245 # Replace #undef with comments. This is necessary, for example,
75246 # in the case of _POSIX_SOURCE, which is predefined and required
75247 # on some systems where configure will not decide to define it.
75248 if (defundef == "undef") {
75249 print "/*", prefix defundef, macro, "*/"
75257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75258 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
75259 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
75260 { (exit 1); exit 1; }; }
75261 fi # test -n "$CONFIG_HEADERS"
75264 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
75269 :[FHLC]) ac_mode=$ac_tag; continue;;
75271 case $ac_mode$ac_tag in
75273 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
75274 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
75275 { (exit 1); exit 1; }; };;
75276 :[FH]-) ac_tag=-:-;;
75277 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
75294 -) ac_f="$tmp/stdin";;
75295 *) # Look for the file first in the build tree, then in the source tree
75296 # (if the path is not absolute). The absolute path cannot be DOS-style,
75297 # because $ac_f cannot contain `:'.
75301 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
75303 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
75304 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
75305 { (exit 1); exit 1; }; };;
75307 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
75308 ac_file_inputs="$ac_file_inputs '$ac_f'"
75311 # Let's still pretend it is `configure' which instantiates (i.e., don't
75312 # use $as_me), people would be surprised to read:
75313 # /* config.h. Generated by config.status. */
75314 configure_input='Generated from '`
75315 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
75317 if test x"$ac_file" != x-; then
75318 configure_input="$ac_file. $configure_input"
75319 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
75320 $as_echo "$as_me: creating $ac_file" >&6;}
75322 # Neutralize special characters interpreted by sed in replacement strings.
75323 case $configure_input in #(
75324 *\&* | *\|* | *\\* )
75325 ac_sed_conf_input=`$as_echo "$configure_input" |
75326 sed 's/[\\\\&|]/\\\\&/g'`;; #(
75327 *) ac_sed_conf_input=$configure_input;;
75331 *:-:* | *:-) cat >"$tmp/stdin" \
75332 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75333 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75334 { (exit 1); exit 1; }; } ;;
75339 ac_dir=`$as_dirname -- "$ac_file" ||
75340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75341 X"$ac_file" : 'X\(//\)[^/]' \| \
75342 X"$ac_file" : 'X\(//\)$' \| \
75343 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
75344 $as_echo X"$ac_file" |
75345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75349 /^X\(\/\/\)[^/].*/{
75364 -*) as_dir=./$as_dir;;
75366 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
75370 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
75371 *) as_qdir=$as_dir;;
75373 as_dirs="'$as_qdir' $as_dirs"
75374 as_dir=`$as_dirname -- "$as_dir" ||
75375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75376 X"$as_dir" : 'X\(//\)[^/]' \| \
75377 X"$as_dir" : 'X\(//\)$' \| \
75378 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
75379 $as_echo X"$as_dir" |
75380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75384 /^X\(\/\/\)[^/].*/{
75397 test -d "$as_dir" && break
75399 test -z "$as_dirs" || eval "mkdir $as_dirs"
75400 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
75401 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
75402 { (exit 1); exit 1; }; }; }
75406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
75408 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
75409 # A ".." for each directory in $ac_dir_suffix.
75410 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
75411 case $ac_top_builddir_sub in
75412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
75413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
75416 ac_abs_top_builddir=$ac_pwd
75417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
75418 # for backward compatibility:
75419 ac_top_builddir=$ac_top_build_prefix
75422 .) # We are building in place.
75424 ac_top_srcdir=$ac_top_builddir_sub
75425 ac_abs_top_srcdir=$ac_pwd ;;
75426 [\\/]* | ?:[\\/]* ) # Absolute name.
75427 ac_srcdir=$srcdir$ac_dir_suffix;
75428 ac_top_srcdir=$srcdir
75429 ac_abs_top_srcdir=$srcdir ;;
75430 *) # Relative name.
75431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
75432 ac_top_srcdir=$ac_top_build_prefix$srcdir
75433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
75435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
75445 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
75446 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
75448 ac_MKDIR_P=$MKDIR_P
75450 [\\/$]* | ?:[\\/]* ) ;;
75451 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
75455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75456 # If the template does not know about datarootdir, expand it.
75457 # FIXME: This hack should be removed a few years after 2.60.
75458 ac_datarootdir_hack=; ac_datarootdir_seen=
75471 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
75472 *datarootdir*) ac_datarootdir_seen=yes;;
75473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
75474 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
75475 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
75477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75478 ac_datarootdir_hack='
75479 s&@datadir@&$datadir&g
75480 s&@docdir@&$docdir&g
75481 s&@infodir@&$infodir&g
75482 s&@localedir@&$localedir&g
75483 s&@mandir@&$mandir&g
75484 s&\\\${datarootdir}&$datarootdir&g' ;;
75488 # Neutralize VPATH when `$srcdir' = `.'.
75489 # Shell code in configure.ac might set extrasub.
75490 # FIXME: do we really want to maintain this feature?
75491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75492 ac_sed_extra="$ac_vpsub
75495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
75498 s|@configure_input@|$ac_sed_conf_input|;t t
75499 s&@top_builddir@&$ac_top_builddir_sub&;t t
75500 s&@top_build_prefix@&$ac_top_build_prefix&;t t
75501 s&@srcdir@&$ac_srcdir&;t t
75502 s&@abs_srcdir@&$ac_abs_srcdir&;t t
75503 s&@top_srcdir@&$ac_top_srcdir&;t t
75504 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
75505 s&@builddir@&$ac_builddir&;t t
75506 s&@abs_builddir@&$ac_abs_builddir&;t t
75507 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
75508 s&@INSTALL@&$ac_INSTALL&;t t
75509 s&@MKDIR_P@&$ac_MKDIR_P&;t t
75510 $ac_datarootdir_hack
75512 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
75513 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75514 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75515 { (exit 1); exit 1; }; }
75517 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
75518 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
75519 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
75520 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
75521 which seems to be undefined. Please make sure it is defined." >&5
75522 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
75523 which seems to be undefined. Please make sure it is defined." >&2;}
75527 -) cat "$tmp/out" && rm -f "$tmp/out";;
75528 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
75530 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75531 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75532 { (exit 1); exit 1; }; }
75538 if test x"$ac_file" != x-; then
75540 $as_echo "/* $configure_input */" \
75541 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
75542 } >"$tmp/config.h" \
75543 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75544 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75545 { (exit 1); exit 1; }; }
75546 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
75547 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
75548 $as_echo "$as_me: $ac_file is unchanged" >&6;}
75551 mv "$tmp/config.h" "$ac_file" \
75552 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75553 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75554 { (exit 1); exit 1; }; }
75557 $as_echo "/* $configure_input */" \
75558 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
75559 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
75560 $as_echo "$as_me: error: could not create -" >&2;}
75561 { (exit 1); exit 1; }; }
75563 # Compute "$ac_file"'s index in $config_headers.
75566 for _am_header in $config_headers :; do
75567 case $_am_header in
75568 $_am_arg | $_am_arg:* )
75571 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
75574 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
75575 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75576 X"$_am_arg" : 'X\(//\)[^/]' \| \
75577 X"$_am_arg" : 'X\(//\)$' \| \
75578 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
75579 $as_echo X"$_am_arg" |
75580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75584 /^X\(\/\/\)[^/].*/{
75596 s/.*/./; q'`/stamp-h$_am_stamp_count
75599 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
75600 $as_echo "$as_me: executing $ac_file commands" >&6;}
75605 case $ac_file$ac_mode in
75606 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
75607 # Autoconf 2.62 quotes --file arguments for eval, but not when files
75608 # are listed without --file. Let's play safe and only enable the eval
75609 # if we detect the quoting.
75610 case $CONFIG_FILES in
75611 *\'*) eval set x "$CONFIG_FILES" ;;
75612 *) set x $CONFIG_FILES ;;
75617 # Strip MF so we end up with the name of the file.
75618 mf=`echo "$mf" | sed -e 's/:.*$//'`
75619 # Check whether this is an Automake generated Makefile or not.
75620 # We used to match only the files named `Makefile.in', but
75621 # some people rename them; so instead we look at the file content.
75622 # Grep'ing the first line is not enough: some people post-process
75623 # each Makefile.in and add a new line on top of each file to say so.
75624 # Grep'ing the whole file is not good either: AIX grep has a line
75625 # limit of 2048, but all sed's we know have understand at least 4000.
75626 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
75627 dirpart=`$as_dirname -- "$mf" ||
75628 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75629 X"$mf" : 'X\(//\)[^/]' \| \
75630 X"$mf" : 'X\(//\)$' \| \
75631 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
75633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75637 /^X\(\/\/\)[^/].*/{
75653 # Extract the definition of DEPDIR, am__include, and am__quote
75654 # from the Makefile without running `make'.
75655 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
75656 test -z "$DEPDIR" && continue
75657 am__include=`sed -n 's/^am__include = //p' < "$mf"`
75658 test -z "am__include" && continue
75659 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
75660 # When using ansi2knr, U may be empty or an underscore; expand it
75661 U=`sed -n 's/^U = //p' < "$mf"`
75662 # Find all dependency output files, they are included files with
75663 # $(DEPDIR) in their names. We invoke sed twice because it is the
75664 # simplest approach to changing $(DEPDIR) to its actual value in the
75666 for file in `sed -n "
75667 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
75668 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
75669 # Make sure the directory exists.
75670 test -f "$dirpart/$file" && continue
75671 fdir=`$as_dirname -- "$file" ||
75672 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75673 X"$file" : 'X\(//\)[^/]' \| \
75674 X"$file" : 'X\(//\)$' \| \
75675 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
75676 $as_echo X"$file" |
75677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75681 /^X\(\/\/\)[^/].*/{
75694 { as_dir=$dirpart/$fdir
75696 -*) as_dir=./$as_dir;;
75698 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
75702 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
75703 *) as_qdir=$as_dir;;
75705 as_dirs="'$as_qdir' $as_dirs"
75706 as_dir=`$as_dirname -- "$as_dir" ||
75707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75708 X"$as_dir" : 'X\(//\)[^/]' \| \
75709 X"$as_dir" : 'X\(//\)$' \| \
75710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
75711 $as_echo X"$as_dir" |
75712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75716 /^X\(\/\/\)[^/].*/{
75729 test -d "$as_dir" && break
75731 test -z "$as_dirs" || eval "mkdir $as_dirs"
75732 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
75733 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
75734 { (exit 1); exit 1; }; }; }
75735 # echo "creating $dirpart/$file"
75736 echo '# dummy' > "$dirpart/$file"
75741 "po-directories":C)
75742 for ac_file in $CONFIG_FILES; do
75743 # Support "outfile[:infile[:infile...]]"
75745 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
75747 # PO directories have a Makefile.in generated from Makefile.in.in.
75748 case "$ac_file" in */Makefile.in)
75749 # Adjust a relative srcdir.
75750 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
75751 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
75752 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
75753 # In autoconf-2.13 it is called $ac_given_srcdir.
75754 # In autoconf-2.50 it is called $srcdir.
75755 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
75756 case "$ac_given_srcdir" in
75757 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
75758 /*) top_srcdir="$ac_given_srcdir" ;;
75759 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
75761 # Treat a directory as a PO directory if and only if it has a
75762 # POTFILES.in file. This allows packages to have multiple PO
75763 # directories under different names or in different locations.
75764 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
75765 rm -f "$ac_dir/POTFILES"
75766 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
75767 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
75768 POMAKEFILEDEPS="POTFILES.in"
75769 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
75770 # on $ac_dir but don't depend on user-specified configuration
75772 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
75773 # The LINGUAS file contains the set of available languages.
75774 if test -n "$OBSOLETE_ALL_LINGUAS"; then
75775 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
75777 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
75778 # Hide the ALL_LINGUAS assigment from automake < 1.5.
75779 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
75780 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
75782 # The set of available languages was given in configure.in.
75783 # Hide the ALL_LINGUAS assigment from automake < 1.5.
75784 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
75787 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
75788 # Compute UPDATEPOFILES
75789 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
75790 # Compute DUMMYPOFILES
75791 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
75793 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
75794 case "$ac_given_srcdir" in
75796 *) srcdirpre='$(srcdir)/' ;;
75802 for lang in $ALL_LINGUAS; do
75803 POFILES="$POFILES $srcdirpre$lang.po"
75804 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
75805 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
75806 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
75808 # CATALOGS depends on both $ac_dir and the user's LINGUAS
75809 # environment variable.
75811 if test -n "$ALL_LINGUAS"; then
75812 for presentlang in $ALL_LINGUAS; do
75814 if test "%UNSET%" != "$LINGUAS"; then
75815 desiredlanguages="$LINGUAS"
75817 desiredlanguages="$ALL_LINGUAS"
75819 for desiredlang in $desiredlanguages; do
75820 # Use the presentlang catalog if desiredlang is
75821 # a. equal to presentlang, or
75822 # b. a variant of presentlang (because in this case,
75823 # presentlang can be used as a fallback for messages
75824 # which are not translated in the desiredlang catalog).
75825 case "$desiredlang" in
75826 "$presentlang"*) useit=yes;;
75829 if test $useit = yes; then
75830 INST_LINGUAS="$INST_LINGUAS $presentlang"
75835 if test -n "$INST_LINGUAS"; then
75836 for lang in $INST_LINGUAS; do
75837 CATALOGS="$CATALOGS $lang.gmo"
75840 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
75841 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"
75842 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
75843 if test -f "$f"; then
75845 *.orig | *.bak | *~) ;;
75846 *) cat "$f" >> "$ac_dir/Makefile" ;;
75856 # See if we are running on zsh, and set the options which allow our
75857 # commands through without removal of \ escapes.
75858 if test -n "${ZSH_VERSION+set}" ; then
75859 setopt NO_GLOB_SUBST
75862 cfgfile="${ofile}T"
75863 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
75866 cat <<_LT_EOF >> "$cfgfile"
75869 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
75870 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
75871 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
75872 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
75874 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
75875 # 2006, 2007, 2008 Free Software Foundation, Inc.
75876 # Written by Gordon Matzigkeit, 1996
75878 # This file is part of GNU Libtool.
75880 # GNU Libtool is free software; you can redistribute it and/or
75881 # modify it under the terms of the GNU General Public License as
75882 # published by the Free Software Foundation; either version 2 of
75883 # the License, or (at your option) any later version.
75885 # As a special exception to the GNU General Public License,
75886 # if you distribute this file as part of a program or library that
75887 # is built using GNU Libtool, you may include this file under the
75888 # same distribution terms that you use for the rest of that program.
75890 # GNU Libtool is distributed in the hope that it will be useful,
75891 # but WITHOUT ANY WARRANTY; without even the implied warranty of
75892 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
75893 # GNU General Public License for more details.
75895 # You should have received a copy of the GNU General Public License
75896 # along with GNU Libtool; see the file COPYING. If not, a copy
75897 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
75898 # obtained by writing to the Free Software Foundation, Inc.,
75899 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
75902 # The names of the tagged configurations supported by this script.
75905 # ### BEGIN LIBTOOL CONFIG
75907 # Which release of libtool.m4 was used?
75908 macro_version=$macro_version
75909 macro_revision=$macro_revision
75911 # Whether or not to build shared libraries.
75912 build_libtool_libs=$enable_shared
75914 # Whether or not to build static libraries.
75915 build_old_libs=$enable_static
75917 # What type of objects to build.
75920 # Whether or not to optimize for fast installation.
75921 fast_install=$enable_fast_install
75924 host_alias=$host_alias
75928 # The build system.
75929 build_alias=$build_alias
75933 # A sed program that does not truncate output.
75936 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
75937 Xsed="\$SED -e 1s/^X//"
75939 # A grep program that handles long lines.
75945 # A literal string matcher.
75948 # A BSD- or MS-compatible name lister.
75951 # Whether we need soft or hard links.
75954 # What is the maximum length of a command?
75955 max_cmd_len=$max_cmd_len
75957 # Object file suffix (normally "o").
75960 # Executable file suffix (normally "").
75963 # whether the shell understands "unset".
75966 # turn spaces into newlines.
75969 # turn newlines into spaces.
75972 # How to create reloadable object files.
75973 reload_flag=$lt_reload_flag
75974 reload_cmds=$lt_reload_cmds
75976 # Method to check whether dependent libraries are shared objects.
75977 deplibs_check_method=$lt_deplibs_check_method
75979 # Command to use when deplibs_check_method == "file_magic".
75980 file_magic_cmd=$lt_file_magic_cmd
75984 AR_FLAGS=$lt_AR_FLAGS
75986 # A symbol stripping program.
75989 # Commands used to install an old-style archive.
75991 old_postinstall_cmds=$lt_old_postinstall_cmds
75992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
75997 # LTCC compiler flags.
75998 LTCFLAGS=$lt_CFLAGS
76000 # Take the output of nm and produce a listing of raw symbols and C names.
76001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
76003 # Transform the output of nm in a proper C declaration.
76004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
76006 # Transform the output of nm in a C name address pair.
76007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
76009 # Transform the output of nm in a C name address pair when lib prefix is needed.
76010 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
76012 # The name of the directory that contains temporary libtool files.
76015 # Shell to use when invoking shell scripts.
76018 # An echo program that does not interpret backslashes.
76021 # Used to examine libraries when file_magic_cmd begins with "file".
76022 MAGIC_CMD=$MAGIC_CMD
76024 # Must we lock files when doing compilation?
76025 need_locks=$lt_need_locks
76027 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
76028 DSYMUTIL=$lt_DSYMUTIL
76030 # Tool to change global to local symbols on Mac OS X.
76033 # Tool to manipulate fat objects and archives on Mac OS X.
76036 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
76039 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
76040 OTOOL64=$lt_OTOOL64
76042 # Old archive suffix (normally "a").
76045 # Shared library suffix (normally ".so").
76046 shrext_cmds=$lt_shrext_cmds
76048 # The commands to extract the exported symbol list from a shared archive.
76049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
76051 # Variables whose values should be saved in libtool wrapper scripts and
76052 # restored at link time.
76053 variables_saved_for_relink=$lt_variables_saved_for_relink
76055 # Do we need the "lib" prefix for modules?
76056 need_lib_prefix=$need_lib_prefix
76058 # Do we need a version for libraries?
76059 need_version=$need_version
76061 # Library versioning type.
76062 version_type=$version_type
76064 # Shared library runtime path variable.
76065 runpath_var=$runpath_var
76067 # Shared library path variable.
76068 shlibpath_var=$shlibpath_var
76070 # Is shlibpath searched before the hard-coded library search path?
76071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
76073 # Format of library name prefix.
76074 libname_spec=$lt_libname_spec
76076 # List of archive names. First name is the real one, the rest are links.
76077 # The last name is the one that the linker finds with -lNAME
76078 library_names_spec=$lt_library_names_spec
76080 # The coded name of the library, if different from the real name.
76081 soname_spec=$lt_soname_spec
76083 # Command to use after installation of a shared archive.
76084 postinstall_cmds=$lt_postinstall_cmds
76086 # Command to use after uninstallation of a shared archive.
76087 postuninstall_cmds=$lt_postuninstall_cmds
76089 # Commands used to finish a libtool library installation in a directory.
76090 finish_cmds=$lt_finish_cmds
76092 # As "finish_cmds", except a single script fragment to be evaled but
76094 finish_eval=$lt_finish_eval
76096 # Whether we should hardcode library paths into libraries.
76097 hardcode_into_libs=$hardcode_into_libs
76099 # Compile-time system search path for libraries.
76100 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
76102 # Run-time system search path for libraries.
76103 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
76105 # Whether dlopen is supported.
76106 dlopen_support=$enable_dlopen
76108 # Whether dlopen of programs is supported.
76109 dlopen_self=$enable_dlopen_self
76111 # Whether dlopen of statically linked programs is supported.
76112 dlopen_self_static=$enable_dlopen_self_static
76114 # Commands to strip libraries.
76115 old_striplib=$lt_old_striplib
76116 striplib=$lt_striplib
76119 # The linker used to build libraries.
76122 # Commands used to build an old-style archive.
76123 old_archive_cmds=$lt_old_archive_cmds
76125 # A language specific compiler.
76128 # Is the compiler the GNU compiler?
76131 # Compiler flag to turn off builtin functions.
76132 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
76134 # How to pass a linker flag through the compiler.
76135 wl=$lt_lt_prog_compiler_wl
76137 # Additional compiler flags for building library objects.
76138 pic_flag=$lt_lt_prog_compiler_pic
76140 # Compiler flag to prevent dynamic linking.
76141 link_static_flag=$lt_lt_prog_compiler_static
76143 # Does compiler simultaneously support -c and -o options?
76144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
76146 # Whether or not to add -lc for building shared libraries.
76147 build_libtool_need_lc=$archive_cmds_need_lc
76149 # Whether or not to disallow shared libs when runtime libs are static.
76150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
76152 # Compiler flag to allow reflexive dlopens.
76153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
76155 # Compiler flag to generate shared objects directly from archives.
76156 whole_archive_flag_spec=$lt_whole_archive_flag_spec
76158 # Whether the compiler copes with passing no objects directly.
76159 compiler_needs_object=$lt_compiler_needs_object
76161 # Create an old-style archive from a shared archive.
76162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
76164 # Create a temporary old-style archive to link instead of a shared archive.
76165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
76167 # Commands used to build a shared archive.
76168 archive_cmds=$lt_archive_cmds
76169 archive_expsym_cmds=$lt_archive_expsym_cmds
76171 # Commands used to build a loadable module if different from building
76172 # a shared archive.
76173 module_cmds=$lt_module_cmds
76174 module_expsym_cmds=$lt_module_expsym_cmds
76176 # Whether we are building with GNU ld or not.
76177 with_gnu_ld=$lt_with_gnu_ld
76179 # Flag that allows shared libraries with undefined symbols to be built.
76180 allow_undefined_flag=$lt_allow_undefined_flag
76182 # Flag that enforces no undefined symbols.
76183 no_undefined_flag=$lt_no_undefined_flag
76185 # Flag to hardcode \$libdir into a binary during linking.
76186 # This must work even if \$libdir does not exist
76187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
76189 # If ld is used when linking, flag to hardcode \$libdir into a binary
76190 # during linking. This must work even if \$libdir does not exist.
76191 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
76193 # Whether we need a single "-rpath" flag with a separated argument.
76194 hardcode_libdir_separator=$lt_hardcode_libdir_separator
76196 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
76197 # DIR into the resulting binary.
76198 hardcode_direct=$hardcode_direct
76200 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
76201 # DIR into the resulting binary and the resulting library dependency is
76202 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
76203 # library is relocated.
76204 hardcode_direct_absolute=$hardcode_direct_absolute
76206 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
76207 # into the resulting binary.
76208 hardcode_minus_L=$hardcode_minus_L
76210 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
76211 # into the resulting binary.
76212 hardcode_shlibpath_var=$hardcode_shlibpath_var
76214 # Set to "yes" if building a shared library automatically hardcodes DIR
76215 # into the library and all subsequent libraries and executables linked
76217 hardcode_automatic=$hardcode_automatic
76219 # Set to yes if linker adds runtime paths of dependent libraries
76220 # to runtime path list.
76221 inherit_rpath=$inherit_rpath
76223 # Whether libtool must link a program against all its dependency libraries.
76224 link_all_deplibs=$link_all_deplibs
76226 # Fix the shell variable \$srcfile for the compiler.
76227 fix_srcfile_path=$lt_fix_srcfile_path
76229 # Set to "yes" if exported symbols are required.
76230 always_export_symbols=$always_export_symbols
76232 # The commands to list exported symbols.
76233 export_symbols_cmds=$lt_export_symbols_cmds
76235 # Symbols that should not be listed in the preloaded symbols.
76236 exclude_expsyms=$lt_exclude_expsyms
76238 # Symbols that must always be exported.
76239 include_expsyms=$lt_include_expsyms
76241 # Commands necessary for linking programs (against libraries) with templates.
76242 prelink_cmds=$lt_prelink_cmds
76244 # Specify filename containing input files.
76245 file_list_spec=$lt_file_list_spec
76247 # How to hardcode a shared library path into an executable.
76248 hardcode_action=$hardcode_action
76250 # ### END LIBTOOL CONFIG
76256 cat <<\_LT_EOF >> "$cfgfile"
76257 # AIX sometimes has problems with the GCC collect2 program. For some
76258 # reason, if we set the COLLECT_NAMES environment variable, the problems
76259 # vanish in a puff of smoke.
76260 if test "X${COLLECT_NAMES+set}" != Xset; then
76262 export COLLECT_NAMES
76269 ltmain="$ac_aux_dir/ltmain.sh"
76272 # We use sed instead of cat because bash on DJGPP gets confused if
76273 # if finds mixed CR/LF and LF-only lines. Since sed operates in
76274 # text mode, it properly converts lines to CR/LF. This bash problem
76275 # is reportedly fixed, but why not run on old versions too?
76276 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
76277 || (rm -f "$cfgfile"; exit 1)
76281 cat << \_LT_EOF >> "$cfgfile"
76283 # func_dirname file append nondir_replacement
76284 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
76285 # otherwise set result to NONDIR_REPLACEMENT.
76289 */*) func_dirname_result="${1%/*}${2}" ;;
76290 * ) func_dirname_result="${3}" ;;
76294 # func_basename file
76297 func_basename_result="${1##*/}"
76300 # func_dirname_and_basename file append nondir_replacement
76301 # perform func_basename and func_dirname in a single function
76303 # dirname: Compute the dirname of FILE. If nonempty,
76304 # add APPEND to the result, otherwise set result
76305 # to NONDIR_REPLACEMENT.
76306 # value returned in "$func_dirname_result"
76307 # basename: Compute filename of FILE.
76308 # value retuned in "$func_basename_result"
76309 # Implementation must be kept synchronized with func_dirname
76310 # and func_basename. For efficiency, we do not delegate to
76311 # those functions but instead duplicate the functionality here.
76312 func_dirname_and_basename ()
76315 */*) func_dirname_result="${1%/*}${2}" ;;
76316 * ) func_dirname_result="${3}" ;;
76318 func_basename_result="${1##*/}"
76321 # func_stripname prefix suffix name
76322 # strip PREFIX and SUFFIX off of NAME.
76323 # PREFIX and SUFFIX must not contain globbing or regex special
76324 # characters, hashes, percent signs, but SUFFIX may contain a leading
76325 # dot (in which case that matches only a dot).
76328 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
76329 # positional parameters, so assign one to ordinary parameter first.
76330 func_stripname_result=${3}
76331 func_stripname_result=${func_stripname_result#"${1}"}
76332 func_stripname_result=${func_stripname_result%"${2}"}
76338 func_opt_split_opt=${1%%=*}
76339 func_opt_split_arg=${1#*=}
76346 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
76347 *) func_lo2o_result=${1} ;;
76351 # func_xform libobj-or-source
76354 func_xform_result=${1%.*}.lo
76357 # func_arith arithmetic-term...
76360 func_arith_result=$(( $* ))
76364 # STRING may not start with a hyphen.
76367 func_len_result=${#1}
76372 *) # Bourne compatible functions.
76373 cat << \_LT_EOF >> "$cfgfile"
76375 # func_dirname file append nondir_replacement
76376 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
76377 # otherwise set result to NONDIR_REPLACEMENT.
76380 # Extract subdirectory from the argument.
76381 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
76382 if test "X$func_dirname_result" = "X${1}"; then
76383 func_dirname_result="${3}"
76385 func_dirname_result="$func_dirname_result${2}"
76389 # func_basename file
76392 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
76396 # func_stripname prefix suffix name
76397 # strip PREFIX and SUFFIX off of NAME.
76398 # PREFIX and SUFFIX must not contain globbing or regex special
76399 # characters, hashes, percent signs, but SUFFIX may contain a leading
76400 # dot (in which case that matches only a dot).
76401 # func_strip_suffix prefix name
76405 .*) func_stripname_result=`$ECHO "X${3}" \
76406 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
76407 *) func_stripname_result=`$ECHO "X${3}" \
76408 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
76413 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
76414 my_sed_long_arg='1s/^-[^=]*=//'
76419 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
76420 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
76426 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
76429 # func_xform libobj-or-source
76432 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
76435 # func_arith arithmetic-term...
76438 func_arith_result=`expr "$@"`
76442 # STRING may not start with a hyphen.
76445 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
76451 case $lt_shell_append in
76453 cat << \_LT_EOF >> "$cfgfile"
76455 # func_append var value
76456 # Append VALUE to the end of shell variable VAR.
76464 cat << \_LT_EOF >> "$cfgfile"
76466 # func_append var value
76467 # Append VALUE to the end of shell variable VAR.
76478 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
76479 || (rm -f "$cfgfile"; exit 1)
76481 mv -f "$cfgfile" "$ofile" ||
76482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
76491 { (exit 0); exit 0; }
76493 chmod +x $CONFIG_STATUS
76494 ac_clean_files=$ac_clean_files_save
76496 test $ac_write_fail = 0 ||
76497 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
76498 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
76499 { (exit 1); exit 1; }; }
76502 # configure is writing to config.log, and then calls config.status.
76503 # config.status does its own redirection, appending to config.log.
76504 # Unfortunately, on DOS this fails, as config.log is still kept open
76505 # by configure, so config.status won't be able to write to it; its
76506 # output is simply discarded. So we exec the FD to /dev/null,
76507 # effectively closing config.log, so it can be properly (re)opened and
76508 # appended to by config.status. When coming back to configure, we
76509 # need to make the FD available again.
76510 if test "$no_create" != yes; then
76512 ac_config_status_args=
76513 test "$silent" = yes &&
76514 ac_config_status_args="$ac_config_status_args --quiet"
76516 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
76518 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
76519 # would make configure fail if this is the last instruction.
76520 $ac_cs_success || { (exit 1); exit 1; }
76522 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
76523 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
76524 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
76529 echo "Compiler Flags:"
76530 echo " CFLAGS: ${CFLAGS-(none)}"
76531 echo " CPPFLAGS: ${CPPFLAGS-(none)}"
76532 echo " LDFLAGS: ${LDFLAGS-(none)}"
76533 echo " LIBS: ${LIBS-(none)}"
76536 echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
76539 echo "Working IPv6:" $WORKING_IPV6
76542 echo "Build documentation:" $ENABLE_MANPAGE_BUILD
76545 echo "Directories:"
76546 echo " Application: $APPLICATION_DIR"
76547 echo " Configuration: $CONFIG_DIR"
76548 echo " GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
76549 echo " Perl modules (amperldir): $amperldir"
76550 echo " Template and example data files (amdatadir): $amdatadir"
76551 echo " Temporary: $AMANDA_TMPDIR"
76553 if test -f config.warnings; then
76555 cat config.warnings | sed -e 's/^/ /g'